Skip to content

StartFlowCapture

Source: src/AWS/NetworkFirewall/StartFlowCapture.ts

Runtime binding for network-firewall:StartFlowCapture — begin a time-boxed capture of the flows the bound Firewall is tracking, according to the FlowFilters you define; the firewall ARN is injected automatically.

Provide NetworkFirewall.StartFlowCaptureHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants network-firewall:StartFlowCapture on the firewall
const startFlowCapture = yield* AWS.NetworkFirewall.StartFlowCapture(firewall);
// runtime
const { FlowOperationId } = yield* startFlowCapture({
FlowFilters: [{ SourceAddress: { AddressDefinition: "10.0.1.10/32" } }],
});