| 1 | import type * as detective from "@distilled.cloud/aws/detective"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 35 | detective.UpdateOrganizationConfigurationRequest, |
| 36 | "GraphArn" |
| 37 | >, |
| 38 | ) => Effect.Effect< |
| 39 | detective.UpdateOrganizationConfigurationResponse, |
| 40 | detective.UpdateOrganizationConfigurationError |
| 41 | > |
| 42 | > |
| 43 | > {} |
| 44 | export const UpdateOrganizationConfiguration = |
| 45 | Binding.Service<UpdateOrganizationConfiguration>( |
| 46 | "AWS.Detective.UpdateOrganizationConfiguration", |
| 47 | ); |