Inspector2 / Paginator / ListAccountPermissions


class Inspector2.Paginator.ListAccountPermissions#
paginator = client.get_paginator('list_account_permissions')

Creates an iterator that will paginate through responses from Inspector2.Client.list_account_permissions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • service (string) – The service scan type to check permissions for.

  • PaginationConfig (dict) –

    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.

Return type:



Response Syntax

    'permissions': [
            'service': 'EC2'|'ECR'|'LAMBDA'
    '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.

        • operation (string) –

          The operations that can be performed with the given permissions.

        • service (string) –

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

    • NextToken (string) –

      A token to resume pagination.