| 1 | import type * as greengrassv2 from "@distilled.cloud/aws/greengrassv2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `greengrass:ListComponents`. |
| 7 | * |
| 8 | * Enumerates the account's component definitions (latest version of each), |
| 9 | * optionally scoped to `PRIVATE` or `PUBLIC` components — the entry point |
| 10 | * for fleet-software inventory tooling. Provide the implementation with |
| 11 | * `Effect.provide(AWS.GreengrassV2.ListComponentsHttp)`. |
| 12 | * ### Reading Components |
| 13 | * **Example:** List Private Components |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const listComponents = yield* AWS.GreengrassV2.ListComponents(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { components } = yield* listComponents({ scope: "PRIVATE" }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ListComponents extends Binding.Service< |
| 25 | ListComponents, |
| 26 | "AWS.GreengrassV2.ListComponents", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: greengrassv2.ListComponentsRequest, |
| 30 | ) => Effect.Effect< |
| 31 | greengrassv2.ListComponentsResponse, |
| 32 | greengrassv2.ListComponentsError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const ListComponents = Binding.Service<ListComponents>( |
| 37 | "AWS.GreengrassV2.ListComponents", |
| 38 | ); |