# KmsEncryptionStateProperty

- 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';
const kmsEncryptionStateProperty: verifiedpermissions.CfnPolicyStore.KmsEncryptionStateProperty = {
  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

kms_encryption_state_property = 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.*;

KmsEncryptionStateProperty kmsEncryptionStateProperty = KmsEncryptionStateProperty.builder()
        .encryptionContext(Map.of(
                "encryptionContextKey", "encryptionContext"))
        .key("key")
        .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 kmsEncryptionStateProperty = 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"

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

## Properties

- `encryptionContext`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } (required)

- `key`: string (required)
