Class CfnKeyspace.ReplicationSpecificationProperty
You can use ReplicationSpecification to configure the ReplicationStrategy of a keyspace in Amazon Keyspaces .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Cassandra
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnKeyspace.ReplicationSpecificationProperty : CfnKeyspace.IReplicationSpecificationProperty
Syntax (vb)
Public Class CfnKeyspace.ReplicationSpecificationProperty Implements CfnKeyspace.IReplicationSpecificationProperty
Remarks
The ReplicationSpecification property applies automatically to all tables in the keyspace.
To review the permissions that are required to add a new Region to a single-Region keyspace, see Configure the IAM permissions required to add an AWS Region to a keyspace in the Amazon Keyspaces Developer Guide .
For more information about multi-Region replication, see Multi-Region replication in the Amazon Keyspaces Developer Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cassandra;
var replicationSpecificationProperty = new ReplicationSpecificationProperty {
RegionList = new [] { "regionList" },
ReplicationStrategy = "replicationStrategy"
};
Synopsis
Constructors
| ReplicationSpecificationProperty() | You can use |
Properties
| RegionList | Specifies the AWS Regions that the keyspace is replicated in. |
| ReplicationStrategy | The options are:. |
Constructors
ReplicationSpecificationProperty()
You can use ReplicationSpecification to configure the ReplicationStrategy of a keyspace in Amazon Keyspaces .
public ReplicationSpecificationProperty()
Remarks
The ReplicationSpecification property applies automatically to all tables in the keyspace.
To review the permissions that are required to add a new Region to a single-Region keyspace, see Configure the IAM permissions required to add an AWS Region to a keyspace in the Amazon Keyspaces Developer Guide .
For more information about multi-Region replication, see Multi-Region replication in the Amazon Keyspaces Developer Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cassandra;
var replicationSpecificationProperty = new ReplicationSpecificationProperty {
RegionList = new [] { "regionList" },
ReplicationStrategy = "replicationStrategy"
};
Properties
RegionList
Specifies the AWS Regions that the keyspace is replicated in.
public string[]? RegionList { get; set; }
Property Value
string[]
Remarks
You must specify at least two Regions, including the Region that the keyspace is being created in.
To specify a Region that's disabled by default , you must first enable the Region. For more information, see Multi-Region replication in AWS Regions disabled by default in the Amazon Keyspaces Developer Guide .
ReplicationStrategy
The options are:.
public string? ReplicationStrategy { get; set; }
Property Value
Remarks
If no value is specified, the default is SINGLE_REGION . If MULTI_REGION is specified, RegionList is required.