Skip to content
v2.278.0

TaskConfigProperty Struct ​

Configuration about the model associated with a flywheel.

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 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
# 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
// 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();
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"
        } }
    }
};
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 ​

documentClassificationConfigoptionalIResolvable | CfnFlywheel.DocumentClassificationConfigPropertydocument_classification_configoptionaltyping.Union[IResolvable, DocumentClassificationConfigProperty]documentClassificationConfigoptionalIResolvableDocumentClassificationConfigoptionalIResolvableDocumentClassificationConfigoptionalinterface{} #
Configuration required for a document classification model.
entityRecognitionConfigoptionalIResolvable | CfnFlywheel.EntityRecognitionConfigPropertyentity_recognition_configoptionaltyping.Union[IResolvable, EntityRecognitionConfigProperty]entityRecognitionConfigoptionalIResolvableEntityRecognitionConfigoptionalIResolvableEntityRecognitionConfigoptionalinterface{} #
Configuration required for an entity recognition model.
languageCodestringlanguage_codestrlanguageCodeStringLanguageCodestringLanguageCode*string required #
Language code for the language that the model supports.