# LogsEncryptionConfigurationProperty

Configuration for encrypting centralized log groups.

This configuration is only applied to destination log groups for which the corresponding source log groups are encrypted using Customer Managed KMS Keys.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 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_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const logsEncryptionConfigurationProperty: observabilityadmin.CfnOrganizationCentralizationRule.LogsEncryptionConfigurationProperty = {
  encryptionStrategy: 'encryptionStrategy',

  // the properties below are optional
  encryptionConflictResolutionStrategy: 'encryptionConflictResolutionStrategy',
  encryptionScope: 'encryptionScope',
  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_observabilityadmin as observabilityadmin

logs_encryption_configuration_property = observabilityadmin.CfnOrganizationCentralizationRule.LogsEncryptionConfigurationProperty(
    encryption_strategy="encryptionStrategy",

    # the properties below are optional
    encryption_conflict_resolution_strategy="encryptionConflictResolutionStrategy",
    encryption_scope="encryptionScope",
    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.observabilityadmin.*;

LogsEncryptionConfigurationProperty logsEncryptionConfigurationProperty = LogsEncryptionConfigurationProperty.builder()
        .encryptionStrategy("encryptionStrategy")

        // the properties below are optional
        .encryptionConflictResolutionStrategy("encryptionConflictResolutionStrategy")
        .encryptionScope("encryptionScope")
        .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.ObservabilityAdmin;

var logsEncryptionConfigurationProperty = new LogsEncryptionConfigurationProperty {
    EncryptionStrategy = "encryptionStrategy",

    // the properties below are optional
    EncryptionConflictResolutionStrategy = "encryptionConflictResolutionStrategy",
    EncryptionScope = "encryptionScope",
    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"

logsEncryptionConfigurationProperty := &LogsEncryptionConfigurationProperty{
	EncryptionStrategy: jsii.String("encryptionStrategy"),

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

## Properties

- `encryptionConflictResolutionStrategy`: string — Conflict resolution strategy for centralization if the encryption strategy is set to CUSTOMER_MANAGED and the destination log group is encrypted with an AWS_OWNED KMS Key.

  ALLOW lets centralization go through while SKIP prevents centralization into the destination log group.

- `encryptionScope`: string

- `encryptionStrategy`: string (required) — Configuration that determines the encryption strategy of the destination log groups.

  CUSTOMER_MANAGED uses the configured KmsKeyArn to encrypt newly created destination log groups.

- `kmsKeyArn`: string — KMS Key ARN belonging to the primary destination account and region, to encrypt newly created central log groups in the primary destination.
