@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
ts 33 lines 1.21 KB
Raw
1 import type * as devopsguru from "@distilled.cloud/aws/devops-guru";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `devops-guru:DescribeAnomaly`.
7 *
8 * Returns the details of a single anomaly — severity, status, time ranges, and the CloudWatch/Performance Insights metrics that triggered it.
9 * Provide the implementation with
10 * `Effect.provide(AWS.DevOpsGuru.DescribeAnomalyHttp)`.
11 * ### Inspecting Anomalies
12 * **Example:** Read an Anomaly's Detail
13 * ```typescript
14 * // init — account-level binding, no resource argument
15 * const describeAnomaly = yield* AWS.DevOpsGuru.DescribeAnomaly();
16 *
17 * // runtime
18 * const { ReactiveAnomaly } = yield* describeAnomaly({ Id: anomalyId });
19 * yield* Effect.log(`severity: ${ReactiveAnomaly?.Severity}`);
20 * ```
21 *
22 * @binding
23 */
24 export interface DescribeAnomaly extends Binding.Service<
25 DescribeAnomaly,
26 "AWS.DevOpsGuru.DescribeAnomaly",
27 () => Effect.Effect<
28 (
29 request: devopsguru.DescribeAnomalyRequest,
30 ) => Effect.Effect<devopsguru.DescribeAnomalyResponse, devopsguru.DescribeAnomalyError>
31 >
32 > {}
33 export const DescribeAnomaly = Binding.Service<DescribeAnomaly>("AWS.DevOpsGuru.DescribeAnomaly");