EKS / Paginator / ListAssociatedAccessPolicies

ListAssociatedAccessPolicies#

class EKS.Paginator.ListAssociatedAccessPolicies#
paginator = client.get_paginator('list_associated_access_policies')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from EKS.Client.list_associated_access_policies().

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The name of your cluster.

  • principalArn (string) –

    [REQUIRED]

    The ARN of the IAM principal for the AccessEntry.

  • 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

{
    'clusterName': 'string',
    'principalArn': 'string',
    'associatedAccessPolicies': [
        {
            'policyArn': 'string',
            'accessScope': {
                'type': 'cluster'|'namespace',
                'namespaces': [
                    'string',
                ]
            },
            'associatedAt': datetime(2015, 1, 1),
            'modifiedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • clusterName (string) –

      The name of your cluster.

    • principalArn (string) –

      The ARN of the IAM principal for the AccessEntry.

    • associatedAccessPolicies (list) –

      The list of access policies associated with the access entry.

      • (dict) –

        An access policy association.

        • policyArn (string) –

          The ARN of the AccessPolicy.

        • accessScope (dict) –

          The scope of the access policy.

          • type (string) –

            The scope type of an access policy.

          • namespaces (list) –

            A Kubernetes namespace that an access policy is scoped to. A value is required if you specified namespace for Type.

            • (string) –

        • associatedAt (datetime) –

          The date and time the AccessPolicy was associated with an AccessEntry.

        • modifiedAt (datetime) –

          The Unix epoch timestamp for the last modification to the object.

    • NextToken (string) –

      A token to resume pagination.