@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
ts 36 lines 1.21 KB
Raw
1 import type * as ram from "@distilled.cloud/aws/ram";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `ram:GetPermission`.
7 *
8 * Retrieves the contents of a managed permission in JSON format, including its policy template.
9 * Account-level operation — the target shares, invitations, and permissions
10 * are chosen per request at runtime, so the binding takes no resource
11 * argument. Provide the implementation with
12 * `Effect.provide(AWS.RAM.GetPermissionHttp)`.
13 * ### Managed Permissions
14 * **Example:** Read a Managed Permission
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const getPermission = yield* AWS.RAM.GetPermission();
18 *
19 * // runtime
20 * const { permission } = yield* getPermission({
21 * permissionArn: customerManagedPermission.permissionArn,
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface GetPermission extends Binding.Service<
28 GetPermission,
29 "AWS.RAM.GetPermission",
30 () => Effect.Effect<
31 (
32 request: ram.GetPermissionRequest,
33 ) => Effect.Effect<ram.GetPermissionResponse, ram.GetPermissionError>
34 >
35 > {}
36 export const GetPermission = Binding.Service<GetPermission>("AWS.RAM.GetPermission");