| 1 | import type * as ssm from "@distilled.cloud/aws/ssm-contacts"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Rotation } from "./Rotation.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `ssm-contacts:DeleteRotationOverride`. |
| 8 | * |
| 9 | * Delete a rotation override of the bound rotation, restoring the |
| 10 | * regular schedule. The rotation's ARN is injected as `RotationId`. |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.SSMContacts.DeleteRotationOverrideHttp)`. |
| 13 | * ### Managing On-Call Rotations |
| 14 | * **Example:** Remove an Override |
| 15 | * ```typescript |
| 16 | * const deleteRotationOverride = |
| 17 | * yield* AWS.SSMContacts.DeleteRotationOverride(rotation); |
| 18 | * |
| 19 | * yield* deleteRotationOverride({ RotationOverrideId: overrideId }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface DeleteRotationOverride extends Binding.Service< |
| 25 | DeleteRotationOverride, |
| 26 | "AWS.SSMContacts.DeleteRotationOverride", |
| 27 | ( |
| 28 | rotation: Rotation, |
| 29 | ) => Effect.Effect< |
| 30 | ( |
| 31 | request: Omit<ssm.DeleteRotationOverrideRequest, "RotationId">, |
| 32 | ) => Effect.Effect< |
| 33 | ssm.DeleteRotationOverrideResult, |
| 34 | ssm.DeleteRotationOverrideError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const DeleteRotationOverride = Binding.Service<DeleteRotationOverride>( |
| 39 | "AWS.SSMContacts.DeleteRotationOverride", |
| 40 | ); |