Class CfnEntityRecognizer
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.comprehend.CfnEntityRecognizer
- All Implemented Interfaces:
IInspectable,IEntityRecognizerRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:48.433Z")
@Stability(Stable)
public class CfnEntityRecognizer
extends CfnResource
implements IInspectable, IEntityRecognizerRef, ITaggableV2
An Amazon Comprehend custom entity recognizer: a trained model that identifies custom entity types in text, created via an asynchronous training job.
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.comprehend.*;
CfnEntityRecognizer cfnEntityRecognizer = CfnEntityRecognizer.Builder.create(this, "MyCfnEntityRecognizer")
.dataAccessRoleArn("dataAccessRoleArn")
.inputDataConfig(EntityRecognizerInputDataConfigProperty.builder()
.entityTypes(List.of(EntityTypesListItemProperty.builder()
.type("type")
.build()))
// the properties below are optional
.annotations(EntityRecognizerAnnotationsProperty.builder()
.s3Uri("s3Uri")
// the properties below are optional
.testS3Uri("testS3Uri")
.build())
.augmentedManifests(List.of(AugmentedManifestsListItemProperty.builder()
.attributeNames(List.of("attributeNames"))
.s3Uri("s3Uri")
// the properties below are optional
.annotationDataS3Uri("annotationDataS3Uri")
.documentType("documentType")
.sourceDocumentsS3Uri("sourceDocumentsS3Uri")
.split("split")
.build()))
.dataFormat("dataFormat")
.documents(EntityRecognizerDocumentsProperty.builder()
.s3Uri("s3Uri")
// the properties below are optional
.inputFormat("inputFormat")
.testS3Uri("testS3Uri")
.build())
.entityList(EntityRecognizerEntityListProperty.builder()
.s3Uri("s3Uri")
.build())
.build())
.languageCode("languageCode")
.recognizerName("recognizerName")
// the properties below are optional
.modelKmsKeyId("modelKmsKeyId")
.modelPolicy("modelPolicy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.versionName("versionName")
.volumeKmsKeyId("volumeKmsKeyId")
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn augmented manifest file that provides training data for your custom model.static final classA fluent builder forCfnEntityRecognizer.static interfaceDescribes the annotations associated with an entity recognizer.static interfaceDescribes the training documents submitted with an entity recognizer.static interfaceDescribes the entity list submitted with an entity recognizer.static interfaceSpecifies the format and location of the input data for an entity recognizer.static interfaceAn entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.static interfaceConfiguration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.Nested 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.interfaces.comprehend.IEntityRecognizerRef
IEntityRecognizerRef.Jsii$Default, IEntityRecognizerRef.Jsii$ProxyNested 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$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEntityRecognizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEntityRecognizer(software.amazon.jsii.JsiiObjectRef objRef) CfnEntityRecognizer(software.constructs.Construct scope, String id, CfnEntityRecognizerProps props) Create a newAWS::Comprehend::EntityRecognizer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForEntityRecognizer(IEntityRecognizerRef resource) The Amazon Resource Name (ARN) that identifies the entity recognizer.Tag Manager which manages the tags for this resource.The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.A reference to a EntityRecognizer resource.Specifies the format and location of the input data for an entity recognizer.The language of the input documents.ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models.The JSON resource-based policy to attach to your custom entity recognizer model.The name given to the entity recognizer.getTags()Tags to associate with the entity recognizer.The version name given to the entity recognizer.ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s).Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnEntityRecognizer.renderProperties(Map<String, Object> props) voidsetDataAccessRoleArn(String value) The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.voidsetInputDataConfig(IResolvable value) Specifies the format and location of the input data for an entity recognizer.voidSpecifies the format and location of the input data for an entity recognizer.voidsetLanguageCode(String value) The language of the input documents.voidsetModelKmsKeyId(String value) ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models.voidsetModelPolicy(String value) The JSON resource-based policy to attach to your custom entity recognizer model.voidsetRecognizerName(String value) The name given to the entity recognizer.voidTags to associate with the entity recognizer.voidsetVersionName(String value) The version name given to the entity recognizer.voidsetVolumeKmsKeyId(String value) ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s).voidsetVpcConfig(IResolvable value) Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.voidConfiguration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.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
-
CfnEntityRecognizer
protected CfnEntityRecognizer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEntityRecognizer
protected CfnEntityRecognizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEntityRecognizer
@Stability(Stable) public CfnEntityRecognizer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEntityRecognizerProps props) Create a newAWS::Comprehend::EntityRecognizer.- 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
-
arnForEntityRecognizer
@Stability(Stable) @NotNull public static String arnForEntityRecognizer(@NotNull IEntityRecognizerRef resource) - Parameters:
resource- This parameter is required.
-
isCfnEntityRecognizer
Checks whether the given object is a CfnEntityRecognizer.- 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) that identifies the entity recognizer. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getEntityRecognizerRef
A reference to a EntityRecognizer resource.- Specified by:
getEntityRecognizerRefin interfaceIEntityRecognizerRef
-
getDataAccessRoleArn
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. -
setDataAccessRoleArn
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. -
getInputDataConfig
Specifies the format and location of the input data for an entity recognizer.Returns union: either
IResolvableorCfnEntityRecognizer.EntityRecognizerInputDataConfigProperty -
setInputDataConfig
Specifies the format and location of the input data for an entity recognizer. -
setInputDataConfig
@Stability(Stable) public void setInputDataConfig(@NotNull CfnEntityRecognizer.EntityRecognizerInputDataConfigProperty value) Specifies the format and location of the input data for an entity recognizer. -
getLanguageCode
The language of the input documents. -
setLanguageCode
The language of the input documents. -
getRecognizerName
The name given to the entity recognizer. -
setRecognizerName
The name given to the entity recognizer. -
getModelKmsKeyId
ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models. -
setModelKmsKeyId
ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models. -
getModelPolicy
The JSON resource-based policy to attach to your custom entity recognizer model. -
setModelPolicy
The JSON resource-based policy to attach to your custom entity recognizer model. -
getTags
Tags to associate with the entity recognizer. -
setTags
Tags to associate with the entity recognizer. -
getVersionName
The version name given to the entity recognizer. -
setVersionName
The version name given to the entity recognizer. -
getVolumeKmsKeyId
ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s). -
setVolumeKmsKeyId
ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s). -
getVpcConfig
Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.Returns union: either
IResolvableorCfnEntityRecognizer.VpcConfigProperty -
setVpcConfig
Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. -
setVpcConfig
Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.
-