Class CfnVocabulary
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.transcribe.CfnVocabulary
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IVocabularyRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:05:02.879Z")
@Stability(Stable)
public class CfnVocabulary
extends CfnResource
implements IInspectable, IVocabularyRef, ITaggableV2
Creates a custom vocabulary that you can use to improve the transcription accuracy of domain-specific words and phrases.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.transcribe.*;
CfnVocabulary cfnVocabulary = CfnVocabulary.Builder.create(this, "MyCfnVocabulary")
.languageCode("languageCode")
.vocabularyName("vocabularyName")
// the properties below are optional
.dataAccessRoleArn("dataAccessRoleArn")
.phrases(List.of("phrases"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vocabularyFileUri("vocabularyFileUri")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.transcribe.IVocabularyRef
IVocabularyRef.Jsii$Default, IVocabularyRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnVocabulary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVocabulary(software.amazon.jsii.JsiiObjectRef objRef) CfnVocabulary(software.constructs.Construct scope, String id, CfnVocabularyProps props) Create a newAWS::Transcribe::Vocabulary. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForVocabulary(IVocabularyRef resource) The Amazon Resource Name (ARN) of the custom vocabulary.The date and time the specified custom vocabulary was last modified.The processing state of your custom vocabulary.Tag Manager which manages the tags for this resource.The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file.The language code that represents the language of the entries in your custom vocabulary.Use this parameter if you want to create your custom vocabulary by including all desired terms, as comma-separated values, within your request.getTags()Adds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary.The Amazon S3 location of the text file that contains your custom vocabulary.A unique name, chosen by you, for your custom vocabulary.A reference to a Vocabulary resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnVocabulary.renderProperties(Map<String, Object> props) voidsetDataAccessRoleArn(String value) The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file.voidsetLanguageCode(String value) The language code that represents the language of the entries in your custom vocabulary.voidsetPhrases(List<String> value) Use this parameter if you want to create your custom vocabulary by including all desired terms, as comma-separated values, within your request.voidAdds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary.voidsetVocabularyFileUri(String value) The Amazon S3 location of the text file that contains your custom vocabulary.voidsetVocabularyName(String value) A unique name, chosen by you, for your custom vocabulary.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVocabulary
protected CfnVocabulary(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVocabulary
protected CfnVocabulary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVocabulary
@Stability(Stable) public CfnVocabulary(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnVocabularyProps props) Create a newAWS::Transcribe::Vocabulary.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForVocabulary
- Parameters:
resource- This parameter is required.
-
isCfnVocabulary
Checks whether the given object is a CfnVocabulary.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the custom vocabulary. -
getAttrLastModifiedTime
The date and time the specified custom vocabulary was last modified. -
getAttrVocabularyState
The processing state of your custom vocabulary.If the state is READY, you can use the custom vocabulary in a StartTranscriptionJob request.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getVocabularyRef
A reference to a Vocabulary resource.- Specified by:
getVocabularyRefin interfaceIVocabularyRef
-
getLanguageCode
The language code that represents the language of the entries in your custom vocabulary. -
setLanguageCode
The language code that represents the language of the entries in your custom vocabulary. -
getVocabularyName
A unique name, chosen by you, for your custom vocabulary. -
setVocabularyName
A unique name, chosen by you, for your custom vocabulary. -
getDataAccessRoleArn
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file. -
setDataAccessRoleArn
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file. -
getPhrases
Use this parameter if you want to create your custom vocabulary by including all desired terms, as comma-separated values, within your request. -
setPhrases
Use this parameter if you want to create your custom vocabulary by including all desired terms, as comma-separated values, within your request. -
getTags
Adds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary. -
setTags
Adds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary. -
getVocabularyFileUri
The Amazon S3 location of the text file that contains your custom vocabulary. -
setVocabularyFileUri
The Amazon S3 location of the text file that contains your custom vocabulary.
-