sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Chatbot/ GetAccountPreferences.ts

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

/**
 * Runtime binding for `chatbot:GetAccountPreferences`.
 *
 * Returns the account-level AWS Chatbot preferences (whether user-level
 * authorization is required and whether training-data collection is
 * enabled). Provide the implementation with
 * `Effect.provide(AWS.Chatbot.GetAccountPreferencesHttp)`.
 * ### Account Preferences
 * **Example:** Read the account preferences
 * ```typescript
 * const getAccountPreferences = yield* AWS.Chatbot.GetAccountPreferences();
 * const result = yield* getAccountPreferences();
 * const trainingData = result.AccountPreferences?.TrainingDataCollectionEnabled;
 * ```
 *
 * @binding
 */
export interface GetAccountPreferences extends Binding.Service<
  GetAccountPreferences,
  "AWS.Chatbot.GetAccountPreferences",
  () => Effect.Effect<
    (
      request?: chatbot.GetAccountPreferencesRequest,
    ) => Effect.Effect<chatbot.GetAccountPreferencesResult, chatbot.GetAccountPreferencesError>
  >
> {}

export const GetAccountPreferences = Binding.Service<GetAccountPreferences>(
  "AWS.Chatbot.GetAccountPreferences",
);