# CfnEntityRecognizerProps

Properties for defining a `CfnEntityRecognizer`.

Extends: CfnEntityRecognizerProps
Used as props by: CfnEntityRecognizer

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_comprehend as comprehend } from 'aws-cdk-lib';
const cfnEntityRecognizerProps: comprehend.CfnEntityRecognizerProps = {
  dataAccessRoleArn: 'dataAccessRoleArn',
  inputDataConfig: {
    entityTypes: [{
      type: 'type',
    }],

    // the properties below are optional
    annotations: {
      s3Uri: 's3Uri',

      // the properties below are optional
      testS3Uri: 'testS3Uri',
    },
    augmentedManifests: [{
      attributeNames: ['attributeNames'],
      s3Uri: 's3Uri',

      // the properties below are optional
      annotationDataS3Uri: 'annotationDataS3Uri',
      documentType: 'documentType',
      sourceDocumentsS3Uri: 'sourceDocumentsS3Uri',
      split: 'split',
    }],
    dataFormat: 'dataFormat',
    documents: {
      s3Uri: 's3Uri',

      // the properties below are optional
      inputFormat: 'inputFormat',
      testS3Uri: 'testS3Uri',
    },
    entityList: {
      s3Uri: 's3Uri',
    },
  },
  languageCode: 'languageCode',
  recognizerName: 'recognizerName',

  // the properties below are optional
  modelKmsKeyId: 'modelKmsKeyId',
  modelPolicy: 'modelPolicy',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  versionName: 'versionName',
  volumeKmsKeyId: 'volumeKmsKeyId',
  vpcConfig: {
    securityGroupIds: ['securityGroupIds'],
    subnets: ['subnets'],
  },
};
```

## Properties

- `dataAccessRoleArn`: string (required) — The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

- `inputDataConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEntityRecognizer.EntityRecognizerInputDataConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.EntityRecognizerInputDataConfigProperty.html) (required) — Specifies the format and location of the input data for an entity recognizer.

- `languageCode`: string (required) — The language of the input documents.

  All documents must be in the same language.

- `modelKmsKeyId`: string — ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models.

- `modelPolicy`: string — The JSON resource-based policy to attach to your custom entity recognizer model.

- `recognizerName`: string (required) — The name given to the entity recognizer.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags to associate with the entity recognizer.

- `versionName`: string — The version name given to the entity recognizer.

- `volumeKmsKeyId`: string — 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](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEntityRecognizer.VpcConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.VpcConfigProperty.html) — Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.
