# AWS::Comprehend Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as comprehend from 'aws-cdk-lib/aws-comprehend';
```

Python:

```python
import aws_cdk.aws_comprehend as comprehend
```

Java:

```java
import software.amazon.awscdk.services.comprehend.*;
```

C#:

```csharp
using Amazon.CDK.AWS.Comprehend;
```

Go:

```go
import comprehend "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for Comprehend construct libraries](https://constructs.dev/search?q=comprehend)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::Comprehend resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Comprehend.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::Comprehend](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Comprehend.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnDocumentClassifier`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifier.html) Construct (L1) This resource creates and trains a document classifier to categorize documents.
- [`CfnDocumentClassifierEndpoint`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifierEndpoint.html) Construct (L1) An Amazon Comprehend endpoint that hosts a custom document classification model for real-time inference.
- [`CfnEntityRecognizer`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.html) Construct (L1) An Amazon Comprehend custom entity recognizer: a trained model that identifies custom entity types in text, created via an asynchronous training job.
- [`CfnEntityRecognizerEndpoint`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizerEndpoint.html) Construct (L1) An Amazon Comprehend endpoint that hosts a custom entity recognizer model for real-time inference.
- [`CfnFlywheel`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.html) Construct (L1) A flywheel is an AWS resource that orchestrates the ongoing training of a model for custom classification or custom entity recognition.

### Structs

- [`CfnDocumentClassifier.AugmentedManifestsListItemProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifier.AugmentedManifestsListItemProperty.html) Struct An augmented manifest file that provides training data for your custom model.
- [`CfnDocumentClassifier.DocumentClassifierDocumentsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifier.DocumentClassifierDocumentsProperty.html) Struct The location of the training documents.
- [`CfnDocumentClassifier.DocumentClassifierInputDataConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifier.DocumentClassifierInputDataConfigProperty.html) Struct The input properties for training a document classifier.
- [`CfnDocumentClassifier.DocumentClassifierOutputDataConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifier.DocumentClassifierOutputDataConfigProperty.html) Struct Provide the location for output data from a custom classifier job.
- [`CfnDocumentClassifier.DocumentReaderConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifier.DocumentReaderConfigProperty.html) Struct Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.
- [`CfnDocumentClassifier.VpcConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifier.VpcConfigProperty.html) Struct Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.
- [`CfnDocumentClassifierEndpointProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifierEndpointProps.html) Struct Properties for defining a `CfnDocumentClassifierEndpoint`.
- [`CfnDocumentClassifierProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnDocumentClassifierProps.html) Struct Properties for defining a `CfnDocumentClassifier`.
- [`CfnEntityRecognizer.AugmentedManifestsListItemProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.AugmentedManifestsListItemProperty.html) Struct An augmented manifest file that provides training data for your custom model.
- [`CfnEntityRecognizer.EntityRecognizerAnnotationsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.EntityRecognizerAnnotationsProperty.html) Struct Describes the annotations associated with an entity recognizer.
- [`CfnEntityRecognizer.EntityRecognizerDocumentsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.EntityRecognizerDocumentsProperty.html) Struct Describes the training documents submitted with an entity recognizer.
- [`CfnEntityRecognizer.EntityRecognizerEntityListProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.EntityRecognizerEntityListProperty.html) Struct Describes the entity list submitted with an entity recognizer.
- [`CfnEntityRecognizer.EntityRecognizerInputDataConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.EntityRecognizerInputDataConfigProperty.html) Struct Specifies the format and location of the input data for an entity recognizer.
- [`CfnEntityRecognizer.EntityTypesListItemProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.EntityTypesListItemProperty.html) Struct An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.
- [`CfnEntityRecognizer.VpcConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizer.VpcConfigProperty.html) Struct Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.
- [`CfnEntityRecognizerEndpointProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizerEndpointProps.html) Struct Properties for defining a `CfnEntityRecognizerEndpoint`.
- [`CfnEntityRecognizerProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnEntityRecognizerProps.html) Struct Properties for defining a `CfnEntityRecognizer`.
- [`CfnFlywheel.DataSecurityConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.DataSecurityConfigProperty.html) Struct Data security configuration.
- [`CfnFlywheel.DocumentClassificationConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.DocumentClassificationConfigProperty.html) Struct Configuration required for a document classification model.
- [`CfnFlywheel.EntityRecognitionConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.EntityRecognitionConfigProperty.html) Struct Configuration required for an entity recognition model.
- [`CfnFlywheel.EntityTypesListItemProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.EntityTypesListItemProperty.html) Struct An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.
- [`CfnFlywheel.TaskConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.TaskConfigProperty.html) Struct Configuration about the model associated with a flywheel.
- [`CfnFlywheel.VpcConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.VpcConfigProperty.html) Struct Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.
- [`CfnFlywheelProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheelProps.html) Struct Properties for defining a `CfnFlywheel`.
