Skip to content

CreateSampleFindings

Source: src/AWS/GuardDuty/CreateSampleFindings.ts

Runtime binding for guardduty:CreateSampleFindings.

Generates sample findings of the requested types — the standard way to exercise a finding-consumer pipeline end-to-end without staging a real threat. The detector id is injected from the bound Detector. Provide the implementation with Effect.provide(AWS.GuardDuty.CreateSampleFindingsHttp).

// init
const createSampleFindings = yield* AWS.GuardDuty.CreateSampleFindings(detector);
// runtime
yield* createSampleFindings({
FindingTypes: ["Recon:EC2/PortProbeUnprotectedPort"],
});