Rekognition / Paginator / ListProjectPolicies

ListProjectPolicies#

class Rekognition.Paginator.ListProjectPolicies#
paginator = client.get_paginator('list_project_policies')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Rekognition.Client.list_project_policies().

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The ARN of the project for which you want to list the project policies.

  • 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

{
    'ProjectPolicies': [
        {
            'ProjectArn': 'string',
            'PolicyName': 'string',
            'PolicyRevisionId': 'string',
            'PolicyDocument': 'string',
            'CreationTimestamp': datetime(2015, 1, 1),
            'LastUpdatedTimestamp': datetime(2015, 1, 1)
        },
    ],

}

Response Structure

  • (dict) –

    • ProjectPolicies (list) –

      A list of project policies attached to the project.

      • (dict) –

        Describes a project policy in the response from ListProjectPolicies.

        • ProjectArn (string) –

          The Amazon Resource Name (ARN) of the project to which the project policy is attached.

        • PolicyName (string) –

          The name of the project policy.

        • PolicyRevisionId (string) –

          The revision ID of the project policy.

        • PolicyDocument (string) –

          The JSON document for the project policy.

        • CreationTimestamp (datetime) –

          The Unix datetime for the creation of the project policy.

        • LastUpdatedTimestamp (datetime) –

          The Unix datetime for when the project policy was last updated.