We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.
Essential cookies are necessary to provide our site and services and cannot be deactivated. They are usually set in response to your actions on the site, such as setting your privacy preferences, signing in, or filling in forms.
Performance cookies provide anonymous statistics about how customers navigate our site so we can improve site experience and performance. Approved third parties may perform analytics on our behalf, but they cannot use the data for their own purposes.
Functional cookies help us provide useful site features, remember your preferences, and display relevant content. Approved third parties may set these cookies to provide certain site features. If you do not allow these cookies, then some or all of these services may not function properly.
Advertising cookies may be set through our site by us or our advertising partners and help us deliver relevant marketing content. If you do not allow these cookies, you will experience less relevant advertising.
Blocking some types of cookies may impact your experience of our sites. You may review and change your choices at any time by clicking Cookie preferences in the footer of this site. We and selected third-parties use cookies or similar technologies as specified in the AWS Cookie Notice.
update_related_items
(**kwargs)¶Add or remove related items from the related items tab of an incident record.
See also: AWS API Documentation
Request Syntax
response = client.update_related_items(
clientToken='string',
incidentRecordArn='string',
relatedItemsUpdate={
'itemToAdd': {
'generatedId': 'string',
'identifier': {
'type': 'ANALYSIS'|'INCIDENT'|'METRIC'|'PARENT'|'ATTACHMENT'|'OTHER'|'AUTOMATION'|'INVOLVED_RESOURCE'|'TASK',
'value': {
'arn': 'string',
'metricDefinition': 'string',
'pagerDutyIncidentDetail': {
'autoResolve': True|False,
'id': 'string',
'secretId': 'string'
},
'url': 'string'
}
},
'title': 'string'
},
'itemToRemove': {
'type': 'ANALYSIS'|'INCIDENT'|'METRIC'|'PARENT'|'ATTACHMENT'|'OTHER'|'AUTOMATION'|'INVOLVED_RESOURCE'|'TASK',
'value': {
'arn': 'string',
'metricDefinition': 'string',
'pagerDutyIncidentDetail': {
'autoResolve': True|False,
'id': 'string',
'secretId': 'string'
},
'url': 'string'
}
}
}
)
A token ensuring that the operation is called only once with the specified details.
This field is autopopulated if not provided.
[REQUIRED]
The Amazon Resource Name (ARN) of the incident record containing the related items you are updating.
[REQUIRED]
Details about the item you are adding or deleting.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: itemToAdd
, itemToRemove
.
Details about the related item you're adding.
A unique ID for a RelatedItem
.
Warning
Don't specify this parameter when you add a RelatedItem
by using the UpdateRelatedItems API action.
Details about the related item.
The type of related item.
Details about the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: arn
, metricDefinition
, pagerDutyIncidentDetail
, url
.
The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource.
The metric definition, if the related item is a metric in Amazon CloudWatch.
Details about an incident that is associated with a PagerDuty incident.
Indicates whether to resolve the PagerDuty incident when you resolve the associated Incident Manager incident.
The ID of the incident associated with the PagerDuty service for the response plan.
The ID of the Amazon Web Services Secrets Manager secret that stores your PagerDuty key, either a General Access REST API Key or User Token REST API Key, and other user credentials.
The URL, if the related item is a non-Amazon Web Services resource.
The title of the related item.
Details about the related item you're deleting.
The type of related item.
Details about the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: arn
, metricDefinition
, pagerDutyIncidentDetail
, url
.
The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource.
The metric definition, if the related item is a metric in Amazon CloudWatch.
Details about an incident that is associated with a PagerDuty incident.
Indicates whether to resolve the PagerDuty incident when you resolve the associated Incident Manager incident.
The ID of the incident associated with the PagerDuty service for the response plan.
The ID of the Amazon Web Services Secrets Manager secret that stores your PagerDuty key, either a General Access REST API Key or User Token REST API Key, and other user credentials.
The URL, if the related item is a non-Amazon Web Services resource.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMIncidents.Client.exceptions.ThrottlingException
SSMIncidents.Client.exceptions.ResourceNotFoundException
SSMIncidents.Client.exceptions.AccessDeniedException
SSMIncidents.Client.exceptions.ValidationException
SSMIncidents.Client.exceptions.ConflictException
SSMIncidents.Client.exceptions.InternalServerException