The best way to control Claude Code, Codex and more from any computer or phone

main
ts 35 lines 1.3 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:CancelHandshake`.
7 *
8 * Cancels a pending handshake from the originator side — e.g. withdrawing an invitation before the recipient responds.
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.CancelHandshakeHttp)`.
12 * ### Handshakes & Invitations
13 * **Example:** Withdraw an Invitation
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const cancelHandshake = yield* AWS.Organizations.CancelHandshake();
17 *
18 * // runtime
19 * const { Handshake } = yield* cancelHandshake({ HandshakeId: handshakeId });
20 * ```
21 *
22 * @binding
23 */
24 export interface CancelHandshake extends Binding.Service<
25 CancelHandshake,
26 "AWS.Organizations.CancelHandshake",
27 () => Effect.Effect<
28 (
29 request: organizations.CancelHandshakeRequest,
30 ) => Effect.Effect<organizations.CancelHandshakeResponse, organizations.CancelHandshakeError>
31 >
32 > {}
33 export const CancelHandshake = Binding.Service<CancelHandshake>(
34 "AWS.Organizations.CancelHandshake",
35 );