- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
GetVocabularyCommand
Provides information about the specified custom vocabulary.
To view the status of the specified custom vocabulary, check the VocabularyState
field. If the status is READY
, your custom vocabulary is available to use. If the status is FAILED
, FailureReason
provides details on why your custom vocabulary failed.
To get a list of your custom vocabularies, use the operation.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { TranscribeClient, GetVocabularyCommand } from "@aws-sdk/client-transcribe"; // ES Modules import
// const { TranscribeClient, GetVocabularyCommand } = require("@aws-sdk/client-transcribe"); // CommonJS import
const client = new TranscribeClient(config);
const input = { // GetVocabularyRequest
VocabularyName: "STRING_VALUE", // required
};
const command = new GetVocabularyCommand(input);
const response = await client.send(command);
// { // GetVocabularyResponse
// VocabularyName: "STRING_VALUE",
// LanguageCode: "af-ZA" || "ar-AE" || "ar-SA" || "da-DK" || "de-CH" || "de-DE" || "en-AB" || "en-AU" || "en-GB" || "en-IE" || "en-IN" || "en-US" || "en-WL" || "es-ES" || "es-US" || "fa-IR" || "fr-CA" || "fr-FR" || "he-IL" || "hi-IN" || "id-ID" || "it-IT" || "ja-JP" || "ko-KR" || "ms-MY" || "nl-NL" || "pt-BR" || "pt-PT" || "ru-RU" || "ta-IN" || "te-IN" || "tr-TR" || "zh-CN" || "zh-TW" || "th-TH" || "en-ZA" || "en-NZ" || "vi-VN" || "sv-SE" || "ab-GE" || "ast-ES" || "az-AZ" || "ba-RU" || "be-BY" || "bg-BG" || "bn-IN" || "bs-BA" || "ca-ES" || "ckb-IQ" || "ckb-IR" || "cs-CZ" || "cy-WL" || "el-GR" || "et-ET" || "eu-ES" || "fi-FI" || "gl-ES" || "gu-IN" || "ha-NG" || "hr-HR" || "hu-HU" || "hy-AM" || "is-IS" || "ka-GE" || "kab-DZ" || "kk-KZ" || "kn-IN" || "ky-KG" || "lg-IN" || "lt-LT" || "lv-LV" || "mhr-RU" || "mi-NZ" || "mk-MK" || "ml-IN" || "mn-MN" || "mr-IN" || "mt-MT" || "no-NO" || "or-IN" || "pa-IN" || "pl-PL" || "ps-AF" || "ro-RO" || "rw-RW" || "si-LK" || "sk-SK" || "sl-SI" || "so-SO" || "sr-RS" || "su-ID" || "sw-BI" || "sw-KE" || "sw-RW" || "sw-TZ" || "sw-UG" || "tl-PH" || "tt-RU" || "ug-CN" || "uk-UA" || "uz-UZ" || "wo-SN" || "zh-HK" || "zu-ZA",
// VocabularyState: "PENDING" || "READY" || "FAILED",
// LastModifiedTime: new Date("TIMESTAMP"),
// FailureReason: "STRING_VALUE",
// DownloadUri: "STRING_VALUE",
// };
GetVocabularyCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
VocabularyName Required | string | undefined | The name of the custom vocabulary you want information about. Custom vocabulary names are case sensitive. |
GetVocabularyCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
DownloadUri | string | undefined | The Amazon S3 location where the custom vocabulary is stored; use this URI to view or download the custom vocabulary. |
FailureReason | string | undefined | If |
LanguageCode | LanguageCode | undefined | The language code you selected for your custom vocabulary. |
LastModifiedTime | Date | undefined | The date and time the specified custom vocabulary was last modified. Timestamps are in the format |
VocabularyName | string | undefined | The name of the custom vocabulary you requested information about. |
VocabularyState | VocabularyState | undefined | The processing state of your custom vocabulary. If the state is |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
BadRequestException | client | Your request didn't pass one or more validation tests. This can occur when the entity you're trying to delete doesn't exist or if it's in a non-terminal state (such as |
InternalFailureException | server | There was an internal error. Check the error message, correct the issue, and try your request again. |
LimitExceededException | client | You've either sent too many requests or your input file is too long. Wait before retrying your request, or use a smaller file and try your request again. |
NotFoundException | client | We can't find the requested resource. Check that the specified name is correct and try your request again. |
TranscribeServiceException | Base exception class for all service exceptions from Transcribe service. |