Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.networkservices/v1beta1.TlsRoute
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new TlsRoute in a given project and location.
Create TlsRoute Resource
new TlsRoute(name: string, args: TlsRouteArgs, opts?: CustomResourceOptions);
@overload
def TlsRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
gateways: Optional[Sequence[str]] = None,
location: Optional[str] = None,
meshes: Optional[Sequence[str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
rules: Optional[Sequence[TlsRouteRouteRuleArgs]] = None,
tls_route_id: Optional[str] = None)
@overload
def TlsRoute(resource_name: str,
args: TlsRouteArgs,
opts: Optional[ResourceOptions] = None)
func NewTlsRoute(ctx *Context, name string, args TlsRouteArgs, opts ...ResourceOption) (*TlsRoute, error)
public TlsRoute(string name, TlsRouteArgs args, CustomResourceOptions? opts = null)
public TlsRoute(String name, TlsRouteArgs args)
public TlsRoute(String name, TlsRouteArgs args, CustomResourceOptions options)
type: google-native:networkservices/v1beta1:TlsRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TlsRouteArgs
- 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 TlsRouteArgs
- 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 TlsRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TlsRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TlsRouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TlsRoute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TlsRoute resource accepts the following input properties:
- Rules
List<Pulumi.
Google Native. Network Services. V1Beta1. Inputs. Tls 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.
- Tls
Route stringId Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example).
- 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 TlsRoute 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/
- Location string
- Meshes List<string>
Optional. Meshes defines a list of meshes this TlsRoute 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 TlsRoute resource. It matches pattern
projects/*/locations/global/tlsRoutes/tls_route_name>
.- Project string
- Rules
[]Tls
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.
- Tls
Route stringId Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example).
- Description string
Optional. A free-text description of the resource. Max length 1024 characters.
- Gateways []string
Optional. Gateways defines a list of gateways this TlsRoute 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/
- Location string
- Meshes []string
Optional. Meshes defines a list of meshes this TlsRoute 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 TlsRoute resource. It matches pattern
projects/*/locations/global/tlsRoutes/tls_route_name>
.- Project string
- rules
List<Tls
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.
- tls
Route StringId Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example).
- 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 TlsRoute 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/
- location String
- meshes List<String>
Optional. Meshes defines a list of meshes this TlsRoute 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 TlsRoute resource. It matches pattern
projects/*/locations/global/tlsRoutes/tls_route_name>
.- project String
- rules
Tls
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.
- tls
Route stringId Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example).
- description string
Optional. A free-text description of the resource. Max length 1024 characters.
- gateways string[]
Optional. Gateways defines a list of gateways this TlsRoute 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/
- location string
- meshes string[]
Optional. Meshes defines a list of meshes this TlsRoute 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 TlsRoute resource. It matches pattern
projects/*/locations/global/tlsRoutes/tls_route_name>
.- project string
- rules
Sequence[Tls
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.
- tls_
route_ strid Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example).
- 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 TlsRoute 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/
- location str
- meshes Sequence[str]
Optional. Meshes defines a list of meshes this TlsRoute 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 TlsRoute resource. It matches pattern
projects/*/locations/global/tlsRoutes/tls_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.
- tls
Route StringId Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example).
- 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 TlsRoute 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/
- location String
- meshes List<String>
Optional. Meshes defines a list of meshes this TlsRoute 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 TlsRoute resource. It matches pattern
projects/*/locations/global/tlsRoutes/tls_route_name>
.- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the TlsRoute 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
TlsRouteRouteAction, TlsRouteRouteActionArgs
- Destinations
List<Pulumi.
Google Native. Network Services. V1Beta1. Inputs. Tls Route Route Destination> The destination services to which traffic should be forwarded. At least one destination service is required.
- Destinations
[]Tls
Route Route Destination The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations
List<Tls
Route Route Destination> The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations
Tls
Route Route Destination[] The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations
Sequence[Tls
Route Route Destination] The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations List<Property Map>
The destination services to which traffic should be forwarded. At least one destination service is required.
TlsRouteRouteActionResponse, TlsRouteRouteActionResponseArgs
- Destinations
List<Pulumi.
Google Native. Network Services. V1Beta1. Inputs. Tls Route Route Destination Response> The destination services to which traffic should be forwarded. At least one destination service is required.
- Destinations
[]Tls
Route Route Destination Response The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations
List<Tls
Route Route Destination Response> The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations
Tls
Route Route Destination Response[] The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations
Sequence[Tls
Route Route Destination Response] The destination services to which traffic should be forwarded. At least one destination service is required.
- destinations List<Property Map>
The destination services to which traffic should be forwarded. At least one destination service is required.
TlsRouteRouteDestination, TlsRouteRouteDestinationArgs
- Service
Name string The URL of a BackendService to route traffic to.
- Weight int
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- Service
Name string The URL of a BackendService to route traffic to.
- Weight int
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service
Name String The URL of a BackendService to route traffic to.
- weight Integer
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service
Name string The URL of a BackendService to route traffic to.
- weight number
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service_
name str The URL of a BackendService to route traffic to.
- weight int
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service
Name String The URL of a BackendService to route traffic to.
- weight Number
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
TlsRouteRouteDestinationResponse, TlsRouteRouteDestinationResponseArgs
- Service
Name string The URL of a BackendService to route traffic to.
- Weight int
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- Service
Name string The URL of a BackendService to route traffic to.
- Weight int
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service
Name String The URL of a BackendService to route traffic to.
- weight Integer
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service
Name string The URL of a BackendService to route traffic to.
- weight number
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service_
name str The URL of a BackendService to route traffic to.
- weight int
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
- service
Name String The URL of a BackendService to route traffic to.
- weight Number
Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
TlsRouteRouteMatch, TlsRouteRouteMatchArgs
- Alpn List<string>
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- Sni
Host List<string> Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- Alpn []string
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- Sni
Host []string Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn List<String>
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni
Host List<String> Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn string[]
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni
Host string[] Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn Sequence[str]
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni_
host Sequence[str] Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn List<String>
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni
Host List<String> Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
TlsRouteRouteMatchResponse, TlsRouteRouteMatchResponseArgs
- Alpn List<string>
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- Sni
Host List<string> Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- Alpn []string
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- Sni
Host []string Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn List<String>
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni
Host List<String> Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn string[]
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni
Host string[] Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn Sequence[str]
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni_
host Sequence[str] Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
- alpn List<String>
Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set.
- sni
Host List<String> Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.
www.example.com
will be first matched againstwww.example.com
, then*.example.com
, then*.com.
Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set.
TlsRouteRouteRule, TlsRouteRouteRuleArgs
- Action
Pulumi.
Google Native. Network Services. V1Beta1. Inputs. Tls Route Route Action The detailed rule defining how to route matched traffic.
- Matches
List<Pulumi.
Google Native. Network Services. V1Beta1. Inputs. Tls Route Route Match> RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- Action
Tls
Route Route Action The detailed rule defining how to route matched traffic.
- Matches
[]Tls
Route Route Match RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action
Tls
Route Route Action The detailed rule defining how to route matched traffic.
- matches
List<Tls
Route Route Match> RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action
Tls
Route Route Action The detailed rule defining how to route matched traffic.
- matches
Tls
Route Route Match[] RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action
Tls
Route Route Action The detailed rule defining how to route matched traffic.
- matches
Sequence[Tls
Route Route Match] RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action Property Map
The detailed rule defining how to route matched traffic.
- matches List<Property Map>
RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
TlsRouteRouteRuleResponse, TlsRouteRouteRuleResponseArgs
- Action
Pulumi.
Google Native. Network Services. V1Beta1. Inputs. Tls Route Route Action Response The detailed rule defining how to route matched traffic.
- Matches
List<Pulumi.
Google Native. Network Services. V1Beta1. Inputs. Tls Route Route Match Response> RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- Action
Tls
Route Route Action Response The detailed rule defining how to route matched traffic.
- Matches
[]Tls
Route Route Match Response RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action
Tls
Route Route Action Response The detailed rule defining how to route matched traffic.
- matches
List<Tls
Route Route Match Response> RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action
Tls
Route Route Action Response The detailed rule defining how to route matched traffic.
- matches
Tls
Route Route Match Response[] RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action
Tls
Route Route Action Response The detailed rule defining how to route matched traffic.
- matches
Sequence[Tls
Route Route Match Response] RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
- action Property Map
The detailed rule defining how to route matched traffic.
- matches List<Property Map>
RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
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.