Skip to content
v2.278.0

MultiRegionPropertiesProperty Struct ​

Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.

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 multiRegionPropertiesProperty: dsql.CfnCluster.MultiRegionPropertiesProperty = {
  clusters: ['clusters'],
  witnessRegion: 'witnessRegion',
};
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_dsql as dsql

multi_region_properties_property = dsql.CfnCluster.MultiRegionPropertiesProperty(
    clusters=["clusters"],
    witness_region="witnessRegion"
)
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.*;

MultiRegionPropertiesProperty multiRegionPropertiesProperty = MultiRegionPropertiesProperty.builder()
        .clusters(List.of("clusters"))
        .witnessRegion("witnessRegion")
        .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 multiRegionPropertiesProperty = new MultiRegionPropertiesProperty {
    Clusters = new [] { "clusters" },
    WitnessRegion = "witnessRegion"
};
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"

multiRegionPropertiesProperty := &MultiRegionPropertiesProperty{
	Clusters: []*string{
		jsii.String("clusters"),
	},
	WitnessRegion: jsii.String("witnessRegion"),
}

Properties ​

clustersoptionalstring[]clustersoptionaltyping.List[str]clustersoptionalList<String>Clustersoptionalstring[]Clustersoptional*[]*string #
The set of peered clusters that form the multi-Region cluster configuration.

Each peered cluster represents a database instance in a different Region.

witnessRegionoptionalstringwitness_regionoptionalstrwitnessRegionoptionalStringWitnessRegionoptionalstringWitnessRegionoptional*string #
The Region that serves as the witness Region for a multi-Region cluster.

The witness Region helps maintain cluster consistency and quorum.