| 1 | import type * as securityhub from "@distilled.cloud/aws/securityhub"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `securityhub:BatchUpdateFindings`. |
| 7 | * |
| 8 | * Updates workflow status, severity, notes, and other customer-editable fields on one or more findings. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.BatchUpdateFindingsHttp)`. |
| 12 | * ### Working with Findings |
| 13 | * **Example:** Resolve a Finding |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const batchUpdateFindings = yield* AWS.SecurityHub.BatchUpdateFindings(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * yield* batchUpdateFindings({ |
| 20 | * FindingIdentifiers: [{ Id: findingId, ProductArn: productArn }], |
| 21 | * Workflow: { Status: "RESOLVED" }, |
| 22 | * }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface BatchUpdateFindings extends Binding.Service< |
| 28 | BatchUpdateFindings, |
| 29 | "AWS.SecurityHub.BatchUpdateFindings", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request?: securityhub.BatchUpdateFindingsRequest, |
| 33 | ) => Effect.Effect< |
| 34 | securityhub.BatchUpdateFindingsResponse, |
| 35 | securityhub.BatchUpdateFindingsError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const BatchUpdateFindings = Binding.Service<BatchUpdateFindings>( |
| 40 | "AWS.SecurityHub.BatchUpdateFindings", |
| 41 | ); |