Skip to main content

watchlists

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

Overview

Namewatchlists
TypeResource
Idaws.voice_id.watchlists

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp of when the watchlist was created.
default_watchlistbooleanWhether the specified watchlist is the default watchlist of a domain.
descriptionstringThe description of the watchlist. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-%@]*)$</code>)
domain_idstringThe identifier of the domain that contains the watchlist. (pattern: <code>^[a-zA-Z0-9]{22}$</code>)
namestringThe name for the watchlist. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9_-]*$</code>)
updated_atstring (date-time)The timestamp of when the watchlist was updated.
watchlist_idstringThe identifier of the watchlist. (pattern: <code>^[a-zA-Z0-9]{22}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_watchlistselectregionDescribes the specified watchlist.
list_watchlistsselectregionLists all watchlists in a specified domain.
create_watchlistinsertregion, DomainIdCreates a watchlist that fraudsters can be a part of.
update_watchlistupdateregion, DomainId, WatchlistIdUpdates the specified watchlist. Every domain has a default watchlist which cannot be updated.
delete_watchlistdeleteregionDeletes the specified watchlist from Voice ID. This API throws an exception when there are fraudsters in the watchlist that you are trying to delete. You must delete the fraudsters, and then delete the watchlist. Every domain has a default watchlist which cannot be deleted.

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 watchlist.

SELECT
created_at,
default_watchlist,
description,
domain_id,
name,
updated_at,
watchlist_id
FROM aws.voice_id.watchlists
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a watchlist that fraudsters can be a part of.

INSERT INTO aws.voice_id.watchlists (
ClientToken,
Description,
DomainId,
Name,
region
)
SELECT
'{{ ClientToken }}',
'{{ Description }}',
'{{ DomainId }}' /* required */,
'{{ Name }}',
'{{ region }}'
RETURNING
watchlist
;

UPDATE examples

Updates the specified watchlist. Every domain has a default watchlist which cannot be updated.

UPDATE aws.voice_id.watchlists
SET
Description = '{{ Description }}',
DomainId = '{{ DomainId }}',
Name = '{{ Name }}',
WatchlistId = '{{ WatchlistId }}'
WHERE
region = '{{ region }}' --required
AND DomainId = '{{ DomainId }}' --required
AND WatchlistId = '{{ WatchlistId }}' --required
RETURNING
watchlist;

DELETE examples

Deletes the specified watchlist from Voice ID. This API throws an exception when there are fraudsters in the watchlist that you are trying to delete. You must delete the fraudsters, and then delete the watchlist. Every domain has a default watchlist which cannot be deleted.

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