class AccessAnalyzer.Paginator.ListAccessPreviews
paginator = client.get_paginator('list_access_previews')

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

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • analyzerArn (string) --


    The ARN of the analyzer used to generate the access preview.

  • 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

    'accessPreviews': [
            'id': 'string',
            'analyzerArn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'status': 'COMPLETED'|'CREATING'|'FAILED',
            'statusReason': {
    'NextToken': 'string'

Response Structure

  • (dict) --

    • accessPreviews (list) --

      A list of access previews retrieved for the analyzer.

      • (dict) --

        Contains a summary of information about an access preview.

        • id (string) --

          The unique ID for the access preview.

        • analyzerArn (string) --

          The ARN of the analyzer used to generate the access preview.

        • createdAt (datetime) --

          The time at which the access preview was created.

        • status (string) --

          The status of the access preview.

          • Creating - The access preview creation is in progress.
          • Completed - The access preview is complete and previews the findings for external access to the resource.
          • Failed - The access preview creation has failed.
        • statusReason (dict) --

          Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid proposed resource configuration.

          • code (string) --

            The reason code for the current status of the access preview.

    • NextToken (string) --

      A token to resume pagination.