sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Macie2/ BatchUpdateAutomatedDiscoveryAccounts.ts

import type * as macie2 from "@distilled.cloud/aws/macie2";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `macie2:BatchUpdateAutomatedDiscoveryAccounts`.
 *
 * Changes the status of automated sensitive data discovery for one or more accounts.
 * Account-level operation — invoked with the caller's request as-is.
 * Provide the implementation with
 * `Effect.provide(AWS.Macie2.BatchUpdateAutomatedDiscoveryAccountsHttp)`.
 * ### Automated Discovery
 * **Example:** Toggle Automated Discovery per Account
 * ```typescript
 * // init — account-level binding, no resource argument
 * const batchUpdateAutomatedDiscoveryAccounts = yield* AWS.Macie2.BatchUpdateAutomatedDiscoveryAccounts();
 *
 * // runtime
 * yield* batchUpdateAutomatedDiscoveryAccounts({
 *   accounts: [{ accountId, status: "ENABLED" }],
 * });
 * ```
 *
 * @binding
 */
export interface BatchUpdateAutomatedDiscoveryAccounts extends Binding.Service<
  BatchUpdateAutomatedDiscoveryAccounts,
  "AWS.Macie2.BatchUpdateAutomatedDiscoveryAccounts",
  () => Effect.Effect<
    (
      request?: macie2.BatchUpdateAutomatedDiscoveryAccountsRequest,
    ) => Effect.Effect<
      macie2.BatchUpdateAutomatedDiscoveryAccountsResponse,
      macie2.BatchUpdateAutomatedDiscoveryAccountsError
    >
  >
> {}
export const BatchUpdateAutomatedDiscoveryAccounts =
  Binding.Service<BatchUpdateAutomatedDiscoveryAccounts>(
    "AWS.Macie2.BatchUpdateAutomatedDiscoveryAccounts",
  );