domain_names
Creates, updates, deletes or gets a domain_name
resource or lists domain_names
in a region
Overview
Name | domain_names |
Type | Resource |
Description | Resource Type definition for AWS::AppSync::DomainName |
Id | aws.appsync.domain_names |
Fields
Name | Datatype | Description |
---|---|---|
domain_name | string | |
description | string | |
certificate_arn | string | |
app_sync_domain_name | string | |
hosted_zone_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | DomainName, CertificateArn, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.appsync.domain_names (
DomainName,
CertificateArn,
region
)
SELECT
'{{ DomainName }}',
'{{ CertificateArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.appsync.domain_names (
DomainName,
Description,
CertificateArn,
region
)
SELECT
'{{ DomainName }}',
'{{ Description }}',
'{{ CertificateArn }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: domain_name
props:
- name: DomainName
value: '{{ DomainName }}'
- name: Description
value: '{{ Description }}'
- name: CertificateArn
value: '{{ CertificateArn }}'
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