TcpRouteArgs

data class TcpRouteArgs(val description: Output<String>? = null, val gateways: Output<List<String>>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val meshes: Output<List<String>>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val rules: Output<List<TcpRouteRouteRuleArgs>>? = null, val tcpRouteId: Output<String>? = null) : ConvertibleToJava<TcpRouteArgs>

Creates a new TcpRoute in a given project and location.

Constructors

Link copied to clipboard
fun TcpRouteArgs(description: Output<String>? = null, gateways: Output<List<String>>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, meshes: Output<List<String>>? = null, name: Output<String>? = null, project: Output<String>? = null, rules: Output<List<TcpRouteRouteRuleArgs>>? = null, tcpRouteId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TcpRouteArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

Optional. A free-text description of the resource. Max length 1024 characters.

Link copied to clipboard
val gateways: Output<List<String>>? = null

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Optional. Set of label tags associated with the TcpRoute resource.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val meshes: Output<List<String>>? = null

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/ The attached Mesh should be of a type SIDECAR

Link copied to clipboard
val name: Output<String>? = null

Name of the TcpRoute resource. It matches pattern projects/*/locations/global/tcpRoutes/tcp_route_name>.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val rules: Output<List<TcpRouteRouteRuleArgs>>? = null

Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

Link copied to clipboard
val tcpRouteId: Output<String>? = null

Required. Short name of the TcpRoute resource to be created. E.g. TODO(Add an example). //*/