1import type * as ssm from "@distilled.cloud/aws/ssm-contacts";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Rotation } from "./Rotation.ts";
5
6/**
7 * Runtime binding for `ssm-contacts:ListRotationOverrides`.
8 *
9 * List the rotation overrides of the bound rotation in a time window.
10 * The rotation's ARN is injected as `RotationId`.
11 * Provide the implementation with
12 * `Effect.provide(AWS.SSMContacts.ListRotationOverridesHttp)`.
13 * ### Managing On-Call Rotations
14 * **Example:** List Overrides This Week
15 * ```typescript
16 * const listRotationOverrides =
17 * yield* AWS.SSMContacts.ListRotationOverrides(rotation);
18 *
19 * const { RotationOverrides } = yield* listRotationOverrides({
20 * StartTime: new Date(),
21 * EndTime: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface ListRotationOverrides extends Binding.Service<
28 ListRotationOverrides,
29 "AWS.SSMContacts.ListRotationOverrides",
30 (
31 rotation: Rotation,
32 ) => Effect.Effect<
33 (
34 request: Omit<ssm.ListRotationOverridesRequest, "RotationId">,
35 ) => Effect.Effect<
36 ssm.ListRotationOverridesResult,
37 ssm.ListRotationOverridesError
38 >
39 >
40> {}
41export const ListRotationOverrides = Binding.Service<ListRotationOverrides>(
42 "AWS.SSMContacts.ListRotationOverrides",
43);