EncryptionConfigurationProperty Struct
The encryption configuration for the space.
| 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_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*string required #Which kind of key to use.
Required.
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*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.