GetPoliciesStats
Source:
src/AWS/OpenSearchServerless/GetPoliciesStats.ts
Runtime binding for the GetPoliciesStats operation (IAM action
aoss:GetPoliciesStats; the action does not support resource-level
scoping, so the grant is on *).
Returns counts of the account’s access policies, security policies,
security configurations, and lifecycle policies — useful for quota
dashboards (each policy type has an account quota). Provide the
implementation with
Effect.provide(AWS.OpenSearchServerless.GetPoliciesStatsHttp).
Account Settings
Section titled “Account Settings”const getPoliciesStats = yield* AWS.OpenSearchServerless.GetPoliciesStats();
const stats = yield* getPoliciesStats();yield* Effect.log(`total policies: ${stats.TotalPolicyCount}`);