@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 44 lines 1.48 KB
Raw
1 import type * as eks from "@distilled.cloud/aws/eks";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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 = Binding.Service<ListPodIdentityAssociations>(
43 "AWS.EKS.ListPodIdentityAssociations",
44 );