Skip to content

Commit

Permalink
Adds the IdleTimeout parameter to the RouteAction section of the TcpR…
Browse files Browse the repository at this point in the history
…oute resource. (GoogleCloudPlatform#11454)

Co-authored-by: Sarah French <[email protected]>
  • Loading branch information
ellisonmarks and SarahFrench authored Aug 19, 2024
1 parent b8626f6 commit 36bb34c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mmv1/products/networkservices/TcpRoute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,11 @@ properties:
name: originalDestination
description: |
If true, Router will use the destination IP and port of the original connection as the destination of the request.
- !ruby/object:Api::Type::String
name: idleTimeout
description: |
Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 30 seconds. If set to 0s, the timeout will be disabled.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
validation: !ruby/object:Provider::Terraform::Validation
regex: '^(0|[1-9][0-9]*)(\.[0-9]{1,9})?s$'
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "google_network_services_tcp_route" "<%= ctx[:primary_resource_id] %>"
weight = 1
}
original_destination = false
idle_timeout = "60s"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ resource "google_network_services_tcp_route" "foobar" {
weight = 1
}
original_destination = false
idle_timeout = "60s"
}
}
}
Expand Down Expand Up @@ -112,6 +113,7 @@ resource "google_network_services_tcp_route" "foobar" {
weight = 1
}
original_destination = false
idle_timeout = "120s"
}
}
}
Expand Down

0 comments on commit 36bb34c

Please sign in to comment.