@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 40 lines 1.49 KB
Raw
1 import type * as organizations from "@distilled.cloud/aws/organizations";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `organizations:InviteAccountToOrganization`.
7 *
8 * Sends an invitation (handshake) to another account to join the organization as a member account.
9 * Account-level operation — Organizations is a management-account-scoped
10 * global service, so the binding takes no resource argument. Provide the
11 * implementation with `Effect.provide(AWS.Organizations.InviteAccountToOrganizationHttp)`.
12 * ### Handshakes & Invitations
13 * **Example:** Invite an Account
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const inviteAccountToOrganization = yield* AWS.Organizations.InviteAccountToOrganization();
17 *
18 * // runtime
19 * const { Handshake } = yield* inviteAccountToOrganization({
20 * Target: { Id: "111122223333", Type: "ACCOUNT" },
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface InviteAccountToOrganization extends Binding.Service<
27 InviteAccountToOrganization,
28 "AWS.Organizations.InviteAccountToOrganization",
29 () => Effect.Effect<
30 (
31 request: organizations.InviteAccountToOrganizationRequest,
32 ) => Effect.Effect<
33 organizations.InviteAccountToOrganizationResponse,
34 organizations.InviteAccountToOrganizationError
35 >
36 >
37 > {}
38 export const InviteAccountToOrganization = Binding.Service<InviteAccountToOrganization>(
39 "AWS.Organizations.InviteAccountToOrganization",
40 );