Skip to main content

domains

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

Overview

Namedomains
TypeResource
Idaws.voice_id.domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) for the domain. (pattern: <code>^arn:aws(-[^:]+)?:voiceid.+:[0-9]{12}:domain/[a-zA-Z0-9]{22}$</code>)
created_atstring (date-time)The timestamp of when the domain was created.
descriptionstringThe description of the domain. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-%@]*)$</code>)
domain_idstringThe identifier of the domain. (pattern: <code>^[a-zA-Z0-9]{22}$</code>)
domain_statusstringThe current status of the domain. (ACTIVE, PENDING, SUSPENDED)
namestringThe name for the domain. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9_-]*$</code>)
server_side_encryption_configurationobjectThe server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
server_side_encryption_update_detailsobjectDetails about the most recent server-side encryption configuration update. When the server-side encryption configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this update is complete, the domain's data can only be accessed using the new KMS key.
updated_atstring (date-time)The timestamp of when the domain was last update.
watchlist_detailsobjectThe watchlist details of a domain. Contains the default watchlist ID of the domain.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_domainselectregionDescribes the specified domain.
list_domainsselectregionLists all the domains in the Amazon Web Services account.
create_domaininsertregion, ServerSideEncryptionConfigurationCreates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints. Every domain is created with a default watchlist that fraudsters can be a part of.
update_domainupdateregion, DomainId, ServerSideEncryptionConfigurationUpdates the specified domain. This API has clobber behavior, and clears and replaces all attributes. If an optional field, such as 'Description' is not provided, it is removed from the domain.
delete_domaindeleteregionDeletes the specified domain from Voice ID.
evaluate_sessionexecregion, DomainId, SessionNameOrIdEvaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the specified domain.

SELECT
arn,
created_at,
description,
domain_id,
domain_status,
name,
server_side_encryption_configuration,
server_side_encryption_update_details,
updated_at,
watchlist_details
FROM aws.voice_id.domains
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints. Every domain is created with a default watchlist that fraudsters can be a part of.

INSERT INTO aws.voice_id.domains (
ClientToken,
Description,
Name,
ServerSideEncryptionConfiguration,
Tags,
region
)
SELECT
'{{ ClientToken }}',
'{{ Description }}',
'{{ Name }}',
'{{ ServerSideEncryptionConfiguration }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
domain
;

UPDATE examples

Updates the specified domain. This API has clobber behavior, and clears and replaces all attributes. If an optional field, such as 'Description' is not provided, it is removed from the domain.

UPDATE aws.voice_id.domains
SET
Description = '{{ Description }}',
DomainId = '{{ DomainId }}',
Name = '{{ Name }}',
ServerSideEncryptionConfiguration = '{{ ServerSideEncryptionConfiguration }}'
WHERE
region = '{{ region }}' --required
AND DomainId = '{{ DomainId }}' --required
AND ServerSideEncryptionConfiguration = '{{ ServerSideEncryptionConfiguration }}' --required
RETURNING
domain;

DELETE examples

Deletes the specified domain from Voice ID.

DELETE FROM aws.voice_id.domains
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.

EXEC aws.voice_id.domains.evaluate_session
@region='{{ region }}' --required
@@json=
'{
"DomainId": "{{ DomainId }}",
"SessionNameOrId": "{{ SessionNameOrId }}"
}'
;