# DocumentClassificationConfigProperty

Configuration required for a document classification model.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 documentClassificationConfigProperty: comprehend.CfnFlywheel.DocumentClassificationConfigProperty = {
  mode: 'mode',

  // the properties below are optional
  labels: ['labels'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_comprehend as comprehend

document_classification_config_property = comprehend.CfnFlywheel.DocumentClassificationConfigProperty(
    mode="mode",

    # the properties below are optional
    labels=["labels"]
)
```

Java:

```java
// 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.*;

DocumentClassificationConfigProperty documentClassificationConfigProperty = DocumentClassificationConfigProperty.builder()
        .mode("mode")

        // the properties below are optional
        .labels(List.of("labels"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Comprehend;

var documentClassificationConfigProperty = new DocumentClassificationConfigProperty {
    Mode = "mode",

    // the properties below are optional
    Labels = new [] { "labels" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

documentClassificationConfigProperty := &DocumentClassificationConfigProperty{
	Mode: jsii.String("mode"),

	// the properties below are optional
	Labels: []*string{
		jsii.String("labels"),
	},
}
```

## Properties

- `labels`: string[] — One or more labels to associate with the custom classifier.

- `mode`: string (required) — Classification mode indicates whether the documents are `MULTI_CLASS` or `MULTI_LABEL` .
