# TaskConfigProperty

Configuration about the model associated with a flywheel.

- 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 taskConfigProperty: comprehend.CfnFlywheel.TaskConfigProperty = {
  languageCode: 'languageCode',

  // the properties below are optional
  documentClassificationConfig: {
    mode: 'mode',

    // the properties below are optional
    labels: ['labels'],
  },
  entityRecognitionConfig: {
    entityTypes: [{
      type: 'type',
    }],
  },
};
```

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

task_config_property = comprehend.CfnFlywheel.TaskConfigProperty(
    language_code="languageCode",

    # the properties below are optional
    document_classification_config=comprehend.CfnFlywheel.DocumentClassificationConfigProperty(
        mode="mode",

        # the properties below are optional
        labels=["labels"]
    ),
    entity_recognition_config=comprehend.CfnFlywheel.EntityRecognitionConfigProperty(
        entity_types=[comprehend.CfnFlywheel.EntityTypesListItemProperty(
            type="type"
        )]
    )
)
```

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.*;

TaskConfigProperty taskConfigProperty = TaskConfigProperty.builder()
        .languageCode("languageCode")

        // the properties below are optional
        .documentClassificationConfig(DocumentClassificationConfigProperty.builder()
                .mode("mode")

                // the properties below are optional
                .labels(List.of("labels"))
                .build())
        .entityRecognitionConfig(EntityRecognitionConfigProperty.builder()
                .entityTypes(List.of(EntityTypesListItemProperty.builder()
                        .type("type")
                        .build()))
                .build())
        .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 taskConfigProperty = new TaskConfigProperty {
    LanguageCode = "languageCode",

    // the properties below are optional
    DocumentClassificationConfig = new DocumentClassificationConfigProperty {
        Mode = "mode",

        // the properties below are optional
        Labels = new [] { "labels" }
    },
    EntityRecognitionConfig = new EntityRecognitionConfigProperty {
        EntityTypes = new [] { new EntityTypesListItemProperty {
            Type = "type"
        } }
    }
};
```

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"

taskConfigProperty := &TaskConfigProperty{
	LanguageCode: jsii.String("languageCode"),

	// the properties below are optional
	DocumentClassificationConfig: &DocumentClassificationConfigProperty{
		Mode: jsii.String("mode"),

		// the properties below are optional
		Labels: []*string{
			jsii.String("labels"),
		},
	},
	EntityRecognitionConfig: &EntityRecognitionConfigProperty{
		EntityTypes: []interface{}{
			&EntityTypesListItemProperty{
				Type: jsii.String("type"),
			},
		},
	},
}
```

## Properties

- `documentClassificationConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlywheel.DocumentClassificationConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.DocumentClassificationConfigProperty.html) — Configuration required for a document classification model.

- `entityRecognitionConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlywheel.EntityRecognitionConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.EntityRecognitionConfigProperty.html) — Configuration required for an entity recognition model.

- `languageCode`: string (required) — Language code for the language that the model supports.
