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

********************
list_permission_sets
********************



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

  

  Lists the  PermissionSets in an IAM Identity Center instance.

  

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


  **Request Syntax**
  ::

    response = client.list_permission_sets(
        InstanceArn='string',
        NextToken='string',
        MaxResults=123
    )
    
  :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 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.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to display for the assignment.

    

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

    
    ::

      {
          'PermissionSets': [
              'string',
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PermissionSets** *(list) --* 

        Defines the level of access on an Amazon Web Services account.

        
        

        - *(string) --* 
    
      

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

  