Skip to content

UpdateVocabulary

Source: src/AWS/Transcribe/UpdateVocabulary.ts

Runtime binding for transcribe:UpdateVocabulary — replace a custom vocabulary’s phrases (the vocabulary re-enters PENDING while it reprocesses).

Amazon Transcribe batch actions have no resource-level IAM; the host is granted transcribe:UpdateVocabulary on *.

// init
const updateVocabulary = yield* AWS.Transcribe.UpdateVocabulary();
// runtime
yield* updateVocabulary({
VocabularyName: "tenant-123-vocabulary",
LanguageCode: "en-US",
Phrases: ["Alchemy", "workerd", "distilled"],
});