Skip to content

UpdateAccountSettings

Source: src/AWS/OpenSearchServerless/UpdateAccountSettings.ts

Runtime binding for the UpdateAccountSettings operation (IAM action aoss:UpdateAccountSettings; the action does not support resource-level scoping, so the grant is on *).

Updates the account-level OCU capacity limits — the cost-control automation path (e.g. a budget alarm handler capping search capacity). Provide the implementation with Effect.provide(AWS.OpenSearchServerless.UpdateAccountSettingsHttp).

const updateAccountSettings = yield* AWS.OpenSearchServerless.UpdateAccountSettings();
yield* updateAccountSettings({
capacityLimits: { maxSearchCapacityInOCU: 4 },
});