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
| 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 | /** `GetAccessPreview` request with `analyzerArn` injected from the bound {@link Analyzer}. */ |
| 7 | export interface GetAccessPreviewRequest extends Omit<aa.GetAccessPreviewRequest, "analyzerArn"> {} |
| 8 | |
| 9 | /** |
| 10 | * Runtime binding for `access-analyzer:GetAccessPreview`. |
| 11 | * |
| 12 | * Retrieves an access preview's status and configuration. Provide the |
| 13 | * implementation with |
| 14 | * `Effect.provide(AWS.AccessAnalyzer.GetAccessPreviewHttp)`. |
| 15 | * ### Access Previews |
| 16 | * **Example:** Poll a Preview Until Completed |
| 17 | * ```typescript |
| 18 | * const getPreview = yield* AWS.AccessAnalyzer.GetAccessPreview(analyzer); |
| 19 | * const preview = yield* getPreview({ accessPreviewId }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface GetAccessPreview extends Binding.Service< |
| 25 | GetAccessPreview, |
| 26 | "AWS.AccessAnalyzer.GetAccessPreview", |
| 27 | ( |
| 28 | analyzer: Analyzer, |
| 29 | ) => Effect.Effect< |
| 30 | ( |
| 31 | request: GetAccessPreviewRequest, |
| 32 | ) => Effect.Effect<aa.GetAccessPreviewResponse, aa.GetAccessPreviewError> |
| 33 | > |
| 34 | > {} |
| 35 | |
| 36 | export const GetAccessPreview = Binding.Service<GetAccessPreview>( |
| 37 | "AWS.AccessAnalyzer.GetAccessPreview", |
| 38 | ); |