1import type * as docdbelastic from "@distilled.cloud/aws/docdb-elastic";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for the `ListPendingMaintenanceActions` operation (IAM
7 * action `docdb-elastic:ListPendingMaintenanceActions`).
8 *
9 * Lists pending maintenance (e.g. engine updates) across every elastic
10 * cluster in the account — feed it into an ops dashboard or a maintenance
11 * scheduler. Provide the implementation with
12 * `Effect.provide(AWS.DocDBElastic.ListPendingMaintenanceActionsHttp)`.
13 * ### Scheduling Maintenance
14 * **Example:** List All Pending Maintenance
15 * ```typescript
16 * const listPending = yield* DocDBElastic.ListPendingMaintenanceActions();
17 *
18 * const page = yield* listPending();
19 * for (const action of page.resourcePendingMaintenanceActions ?? []) {
20 * yield* Effect.logInfo(action.resourceArn ?? "");
21 * }
22 * ```
23 *
24 * @binding
25 */
26export interface ListPendingMaintenanceActions extends Binding.Service<
27 ListPendingMaintenanceActions,
28 "AWS.DocDBElastic.ListPendingMaintenanceActions",
29 () => Effect.Effect<
30 (
31 request?: docdbelastic.ListPendingMaintenanceActionsInput,
32 ) => Effect.Effect<
33 docdbelastic.ListPendingMaintenanceActionsOutput,
34 docdbelastic.ListPendingMaintenanceActionsError
35 >
36 >
37> {}
38export const ListPendingMaintenanceActions =
39 Binding.Service<ListPendingMaintenanceActions>(
40 "AWS.DocDBElastic.ListPendingMaintenanceActions",
41 );