Skip to content
v2.278.0

CfnReplicationSetProps ​

Struct External

Properties for defining a CfnReplicationSet.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssmincidents as ssmincidents } from 'aws-cdk-lib';
const cfnReplicationSetProps: ssmincidents.CfnReplicationSetProps = {
  regions: [{
    regionConfiguration: {
      sseKmsKeyId: 'sseKmsKeyId',
    },
    regionName: 'regionName',
  }],

  // the properties below are optional
  deletionProtected: 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_ssmincidents as ssmincidents

cfn_replication_set_props = ssmincidents.CfnReplicationSetProps(
    regions=[ssmincidents.CfnReplicationSet.ReplicationRegionProperty(
        region_configuration=ssmincidents.CfnReplicationSet.RegionConfigurationProperty(
            sse_kms_key_id="sseKmsKeyId"
        ),
        region_name="regionName"
    )],

    # the properties below are optional
    deletion_protected=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.ssmincidents.*;

CfnReplicationSetProps cfnReplicationSetProps = CfnReplicationSetProps.builder()
        .regions(List.of(ReplicationRegionProperty.builder()
                .regionConfiguration(RegionConfigurationProperty.builder()
                        .sseKmsKeyId("sseKmsKeyId")
                        .build())
                .regionName("regionName")
                .build()))

        // the properties below are optional
        .deletionProtected(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.SSMIncidents;

var cfnReplicationSetProps = new CfnReplicationSetProps {
    Regions = new [] { new ReplicationRegionProperty {
        RegionConfiguration = new RegionConfigurationProperty {
            SseKmsKeyId = "sseKmsKeyId"
        },
        RegionName = "regionName"
    } },

    // the properties below are optional
    DeletionProtected = 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"

cfnReplicationSetProps := &CfnReplicationSetProps{
	Regions: []interface{}{
		&ReplicationRegionProperty{
			RegionConfiguration: &RegionConfigurationProperty{
				SseKmsKeyId: jsii.String("sseKmsKeyId"),
			},
			RegionName: jsii.String("regionName"),
		},
	},

	// the properties below are optional
	DeletionProtected: jsii.Boolean(false),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

deletionProtectedoptionalboolean | IResolvabledeletion_protectedoptionaltyping.Union[bool, IResolvable]deletionProtectedoptionalBooleanDeletionProtectedoptionalboolDeletionProtectedoptionalinterface{} #
Determines if the replication set deletion protection is enabled or not.

If deletion protection is enabled, you can't delete the last Region in the replication set.

regionsIResolvable | IResolvable | CfnReplicationSet.ReplicationRegionProperty[]regionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ReplicationRegionProperty]]]regionsIResolvableRegionsIResolvableRegionsinterface{} required #
Specifies the Regions of the replication set.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of tags to add to the replication set.