start_flow_capture
async
¶
start_flow_capture(
firewall_arn: ResourceArn,
flow_filters: FlowFilters,
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
availability_zone: Optional[AvailabilityZone] = None,
availability_zone_id: Optional[AvailabilityZoneId] = None,
vpc_endpoint_association_arn: Optional[ResourceArn] = None,
vpc_endpoint_id: Optional[VpcEndpointId] = None,
minimum_flow_age_in_seconds: Optional[Age] = None,
) -> StartFlowCaptureResponse
Begins 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.
Parameters:
-
firewall_arn(ResourceArn) –The Amazon Resource Name (ARN) of the firewall.
-
availability_zone(Optional[AvailabilityZone], default:None) –The name of the Availability Zone where the firewall is located. For example,
us-east-2a.Defines the scope a flow operation. You can use up to 20 filters to configure a single flow operation.
-
availability_zone_id(Optional[AvailabilityZoneId], default:None) –The ID of the Availability Zone where the firewall is located. For example,
use2-az1. Availability Zone IDs are the same in every Amazon Web Services account, so use this parameter when you coordinate resources across accounts. Specify eitherAvailabilityZoneorAvailabilityZoneId, not both. If you specify both, the request fails. -
vpc_endpoint_association_arn(Optional[ResourceArn], default:None) –The Amazon Resource Name (ARN) of a VPC endpoint association.
-
vpc_endpoint_id(Optional[VpcEndpointId], default:None) –A unique identifier for the primary endpoint associated with a firewall.
-
minimum_flow_age_in_seconds(Optional[Age], default:None) –The reqested
FlowOperationignores flows with an age (in seconds) lower thanMinimumFlowAgeInSeconds. You provide this for start commands.We recommend setting this value to at least 1 minute (60 seconds) to reduce chance of capturing flows that are not yet established.
-
flow_filters(FlowFilters) –Defines the scope a flow operation. You can use up to 20 filters to configure a single flow operation.
Raises:
-
InternalServerError–Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
-
InvalidRequestException–The operation failed because of a problem with your request. Examples include:
-
You specified an unsupported parameter name or value.
-
You tried to update a property with a value that isn't among the available types.
-
Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
-
-
ResourceNotFoundException–Unable to locate a resource using the parameters that you provided.
-
ThrottlingException–Unable to process the request due to throttling limitations.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_network_firewall/_services/async_network_firewall.py
5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 | |