| 1 | import type * as detective from "@distilled.cloud/aws/detective"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `detective:RejectInvitation`. |
| 7 | * |
| 8 | * Rejects an open invitation into an administrator account's behavior |
| 9 | * graph — the decline path of the member-account invitation flow. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.Detective.RejectInvitationHttp)`. |
| 12 | * ### Responding to Invitations |
| 13 | * **Example:** Decline An Invitation |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const rejectInvitation = yield* AWS.Detective.RejectInvitation(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * yield* rejectInvitation({ GraphArn: invitation.GraphArn! }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface RejectInvitation extends Binding.Service< |
| 25 | RejectInvitation, |
| 26 | "AWS.Detective.RejectInvitation", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request: detective.RejectInvitationRequest, |
| 30 | ) => Effect.Effect< |
| 31 | detective.RejectInvitationResponse, |
| 32 | detective.RejectInvitationError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const RejectInvitation = Binding.Service<RejectInvitation>( |
| 37 | "AWS.Detective.RejectInvitation", |
| 38 | ); |