ReplicationSet

class ReplicationSet : KotlinCustomResource

Provides a resource for managing a replication set in AWS Systems Manager Incident Manager.

NOTE: Deleting a replication set also deletes all Incident Manager related data including response plans, incident records, contacts and escalation plans.

Example Usage

Basic Usage

Create a replication set.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssmincidents.ReplicationSet;
import com.pulumi.aws.ssmincidents.ReplicationSetArgs;
import com.pulumi.aws.ssmincidents.inputs.ReplicationSetRegionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var replicationSetName = new ReplicationSet("replicationSetName", ReplicationSetArgs.builder()
.regions(ReplicationSetRegionArgs.builder()
.name("us-west-2")
.build())
.tags(Map.of("exampleTag", "exampleValue"))
.build());
}
}

Basic Usage with an AWS Customer Managed Key

Create a replication set with an AWS Key Management Service (AWS KMS) customer manager key:

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleKey = new aws.kms.Key("exampleKey", {});
const replicationSetName = new aws.ssmincidents.ReplicationSet("replicationSetName", {
regions: [{
name: "us-west-2",
kmsKeyArn: exampleKey.arn,
}],
tags: {
exampleTag: "exampleValue",
},
});
import pulumi
import pulumi_aws as aws
example_key = aws.kms.Key("exampleKey")
replication_set_name = aws.ssmincidents.ReplicationSet("replicationSetName",
regions=[aws.ssmincidents.ReplicationSetRegionArgs(
name="us-west-2",
kms_key_arn=example_key.arn,
)],
tags={
"exampleTag": "exampleValue",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleKey = new Aws.Kms.Key("exampleKey");
var replicationSetName = new Aws.SsmIncidents.ReplicationSet("replicationSetName", new()
{
Regions = new[]
{
new Aws.SsmIncidents.Inputs.ReplicationSetRegionArgs
{
Name = "us-west-2",
KmsKeyArn = exampleKey.Arn,
},
},
Tags =
{
{ "exampleTag", "exampleValue" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kms"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ssmincidents"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleKey, err := kms.NewKey(ctx, "exampleKey", nil)
if err != nil {
return err
}
_, err = ssmincidents.NewReplicationSet(ctx, "replicationSetName", &ssmincidents.ReplicationSetArgs{
Regions: ssmincidents.ReplicationSetRegionArray{
&ssmincidents.ReplicationSetRegionArgs{
Name: pulumi.String("us-west-2"),
KmsKeyArn: exampleKey.Arn,
},
},
Tags: pulumi.StringMap{
"exampleTag": pulumi.String("exampleValue"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.Key;
import com.pulumi.aws.ssmincidents.ReplicationSet;
import com.pulumi.aws.ssmincidents.ReplicationSetArgs;
import com.pulumi.aws.ssmincidents.inputs.ReplicationSetRegionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleKey = new Key("exampleKey");
var replicationSetName = new ReplicationSet("replicationSetName", ReplicationSetArgs.builder()
.regions(ReplicationSetRegionArgs.builder()
.name("us-west-2")
.kmsKeyArn(exampleKey.arn())
.build())
.tags(Map.of("exampleTag", "exampleValue"))
.build());
}
}
resources:
exampleKey:
type: aws:kms:Key
replicationSetName:
type: aws:ssmincidents:ReplicationSet
properties:
regions:
- name: us-west-2
kmsKeyArn: ${exampleKey.arn}
tags:
exampleTag: exampleValue

Import

Use the following command to import an Incident Manager replication set

$ pulumi import aws:ssmincidents/replicationSet:ReplicationSet replicationSetName import

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the replication set.

Link copied to clipboard
val createdBy: Output<String>

The ARN of the user who created the replication set.

Link copied to clipboard

If true, the last region in a replication set cannot be deleted.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastModifiedBy: Output<String>

A timestamp showing when the replication set was last modified.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The current status of the Region.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Tags applied to the replication set. For information about the maximum allowed number of Regions and tag value constraints, see CreateReplicationSet in the AWS Systems Manager Incident Manager API Reference.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>