@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 40 lines 1.31 KB
Raw
1 import type * as ssm from "@distilled.cloud/aws/ssm-contacts";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import 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 */
27 export 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<ssm.ListRotationOverridesResult, ssm.ListRotationOverridesError>
36 >
37 > {}
38 export const ListRotationOverrides = Binding.Service<ListRotationOverrides>(
39 "AWS.SSMContacts.ListRotationOverrides",
40 );