Skip to content

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).

// init — account-level binding takes no resource
const getComplianceDetail = yield* AWS.FMS.GetComplianceDetail();
// runtime
const result = yield* getComplianceDetail({
PolicyId: policyId,
MemberAccount: accountId,
});
console.log(result.PolicyComplianceDetail?.Violators?.length);