Skip to main content

domains

Creates, updates, deletes or gets a domain resource or lists domains in a region

Overview

Namedomains
TypeResource
DescriptionThe AWS::VoiceID::Domain resource specifies an Amazon VoiceID Domain.
Idaws.voiceid.domains

Fields

NameDatatypeDescription
descriptionstring
domain_idstring
namestring
server_side_encryption_configurationobject
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, ServerSideEncryptionConfiguration, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all domains in a region.

SELECT
region,
description,
domain_id,
name,
server_side_encryption_configuration,
tags
FROM aws.voiceid.domains
WHERE region = 'us-east-1';

Gets all properties from an individual domain.

SELECT
region,
description,
domain_id,
name,
server_side_encryption_configuration,
tags
FROM aws.voiceid.domains
WHERE region = 'us-east-1' AND data__Identifier = '<DomainId>';

INSERT example

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

/*+ create */
INSERT INTO aws.voiceid.domains (
Name,
ServerSideEncryptionConfiguration,
region
)
SELECT
'{{ Name }}',
'{{ ServerSideEncryptionConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.voiceid.domains
WHERE data__Identifier = '<DomainId>'
AND region = 'us-east-1';

Permissions

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

Create

voiceid:CreateDomain,
voiceid:DescribeDomain,
voiceid:TagResource,
voiceid:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:Decrypt

Read

voiceid:DescribeDomain,
voiceid:ListTagsForResource,
kms:Decrypt

Update

voiceid:DescribeDomain,
voiceid:UpdateDomain,
voiceid:TagResource,
voiceid:UntagResource,
voiceid:ListTagsForResource,
kms:CreateGrant,
kms:Decrypt,
kms:DescribeKey

Delete

voiceid:DeleteDomain,
voiceid:DescribeDomain,
kms:Decrypt

List

voiceid:ListDomains,
kms:Decrypt