Skip to content

CreateFindingsReport

Source: src/AWS/Inspector2/CreateFindingsReport.ts

Runtime binding for inspector2:CreateFindingsReport.

Creates a finding report. By default only ACTIVE findings are returned in the report. To see SUPRESSED or CLOSED findings you must specify a value for the findingStatus filter criteria.

Provide the implementation with Effect.provide(AWS.Inspector2.CreateFindingsReportHttp).

// init
const createFindingsReport = yield* AWS.Inspector2.CreateFindingsReport();
// runtime
const { reportId } = yield* createFindingsReport({
reportFormat: "JSON",
s3Destination: { bucketName, keyPrefix: "findings/", kmsKeyArn },
});