The best way to control Claude Code, Codex and more from any computer or phone

main
ts 43 lines 1.49 KB
Raw
1 import type * as detective from "@distilled.cloud/aws/detective";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Graph } from "./Graph.ts";
5
6 /**
7 * Runtime binding for `detective:UpdateOrganizationConfiguration`.
8 *
9 * Toggles auto-enable for new organization accounts on the behavior graph.
10 * Callable only by the organization's delegated Detective administrator
11 * account. The graph ARN is injected from the bound {@link Graph}.
12 * Provide the implementation with
13 * `Effect.provide(AWS.Detective.UpdateOrganizationConfigurationHttp)`.
14 * ### Organization Administration
15 * **Example:** Auto-Enable New Organization Accounts
16 * ```typescript
17 * // init
18 * const updateOrganizationConfiguration =
19 * yield* AWS.Detective.UpdateOrganizationConfiguration(graph);
20 *
21 * // runtime
22 * yield* updateOrganizationConfiguration({ AutoEnable: true });
23 * ```
24 *
25 * @binding
26 */
27 export interface UpdateOrganizationConfiguration extends Binding.Service<
28 UpdateOrganizationConfiguration,
29 "AWS.Detective.UpdateOrganizationConfiguration",
30 (
31 graph: Graph,
32 ) => Effect.Effect<
33 (
34 request?: Omit<detective.UpdateOrganizationConfigurationRequest, "GraphArn">,
35 ) => Effect.Effect<
36 detective.UpdateOrganizationConfigurationResponse,
37 detective.UpdateOrganizationConfigurationError
38 >
39 >
40 > {}
41 export const UpdateOrganizationConfiguration = Binding.Service<UpdateOrganizationConfiguration>(
42 "AWS.Detective.UpdateOrganizationConfiguration",
43 );