IAMRolesAnywhere / Paginator / ListSubjects

ListSubjects#

class IAMRolesAnywhere.Paginator.ListSubjects#
paginator = client.get_paginator('list_subjects')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from IAMRolesAnywhere.Client.list_subjects().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    pageSize=123,
    PaginationConfig={
        'MaxItems': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • pageSize (integer) – The number of resources in the paginated list.

  • 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.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'subjects': [
        {
            'createdAt': datetime(2015, 1, 1),
            'enabled': True|False,
            'lastSeenAt': datetime(2015, 1, 1),
            'subjectArn': 'string',
            'subjectId': 'string',
            'updatedAt': datetime(2015, 1, 1),
            'x509Subject': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • subjects (list) –

      A list of subjects.

      • (dict) –

        A summary representation of subjects.

        • createdAt (datetime) –

          The ISO-8601 time stamp of when the certificate was first used in a temporary credential request.

        • enabled (boolean) –

          The enabled status of the subject.

        • lastSeenAt (datetime) –

          The ISO-8601 time stamp of when the certificate was last used in a temporary credential request.

        • subjectArn (string) –

          The ARN of the resource.

        • subjectId (string) –

          The id of the resource.

        • updatedAt (datetime) –

          The ISO-8601 timestamp when the subject was last updated.

        • x509Subject (string) –

          The x509 principal identifier of the authenticating certificate.

    • NextToken (string) –

      A token to resume pagination.