@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.31 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:ListIncidentFindings`.
7 *
8 * Lists the findings (CodeDeploy deployments and CloudFormation stack updates
9 * around the incident's start time) that Incident Manager correlated with an
10 * incident. Findings live under runtime incident-record ARNs, so the
11 * deploy-time grant is account-level (`Resource: "*"`).
12 * Provide the implementation with
13 * `Effect.provide(AWS.SSMIncidents.ListIncidentFindingsHttp)`.
14 * ### Findings
15 * **Example:** List An Incident's Findings
16 * ```typescript
17 * // init
18 * const listIncidentFindings = yield* AWS.SSMIncidents.ListIncidentFindings();
19 *
20 * // runtime
21 * const { findings } = yield* listIncidentFindings({ incidentRecordArn });
22 * ```
23 *
24 * @binding
25 */
26 export interface ListIncidentFindings extends Binding.Service<
27 ListIncidentFindings,
28 "AWS.SSMIncidents.ListIncidentFindings",
29 () => Effect.Effect<
30 (
31 request: incidents.ListIncidentFindingsInput,
32 ) => Effect.Effect<incidents.ListIncidentFindingsOutput, incidents.ListIncidentFindingsError>
33 >
34 > {}
35 export const ListIncidentFindings = Binding.Service<ListIncidentFindings>(
36 "AWS.SSMIncidents.ListIncidentFindings",
37 );