1import type * as ram from "@distilled.cloud/aws/ram";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `ram:GetResourceShareInvitations`.
7 *
8 * Retrieves the invitations to resource shares that other accounts extended to you.
9 * Account-level operation — the target shares, invitations, and permissions
10 * are chosen per request at runtime, so the binding takes no resource
11 * argument. Provide the implementation with
12 * `Effect.provide(AWS.RAM.GetResourceShareInvitationsHttp)`.
13 * ### Invitations
14 * **Example:** List Your Pending Invitations
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const getResourceShareInvitations = yield* AWS.RAM.GetResourceShareInvitations();
18 *
19 * // runtime
20 * const { resourceShareInvitations } =
21 * yield* getResourceShareInvitations();
22 * ```
23 *
24 * @binding
25 */
26export interface GetResourceShareInvitations extends Binding.Service<
27 GetResourceShareInvitations,
28 "AWS.RAM.GetResourceShareInvitations",
29 () => Effect.Effect<
30 (
31 request?: ram.GetResourceShareInvitationsRequest,
32 ) => Effect.Effect<
33 ram.GetResourceShareInvitationsResponse,
34 ram.GetResourceShareInvitationsError
35 >
36 >
37> {}
38export const GetResourceShareInvitations =
39 Binding.Service<GetResourceShareInvitations>(
40 "AWS.RAM.GetResourceShareInvitations",
41 );