Skip to content

ListFindingsV2

Source: src/AWS/AccessAnalyzer/ListFindingsV2.ts

Runtime binding for the ListFindingsV2 operation (IAM action access-analyzer:ListFindings — shared with the V1 API).

Lists the analyzer’s findings (external-access and unused-access), with optional filter and sort criteria. Provide the implementation with Effect.provide(AWS.AccessAnalyzer.ListFindingsV2Http).

// init — bind the operation to the analyzer
const listFindings = yield* AWS.AccessAnalyzer.ListFindingsV2(analyzer);
// runtime — page through active findings
const page = yield* listFindings({
filter: { status: { eq: ["ACTIVE"] } },
maxResults: 50,
});