Skip to content
v2.278.0

CfnFlywheelProps Struct ​

Properties for defining a CfnFlywheel.

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 cfnFlywheelProps: comprehend.CfnFlywheelProps = {
  dataAccessRoleArn: 'dataAccessRoleArn',
  dataLakeS3Uri: 'dataLakeS3Uri',
  flywheelName: 'flywheelName',

  // the properties below are optional
  activeModelArn: 'activeModelArn',
  dataSecurityConfig: {
    dataLakeKmsKeyId: 'dataLakeKmsKeyId',
    modelKmsKeyId: 'modelKmsKeyId',
    volumeKmsKeyId: 'volumeKmsKeyId',
    vpcConfig: {
      securityGroupIds: ['securityGroupIds'],
      subnets: ['subnets'],
    },
  },
  modelType: 'modelType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  taskConfig: {
    languageCode: 'languageCode',

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

      // the properties below are optional
      labels: ['labels'],
    },
    entityRecognitionConfig: {
      entityTypes: [{
        type: 'type',
      }],
    },
  },
};
python
from aws_cdk import CfnTag
# 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

cfn_flywheel_props = comprehend.CfnFlywheelProps(
    data_access_role_arn="dataAccessRoleArn",
    data_lake_s3_uri="dataLakeS3Uri",
    flywheel_name="flywheelName",

    # the properties below are optional
    active_model_arn="activeModelArn",
    data_security_config=comprehend.CfnFlywheel.DataSecurityConfigProperty(
        data_lake_kms_key_id="dataLakeKmsKeyId",
        model_kms_key_id="modelKmsKeyId",
        volume_kms_key_id="volumeKmsKeyId",
        vpc_config=comprehend.CfnFlywheel.VpcConfigProperty(
            security_group_ids=["securityGroupIds"],
            subnets=["subnets"]
        )
    ),
    model_type="modelType",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    task_config=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.*;

CfnFlywheelProps cfnFlywheelProps = CfnFlywheelProps.builder()
        .dataAccessRoleArn("dataAccessRoleArn")
        .dataLakeS3Uri("dataLakeS3Uri")
        .flywheelName("flywheelName")

        // the properties below are optional
        .activeModelArn("activeModelArn")
        .dataSecurityConfig(DataSecurityConfigProperty.builder()
                .dataLakeKmsKeyId("dataLakeKmsKeyId")
                .modelKmsKeyId("modelKmsKeyId")
                .volumeKmsKeyId("volumeKmsKeyId")
                .vpcConfig(VpcConfigProperty.builder()
                        .securityGroupIds(List.of("securityGroupIds"))
                        .subnets(List.of("subnets"))
                        .build())
                .build())
        .modelType("modelType")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .taskConfig(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())
        .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 cfnFlywheelProps = new CfnFlywheelProps {
    DataAccessRoleArn = "dataAccessRoleArn",
    DataLakeS3Uri = "dataLakeS3Uri",
    FlywheelName = "flywheelName",

    // the properties below are optional
    ActiveModelArn = "activeModelArn",
    DataSecurityConfig = new DataSecurityConfigProperty {
        DataLakeKmsKeyId = "dataLakeKmsKeyId",
        ModelKmsKeyId = "modelKmsKeyId",
        VolumeKmsKeyId = "volumeKmsKeyId",
        VpcConfig = new VpcConfigProperty {
            SecurityGroupIds = new [] { "securityGroupIds" },
            Subnets = new [] { "subnets" }
        }
    },
    ModelType = "modelType",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    TaskConfig = 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"

cfnFlywheelProps := &CfnFlywheelProps{
	DataAccessRoleArn: jsii.String("dataAccessRoleArn"),
	DataLakeS3Uri: jsii.String("dataLakeS3Uri"),
	FlywheelName: jsii.String("flywheelName"),

	// the properties below are optional
	ActiveModelArn: jsii.String("activeModelArn"),
	DataSecurityConfig: &DataSecurityConfigProperty{
		DataLakeKmsKeyId: jsii.String("dataLakeKmsKeyId"),
		ModelKmsKeyId: jsii.String("modelKmsKeyId"),
		VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
		VpcConfig: &VpcConfigProperty{
			SecurityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			Subnets: []*string{
				jsii.String("subnets"),
			},
		},
	},
	ModelType: jsii.String("modelType"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TaskConfig: &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 ​

activeModelArnoptionalstringactive_model_arnoptionalstractiveModelArnoptionalStringActiveModelArnoptionalstringActiveModelArnoptional*string #
The Amazon Resource Number (ARN) of the active model version.
dataAccessRoleArnstringdata_access_role_arnstrdataAccessRoleArnStringDataAccessRoleArnstringDataAccessRoleArn*string required #
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.
dataLakeS3Uristringdata_lake_s3_uristrdataLakeS3UriStringDataLakeS3UristringDataLakeS3Uri*string required #
Amazon S3 URI of the data lake location.
dataSecurityConfigoptionalIResolvable | CfnFlywheel.DataSecurityConfigPropertydata_security_configoptionaltyping.Union[IResolvable, DataSecurityConfigProperty]dataSecurityConfigoptionalIResolvableDataSecurityConfigoptionalIResolvableDataSecurityConfigoptionalinterface{} #
Data security configuration.
flywheelNamestringflywheel_namestrflywheelNameStringFlywheelNamestringFlywheelName*string required #
Name for the flywheel.
modelTypeoptionalstringmodel_typeoptionalstrmodelTypeoptionalStringModelTypeoptionalstringModelTypeoptional*string #
Model type of the flywheel's model.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Tags associated with the endpoint being created.

A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.

taskConfigoptionalIResolvable | CfnFlywheel.TaskConfigPropertytask_configoptionaltyping.Union[IResolvable, TaskConfigProperty]taskConfigoptionalIResolvableTaskConfigoptionalIResolvableTaskConfigoptionalinterface{} #
Configuration about the model associated with a flywheel.