URLMapPathMatcherArgs

data class URLMapPathMatcherArgs(val defaultRouteAction: Output<URLMapPathMatcherDefaultRouteActionArgs>? = null, val defaultService: Output<String>? = null, val defaultUrlRedirect: Output<URLMapPathMatcherDefaultUrlRedirectArgs>? = null, val description: Output<String>? = null, val headerAction: Output<URLMapPathMatcherHeaderActionArgs>? = null, val name: Output<String>, val pathRules: Output<List<URLMapPathMatcherPathRuleArgs>>? = null, val routeRules: Output<List<URLMapPathMatcherRouteRuleArgs>>? = null) : ConvertibleToJava<URLMapPathMatcherArgs>

Constructors

Link copied to clipboard
constructor(defaultRouteAction: Output<URLMapPathMatcherDefaultRouteActionArgs>? = null, defaultService: Output<String>? = null, defaultUrlRedirect: Output<URLMapPathMatcherDefaultUrlRedirectArgs>? = null, description: Output<String>? = null, headerAction: Output<URLMapPathMatcherHeaderActionArgs>? = null, name: Output<String>, pathRules: Output<List<URLMapPathMatcherPathRuleArgs>>? = null, routeRules: Output<List<URLMapPathMatcherRouteRuleArgs>>? = null)

Properties

Link copied to clipboard

defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.

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

The backend service or backend bucket to use when none of the given paths match.

Link copied to clipboard

When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.

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

An optional description of this resource. Provide this property when you create the resource.

Link copied to clipboard

Specifies changes to request and response headers that need to take effect for the selected backendService. HeaderAction specified here are applied after the matching HttpRouteRule HeaderAction and before the HeaderAction in the UrlMap Structure is documented below.

Link copied to clipboard
val name: Output<String>

The name to which this PathMatcher is referred by the HostRule.

Link copied to clipboard

The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. Structure is documented below.

Link copied to clipboard

The list of ordered HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. The order of specifying routeRules matters: the first rule that matches will cause its specified routing action to take effect. Within a given pathMatcher, only one of pathRules or routeRules must be set. routeRules are not supported in UrlMaps intended for External load balancers. Structure is documented below. //

Functions

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