Skip to content

DescribeEffectivePolicy

Source: src/AWS/Organizations/DescribeEffectivePolicy.ts

Runtime binding for organizations:DescribeEffectivePolicy.

Returns the contents of the effective policy of the specified type for an account — the aggregation of inherited plus directly attached management policies (tag, backup, AI-services opt-out, …). 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.DescribeEffectivePolicyHttp).

// init — account-level binding, no resource argument
const describeEffectivePolicy = yield* AWS.Organizations.DescribeEffectivePolicy();
// runtime
const { EffectivePolicy } = yield* describeEffectivePolicy({
PolicyType: "TAG_POLICY",
TargetId: accountId,
});