The best way to control Claude Code, Codex and more from any computer or phone

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