1import type * as detective from "@distilled.cloud/aws/detective";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `detective:ListInvitations`.
7 *
8 * Lists open behavior-graph invitations *received by this account* — the
9 * member-account side of the Detective handshake, ready for an automation
10 * that auto-accepts invitations from the security account.
11 * Provide the implementation with
12 * `Effect.provide(AWS.Detective.ListInvitationsHttp)`.
13 * ### Responding to Invitations
14 * **Example:** List Pending Invitations
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const listInvitations = yield* AWS.Detective.ListInvitations();
18 *
19 * // runtime
20 * const { Invitations } = yield* listInvitations();
21 * ```
22 *
23 * @binding
24 */
25export interface ListInvitations extends Binding.Service<
26 ListInvitations,
27 "AWS.Detective.ListInvitations",
28 () => Effect.Effect<
29 (
30 request?: detective.ListInvitationsRequest,
31 ) => Effect.Effect<
32 detective.ListInvitationsResponse,
33 detective.ListInvitationsError
34 >
35 >
36> {}
37export const ListInvitations = Binding.Service<ListInvitations>(
38 "AWS.Detective.ListInvitations",
39);