# EncryptionConfigurationProperty

KMS Encryption Configuration.

- Source: Generated at build time
- Type last changed: v2.250.0 · 14 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const encryptionConfigurationProperty: bedrock.CfnDataAutomationLibrary.EncryptionConfigurationProperty = {
  kmsKeyId: 'kmsKeyId',

  // the properties below are optional
  kmsEncryptionContext: {
    kmsEncryptionContextKey: 'kmsEncryptionContext',
  },
};
```

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_bedrock as bedrock

encryption_configuration_property = bedrock.CfnDataAutomationLibrary.EncryptionConfigurationProperty(
    kms_key_id="kmsKeyId",

    # the properties below are optional
    kms_encryption_context={
        "kms_encryption_context_key": "kmsEncryptionContext"
    }
)
```

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

EncryptionConfigurationProperty encryptionConfigurationProperty = EncryptionConfigurationProperty.builder()
        .kmsKeyId("kmsKeyId")

        // the properties below are optional
        .kmsEncryptionContext(Map.of(
                "kmsEncryptionContextKey", "kmsEncryptionContext"))
        .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.Bedrock;

var encryptionConfigurationProperty = new EncryptionConfigurationProperty {
    KmsKeyId = "kmsKeyId",

    // the properties below are optional
    KmsEncryptionContext = new Dictionary<string, string> {
        { "kmsEncryptionContextKey", "kmsEncryptionContext" }
    }
};
```

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"

encryptionConfigurationProperty := &EncryptionConfigurationProperty{
	KmsKeyId: jsii.String("kmsKeyId"),

	// the properties below are optional
	KmsEncryptionContext: map[string]*string{
		"kmsEncryptionContextKey": jsii.String("kmsEncryptionContext"),
	},
}
```

## Properties

- `kmsEncryptionContext`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — KMS Encryption Context.

- `kmsKeyId`: string (required) — KMS Key Identifier.
