Skip to main content

domain_names

Creates, updates, deletes, gets or lists a domain_names resource.

Overview​

Namedomain_names
TypeResource
Idaws.apigatewayv2.domain_names

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
api_mapping_selection_expressionstringAn expression used to extract information at runtime. See Selection Expressions for more information.
domain_namestringA string with a length between [1-512].
domain_name_arnstringRepresents an Amazon Resource Name (ARN).
domain_name_configurationsarrayThe domain name configurations.
mutual_tls_authenticationobjectThe mutual TLS authentication configuration for a custom domain name.
routing_modestringThe routing mode. (API_MAPPING_ONLY, ROUTING_RULE_ONLY, ROUTING_RULE_THEN_API_MAPPING)
tagsobjectThe collection of tags associated with a domain name.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domain_nameselectdomain_name, regionGets a domain name.
get_domain_namesselectregionmaxResults, nextTokenGets the domain names for an AWS account.
create_domain_nameinsertregion, DomainNameCreates a domain name.
update_domain_nameupdatedomain_name, regionUpdates a domain name.
delete_domain_namedeletedomain_name, regionDeletes a domain name.

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
domain_namestringThe domain name.
regionstringAWS region (default: us-east-1)
maxResultsstringThe maximum number of elements to be returned for this resource.
nextTokenstringThe next page of elements from this collection. Not valid for the last element of the collection.

SELECT examples​

Gets a domain name.

SELECT
api_mapping_selection_expression,
domain_name,
domain_name_arn,
domain_name_configurations,
mutual_tls_authentication,
routing_mode,
tags
FROM aws.apigatewayv2.domain_names
WHERE domain_name = '{{ domain_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a domain name.

INSERT INTO aws.apigatewayv2.domain_names (
DomainName,
DomainNameConfigurations,
MutualTlsAuthentication,
RoutingMode,
Tags,
region
)
SELECT
'{{ DomainName }}' /* required */,
'{{ DomainNameConfigurations }}',
'{{ MutualTlsAuthentication }}',
'{{ RoutingMode }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
api_mapping_selection_expression,
domain_name,
domain_name_arn,
domain_name_configurations,
mutual_tls_authentication,
routing_mode,
tags
;

UPDATE examples​

Updates a domain name.

UPDATE aws.apigatewayv2.domain_names
SET
DomainNameConfigurations = '{{ DomainNameConfigurations }}',
MutualTlsAuthentication = '{{ MutualTlsAuthentication }}',
RoutingMode = '{{ RoutingMode }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
RETURNING
api_mapping_selection_expression,
domain_name,
domain_name_arn,
domain_name_configurations,
mutual_tls_authentication,
routing_mode,
tags;

DELETE examples​

Deletes a domain name.

DELETE FROM aws.apigatewayv2.domain_names
WHERE domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
;