sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ DocDBElastic/ GetPendingMaintenanceAction.ts

import type * as docdbelastic from "@distilled.cloud/aws/docdb-elastic";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for the `GetPendingMaintenanceAction` operation (IAM
 * action `docdb-elastic:GetPendingMaintenanceAction`).
 *
 * Reads the pending maintenance actions for one resource (a cluster ARN) —
 * the action name, opt-in status, and apply dates. Provide the
 * implementation with
 * `Effect.provide(AWS.DocDBElastic.GetPendingMaintenanceActionHttp)`.
 * ### Scheduling Maintenance
 * **Example:** Read a Cluster's Pending Maintenance
 * ```typescript
 * const getPending = yield* DocDBElastic.GetPendingMaintenanceAction();
 *
 * const result = yield* getPending({ resourceArn: cluster.clusterArn });
 * // result.resourcePendingMaintenanceAction.pendingMaintenanceActionDetails
 * ```
 *
 * @binding
 */
export interface GetPendingMaintenanceAction extends Binding.Service<
  GetPendingMaintenanceAction,
  "AWS.DocDBElastic.GetPendingMaintenanceAction",
  () => Effect.Effect<
    (
      request: docdbelastic.GetPendingMaintenanceActionInput,
    ) => Effect.Effect<
      docdbelastic.GetPendingMaintenanceActionOutput,
      docdbelastic.GetPendingMaintenanceActionError
    >
  >
> {}
export const GetPendingMaintenanceAction = Binding.Service<GetPendingMaintenanceAction>(
  "AWS.DocDBElastic.GetPendingMaintenanceAction",
);