# DataSecurityConfigProperty

Data security configuration.

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

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

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:

```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();
```

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 dataSecurityConfigProperty = new DataSecurityConfigProperty {
    DataLakeKmsKeyId = "dataLakeKmsKeyId",
    ModelKmsKeyId = "modelKmsKeyId",
    VolumeKmsKeyId = "volumeKmsKeyId",
    VpcConfig = new VpcConfigProperty {
        SecurityGroupIds = new [] { "securityGroupIds" },
        Subnets = new [] { "subnets" }
    }
};
```

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"

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

- `dataLakeKmsKeyId`: string — ID for the AWS key that Amazon Comprehend uses to encrypt the data in the data lake.

- `modelKmsKeyId`: 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"`

- `volumeKmsKeyId`: string — ID for the AWS key that Amazon Comprehend uses to encrypt the volume.

- `vpcConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlywheel.VpcConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_comprehend.CfnFlywheel.VpcConfigProperty.html) — 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](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html) .
