default_vocabularies
Creates, updates, deletes, gets or lists a default_vocabularies resource.
Overview
| Name | default_vocabularies |
| Type | Resource |
| Id | aws.connect.default_vocabularies |
Fields
The following fields are returned by SELECT queries:
- list_default_vocabularies
| Name | Datatype | Description |
|---|---|---|
instance_id | string | The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. |
language_code | string | The 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) |
vocabulary_id | string | The identifier of the custom vocabulary. |
vocabulary_name | string | A unique name of the custom vocabulary. (pattern: <code>^[0-9a-zA-Z._-]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_default_vocabularies | select | instance_id, region | Lists the default vocabularies for the specified Connect Customer instance. | |
associate_default_vocabulary | update | instance_id, language_code, region | Associates an existing vocabulary as the default. Contact Lens for Connect Customer uses the vocabulary in post-call and real-time analysis sessions for the given language. |
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.
| Name | Datatype | Description |
|---|---|---|
instance_id | string | The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. |
language_code | string | The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe? |
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_default_vocabularies
Lists the default vocabularies for the specified Connect Customer instance.
SELECT
instance_id,
language_code,
vocabulary_id,
vocabulary_name
FROM aws.connect.default_vocabularies
WHERE instance_id = '{{ instance_id }}' -- required
AND region = '{{ region }}' -- required
;
UPDATE examples
- associate_default_vocabulary
Associates an existing vocabulary as the default. Contact Lens for Connect Customer uses the vocabulary in post-call and real-time analysis sessions for the given language.
UPDATE aws.connect.default_vocabularies
SET
VocabularyId = '{{ VocabularyId }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND language_code = '{{ language_code }}' --required
AND region = '{{ region }}' --required;