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
Idawscc.appsync.domain_names

Fields

NameDatatypeDescription
domain_namestring
descriptionstring
certificate_arnstring
app_sync_domain_namestring
hosted_zone_idstring
domain_name_arnstringThe Amazon Resource Name (ARN) for the Domain Name.
tagsarrayAn arbitrary set of tags (key-value pairs) for this Domain Name.
regionstringAWS region.

For more information, see AWS::AppSync::DomainName.

Methods

NameResourceAccessible byRequired Params
create_resourcedomain_namesINSERTDomainName, CertificateArn, region
delete_resourcedomain_namesDELETEIdentifier, region
update_resourcedomain_namesUPDATEIdentifier, PatchDocument, region
list_resourcesdomain_names_list_onlySELECTregion
get_resourcedomain_namesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual domain_name.

SELECT
region,
domain_name,
description,
certificate_arn,
app_sync_domain_name,
hosted_zone_id,
domain_name_arn,
tags
FROM awscc.appsync.domain_names
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.appsync.domain_names (
DomainName,
CertificateArn,
region
)
SELECT
'{{ domain_name }}',
'{{ certificate_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.appsync.domain_names
SET PatchDocument = string('{{ {
"Description": description,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.appsync.domain_names
WHERE
Identifier = '{{ domain_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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