DescribeComplianceByResource
Source:
src/AWS/Config/DescribeComplianceByResource.ts
Runtime binding for config:DescribeComplianceByResource — read whether
evaluated resources comply with the Config rules that evaluate them.
Provide Config.DescribeComplianceByResourceHttp on the hosting Lambda Function to
satisfy the requirement.
Reading Compliance
Section titled “Reading Compliance”// init — grants config:DescribeComplianceByResourceconst describeComplianceByResource = yield* AWS.Config.DescribeComplianceByResource();
// runtimeconst result = yield* describeComplianceByResource({ ResourceType: "AWS::S3::Bucket",});console.log(result.ComplianceByResources);