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

main
ts 42 lines 1.36 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 /** `GetAnalyzedResource` request with `analyzerArn` injected from the bound {@link Analyzer}. */
7 export interface GetAnalyzedResourceRequest extends Omit<
8 aa.GetAnalyzedResourceRequest,
9 "analyzerArn"
10 > {}
11
12 /**
13 * Runtime binding for `access-analyzer:GetAnalyzedResource`.
14 *
15 * Retrieves the analysis status and sharing summary for a resource the
16 * analyzer has scanned. Provide the implementation with
17 * `Effect.provide(AWS.AccessAnalyzer.GetAnalyzedResourceHttp)`.
18 * ### Scanning Resources
19 * **Example:** Inspect an Analyzed Resource
20 * ```typescript
21 * const getResource =
22 * yield* AWS.AccessAnalyzer.GetAnalyzedResource(analyzer);
23 * const analyzed = yield* getResource({ resourceArn: bucket.bucketArn });
24 * ```
25 *
26 * @binding
27 */
28 export interface GetAnalyzedResource extends Binding.Service<
29 GetAnalyzedResource,
30 "AWS.AccessAnalyzer.GetAnalyzedResource",
31 (
32 analyzer: Analyzer,
33 ) => Effect.Effect<
34 (
35 request: GetAnalyzedResourceRequest,
36 ) => Effect.Effect<aa.GetAnalyzedResourceResponse, aa.GetAnalyzedResourceError>
37 >
38 > {}
39
40 export const GetAnalyzedResource = Binding.Service<GetAnalyzedResource>(
41 "AWS.AccessAnalyzer.GetAnalyzedResource",
42 );