Skip to main content

dictionaries

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

Overview

Namedictionaries
TypeResource
Idaws.elementalinference.dictionaries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the dictionary. (pattern: <code>[a-zA-Z0-9]+</code>)
namestringThe name of the dictionary. (pattern: <code>[a-zA-Z0-9]([a-zA-Z0-9-_]{0,126}[a-zA-Z0-9])?</code>)
arnstringThe ARN of the dictionary.
languagestringThe language of the dictionary. (eng, fra, ita, deu, spa, por)
referencesarrayA list of feed IDs that reference this dictionary.
statusstringThe current status of the dictionary. (CREATING, AVAILABLE, REFERENCED, DELETING, DELETED)
tagsobjectThe tags associated with the dictionary.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_dictionaryselectid, regionRetrieves information about the specified dictionary.
list_dictionariesselectregionmaxResults, nextTokenLists the dictionaries in your account.
create_dictionaryinsertregion, name, languageCreates a custom dictionary for improving transcription accuracy. A dictionary contains custom words and phrases that the ASR engine might not recognize, such as brand names, technical terms, or proper nouns. You can reference a dictionary when configuring a smart subtitles output.
update_dictionaryupdateid, regionUpdates the specified dictionary.
delete_dictionarydeleteid, regionDeletes the specified dictionary. You cannot delete a dictionary that is referenced by a feed. You must first remove the dictionary reference from the feed's subtitling configuration.
export_dictionary_entriesexecid, regionExports the entries from the specified dictionary.

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
idstringThe ID of the dictionary whose entries you want to export.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per API request. Valid range: 1 to 100.
nextTokenstringThe token that identifies the next batch of results to return.

SELECT examples

Retrieves information about the specified dictionary.

SELECT
id,
name,
arn,
language,
references,
status,
tags
FROM aws.elementalinference.dictionaries
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a custom dictionary for improving transcription accuracy. A dictionary contains custom words and phrases that the ASR engine might not recognize, such as brand names, technical terms, or proper nouns. You can reference a dictionary when configuring a smart subtitles output.

INSERT INTO aws.elementalinference.dictionaries (
name,
language,
entries,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ language }}' /* required */,
'{{ entries }}',
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
arn,
language,
references,
status,
tags
;

UPDATE examples

Updates the specified dictionary.

UPDATE aws.elementalinference.dictionaries
SET
name = '{{ name }}',
language = '{{ language }}',
entries = '{{ entries }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
arn,
language,
references,
status,
tags;

DELETE examples

Deletes the specified dictionary. You cannot delete a dictionary that is referenced by a feed. You must first remove the dictionary reference from the feed's subtitling configuration.

DELETE FROM aws.elementalinference.dictionaries
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Exports the entries from the specified dictionary.

EXEC aws.elementalinference.dictionaries.export_dictionary_entries
@id='{{ id }}' --required,
@region='{{ region }}' --required
;