1import type * as organizations from "@distilled.cloud/aws/organizations";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `organizations:DescribeCreateAccountStatus`.
7 *
8 * Retrieves the current status of an asynchronous account-creation request — the polling half of an account-vending workflow.
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.DescribeCreateAccountStatusHttp)`.
12 * ### Account Vending
13 * **Example:** Poll an Account-Creation Request
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const describeCreateAccountStatus = yield* AWS.Organizations.DescribeCreateAccountStatus();
17 *
18 * // runtime
19 * const { CreateAccountStatus } = yield* describeCreateAccountStatus({
20 * CreateAccountRequestId: requestId,
21 * });
22 * ```
23 *
24 * @binding
25 */
26export interface DescribeCreateAccountStatus extends Binding.Service<
27 DescribeCreateAccountStatus,
28 "AWS.Organizations.DescribeCreateAccountStatus",
29 () => Effect.Effect<
30 (
31 request: organizations.DescribeCreateAccountStatusRequest,
32 ) => Effect.Effect<
33 organizations.DescribeCreateAccountStatusResponse,
34 organizations.DescribeCreateAccountStatusError
35 >
36 >
37> {}
38export const DescribeCreateAccountStatus =
39 Binding.Service<DescribeCreateAccountStatus>(
40 "AWS.Organizations.DescribeCreateAccountStatus",
41 );