Skip to content

ListPreviewRotationShifts

Source: src/AWS/SSMContacts/ListPreviewRotationShifts.ts

Runtime binding for ssm-contacts:ListPreviewRotationShifts.

Preview the shifts a hypothetical rotation configuration would produce before creating or updating a rotation. Takes members, a time zone, and recurrence settings directly, so it is account-scoped. Provide the implementation with Effect.provide(AWS.SSMContacts.ListPreviewRotationShiftsHttp).

const listPreviewRotationShifts =
yield* AWS.SSMContacts.ListPreviewRotationShifts();
const { RotationShifts } = yield* listPreviewRotationShifts({
EndTime: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),
Members: ["alice", "bob"],
TimeZoneId: "America/Los_Angeles",
Recurrence: {
NumberOfOnCalls: 1,
RecurrenceMultiplier: 1,
DailySettings: [{ HourOfDay: 9, MinuteOfHour: 0 }],
},
});