| 1 | import type * as inspector2 from "@distilled.cloud/aws/inspector2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `inspector2:GetDelegatedAdminAccount`. |
| 7 | * |
| 8 | * Retrieves information about the Amazon Inspector delegated administrator for your |
| 9 | * organization. |
| 10 | * |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.Inspector2.GetDelegatedAdminAccountHttp)`. |
| 13 | * ### Organization & Members |
| 14 | * **Example:** Get the Delegated Administrator |
| 15 | * ```typescript |
| 16 | * // init |
| 17 | * const getDelegatedAdminAccount = yield* AWS.Inspector2.GetDelegatedAdminAccount(); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const { delegatedAdmin } = yield* getDelegatedAdminAccount(); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface GetDelegatedAdminAccount extends Binding.Service< |
| 26 | GetDelegatedAdminAccount, |
| 27 | "AWS.Inspector2.GetDelegatedAdminAccount", |
| 28 | () => Effect.Effect< |
| 29 | ( |
| 30 | request: inspector2.GetDelegatedAdminAccountRequest, |
| 31 | ) => Effect.Effect< |
| 32 | inspector2.GetDelegatedAdminAccountResponse, |
| 33 | inspector2.GetDelegatedAdminAccountError |
| 34 | > |
| 35 | > |
| 36 | > {} |
| 37 | export const GetDelegatedAdminAccount = |
| 38 | Binding.Service<GetDelegatedAdminAccount>( |
| 39 | "AWS.Inspector2.GetDelegatedAdminAccount", |
| 40 | ); |