@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, 06:00 UTC

main
ts 41 lines 1.28 KB
Raw
1 import type * as qbusiness from "@distilled.cloud/aws/qbusiness";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Application } from "./Application.ts";
5
6 /**
7 * `GetPolicy` request with `applicationId` injected from the bound application.
8 */
9 export interface GetPolicyRequest extends Omit<qbusiness.GetPolicyRequest, "applicationId"> {}
10
11 /**
12 * Runtime binding for the `GetPolicy` operation (IAM action
13 * `qbusiness:GetPolicy`), scoped to one {@link Application}.
14 *
15 * Reads the application's resource-based permission policy (the
16 * statements ISV data accessors were granted).
17 * Provide the implementation with
18 * `Effect.provide(AWS.QBusiness.GetPolicyHttp)`.
19 *
20 * ### Cross-Account Permissions
21 * **Example:** Read the Application Policy
22 * ```typescript
23 * const getPolicy = yield* AWS.QBusiness.GetPolicy(app);
24 *
25 * const { policy } = yield* getPolicy();
26 * ```
27 *
28 * @binding
29 */
30 export interface GetPolicy extends Binding.Service<
31 GetPolicy,
32 "AWS.QBusiness.GetPolicy",
33 (
34 application: Application,
35 ) => Effect.Effect<
36 (
37 request?: GetPolicyRequest,
38 ) => Effect.Effect<qbusiness.GetPolicyResponse, qbusiness.GetPolicyError>
39 >
40 > {}
41 export const GetPolicy = Binding.Service<GetPolicy>("AWS.QBusiness.GetPolicy");