Skip to content

GetAccountPreferences

Source: src/AWS/Chatbot/GetAccountPreferences.ts

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).

const getAccountPreferences = yield* AWS.Chatbot.GetAccountPreferences();
const result = yield* getAccountPreferences();
const trainingData = result.AccountPreferences?.TrainingDataCollectionEnabled;