ResponsePlanArgs

data class ResponsePlanArgs(val action: Output<ResponsePlanActionArgs>? = null, val chatChannels: Output<List<String>>? = null, val displayName: Output<String>? = null, val engagements: Output<List<String>>? = null, val incidentTemplate: Output<ResponsePlanIncidentTemplateArgs>? = null, val integration: Output<ResponsePlanIntegrationArgs>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ResponsePlanArgs>

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

Constructors

Link copied to clipboard
constructor(action: Output<ResponsePlanActionArgs>? = null, chatChannels: Output<List<String>>? = null, displayName: Output<String>? = null, engagements: Output<List<String>>? = null, incidentTemplate: Output<ResponsePlanIncidentTemplateArgs>? = null, integration: Output<ResponsePlanIntegrationArgs>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val action: Output<ResponsePlanActionArgs>? = null

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

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

The Chatbot chat channel used for collaboration during an incident.

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

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

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

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

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>? = null

The name of the response plan.

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

The tags applied to the response plan.

Functions

Link copied to clipboard
open override fun toJava(): ResponsePlanArgs