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, 04:45 UTC
| 1 | import type * as appsignals from "@distilled.cloud/aws/application-signals"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `application-signals:ListServices`. |
| 7 | * |
| 8 | * Lists the services discovered by Application Signals during a time range. |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.ApplicationSignals.ListServicesHttp)`. |
| 11 | * ### Discovering Services |
| 12 | * **Example:** List Discovered Services |
| 13 | * ```typescript |
| 14 | * // init — account-level, no resource argument |
| 15 | * const listServices = yield* AWS.ApplicationSignals.ListServices(); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const page = yield* listServices({ |
| 19 | * StartTime: new Date(Date.now() - 3600_000), |
| 20 | * EndTime: new Date(), |
| 21 | * }); |
| 22 | * for (const service of page.ServiceSummaries) { |
| 23 | * yield* Effect.log(service.KeyAttributes?.Name); |
| 24 | * } |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface ListServices extends Binding.Service< |
| 30 | ListServices, |
| 31 | "AWS.ApplicationSignals.ListServices", |
| 32 | () => Effect.Effect< |
| 33 | ( |
| 34 | request: appsignals.ListServicesInput, |
| 35 | ) => Effect.Effect<appsignals.ListServicesOutput, appsignals.ListServicesError> |
| 36 | > |
| 37 | > {} |
| 38 | |
| 39 | export const ListServices = Binding.Service<ListServices>("AWS.ApplicationSignals.ListServices"); |