Skip to content
v2.278.0

FlowTimeoutsProperty Struct ​

Describes the amount of time that can pass without any traffic sent through the firewall before the firewall determines that the connection is idle and Network Firewall removes the flow entry from its flow table.

Existing connections and flows are not impacted when you update this value. Only new connections after you update this value are impacted.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const flowTimeoutsProperty: networkfirewall.CfnFirewallPolicy.FlowTimeoutsProperty = {
  tcpIdleTimeoutSeconds: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkfirewall as networkfirewall

flow_timeouts_property = networkfirewall.CfnFirewallPolicy.FlowTimeoutsProperty(
    tcp_idle_timeout_seconds=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkfirewall.*;

FlowTimeoutsProperty flowTimeoutsProperty = FlowTimeoutsProperty.builder()
        .tcpIdleTimeoutSeconds(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkFirewall;

var flowTimeoutsProperty = new FlowTimeoutsProperty {
    TcpIdleTimeoutSeconds = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

flowTimeoutsProperty := &FlowTimeoutsProperty{
	TcpIdleTimeoutSeconds: jsii.Number(123),
}

Properties ​

tcpIdleTimeoutSecondsoptionalnumbertcp_idle_timeout_secondsoptionalint | floattcpIdleTimeoutSecondsoptionalNumberTcpIdleTimeoutSecondsoptionaldoubleTcpIdleTimeoutSecondsoptional*float64 #
The number of seconds that can pass without any TCP traffic sent through the firewall before the firewall determines that the connection is idle.
notes

After the idle timeout passes, data packets are dropped, however, the next TCP SYN packet is considered a new flow and is processed by the firewall. Clients or targets can use TCP keepalive packets to reset the idle timeout.

You can define the TcpIdleTimeoutSeconds value to be between 60 and 6000 seconds. If no value is provided, it defaults to 350 seconds.