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.
Warning
Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify
--region us-east-2on Amazon Web Services CLI commands.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.InternalServerExceptionRoute53GlobalResolver.Client.exceptions.ValidationExceptionRoute53GlobalResolver.Client.exceptions.AccessDeniedExceptionRoute53GlobalResolver.Client.exceptions.ThrottlingExceptionRoute53GlobalResolver.Client.exceptions.ResourceNotFoundException