BedrockAgentCoreControl / Paginator / ListPolicyGenerationSummaries

ListPolicyGenerationSummaries

class BedrockAgentCoreControl.Paginator.ListPolicyGenerationSummaries
paginator = client.get_paginator('list_policy_generation_summaries')
paginate(**kwargs)

Creates an iterator that will paginate through responses from BedrockAgentCoreControl.Client.list_policy_generation_summaries().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    policyEngineId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • policyEngineId (string) –

    [REQUIRED]

    The identifier of the policy engine whose policy generation summaries to retrieve.

  • 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

{
    'policyGenerations': [
        {
            'policyEngineId': 'string',
            'policyGenerationId': 'string',
            'name': 'string',
            'policyGenerationArn': 'string',
            'resource': {
                'arn': 'string'
            },
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'status': 'GENERATING'|'GENERATED'|'GENERATE_FAILED'|'DELETE_FAILED',
            'findings': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • policyGenerations (list) –

      An array of policy generation summary objects that match the specified criteria. Each summary contains resource identifiers, status, timestamps, and findings without customer-encrypted content.

      • (dict) –

        Represents a metadata-only summary of a policy generation resource. This structure contains resource identifiers, status, timestamps, and findings without customer-encrypted fields such as status reasons. Policy generation summaries are returned by operations that do not require access to the customer’s KMS key.

        • policyEngineId (string) –

          The identifier of the policy engine associated with this generation request.

        • policyGenerationId (string) –

          The unique identifier for this policy generation request.

        • name (string) –

          The customer-assigned name for this policy generation request.

        • policyGenerationArn (string) –

          The ARN of this policy generation request.

        • resource (dict) –

          The resource information associated with this policy generation.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: arn. 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'}
          
          • arn (string) –

            The Amazon Resource Name (ARN) of the resource. This globally unique identifier specifies the exact resource that policies will be evaluated against for access control decisions.

        • createdAt (datetime) –

          The timestamp when this policy generation request was created.

        • updatedAt (datetime) –

          The timestamp when this policy generation was last updated.

        • status (string) –

          The current status of this policy generation request.

        • findings (string) –

          Findings and insights from this policy generation process.

    • NextToken (string) –

      A token to resume pagination.