| 1 | import type * as chatbot from "@distilled.cloud/aws/chatbot"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `chatbot:GetAccountPreferences`. |
| 7 | * |
| 8 | * Returns the account-level AWS Chatbot preferences (whether user-level |
| 9 | * authorization is required and whether training-data collection is |
| 10 | * enabled). Provide the implementation with |
| 11 | * `Effect.provide(AWS.Chatbot.GetAccountPreferencesHttp)`. |
| 12 | * ### Account Preferences |
| 13 | * **Example:** Read the account preferences |
| 14 | * ```typescript |
| 15 | * const getAccountPreferences = yield* AWS.Chatbot.GetAccountPreferences(); |
| 16 | * const result = yield* getAccountPreferences(); |
| 17 | * const trainingData = result.AccountPreferences?.TrainingDataCollectionEnabled; |
| 18 | * ``` |
| 19 | * |
| 20 | * @binding |
| 21 | */ |
| 22 | export interface GetAccountPreferences extends Binding.Service< |
| 23 | GetAccountPreferences, |
| 24 | "AWS.Chatbot.GetAccountPreferences", |
| 25 | () => Effect.Effect< |
| 26 | ( |
| 27 | request?: chatbot.GetAccountPreferencesRequest, |
| 28 | ) => Effect.Effect< |
| 29 | chatbot.GetAccountPreferencesResult, |
| 30 | chatbot.GetAccountPreferencesError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | |
| 35 | export const GetAccountPreferences = Binding.Service<GetAccountPreferences>( |
| 36 | "AWS.Chatbot.GetAccountPreferences", |
| 37 | ); |