Skip to content

Contact

Source: src/AWS/SSMContacts/Contact.ts

An Incident Manager contact — a person Incident Manager engages during an incident, an escalation plan that engages contacts in phases, or an on-call schedule backed by rotations.

Requires the account’s Incident Manager replication set (SSMIncidents.ReplicationSet) to exist.

Personal contact

const oncall = yield* SSMContacts.Contact("Oncall", {
type: "PERSONAL",
displayName: "Primary On-Call",
});

Contact with an inline engagement plan

const channel = yield* SSMContacts.ContactChannel("Email", {
contactId: oncall.contactArn,
type: "EMAIL",
deliveryAddress: { SimpleAddress: "oncall@example.com" },
deferActivation: true,
});
const escalation = yield* SSMContacts.Contact("Escalation", {
type: "ESCALATION",
plan: {
Stages: [
{
DurationInMinutes: 5,
Targets: [
{ ContactTargetInfo: { ContactId: oncall.contactArn, IsEssential: true } },
],
},
],
},
});