@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, 06:00 UTC

main
ts 36 lines 1.22 KB
Raw
1 import type * as incidents from "@distilled.cloud/aws/ssm-incidents";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `ssm-incidents:GetIncidentRecord`.
7 *
8 * Returns the details of an incident record — title, impact, status, chat
9 * channel, and notification targets. Incident-record ARNs only exist at
10 * runtime, so the deploy-time grant is account-level (`Resource: "*"`).
11 * Provide the implementation with
12 * `Effect.provide(AWS.SSMIncidents.GetIncidentRecordHttp)`.
13 * ### Reading Incident Records
14 * **Example:** Read An Incident
15 * ```typescript
16 * // init
17 * const getIncidentRecord = yield* AWS.SSMIncidents.GetIncidentRecord();
18 *
19 * // runtime
20 * const { incidentRecord } = yield* getIncidentRecord({ arn: incidentRecordArn });
21 * ```
22 *
23 * @binding
24 */
25 export interface GetIncidentRecord extends Binding.Service<
26 GetIncidentRecord,
27 "AWS.SSMIncidents.GetIncidentRecord",
28 () => Effect.Effect<
29 (
30 request: incidents.GetIncidentRecordInput,
31 ) => Effect.Effect<incidents.GetIncidentRecordOutput, incidents.GetIncidentRecordError>
32 >
33 > {}
34 export const GetIncidentRecord = Binding.Service<GetIncidentRecord>(
35 "AWS.SSMIncidents.GetIncidentRecord",
36 );