Skip to main content

response_plans

Creates, updates, deletes or gets a response_plan resource or lists response_plans in a region

Overview

Nameresponse_plans
TypeResource
DescriptionResource type definition for AWS::SSMIncidents::ResponsePlan
Idaws.ssmincidents.response_plans

Fields

NameDatatypeDescription
arnstringThe ARN of the response plan.
namestringThe name of the response plan.
display_namestringThe display name of the response plan.
chat_channelobjectThe chat channel configuration.
engagementsarrayThe list of engagements to use.
actionsarrayThe list of actions.
integrationsarrayThe list of integrations.
tagsarrayThe tags to apply to the response plan.
incident_templateobjectThe incident template configuration.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, IncidentTemplate, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all response_plans in a region.

SELECT
region,
arn,
name,
display_name,
chat_channel,
engagements,
actions,
integrations,
tags,
incident_template
FROM aws.ssmincidents.response_plans
WHERE region = 'us-east-1';

Gets all properties from an individual response_plan.

SELECT
region,
arn,
name,
display_name,
chat_channel,
engagements,
actions,
integrations,
tags,
incident_template
FROM aws.ssmincidents.response_plans
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new response_plan resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ssmincidents.response_plans (
Name,
IncidentTemplate,
region
)
SELECT
'{{ Name }}',
'{{ IncidentTemplate }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ssmincidents.response_plans
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the response_plans resource, the following permissions are required:

Create

ssm-incidents:CreateResponsePlan,
ssm-incidents:GetResponsePlan,
ssm-incidents:TagResource,
ssm-incidents:ListTagsForResource,
iam:PassRole,
secretsmanager:GetSecretValue,
kms:Decrypt,
kms:GenerateDataKey,
kms:GenerateDataKeyPair,
kms:GenerateDataKeyPairWithoutPlaintext,
kms:GenerateDataKeyWithoutPlaintext

Read

ssm-incidents:GetResponsePlan,
ssm-incidents:ListTagsForResource

Update

ssm-incidents:UpdateResponsePlan,
ssm-incidents:GetResponsePlan,
ssm-incidents:TagResource,
ssm-incidents:UntagResource,
ssm-incidents:ListTagsForResource,
iam:PassRole,
secretsmanager:GetSecretValue,
kms:Decrypt,
kms:GenerateDataKey,
kms:GenerateDataKeyPair,
kms:GenerateDataKeyPairWithoutPlaintext,
kms:GenerateDataKeyWithoutPlaintext

Delete

ssm-incidents:DeleteResponsePlan,
ssm-incidents:GetResponsePlan

List

ssm-incidents:ListResponsePlans