The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as cloudwatch from "@distilled.cloud/aws/cloudwatch"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | |
| 5 | export interface ListMetricStreamsRequest extends cloudwatch.ListMetricStreamsInput {} |
| 6 | |
| 7 | /** |
| 8 | * Runtime binding for `cloudwatch:ListMetricStreams` — list the metric |
| 9 | * streams in the account/region. |
| 10 | * |
| 11 | * Provide `CloudWatch.ListMetricStreamsHttp` on the hosting Lambda |
| 12 | * Function to satisfy the requirement. |
| 13 | * ### Reading Metric Streams |
| 14 | * **Example:** List Metric Streams |
| 15 | * ```typescript |
| 16 | * // init — grants cloudwatch:ListMetricStreams |
| 17 | * const listMetricStreams = yield* AWS.CloudWatch.ListMetricStreams(); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const result = yield* listMetricStreams(); |
| 21 | * const entries = result.Entries ?? []; |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface ListMetricStreams extends Binding.Service< |
| 27 | ListMetricStreams, |
| 28 | "AWS.CloudWatch.ListMetricStreams", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: ListMetricStreamsRequest, |
| 32 | ) => Effect.Effect<cloudwatch.ListMetricStreamsOutput, cloudwatch.ListMetricStreamsError> |
| 33 | > |
| 34 | > {} |
| 35 | |
| 36 | export const ListMetricStreams = Binding.Service<ListMetricStreams>( |
| 37 | "AWS.CloudWatch.ListMetricStreams", |
| 38 | ); |