EncryptionConfigurationProperty Struct Added in v2.276.0
The encryption configuration for the space.
Example
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
# 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
// 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();
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"
};
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
encryptionStrategystringencryption_strategystrencryptionStrategyStringEncryptionStrategystringEncryptionStrategy*stringrequired#Whether the space is encrypted with an AWS owned key or a customer managed key.
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string#The Amazon Resource Name (ARN) of the customer managed KMS key.
Required when encryptionStrategy is CUSTOMER_MANAGED.