Skip to main content

access_tokens

Creates, updates, deletes, gets or lists an access_tokens resource.

Overview

Nameaccess_tokens
TypeResource
Idaws.route53globalresolver.access_tokens

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the token. (pattern: <code>[-.a-zA-Z0-9]+</code>)
namestringName of the token. (pattern: <code>(?!^[0-9]+$)([a-zA-Z0-9-_/' ']+)</code>)
arnstringThe Amazon Resource Name (ARN) of the token. (pattern: <code>arn:[-.a-z0-9]{1,63}:[-.a-z0-9]{1,63}:[-.a-z0-9]{0,63}:[-.a-z0-9]{0,63}:[^/].{0,1023}</code>)
client_tokenstringA unique, case-sensitive identifier to ensure idempotency. This means that making the same request multiple times with the same clientToken has the same result every time.
created_atstring (date-time)The time and date the token was created.
dns_view_idstringID of the DNS view the token is associated to. (pattern: <code>[-.a-zA-Z0-9]+</code>)
expires_atstring (date-time)The token's expiration time and date.
global_resolver_idstringID of the Global Resolver. (pattern: <code>[-.a-zA-Z0-9]+</code>)
statusstringThe operational status of the token. (CREATING, OPERATIONAL, DELETING)
updated_atstring (date-time)The time and date the token was created.
valuestringThe value of the token.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_access_tokenselectaccess_token_id, regionRetrieves information about an access token. 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-2 on Amazon Web Services CLI commands.
list_access_tokensselectdns_view_id, regionmax_results, next_token, filtersLists all access tokens for a DNS view with pagination support. 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-2 on Amazon Web Services CLI commands.
create_access_tokeninsertdns_view_id, regionCreates an access token for a DNS view. Access tokens provide token-based authentication for DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT) connections to the Route 53 Global Resolver. 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-2 on Amazon Web Services CLI commands.
update_access_tokenupdateaccess_token_id, region, nameUpdates the configuration of an access token. 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-2 on Amazon Web Services CLI commands.
delete_access_tokendeleteaccess_token_id, regionDeletes an access token. This operation cannot be undone. 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-2 on Amazon Web Services CLI commands.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
access_token_idstringThe unique identifier of the access token to delete.
dns_view_idstringThe ID of the DNS view to associate with this token.
regionstringAWS region (default: us-east-1)
filtersobjectFiltering parameters.
max_resultsintegerThe maximum number of results to retrieve in a single call.
next_tokenstringA pagination token used for large sets of results that can't be returned in a single response.

SELECT examples

Retrieves information about an access token. 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-2 on Amazon Web Services CLI commands.

SELECT
id,
name,
arn,
client_token,
created_at,
dns_view_id,
expires_at,
global_resolver_id,
status,
updated_at,
value
FROM aws.route53globalresolver.access_tokens
WHERE access_token_id = '{{ access_token_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an access token for a DNS view. Access tokens provide token-based authentication for DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT) connections to the Route 53 Global Resolver. 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-2 on Amazon Web Services CLI commands.

INSERT INTO aws.route53globalresolver.access_tokens (
clientToken,
expiresAt,
name,
tags,
dns_view_id,
region
)
SELECT
'{{ clientToken }}',
'{{ expiresAt }}',
'{{ name }}',
'{{ tags }}',
'{{ dns_view_id }}',
'{{ region }}'
RETURNING
id,
name,
arn,
client_token,
created_at,
dns_view_id,
expires_at,
status,
value
;

UPDATE examples

Updates the configuration of an access token. 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-2 on Amazon Web Services CLI commands.

UPDATE aws.route53globalresolver.access_tokens
SET
name = '{{ name }}'
WHERE
access_token_id = '{{ access_token_id }}' --required
AND region = '{{ region }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
name;

DELETE examples

Deletes an access token. This operation cannot be undone. 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-2 on Amazon Web Services CLI commands.

DELETE FROM aws.route53globalresolver.access_tokens
WHERE access_token_id = '{{ access_token_id }}' --required
AND region = '{{ region }}' --required
;