Skip to content

CreateRotationOverride

Source: src/AWS/SSMContacts/CreateRotationOverride.ts

Runtime binding for ssm-contacts:CreateRotationOverride.

Temporarily override who is on call in the bound rotation — e.g. cover a shift while the scheduled contact is unavailable. The rotation’s ARN is injected as RotationId. Provide the implementation with Effect.provide(AWS.SSMContacts.CreateRotationOverrideHttp).

const createRotationOverride =
yield* AWS.SSMContacts.CreateRotationOverride(rotation);
const { RotationOverrideId } = yield* createRotationOverride({
NewContactIds: [standbyContactArn],
StartTime: new Date(),
EndTime: new Date(Date.now() + 8 * 60 * 60 * 1000),
});