# EncryptionConfigurationProperty

The encryption configuration for the space.

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 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_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const encryptionConfigurationProperty: cloudwatch.CfnSpace.EncryptionConfigurationProperty = {
  encryptionStrategy: 'encryptionStrategy',

  // the properties below are optional
  kmsKeyArn: 'kmsKeyArn',
};
```

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_cloudwatch as cloudwatch

encryption_configuration_property = cloudwatch.CfnSpace.EncryptionConfigurationProperty(
    encryption_strategy="encryptionStrategy",

    # the properties below are optional
    kms_key_arn="kmsKeyArn"
)
```

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

EncryptionConfigurationProperty encryptionConfigurationProperty = EncryptionConfigurationProperty.builder()
        .encryptionStrategy("encryptionStrategy")

        // the properties below are optional
        .kmsKeyArn("kmsKeyArn")
        .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.CloudWatch;

var encryptionConfigurationProperty = new EncryptionConfigurationProperty {
    EncryptionStrategy = "encryptionStrategy",

    // the properties below are optional
    KmsKeyArn = "kmsKeyArn"
};
```

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"

encryptionConfigurationProperty := &EncryptionConfigurationProperty{
	EncryptionStrategy: jsii.String("encryptionStrategy"),

	// the properties below are optional
	KmsKeyArn: jsii.String("kmsKeyArn"),
}
```

## Properties

- `encryptionStrategy`: string (required) — Which kind of key to use.

  Required.

- `kmsKeyArn`: string — Customer managed KMS key ARN.

  Required when encryptionStrategy is CUSTOMER_MANAGED, and must be omitted when it is AWS_OWNED. Must be a symmetric ENCRYPT_DECRYPT key in the caller's account and region.
