ResponsePlan

class ResponsePlan : KotlinCustomResource

Provides a resource to manage response plans in AWS Systems Manager Incident Manager.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssmincidents.ResponsePlan;
import com.pulumi.aws.ssmincidents.ResponsePlanArgs;
import com.pulumi.aws.ssmincidents.inputs.ResponsePlanIncidentTemplateArgs;
import com.pulumi.resources.CustomResourceOptions;
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 example = new ResponsePlan("example", ResponsePlanArgs.builder()
.incidentTemplate(ResponsePlanIncidentTemplateArgs.builder()
.title("title")
.impact("3")
.build())
.tags(Map.of("key", "value"))
.build(), CustomResourceOptions.builder()
.dependsOn(aws_ssmincidents_replication_set.example())
.build());
}
}

Usage With All Fields

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssmincidents.ResponsePlan;
import com.pulumi.aws.ssmincidents.ResponsePlanArgs;
import com.pulumi.aws.ssmincidents.inputs.ResponsePlanIncidentTemplateArgs;
import com.pulumi.aws.ssmincidents.inputs.ResponsePlanActionArgs;
import com.pulumi.aws.ssmincidents.inputs.ResponsePlanIntegrationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 example = new ResponsePlan("example", ResponsePlanArgs.builder()
.incidentTemplate(ResponsePlanIncidentTemplateArgs.builder()
.title("title")
.impact("3")
.dedupeString("dedupe")
.incidentTags(Map.of("key", "value"))
.notificationTargets(
ResponsePlanIncidentTemplateNotificationTargetArgs.builder()
.snsTopicArn(aws_sns_topic.example1().arn())
.build(),
ResponsePlanIncidentTemplateNotificationTargetArgs.builder()
.snsTopicArn(aws_sns_topic.example2().arn())
.build())
.summary("summary")
.build())
.displayName("display name")
.chatChannels(aws_sns_topic.topic().arn())
.engagements("arn:aws:ssm-contacts:us-east-2:111122223333:contact/test1")
.action(ResponsePlanActionArgs.builder()
.ssmAutomations(ResponsePlanActionSsmAutomationArgs.builder()
.documentName(aws_ssm_document.document1().name())
.roleArn(aws_iam_role.role1().arn())
.documentVersion("version1")
.targetAccount("RESPONSE_PLAN_OWNER_ACCOUNT")
.parameters(
ResponsePlanActionSsmAutomationParameterArgs.builder()
.name("key")
.values(
"value1",
"value2")
.build(),
ResponsePlanActionSsmAutomationParameterArgs.builder()
.name("foo")
.values("bar")
.build())
.dynamicParameters(Map.ofEntries(
Map.entry("someKey", "INVOLVED_RESOURCES"),
Map.entry("anotherKey", "INCIDENT_RECORD_ARN")
))
.build())
.build())
.integration(ResponsePlanIntegrationArgs.builder()
.pagerduties(ResponsePlanIntegrationPagerdutyArgs.builder()
.name("pagerdutyIntergration")
.serviceId("example")
.secretId("example")
.build())
.build())
.tags(Map.of("key", "value"))
.build(), CustomResourceOptions.builder()
.dependsOn(aws_ssmincidents_replication_set.example())
.build());
}
}

Import

To import an Incident Manager response plan, specify the response plan ARN. You can find the response plan ARN in the AWS Management Console. Use the following command to run the import operation

$ pulumi import aws:ssmincidents/responsePlan:ResponsePlan responsePlanName ARNValue

Properties

Link copied to clipboard

The actions that the response plan starts at the beginning of an incident.

Link copied to clipboard
val arn: Output<String>

The ARN of the response plan.

Link copied to clipboard
val chatChannels: Output<List<String>>?

The Chatbot chat channel used for collaboration during an incident.

Link copied to clipboard
val displayName: Output<String>?

The long format of the response plan name. This field can contain spaces.

Link copied to clipboard
val engagements: Output<List<String>>?

The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an incident.

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

Information about third-party services integrated into the response plan. The following values are supported:

Link copied to clipboard
val name: Output<String>

The name of the response plan.

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

The tags applied to the response plan.

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>