# ManagedStorageEncryptionConfigurationProperty

Indicates the encryption configuration for Athena Managed Storage.

If not setting this field, Managed Storage will encrypt the query results with Athena's encryption key

- Source: Generated at build time
- Type last changed: v2.201.0 · 13 Jun 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_athena as athena } from 'aws-cdk-lib';
const managedStorageEncryptionConfigurationProperty: athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty = {
  kmsKey: 'kmsKey',
};
```

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_athena as athena

managed_storage_encryption_configuration_property = athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
    kms_key="kmsKey"
)
```

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.athena.*;

ManagedStorageEncryptionConfigurationProperty managedStorageEncryptionConfigurationProperty = ManagedStorageEncryptionConfigurationProperty.builder()
        .kmsKey("kmsKey")
        .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.Athena;

var managedStorageEncryptionConfigurationProperty = new ManagedStorageEncryptionConfigurationProperty {
    KmsKey = "kmsKey"
};
```

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"

managedStorageEncryptionConfigurationProperty := &ManagedStorageEncryptionConfigurationProperty{
	KmsKey: jsii.String("kmsKey"),
}
```

## Properties

- `kmsKey`: string — For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.
