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

***************************************
list_managed_policies_in_permission_set
***************************************



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

  

  Lists the Amazon Web Services managed policy that is attached to a specified permission set.

  

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


  **Request Syntax**
  ::

    response = client.list_managed_policies_in_permission_set(
        InstanceArn='string',
        PermissionSetArn='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type InstanceArn: string
  :param InstanceArn: **[REQUIRED]** 

    The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see `Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

    

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

    The ARN of the  PermissionSet whose managed policies will be listed.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to display for the  PermissionSet.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.

    

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

    
    ::

      {
          'AttachedManagedPolicies': [
              {
                  'Name': 'string',
                  'Arn': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AttachedManagedPolicies** *(list) --* 

        An array of the  AttachedManagedPolicy data type object.

        
        

        - *(dict) --* 

          A structure that stores a list of managed policy ARNs that describe the associated Amazon Web Services managed policy.

          
          

          - **Name** *(string) --* 

            The name of the Amazon Web Services managed policy.

            
          

          - **Arn** *(string) --* 

            The ARN of the Amazon Web Services managed policy. For more information about ARNs, see `Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

            
      
    
      

      - **NextToken** *(string) --* 

        The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.

        
  
  **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`

  