@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 37 lines 1.28 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:UpdateIncidentRecord`.
7 *
8 * Updates the details of an incident record — retitle, change impact, or
9 * resolve the incident by setting `status: "RESOLVED"`. Incident-record ARNs
10 * only exist at runtime, so the deploy-time grant is account-level
11 * (`Resource: "*"`).
12 * Provide the implementation with
13 * `Effect.provide(AWS.SSMIncidents.UpdateIncidentRecordHttp)`.
14 * ### Updating Incident Records
15 * **Example:** Resolve An Incident
16 * ```typescript
17 * // init
18 * const updateIncidentRecord = yield* AWS.SSMIncidents.UpdateIncidentRecord();
19 *
20 * // runtime
21 * yield* updateIncidentRecord({ arn: incidentRecordArn, status: "RESOLVED" });
22 * ```
23 *
24 * @binding
25 */
26 export interface UpdateIncidentRecord extends Binding.Service<
27 UpdateIncidentRecord,
28 "AWS.SSMIncidents.UpdateIncidentRecord",
29 () => Effect.Effect<
30 (
31 request: incidents.UpdateIncidentRecordInput,
32 ) => Effect.Effect<incidents.UpdateIncidentRecordOutput, incidents.UpdateIncidentRecordError>
33 >
34 > {}
35 export const UpdateIncidentRecord = Binding.Service<UpdateIncidentRecord>(
36 "AWS.SSMIncidents.UpdateIncidentRecord",
37 );