LogsEncryptionConfigurationProperty Struct
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 | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
encryptionConflictResolutionStrategyoptionalstringencryption_conflict_resolution_strategyoptionalstrencryptionConflictResolutionStrategyoptionalStringEncryptionConflictResolutionStrategyoptionalstringEncryptionConflictResolutionStrategyoptional*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.
encryptionScopeoptionalstringencryption_scopeoptionalstrencryptionScopeoptionalStringEncryptionScopeoptionalstringEncryptionScopeoptional*string #encryptionStrategystringencryption_strategystrencryptionStrategyStringEncryptionStrategystringEncryptionStrategy*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.
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string #KMS Key ARN belonging to the primary destination account and region, to encrypt newly created central log groups in the primary destination.