| 1 | import type * as organizations from "@distilled.cloud/aws/organizations"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `organizations:ListHandshakesForAccount`. |
| 7 | * |
| 8 | * Lists the handshakes that are associated with the calling account — pending and recently concluded invitations. |
| 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.ListHandshakesForAccountHttp)`. |
| 12 | * ### Handshakes & Invitations |
| 13 | * **Example:** List the Account's Handshakes |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const listHandshakesForAccount = yield* AWS.Organizations.ListHandshakesForAccount(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { Handshakes } = yield* listHandshakesForAccount(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ListHandshakesForAccount extends Binding.Service< |
| 25 | ListHandshakesForAccount, |
| 26 | "AWS.Organizations.ListHandshakesForAccount", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: organizations.ListHandshakesForAccountRequest, |
| 30 | ) => Effect.Effect< |
| 31 | organizations.ListHandshakesForAccountResponse, |
| 32 | organizations.ListHandshakesForAccountError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const ListHandshakesForAccount = |
| 37 | Binding.Service<ListHandshakesForAccount>( |
| 38 | "AWS.Organizations.ListHandshakesForAccount", |
| 39 | ); |