@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

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