Skip to main content

domain_names

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

Overview

Namedomain_names
TypeResource
Idaws.appsync.domain_names

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
appsync_domain_namestringThe domain name that AppSync provides.
certificate_arnstringThe Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate. (pattern: <code>^arn:[a-z-]:(acm|iam):[a-z0-9-]:\d{12}:(certificate|server-certificate)/[0-9A-Za-z_/-]*$</code>)
descriptionstringA description of the DomainName configuration. (pattern: <code>^.*$</code>)
domain_namestringThe domain name. (pattern: <code>^(*[\w\d-]*.)?([\w\d-]+.)+[\w\d-]+$</code>)
domain_name_arnstringThe Amazon Resource Name (ARN) of the domain name.
hosted_zone_idstringThe ID of your Amazon Route 53 hosted zone.
tagsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domain_nameselectdomain_name, regionRetrieves a custom DomainName object.
list_domain_namesselectregionnextToken, maxResultsLists multiple custom domain names.
create_domain_nameinsertregion, domainName, certificateArnCreates a custom DomainName object.
update_domain_nameupdatedomain_name, regionUpdates a custom DomainName object.
delete_domain_namedeletedomain_name, regionDeletes a custom DomainName object.

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)
maxResultsintegerThe maximum number of results that you want the request to return.
nextTokenstringAn identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.

SELECT examples

Retrieves a custom DomainName object.

SELECT
appsync_domain_name,
certificate_arn,
description,
domain_name,
domain_name_arn,
hosted_zone_id,
tags
FROM aws.appsync.domain_names
WHERE domain_name = '{{ domain_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a custom DomainName object.

INSERT INTO aws.appsync.domain_names (
domainName,
certificateArn,
description,
tags,
region
)
SELECT
'{{ domainName }}' /* required */,
'{{ certificateArn }}' /* required */,
'{{ description }}',
'{{ tags }}',
'{{ region }}'
RETURNING
domain_name_config
;

UPDATE examples

Updates a custom DomainName object.

UPDATE aws.appsync.domain_names
SET
description = '{{ description }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
RETURNING
domain_name_config;

DELETE examples

Deletes a custom DomainName object.

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