| 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: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< |
| 34 | eks.ListFargateProfilesResponse, |
| 35 | eks.ListFargateProfilesError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const ListFargateProfiles = Binding.Service<ListFargateProfiles>( |
| 40 | "AWS.EKS.ListFargateProfiles", |
| 41 | ); |