| 1 | import type * as securityhub from "@distilled.cloud/aws/securityhub"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `securityhub:DisassociateFromAdministratorAccount`. |
| 7 | * |
| 8 | * Disassociates this member account from its Security Hub administrator account. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.DisassociateFromAdministratorAccountHttp)`. |
| 12 | * ### Members & Organization |
| 13 | * **Example:** Leave the Administrator |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const disassociateFromAdministratorAccount = yield* AWS.SecurityHub.DisassociateFromAdministratorAccount(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * yield* disassociateFromAdministratorAccount(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface DisassociateFromAdministratorAccount extends Binding.Service< |
| 25 | DisassociateFromAdministratorAccount, |
| 26 | "AWS.SecurityHub.DisassociateFromAdministratorAccount", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: securityhub.DisassociateFromAdministratorAccountRequest, |
| 30 | ) => Effect.Effect< |
| 31 | securityhub.DisassociateFromAdministratorAccountResponse, |
| 32 | securityhub.DisassociateFromAdministratorAccountError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const DisassociateFromAdministratorAccount = |
| 37 | Binding.Service<DisassociateFromAdministratorAccount>( |
| 38 | "AWS.SecurityHub.DisassociateFromAdministratorAccount", |
| 39 | ); |