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

main
ts 44 lines 1.44 KB
Raw
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 DescribeAnomalyDetectorsRequest extends cloudwatch.DescribeAnomalyDetectorsInput {}
6
7 /**
8 * Runtime binding for `cloudwatch:DescribeAnomalyDetectors` — list the
9 * anomaly detection models in the account/region, optionally filtered by
10 * namespace, metric name, or dimensions.
11 *
12 * Provide `CloudWatch.DescribeAnomalyDetectorsHttp` on the hosting Lambda
13 * Function to satisfy the requirement.
14 * ### Reading Anomaly Detectors
15 * **Example:** List Detectors in a Namespace
16 * ```typescript
17 * // init — grants cloudwatch:DescribeAnomalyDetectors
18 * const describeAnomalyDetectors = yield* AWS.CloudWatch.DescribeAnomalyDetectors();
19 *
20 * // runtime
21 * const result = yield* describeAnomalyDetectors({
22 * Namespace: "MyApp/Payments",
23 * });
24 * const detectors = result.AnomalyDetectors ?? [];
25 * ```
26 *
27 * @binding
28 */
29 export interface DescribeAnomalyDetectors extends Binding.Service<
30 DescribeAnomalyDetectors,
31 "AWS.CloudWatch.DescribeAnomalyDetectors",
32 () => Effect.Effect<
33 (
34 request?: DescribeAnomalyDetectorsRequest,
35 ) => Effect.Effect<
36 cloudwatch.DescribeAnomalyDetectorsOutput,
37 cloudwatch.DescribeAnomalyDetectorsError
38 >
39 >
40 > {}
41
42 export const DescribeAnomalyDetectors = Binding.Service<DescribeAnomalyDetectors>(
43 "AWS.CloudWatch.DescribeAnomalyDetectors",
44 );