Skip to content
v2.278.0

EncryptionStateProperty 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 encryptionStateProperty: verifiedpermissions.CfnPolicyStore.EncryptionStateProperty = {
  default: default_,
  kmsEncryptionState: {
    encryptionContext: {
      encryptionContextKey: 'encryptionContext',
    },
    key: 'key',
  },
};
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_state_property = verifiedpermissions.CfnPolicyStore.EncryptionStateProperty(
    default=default_,
    kms_encryption_state=verifiedpermissions.CfnPolicyStore.KmsEncryptionStateProperty(
        encryption_context={
            "encryption_context_key": "encryptionContext"
        },
        key="key"
    )
)
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_;

EncryptionStateProperty encryptionStateProperty = EncryptionStateProperty.builder()
        .default(default_)
        .kmsEncryptionState(KmsEncryptionStateProperty.builder()
                .encryptionContext(Map.of(
                        "encryptionContextKey", "encryptionContext"))
                .key("key")
                .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 encryptionStateProperty = new EncryptionStateProperty {
    Default = default_,
    KmsEncryptionState = new KmsEncryptionStateProperty {
        EncryptionContext = new Dictionary<string, string> {
            { "encryptionContextKey", "encryptionContext" }
        },
        Key = "key"
    }
};
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{}

encryptionStateProperty := &EncryptionStateProperty{
	Default: default_,
	KmsEncryptionState: &KmsEncryptionStateProperty{
		EncryptionContext: map[string]*string{
			"encryptionContextKey": jsii.String("encryptionContext"),
		},
		Key: jsii.String("key"),
	},
}

Properties ​

defaultanydefaultAnydefaultObjectDefaultobjectDefaultinterface{} required #
kmsEncryptionStateIResolvable | CfnPolicyStore.KmsEncryptionStatePropertykms_encryption_statetyping.Union[IResolvable, KmsEncryptionStateProperty]kmsEncryptionStateIResolvableKmsEncryptionStateIResolvableKmsEncryptionStateinterface{} required #