1import type * as chatbot from "@distilled.cloud/aws/chatbot";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `chatbot:UpdateAccountPreferences`.
7 *
8 * Updates the account-level AWS Chatbot preferences (user-level
9 * authorization requirement, training-data collection). Provide the
10 * implementation with
11 * `Effect.provide(AWS.Chatbot.UpdateAccountPreferencesHttp)`.
12 * ### Account Preferences
13 * **Example:** Require user authorization account-wide
14 * ```typescript
15 * const updateAccountPreferences =
16 * yield* AWS.Chatbot.UpdateAccountPreferences();
17 * yield* updateAccountPreferences({ UserAuthorizationRequired: true });
18 * ```
19 *
20 * @binding
21 */
22export interface UpdateAccountPreferences extends Binding.Service<
23 UpdateAccountPreferences,
24 "AWS.Chatbot.UpdateAccountPreferences",
25 () => Effect.Effect<
26 (
27 request?: chatbot.UpdateAccountPreferencesRequest,
28 ) => Effect.Effect<
29 chatbot.UpdateAccountPreferencesResult,
30 chatbot.UpdateAccountPreferencesError
31 >
32 >
33> {}
34
35export const UpdateAccountPreferences =
36 Binding.Service<UpdateAccountPreferences>(
37 "AWS.Chatbot.UpdateAccountPreferences",
38 );