CfnClusterProps Struct
Properties for defining a CfnCluster.
| 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_dsql as dsql } from 'aws-cdk-lib';
const cfnClusterProps: dsql.CfnClusterProps = {
deletionProtectionEnabled: false,
kmsEncryptionKey: 'kmsEncryptionKey',
metricGroups: [{
metricGroup: 'metricGroup',
}],
multiRegionProperties: {
clusters: ['clusters'],
witnessRegion: 'witnessRegion',
},
policyDocument: 'policyDocument',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dsql as dsql
cfn_cluster_props = dsql.CfnClusterProps(
deletion_protection_enabled=False,
kms_encryption_key="kmsEncryptionKey",
metric_groups=[dsql.CfnCluster.MetricGroupProperty(
metric_group="metricGroup"
)],
multi_region_properties=dsql.CfnCluster.MultiRegionPropertiesProperty(
clusters=["clusters"],
witness_region="witnessRegion"
),
policy_document="policyDocument",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.dsql.*;
CfnClusterProps cfnClusterProps = CfnClusterProps.builder()
.deletionProtectionEnabled(false)
.kmsEncryptionKey("kmsEncryptionKey")
.metricGroups(List.of(MetricGroupProperty.builder()
.metricGroup("metricGroup")
.build()))
.multiRegionProperties(MultiRegionPropertiesProperty.builder()
.clusters(List.of("clusters"))
.witnessRegion("witnessRegion")
.build())
.policyDocument("policyDocument")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.DSQL;
var cfnClusterProps = new CfnClusterProps {
DeletionProtectionEnabled = false,
KmsEncryptionKey = "kmsEncryptionKey",
MetricGroups = new [] { new MetricGroupProperty {
MetricGroup = "metricGroup"
} },
MultiRegionProperties = new MultiRegionPropertiesProperty {
Clusters = new [] { "clusters" },
WitnessRegion = "witnessRegion"
},
PolicyDocument = "policyDocument",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnClusterProps := &CfnClusterProps{
DeletionProtectionEnabled: jsii.Boolean(false),
KmsEncryptionKey: jsii.String("kmsEncryptionKey"),
MetricGroups: []interface{}{
&MetricGroupProperty{
MetricGroup: jsii.String("metricGroup"),
},
},
MultiRegionProperties: &MultiRegionPropertiesProperty{
Clusters: []*string{
jsii.String("clusters"),
},
WitnessRegion: jsii.String("witnessRegion"),
},
PolicyDocument: jsii.String("policyDocument"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
deletionProtectionEnabledoptionalboolean | IResolvabledeletion_protection_enabledoptionaltyping.Union[bool, IResolvable]deletionProtectionEnabledoptionalBooleanDeletionProtectionEnabledoptionalboolDeletionProtectionEnabledoptionalinterface{} #Whether deletion protection is enabled on this cluster.
kmsEncryptionKeyoptionalstringkms_encryption_keyoptionalstrkmsEncryptionKeyoptionalStringKmsEncryptionKeyoptionalstringKmsEncryptionKeyoptional*string #The KMS key that encrypts data on the cluster.
metricGroupsoptionalIResolvable | IResolvable | CfnCluster.MetricGroupProperty[]metric_groupsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MetricGroupProperty]]]metricGroupsoptionalIResolvableMetricGroupsoptionalIResolvableMetricGroupsoptionalinterface{} #The Advanced monitoring metric groups to enable on the cluster.
Omit to enable none.
multiRegionPropertiesoptionalIResolvable | CfnCluster.multi_region_propertiesoptionaltyping.Union[IResolvable, MultiRegionPropertiesProperty]multiRegionPropertiesoptionalIResolvableMultiRegionPropertiesoptionalIResolvableMultiRegionPropertiesoptionalinterface{} #Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.
policyDocumentoptionalstringpolicy_documentoptionalstrpolicyDocumentoptionalStringPolicyDocumentoptionalstringPolicyDocumentoptional*string #A resource-based policy document in JSON format.
Length constraints: Minimum length of 1. Maximum length of 20480 characters (approximately 20KB).