The best way to control Claude Code, Codex and more from any computer or phone
| 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 | /** `ListFindings` request with `analyzerArn` injected from the bound {@link Analyzer}. */ |
| 7 | export interface ListFindingsRequest extends Omit<aa.ListFindingsRequest, "analyzerArn"> {} |
| 8 | |
| 9 | /** |
| 10 | * Runtime binding for `access-analyzer:ListFindings`. |
| 11 | * |
| 12 | * Lists the analyzer's external-access findings (V1 API — prefer {@link |
| 13 | * ListFindingsV2}, which also returns unused-access findings). Provide the |
| 14 | * implementation with `Effect.provide(AWS.AccessAnalyzer.ListFindingsHttp)`. |
| 15 | * ### Reading Findings |
| 16 | * **Example:** List Findings (V1) |
| 17 | * ```typescript |
| 18 | * const listFindings = yield* AWS.AccessAnalyzer.ListFindings(analyzer); |
| 19 | * const page = yield* listFindings({ maxResults: 50 }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ListFindings extends Binding.Service< |
| 25 | ListFindings, |
| 26 | "AWS.AccessAnalyzer.ListFindings", |
| 27 | ( |
| 28 | analyzer: Analyzer, |
| 29 | ) => Effect.Effect< |
| 30 | (request?: ListFindingsRequest) => Effect.Effect<aa.ListFindingsResponse, aa.ListFindingsError> |
| 31 | > |
| 32 | > {} |
| 33 | |
| 34 | export const ListFindings = Binding.Service<ListFindings>("AWS.AccessAnalyzer.ListFindings"); |