| 1 | import type * as incidents from "@distilled.cloud/aws/ssm-incidents"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 33 | incidents.ListIncidentFindingsOutput, |
| 34 | incidents.ListIncidentFindingsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const ListIncidentFindings = Binding.Service<ListIncidentFindings>( |
| 39 | "AWS.SSMIncidents.ListIncidentFindings", |
| 40 | ); |