Skip to content
v2.278.0

EncryptionConfigurationProperty Struct ​

KMS Encryption Configuration.

Example ​

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

kmsEncryptionContextoptionalIResolvable | { [key: string]: string }kms_encryption_contextoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]kmsEncryptionContextoptionalIResolvableKmsEncryptionContextoptionalIResolvableKmsEncryptionContextoptionalinterface{} #
KMS Encryption Context.
kmsKeyIdstringkms_key_idstrkmsKeyIdStringKmsKeyIdstringKmsKeyId*string required #
KMS Key Identifier.