Skip to content
v2.278.0

EncryptionSettingsProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_verifiedpermissions as verifiedpermissions } from 'aws-cdk-lib';

declare const default_: any;
const encryptionSettingsProperty: verifiedpermissions.CfnPolicyStore.EncryptionSettingsProperty = {
  default: default_,
  kmsEncryptionSettings: {
    key: 'key',

    // the properties below are optional
    encryptionContext: {
      encryptionContextKey: 'encryptionContext',
    },
  },
};
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_verifiedpermissions as verifiedpermissions

# default_: Any

encryption_settings_property = verifiedpermissions.CfnPolicyStore.EncryptionSettingsProperty(
    default=default_,
    kms_encryption_settings=verifiedpermissions.CfnPolicyStore.KmsEncryptionSettingsProperty(
        key="key",

        # the properties below are optional
        encryption_context={
            "encryption_context_key": "encryptionContext"
        }
    )
)
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.verifiedpermissions.*;

Object default_;

EncryptionSettingsProperty encryptionSettingsProperty = EncryptionSettingsProperty.builder()
        .default(default_)
        .kmsEncryptionSettings(KmsEncryptionSettingsProperty.builder()
                .key("key")

                // the properties below are optional
                .encryptionContext(Map.of(
                        "encryptionContextKey", "encryptionContext"))
                .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.VerifiedPermissions;

var default_;

var encryptionSettingsProperty = new EncryptionSettingsProperty {
    Default = default_,
    KmsEncryptionSettings = new KmsEncryptionSettingsProperty {
        Key = "key",

        // the properties below are optional
        EncryptionContext = new Dictionary<string, string> {
            { "encryptionContextKey", "encryptionContext" }
        }
    }
};
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"

var default_ interface{}

encryptionSettingsProperty := &EncryptionSettingsProperty{
	Default: default_,
	KmsEncryptionSettings: &KmsEncryptionSettingsProperty{
		Key: jsii.String("key"),

		// the properties below are optional
		EncryptionContext: map[string]*string{
			"encryptionContextKey": jsii.String("encryptionContext"),
		},
	},
}

Properties ​

defaultoptionalanydefaultoptionalAnydefaultoptionalObjectDefaultoptionalobjectDefaultoptionalinterface{} #
kmsEncryptionSettingsoptionalIResolvable | CfnPolicyStore.KmsEncryptionSettingsPropertykms_encryption_settingsoptionaltyping.Union[IResolvable, KmsEncryptionSettingsProperty]kmsEncryptionSettingsoptionalIResolvableKmsEncryptionSettingsoptionalIResolvableKmsEncryptionSettingsoptionalinterface{} #