GetAccountSettings
Source:
src/AWS/OpenSearchServerless/GetAccountSettings.ts
Runtime binding for the GetAccountSettings operation (IAM action
aoss:GetAccountSettings; the action does not support resource-level
scoping, so the grant is on *).
Reads the account-level OpenSearch Serverless settings — the OCU capacity
limits that cap the account’s spend. Provide the implementation with
Effect.provide(AWS.OpenSearchServerless.GetAccountSettingsHttp).
Account Settings
Section titled “Account Settings”const getAccountSettings = yield* AWS.OpenSearchServerless.GetAccountSettings();
const settings = yield* getAccountSettings();const limits = settings.accountSettingsDetail?.capacityLimits;yield* Effect.log(`max indexing OCUs: ${limits?.maxIndexingCapacityInOCU}`);