Skip to content

StopEngagement

Source: src/AWS/SSMContacts/StopEngagement.ts

Runtime binding for ssm-contacts:StopEngagement.

Stop a running engagement, halting any further stages of the contact’s engagement plan — e.g. once the incident is acknowledged or resolved. Engagement ARNs are minted at runtime by StartEngagement, so this binding is account-scoped. Provide the implementation with Effect.provide(AWS.SSMContacts.StopEngagementHttp).

const stopEngagement = yield* AWS.SSMContacts.StopEngagement();
yield* stopEngagement({
EngagementId: engagementArn,
Reason: "incident resolved",
});