Skip to content
v2.278.0

DataSecurityConfigProperty Struct ​

Data security configuration.

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 dataSecurityConfigProperty: comprehend.CfnFlywheel.DataSecurityConfigProperty = {
  dataLakeKmsKeyId: 'dataLakeKmsKeyId',
  modelKmsKeyId: 'modelKmsKeyId',
  volumeKmsKeyId: 'volumeKmsKeyId',
  vpcConfig: {
    securityGroupIds: ['securityGroupIds'],
    subnets: ['subnets'],
  },
};
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

data_security_config_property = 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"]
    )
)
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.*;

DataSecurityConfigProperty dataSecurityConfigProperty = DataSecurityConfigProperty.builder()
        .dataLakeKmsKeyId("dataLakeKmsKeyId")
        .modelKmsKeyId("modelKmsKeyId")
        .volumeKmsKeyId("volumeKmsKeyId")
        .vpcConfig(VpcConfigProperty.builder()
                .securityGroupIds(List.of("securityGroupIds"))
                .subnets(List.of("subnets"))
                .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 dataSecurityConfigProperty = new DataSecurityConfigProperty {
    DataLakeKmsKeyId = "dataLakeKmsKeyId",
    ModelKmsKeyId = "modelKmsKeyId",
    VolumeKmsKeyId = "volumeKmsKeyId",
    VpcConfig = new VpcConfigProperty {
        SecurityGroupIds = new [] { "securityGroupIds" },
        Subnets = new [] { "subnets" }
    }
};
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"

dataSecurityConfigProperty := &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"),
		},
	},
}

Properties ​

dataLakeKmsKeyIdoptionalstringdata_lake_kms_key_idoptionalstrdataLakeKmsKeyIdoptionalStringDataLakeKmsKeyIdoptionalstringDataLakeKmsKeyIdoptional*string #
ID for the AWS key that Amazon Comprehend uses to encrypt the data in the data lake.
modelKmsKeyIdoptionalstringmodel_kms_key_idoptionalstrmodelKmsKeyIdoptionalStringModelKmsKeyIdoptionalstringModelKmsKeyIdoptional*string #
ID for the AWS key that Amazon Comprehend uses to encrypt trained custom models.

The ModelKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
volumeKmsKeyIdoptionalstringvolume_kms_key_idoptionalstrvolumeKmsKeyIdoptionalStringVolumeKmsKeyIdoptionalstringVolumeKmsKeyIdoptional*string #
ID for the AWS key that Amazon Comprehend uses to encrypt the volume.
vpcConfigoptionalIResolvable | CfnFlywheel.VpcConfigPropertyvpc_configoptionaltyping.Union[IResolvable, VpcConfigProperty]vpcConfigoptionalIResolvableVpcConfigoptionalIResolvableVpcConfigoptionalinterface{} #
Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.

For more information, see Amazon VPC .