1import type * as macie2 from "@distilled.cloud/aws/macie2";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `macie2:BatchUpdateAutomatedDiscoveryAccounts`.
7 *
8 * Changes the status of automated sensitive data discovery for one or more accounts.
9 * Account-level operation — invoked with the caller's request as-is.
10 * Provide the implementation with
11 * `Effect.provide(AWS.Macie2.BatchUpdateAutomatedDiscoveryAccountsHttp)`.
12 * ### Automated Discovery
13 * **Example:** Toggle Automated Discovery per Account
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const batchUpdateAutomatedDiscoveryAccounts = yield* AWS.Macie2.BatchUpdateAutomatedDiscoveryAccounts();
17 *
18 * // runtime
19 * yield* batchUpdateAutomatedDiscoveryAccounts({
20 * accounts: [{ accountId, status: "ENABLED" }],
21 * });
22 * ```
23 *
24 * @binding
25 */
26export interface BatchUpdateAutomatedDiscoveryAccounts extends Binding.Service<
27 BatchUpdateAutomatedDiscoveryAccounts,
28 "AWS.Macie2.BatchUpdateAutomatedDiscoveryAccounts",
29 () => Effect.Effect<
30 (
31 request?: macie2.BatchUpdateAutomatedDiscoveryAccountsRequest,
32 ) => Effect.Effect<
33 macie2.BatchUpdateAutomatedDiscoveryAccountsResponse,
34 macie2.BatchUpdateAutomatedDiscoveryAccountsError
35 >
36 >
37> {}
38export const BatchUpdateAutomatedDiscoveryAccounts =
39 Binding.Service<BatchUpdateAutomatedDiscoveryAccounts>(
40 "AWS.Macie2.BatchUpdateAutomatedDiscoveryAccounts",
41 );