| 1 | import type * as aa from "@distilled.cloud/aws/accessanalyzer"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Analyzer } from "./Analyzer.ts"; |
| 5 | |
| 6 | /** `UpdateFindings` request with `analyzerArn` injected from the bound {@link Analyzer}. */ |
| 7 | export interface UpdateFindingsRequest extends Omit< |
| 8 | aa.UpdateFindingsRequest, |
| 9 | "analyzerArn" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for `access-analyzer:UpdateFindings`. |
| 14 | * |
| 15 | * Archives or reactivates findings by id or by the resource they were |
| 16 | * generated for. Provide the implementation with |
| 17 | * `Effect.provide(AWS.AccessAnalyzer.UpdateFindingsHttp)`. |
| 18 | * ### Managing Findings |
| 19 | * **Example:** Archive Findings |
| 20 | * ```typescript |
| 21 | * const updateFindings = yield* AWS.AccessAnalyzer.UpdateFindings(analyzer); |
| 22 | * yield* updateFindings({ status: "ARCHIVED", ids: [findingId] }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface UpdateFindings extends Binding.Service< |
| 28 | UpdateFindings, |
| 29 | "AWS.AccessAnalyzer.UpdateFindings", |
| 30 | ( |
| 31 | analyzer: Analyzer, |
| 32 | ) => Effect.Effect< |
| 33 | ( |
| 34 | request: UpdateFindingsRequest, |
| 35 | ) => Effect.Effect<aa.UpdateFindingsResponse, aa.UpdateFindingsError> |
| 36 | > |
| 37 | > {} |
| 38 | |
| 39 | export const UpdateFindings = Binding.Service<UpdateFindings>( |
| 40 | "AWS.AccessAnalyzer.UpdateFindings", |
| 41 | ); |