import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateVocabularyRequest, UpdateVocabularyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateVocabularyCommand}. */ export interface UpdateVocabularyCommandInput extends UpdateVocabularyRequest { } /** * @public * * The output of {@link UpdateVocabularyCommand}. */ export interface UpdateVocabularyCommandOutput extends UpdateVocabularyResponse, __MetadataBearer { } declare const UpdateVocabularyCommand_base: { new (input: UpdateVocabularyCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateVocabularyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates an existing custom vocabulary with new values. This operation overwrites all * existing information with your new values; you cannot append new terms onto an existing * custom vocabulary.

*

Your custom vocabulary must be in a terminal state (READY or * FAILED) before you can update it. You must include either * Phrases or VocabularyFileUri in your request.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TranscribeClient, UpdateVocabularyCommand } from "@aws-sdk/client-transcribe"; // ES Modules import * // const { TranscribeClient, UpdateVocabularyCommand } = require("@aws-sdk/client-transcribe"); // CommonJS import * // import type { TranscribeClientConfig } from "@aws-sdk/client-transcribe"; * const config = {}; // type is TranscribeClientConfig * const client = new TranscribeClient(config); * const input = { // UpdateVocabularyRequest * VocabularyName: "STRING_VALUE", // required * LanguageCode: "af-ZA" || "ar-AE" || "ar-SA" || "am-ET" || "cy-GB" || "da-DK" || "de-CH" || "de-DE" || "en-AB" || "en-AU" || "en-GB" || "en-IE" || "en-IN" || "en-US" || "en-WL" || "es-ES" || "es-MX" || "es-US" || "fa-AF" || "fa-IR" || "fr-CA" || "fr-FR" || "ga-IE" || "gd-GB" || "he-IL" || "hi-IN" || "ht-HT" || "id-ID" || "it-IT" || "ja-JP" || "jv-ID" || "km-KH" || "ko-KR" || "my-MM" || "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-EE" || "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" || "ne-NP" || "or-IN" || "pa-IN" || "pl-PL" || "ps-AF" || "ro-RO" || "rw-RW" || "si-LK" || "sk-SK" || "sl-SI" || "so-SO" || "sq-AL" || "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", // required * Phrases: [ // Phrases * "STRING_VALUE", * ], * VocabularyFileUri: "STRING_VALUE", * DataAccessRoleArn: "STRING_VALUE", * EncryptionConfiguration: { // EncryptionConfiguration * KMSEncryptionContext: { // KMSEncryptionContextMap * "": "STRING_VALUE", * }, * KMSKey: "STRING_VALUE", // required * }, * }; * const command = new UpdateVocabularyCommand(input); * const response = await client.send(command); * // { // UpdateVocabularyResponse * // VocabularyName: "STRING_VALUE", * // LanguageCode: "af-ZA" || "ar-AE" || "ar-SA" || "am-ET" || "cy-GB" || "da-DK" || "de-CH" || "de-DE" || "en-AB" || "en-AU" || "en-GB" || "en-IE" || "en-IN" || "en-US" || "en-WL" || "es-ES" || "es-MX" || "es-US" || "fa-AF" || "fa-IR" || "fr-CA" || "fr-FR" || "ga-IE" || "gd-GB" || "he-IL" || "hi-IN" || "ht-HT" || "id-ID" || "it-IT" || "ja-JP" || "jv-ID" || "km-KH" || "ko-KR" || "my-MM" || "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-EE" || "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" || "ne-NP" || "or-IN" || "pa-IN" || "pl-PL" || "ps-AF" || "ro-RO" || "rw-RW" || "si-LK" || "sk-SK" || "sl-SI" || "so-SO" || "sq-AL" || "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", * // LastModifiedTime: new Date("TIMESTAMP"), * // VocabularyState: "PENDING" || "READY" || "FAILED", * // }; * * ``` * * @param UpdateVocabularyCommandInput - {@link UpdateVocabularyCommandInput} * @returns {@link UpdateVocabularyCommandOutput} * @see {@link UpdateVocabularyCommandInput} for command's `input` shape. * @see {@link UpdateVocabularyCommandOutput} for command's `response` shape. * @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Your request didn't pass one or more validation tests. This can occur when a * parameter has an invalid value, when you combine parameters in a way that isn't * supported, when the entity you're trying to delete doesn't exist, or if it's in a * non-terminal state (such as IN PROGRESS). See the exception message field * for more information.

* * @throws {@link ConflictException} (client fault) *

A resource already exists with this name. Resource names must be unique within an * Amazon Web Services account.

* * @throws {@link InternalFailureException} (server fault) *

There was an internal error. Check the error message, correct the issue, and try your * request again.

* * @throws {@link LimitExceededException} (client fault) *

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.

* * @throws {@link NotFoundException} (client fault) *

We can't find the requested resource. Check that the specified name is correct and try * your request again.

* * @throws {@link TranscribeServiceException} *

Base exception class for all service exceptions from Transcribe service.

* * * @public */ export declare class UpdateVocabularyCommand extends UpdateVocabularyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateVocabularyRequest; output: UpdateVocabularyResponse; }; sdk: { input: UpdateVocabularyCommandInput; output: UpdateVocabularyCommandOutput; }; }; }