Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.networkservices/v1.TcpRoute
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new TcpRoute in a given project and location.
Create TcpRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcpRoute(name: string, args: TcpRouteArgs, opts?: CustomResourceOptions);
@overload
def TcpRoute(resource_name: str,
args: TcpRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TcpRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[Sequence[TcpRouteRouteRuleArgs]] = None,
tcp_route_id: Optional[str] = None,
description: Optional[str] = None,
gateways: Optional[Sequence[str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
meshes: Optional[Sequence[str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewTcpRoute(ctx *Context, name string, args TcpRouteArgs, opts ...ResourceOption) (*TcpRoute, error)
public TcpRoute(string name, TcpRouteArgs args, CustomResourceOptions? opts = null)
public TcpRoute(String name, TcpRouteArgs args)
public TcpRoute(String name, TcpRouteArgs args, CustomResourceOptions options)
type: google-native:networkservices/v1:TcpRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TcpRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TcpRouteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TcpRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcpRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcpRouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tcpRouteResource = new GoogleNative.NetworkServices.V1.TcpRoute("tcpRouteResource", new()
{
Rules = new[]
{
new GoogleNative.NetworkServices.V1.Inputs.TcpRouteRouteRuleArgs
{
Action = new GoogleNative.NetworkServices.V1.Inputs.TcpRouteRouteActionArgs
{
Destinations = new[]
{
new GoogleNative.NetworkServices.V1.Inputs.TcpRouteRouteDestinationArgs
{
ServiceName = "string",
Weight = 0,
},
},
OriginalDestination = false,
},
Matches = new[]
{
new GoogleNative.NetworkServices.V1.Inputs.TcpRouteRouteMatchArgs
{
Address = "string",
Port = "string",
},
},
},
},
TcpRouteId = "string",
Description = "string",
Gateways = new[]
{
"string",
},
Labels =
{
{ "string", "string" },
},
Location = "string",
Meshes = new[]
{
"string",
},
Name = "string",
Project = "string",
});
example, err := networkservices.NewTcpRoute(ctx, "tcpRouteResource", &networkservices.TcpRouteArgs{
Rules: networkservices.TcpRouteRouteRuleArray{
&networkservices.TcpRouteRouteRuleArgs{
Action: &networkservices.TcpRouteRouteActionArgs{
Destinations: networkservices.TcpRouteRouteDestinationArray{
&networkservices.TcpRouteRouteDestinationArgs{
ServiceName: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
OriginalDestination: pulumi.Bool(false),
},
Matches: networkservices.TcpRouteRouteMatchArray{
&networkservices.TcpRouteRouteMatchArgs{
Address: pulumi.String("string"),
Port: pulumi.String("string"),
},
},
},
},
TcpRouteId: pulumi.String("string"),
Description: pulumi.String("string"),
Gateways: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Meshes: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var tcpRouteResource = new TcpRoute("tcpRouteResource", TcpRouteArgs.builder()
.rules(TcpRouteRouteRuleArgs.builder()
.action(TcpRouteRouteActionArgs.builder()
.destinations(TcpRouteRouteDestinationArgs.builder()
.serviceName("string")
.weight(0)
.build())
.originalDestination(false)
.build())
.matches(TcpRouteRouteMatchArgs.builder()
.address("string")
.port("string")
.build())
.build())
.tcpRouteId("string")
.description("string")
.gateways("string")
.labels(Map.of("string", "string"))
.location("string")
.meshes("string")
.name("string")
.project("string")
.build());
tcp_route_resource = google_native.networkservices.v1.TcpRoute("tcpRouteResource",
rules=[{
"action": {
"destinations": [{
"service_name": "string",
"weight": 0,
}],
"original_destination": False,
},
"matches": [{
"address": "string",
"port": "string",
}],
}],
tcp_route_id="string",
description="string",
gateways=["string"],
labels={
"string": "string",
},
location="string",
meshes=["string"],
name="string",
project="string")
const tcpRouteResource = new google_native.networkservices.v1.TcpRoute("tcpRouteResource", {
rules: [{
action: {
destinations: [{
serviceName: "string",
weight: 0,
}],
originalDestination: false,
},
matches: [{
address: "string",
port: "string",
}],
}],
tcpRouteId: "string",
description: "string",
gateways: ["string"],
labels: {
string: "string",
},
location: "string",
meshes: ["string"],
name: "string",
project: "string",
});
type: google-native:networkservices/v1:TcpRoute
properties:
description: string
gateways:
- string
labels:
string: string
location: string
meshes:
- string
name: string
project: string
rules:
- action:
destinations:
- serviceName: string
weight: 0
originalDestination: false
matches:
- address: string
port: string
tcpRouteId: string
TcpRoute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TcpRoute resource accepts the following input properties:
- Rules
List<Pulumi.
Google Native. Network Services. V1. Inputs. Tcp Route Route Rule> - 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.
- Tcp
Route stringId - Required. Short name of the TcpRoute resource to be created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Gateways List<string>
- 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/
- Labels Dictionary<string, string>
- Optional. Set of label tags associated with the TcpRoute resource.
- Location string
- Meshes List<string>
- 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 - Name string
- Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
. - Project string
- Rules
[]Tcp
Route Route Rule Args - 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.
- Tcp
Route stringId - Required. Short name of the TcpRoute resource to be created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Gateways []string
- 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/
- Labels map[string]string
- Optional. Set of label tags associated with the TcpRoute resource.
- Location string
- Meshes []string
- 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 - Name string
- Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
. - Project string
- rules
List<Tcp
Route Route Rule> - 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.
- tcp
Route StringId - Required. Short name of the TcpRoute resource to be created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- gateways List<String>
- 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/
- labels Map<String,String>
- Optional. Set of label tags associated with the TcpRoute resource.
- location String
- meshes List<String>
- 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 - name String
- Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
. - project String
- rules
Tcp
Route Route Rule[] - 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.
- tcp
Route stringId - Required. Short name of the TcpRoute resource to be created.
- description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- gateways string[]
- 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/
- labels {[key: string]: string}
- Optional. Set of label tags associated with the TcpRoute resource.
- location string
- meshes string[]
- 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 - name string
- Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
. - project string
- rules
Sequence[Tcp
Route Route Rule Args] - 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.
- tcp_
route_ strid - Required. Short name of the TcpRoute resource to be created.
- description str
- Optional. A free-text description of the resource. Max length 1024 characters.
- gateways Sequence[str]
- 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/
- labels Mapping[str, str]
- Optional. Set of label tags associated with the TcpRoute resource.
- location str
- meshes Sequence[str]
- 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 - name str
- Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
. - project str
- rules List<Property Map>
- 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.
- tcp
Route StringId - Required. Short name of the TcpRoute resource to be created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- gateways List<String>
- 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/
- labels Map<String>
- Optional. Set of label tags associated with the TcpRoute resource.
- location String
- meshes List<String>
- 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 - name String
- Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the TcpRoute resource produces the following output properties:
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Server-defined URL of this resource
- Update
Time string - The timestamp when the resource was updated.
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Server-defined URL of this resource
- Update
Time string - The timestamp when the resource was updated.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Server-defined URL of this resource
- update
Time String - The timestamp when the resource was updated.
- create
Time string - The timestamp when the resource was created.
- id string
- The provider-assigned unique ID for this managed resource.
- self
Link string - Server-defined URL of this resource
- update
Time string - The timestamp when the resource was updated.
- create_
time str - The timestamp when the resource was created.
- id str
- The provider-assigned unique ID for this managed resource.
- self_
link str - Server-defined URL of this resource
- update_
time str - The timestamp when the resource was updated.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Server-defined URL of this resource
- update
Time String - The timestamp when the resource was updated.
Supporting Types
TcpRouteRouteAction, TcpRouteRouteActionArgs
- Destinations
List<Pulumi.
Google Native. Network Services. V1. Inputs. Tcp Route Route Destination> - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- Original
Destination bool - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- Destinations
[]Tcp
Route Route Destination - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- Original
Destination bool - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations
List<Tcp
Route Route Destination> - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original
Destination Boolean - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations
Tcp
Route Route Destination[] - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original
Destination boolean - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations
Sequence[Tcp
Route Route Destination] - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original_
destination bool - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations List<Property Map>
- Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original
Destination Boolean - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
TcpRouteRouteActionResponse, TcpRouteRouteActionResponseArgs
- Destinations
List<Pulumi.
Google Native. Network Services. V1. Inputs. Tcp Route Route Destination Response> - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- Original
Destination bool - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- Destinations
[]Tcp
Route Route Destination Response - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- Original
Destination bool - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations
List<Tcp
Route Route Destination Response> - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original
Destination Boolean - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations
Tcp
Route Route Destination Response[] - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original
Destination boolean - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations
Sequence[Tcp
Route Route Destination Response] - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original_
destination bool - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
- destinations List<Property Map>
- Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
- original
Destination Boolean - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
TcpRouteRouteDestination, TcpRouteRouteDestinationArgs
- Service
Name string - The URL of a BackendService to route traffic to.
- Weight int
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- Service
Name string - The URL of a BackendService to route traffic to.
- Weight int
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service
Name String - The URL of a BackendService to route traffic to.
- weight Integer
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service
Name string - The URL of a BackendService to route traffic to.
- weight number
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service_
name str - The URL of a BackendService to route traffic to.
- weight int
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service
Name String - The URL of a BackendService to route traffic to.
- weight Number
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
TcpRouteRouteDestinationResponse, TcpRouteRouteDestinationResponseArgs
- Service
Name string - The URL of a BackendService to route traffic to.
- Weight int
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- Service
Name string - The URL of a BackendService to route traffic to.
- Weight int
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service
Name String - The URL of a BackendService to route traffic to.
- weight Integer
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service
Name string - The URL of a BackendService to route traffic to.
- weight number
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service_
name str - The URL of a BackendService to route traffic to.
- weight int
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
- service
Name String - The URL of a BackendService to route traffic to.
- weight Number
- Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
TcpRouteRouteMatch, TcpRouteRouteMatchArgs
- Address string
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- Port string
- Specifies the destination port to match against.
- Address string
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- Port string
- Specifies the destination port to match against.
- address String
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port String
- Specifies the destination port to match against.
- address string
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port string
- Specifies the destination port to match against.
- address str
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port str
- Specifies the destination port to match against.
- address String
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port String
- Specifies the destination port to match against.
TcpRouteRouteMatchResponse, TcpRouteRouteMatchResponseArgs
- Address string
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- Port string
- Specifies the destination port to match against.
- Address string
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- Port string
- Specifies the destination port to match against.
- address String
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port String
- Specifies the destination port to match against.
- address string
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port string
- Specifies the destination port to match against.
- address str
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port str
- Specifies the destination port to match against.
- address String
- Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
- port String
- Specifies the destination port to match against.
TcpRouteRouteRule, TcpRouteRouteRuleArgs
- Action
Pulumi.
Google Native. Network Services. V1. Inputs. Tcp Route Route Action - The detailed rule defining how to route matched traffic.
- Matches
List<Pulumi.
Google Native. Network Services. V1. Inputs. Tcp Route Route Match> - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- Action
Tcp
Route Route Action - The detailed rule defining how to route matched traffic.
- Matches
[]Tcp
Route Route Match - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action
Tcp
Route Route Action - The detailed rule defining how to route matched traffic.
- matches
List<Tcp
Route Route Match> - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action
Tcp
Route Route Action - The detailed rule defining how to route matched traffic.
- matches
Tcp
Route Route Match[] - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action
Tcp
Route Route Action - The detailed rule defining how to route matched traffic.
- matches
Sequence[Tcp
Route Route Match] - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action Property Map
- The detailed rule defining how to route matched traffic.
- matches List<Property Map>
- Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
TcpRouteRouteRuleResponse, TcpRouteRouteRuleResponseArgs
- Action
Pulumi.
Google Native. Network Services. V1. Inputs. Tcp Route Route Action Response - The detailed rule defining how to route matched traffic.
- Matches
List<Pulumi.
Google Native. Network Services. V1. Inputs. Tcp Route Route Match Response> - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- Action
Tcp
Route Route Action Response - The detailed rule defining how to route matched traffic.
- Matches
[]Tcp
Route Route Match Response - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action
Tcp
Route Route Action Response - The detailed rule defining how to route matched traffic.
- matches
List<Tcp
Route Route Match Response> - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action
Tcp
Route Route Action Response - The detailed rule defining how to route matched traffic.
- matches
Tcp
Route Route Match Response[] - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action
Tcp
Route Route Action Response - The detailed rule defining how to route matched traffic.
- matches
Sequence[Tcp
Route Route Match Response] - Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
- action Property Map
- The detailed rule defining how to route matched traffic.
- matches List<Property Map>
- Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.