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 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:DescribeInsight`. |
| 7 | * |
| 8 | * Returns the details of a single insight — severity, status, time ranges, and the SSM OpsItem id when OpsCenter integration is enabled. The building block of an incident-response Function reacting to DevOps Guru notifications. |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.DevOpsGuru.DescribeInsightHttp)`. |
| 11 | * ### Inspecting Insights |
| 12 | * **Example:** Read an Insight's Detail |
| 13 | * ```typescript |
| 14 | * // init — account-level binding, no resource argument |
| 15 | * const describeInsight = yield* AWS.DevOpsGuru.DescribeInsight(); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const { ReactiveInsight } = yield* describeInsight({ Id: insightId }); |
| 19 | * yield* Effect.log(`${ReactiveInsight?.Severity}: ${ReactiveInsight?.Name}`); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface DescribeInsight extends Binding.Service< |
| 25 | DescribeInsight, |
| 26 | "AWS.DevOpsGuru.DescribeInsight", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request: devopsguru.DescribeInsightRequest, |
| 30 | ) => Effect.Effect<devopsguru.DescribeInsightResponse, devopsguru.DescribeInsightError> |
| 31 | > |
| 32 | > {} |
| 33 | export const DescribeInsight = Binding.Service<DescribeInsight>("AWS.DevOpsGuru.DescribeInsight"); |