GetComplianceDetail
Source:
src/AWS/FMS/GetComplianceDetail.ts
Runtime binding for fms:GetComplianceDetail.
Returns detailed compliance information about the specified member account — the resources that are in and out of compliance with the specified policy. Provide the
implementation with Effect.provide(AWS.FMS.GetComplianceDetailHttp).
Compliance and Protection Status
Section titled “Compliance and Protection Status”// init — account-level binding takes no resourceconst getComplianceDetail = yield* AWS.FMS.GetComplianceDetail();
// runtimeconst result = yield* getComplianceDetail({ PolicyId: policyId, MemberAccount: accountId,});console.log(result.PolicyComplianceDetail?.Violators?.length);