Skip to content

ListAccountsWithInvalidEffectivePolicy

Source: src/AWS/Organizations/ListAccountsWithInvalidEffectivePolicy.ts

Runtime binding for organizations:ListAccountsWithInvalidEffectivePolicy.

Lists the accounts whose effective policy of the specified type is invalid — e.g. exceeds the size limit after policy inheritance. Account-level operation — Organizations is a management-account-scoped global service, so the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.Organizations.ListAccountsWithInvalidEffectivePolicyHttp).

// init — account-level binding, no resource argument
const listAccountsWithInvalidEffectivePolicy = yield* AWS.Organizations.ListAccountsWithInvalidEffectivePolicy();
// runtime
const { Accounts } = yield* listAccountsWithInvalidEffectivePolicy({
PolicyType: "TAG_POLICY",
});