Route53GlobalResolver / Client / list_access_tokens

list_access_tokens

Route53GlobalResolver.Client.list_access_tokens(**kwargs)

Lists all access tokens for a DNS view with pagination support.

See also: AWS API Documentation

Request Syntax

response = client.list_access_tokens(
    maxResults=123,
    nextToken='string',
    dnsViewId='string',
    filters={
        'string': [
            'string',
        ]
    }
)
Parameters:
  • maxResults (integer) – The maximum number of results to retrieve in a single call.

  • nextToken (string) – A pagination token used for large sets of results that can’t be returned in a single response.

  • dnsViewId (string) –

    [REQUIRED]

    The ID of the DNS view to list the tokens for.

  • filters (dict) –

    Filtering parameters.

    • (string) –

      • (list) –

        • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'accessTokens': [
        {
            'id': 'string',
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'dnsViewId': 'string',
            'expiresAt': datetime(2015, 1, 1),
            'globalResolverId': 'string',
            'name': 'string',
            'status': 'CREATING'|'OPERATIONAL'|'DELETING',
            'updatedAt': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      A pagination token used for large sets of results that can’t be returned in a single response. Provide this token in the next call to get the results not returned in this call.

    • accessTokens (list) –

      List of the tokens.

      • (dict) –

        Summary information about a token.

        • id (string) –

          The unique identifier of the token.

        • arn (string) –

          The Amazon Resource Name (ARN) of the token.

        • createdAt (datetime) –

          The date and time when the token was created.

        • dnsViewId (string) –

          The ID of the DNS view associated with the token.

        • expiresAt (datetime) –

          The date and time when the token expires.

        • globalResolverId (string) –

          The ID of the global resolver associated with the token.

        • name (string) –

          The name of the token.

        • status (string) –

          The current status of the token.

        • updatedAt (datetime) –

          The date and time when the token was last updated.

Exceptions

  • Route53GlobalResolver.Client.exceptions.InternalServerException

  • Route53GlobalResolver.Client.exceptions.ValidationException

  • Route53GlobalResolver.Client.exceptions.AccessDeniedException

  • Route53GlobalResolver.Client.exceptions.ThrottlingException

  • Route53GlobalResolver.Client.exceptions.ResourceNotFoundException