1import type * as incidents from "@distilled.cloud/aws/ssm-incidents";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `ssm-incidents:BatchGetIncidentFindings`.
7 *
8 * Returns the details of the findings correlated with an incident — the
9 * CodeDeploy deployment or CloudFormation stack update suspected of causing
10 * it. Findings live under runtime incident-record ARNs, so the deploy-time
11 * grant is account-level (`Resource: "*"`).
12 * Provide the implementation with
13 * `Effect.provide(AWS.SSMIncidents.BatchGetIncidentFindingsHttp)`.
14 * ### Findings
15 * **Example:** Read Finding Details
16 * ```typescript
17 * // init
18 * const batchGetIncidentFindings = yield* AWS.SSMIncidents.BatchGetIncidentFindings();
19 *
20 * // runtime
21 * const { findings } = yield* batchGetIncidentFindings({
22 * incidentRecordArn,
23 * findingIds,
24 * });
25 * ```
26 *
27 * @binding
28 */
29export interface BatchGetIncidentFindings extends Binding.Service<
30 BatchGetIncidentFindings,
31 "AWS.SSMIncidents.BatchGetIncidentFindings",
32 () => Effect.Effect<
33 (
34 request: incidents.BatchGetIncidentFindingsInput,
35 ) => Effect.Effect<
36 incidents.BatchGetIncidentFindingsOutput,
37 incidents.BatchGetIncidentFindingsError
38 >
39 >
40> {}
41export const BatchGetIncidentFindings =
42 Binding.Service<BatchGetIncidentFindings>(
43 "AWS.SSMIncidents.BatchGetIncidentFindings",
44 );