Skip to content

UpdateRelatedItems

Source: src/AWS/SSMIncidents/UpdateRelatedItems.ts

Runtime binding for ssm-incidents:UpdateRelatedItems.

Attaches or removes a related item on an incident — link the dashboard, ticket, or runbook execution your automation is working from. Related items live under runtime incident-record ARNs, so the deploy-time grant is account-level (Resource: "*"). Provide the implementation with Effect.provide(AWS.SSMIncidents.UpdateRelatedItemsHttp).

// init
const updateRelatedItems = yield* AWS.SSMIncidents.UpdateRelatedItems();
// runtime
yield* updateRelatedItems({
incidentRecordArn,
relatedItemsUpdate: {
itemToAdd: {
title: "Grafana dashboard",
identifier: { type: "OTHER", value: { url: "https://grafana.example.com/d/abc" } },
},
},
});