# EncryptionStateProperty

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 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_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:

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

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

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.VerifiedPermissions;

var default_;

var encryptionStateProperty = new EncryptionStateProperty {
    Default = default_,
    KmsEncryptionState = new KmsEncryptionStateProperty {
        EncryptionContext = new Dictionary<string, string> {
            { "encryptionContextKey", "encryptionContext" }
        },
        Key = "key"
    }
};
```

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"

var default_ interface{}

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

## Properties

- `default`: any (required)

- `kmsEncryptionState`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPolicyStore.KmsEncryptionStateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_verifiedpermissions.CfnPolicyStore.KmsEncryptionStateProperty.html) (required)
