| 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:AcceptHandshake`. |
| 7 | * |
| 8 | * Accepts a pending handshake — e.g. an invitation to join an organization, called from the invited member account. |
| 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.AcceptHandshakeHttp)`. |
| 12 | * ### Handshakes & Invitations |
| 13 | * **Example:** Accept an Invitation |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const acceptHandshake = yield* AWS.Organizations.AcceptHandshake(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { Handshake } = yield* acceptHandshake({ HandshakeId: handshakeId }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface AcceptHandshake extends Binding.Service< |
| 25 | AcceptHandshake, |
| 26 | "AWS.Organizations.AcceptHandshake", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request: organizations.AcceptHandshakeRequest, |
| 30 | ) => Effect.Effect< |
| 31 | organizations.AcceptHandshakeResponse, |
| 32 | organizations.AcceptHandshakeError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const AcceptHandshake = Binding.Service<AcceptHandshake>( |
| 37 | "AWS.Organizations.AcceptHandshake", |
| 38 | ); |