EventBridgeV2 / Paginator / ListResourcePolicies

ListResourcePolicies

class EventBridgeV2.Paginator.ListResourcePolicies
paginator = client.get_paginator('list_resource_policies')
paginate(**kwargs)

Creates an iterator that will paginate through responses from EventBridgeV2.Client.list_resource_policies().

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The Amazon Resource Name (ARN) that uniquely identifies an event bus.

  • 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

{
    'PolicySummaries': [
        {
            'PolicyName': 'string',
            'RevisionId': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    Summaries only (policy name and revision ID). Use GetResourcePolicy to retrieve a policy document.

    • PolicySummaries (list) –

      List of resource policy summaries.

      • (dict) –

        Summary of a policy attached to a resource: its name and revision ID.

        • PolicyName (string) –

          Name of a policy attached to a resource. Valid values: “default” (the customer-managed policy) and “AWS_RAM” (managed exclusively by AWS Resource Access Manager). Any other value is rejected.

        • RevisionId (string) –

          Revision ID of a resource policy. A new revision ID is generated on every successful write.