:doc:`Inspector2 <../../inspector2>` / Paginator / ListAccountPermissions

**********************
ListAccountPermissions
**********************



.. py:class:: Inspector2.Paginator.ListAccountPermissions

  ::

    
    paginator = client.get_paginator('list_account_permissions')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`Inspector2.Client.list_account_permissions`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListAccountPermissions>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          service='EC2'|'ECR'|'LAMBDA',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type service: string
    :param service: 

      The service scan type to check permissions for.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

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

      
      ::

        {
            'permissions': [
                {
                    'service': 'EC2'|'ECR'|'LAMBDA',
                    'operation': 'ENABLE_SCANNING'|'DISABLE_SCANNING'|'ENABLE_REPOSITORY'|'DISABLE_REPOSITORY'
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **permissions** *(list) --* 

          Contains details on the permissions an account has to configure Amazon Inspector.

          
          

          - *(dict) --* 

            Contains information on the permissions an account has within Amazon Inspector.

            
            

            - **service** *(string) --* 

              The services that the permissions allow an account to perform the given operations for.

              
            

            - **operation** *(string) --* 

              The operations that can be performed with the given permissions.

              
        
      
        

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

          A token to resume pagination.

          
    