Class CfnEntityRecognizer.Builder
java.lang.Object
software.amazon.awscdk.services.comprehend.CfnEntityRecognizer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntityRecognizer>
- Enclosing class:
CfnEntityRecognizer
@Stability(Stable)
public static final class CfnEntityRecognizer.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntityRecognizer>
A fluent builder for
CfnEntityRecognizer.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnEntityRecognizer.BuilderdataAccessRoleArn(String dataAccessRoleArn) The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.inputDataConfig(IResolvable inputDataConfig) Specifies the format and location of the input data for an entity recognizer.Specifies the format and location of the input data for an entity recognizer.languageCode(String languageCode) The language of the input documents.modelKmsKeyId(String modelKmsKeyId) ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models.modelPolicy(String modelPolicy) The JSON resource-based policy to attach to your custom entity recognizer model.recognizerName(String recognizerName) The name given to the entity recognizer.Tags to associate with the entity recognizer.versionName(String versionName) The version name given to the entity recognizer.volumeKmsKeyId(String volumeKmsKeyId) ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s).vpcConfig(IResolvable vpcConfig) Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.vpcConfig(CfnEntityRecognizer.VpcConfigProperty vpcConfig) Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.
-
Method Details
-
create
@Stability(Stable) public static CfnEntityRecognizer.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
CfnEntityRecognizer.Builder.
-
dataAccessRoleArn
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. This parameter is required.- Returns:
this- See Also:
-
inputDataConfig
Specifies the format and location of the input data for an entity recognizer.- Parameters:
inputDataConfig- Specifies the format and location of the input data for an entity recognizer. This parameter is required.- Returns:
this- See Also:
-
inputDataConfig
@Stability(Stable) public CfnEntityRecognizer.Builder inputDataConfig(CfnEntityRecognizer.EntityRecognizerInputDataConfigProperty inputDataConfig) Specifies the format and location of the input data for an entity recognizer.- Parameters:
inputDataConfig- Specifies the format and location of the input data for an entity recognizer. This parameter is required.- Returns:
this- See Also:
-
languageCode
The language of the input documents.All documents must be in the same language.
- Parameters:
languageCode- The language of the input documents. This parameter is required.- Returns:
this- See Also:
-
recognizerName
The name given to the entity recognizer.- Parameters:
recognizerName- The name given to the entity recognizer. This parameter is required.- Returns:
this- See Also:
-
modelKmsKeyId
ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models.- Parameters:
modelKmsKeyId- ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models. This parameter is required.- Returns:
this- See Also:
-
modelPolicy
The JSON resource-based policy to attach to your custom entity recognizer model.- Parameters:
modelPolicy- The JSON resource-based policy to attach to your custom entity recognizer model. This parameter is required.- Returns:
this- See Also:
-
tags
Tags to associate with the entity recognizer.- Parameters:
tags- Tags to associate with the entity recognizer. This parameter is required.- Returns:
this- See Also:
-
versionName
The version name given to the entity recognizer.- Parameters:
versionName- The version name given to the entity recognizer. This parameter is required.- Returns:
this- See Also:
-
volumeKmsKeyId
ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s).- Parameters:
volumeKmsKeyId- ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s). This parameter is required.- Returns:
this- See Also:
-
vpcConfig
Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.- Parameters:
vpcConfig- Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
@Stability(Stable) public CfnEntityRecognizer.Builder vpcConfig(CfnEntityRecognizer.VpcConfigProperty vpcConfig) Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.- Parameters:
vpcConfig- Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEntityRecognizer>- Returns:
- a newly built instance of
CfnEntityRecognizer.
-