Skip to main content

access_sources

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

Overview

Nameaccess_sources
TypeResource
Idaws.route53globalresolver.access_sources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID for the rule. (pattern: <code>[-.a-zA-Z0-9]+</code>)
namestringName for the access source. (pattern: <code>(?!^[0-9]+$)([a-zA-Z0-9-_/' ']+)</code>)
arnstringThe Amazon Resource Name (ARN) of the access source. (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>)
cidrstringThe IP range for the rule's parameters in CIDR notation.
created_atstring (date-time)The time and date the rule was created.
dns_view_idstringID for the DNS view that the rule is associated to. (pattern: <code>[-.a-zA-Z0-9]+</code>)
ip_address_typestringThe IP address type. (IPV4, IPV6)
protocolstringThe protocol determines how data is transmitted to a Global Resolver instance. (DO53, DOH, DOT)
statusstringInformation about the status of the rule. (CREATING, OPERATIONAL, UPDATING, DELETING)
updated_atstring (date-time)The time and date the access source was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_access_sourceselectaccess_source_id, regionRetrieves information about an access source. 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_sourcesselectregionmax_results, next_token, filtersLists all access sources 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_sourceinsertregion, cidr, dnsViewId, protocolCreates an access source for a DNS view. Access sources define IP addresses or CIDR ranges that are allowed to send DNS queries to the Route 53 Global Resolver, along with the permitted DNS protocols. 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_sourceupdateaccess_source_id, regionUpdates the configuration of an access source. 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_sourcedeleteaccess_source_id, regionDeletes an access source. 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_source_idstringThe unique identifier of the access source to delete.
regionstringAWS region (default: us-east-1)
filtersobjectValues to filter the results.
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 source. 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,
cidr,
created_at,
dns_view_id,
ip_address_type,
protocol,
status,
updated_at
FROM aws.route53globalresolver.access_sources
WHERE access_source_id = '{{ access_source_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an access source for a DNS view. Access sources define IP addresses or CIDR ranges that are allowed to send DNS queries to the Route 53 Global Resolver, along with the permitted DNS protocols. 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_sources (
cidr,
clientToken,
ipAddressType,
name,
dnsViewId,
protocol,
tags,
region
)
SELECT
'{{ cidr }}' /* required */,
'{{ clientToken }}',
'{{ ipAddressType }}',
'{{ name }}',
'{{ dnsViewId }}' /* required */,
'{{ protocol }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
arn,
cidr,
created_at,
dns_view_id,
ip_address_type,
protocol,
status,
updated_at
;

UPDATE examples

Updates the configuration of an access source. 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_sources
SET
cidr = '{{ cidr }}',
ipAddressType = '{{ ipAddressType }}',
name = '{{ name }}',
protocol = '{{ protocol }}'
WHERE
access_source_id = '{{ access_source_id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
arn,
cidr,
created_at,
dns_view_id,
ip_address_type,
protocol,
status,
updated_at;

DELETE examples

Deletes an access source. 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_sources
WHERE access_source_id = '{{ access_source_id }}' --required
AND region = '{{ region }}' --required
;