Smaws_Client_NetworkFirewall.StartFlowCaptureBegins capturing the flows in a firewall, according to the filters you define. Captures are similar, but not identical to snapshots. Capture operations provide visibility into flows that are not closed and are tracked by a firewall's flow table. Unlike snapshots, captures are a time-boxed view.
A flow is network traffic that is monitored by a firewall, either by stateful or stateless rules. For traffic to be considered part of a flow, it must share Destination, DestinationPort, Direction, Protocol, Source, and SourcePort.
To avoid encountering operation limits, you should avoid starting captures with broad filters, like wide IP ranges. Instead, we recommend you define more specific criteria with FlowFilters, like narrow IP ranges, ports, or protocols.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerError of Types.internal_server_error
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.start_flow_capture_request ->
(Types.start_flow_capture_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerError of Types.internal_server_error
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.start_flow_capture_request ->
(Types.start_flow_capture_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerError of Types.internal_server_error
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result