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