Skip to content
v2.278.0

CfnGlobalClusterProps Struct ​

Properties for defining a CfnGlobalCluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_docdb as docdb } from 'aws-cdk-lib';
const cfnGlobalClusterProps: docdb.CfnGlobalClusterProps = {
  globalClusterIdentifier: 'globalClusterIdentifier',

  // the properties below are optional
  deletionProtection: false,
  engine: 'engine',
  engineVersion: 'engineVersion',
  sourceDbClusterIdentifier: 'sourceDbClusterIdentifier',
  storageEncrypted: false,
  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_docdb as docdb

cfn_global_cluster_props = docdb.CfnGlobalClusterProps(
    global_cluster_identifier="globalClusterIdentifier",

    # the properties below are optional
    deletion_protection=False,
    engine="engine",
    engine_version="engineVersion",
    source_db_cluster_identifier="sourceDbClusterIdentifier",
    storage_encrypted=False,
    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.docdb.*;

CfnGlobalClusterProps cfnGlobalClusterProps = CfnGlobalClusterProps.builder()
        .globalClusterIdentifier("globalClusterIdentifier")

        // the properties below are optional
        .deletionProtection(false)
        .engine("engine")
        .engineVersion("engineVersion")
        .sourceDbClusterIdentifier("sourceDbClusterIdentifier")
        .storageEncrypted(false)
        .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.DocDB;

var cfnGlobalClusterProps = new CfnGlobalClusterProps {
    GlobalClusterIdentifier = "globalClusterIdentifier",

    // the properties below are optional
    DeletionProtection = false,
    Engine = "engine",
    EngineVersion = "engineVersion",
    SourceDbClusterIdentifier = "sourceDbClusterIdentifier",
    StorageEncrypted = false,
    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"

cfnGlobalClusterProps := &CfnGlobalClusterProps{
	GlobalClusterIdentifier: jsii.String("globalClusterIdentifier"),

	// the properties below are optional
	DeletionProtection: jsii.Boolean(false),
	Engine: jsii.String("engine"),
	EngineVersion: jsii.String("engineVersion"),
	SourceDbClusterIdentifier: jsii.String("sourceDbClusterIdentifier"),
	StorageEncrypted: jsii.Boolean(false),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

deletionProtectionoptionalboolean | IResolvabledeletion_protectionoptionaltyping.Union[bool, IResolvable]deletionProtectionoptionalBooleanDeletionProtectionoptionalboolDeletionProtectionoptionalinterface{} #
Indicates whether the global cluster has deletion protection enabled.

The global cluster can't be deleted when deletion protection is enabled.

engineoptionalstringengineoptionalstrengineoptionalStringEngineoptionalstringEngineoptional*string = "docdb" #
The database engine to use for this global cluster.
engineVersionoptionalstringengine_versionoptionalstrengineVersionoptionalStringEngineVersionoptionalstringEngineVersionoptional*string #
The engine version to use for this global cluster.
globalClusterIdentifierstringglobal_cluster_identifierstrglobalClusterIdentifierStringGlobalClusterIdentifierstringGlobalClusterIdentifier*string required #
The cluster identifier of the global cluster.
sourceDbClusterIdentifieroptionalstringsource_db_cluster_identifieroptionalstrsourceDbClusterIdentifieroptionalStringSourceDbClusterIdentifieroptionalstringSourceDbClusterIdentifieroptional*string #
The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster.
notes

You may also choose to instead specify the DBClusterIdentifier. If you provide a value for this parameter, don't specify values for the following settings because Amazon DocumentDB uses the values from the specified source DB cluster: Engine, EngineVersion, StorageEncrypted

storageEncryptedoptionalboolean | IResolvablestorage_encryptedoptionaltyping.Union[bool, IResolvable]storageEncryptedoptionalBooleanStorageEncryptedoptionalboolStorageEncryptedoptionalinterface{} #
Indicates whether the global cluster has storage encryption enabled.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags to be assigned to the Amazon DocumentDB resource.