# EncryptionConfigMapProperty

Use this structure if you want to use a customer managed AWS  key to encrypt your investigation data.

If you omit this parameter, CloudWatch investigations will use an AWS key to encrypt the data. For more information, see [Encryption of investigation data](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Investigations-Security.html#Investigations-KMS) .

- Source: Generated at build time
- Type last changed: v2.203.0 · 1 Jul 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_aiops as aiops } from 'aws-cdk-lib';
const encryptionConfigMapProperty: aiops.CfnInvestigationGroup.EncryptionConfigMapProperty = {
  encryptionConfigurationType: 'encryptionConfigurationType',
  kmsKeyId: 'kmsKeyId',
};
```

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_aiops as aiops

encryption_config_map_property = aiops.CfnInvestigationGroup.EncryptionConfigMapProperty(
    encryption_configuration_type="encryptionConfigurationType",
    kms_key_id="kmsKeyId"
)
```

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

EncryptionConfigMapProperty encryptionConfigMapProperty = EncryptionConfigMapProperty.builder()
        .encryptionConfigurationType("encryptionConfigurationType")
        .kmsKeyId("kmsKeyId")
        .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.AIOps;

var encryptionConfigMapProperty = new EncryptionConfigMapProperty {
    EncryptionConfigurationType = "encryptionConfigurationType",
    KmsKeyId = "kmsKeyId"
};
```

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"

encryptionConfigMapProperty := &EncryptionConfigMapProperty{
	EncryptionConfigurationType: jsii.String("encryptionConfigurationType"),
	KmsKeyId: jsii.String("kmsKeyId"),
}
```

## Properties

- `encryptionConfigurationType`: string — Displays whether investigation data is encrypted by a customer managed key or an AWS owned key.

- `kmsKeyId`: string — If the investigation group uses a customer managed key for encryption, this field displays the ID of that key.
