Skip to main content

vocabularies

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

Overview

Namevocabularies
TypeResource
Idaws.connect.vocabularies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the custom vocabulary.
contentstringThe content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see Create a custom vocabulary using a table.
failure_reasonstringThe reason why the custom vocabulary was not created.
idstringThe identifier of the custom vocabulary.
language_codestringThe language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe? (ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP, ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA, ca-ES, da-DK, fi-FI, id-ID, ms-MY, nl-NL, no-NO, pl-PL, sv-SE, tl-PH)
last_modified_timestring (date-time)The timestamp when the custom vocabulary was last modified.
namestringA unique name of the custom vocabulary. (pattern: <code>^[0-9a-zA-Z._-]+</code>)
statestringThe current state of the custom vocabulary. (CREATION_IN_PROGRESS, ACTIVE, CREATION_FAILED, DELETE_IN_PROGRESS)
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vocabularyselectinstance_id, vocabulary_id, regionDescribes the specified vocabulary.
search_vocabulariesselectinstance_id, regionSearches for vocabularies within a specific Connect Customer instance using State, NameStartsWith, and LanguageCode.
create_vocabularyinsertinstance_id, region, VocabularyName, LanguageCode, ContentCreates a custom vocabulary associated with your Connect Customer instance. You can set a custom vocabulary to be your default vocabulary for a given language. Contact Lens for Connect Customer uses the default vocabulary in post-call and real-time contact analysis sessions for that language.
delete_vocabularydeleteinstance_id, vocabulary_id, regionDeletes the vocabulary that has the given identifier.

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
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
vocabulary_idstringThe identifier of the custom vocabulary.

SELECT examples

Describes the specified vocabulary.

SELECT
arn,
content,
failure_reason,
id,
language_code,
last_modified_time,
name,
state,
tags
FROM aws.connect.vocabularies
WHERE instance_id = '{{ instance_id }}' -- required
AND vocabulary_id = '{{ vocabulary_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a custom vocabulary associated with your Connect Customer instance. You can set a custom vocabulary to be your default vocabulary for a given language. Contact Lens for Connect Customer uses the default vocabulary in post-call and real-time contact analysis sessions for that language.

INSERT INTO aws.connect.vocabularies (
ClientToken,
VocabularyName,
LanguageCode,
Content,
Tags,
instance_id,
region
)
SELECT
'{{ ClientToken }}',
'{{ VocabularyName }}' /* required */,
'{{ LanguageCode }}' /* required */,
'{{ Content }}' /* required */,
'{{ Tags }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
state,
vocabulary_arn,
vocabulary_id
;

DELETE examples

Deletes the vocabulary that has the given identifier.

DELETE FROM aws.connect.vocabularies
WHERE instance_id = '{{ instance_id }}' --required
AND vocabulary_id = '{{ vocabulary_id }}' --required
AND region = '{{ region }}' --required
;