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

main
ts 38 lines 1.24 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:ListFargateProfiles`.
8 *
9 * Enumerates the Fargate profile names configured on the bound cluster.
10 * The cluster `clusterName` is injected from the bound {@link Cluster} and `eks:ListFargateProfiles` is granted on the cluster's ARN.
11 * Provide the implementation with
12 * `Effect.provide(AWS.EKS.ListFargateProfilesHttp)`.
13 * ### Inspecting Compute
14 * **Example:** List Fargate Profiles
15 * ```typescript
16 * // init
17 * const listFargateProfiles = yield* AWS.EKS.ListFargateProfiles(cluster);
18 *
19 * // runtime
20 * const { fargateProfileNames } = yield* listFargateProfiles();
21 * ```
22 *
23 * @binding
24 */
25 export interface ListFargateProfiles extends Binding.Service<
26 ListFargateProfiles,
27 "AWS.EKS.ListFargateProfiles",
28 (
29 cluster: Cluster,
30 ) => Effect.Effect<
31 (
32 request?: Omit<eks.ListFargateProfilesRequest, "clusterName">,
33 ) => Effect.Effect<eks.ListFargateProfilesResponse, eks.ListFargateProfilesError>
34 >
35 > {}
36 export const ListFargateProfiles = Binding.Service<ListFargateProfiles>(
37 "AWS.EKS.ListFargateProfiles",
38 );