EdgeCacheServiceRoutingPathMatcherRouteRuleArgs

data class EdgeCacheServiceRoutingPathMatcherRouteRuleArgs(val description: Output<String>? = null, val headerAction: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs>? = null, val matchRules: Output<List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs>>, val origin: Output<String>? = null, val priority: Output<String>, val routeAction: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs>? = null, val routeMethods: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleRouteMethodsArgs>? = null, val urlRedirect: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirectArgs>? = null) : ConvertibleToJava<EdgeCacheServiceRoutingPathMatcherRouteRuleArgs>

Constructors

constructor(description: Output<String>? = null, headerAction: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs>? = null, matchRules: Output<List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs>>, origin: Output<String>? = null, priority: Output<String>, routeAction: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs>? = null, routeMethods: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleRouteMethodsArgs>? = null, urlRedirect: Output<EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirectArgs>? = null)

Properties

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

A human-readable description of the routeRule.

Link copied to clipboard

The header actions, including adding & removing headers, for requests that match this route. Structure is documented below.

Link copied to clipboard

The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule. Structure is documented below.

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

The Origin resource that requests to this route should fetch from when a matching response is not in cache. Origins can be defined as short names ("my-origin") or fully-qualified resource URLs - e.g. "networkservices.googleapis.com/projects/my-project/global/edgecacheorigins/my-origin" Only one of origin or urlRedirect can be set.

Link copied to clipboard
val priority: Output<String>

The priority of this route rule, where 1 is the highest priority. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 1 and 999 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules.

Link copied to clipboard

In response to a matching path, the routeAction performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected origin. Structure is documented below.

Link copied to clipboard

Allow overriding the set of methods that are allowed for this route. When not set, Media CDN allows only "GET", "HEAD", and "OPTIONS". Structure is documented below.

Link copied to clipboard

The URL redirect configuration for requests that match this route. Structure is documented below.

Functions

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