1. Packages
  2. AWS Classic
  3. API Docs
  4. ssmincidents
  5. ResponsePlan

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.ssmincidents.ResponsePlan

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

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

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ssmincidents.ResponsePlan("example", {
        name: "name",
        incidentTemplate: {
            title: "title",
            impact: 3,
        },
        tags: {
            key: "value",
        },
    }, {
        dependsOn: [exampleAwsSsmincidentsReplicationSet],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ssmincidents.ResponsePlan("example",
        name="name",
        incident_template={
            "title": "title",
            "impact": 3,
        },
        tags={
            "key": "value",
        },
        opts = pulumi.ResourceOptions(depends_on=[example_aws_ssmincidents_replication_set]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssmincidents"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssmincidents.NewResponsePlan(ctx, "example", &ssmincidents.ResponsePlanArgs{
    			Name: pulumi.String("name"),
    			IncidentTemplate: &ssmincidents.ResponsePlanIncidentTemplateArgs{
    				Title:  pulumi.String("title"),
    				Impact: pulumi.Int(3),
    			},
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleAwsSsmincidentsReplicationSet,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SsmIncidents.ResponsePlan("example", new()
        {
            Name = "name",
            IncidentTemplate = new Aws.SsmIncidents.Inputs.ResponsePlanIncidentTemplateArgs
            {
                Title = "title",
                Impact = 3,
            },
            Tags = 
            {
                { "key", "value" },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleAwsSsmincidentsReplicationSet,
            },
        });
    
    });
    
    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()
                .name("name")
                .incidentTemplate(ResponsePlanIncidentTemplateArgs.builder()
                    .title("title")
                    .impact("3")
                    .build())
                .tags(Map.of("key", "value"))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleAwsSsmincidentsReplicationSet)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ssmincidents:ResponsePlan
        properties:
          name: name
          incidentTemplate:
            title: title
            impact: '3'
          tags:
            key: value
        options:
          dependson:
            - ${exampleAwsSsmincidentsReplicationSet}
    

    Usage With All Fields

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ssmincidents.ResponsePlan("example", {
        name: "name",
        incidentTemplate: {
            title: "title",
            impact: 3,
            dedupeString: "dedupe",
            incidentTags: {
                key: "value",
            },
            notificationTargets: [
                {
                    snsTopicArn: example1.arn,
                },
                {
                    snsTopicArn: example2.arn,
                },
            ],
            summary: "summary",
        },
        displayName: "display name",
        chatChannels: [topic.arn],
        engagements: ["arn:aws:ssm-contacts:us-east-2:111122223333:contact/test1"],
        action: {
            ssmAutomations: [{
                documentName: document1.name,
                roleArn: role1.arn,
                documentVersion: "version1",
                targetAccount: "RESPONSE_PLAN_OWNER_ACCOUNT",
                parameters: [
                    {
                        name: "key",
                        values: [
                            "value1",
                            "value2",
                        ],
                    },
                    {
                        name: "foo",
                        values: ["bar"],
                    },
                ],
                dynamicParameters: {
                    someKey: "INVOLVED_RESOURCES",
                    anotherKey: "INCIDENT_RECORD_ARN",
                },
            }],
        },
        integration: {
            pagerduties: [{
                name: "pagerdutyIntergration",
                serviceId: "example",
                secretId: "example",
            }],
        },
        tags: {
            key: "value",
        },
    }, {
        dependsOn: [exampleAwsSsmincidentsReplicationSet],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ssmincidents.ResponsePlan("example",
        name="name",
        incident_template={
            "title": "title",
            "impact": 3,
            "dedupeString": "dedupe",
            "incidentTags": {
                "key": "value",
            },
            "notificationTargets": [
                {
                    "snsTopicArn": example1["arn"],
                },
                {
                    "snsTopicArn": example2["arn"],
                },
            ],
            "summary": "summary",
        },
        display_name="display name",
        chat_channels=[topic["arn"]],
        engagements=["arn:aws:ssm-contacts:us-east-2:111122223333:contact/test1"],
        action={
            "ssmAutomations": [{
                "documentName": document1["name"],
                "roleArn": role1["arn"],
                "documentVersion": "version1",
                "targetAccount": "RESPONSE_PLAN_OWNER_ACCOUNT",
                "parameters": [
                    {
                        "name": "key",
                        "values": [
                            "value1",
                            "value2",
                        ],
                    },
                    {
                        "name": "foo",
                        "values": ["bar"],
                    },
                ],
                "dynamicParameters": {
                    "someKey": "INVOLVED_RESOURCES",
                    "anotherKey": "INCIDENT_RECORD_ARN",
                },
            }],
        },
        integration={
            "pagerduties": [{
                "name": "pagerdutyIntergration",
                "serviceId": "example",
                "secretId": "example",
            }],
        },
        tags={
            "key": "value",
        },
        opts = pulumi.ResourceOptions(depends_on=[example_aws_ssmincidents_replication_set]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssmincidents"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssmincidents.NewResponsePlan(ctx, "example", &ssmincidents.ResponsePlanArgs{
    			Name: pulumi.String("name"),
    			IncidentTemplate: &ssmincidents.ResponsePlanIncidentTemplateArgs{
    				Title:        pulumi.String("title"),
    				Impact:       pulumi.Int(3),
    				DedupeString: pulumi.String("dedupe"),
    				IncidentTags: pulumi.StringMap{
    					"key": pulumi.String("value"),
    				},
    				NotificationTargets: ssmincidents.ResponsePlanIncidentTemplateNotificationTargetArray{
    					&ssmincidents.ResponsePlanIncidentTemplateNotificationTargetArgs{
    						SnsTopicArn: pulumi.Any(example1.Arn),
    					},
    					&ssmincidents.ResponsePlanIncidentTemplateNotificationTargetArgs{
    						SnsTopicArn: pulumi.Any(example2.Arn),
    					},
    				},
    				Summary: pulumi.String("summary"),
    			},
    			DisplayName: pulumi.String("display name"),
    			ChatChannels: pulumi.StringArray{
    				topic.Arn,
    			},
    			Engagements: pulumi.StringArray{
    				pulumi.String("arn:aws:ssm-contacts:us-east-2:111122223333:contact/test1"),
    			},
    			Action: &ssmincidents.ResponsePlanActionArgs{
    				SsmAutomations: ssmincidents.ResponsePlanActionSsmAutomationArray{
    					&ssmincidents.ResponsePlanActionSsmAutomationArgs{
    						DocumentName:    pulumi.Any(document1.Name),
    						RoleArn:         pulumi.Any(role1.Arn),
    						DocumentVersion: pulumi.String("version1"),
    						TargetAccount:   pulumi.String("RESPONSE_PLAN_OWNER_ACCOUNT"),
    						Parameters: ssmincidents.ResponsePlanActionSsmAutomationParameterArray{
    							&ssmincidents.ResponsePlanActionSsmAutomationParameterArgs{
    								Name: pulumi.String("key"),
    								Values: pulumi.StringArray{
    									pulumi.String("value1"),
    									pulumi.String("value2"),
    								},
    							},
    							&ssmincidents.ResponsePlanActionSsmAutomationParameterArgs{
    								Name: pulumi.String("foo"),
    								Values: pulumi.StringArray{
    									pulumi.String("bar"),
    								},
    							},
    						},
    						DynamicParameters: pulumi.StringMap{
    							"someKey":    pulumi.String("INVOLVED_RESOURCES"),
    							"anotherKey": pulumi.String("INCIDENT_RECORD_ARN"),
    						},
    					},
    				},
    			},
    			Integration: &ssmincidents.ResponsePlanIntegrationArgs{
    				Pagerduties: ssmincidents.ResponsePlanIntegrationPagerdutyArray{
    					&ssmincidents.ResponsePlanIntegrationPagerdutyArgs{
    						Name:      pulumi.String("pagerdutyIntergration"),
    						ServiceId: pulumi.String("example"),
    						SecretId:  pulumi.String("example"),
    					},
    				},
    			},
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleAwsSsmincidentsReplicationSet,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SsmIncidents.ResponsePlan("example", new()
        {
            Name = "name",
            IncidentTemplate = new Aws.SsmIncidents.Inputs.ResponsePlanIncidentTemplateArgs
            {
                Title = "title",
                Impact = 3,
                DedupeString = "dedupe",
                IncidentTags = 
                {
                    { "key", "value" },
                },
                NotificationTargets = new[]
                {
                    new Aws.SsmIncidents.Inputs.ResponsePlanIncidentTemplateNotificationTargetArgs
                    {
                        SnsTopicArn = example1.Arn,
                    },
                    new Aws.SsmIncidents.Inputs.ResponsePlanIncidentTemplateNotificationTargetArgs
                    {
                        SnsTopicArn = example2.Arn,
                    },
                },
                Summary = "summary",
            },
            DisplayName = "display name",
            ChatChannels = new[]
            {
                topic.Arn,
            },
            Engagements = new[]
            {
                "arn:aws:ssm-contacts:us-east-2:111122223333:contact/test1",
            },
            Action = new Aws.SsmIncidents.Inputs.ResponsePlanActionArgs
            {
                SsmAutomations = new[]
                {
                    new Aws.SsmIncidents.Inputs.ResponsePlanActionSsmAutomationArgs
                    {
                        DocumentName = document1.Name,
                        RoleArn = role1.Arn,
                        DocumentVersion = "version1",
                        TargetAccount = "RESPONSE_PLAN_OWNER_ACCOUNT",
                        Parameters = new[]
                        {
                            new Aws.SsmIncidents.Inputs.ResponsePlanActionSsmAutomationParameterArgs
                            {
                                Name = "key",
                                Values = new[]
                                {
                                    "value1",
                                    "value2",
                                },
                            },
                            new Aws.SsmIncidents.Inputs.ResponsePlanActionSsmAutomationParameterArgs
                            {
                                Name = "foo",
                                Values = new[]
                                {
                                    "bar",
                                },
                            },
                        },
                        DynamicParameters = 
                        {
                            { "someKey", "INVOLVED_RESOURCES" },
                            { "anotherKey", "INCIDENT_RECORD_ARN" },
                        },
                    },
                },
            },
            Integration = new Aws.SsmIncidents.Inputs.ResponsePlanIntegrationArgs
            {
                Pagerduties = new[]
                {
                    new Aws.SsmIncidents.Inputs.ResponsePlanIntegrationPagerdutyArgs
                    {
                        Name = "pagerdutyIntergration",
                        ServiceId = "example",
                        SecretId = "example",
                    },
                },
            },
            Tags = 
            {
                { "key", "value" },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleAwsSsmincidentsReplicationSet,
            },
        });
    
    });
    
    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()
                .name("name")
                .incidentTemplate(ResponsePlanIncidentTemplateArgs.builder()
                    .title("title")
                    .impact("3")
                    .dedupeString("dedupe")
                    .incidentTags(Map.of("key", "value"))
                    .notificationTargets(                
                        ResponsePlanIncidentTemplateNotificationTargetArgs.builder()
                            .snsTopicArn(example1.arn())
                            .build(),
                        ResponsePlanIncidentTemplateNotificationTargetArgs.builder()
                            .snsTopicArn(example2.arn())
                            .build())
                    .summary("summary")
                    .build())
                .displayName("display name")
                .chatChannels(topic.arn())
                .engagements("arn:aws:ssm-contacts:us-east-2:111122223333:contact/test1")
                .action(ResponsePlanActionArgs.builder()
                    .ssmAutomations(ResponsePlanActionSsmAutomationArgs.builder()
                        .documentName(document1.name())
                        .roleArn(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(exampleAwsSsmincidentsReplicationSet)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ssmincidents:ResponsePlan
        properties:
          name: name
          incidentTemplate:
            title: title
            impact: '3'
            dedupeString: dedupe
            incidentTags:
              key: value
            notificationTargets:
              - snsTopicArn: ${example1.arn}
              - snsTopicArn: ${example2.arn}
            summary: summary
          displayName: display name
          chatChannels:
            - ${topic.arn}
          engagements:
            - arn:aws:ssm-contacts:us-east-2:111122223333:contact/test1
          action:
            ssmAutomations:
              - documentName: ${document1.name}
                roleArn: ${role1.arn}
                documentVersion: version1
                targetAccount: RESPONSE_PLAN_OWNER_ACCOUNT
                parameters:
                  - name: key
                    values:
                      - value1
                      - value2
                  - name: foo
                    values:
                      - bar
                dynamicParameters:
                  someKey: INVOLVED_RESOURCES
                  anotherKey: INCIDENT_RECORD_ARN
          integration:
            pagerduties:
              - name: pagerdutyIntergration
                serviceId: example
                secretId: example
          tags:
            key: value
        options:
          dependson:
            - ${exampleAwsSsmincidentsReplicationSet}
    

    Create ResponsePlan Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResponsePlan(name: string, args: ResponsePlanArgs, opts?: CustomResourceOptions);
    @overload
    def ResponsePlan(resource_name: str,
                     args: ResponsePlanArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResponsePlan(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     incident_template: Optional[ResponsePlanIncidentTemplateArgs] = None,
                     action: Optional[ResponsePlanActionArgs] = None,
                     chat_channels: Optional[Sequence[str]] = None,
                     display_name: Optional[str] = None,
                     engagements: Optional[Sequence[str]] = None,
                     integration: Optional[ResponsePlanIntegrationArgs] = None,
                     name: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
    func NewResponsePlan(ctx *Context, name string, args ResponsePlanArgs, opts ...ResourceOption) (*ResponsePlan, error)
    public ResponsePlan(string name, ResponsePlanArgs args, CustomResourceOptions? opts = null)
    public ResponsePlan(String name, ResponsePlanArgs args)
    public ResponsePlan(String name, ResponsePlanArgs args, CustomResourceOptions options)
    
    type: aws:ssmincidents:ResponsePlan
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ResponsePlanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ResponsePlanArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ResponsePlanArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResponsePlanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResponsePlanArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var responsePlanResource = new Aws.SsmIncidents.ResponsePlan("responsePlanResource", new()
    {
        IncidentTemplate = new Aws.SsmIncidents.Inputs.ResponsePlanIncidentTemplateArgs
        {
            Impact = 0,
            Title = "string",
            DedupeString = "string",
            IncidentTags = 
            {
                { "string", "string" },
            },
            NotificationTargets = new[]
            {
                new Aws.SsmIncidents.Inputs.ResponsePlanIncidentTemplateNotificationTargetArgs
                {
                    SnsTopicArn = "string",
                },
            },
            Summary = "string",
        },
        Action = new Aws.SsmIncidents.Inputs.ResponsePlanActionArgs
        {
            SsmAutomations = new[]
            {
                new Aws.SsmIncidents.Inputs.ResponsePlanActionSsmAutomationArgs
                {
                    DocumentName = "string",
                    RoleArn = "string",
                    DocumentVersion = "string",
                    DynamicParameters = 
                    {
                        { "string", "string" },
                    },
                    Parameters = new[]
                    {
                        new Aws.SsmIncidents.Inputs.ResponsePlanActionSsmAutomationParameterArgs
                        {
                            Name = "string",
                            Values = new[]
                            {
                                "string",
                            },
                        },
                    },
                    TargetAccount = "string",
                },
            },
        },
        ChatChannels = new[]
        {
            "string",
        },
        DisplayName = "string",
        Engagements = new[]
        {
            "string",
        },
        Integration = new Aws.SsmIncidents.Inputs.ResponsePlanIntegrationArgs
        {
            Pagerduties = new[]
            {
                new Aws.SsmIncidents.Inputs.ResponsePlanIntegrationPagerdutyArgs
                {
                    Name = "string",
                    SecretId = "string",
                    ServiceId = "string",
                },
            },
        },
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ssmincidents.NewResponsePlan(ctx, "responsePlanResource", &ssmincidents.ResponsePlanArgs{
    	IncidentTemplate: &ssmincidents.ResponsePlanIncidentTemplateArgs{
    		Impact:       pulumi.Int(0),
    		Title:        pulumi.String("string"),
    		DedupeString: pulumi.String("string"),
    		IncidentTags: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		NotificationTargets: ssmincidents.ResponsePlanIncidentTemplateNotificationTargetArray{
    			&ssmincidents.ResponsePlanIncidentTemplateNotificationTargetArgs{
    				SnsTopicArn: pulumi.String("string"),
    			},
    		},
    		Summary: pulumi.String("string"),
    	},
    	Action: &ssmincidents.ResponsePlanActionArgs{
    		SsmAutomations: ssmincidents.ResponsePlanActionSsmAutomationArray{
    			&ssmincidents.ResponsePlanActionSsmAutomationArgs{
    				DocumentName:    pulumi.String("string"),
    				RoleArn:         pulumi.String("string"),
    				DocumentVersion: pulumi.String("string"),
    				DynamicParameters: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				Parameters: ssmincidents.ResponsePlanActionSsmAutomationParameterArray{
    					&ssmincidents.ResponsePlanActionSsmAutomationParameterArgs{
    						Name: pulumi.String("string"),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    				TargetAccount: pulumi.String("string"),
    			},
    		},
    	},
    	ChatChannels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	Engagements: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Integration: &ssmincidents.ResponsePlanIntegrationArgs{
    		Pagerduties: ssmincidents.ResponsePlanIntegrationPagerdutyArray{
    			&ssmincidents.ResponsePlanIntegrationPagerdutyArgs{
    				Name:      pulumi.String("string"),
    				SecretId:  pulumi.String("string"),
    				ServiceId: pulumi.String("string"),
    			},
    		},
    	},
    	Name: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var responsePlanResource = new ResponsePlan("responsePlanResource", ResponsePlanArgs.builder()
        .incidentTemplate(ResponsePlanIncidentTemplateArgs.builder()
            .impact(0)
            .title("string")
            .dedupeString("string")
            .incidentTags(Map.of("string", "string"))
            .notificationTargets(ResponsePlanIncidentTemplateNotificationTargetArgs.builder()
                .snsTopicArn("string")
                .build())
            .summary("string")
            .build())
        .action(ResponsePlanActionArgs.builder()
            .ssmAutomations(ResponsePlanActionSsmAutomationArgs.builder()
                .documentName("string")
                .roleArn("string")
                .documentVersion("string")
                .dynamicParameters(Map.of("string", "string"))
                .parameters(ResponsePlanActionSsmAutomationParameterArgs.builder()
                    .name("string")
                    .values("string")
                    .build())
                .targetAccount("string")
                .build())
            .build())
        .chatChannels("string")
        .displayName("string")
        .engagements("string")
        .integration(ResponsePlanIntegrationArgs.builder()
            .pagerduties(ResponsePlanIntegrationPagerdutyArgs.builder()
                .name("string")
                .secretId("string")
                .serviceId("string")
                .build())
            .build())
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    response_plan_resource = aws.ssmincidents.ResponsePlan("responsePlanResource",
        incident_template={
            "impact": 0,
            "title": "string",
            "dedupeString": "string",
            "incidentTags": {
                "string": "string",
            },
            "notificationTargets": [{
                "snsTopicArn": "string",
            }],
            "summary": "string",
        },
        action={
            "ssmAutomations": [{
                "documentName": "string",
                "roleArn": "string",
                "documentVersion": "string",
                "dynamicParameters": {
                    "string": "string",
                },
                "parameters": [{
                    "name": "string",
                    "values": ["string"],
                }],
                "targetAccount": "string",
            }],
        },
        chat_channels=["string"],
        display_name="string",
        engagements=["string"],
        integration={
            "pagerduties": [{
                "name": "string",
                "secretId": "string",
                "serviceId": "string",
            }],
        },
        name="string",
        tags={
            "string": "string",
        })
    
    const responsePlanResource = new aws.ssmincidents.ResponsePlan("responsePlanResource", {
        incidentTemplate: {
            impact: 0,
            title: "string",
            dedupeString: "string",
            incidentTags: {
                string: "string",
            },
            notificationTargets: [{
                snsTopicArn: "string",
            }],
            summary: "string",
        },
        action: {
            ssmAutomations: [{
                documentName: "string",
                roleArn: "string",
                documentVersion: "string",
                dynamicParameters: {
                    string: "string",
                },
                parameters: [{
                    name: "string",
                    values: ["string"],
                }],
                targetAccount: "string",
            }],
        },
        chatChannels: ["string"],
        displayName: "string",
        engagements: ["string"],
        integration: {
            pagerduties: [{
                name: "string",
                secretId: "string",
                serviceId: "string",
            }],
        },
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:ssmincidents:ResponsePlan
    properties:
        action:
            ssmAutomations:
                - documentName: string
                  documentVersion: string
                  dynamicParameters:
                    string: string
                  parameters:
                    - name: string
                      values:
                        - string
                  roleArn: string
                  targetAccount: string
        chatChannels:
            - string
        displayName: string
        engagements:
            - string
        incidentTemplate:
            dedupeString: string
            impact: 0
            incidentTags:
                string: string
            notificationTargets:
                - snsTopicArn: string
            summary: string
            title: string
        integration:
            pagerduties:
                - name: string
                  secretId: string
                  serviceId: string
        name: string
        tags:
            string: string
    

    ResponsePlan Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ResponsePlan resource accepts the following input properties:

    IncidentTemplate ResponsePlanIncidentTemplate
    Action ResponsePlanAction
    ChatChannels List<string>
    DisplayName string
    Engagements List<string>
    Integration ResponsePlanIntegration
    Name string
    The name of the response plan.
    Tags Dictionary<string, string>
    incidentTemplate Property Map
    action Property Map
    chatChannels List<String>
    displayName String
    engagements List<String>
    integration Property Map
    name String
    The name of the response plan.
    tags Map<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResponsePlan resource produces the following output properties:

    Arn string
    The ARN of the response plan.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The ARN of the response plan.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the response plan.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The ARN of the response plan.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The ARN of the response plan.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the response plan.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing ResponsePlan Resource

    Get an existing ResponsePlan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ResponsePlanState, opts?: CustomResourceOptions): ResponsePlan
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[ResponsePlanActionArgs] = None,
            arn: Optional[str] = None,
            chat_channels: Optional[Sequence[str]] = None,
            display_name: Optional[str] = None,
            engagements: Optional[Sequence[str]] = None,
            incident_template: Optional[ResponsePlanIncidentTemplateArgs] = None,
            integration: Optional[ResponsePlanIntegrationArgs] = None,
            name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> ResponsePlan
    func GetResponsePlan(ctx *Context, name string, id IDInput, state *ResponsePlanState, opts ...ResourceOption) (*ResponsePlan, error)
    public static ResponsePlan Get(string name, Input<string> id, ResponsePlanState? state, CustomResourceOptions? opts = null)
    public static ResponsePlan get(String name, Output<String> id, ResponsePlanState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action ResponsePlanAction
    Arn string
    The ARN of the response plan.
    ChatChannels List<string>
    DisplayName string
    Engagements List<string>
    IncidentTemplate ResponsePlanIncidentTemplate
    Integration ResponsePlanIntegration
    Name string
    The name of the response plan.
    Tags Dictionary<string, string>
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Action ResponsePlanActionArgs
    Arn string
    The ARN of the response plan.
    ChatChannels []string
    DisplayName string
    Engagements []string
    IncidentTemplate ResponsePlanIncidentTemplateArgs
    Integration ResponsePlanIntegrationArgs
    Name string
    The name of the response plan.
    Tags map[string]string
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action ResponsePlanAction
    arn String
    The ARN of the response plan.
    chatChannels List<String>
    displayName String
    engagements List<String>
    incidentTemplate ResponsePlanIncidentTemplate
    integration ResponsePlanIntegration
    name String
    The name of the response plan.
    tags Map<String,String>
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action ResponsePlanAction
    arn string
    The ARN of the response plan.
    chatChannels string[]
    displayName string
    engagements string[]
    incidentTemplate ResponsePlanIncidentTemplate
    integration ResponsePlanIntegration
    name string
    The name of the response plan.
    tags {[key: string]: string}
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action ResponsePlanActionArgs
    arn str
    The ARN of the response plan.
    chat_channels Sequence[str]
    display_name str
    engagements Sequence[str]
    incident_template ResponsePlanIncidentTemplateArgs
    integration ResponsePlanIntegrationArgs
    name str
    The name of the response plan.
    tags Mapping[str, str]
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action Property Map
    arn String
    The ARN of the response plan.
    chatChannels List<String>
    displayName String
    engagements List<String>
    incidentTemplate Property Map
    integration Property Map
    name String
    The name of the response plan.
    tags Map<String>
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    ResponsePlanAction, ResponsePlanActionArgs

    ResponsePlanActionSsmAutomation, ResponsePlanActionSsmAutomationArgs

    ResponsePlanActionSsmAutomationParameter, ResponsePlanActionSsmAutomationParameterArgs

    Name string
    The name of the response plan.
    Values List<string>
    Name string
    The name of the response plan.
    Values []string
    name String
    The name of the response plan.
    values List<String>
    name string
    The name of the response plan.
    values string[]
    name str
    The name of the response plan.
    values Sequence[str]
    name String
    The name of the response plan.
    values List<String>

    ResponsePlanIncidentTemplate, ResponsePlanIncidentTemplateArgs

    Impact int
    The impact value of a generated incident. The following values are supported:
    Title string
    The title of a generated incident.
    DedupeString string
    A string used to stop Incident Manager from creating multiple incident records for the same incident.
    IncidentTags Dictionary<string, string>
    The tags assigned to an incident template. When an incident starts, Incident Manager assigns the tags specified in the template to the incident.
    NotificationTargets List<ResponsePlanIncidentTemplateNotificationTarget>
    The Amazon Simple Notification Service (Amazon SNS) targets that this incident notifies when it is updated. The notification_target configuration block supports the following argument:
    Summary string
    The summary of an incident.
    Impact int
    The impact value of a generated incident. The following values are supported:
    Title string
    The title of a generated incident.
    DedupeString string
    A string used to stop Incident Manager from creating multiple incident records for the same incident.
    IncidentTags map[string]string
    The tags assigned to an incident template. When an incident starts, Incident Manager assigns the tags specified in the template to the incident.
    NotificationTargets []ResponsePlanIncidentTemplateNotificationTarget
    The Amazon Simple Notification Service (Amazon SNS) targets that this incident notifies when it is updated. The notification_target configuration block supports the following argument:
    Summary string
    The summary of an incident.
    impact Integer
    The impact value of a generated incident. The following values are supported:
    title String
    The title of a generated incident.
    dedupeString String
    A string used to stop Incident Manager from creating multiple incident records for the same incident.
    incidentTags Map<String,String>
    The tags assigned to an incident template. When an incident starts, Incident Manager assigns the tags specified in the template to the incident.
    notificationTargets List<ResponsePlanIncidentTemplateNotificationTarget>
    The Amazon Simple Notification Service (Amazon SNS) targets that this incident notifies when it is updated. The notification_target configuration block supports the following argument:
    summary String
    The summary of an incident.
    impact number
    The impact value of a generated incident. The following values are supported:
    title string
    The title of a generated incident.
    dedupeString string
    A string used to stop Incident Manager from creating multiple incident records for the same incident.
    incidentTags {[key: string]: string}
    The tags assigned to an incident template. When an incident starts, Incident Manager assigns the tags specified in the template to the incident.
    notificationTargets ResponsePlanIncidentTemplateNotificationTarget[]
    The Amazon Simple Notification Service (Amazon SNS) targets that this incident notifies when it is updated. The notification_target configuration block supports the following argument:
    summary string
    The summary of an incident.
    impact int
    The impact value of a generated incident. The following values are supported:
    title str
    The title of a generated incident.
    dedupe_string str
    A string used to stop Incident Manager from creating multiple incident records for the same incident.
    incident_tags Mapping[str, str]
    The tags assigned to an incident template. When an incident starts, Incident Manager assigns the tags specified in the template to the incident.
    notification_targets Sequence[ResponsePlanIncidentTemplateNotificationTarget]
    The Amazon Simple Notification Service (Amazon SNS) targets that this incident notifies when it is updated. The notification_target configuration block supports the following argument:
    summary str
    The summary of an incident.
    impact Number
    The impact value of a generated incident. The following values are supported:
    title String
    The title of a generated incident.
    dedupeString String
    A string used to stop Incident Manager from creating multiple incident records for the same incident.
    incidentTags Map<String>
    The tags assigned to an incident template. When an incident starts, Incident Manager assigns the tags specified in the template to the incident.
    notificationTargets List<Property Map>
    The Amazon Simple Notification Service (Amazon SNS) targets that this incident notifies when it is updated. The notification_target configuration block supports the following argument:
    summary String
    The summary of an incident.

    ResponsePlanIncidentTemplateNotificationTarget, ResponsePlanIncidentTemplateNotificationTargetArgs

    SnsTopicArn string

    The ARN of the Amazon SNS topic.

    The following arguments are optional:

    SnsTopicArn string

    The ARN of the Amazon SNS topic.

    The following arguments are optional:

    snsTopicArn String

    The ARN of the Amazon SNS topic.

    The following arguments are optional:

    snsTopicArn string

    The ARN of the Amazon SNS topic.

    The following arguments are optional:

    sns_topic_arn str

    The ARN of the Amazon SNS topic.

    The following arguments are optional:

    snsTopicArn String

    The ARN of the Amazon SNS topic.

    The following arguments are optional:

    ResponsePlanIntegration, ResponsePlanIntegrationArgs

    ResponsePlanIntegrationPagerduty, ResponsePlanIntegrationPagerdutyArgs

    Name string
    The name of the response plan.
    SecretId string
    ServiceId string
    Name string
    The name of the response plan.
    SecretId string
    ServiceId string
    name String
    The name of the response plan.
    secretId String
    serviceId String
    name string
    The name of the response plan.
    secretId string
    serviceId string
    name str
    The name of the response plan.
    secret_id str
    service_id str
    name String
    The name of the response plan.
    secretId String
    serviceId String

    Import

    Using pulumi import, import an Incident Manager response plan using the response plan ARN. You can find the response plan ARN in the AWS Management Console. For example:

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi