Class CfnVocabulary.Builder
java.lang.Object
software.amazon.awscdk.services.transcribe.CfnVocabulary.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVocabulary>
- Enclosing class:
CfnVocabulary
@Stability(Stable)
public static final class CfnVocabulary.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVocabulary>
A fluent builder for
CfnVocabulary.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnVocabulary.BuilderdataAccessRoleArn(String dataAccessRoleArn) The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file.languageCode(String languageCode) 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.Adds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary.vocabularyFileUri(String vocabularyFileUri) The Amazon S3 location of the text file that contains your custom vocabulary.vocabularyName(String vocabularyName) A unique name, chosen by you, for your custom vocabulary.
-
Method Details
-
create
@Stability(Stable) public static CfnVocabulary.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnVocabulary.Builder.
-
languageCode
The language code that represents the language of the entries in your custom vocabulary.Each custom vocabulary must contain terms in only one language.
- Parameters:
languageCode- The language code that represents the language of the entries in your custom vocabulary. This parameter is required.- Returns:
this- See Also:
-
vocabularyName
A unique name, chosen by you, for your custom vocabulary.This name is case sensitive, cannot contain spaces, and must be unique within an AWS account.
- Parameters:
vocabularyName- A unique name, chosen by you, for your custom vocabulary. This parameter is required.- Returns:
this- See Also:
-
dataAccessRoleArn
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file.- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file. This parameter is required.- Returns:
this- See Also:
-
phrases
Use this parameter if you want to create your custom vocabulary by including all desired terms, as comma-separated values, within your request.You cannot use this parameter together with VocabularyFileUri.
- Parameters:
phrases- Use this parameter if you want to create your custom vocabulary by including all desired terms, as comma-separated values, within your request. This parameter is required.- Returns:
this- See Also:
-
tags
Adds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary.- Parameters:
tags- Adds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary. This parameter is required.- Returns:
this- See Also:
-
vocabularyFileUri
The Amazon S3 location of the text file that contains your custom vocabulary.You cannot use this parameter together with Phrases.
- Parameters:
vocabularyFileUri- The Amazon S3 location of the text file that contains your custom vocabulary. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVocabulary>- Returns:
- a newly built instance of
CfnVocabulary.
-