Skip to content

GetFindings

Source: src/AWS/SecurityHub/GetFindings.ts

Runtime binding for securityhub:GetFindings.

Returns findings that match the specified filter criteria. With cross-Region aggregation enabled, the home Region returns matching findings from all linked Regions. Account-level operation — invoked with the caller’s request as-is. Provide the implementation with Effect.provide(AWS.SecurityHub.GetFindingsHttp).

// init — account-level binding, no resource argument
const getFindings = yield* AWS.SecurityHub.GetFindings();
// runtime
const { Findings } = yield* getFindings({
Filters: { SeverityLabel: [{ Value: "HIGH", Comparison: "EQUALS" }] },
MaxResults: 25,
});