| 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:BatchImportFindings`. |
| 7 | * |
| 8 | * Imports findings in AWS Security Finding Format (ASFF) from a custom integration into Security Hub. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.BatchImportFindingsHttp)`. |
| 12 | * ### Working with Findings |
| 13 | * **Example:** Import a Custom Finding |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const batchImportFindings = yield* AWS.SecurityHub.BatchImportFindings(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { SuccessCount } = yield* batchImportFindings({ |
| 20 | * Findings: [myAsffFinding], |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface BatchImportFindings extends Binding.Service< |
| 27 | BatchImportFindings, |
| 28 | "AWS.SecurityHub.BatchImportFindings", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: securityhub.BatchImportFindingsRequest, |
| 32 | ) => Effect.Effect< |
| 33 | securityhub.BatchImportFindingsResponse, |
| 34 | securityhub.BatchImportFindingsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const BatchImportFindings = Binding.Service<BatchImportFindings>( |
| 39 | "AWS.SecurityHub.BatchImportFindings", |
| 40 | ); |