@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.25 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:DeleteTimelineEvent`.
7 *
8 * Deletes a custom timeline event from an incident (idempotent — deleting an
9 * event that does not exist succeeds). Timeline events live under runtime
10 * incident-record ARNs, so the deploy-time grant is account-level
11 * (`Resource: "*"`).
12 * Provide the implementation with
13 * `Effect.provide(AWS.SSMIncidents.DeleteTimelineEventHttp)`.
14 * ### Timeline Events
15 * **Example:** Delete A Timeline Event
16 * ```typescript
17 * // init
18 * const deleteTimelineEvent = yield* AWS.SSMIncidents.DeleteTimelineEvent();
19 *
20 * // runtime
21 * yield* deleteTimelineEvent({ incidentRecordArn, eventId });
22 * ```
23 *
24 * @binding
25 */
26 export interface DeleteTimelineEvent extends Binding.Service<
27 DeleteTimelineEvent,
28 "AWS.SSMIncidents.DeleteTimelineEvent",
29 () => Effect.Effect<
30 (
31 request: incidents.DeleteTimelineEventInput,
32 ) => Effect.Effect<incidents.DeleteTimelineEventOutput, incidents.DeleteTimelineEventError>
33 >
34 > {}
35 export const DeleteTimelineEvent = Binding.Service<DeleteTimelineEvent>(
36 "AWS.SSMIncidents.DeleteTimelineEvent",
37 );