DescribeResourcePolicies

class CloudWatchLogs.Paginator.DescribeResourcePolicies
paginator = client.get_paginator('describe_resource_policies')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CloudWatchLogs.Client.describe_resource_policies().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
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
{
    'resourcePolicies': [
        {
            'policyName': 'string',
            'policyDocument': 'string',
            'lastUpdatedTime': 123
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • resourcePolicies (list) --

      The resource policies that exist in this account.

      • (dict) --

        A policy enabling one or more entities to put logs to a log group in this account.

        • policyName (string) --

          The name of the resource policy.

        • policyDocument (string) --

          The details of the policy.

        • lastUpdatedTime (integer) --

          Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC .

    • NextToken (string) --

      A token to resume pagination.