Skip to main content

domain_names

Creates, updates, deletes or gets a domain_name resource or lists domain_names in a region

Overview

Namedomain_names
TypeResource
DescriptionResource Type definition for AWS::AppSync::DomainName
Idaws.appsync.domain_names

Fields

NameDatatypeDescription
domain_namestring
descriptionstring
certificate_arnstring
app_sync_domain_namestring
hosted_zone_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainName, CertificateArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all domain_names in a region.

SELECT
region,
domain_name,
description,
certificate_arn,
app_sync_domain_name,
hosted_zone_id
FROM aws.appsync.domain_names
WHERE region = 'us-east-1';

Gets all properties from an individual domain_name.

SELECT
region,
domain_name,
description,
certificate_arn,
app_sync_domain_name,
hosted_zone_id
FROM aws.appsync.domain_names
WHERE region = 'us-east-1' AND data__Identifier = '<DomainName>';

INSERT example

Use the following StackQL query and manifest file to create a new domain_name resource, using stack-deploy.

/*+ create */
INSERT INTO aws.appsync.domain_names (
DomainName,
CertificateArn,
region
)
SELECT
'{{ DomainName }}',
'{{ CertificateArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.appsync.domain_names
WHERE data__Identifier = '<DomainName>'
AND region = 'us-east-1';

Permissions

To operate on the domain_names resource, the following permissions are required:

Create

appsync:CreateDomainName,
appsync:GetDomainName,
acm:DescribeCertificate,
cloudfront:UpdateDistribution

Delete

appsync:GetDomainName,
appsync:DeleteDomainName

Update

appsync:UpdateDomainName

Read

appsync:GetDomainName

List

appsync:ListDomainNames