@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 33 lines 1.14 KB
Raw
1 import type * as detective from "@distilled.cloud/aws/detective";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `detective:RejectInvitation`.
7 *
8 * Rejects an open invitation into an administrator account's behavior
9 * graph — the decline path of the member-account invitation flow.
10 * Provide the implementation with
11 * `Effect.provide(AWS.Detective.RejectInvitationHttp)`.
12 * ### Responding to Invitations
13 * **Example:** Decline An Invitation
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const rejectInvitation = yield* AWS.Detective.RejectInvitation();
17 *
18 * // runtime
19 * yield* rejectInvitation({ GraphArn: invitation.GraphArn! });
20 * ```
21 *
22 * @binding
23 */
24 export interface RejectInvitation extends Binding.Service<
25 RejectInvitation,
26 "AWS.Detective.RejectInvitation",
27 () => Effect.Effect<
28 (
29 request: detective.RejectInvitationRequest,
30 ) => Effect.Effect<detective.RejectInvitationResponse, detective.RejectInvitationError>
31 >
32 > {}
33 export const RejectInvitation = Binding.Service<RejectInvitation>("AWS.Detective.RejectInvitation");