| 1 | import type * as eks from "@distilled.cloud/aws/eks"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Cluster } from "./Cluster.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `eks:ListUpdates`. |
| 8 | * |
| 9 | * Enumerates the update IDs issued against the bound cluster (or one of its node groups / add-ons). |
| 10 | * The cluster `name` is injected from the bound {@link Cluster} and `eks:ListUpdates` is granted on the cluster's ARN and sub-resource ARNs. |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.EKS.ListUpdatesHttp)`. |
| 13 | * ### Tracking Updates |
| 14 | * **Example:** List Cluster Updates |
| 15 | * ```typescript |
| 16 | * // init |
| 17 | * const listUpdates = yield* AWS.EKS.ListUpdates(cluster); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const { updateIds } = yield* listUpdates(); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface ListUpdates extends Binding.Service< |
| 26 | ListUpdates, |
| 27 | "AWS.EKS.ListUpdates", |
| 28 | ( |
| 29 | cluster: Cluster, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request?: Omit<eks.ListUpdatesRequest, "name">, |
| 33 | ) => Effect.Effect<eks.ListUpdatesResponse, eks.ListUpdatesError> |
| 34 | > |
| 35 | > {} |
| 36 | export const ListUpdates = Binding.Service<ListUpdates>("AWS.EKS.ListUpdates"); |