1import type * as detective from "@distilled.cloud/aws/detective";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Graph } from "./Graph.ts";
5
6/**
7 * Runtime binding for `detective:DescribeOrganizationConfiguration`.
8 *
9 * Reads whether new organization accounts are auto-enabled as members of
10 * the behavior graph. Callable only by the organization's delegated
11 * Detective administrator account. The graph ARN is injected from the bound
12 * {@link Graph}.
13 * Provide the implementation with
14 * `Effect.provide(AWS.Detective.DescribeOrganizationConfigurationHttp)`.
15 * ### Organization Administration
16 * **Example:** Check Auto-Enable
17 * ```typescript
18 * // init
19 * const describeOrganizationConfiguration =
20 * yield* AWS.Detective.DescribeOrganizationConfiguration(graph);
21 *
22 * // runtime
23 * const { AutoEnable } = yield* describeOrganizationConfiguration();
24 * ```
25 *
26 * @binding
27 */
28export interface DescribeOrganizationConfiguration extends Binding.Service<
29 DescribeOrganizationConfiguration,
30 "AWS.Detective.DescribeOrganizationConfiguration",
31 (
32 graph: Graph,
33 ) => Effect.Effect<
34 () => Effect.Effect<
35 detective.DescribeOrganizationConfigurationResponse,
36 detective.DescribeOrganizationConfigurationError
37 >
38 >
39> {}
40export const DescribeOrganizationConfiguration =
41 Binding.Service<DescribeOrganizationConfiguration>(
42 "AWS.Detective.DescribeOrganizationConfiguration",
43 );