| 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:ListPodIdentityAssociations`. |
| 8 | * |
| 9 | * Enumerates the EKS Pod Identity associations on the bound cluster, optionally filtered by namespace or service account. |
| 10 | * The cluster `clusterName` is injected from the bound {@link Cluster} and `eks:ListPodIdentityAssociations` is granted on the cluster's ARN. |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.EKS.ListPodIdentityAssociationsHttp)`. |
| 13 | * ### Inspecting Identity and Access |
| 14 | * **Example:** List Pod Identity Associations in a Namespace |
| 15 | * ```typescript |
| 16 | * // init |
| 17 | * const listPodIdentityAssociations = |
| 18 | * yield* AWS.EKS.ListPodIdentityAssociations(cluster); |
| 19 | * |
| 20 | * // runtime |
| 21 | * const { associations } = yield* listPodIdentityAssociations({ |
| 22 | * namespace: "default", |
| 23 | * }); |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | */ |
| 28 | export interface ListPodIdentityAssociations extends Binding.Service< |
| 29 | ListPodIdentityAssociations, |
| 30 | "AWS.EKS.ListPodIdentityAssociations", |
| 31 | ( |
| 32 | cluster: Cluster, |
| 33 | ) => Effect.Effect< |
| 34 | ( |
| 35 | request?: Omit<eks.ListPodIdentityAssociationsRequest, "clusterName">, |
| 36 | ) => Effect.Effect< |
| 37 | eks.ListPodIdentityAssociationsResponse, |
| 38 | eks.ListPodIdentityAssociationsError |
| 39 | > |
| 40 | > |
| 41 | > {} |
| 42 | export const ListPodIdentityAssociations = |
| 43 | Binding.Service<ListPodIdentityAssociations>( |
| 44 | "AWS.EKS.ListPodIdentityAssociations", |
| 45 | ); |