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

main
ts 34 lines 1.17 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 /** `GetFinding` request with `analyzerArn` injected from the bound {@link Analyzer}. */
7 export interface GetFindingRequest extends Omit<aa.GetFindingRequest, "analyzerArn"> {}
8
9 /**
10 * Runtime binding for `access-analyzer:GetFinding`.
11 *
12 * Retrieves a single external-access finding (V1 API — prefer {@link
13 * GetFindingV2}). Provide the implementation with
14 * `Effect.provide(AWS.AccessAnalyzer.GetFindingHttp)`.
15 * ### Reading Findings
16 * **Example:** Get a Finding by Id (V1)
17 * ```typescript
18 * const getFinding = yield* AWS.AccessAnalyzer.GetFinding(analyzer);
19 * const result = yield* getFinding({ id: findingId });
20 * ```
21 *
22 * @binding
23 */
24 export interface GetFinding extends Binding.Service<
25 GetFinding,
26 "AWS.AccessAnalyzer.GetFinding",
27 (
28 analyzer: Analyzer,
29 ) => Effect.Effect<
30 (request: GetFindingRequest) => Effect.Effect<aa.GetFindingResponse, aa.GetFindingError>
31 >
32 > {}
33
34 export const GetFinding = Binding.Service<GetFinding>("AWS.AccessAnalyzer.GetFinding");