sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ SSMContacts/ ListRotationOverrides.ts

import type * as ssm from "@distilled.cloud/aws/ssm-contacts";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Rotation } from "./Rotation.ts";

/**
 * Runtime binding for `ssm-contacts:ListRotationOverrides`.
 *
 * List the rotation overrides of the bound rotation in a time window.
 * The rotation's ARN is injected as `RotationId`.
 * Provide the implementation with
 * `Effect.provide(AWS.SSMContacts.ListRotationOverridesHttp)`.
 * ### Managing On-Call Rotations
 * **Example:** List Overrides This Week
 * ```typescript
 * const listRotationOverrides =
 *   yield* AWS.SSMContacts.ListRotationOverrides(rotation);
 *
 * const { RotationOverrides } = yield* listRotationOverrides({
 *   StartTime: new Date(),
 *   EndTime: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),
 * });
 * ```
 *
 * @binding
 */
export interface ListRotationOverrides extends Binding.Service<
  ListRotationOverrides,
  "AWS.SSMContacts.ListRotationOverrides",
  (
    rotation: Rotation,
  ) => Effect.Effect<
    (
      request: Omit<ssm.ListRotationOverridesRequest, "RotationId">,
    ) => Effect.Effect<ssm.ListRotationOverridesResult, ssm.ListRotationOverridesError>
  >
> {}
export const ListRotationOverrides = Binding.Service<ListRotationOverrides>(
  "AWS.SSMContacts.ListRotationOverrides",
);