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
| 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:GetRotationOverride`. |
| 8 | * |
| 9 | * Read a rotation override of the bound rotation — its replacement |
| 10 | * contacts and time window. The rotation's ARN is injected as |
| 11 | * `RotationId`. |
| 12 | * Provide the implementation with |
| 13 | * `Effect.provide(AWS.SSMContacts.GetRotationOverrideHttp)`. |
| 14 | * ### Managing On-Call Rotations |
| 15 | * **Example:** Inspect an Override |
| 16 | * ```typescript |
| 17 | * const getRotationOverride = yield* AWS.SSMContacts.GetRotationOverride(rotation); |
| 18 | * |
| 19 | * const override = yield* getRotationOverride({ |
| 20 | * RotationOverrideId: overrideId, |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface GetRotationOverride extends Binding.Service< |
| 27 | GetRotationOverride, |
| 28 | "AWS.SSMContacts.GetRotationOverride", |
| 29 | ( |
| 30 | rotation: Rotation, |
| 31 | ) => Effect.Effect< |
| 32 | ( |
| 33 | request: Omit<ssm.GetRotationOverrideRequest, "RotationId">, |
| 34 | ) => Effect.Effect<ssm.GetRotationOverrideResult, ssm.GetRotationOverrideError> |
| 35 | > |
| 36 | > {} |
| 37 | export const GetRotationOverride = Binding.Service<GetRotationOverride>( |
| 38 | "AWS.SSMContacts.GetRotationOverride", |
| 39 | ); |