| 1 | import type * as aa from "@distilled.cloud/aws/accessanalyzer"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Analyzer } from "./Analyzer.ts"; |
| 5 | |
| 6 | /** `GetFindingRecommendation` request with `analyzerArn` injected from the bound {@link Analyzer}. */ |
| 7 | export interface GetFindingRecommendationRequest extends Omit< |
| 8 | aa.GetFindingRecommendationRequest, |
| 9 | "analyzerArn" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for `access-analyzer:GetFindingRecommendation`. |
| 14 | * |
| 15 | * Retrieves the generated remediation recommendation for an unused-permissions |
| 16 | * finding. Provide the implementation with |
| 17 | * `Effect.provide(AWS.AccessAnalyzer.GetFindingRecommendationHttp)`. |
| 18 | * ### Finding Recommendations |
| 19 | * **Example:** Read a Recommendation |
| 20 | * ```typescript |
| 21 | * const getRecommendation = |
| 22 | * yield* AWS.AccessAnalyzer.GetFindingRecommendation(analyzer); |
| 23 | * const recommendation = yield* getRecommendation({ id: findingId }); |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | */ |
| 28 | export interface GetFindingRecommendation extends Binding.Service< |
| 29 | GetFindingRecommendation, |
| 30 | "AWS.AccessAnalyzer.GetFindingRecommendation", |
| 31 | ( |
| 32 | analyzer: Analyzer, |
| 33 | ) => Effect.Effect< |
| 34 | ( |
| 35 | request: GetFindingRecommendationRequest, |
| 36 | ) => Effect.Effect< |
| 37 | aa.GetFindingRecommendationResponse, |
| 38 | aa.GetFindingRecommendationError |
| 39 | > |
| 40 | > |
| 41 | > {} |
| 42 | |
| 43 | export const GetFindingRecommendation = |
| 44 | Binding.Service<GetFindingRecommendation>( |
| 45 | "AWS.AccessAnalyzer.GetFindingRecommendation", |
| 46 | ); |