:doc:`SSOAdmin <../../sso-admin>` / Client / put_permissions_boundary_to_permission_set

******************************************
put_permissions_boundary_to_permission_set
******************************************



.. py:method:: SSOAdmin.Client.put_permissions_boundary_to_permission_set(**kwargs)

  

  Attaches an Amazon Web Services managed or customer managed policy to the specified  PermissionSet as a permissions boundary.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sso-admin-2020-07-20/PutPermissionsBoundaryToPermissionSet>`_  


  **Request Syntax**
  ::

    response = client.put_permissions_boundary_to_permission_set(
        InstanceArn='string',
        PermissionSetArn='string',
        PermissionsBoundary={
            'CustomerManagedPolicyReference': {
                'Name': 'string',
                'Path': 'string'
            },
            'ManagedPolicyArn': 'string'
        }
    )
    
  :type InstanceArn: string
  :param InstanceArn: **[REQUIRED]** 

    The ARN of the IAM Identity Center instance under which the operation will be executed.

    

  
  :type PermissionSetArn: string
  :param PermissionSetArn: **[REQUIRED]** 

    The ARN of the ``PermissionSet``.

    

  
  :type PermissionsBoundary: dict
  :param PermissionsBoundary: **[REQUIRED]** 

    The permissions boundary that you want to attach to a ``PermissionSet``.

    

  
    - **CustomerManagedPolicyReference** *(dict) --* 

      Specifies the name and path of a customer managed policy. You must have an IAM policy that matches the name and path in each Amazon Web Services account where you want to deploy your permission set.

      

    
      - **Name** *(string) --* **[REQUIRED]** 

        The name of the IAM policy that you have configured in each account where you want to deploy your permission set.

        

      
      - **Path** *(string) --* 

        The path to the IAM policy that you have configured in each account where you want to deploy your permission set. The default is ``/``. For more information, see `Friendly names and paths <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names>`__ in the *IAM User Guide*.

        

      
    
    - **ManagedPolicyArn** *(string) --* 

      The Amazon Web Services managed policy ARN that you want to attach to a permission set as a permissions boundary.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSOAdmin.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.InternalServerException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ValidationException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ConflictException`

  