AccessAnalyzer / Paginator / ListAnalyzers

ListAnalyzers#

class AccessAnalyzer.Paginator.ListAnalyzers#
paginator = client.get_paginator('list_analyzers')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from AccessAnalyzer.Client.list_analyzers().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    type='ACCOUNT'|'ORGANIZATION'|'ACCOUNT_UNUSED_ACCESS'|'ORGANIZATION_UNUSED_ACCESS',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • type (string) – The type of analyzer.

  • 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:

dict

Returns:

Response Syntax

{
    'analyzers': [
        {
            'arn': 'string',
            'name': 'string',
            'type': 'ACCOUNT'|'ORGANIZATION'|'ACCOUNT_UNUSED_ACCESS'|'ORGANIZATION_UNUSED_ACCESS',
            'createdAt': datetime(2015, 1, 1),
            'lastResourceAnalyzed': 'string',
            'lastResourceAnalyzedAt': datetime(2015, 1, 1),
            'tags': {
                'string': 'string'
            },
            'status': 'ACTIVE'|'CREATING'|'DISABLED'|'FAILED',
            'statusReason': {
                'code': 'AWS_SERVICE_ACCESS_DISABLED'|'DELEGATED_ADMINISTRATOR_DEREGISTERED'|'ORGANIZATION_DELETED'|'SERVICE_LINKED_ROLE_CREATION_FAILED'
            },
            'configuration': {
                'unusedAccess': {
                    'unusedAccessAge': 123
                }
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    The response to the request.

    • analyzers (list) –

      The analyzers retrieved.

      • (dict) –

        Contains information about the analyzer.

        • arn (string) –

          The ARN of the analyzer.

        • name (string) –

          The name of the analyzer.

        • type (string) –

          The type of analyzer, which corresponds to the zone of trust chosen for the analyzer.

        • createdAt (datetime) –

          A timestamp for the time at which the analyzer was created.

        • lastResourceAnalyzed (string) –

          The resource that was most recently analyzed by the analyzer.

        • lastResourceAnalyzedAt (datetime) –

          The time at which the most recently analyzed resource was analyzed.

        • tags (dict) –

          The tags added to the analyzer.

          • (string) –

            • (string) –

        • status (string) –

          The status of the analyzer. An Active analyzer successfully monitors supported resources and generates new findings. The analyzer is Disabled when a user action, such as removing trusted access for Identity and Access Management Access Analyzer from Organizations, causes the analyzer to stop generating new findings. The status is Creating when the analyzer creation is in progress and Failed when the analyzer creation has failed.

        • statusReason (dict) –

          The statusReason provides more details about the current status of the analyzer. For example, if the creation for the analyzer fails, a Failed status is returned. For an analyzer with organization as the type, this failure can be due to an issue with creating the service-linked roles required in the member accounts of the Amazon Web Services organization.

          • code (string) –

            The reason code for the current status of the analyzer.

        • configuration (dict) –

          Specifies whether the analyzer is an external access or unused access analyzer.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: unusedAccess. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          
          • unusedAccess (dict) –

            Specifies the configuration of an unused access analyzer for an Amazon Web Services organization or account. External access analyzers do not support any configuration.

            • unusedAccessAge (integer) –

              The specified access age in days for which to generate findings for unused access. For example, if you specify 90 days, the analyzer will generate findings for IAM entities within the accounts of the selected organization for any access that hasn’t been used in 90 or more days since the analyzer’s last scan. You can choose a value between 1 and 180 days.

    • NextToken (string) –

      A token to resume pagination.