1import type * as aa from "@distilled.cloud/aws/accessanalyzer";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Analyzer } from "./Analyzer.ts";
5
6/** `GetAnalyzedResource` request with `analyzerArn` injected from the bound {@link Analyzer}. */
7export 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 */
28export 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<
37 aa.GetAnalyzedResourceResponse,
38 aa.GetAnalyzedResourceError
39 >
40 >
41> {}
42
43export const GetAnalyzedResource = Binding.Service<GetAnalyzedResource>(
44 "AWS.AccessAnalyzer.GetAnalyzedResource",
45);