AWS Systems Manager Incident Manager
API Reference
AWS Systems Manager Incident Manager: API Reference
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
Actions ... 2
AWS Systems Manager Incident Manager ... 3
CreateReplicationSet ... 5
CreateResponsePlan ... 8
CreateTimelineEvent ... 13
DeleteIncidentRecord ... 17
DeleteReplicationSet ... 19
DeleteResourcePolicy ... 21
DeleteResponsePlan ... 24
DeleteTimelineEvent ... 26
GetIncidentRecord ... 29
GetReplicationSet ... 32
GetResourcePolicies ... 35
GetResponsePlan ... 39
GetTimelineEvent ... 43
ListIncidentRecords ... 46
ListRelatedItems ... 50
ListReplicationSets ... 54
ListResponsePlans ... 57
ListTagsForResource ... 60
ListTimelineEvents ... 63
PutResourcePolicy ... 68
StartIncident ... 71
TagResource ... 75
UntagResource ... 78
UpdateDeletionProtection ... 81
UpdateIncidentRecord ... 84
UpdateRelatedItems ... 88
UpdateReplicationSet ... 91
UpdateResponsePlan ... 94
UpdateTimelineEvent ... 99
AWS Systems Manager Incident Manager Contacts ... 102
AcceptPage ... 103
ActivateContactChannel ... 107
CreateContact ... 110
CreateContactChannel ... 114
DeactivateContactChannel ... 118
DeleteContact ... 120
DeleteContactChannel ... 123
DescribeEngagement ... 125
DescribePage ... 129
GetContact ... 134
GetContactChannel ... 138
GetContactPolicy ... 142
ListContactChannels ... 145
ListContacts ... 149
ListEngagements ... 153
ListPageReceipts ... 157
ListPagesByContact ... 161
ListPagesByEngagement ... 165
ListTagsForResource ... 169
PutContactPolicy ... 172
SendActivationCode ... 175
StartEngagement ... 178
StopEngagement ... 182
TagResource ... 185
UntagResource ... 188
UpdateContact ... 191
UpdateContactChannel ... 195
Data Types ... 198
AWS Systems Manager Incident Manager ... 199
Action ... 200
AddRegionAction ... 201
AttributeValueList ... 202
AutomationExecution ... 203
ChatChannel ... 204
Condition ... 205
DeleteRegionAction ... 206
EmptyChatChannel ... 207
EventSummary ... 208
Filter ... 210
IncidentRecord ... 211
IncidentRecordSource ... 214
IncidentRecordSummary ... 216
IncidentTemplate ... 218
ItemIdentifier ... 220
ItemValue ... 221
NotificationTargetItem ... 222
RegionInfo ... 223
RegionMapInputValue ... 224
RelatedItem ... 225
RelatedItemsUpdate ... 226
ReplicationSet ... 227
ResourcePolicy ... 229
ResponsePlanSummary ... 230
SsmAutomation ... 231
TimelineEvent ... 233
TriggerDetails ... 235
UpdateReplicationSetAction ... 236
AWS Systems Manager Incident Manager Contacts ... 236
ChannelTargetInfo ... 237
Contact ... 238
ContactChannel ... 240
ContactChannelAddress ... 242
ContactTargetInfo ... 243
Engagement ... 244
Page ... 246
Plan ... 248
Receipt ... 249
Stage ... 250
Tag ... 251
Target ... 252
TimeRange ... 253
ValidationExceptionField ... 254
Common Parameters ... 255
Common Errors ... 257
Welcome
AWS Systems Manager Incident Manager is an incident management console designed to help users mitigate and recover from incidents affecting their AWS-hosted applications. An incident is any unplanned interruption or reduction in quality of services.
Incident Manager increases incident resolution by notifying responders of impact, highlighting relevant troubleshooting data, and providing collaboration tools to get services back up and running. To achieve the primary goal of reducing the time-to-resolution of critical incidents, Incident Manager automates response plans and enables responder team escalation.
Actions
The following actions are supported by AWS Systems Manager Incident Manager:
• CreateReplicationSet (p. 5)
• CreateResponsePlan (p. 8)
• CreateTimelineEvent (p. 13)
• DeleteIncidentRecord (p. 17)
• DeleteReplicationSet (p. 19)
• DeleteResourcePolicy (p. 21)
• DeleteResponsePlan (p. 24)
• DeleteTimelineEvent (p. 26)
• GetIncidentRecord (p. 29)
• GetReplicationSet (p. 32)
• GetResourcePolicies (p. 35)
• GetResponsePlan (p. 39)
• GetTimelineEvent (p. 43)
• ListIncidentRecords (p. 46)
• ListRelatedItems (p. 50)
• ListReplicationSets (p. 54)
• ListResponsePlans (p. 57)
• ListTagsForResource (p. 60)
• ListTimelineEvents (p. 63)
• PutResourcePolicy (p. 68)
• StartIncident (p. 71)
• TagResource (p. 75)
• UntagResource (p. 78)
• UpdateDeletionProtection (p. 81)
• UpdateIncidentRecord (p. 84)
• UpdateRelatedItems (p. 88)
• UpdateReplicationSet (p. 91)
• UpdateResponsePlan (p. 94)
• UpdateTimelineEvent (p. 99)
The following actions are supported by AWS Systems Manager Incident Manager Contacts:
• AcceptPage (p. 103)
• ActivateContactChannel (p. 107)
• CreateContact (p. 110)
• CreateContactChannel (p. 114)
• DeactivateContactChannel (p. 118)
• DeleteContact (p. 120)
• DeleteContactChannel (p. 123)
• DescribeEngagement (p. 125)
AWS Systems Manager Incident Manager
• DescribePage (p. 129)
• GetContact (p. 134)
• GetContactChannel (p. 138)
• GetContactPolicy (p. 142)
• ListContactChannels (p. 145)
• ListContacts (p. 149)
• ListEngagements (p. 153)
• ListPageReceipts (p. 157)
• ListPagesByContact (p. 161)
• ListPagesByEngagement (p. 165)
• ListTagsForResource (p. 169)
• PutContactPolicy (p. 172)
• SendActivationCode (p. 175)
• StartEngagement (p. 178)
• StopEngagement (p. 182)
• TagResource (p. 185)
• UntagResource (p. 188)
• UpdateContact (p. 191)
• UpdateContactChannel (p. 195)
AWS Systems Manager Incident Manager
The following actions are supported by AWS Systems Manager Incident Manager:
• CreateReplicationSet (p. 5)
• CreateResponsePlan (p. 8)
• CreateTimelineEvent (p. 13)
• DeleteIncidentRecord (p. 17)
• DeleteReplicationSet (p. 19)
• DeleteResourcePolicy (p. 21)
• DeleteResponsePlan (p. 24)
• DeleteTimelineEvent (p. 26)
• GetIncidentRecord (p. 29)
• GetReplicationSet (p. 32)
• GetResourcePolicies (p. 35)
• GetResponsePlan (p. 39)
• GetTimelineEvent (p. 43)
• ListIncidentRecords (p. 46)
• ListRelatedItems (p. 50)
• ListReplicationSets (p. 54)
• ListResponsePlans (p. 57)
• ListTagsForResource (p. 60)
• ListTimelineEvents (p. 63)
• PutResourcePolicy (p. 68)
• StartIncident (p. 71)
AWS Systems Manager Incident Manager
• TagResource (p. 75)
• UntagResource (p. 78)
• UpdateDeletionProtection (p. 81)
• UpdateIncidentRecord (p. 84)
• UpdateRelatedItems (p. 88)
• UpdateReplicationSet (p. 91)
• UpdateResponsePlan (p. 94)
• UpdateTimelineEvent (p. 99)
CreateReplicationSet
CreateReplicationSet
Service: AWS Systems Manager Incident Manager
A replication set replicates and encrypts your data to the provided Regions with the provided AWS KMS key.
Request Syntax
POST /createReplicationSet HTTP/1.1 Content-type: application/json {
"clientToken": "string", "regions": {
"string" : {
"sseKmsKeyId": "string"
} }}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
clientToken (p. 5)
A token ensuring that the operation is called only once with the specified details.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 128.
Required: No regions (p. 5)
The Regions that Incident Manager replicates your data to. You can have up to three Regions in your replication set.
Type: String to RegionMapInputValue (p. 224) object map Map Entries: Maximum number of 3 items.
Key Length Constraints: Minimum length of 0. Maximum length of 20.
Required: Yes
Response Syntax
HTTP/1.1 201
Content-type: application/json { "arn": "string"
CreateReplicationSet
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
The following data is returned in JSON format by the service.
arn (p. 5)
The Amazon Resource Name (ARN) of the replication set.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 ConflictException
Updating or deleting a resource causes an inconsistent state.
HTTP Status Code: 409 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ServiceQuotaExceededException
Request would cause a service quota to be exceeded.
HTTP Status Code: 402 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of CreateReplicationSet.
CreateReplicationSet
Sample Request
POST /createReplicationSet HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.create-replication-set X-Amz-Date: 20210810T210320Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 286
{ "regions": {"us-east-1": {"sseKmsKeyId": "arn:aws:kms:us-east-1:111122223333:key/
de6a2f4e-5d40-4443-ad82-1db179510a32"}, "us-east-2": {"sseKmsKeyId": "arn:aws:kms:us- east-2:111122223333:key/6f1572c9-05ca-43cf-bf03-ee7bc93f59bd"}},
"clientToken": "aa1b2cde-27e3-42ff-9cac-99380EXAMPLE"
}
Sample Response
{ "arn":"arn:aws:ssm-incidents::111122223333:replication-set/40bd98f0-4110-2dee-b35e- b87006f9e172"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CreateResponsePlan
CreateResponsePlan
Service: AWS Systems Manager Incident Manager
Creates a response plan that automates the initial response to incidents. A response plan engages contacts, starts chat channel collaboration, and initiates runbooks at the beginning of an incident.
Request Syntax
POST /createResponsePlan HTTP/1.1 Content-type: application/json { "actions": [
{
"ssmAutomation": {
"documentName": "string", "documentVersion": "string", "parameters": {
"string" : [ "string" ] },
"roleArn": "string", "targetAccount": "string"
} } ],
"chatChannel": {
"chatbotSns": [ "string" ], "empty": {
} },
"clientToken": "string", "displayName": "string", "engagements": [ "string" ], "incidentTemplate": { "dedupeString": "string", "impact": number,
"notificationTargets": [ {
"snsTopicArn": "string"
} ],
"summary": "string", "title": "string"
},
"name": "string", "tags": {
"string" : "string"
} }
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
actions (p. 8)
The actions that the response plan starts at the beginning of an incident.
CreateResponsePlan
Type: Array of Action (p. 200) objects
Array Members: Minimum number of 0 items. Maximum number of 1 item.
Required: No chatChannel (p. 8)
The AWS Chatbot chat channel used for collaboration during an incident.
Type: ChatChannel (p. 204) object Required: No
clientToken (p. 8)
A token ensuring that the operation is called only once with the specified details.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 128.
Required: No displayName (p. 8)
The long format of the response plan name. This field can contain spaces.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 200.
Required: No engagements (p. 8)
The contacts and escalation plans that the response plan engages during an incident.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 5 items.
Length Constraints: Minimum length of 0. Maximum length of 2048.
Pattern: ^arn:[-\w+=/,.@]+:ssm-contacts:[-\w+=/,.@]*:[0-9]+:([\w+=/,.@:-]+)*$
Required: No incidentTemplate (p. 8)
Details used to create an incident when using this response plan.
Type: IncidentTemplate (p. 218) object Required: Yes
name (p. 8)
The short format name of the response plan. Can't include spaces.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 200.
Pattern: ^[a-zA-Z0-9-_]*$
Required: Yes
CreateResponsePlan
tags (p. 8)
A list of tags that you are adding to the response plan.
Type: String to string map
Map Entries: Maximum number of 50 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern: ^(?!aws:)[A-Za-z0-9 _=@:.+-/]+$
Value Length Constraints: Minimum length of 0. Maximum length of 256.
Value Pattern: ^[A-Za-z0-9 _=@:.+-/]*$
Required: No
Response Syntax
HTTP/1.1 201
Content-type: application/json {
"arn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
The following data is returned in JSON format by the service.
arn (p. 10)
The Amazon Resource Name (ARN) of the response plan.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 ConflictException
Updating or deleting a resource causes an inconsistent state.
HTTP Status Code: 409
CreateResponsePlan
InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of CreateResponsePlan.
Sample Request
POST /createResponsePlan HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.create-response-plan X-Amz-Date: 20210810T213532Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 652
{ "actions": [
{ "ssmAutomation": {
"documentName": "AWSIncidents-CriticalIncidentRunbookTemplate", "documentVersion": "$DEFAULT",
"roleArn": "arn:aws:iam::111122223333:role/aws-service-role/ssm- incidents.amazonaws.com/AWSServiceRoleForIncidentManager",
"targetAccount": "RESPONSE_PLAN_OWNER_ACCOUNT"
} } ],
"chatChannel": {
"chatbotSns": ["arn:aws:sns:us-east-1:111122223333:Standard_User"]
},
"displayName": "Example response plan",
"engagements": ["arn:aws:ssm-contacts:us-east-1:111122223333:contact/example"], "incidentTemplate": {
"impact": 5,
"title": "example-incident"
}, "name": "example-response",
CreateResponsePlan
"clientToken": "aa1b2cde-27e3-42ff-9cac-99380EXAMPLE"
}
Sample Response
{
"arn":"arn:aws:ssm-incidents::111122223333:response-plan/example-response"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CreateTimelineEvent
CreateTimelineEvent
Service: AWS Systems Manager Incident Manager
Creates a custom timeline event on the incident details page of an incident record. Timeline events are automatically created by Incident Manager, marking key moment during an incident. You can create custom timeline events to mark important events that are automatically detected by Incident Manager.
Request Syntax
POST /createTimelineEvent HTTP/1.1 Content-type: application/json {
"clientToken": "string", "eventData": "string", "eventTime": number, "eventType": "string",
"incidentRecordArn": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
clientToken (p. 13)
A token ensuring that the action is called only once with the specified details.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 128.
Required: No eventData (p. 13)
A short description of the event.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 6000.
Required: Yes eventTime (p. 13)
The time that the event occurred.
Type: Timestamp Required: Yes eventType (p. 13)
The type of the event. You can create timeline events of type Custom Event.
Type: String
CreateTimelineEvent
Length Constraints: Minimum length of 0. Maximum length of 100.
Required: Yes
incidentRecordArn (p. 13)
The Amazon Resource Name (ARN) of the incident record to which the event will be added.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Response Syntax
HTTP/1.1 201
Content-type: application/json {
"eventId": "string",
"incidentRecordArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
The following data is returned in JSON format by the service.
eventId (p. 14)
The ID of the event for easy reference later.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 50.
incidentRecordArn (p. 14)
The ARN of the incident record that you added the event to.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403
CreateTimelineEvent
ConflictException
Updating or deleting a resource causes an inconsistent state.
HTTP Status Code: 409 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of CreateTimelineEvent.
Sample Request
POST /createTimelineEvent HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.create-timeline-event X-Amz-Date: 20210810T221725Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 282
{
"eventData": "\"example timeline event\"", "eventTime": 1601584200,
"eventType": "Custom Event",
"incidentRecordArn": "arn:aws:ssm-incidents::111122223333:incident-record/example- response/bebd9911-63a7-672f-820b-63731f2543ad",
"clientToken": "aa1b2cde-27e3-42ff-9cac-99380EXAMPLE"
}
Sample Response
{ "eventId":"56bd9912-28e5-b4fc-ec3e-ca4f06309c99",
"incidentRecordArn":"arn:aws:ssm-incidents::111122223333:incident-record/example- response/bebd9911-63a7-672f-820b-63731f2543ad"
CreateTimelineEvent
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteIncidentRecord
DeleteIncidentRecord
Service: AWS Systems Manager Incident Manager Delete an incident record from Incident Manager.
Request Syntax
POST /deleteIncidentRecord HTTP/1.1 Content-type: application/json { "arn": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
arn (p. 17)
The Amazon Resource Name (ARN) of the incident record you are deleting.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
DeleteIncidentRecord
HTTP Status Code: 500 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of DeleteIncidentRecord.
Sample Request
POST /deleteIncidentRecord HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.delete-incident-record X-Amz-Date: 20210810T222351Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 116
{
"arn": "arn:aws:ssm-incidents::111122223333:incident-record/example-response/
bebd9911-63a7-672f-820b-63731f2543ad"
}
Sample Response
{}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteReplicationSet
DeleteReplicationSet
Service: AWS Systems Manager Incident Manager
Deletes all Regions in your replication set. Deleting the replication set deletes all Incident Manager data.
Request Syntax
POST /deleteReplicationSet?arn=arn HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
arn (p. 19)
The Amazon Resource Name (ARN) of the replication set you're deleting.
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404
DeleteReplicationSet
ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of DeleteReplicationSet.
Sample Request
POST /deleteReplicationSet?arn=arn%3Aaws%3Assm-incidents%3A%111122223333%3Areplication-set
%2F40bd98f0-4110-2dee-b35e-b87006f9e172 HTTP/1.1 Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.delete-replication-set X-Amz-Date: 20210811T215946Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210811/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 0
Sample Response
{}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteResourcePolicy
DeleteResourcePolicy
Service: AWS Systems Manager Incident Manager
Deletes the resource policy that AWS Resource Access Manager uses to share your Incident Manager resource.
Request Syntax
POST /deleteResourcePolicy HTTP/1.1 Content-type: application/json { "policyId": "string", "resourceArn": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
policyId (p. 21)
The ID of the resource policy you're deleting.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 256.
Required: Yes resourceArn (p. 21)
The Amazon Resource Name (ARN) of the resource you're deleting the policy from.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
DeleteResourcePolicy
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of DeleteResourcePolicy.
Sample Request
POST /deleteResourcePolicy HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.delete-resource-policy X-Amz-Date: 20210811T204449Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210811/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 133
{ "policyId": "72f95d0502d05ebf6e7d2c30ee0445cf",
"resourceArn": "arn:aws:ssm-incidents::111122223333:response-plan/example-response"
}
Sample Response
{}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
DeleteResourcePolicy
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteResponsePlan
DeleteResponsePlan
Service: AWS Systems Manager Incident Manager
Deletes the specified response plan. Deleting a response plan stops all linked CloudWatch alarms and EventBridge events from creating an incident with this response plan.
Request Syntax
POST /deleteResponsePlan HTTP/1.1 Content-type: application/json { "arn": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
arn (p. 24)
The Amazon Resource Name (ARN) of the response plan.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
DeleteResponsePlan
HTTP Status Code: 500 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of DeleteResponsePlan.
Sample Request
POST /deleteResponsePlan HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.delete-response-plan X-Amz-Date: 20210811T204938Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210811/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 77
{
"arn": "arn:aws:ssm-incidents::111122223333:response-plan/example-response"
}
Sample Response
{}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteTimelineEvent
DeleteTimelineEvent
Service: AWS Systems Manager Incident Manager Deletes a timeline event from an incident.
Request Syntax
POST /deleteTimelineEvent HTTP/1.1 Content-type: application/json { "eventId": "string",
"incidentRecordArn": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
eventId (p. 26)
The ID of the event you are updating. You can find this by using ListTimelineEvents.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 50.
Required: Yes
incidentRecordArn (p. 26)
The Amazon Resource Name (ARN) of the incident that includes the timeline event.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
DeleteTimelineEvent
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of DeleteTimelineEvent.
Sample Request
POST /updateTimelineEvent HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.update-timeline-event X-Amz-Date: 20210811T203312Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210811/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 261
{ "eventId": "a4bd9b45-1fcf-64c3-9d53-121d0f53a7ec", "eventTime": 1621620657,
"incidentRecordArn": "arn:aws:ssm-incidents::111122223333:incident-record/example- response/64bd9b45-1d0e-2622-840d-03a87a1451fa",
"clientToken": "aa1b2cde-27e3-42ff-9cac-99380EXAMPLE"
}
Sample Response
{}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
DeleteTimelineEvent
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetIncidentRecord
GetIncidentRecord
Service: AWS Systems Manager Incident Manager Returns the details for the specified incident record.
Request Syntax
GET /getIncidentRecord?arn=arn HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
arn (p. 29)
The Amazon Resource Name (ARN) of the incident record.
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json {
"incidentRecord": { "arn": "string",
"automationExecutions": [ {
"ssmExecutionArn": "string"
} ],
"chatChannel": {
"chatbotSns": [ "string" ], "empty": {
} },
"creationTime": number, "dedupeString": "string", "impact": number,
"incidentRecordSource": { "createdBy": "string", "invokedBy": "string", "resourceArn": "string", "source": "string"
},
"lastModifiedBy": "string", "lastModifiedTime": number, "notificationTargets": [ {
GetIncidentRecord
"snsTopicArn": "string"
} ],
"resolvedTime": number, "status": "string", "summary": "string", "title": "string"
}}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
incidentRecord (p. 29)
Details the structure of the incident record.
Type: IncidentRecord (p. 211) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of GetIncidentRecord.
GetIncidentRecord
Sample Request
GET /getIncidentRecord?arn=arn%3Aaws%3Assm-incidents%3A%111122223333%3Aincident-record
%2Fexample-response%2F78bd9919-b9ac-962d-91e0-149960600e3f HTTP/1.1 Host: ssm-incidents.us-east-1.amazonaws.com
Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.get-incident-record X-Amz-Date: 20210810T223503Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE
Sample Response
{ "incidentRecord":
{ "arn":"arn:aws:ssm-incidents::111122223333:incident-record/example-response/78bd9919- b9ac-962d-91e0-149960600e3f",
"automationExecutions":[], "chatChannel":{
"chatbotSns":["arn:aws:sns:us-east-1:111122223333:Standard_User"]
},
"creationTime":1.628634837849E9,
"dedupeString":"00bd9919-b99f-367c-c282-eabcaff587f7", "impact":5,
"incidentRecordSource": {
"createdBy":"arn:aws:sts::111122223333:assumed-role/Admin/exampleUser", "invokedBy":"arn:aws:sts::111122223333:assumed-role/Admin/exampleUser", "resourceArn":null,"source":"aws.ssm-incidents.custom"
},
"lastModifiedBy":"arn:aws:sts::111122223333:assumed-role/Admin/exampleUser", "lastModifiedTime":1.628634838724E9,
"notificationTargets":[], "resolvedTime":null, "status":"OPEN", "summary":null,
"title":"example-incident"
} }
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetReplicationSet
GetReplicationSet
Service: AWS Systems Manager Incident Manager Retrieve your Incident Manager replication set.
Request Syntax
GET /getReplicationSet?arn=arn HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
arn (p. 32)
The Amazon Resource Name (ARN) of the replication set you want to retrieve.
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json { "replicationSet": {
"arn": "string", "createdBy": "string", "createdTime": number,
"deletionProtected": boolean, "lastModifiedBy": "string", "lastModifiedTime": number, "regionMap": {
"string" : {
"sseKmsKeyId": "string", "status": "string", "statusMessage": "string", "statusUpdateDateTime": number }
},
"status": "string"
} }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
GetReplicationSet
replicationSet (p. 32)
Details of the replication set.
Type: ReplicationSet (p. 227) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of GetReplicationSet.
Sample Request
GET /getReplicationSet?arn=arn%3Aaws%3Assm-incidents%3A%111122223333%3Areplication-set
%2F40bd98f0-4110-2dee-b35e-b87006f9e172 HTTP/1.1 Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.get-replication-set X-Amz-Date: 20210810T224619Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE
Sample Response
{
GetReplicationSet
"replicationSet": {
"createdBy": "arn:aws:iam::111122223333:user/exampleUser", "createdTime": "2021-08-10T21:03:21.332000+00:00",
"deletionProtected": false,
"lastModifiedBy": "arn:aws:iam::111122223333:user/exampleUser", "lastModifiedTime": "2021-08-10T21:03:21.332000+00:00",
"regionMap": { "us-east-1": {
"sseKmsKeyId": "arn:aws:kms:us-east-1:111122223333:key/de6a2f4e-5d40-4443- ad82-1db179510a32",
"status": "ACTIVE"
},
"us-east-2": {
"sseKmsKeyId": "arn:aws:kms:us-east-2:111122223333:key/6f1572c9-05ca-43cf- bf03-ee7bc93f59bd",
"status": "ACTIVE",
"statusMessage": "Tagging inaccessible"
} },
"status": "ACTIVE"
} }
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetResourcePolicies
GetResourcePolicies
Service: AWS Systems Manager Incident Manager
Retrieves the resource policies attached to the specified response plan.
Request Syntax
POST /getResourcePolicies?resourceArn=resourceArn HTTP/1.1 Content-type: application/json
{ "maxResults": number, "nextToken": "string"
}
URI Request Parameters
The request uses the following URI parameters.
resourceArn (p. 35)
The Amazon Resource Name (ARN) of the response plan with the attached resource policy.
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Request Body
The request accepts the following data in JSON format.
maxResults (p. 35)
The maximum number of resource policies to display per page of results.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No nextToken (p. 35)
The pagination token to continue to the next page of results.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 2000.
Required: No
Response Syntax
HTTP/1.1 200
GetResourcePolicies
Content-type: application/json { "nextToken": "string", "resourcePolicies": [ {
"policyDocument": "string", "policyId": "string",
"ramResourceShareRegion": "string"
} ] }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
nextToken (p. 35)
The pagination token to continue to the next page of results.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 2000.
resourcePolicies (p. 35)
Details about the resource policy attached to the response plan.
Type: Array of ResourcePolicy (p. 229) objects
Array Members: Minimum number of 0 items. Maximum number of 100 items.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429
GetResourcePolicies
ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of GetResourcePolicies.
Sample Request
POST /getResourcePolicies?resourceArn=arn%3Aaws%3Assm-incidents%3A%111122223333%3Aresponse- plan%2Fexample-response HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.get-resource-policies X-Amz-Date: 20210810T230018Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE Content-Length: 0
Sample Response
{ "nextToken":null,
"resourcePolicies": [ {
"policyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":
[{\"Sid\":\"ExampleResourcePolciy\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":
\"arn:aws:iam::444455556666:root\"},\"Action\":[\"ssm-incidents:GetResponsePlan
\",\"ssm-incidents:StartIncident\",\"ssm-incidents:UpdateIncidentRecord
\",\"ssm-incidents:GetIncidentRecord\",\"ssm-incidents:CreateTimelineEvent
\",\"ssm-incidents:UpdateTimelineEvent\",\"ssm-incidents:GetTimelineEvent
\",\"ssm-incidents:ListTimelineEvents\",\"ssm-incidents:UpdateRelatedItems
\",\"ssm-incidents:ListRelatedItems\"],\"Resource\":[\"arn:aws:ssm- incidents:*:111122223333:response-plan/example-response\",\"arn:aws:ssm- incidents:*:111122223333:incident-record/example-incident/*\"]}]}", "policyId": "72f95d0502d05ebf6e7d2c30ee0445cf",
"ramResourceShareRegion": "us-east-1"
} ] }
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
GetResourcePolicies
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetResponsePlan
GetResponsePlan
Service: AWS Systems Manager Incident Manager Retrieves the details of the specified response plan.
Request Syntax
GET /getResponsePlan?arn=arn HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
arn (p. 39)
The Amazon Resource Name (ARN) of the response plan.
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json {
"actions": [ {
"ssmAutomation": {
"documentName": "string", "documentVersion": "string", "parameters": {
"string" : [ "string" ] },
"roleArn": "string", "targetAccount": "string"
} } ],
"arn": "string", "chatChannel": {
"chatbotSns": [ "string" ], "empty": {
} },
"displayName": "string", "engagements": [ "string" ], "incidentTemplate": { "dedupeString": "string", "impact": number,
"notificationTargets": [
GetResponsePlan
{
"snsTopicArn": "string"
} ],
"summary": "string", "title": "string"
},
"name": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
actions (p. 39)
The actions that this response plan takes at the beginning of the incident.
Type: Array of Action (p. 200) objects
Array Members: Minimum number of 0 items. Maximum number of 1 item.
arn (p. 39)
The ARN of the response plan.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
chatChannel (p. 39)
The AWS Chatbot chat channel used for collaboration during an incident.
Type: ChatChannel (p. 204) object displayName (p. 39)
The long format name of the response plan. Can contain spaces.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 200.
engagements (p. 39)
The contacts and escalation plans that the response plan engages during an incident.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 5 items.
Length Constraints: Minimum length of 0. Maximum length of 2048.
Pattern: ^arn:[-\w+=/,.@]+:ssm-contacts:[-\w+=/,.@]*:[0-9]+:([\w+=/,.@:-]+)*$
incidentTemplate (p. 39)
Details used to create the incident when using this response plan.
Type: IncidentTemplate (p. 218) object
GetResponsePlan
name (p. 39)
The short format name of the response plan. The name can't contain spaces.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 200.
Pattern: ^[a-zA-Z0-9-_]*$
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of GetResponsePlan.
Sample Request
GET /getResponsePlan?arn=arn%3Aaws%3Assm-incidents%3A%111122223333%3Aresponse-plan
%2Fexample-response HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.get-response-plan X-Amz-Date: 20210810T230500Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210810/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE
GetResponsePlan
Sample Response
{ "actions": [ {
"ssmAutomation": {
"documentName": "AWSIncidents-CriticalIncidentRunbookTemplate", "documentVersion": "$DEFAULT",
"roleArn": "arn:aws:iam::111122223333:role/aws-service-role/ssm- incidents.amazonaws.com/AWSServiceRoleForIncidentManager",
"targetAccount": "RESPONSE_PLAN_OWNER_ACCOUNT"
} } ],
"arn": "arn:aws:ssm-incidents::111122223333:response-plan/example-response", "chatChannel": {
"chatbotSns": [
"arn:aws:sns:us-east-1:111122223333:Standard_User"
] },
"displayName": "Example response plan", "engagements": [
"arn:aws:ssm-contacts:us-east-1:111122223333:contact/example"
],
"incidentTemplate": { "impact": 5,
"title": "example-incident"
},
"name": "example-response"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetTimelineEvent
GetTimelineEvent
Service: AWS Systems Manager Incident Manager
Retrieves a timeline event based on its ID and incident record.
Request Syntax
GET /getTimelineEvent?eventId=eventId&incidentRecordArn=incidentRecordArn HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
eventId (p. 43)
The ID of the event. You can get an event's ID when you create it, or by using ListTimelineEvents.
Length Constraints: Minimum length of 0. Maximum length of 50.
Required: Yes
incidentRecordArn (p. 43)
The Amazon Resource Name (ARN) of the incident that includes the timeline event.
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern: ^arn:aws(-cn|-us-gov)?:[a-z0-9-]*:[a-z0-9-]*:([0-9]{12})?:.+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json { "event": {
"eventData": "string", "eventId": "string", "eventTime": number, "eventType": "string", "eventUpdatedTime": number, "incidentRecordArn": "string"
}}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
GetTimelineEvent
The following data is returned in JSON format by the service.
event (p. 43)
Details about the timeline event.
Type: TimelineEvent (p. 233) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 257).
AccessDeniedException
You don't have sufficient access to perform this operation.
HTTP Status Code: 403 InternalServerException
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 ResourceNotFoundException
Request references a resource which doesn't exist.
HTTP Status Code: 404 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 429 ValidationException
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
Examples
Example
This example illustrates one usage of GetTimelineEvent.
Sample Request
GET /getTimelineEvent?eventId=ecbd9919-bba6-d317-6cfc-7232df620b6d&incidentRecordArn=arn
%3Aaws%3Assm-incidents%3A%111122223333%3Aincident-record%2Fexample-response%2F78bd9919- b9ac-962d-91e0-149960600e3f HTTP/1.1
Host: ssm-incidents.us-east-1.amazonaws.com Accept-Encoding: identity
User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/
x86_64.amzn.2 prompt/off command/ssm-incidents.get-timeline-event X-Amz-Date: 20210811T165600Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20210811/us-east-1/ssm- incidents/aws4_request, SignedHeaders=host;x-amz-date, Signature=39c3b3042cd2aEXAMPLE
GetTimelineEvent
Sample Response
{ "event": {
"eventData": "{\"modifiedBy\":\"arn:aws:sts::111122223333:assumed-role/Admin/
exampleUser\",\"modifiedAttributes\":[{\"attributeName\":\"relatedItems\",\"newValue\":\"{\
\\"itemToAdd\\\":{\\\"identifier\\\":{\\\"type\\\":\\\"PARENT\\\",\\\"value\\\":{\\\"arn\
\\":\\\"arn:aws:ssm:us-east-1:111122223333:opsItem/oi-4008965bf3a7\\\"}},\\\"title\\\":\\
\"parentItem\\\"}}\"}],\"incidentTitle\":\"example-incident\"}", "eventId": "ecbd9919-bba6-d317-6cfc-7232df620b6d", "eventTime": "2021-08-10T22:33:58.724000+00:00", "eventType": "SSM Incident Record Update",
"eventUpdatedTime": "2021-08-10T22:33:58.724000+00:00",
"incidentRecordArn": "arn:aws:ssm-incidents::111122223333:incident-record/example- response/78bd9919-b9ac-962d-91e0-149960600e3f"
} }
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
ListIncidentRecords
ListIncidentRecords
Service: AWS Systems Manager Incident Manager
Lists all incident records in your account. Use this command to retrieve the Amazon Resource Name (ARN) of the incident record you want to update.
Request Syntax
POST /listIncidentRecords HTTP/1.1 Content-type: application/json { "filters": [
{
"condition": { "after": number, "before": number, "equals": {
"integerValues": [ number ], "stringValues": [ "string" ] }
},
"key": "string"
} ],
"maxResults": number, "nextToken": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
filters (p. 46)
Filters the list of incident records through which you are searching. You can filter on the following keys:
• creationTime
• impact
• status
• createdBy
Note the following when deciding how to use Filters:
• If you don't specify a Filter, the response includes all incident records.
• If you specify more than one filter in a single request, the response returns incident records that match all filters.
• If you specify a filter with more than one value, the response returns incident records that match any of the values provided.
Type: Array of Filter (p. 210) objects
Array Members: Minimum number of 0 items. Maximum number of 5 items.
ListIncidentRecords
Required: No maxResults (p. 46)
The maximum number of results per page.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No nextToken (p. 46)
The pagination token to continue to the next page of results.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 2000.
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json { "incidentRecordSummaries": [ {
"arn": "string",
"creationTime": number, "impact": number,
"incidentRecordSource": { "createdBy": "string", "invokedBy": "string", "resourceArn": "string", "source": "string"
},
"resolvedTime": number, "status": "string", "title": "string"
} ],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
incidentRecordSummaries (p. 47)
The details of each listed incident record.
Type: Array of IncidentRecordSummary (p. 216) objects
Array Members: Minimum number of 0 items. Maximum number of 100 items.