1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. RegionUrlMap
Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi

gcp.compute.RegionUrlMap

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi

    UrlMaps are used to route requests to a backend service based on rules that you define for the host and path of an incoming URL.

    Example Usage

    Region Url Map Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.RegionHealthCheck("default", {
        region: "us-central1",
        name: "health-check",
        checkIntervalSec: 1,
        timeoutSec: 1,
        httpHealthCheck: {
            port: 80,
            requestPath: "/",
        },
    });
    const login = new gcp.compute.RegionBackendService("login", {
        region: "us-central1",
        name: "login",
        protocol: "HTTP",
        loadBalancingScheme: "INTERNAL_MANAGED",
        timeoutSec: 10,
        healthChecks: _default.id,
    });
    const home = new gcp.compute.RegionBackendService("home", {
        region: "us-central1",
        name: "home",
        protocol: "HTTP",
        loadBalancingScheme: "INTERNAL_MANAGED",
        timeoutSec: 10,
        healthChecks: _default.id,
    });
    const regionurlmap = new gcp.compute.RegionUrlMap("regionurlmap", {
        region: "us-central1",
        name: "regionurlmap",
        description: "a description",
        defaultService: home.id,
        hostRules: [{
            hosts: ["mysite.com"],
            pathMatcher: "allpaths",
        }],
        pathMatchers: [{
            name: "allpaths",
            defaultService: home.id,
            pathRules: [
                {
                    paths: ["/home"],
                    service: home.id,
                },
                {
                    paths: ["/login"],
                    service: login.id,
                },
            ],
        }],
        tests: [{
            service: home.id,
            host: "hi.com",
            path: "/home",
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.RegionHealthCheck("default",
        region="us-central1",
        name="health-check",
        check_interval_sec=1,
        timeout_sec=1,
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port=80,
            request_path="/",
        ))
    login = gcp.compute.RegionBackendService("login",
        region="us-central1",
        name="login",
        protocol="HTTP",
        load_balancing_scheme="INTERNAL_MANAGED",
        timeout_sec=10,
        health_checks=default.id)
    home = gcp.compute.RegionBackendService("home",
        region="us-central1",
        name="home",
        protocol="HTTP",
        load_balancing_scheme="INTERNAL_MANAGED",
        timeout_sec=10,
        health_checks=default.id)
    regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
        region="us-central1",
        name="regionurlmap",
        description="a description",
        default_service=home.id,
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["mysite.com"],
            path_matcher="allpaths",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="allpaths",
            default_service=home.id,
            path_rules=[
                gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
                    paths=["/home"],
                    service=home.id,
                ),
                gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
                    paths=["/login"],
                    service=login.id,
                ),
            ],
        )],
        tests=[gcp.compute.RegionUrlMapTestArgs(
            service=home.id,
            host="hi.com",
            path="/home",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Region:           pulumi.String("us-central1"),
    			Name:             pulumi.String("health-check"),
    			CheckIntervalSec: pulumi.Int(1),
    			TimeoutSec:       pulumi.Int(1),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				Port:        pulumi.Int(80),
    				RequestPath: pulumi.String("/"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		login, err := compute.NewRegionBackendService(ctx, "login", &compute.RegionBackendServiceArgs{
    			Region:              pulumi.String("us-central1"),
    			Name:                pulumi.String("login"),
    			Protocol:            pulumi.String("HTTP"),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		home, err := compute.NewRegionBackendService(ctx, "home", &compute.RegionBackendServiceArgs{
    			Region:              pulumi.String("us-central1"),
    			Name:                pulumi.String("home"),
    			Protocol:            pulumi.String("HTTP"),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionUrlMap(ctx, "regionurlmap", &compute.RegionUrlMapArgs{
    			Region:         pulumi.String("us-central1"),
    			Name:           pulumi.String("regionurlmap"),
    			Description:    pulumi.String("a description"),
    			DefaultService: home.ID(),
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("mysite.com"),
    					},
    					PathMatcher: pulumi.String("allpaths"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("allpaths"),
    					DefaultService: home.ID(),
    					PathRules: compute.RegionUrlMapPathMatcherPathRuleArray{
    						&compute.RegionUrlMapPathMatcherPathRuleArgs{
    							Paths: pulumi.StringArray{
    								pulumi.String("/home"),
    							},
    							Service: home.ID(),
    						},
    						&compute.RegionUrlMapPathMatcherPathRuleArgs{
    							Paths: pulumi.StringArray{
    								pulumi.String("/login"),
    							},
    							Service: login.ID(),
    						},
    					},
    				},
    			},
    			Tests: compute.RegionUrlMapTestArray{
    				&compute.RegionUrlMapTestArgs{
    					Service: home.ID(),
    					Host:    pulumi.String("hi.com"),
    					Path:    pulumi.String("/home"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Region = "us-central1",
            Name = "health-check",
            CheckIntervalSec = 1,
            TimeoutSec = 1,
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                Port = 80,
                RequestPath = "/",
            },
        });
    
        var login = new Gcp.Compute.RegionBackendService("login", new()
        {
            Region = "us-central1",
            Name = "login",
            Protocol = "HTTP",
            LoadBalancingScheme = "INTERNAL_MANAGED",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
        });
    
        var home = new Gcp.Compute.RegionBackendService("home", new()
        {
            Region = "us-central1",
            Name = "home",
            Protocol = "HTTP",
            LoadBalancingScheme = "INTERNAL_MANAGED",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
        });
    
        var regionurlmap = new Gcp.Compute.RegionUrlMap("regionurlmap", new()
        {
            Region = "us-central1",
            Name = "regionurlmap",
            Description = "a description",
            DefaultService = home.Id,
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "mysite.com",
                    },
                    PathMatcher = "allpaths",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "allpaths",
                    DefaultService = home.Id,
                    PathRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleArgs
                        {
                            Paths = new[]
                            {
                                "/home",
                            },
                            Service = home.Id,
                        },
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleArgs
                        {
                            Paths = new[]
                            {
                                "/login",
                            },
                            Service = login.Id,
                        },
                    },
                },
            },
            Tests = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapTestArgs
                {
                    Service = home.Id,
                    Host = "hi.com",
                    Path = "/home",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new RegionHealthCheck("default", RegionHealthCheckArgs.builder()        
                .region("us-central1")
                .name("health-check")
                .checkIntervalSec(1)
                .timeoutSec(1)
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .port(80)
                    .requestPath("/")
                    .build())
                .build());
    
            var login = new RegionBackendService("login", RegionBackendServiceArgs.builder()        
                .region("us-central1")
                .name("login")
                .protocol("HTTP")
                .loadBalancingScheme("INTERNAL_MANAGED")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .build());
    
            var home = new RegionBackendService("home", RegionBackendServiceArgs.builder()        
                .region("us-central1")
                .name("home")
                .protocol("HTTP")
                .loadBalancingScheme("INTERNAL_MANAGED")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .build());
    
            var regionurlmap = new RegionUrlMap("regionurlmap", RegionUrlMapArgs.builder()        
                .region("us-central1")
                .name("regionurlmap")
                .description("a description")
                .defaultService(home.id())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("mysite.com")
                    .pathMatcher("allpaths")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("allpaths")
                    .defaultService(home.id())
                    .pathRules(                
                        RegionUrlMapPathMatcherPathRuleArgs.builder()
                            .paths("/home")
                            .service(home.id())
                            .build(),
                        RegionUrlMapPathMatcherPathRuleArgs.builder()
                            .paths("/login")
                            .service(login.id())
                            .build())
                    .build())
                .tests(RegionUrlMapTestArgs.builder()
                    .service(home.id())
                    .host("hi.com")
                    .path("/home")
                    .build())
                .build());
    
        }
    }
    
    resources:
      regionurlmap:
        type: gcp:compute:RegionUrlMap
        properties:
          region: us-central1
          name: regionurlmap
          description: a description
          defaultService: ${home.id}
          hostRules:
            - hosts:
                - mysite.com
              pathMatcher: allpaths
          pathMatchers:
            - name: allpaths
              defaultService: ${home.id}
              pathRules:
                - paths:
                    - /home
                  service: ${home.id}
                - paths:
                    - /login
                  service: ${login.id}
          tests:
            - service: ${home.id}
              host: hi.com
              path: /home
      login:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-central1
          name: login
          protocol: HTTP
          loadBalancingScheme: INTERNAL_MANAGED
          timeoutSec: 10
          healthChecks: ${default.id}
      home:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-central1
          name: home
          protocol: HTTP
          loadBalancingScheme: INTERNAL_MANAGED
          timeoutSec: 10
          healthChecks: ${default.id}
      default:
        type: gcp:compute:RegionHealthCheck
        properties:
          region: us-central1
          name: health-check
          checkIntervalSec: 1
          timeoutSec: 1
          httpHealthCheck:
            port: 80
            requestPath: /
    

    Region Url Map Default Route Action

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.RegionHealthCheck("default", {
        region: "us-central1",
        name: "health-check",
        checkIntervalSec: 1,
        timeoutSec: 1,
        httpHealthCheck: {
            port: 80,
            requestPath: "/",
        },
    });
    const login = new gcp.compute.RegionBackendService("login", {
        region: "us-central1",
        name: "login",
        protocol: "HTTP",
        loadBalancingScheme: "INTERNAL_MANAGED",
        timeoutSec: 10,
        healthChecks: _default.id,
    });
    const home = new gcp.compute.RegionBackendService("home", {
        region: "us-central1",
        name: "home",
        protocol: "HTTP",
        loadBalancingScheme: "INTERNAL_MANAGED",
        timeoutSec: 10,
        healthChecks: _default.id,
    });
    const regionurlmap = new gcp.compute.RegionUrlMap("regionurlmap", {
        region: "us-central1",
        name: "regionurlmap",
        description: "a description",
        defaultRouteAction: {
            retryPolicy: {
                retryConditions: [
                    "5xx",
                    "gateway-error",
                ],
                numRetries: 3,
                perTryTimeout: {
                    seconds: "0",
                    nanos: 500,
                },
            },
            requestMirrorPolicy: {
                backendService: home.id,
            },
            weightedBackendServices: [
                {
                    backendService: login.id,
                    weight: 200,
                    headerAction: {
                        requestHeadersToAdds: [{
                            headerName: "foo-request-1",
                            headerValue: "bar",
                            replace: true,
                        }],
                        requestHeadersToRemoves: ["fizz"],
                        responseHeadersToAdds: [{
                            headerName: "foo-response-1",
                            headerValue: "bar",
                            replace: true,
                        }],
                        responseHeadersToRemoves: ["buzz"],
                    },
                },
                {
                    backendService: home.id,
                    weight: 100,
                    headerAction: {
                        requestHeadersToAdds: [
                            {
                                headerName: "foo-request-1",
                                headerValue: "bar",
                                replace: true,
                            },
                            {
                                headerName: "foo-request-2",
                                headerValue: "bar",
                                replace: true,
                            },
                        ],
                        requestHeadersToRemoves: ["fizz"],
                        responseHeadersToAdds: [
                            {
                                headerName: "foo-response-2",
                                headerValue: "bar",
                                replace: true,
                            },
                            {
                                headerName: "foo-response-1",
                                headerValue: "bar",
                                replace: true,
                            },
                        ],
                        responseHeadersToRemoves: ["buzz"],
                    },
                },
            ],
            urlRewrite: {
                hostRewrite: "dev.example.com",
                pathPrefixRewrite: "/v1/api/",
            },
            corsPolicy: {
                disabled: false,
                allowCredentials: true,
                allowHeaders: ["foobar"],
                allowMethods: [
                    "GET",
                    "POST",
                ],
                allowOrigins: ["example.com"],
                exposeHeaders: ["foobar"],
                maxAge: 60,
            },
            faultInjectionPolicy: {
                delay: {
                    fixedDelay: {
                        seconds: "0",
                        nanos: 500,
                    },
                    percentage: 0.5,
                },
                abort: {
                    httpStatus: 500,
                    percentage: 0.5,
                },
            },
            timeout: {
                seconds: "0",
                nanos: 500,
            },
        },
        hostRules: [{
            hosts: ["mysite.com"],
            pathMatcher: "allpaths",
        }],
        pathMatchers: [{
            name: "allpaths",
            defaultService: home.id,
            pathRules: [
                {
                    paths: ["/home"],
                    service: home.id,
                },
                {
                    paths: ["/login"],
                    service: login.id,
                },
            ],
        }],
        tests: [{
            service: home.id,
            host: "hi.com",
            path: "/home",
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.RegionHealthCheck("default",
        region="us-central1",
        name="health-check",
        check_interval_sec=1,
        timeout_sec=1,
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port=80,
            request_path="/",
        ))
    login = gcp.compute.RegionBackendService("login",
        region="us-central1",
        name="login",
        protocol="HTTP",
        load_balancing_scheme="INTERNAL_MANAGED",
        timeout_sec=10,
        health_checks=default.id)
    home = gcp.compute.RegionBackendService("home",
        region="us-central1",
        name="home",
        protocol="HTTP",
        load_balancing_scheme="INTERNAL_MANAGED",
        timeout_sec=10,
        health_checks=default.id)
    regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
        region="us-central1",
        name="regionurlmap",
        description="a description",
        default_route_action=gcp.compute.RegionUrlMapDefaultRouteActionArgs(
            retry_policy=gcp.compute.RegionUrlMapDefaultRouteActionRetryPolicyArgs(
                retry_conditions=[
                    "5xx",
                    "gateway-error",
                ],
                num_retries=3,
                per_try_timeout=gcp.compute.RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeoutArgs(
                    seconds="0",
                    nanos=500,
                ),
            ),
            request_mirror_policy=gcp.compute.RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs(
                backend_service=home.id,
            ),
            weighted_backend_services=[
                gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs(
                    backend_service=login.id,
                    weight=200,
                    header_action=gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs(
                        request_headers_to_adds=[gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs(
                            header_name="foo-request-1",
                            header_value="bar",
                            replace=True,
                        )],
                        request_headers_to_removes=["fizz"],
                        response_headers_to_adds=[gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs(
                            header_name="foo-response-1",
                            header_value="bar",
                            replace=True,
                        )],
                        response_headers_to_removes=["buzz"],
                    ),
                ),
                gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs(
                    backend_service=home.id,
                    weight=100,
                    header_action=gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs(
                        request_headers_to_adds=[
                            gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs(
                                header_name="foo-request-1",
                                header_value="bar",
                                replace=True,
                            ),
                            gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs(
                                header_name="foo-request-2",
                                header_value="bar",
                                replace=True,
                            ),
                        ],
                        request_headers_to_removes=["fizz"],
                        response_headers_to_adds=[
                            gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs(
                                header_name="foo-response-2",
                                header_value="bar",
                                replace=True,
                            ),
                            gcp.compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs(
                                header_name="foo-response-1",
                                header_value="bar",
                                replace=True,
                            ),
                        ],
                        response_headers_to_removes=["buzz"],
                    ),
                ),
            ],
            url_rewrite=gcp.compute.RegionUrlMapDefaultRouteActionUrlRewriteArgs(
                host_rewrite="dev.example.com",
                path_prefix_rewrite="/v1/api/",
            ),
            cors_policy=gcp.compute.RegionUrlMapDefaultRouteActionCorsPolicyArgs(
                disabled=False,
                allow_credentials=True,
                allow_headers=["foobar"],
                allow_methods=[
                    "GET",
                    "POST",
                ],
                allow_origins=["example.com"],
                expose_headers=["foobar"],
                max_age=60,
            ),
            fault_injection_policy=gcp.compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyArgs(
                delay=gcp.compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs(
                    fixed_delay=gcp.compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs(
                        seconds="0",
                        nanos=500,
                    ),
                    percentage=0.5,
                ),
                abort=gcp.compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbortArgs(
                    http_status=500,
                    percentage=0.5,
                ),
            ),
            timeout=gcp.compute.RegionUrlMapDefaultRouteActionTimeoutArgs(
                seconds="0",
                nanos=500,
            ),
        ),
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["mysite.com"],
            path_matcher="allpaths",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="allpaths",
            default_service=home.id,
            path_rules=[
                gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
                    paths=["/home"],
                    service=home.id,
                ),
                gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
                    paths=["/login"],
                    service=login.id,
                ),
            ],
        )],
        tests=[gcp.compute.RegionUrlMapTestArgs(
            service=home.id,
            host="hi.com",
            path="/home",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Region:           pulumi.String("us-central1"),
    			Name:             pulumi.String("health-check"),
    			CheckIntervalSec: pulumi.Int(1),
    			TimeoutSec:       pulumi.Int(1),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				Port:        pulumi.Int(80),
    				RequestPath: pulumi.String("/"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		login, err := compute.NewRegionBackendService(ctx, "login", &compute.RegionBackendServiceArgs{
    			Region:              pulumi.String("us-central1"),
    			Name:                pulumi.String("login"),
    			Protocol:            pulumi.String("HTTP"),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		home, err := compute.NewRegionBackendService(ctx, "home", &compute.RegionBackendServiceArgs{
    			Region:              pulumi.String("us-central1"),
    			Name:                pulumi.String("home"),
    			Protocol:            pulumi.String("HTTP"),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionUrlMap(ctx, "regionurlmap", &compute.RegionUrlMapArgs{
    			Region:      pulumi.String("us-central1"),
    			Name:        pulumi.String("regionurlmap"),
    			Description: pulumi.String("a description"),
    			DefaultRouteAction: &compute.RegionUrlMapDefaultRouteActionArgs{
    				RetryPolicy: &compute.RegionUrlMapDefaultRouteActionRetryPolicyArgs{
    					RetryConditions: pulumi.StringArray{
    						pulumi.String("5xx"),
    						pulumi.String("gateway-error"),
    					},
    					NumRetries: pulumi.Int(3),
    					PerTryTimeout: &compute.RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeoutArgs{
    						Seconds: pulumi.String("0"),
    						Nanos:   pulumi.Int(500),
    					},
    				},
    				RequestMirrorPolicy: &compute.RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs{
    					BackendService: home.ID(),
    				},
    				WeightedBackendServices: compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceArray{
    					&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs{
    						BackendService: login.ID(),
    						Weight:         pulumi.Int(200),
    						HeaderAction: &compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs{
    							RequestHeadersToAdds: compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArray{
    								&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs{
    									HeaderName:  pulumi.String("foo-request-1"),
    									HeaderValue: pulumi.String("bar"),
    									Replace:     pulumi.Bool(true),
    								},
    							},
    							RequestHeadersToRemoves: pulumi.StringArray{
    								pulumi.String("fizz"),
    							},
    							ResponseHeadersToAdds: compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArray{
    								&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs{
    									HeaderName:  pulumi.String("foo-response-1"),
    									HeaderValue: pulumi.String("bar"),
    									Replace:     pulumi.Bool(true),
    								},
    							},
    							ResponseHeadersToRemoves: pulumi.StringArray{
    								pulumi.String("buzz"),
    							},
    						},
    					},
    					&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs{
    						BackendService: home.ID(),
    						Weight:         pulumi.Int(100),
    						HeaderAction: &compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs{
    							RequestHeadersToAdds: compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArray{
    								&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs{
    									HeaderName:  pulumi.String("foo-request-1"),
    									HeaderValue: pulumi.String("bar"),
    									Replace:     pulumi.Bool(true),
    								},
    								&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs{
    									HeaderName:  pulumi.String("foo-request-2"),
    									HeaderValue: pulumi.String("bar"),
    									Replace:     pulumi.Bool(true),
    								},
    							},
    							RequestHeadersToRemoves: pulumi.StringArray{
    								pulumi.String("fizz"),
    							},
    							ResponseHeadersToAdds: compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArray{
    								&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs{
    									HeaderName:  pulumi.String("foo-response-2"),
    									HeaderValue: pulumi.String("bar"),
    									Replace:     pulumi.Bool(true),
    								},
    								&compute.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs{
    									HeaderName:  pulumi.String("foo-response-1"),
    									HeaderValue: pulumi.String("bar"),
    									Replace:     pulumi.Bool(true),
    								},
    							},
    							ResponseHeadersToRemoves: pulumi.StringArray{
    								pulumi.String("buzz"),
    							},
    						},
    					},
    				},
    				UrlRewrite: &compute.RegionUrlMapDefaultRouteActionUrlRewriteArgs{
    					HostRewrite:       pulumi.String("dev.example.com"),
    					PathPrefixRewrite: pulumi.String("/v1/api/"),
    				},
    				CorsPolicy: &compute.RegionUrlMapDefaultRouteActionCorsPolicyArgs{
    					Disabled:         pulumi.Bool(false),
    					AllowCredentials: pulumi.Bool(true),
    					AllowHeaders: pulumi.StringArray{
    						pulumi.String("foobar"),
    					},
    					AllowMethods: pulumi.StringArray{
    						pulumi.String("GET"),
    						pulumi.String("POST"),
    					},
    					AllowOrigins: pulumi.StringArray{
    						pulumi.String("example.com"),
    					},
    					ExposeHeaders: pulumi.StringArray{
    						pulumi.String("foobar"),
    					},
    					MaxAge: pulumi.Int(60),
    				},
    				FaultInjectionPolicy: &compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyArgs{
    					Delay: &compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs{
    						FixedDelay: &compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs{
    							Seconds: pulumi.String("0"),
    							Nanos:   pulumi.Int(500),
    						},
    						Percentage: pulumi.Float64(0.5),
    					},
    					Abort: &compute.RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbortArgs{
    						HttpStatus: pulumi.Int(500),
    						Percentage: pulumi.Float64(0.5),
    					},
    				},
    				Timeout: &compute.RegionUrlMapDefaultRouteActionTimeoutArgs{
    					Seconds: pulumi.String("0"),
    					Nanos:   pulumi.Int(500),
    				},
    			},
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("mysite.com"),
    					},
    					PathMatcher: pulumi.String("allpaths"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("allpaths"),
    					DefaultService: home.ID(),
    					PathRules: compute.RegionUrlMapPathMatcherPathRuleArray{
    						&compute.RegionUrlMapPathMatcherPathRuleArgs{
    							Paths: pulumi.StringArray{
    								pulumi.String("/home"),
    							},
    							Service: home.ID(),
    						},
    						&compute.RegionUrlMapPathMatcherPathRuleArgs{
    							Paths: pulumi.StringArray{
    								pulumi.String("/login"),
    							},
    							Service: login.ID(),
    						},
    					},
    				},
    			},
    			Tests: compute.RegionUrlMapTestArray{
    				&compute.RegionUrlMapTestArgs{
    					Service: home.ID(),
    					Host:    pulumi.String("hi.com"),
    					Path:    pulumi.String("/home"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Region = "us-central1",
            Name = "health-check",
            CheckIntervalSec = 1,
            TimeoutSec = 1,
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                Port = 80,
                RequestPath = "/",
            },
        });
    
        var login = new Gcp.Compute.RegionBackendService("login", new()
        {
            Region = "us-central1",
            Name = "login",
            Protocol = "HTTP",
            LoadBalancingScheme = "INTERNAL_MANAGED",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
        });
    
        var home = new Gcp.Compute.RegionBackendService("home", new()
        {
            Region = "us-central1",
            Name = "home",
            Protocol = "HTTP",
            LoadBalancingScheme = "INTERNAL_MANAGED",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
        });
    
        var regionurlmap = new Gcp.Compute.RegionUrlMap("regionurlmap", new()
        {
            Region = "us-central1",
            Name = "regionurlmap",
            Description = "a description",
            DefaultRouteAction = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionArgs
            {
                RetryPolicy = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionRetryPolicyArgs
                {
                    RetryConditions = new[]
                    {
                        "5xx",
                        "gateway-error",
                    },
                    NumRetries = 3,
                    PerTryTimeout = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeoutArgs
                    {
                        Seconds = "0",
                        Nanos = 500,
                    },
                },
                RequestMirrorPolicy = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs
                {
                    BackendService = home.Id,
                },
                WeightedBackendServices = new[]
                {
                    new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs
                    {
                        BackendService = login.Id,
                        Weight = 200,
                        HeaderAction = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs
                        {
                            RequestHeadersToAdds = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs
                                {
                                    HeaderName = "foo-request-1",
                                    HeaderValue = "bar",
                                    Replace = true,
                                },
                            },
                            RequestHeadersToRemoves = new[]
                            {
                                "fizz",
                            },
                            ResponseHeadersToAdds = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs
                                {
                                    HeaderName = "foo-response-1",
                                    HeaderValue = "bar",
                                    Replace = true,
                                },
                            },
                            ResponseHeadersToRemoves = new[]
                            {
                                "buzz",
                            },
                        },
                    },
                    new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs
                    {
                        BackendService = home.Id,
                        Weight = 100,
                        HeaderAction = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs
                        {
                            RequestHeadersToAdds = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs
                                {
                                    HeaderName = "foo-request-1",
                                    HeaderValue = "bar",
                                    Replace = true,
                                },
                                new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs
                                {
                                    HeaderName = "foo-request-2",
                                    HeaderValue = "bar",
                                    Replace = true,
                                },
                            },
                            RequestHeadersToRemoves = new[]
                            {
                                "fizz",
                            },
                            ResponseHeadersToAdds = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs
                                {
                                    HeaderName = "foo-response-2",
                                    HeaderValue = "bar",
                                    Replace = true,
                                },
                                new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs
                                {
                                    HeaderName = "foo-response-1",
                                    HeaderValue = "bar",
                                    Replace = true,
                                },
                            },
                            ResponseHeadersToRemoves = new[]
                            {
                                "buzz",
                            },
                        },
                    },
                },
                UrlRewrite = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionUrlRewriteArgs
                {
                    HostRewrite = "dev.example.com",
                    PathPrefixRewrite = "/v1/api/",
                },
                CorsPolicy = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionCorsPolicyArgs
                {
                    Disabled = false,
                    AllowCredentials = true,
                    AllowHeaders = new[]
                    {
                        "foobar",
                    },
                    AllowMethods = new[]
                    {
                        "GET",
                        "POST",
                    },
                    AllowOrigins = new[]
                    {
                        "example.com",
                    },
                    ExposeHeaders = new[]
                    {
                        "foobar",
                    },
                    MaxAge = 60,
                },
                FaultInjectionPolicy = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyArgs
                {
                    Delay = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs
                    {
                        FixedDelay = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs
                        {
                            Seconds = "0",
                            Nanos = 500,
                        },
                        Percentage = 0.5,
                    },
                    Abort = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbortArgs
                    {
                        HttpStatus = 500,
                        Percentage = 0.5,
                    },
                },
                Timeout = new Gcp.Compute.Inputs.RegionUrlMapDefaultRouteActionTimeoutArgs
                {
                    Seconds = "0",
                    Nanos = 500,
                },
            },
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "mysite.com",
                    },
                    PathMatcher = "allpaths",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "allpaths",
                    DefaultService = home.Id,
                    PathRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleArgs
                        {
                            Paths = new[]
                            {
                                "/home",
                            },
                            Service = home.Id,
                        },
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleArgs
                        {
                            Paths = new[]
                            {
                                "/login",
                            },
                            Service = login.Id,
                        },
                    },
                },
            },
            Tests = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapTestArgs
                {
                    Service = home.Id,
                    Host = "hi.com",
                    Path = "/home",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionRetryPolicyArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeoutArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionUrlRewriteArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionCorsPolicyArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbortArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionTimeoutArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new RegionHealthCheck("default", RegionHealthCheckArgs.builder()        
                .region("us-central1")
                .name("health-check")
                .checkIntervalSec(1)
                .timeoutSec(1)
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .port(80)
                    .requestPath("/")
                    .build())
                .build());
    
            var login = new RegionBackendService("login", RegionBackendServiceArgs.builder()        
                .region("us-central1")
                .name("login")
                .protocol("HTTP")
                .loadBalancingScheme("INTERNAL_MANAGED")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .build());
    
            var home = new RegionBackendService("home", RegionBackendServiceArgs.builder()        
                .region("us-central1")
                .name("home")
                .protocol("HTTP")
                .loadBalancingScheme("INTERNAL_MANAGED")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .build());
    
            var regionurlmap = new RegionUrlMap("regionurlmap", RegionUrlMapArgs.builder()        
                .region("us-central1")
                .name("regionurlmap")
                .description("a description")
                .defaultRouteAction(RegionUrlMapDefaultRouteActionArgs.builder()
                    .retryPolicy(RegionUrlMapDefaultRouteActionRetryPolicyArgs.builder()
                        .retryConditions(                    
                            "5xx",
                            "gateway-error")
                        .numRetries(3)
                        .perTryTimeout(RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeoutArgs.builder()
                            .seconds(0)
                            .nanos(500)
                            .build())
                        .build())
                    .requestMirrorPolicy(RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs.builder()
                        .backendService(home.id())
                        .build())
                    .weightedBackendServices(                
                        RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs.builder()
                            .backendService(login.id())
                            .weight(200)
                            .headerAction(RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs.builder()
                                .requestHeadersToAdds(RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs.builder()
                                    .headerName("foo-request-1")
                                    .headerValue("bar")
                                    .replace(true)
                                    .build())
                                .requestHeadersToRemoves("fizz")
                                .responseHeadersToAdds(RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs.builder()
                                    .headerName("foo-response-1")
                                    .headerValue("bar")
                                    .replace(true)
                                    .build())
                                .responseHeadersToRemoves("buzz")
                                .build())
                            .build(),
                        RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs.builder()
                            .backendService(home.id())
                            .weight(100)
                            .headerAction(RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs.builder()
                                .requestHeadersToAdds(                            
                                    RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs.builder()
                                        .headerName("foo-request-1")
                                        .headerValue("bar")
                                        .replace(true)
                                        .build(),
                                    RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs.builder()
                                        .headerName("foo-request-2")
                                        .headerValue("bar")
                                        .replace(true)
                                        .build())
                                .requestHeadersToRemoves("fizz")
                                .responseHeadersToAdds(                            
                                    RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs.builder()
                                        .headerName("foo-response-2")
                                        .headerValue("bar")
                                        .replace(true)
                                        .build(),
                                    RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs.builder()
                                        .headerName("foo-response-1")
                                        .headerValue("bar")
                                        .replace(true)
                                        .build())
                                .responseHeadersToRemoves("buzz")
                                .build())
                            .build())
                    .urlRewrite(RegionUrlMapDefaultRouteActionUrlRewriteArgs.builder()
                        .hostRewrite("dev.example.com")
                        .pathPrefixRewrite("/v1/api/")
                        .build())
                    .corsPolicy(RegionUrlMapDefaultRouteActionCorsPolicyArgs.builder()
                        .disabled(false)
                        .allowCredentials(true)
                        .allowHeaders("foobar")
                        .allowMethods(                    
                            "GET",
                            "POST")
                        .allowOrigins("example.com")
                        .exposeHeaders("foobar")
                        .maxAge(60)
                        .build())
                    .faultInjectionPolicy(RegionUrlMapDefaultRouteActionFaultInjectionPolicyArgs.builder()
                        .delay(RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs.builder()
                            .fixedDelay(RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs.builder()
                                .seconds(0)
                                .nanos(500)
                                .build())
                            .percentage(0.5)
                            .build())
                        .abort(RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbortArgs.builder()
                            .httpStatus(500)
                            .percentage(0.5)
                            .build())
                        .build())
                    .timeout(RegionUrlMapDefaultRouteActionTimeoutArgs.builder()
                        .seconds(0)
                        .nanos(500)
                        .build())
                    .build())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("mysite.com")
                    .pathMatcher("allpaths")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("allpaths")
                    .defaultService(home.id())
                    .pathRules(                
                        RegionUrlMapPathMatcherPathRuleArgs.builder()
                            .paths("/home")
                            .service(home.id())
                            .build(),
                        RegionUrlMapPathMatcherPathRuleArgs.builder()
                            .paths("/login")
                            .service(login.id())
                            .build())
                    .build())
                .tests(RegionUrlMapTestArgs.builder()
                    .service(home.id())
                    .host("hi.com")
                    .path("/home")
                    .build())
                .build());
    
        }
    }
    
    resources:
      regionurlmap:
        type: gcp:compute:RegionUrlMap
        properties:
          region: us-central1
          name: regionurlmap
          description: a description
          defaultRouteAction:
            retryPolicy:
              retryConditions:
                - 5xx
                - gateway-error
              numRetries: 3
              perTryTimeout:
                seconds: 0
                nanos: 500
            requestMirrorPolicy:
              backendService: ${home.id}
            weightedBackendServices:
              - backendService: ${login.id}
                weight: 200
                headerAction:
                  requestHeadersToAdds:
                    - headerName: foo-request-1
                      headerValue: bar
                      replace: true
                  requestHeadersToRemoves:
                    - fizz
                  responseHeadersToAdds:
                    - headerName: foo-response-1
                      headerValue: bar
                      replace: true
                  responseHeadersToRemoves:
                    - buzz
              - backendService: ${home.id}
                weight: 100
                headerAction:
                  requestHeadersToAdds:
                    - headerName: foo-request-1
                      headerValue: bar
                      replace: true
                    - headerName: foo-request-2
                      headerValue: bar
                      replace: true
                  requestHeadersToRemoves:
                    - fizz
                  responseHeadersToAdds:
                    - headerName: foo-response-2
                      headerValue: bar
                      replace: true
                    - headerName: foo-response-1
                      headerValue: bar
                      replace: true
                  responseHeadersToRemoves:
                    - buzz
            urlRewrite:
              hostRewrite: dev.example.com
              pathPrefixRewrite: /v1/api/
            corsPolicy:
              disabled: false
              allowCredentials: true
              allowHeaders:
                - foobar
              allowMethods:
                - GET
                - POST
              allowOrigins:
                - example.com
              exposeHeaders:
                - foobar
              maxAge: 60
            faultInjectionPolicy:
              delay:
                fixedDelay:
                  seconds: 0
                  nanos: 500
                percentage: 0.5
              abort:
                httpStatus: 500
                percentage: 0.5
            timeout:
              seconds: 0
              nanos: 500
          hostRules:
            - hosts:
                - mysite.com
              pathMatcher: allpaths
          pathMatchers:
            - name: allpaths
              defaultService: ${home.id}
              pathRules:
                - paths:
                    - /home
                  service: ${home.id}
                - paths:
                    - /login
                  service: ${login.id}
          tests:
            - service: ${home.id}
              host: hi.com
              path: /home
      login:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-central1
          name: login
          protocol: HTTP
          loadBalancingScheme: INTERNAL_MANAGED
          timeoutSec: 10
          healthChecks: ${default.id}
      home:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-central1
          name: home
          protocol: HTTP
          loadBalancingScheme: INTERNAL_MANAGED
          timeoutSec: 10
          healthChecks: ${default.id}
      default:
        type: gcp:compute:RegionHealthCheck
        properties:
          region: us-central1
          name: health-check
          checkIntervalSec: 1
          timeoutSec: 1
          httpHealthCheck:
            port: 80
            requestPath: /
    

    Region Url Map L7 Ilb Path

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.RegionHealthCheck("default", {
        name: "health-check",
        httpHealthCheck: {
            port: 80,
        },
    });
    const home = new gcp.compute.RegionBackendService("home", {
        name: "home",
        protocol: "HTTP",
        timeoutSec: 10,
        healthChecks: _default.id,
        loadBalancingScheme: "INTERNAL_MANAGED",
    });
    const regionurlmap = new gcp.compute.RegionUrlMap("regionurlmap", {
        name: "regionurlmap",
        description: "a description",
        defaultService: home.id,
        hostRules: [{
            hosts: ["mysite.com"],
            pathMatcher: "allpaths",
        }],
        pathMatchers: [{
            name: "allpaths",
            defaultService: home.id,
            pathRules: [{
                paths: ["/home"],
                routeAction: {
                    corsPolicy: {
                        allowCredentials: true,
                        allowHeaders: ["Allowed content"],
                        allowMethods: ["GET"],
                        allowOrigins: ["Allowed origin"],
                        exposeHeaders: ["Exposed header"],
                        maxAge: 30,
                        disabled: false,
                    },
                    faultInjectionPolicy: {
                        abort: {
                            httpStatus: 234,
                            percentage: 5.6,
                        },
                        delay: {
                            fixedDelay: {
                                seconds: "0",
                                nanos: 50000,
                            },
                            percentage: 7.8,
                        },
                    },
                    requestMirrorPolicy: {
                        backendService: home.id,
                    },
                    retryPolicy: {
                        numRetries: 4,
                        perTryTimeout: {
                            seconds: "30",
                        },
                        retryConditions: [
                            "5xx",
                            "deadline-exceeded",
                        ],
                    },
                    timeout: {
                        seconds: "20",
                        nanos: 750000000,
                    },
                    urlRewrite: {
                        hostRewrite: "dev.example.com",
                        pathPrefixRewrite: "/v1/api/",
                    },
                    weightedBackendServices: [{
                        backendService: home.id,
                        weight: 400,
                        headerAction: {
                            requestHeadersToRemoves: ["RemoveMe"],
                            requestHeadersToAdds: [{
                                headerName: "AddMe",
                                headerValue: "MyValue",
                                replace: true,
                            }],
                            responseHeadersToRemoves: ["RemoveMe"],
                            responseHeadersToAdds: [{
                                headerName: "AddMe",
                                headerValue: "MyValue",
                                replace: false,
                            }],
                        },
                    }],
                },
            }],
        }],
        tests: [{
            service: home.id,
            host: "hi.com",
            path: "/home",
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.RegionHealthCheck("default",
        name="health-check",
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port=80,
        ))
    home = gcp.compute.RegionBackendService("home",
        name="home",
        protocol="HTTP",
        timeout_sec=10,
        health_checks=default.id,
        load_balancing_scheme="INTERNAL_MANAGED")
    regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
        name="regionurlmap",
        description="a description",
        default_service=home.id,
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["mysite.com"],
            path_matcher="allpaths",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="allpaths",
            default_service=home.id,
            path_rules=[gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
                paths=["/home"],
                route_action=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionArgs(
                    cors_policy=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicyArgs(
                        allow_credentials=True,
                        allow_headers=["Allowed content"],
                        allow_methods=["GET"],
                        allow_origins=["Allowed origin"],
                        expose_headers=["Exposed header"],
                        max_age=30,
                        disabled=False,
                    ),
                    fault_injection_policy=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyArgs(
                        abort=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs(
                            http_status=234,
                            percentage=5.6,
                        ),
                        delay=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs(
                            fixed_delay=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs(
                                seconds="0",
                                nanos=50000,
                            ),
                            percentage=7.8,
                        ),
                    ),
                    request_mirror_policy=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicyArgs(
                        backend_service=home.id,
                    ),
                    retry_policy=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs(
                        num_retries=4,
                        per_try_timeout=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs(
                            seconds="30",
                        ),
                        retry_conditions=[
                            "5xx",
                            "deadline-exceeded",
                        ],
                    ),
                    timeout=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs(
                        seconds="20",
                        nanos=750000000,
                    ),
                    url_rewrite=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs(
                        host_rewrite="dev.example.com",
                        path_prefix_rewrite="/v1/api/",
                    ),
                    weighted_backend_services=[gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs(
                        backend_service=home.id,
                        weight=400,
                        header_action=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs(
                            request_headers_to_removes=["RemoveMe"],
                            request_headers_to_adds=[gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs(
                                header_name="AddMe",
                                header_value="MyValue",
                                replace=True,
                            )],
                            response_headers_to_removes=["RemoveMe"],
                            response_headers_to_adds=[gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs(
                                header_name="AddMe",
                                header_value="MyValue",
                                replace=False,
                            )],
                        ),
                    )],
                ),
            )],
        )],
        tests=[gcp.compute.RegionUrlMapTestArgs(
            service=home.id,
            host="hi.com",
            path="/home",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Name: pulumi.String("health-check"),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				Port: pulumi.Int(80),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		home, err := compute.NewRegionBackendService(ctx, "home", &compute.RegionBackendServiceArgs{
    			Name:                pulumi.String("home"),
    			Protocol:            pulumi.String("HTTP"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionUrlMap(ctx, "regionurlmap", &compute.RegionUrlMapArgs{
    			Name:           pulumi.String("regionurlmap"),
    			Description:    pulumi.String("a description"),
    			DefaultService: home.ID(),
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("mysite.com"),
    					},
    					PathMatcher: pulumi.String("allpaths"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("allpaths"),
    					DefaultService: home.ID(),
    					PathRules: compute.RegionUrlMapPathMatcherPathRuleArray{
    						&compute.RegionUrlMapPathMatcherPathRuleArgs{
    							Paths: pulumi.StringArray{
    								pulumi.String("/home"),
    							},
    							RouteAction: &compute.RegionUrlMapPathMatcherPathRuleRouteActionArgs{
    								CorsPolicy: &compute.RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicyArgs{
    									AllowCredentials: pulumi.Bool(true),
    									AllowHeaders: pulumi.StringArray{
    										pulumi.String("Allowed content"),
    									},
    									AllowMethods: pulumi.StringArray{
    										pulumi.String("GET"),
    									},
    									AllowOrigins: pulumi.StringArray{
    										pulumi.String("Allowed origin"),
    									},
    									ExposeHeaders: pulumi.StringArray{
    										pulumi.String("Exposed header"),
    									},
    									MaxAge:   pulumi.Int(30),
    									Disabled: pulumi.Bool(false),
    								},
    								FaultInjectionPolicy: &compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyArgs{
    									Abort: &compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs{
    										HttpStatus: pulumi.Int(234),
    										Percentage: pulumi.Float64(5.6),
    									},
    									Delay: &compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs{
    										FixedDelay: &compute.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs{
    											Seconds: pulumi.String("0"),
    											Nanos:   pulumi.Int(50000),
    										},
    										Percentage: pulumi.Float64(7.8),
    									},
    								},
    								RequestMirrorPolicy: &compute.RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicyArgs{
    									BackendService: home.ID(),
    								},
    								RetryPolicy: &compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs{
    									NumRetries: pulumi.Int(4),
    									PerTryTimeout: &compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs{
    										Seconds: pulumi.String("30"),
    									},
    									RetryConditions: pulumi.StringArray{
    										pulumi.String("5xx"),
    										pulumi.String("deadline-exceeded"),
    									},
    								},
    								Timeout: &compute.RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs{
    									Seconds: pulumi.String("20"),
    									Nanos:   pulumi.Int(750000000),
    								},
    								UrlRewrite: &compute.RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs{
    									HostRewrite:       pulumi.String("dev.example.com"),
    									PathPrefixRewrite: pulumi.String("/v1/api/"),
    								},
    								WeightedBackendServices: compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArray{
    									&compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs{
    										BackendService: home.ID(),
    										Weight:         pulumi.Int(400),
    										HeaderAction: &compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs{
    											RequestHeadersToRemoves: pulumi.StringArray{
    												pulumi.String("RemoveMe"),
    											},
    											RequestHeadersToAdds: compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArray{
    												&compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs{
    													HeaderName:  pulumi.String("AddMe"),
    													HeaderValue: pulumi.String("MyValue"),
    													Replace:     pulumi.Bool(true),
    												},
    											},
    											ResponseHeadersToRemoves: pulumi.StringArray{
    												pulumi.String("RemoveMe"),
    											},
    											ResponseHeadersToAdds: compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArray{
    												&compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs{
    													HeaderName:  pulumi.String("AddMe"),
    													HeaderValue: pulumi.String("MyValue"),
    													Replace:     pulumi.Bool(false),
    												},
    											},
    										},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    			Tests: compute.RegionUrlMapTestArray{
    				&compute.RegionUrlMapTestArgs{
    					Service: home.ID(),
    					Host:    pulumi.String("hi.com"),
    					Path:    pulumi.String("/home"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Name = "health-check",
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                Port = 80,
            },
        });
    
        var home = new Gcp.Compute.RegionBackendService("home", new()
        {
            Name = "home",
            Protocol = "HTTP",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
            LoadBalancingScheme = "INTERNAL_MANAGED",
        });
    
        var regionurlmap = new Gcp.Compute.RegionUrlMap("regionurlmap", new()
        {
            Name = "regionurlmap",
            Description = "a description",
            DefaultService = home.Id,
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "mysite.com",
                    },
                    PathMatcher = "allpaths",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "allpaths",
                    DefaultService = home.Id,
                    PathRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleArgs
                        {
                            Paths = new[]
                            {
                                "/home",
                            },
                            RouteAction = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionArgs
                            {
                                CorsPolicy = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicyArgs
                                {
                                    AllowCredentials = true,
                                    AllowHeaders = new[]
                                    {
                                        "Allowed content",
                                    },
                                    AllowMethods = new[]
                                    {
                                        "GET",
                                    },
                                    AllowOrigins = new[]
                                    {
                                        "Allowed origin",
                                    },
                                    ExposeHeaders = new[]
                                    {
                                        "Exposed header",
                                    },
                                    MaxAge = 30,
                                    Disabled = false,
                                },
                                FaultInjectionPolicy = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyArgs
                                {
                                    Abort = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs
                                    {
                                        HttpStatus = 234,
                                        Percentage = 5.6,
                                    },
                                    Delay = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs
                                    {
                                        FixedDelay = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs
                                        {
                                            Seconds = "0",
                                            Nanos = 50000,
                                        },
                                        Percentage = 7.8,
                                    },
                                },
                                RequestMirrorPolicy = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicyArgs
                                {
                                    BackendService = home.Id,
                                },
                                RetryPolicy = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs
                                {
                                    NumRetries = 4,
                                    PerTryTimeout = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs
                                    {
                                        Seconds = "30",
                                    },
                                    RetryConditions = new[]
                                    {
                                        "5xx",
                                        "deadline-exceeded",
                                    },
                                },
                                Timeout = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs
                                {
                                    Seconds = "20",
                                    Nanos = 750000000,
                                },
                                UrlRewrite = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs
                                {
                                    HostRewrite = "dev.example.com",
                                    PathPrefixRewrite = "/v1/api/",
                                },
                                WeightedBackendServices = new[]
                                {
                                    new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs
                                    {
                                        BackendService = home.Id,
                                        Weight = 400,
                                        HeaderAction = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs
                                        {
                                            RequestHeadersToRemoves = new[]
                                            {
                                                "RemoveMe",
                                            },
                                            RequestHeadersToAdds = new[]
                                            {
                                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs
                                                {
                                                    HeaderName = "AddMe",
                                                    HeaderValue = "MyValue",
                                                    Replace = true,
                                                },
                                            },
                                            ResponseHeadersToRemoves = new[]
                                            {
                                                "RemoveMe",
                                            },
                                            ResponseHeadersToAdds = new[]
                                            {
                                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs
                                                {
                                                    HeaderName = "AddMe",
                                                    HeaderValue = "MyValue",
                                                    Replace = false,
                                                },
                                            },
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
            Tests = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapTestArgs
                {
                    Service = home.Id,
                    Host = "hi.com",
                    Path = "/home",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new RegionHealthCheck("default", RegionHealthCheckArgs.builder()        
                .name("health-check")
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .port(80)
                    .build())
                .build());
    
            var home = new RegionBackendService("home", RegionBackendServiceArgs.builder()        
                .name("home")
                .protocol("HTTP")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .loadBalancingScheme("INTERNAL_MANAGED")
                .build());
    
            var regionurlmap = new RegionUrlMap("regionurlmap", RegionUrlMapArgs.builder()        
                .name("regionurlmap")
                .description("a description")
                .defaultService(home.id())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("mysite.com")
                    .pathMatcher("allpaths")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("allpaths")
                    .defaultService(home.id())
                    .pathRules(RegionUrlMapPathMatcherPathRuleArgs.builder()
                        .paths("/home")
                        .routeAction(RegionUrlMapPathMatcherPathRuleRouteActionArgs.builder()
                            .corsPolicy(RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicyArgs.builder()
                                .allowCredentials(true)
                                .allowHeaders("Allowed content")
                                .allowMethods("GET")
                                .allowOrigins("Allowed origin")
                                .exposeHeaders("Exposed header")
                                .maxAge(30)
                                .disabled(false)
                                .build())
                            .faultInjectionPolicy(RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyArgs.builder()
                                .abort(RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs.builder()
                                    .httpStatus(234)
                                    .percentage(5.6)
                                    .build())
                                .delay(RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs.builder()
                                    .fixedDelay(RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs.builder()
                                        .seconds(0)
                                        .nanos(50000)
                                        .build())
                                    .percentage(7.8)
                                    .build())
                                .build())
                            .requestMirrorPolicy(RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicyArgs.builder()
                                .backendService(home.id())
                                .build())
                            .retryPolicy(RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs.builder()
                                .numRetries(4)
                                .perTryTimeout(RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs.builder()
                                    .seconds(30)
                                    .build())
                                .retryConditions(                            
                                    "5xx",
                                    "deadline-exceeded")
                                .build())
                            .timeout(RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs.builder()
                                .seconds(20)
                                .nanos(750000000)
                                .build())
                            .urlRewrite(RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs.builder()
                                .hostRewrite("dev.example.com")
                                .pathPrefixRewrite("/v1/api/")
                                .build())
                            .weightedBackendServices(RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs.builder()
                                .backendService(home.id())
                                .weight(400)
                                .headerAction(RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs.builder()
                                    .requestHeadersToRemoves("RemoveMe")
                                    .requestHeadersToAdds(RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs.builder()
                                        .headerName("AddMe")
                                        .headerValue("MyValue")
                                        .replace(true)
                                        .build())
                                    .responseHeadersToRemoves("RemoveMe")
                                    .responseHeadersToAdds(RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs.builder()
                                        .headerName("AddMe")
                                        .headerValue("MyValue")
                                        .replace(false)
                                        .build())
                                    .build())
                                .build())
                            .build())
                        .build())
                    .build())
                .tests(RegionUrlMapTestArgs.builder()
                    .service(home.id())
                    .host("hi.com")
                    .path("/home")
                    .build())
                .build());
    
        }
    }
    
    resources:
      regionurlmap:
        type: gcp:compute:RegionUrlMap
        properties:
          name: regionurlmap
          description: a description
          defaultService: ${home.id}
          hostRules:
            - hosts:
                - mysite.com
              pathMatcher: allpaths
          pathMatchers:
            - name: allpaths
              defaultService: ${home.id}
              pathRules:
                - paths:
                    - /home
                  routeAction:
                    corsPolicy:
                      allowCredentials: true
                      allowHeaders:
                        - Allowed content
                      allowMethods:
                        - GET
                      allowOrigins:
                        - Allowed origin
                      exposeHeaders:
                        - Exposed header
                      maxAge: 30
                      disabled: false
                    faultInjectionPolicy:
                      abort:
                        httpStatus: 234
                        percentage: 5.6
                      delay:
                        fixedDelay:
                          seconds: 0
                          nanos: 50000
                        percentage: 7.8
                    requestMirrorPolicy:
                      backendService: ${home.id}
                    retryPolicy:
                      numRetries: 4
                      perTryTimeout:
                        seconds: 30
                      retryConditions:
                        - 5xx
                        - deadline-exceeded
                    timeout:
                      seconds: 20
                      nanos: 7.5e+08
                    urlRewrite:
                      hostRewrite: dev.example.com
                      pathPrefixRewrite: /v1/api/
                    weightedBackendServices:
                      - backendService: ${home.id}
                        weight: 400
                        headerAction:
                          requestHeadersToRemoves:
                            - RemoveMe
                          requestHeadersToAdds:
                            - headerName: AddMe
                              headerValue: MyValue
                              replace: true
                          responseHeadersToRemoves:
                            - RemoveMe
                          responseHeadersToAdds:
                            - headerName: AddMe
                              headerValue: MyValue
                              replace: false
          tests:
            - service: ${home.id}
              host: hi.com
              path: /home
      home:
        type: gcp:compute:RegionBackendService
        properties:
          name: home
          protocol: HTTP
          timeoutSec: 10
          healthChecks: ${default.id}
          loadBalancingScheme: INTERNAL_MANAGED
      default:
        type: gcp:compute:RegionHealthCheck
        properties:
          name: health-check
          httpHealthCheck:
            port: 80
    

    Region Url Map L7 Ilb Path Partial

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.RegionHealthCheck("default", {
        name: "health-check",
        httpHealthCheck: {
            port: 80,
        },
    });
    const home = new gcp.compute.RegionBackendService("home", {
        name: "home",
        protocol: "HTTP",
        timeoutSec: 10,
        healthChecks: _default.id,
        loadBalancingScheme: "INTERNAL_MANAGED",
    });
    const regionurlmap = new gcp.compute.RegionUrlMap("regionurlmap", {
        name: "regionurlmap",
        description: "a description",
        defaultService: home.id,
        hostRules: [{
            hosts: ["mysite.com"],
            pathMatcher: "allpaths",
        }],
        pathMatchers: [{
            name: "allpaths",
            defaultService: home.id,
            pathRules: [{
                paths: ["/home"],
                routeAction: {
                    retryPolicy: {
                        numRetries: 4,
                        perTryTimeout: {
                            seconds: "30",
                        },
                        retryConditions: [
                            "5xx",
                            "deadline-exceeded",
                        ],
                    },
                    timeout: {
                        seconds: "20",
                        nanos: 750000000,
                    },
                    urlRewrite: {
                        hostRewrite: "dev.example.com",
                        pathPrefixRewrite: "/v1/api/",
                    },
                    weightedBackendServices: [{
                        backendService: home.id,
                        weight: 400,
                        headerAction: {
                            responseHeadersToAdds: [{
                                headerName: "AddMe",
                                headerValue: "MyValue",
                                replace: false,
                            }],
                        },
                    }],
                },
            }],
        }],
        tests: [{
            service: home.id,
            host: "hi.com",
            path: "/home",
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.RegionHealthCheck("default",
        name="health-check",
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port=80,
        ))
    home = gcp.compute.RegionBackendService("home",
        name="home",
        protocol="HTTP",
        timeout_sec=10,
        health_checks=default.id,
        load_balancing_scheme="INTERNAL_MANAGED")
    regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
        name="regionurlmap",
        description="a description",
        default_service=home.id,
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["mysite.com"],
            path_matcher="allpaths",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="allpaths",
            default_service=home.id,
            path_rules=[gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
                paths=["/home"],
                route_action=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionArgs(
                    retry_policy=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs(
                        num_retries=4,
                        per_try_timeout=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs(
                            seconds="30",
                        ),
                        retry_conditions=[
                            "5xx",
                            "deadline-exceeded",
                        ],
                    ),
                    timeout=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs(
                        seconds="20",
                        nanos=750000000,
                    ),
                    url_rewrite=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs(
                        host_rewrite="dev.example.com",
                        path_prefix_rewrite="/v1/api/",
                    ),
                    weighted_backend_services=[gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs(
                        backend_service=home.id,
                        weight=400,
                        header_action=gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs(
                            response_headers_to_adds=[gcp.compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs(
                                header_name="AddMe",
                                header_value="MyValue",
                                replace=False,
                            )],
                        ),
                    )],
                ),
            )],
        )],
        tests=[gcp.compute.RegionUrlMapTestArgs(
            service=home.id,
            host="hi.com",
            path="/home",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Name: pulumi.String("health-check"),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				Port: pulumi.Int(80),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		home, err := compute.NewRegionBackendService(ctx, "home", &compute.RegionBackendServiceArgs{
    			Name:                pulumi.String("home"),
    			Protocol:            pulumi.String("HTTP"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionUrlMap(ctx, "regionurlmap", &compute.RegionUrlMapArgs{
    			Name:           pulumi.String("regionurlmap"),
    			Description:    pulumi.String("a description"),
    			DefaultService: home.ID(),
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("mysite.com"),
    					},
    					PathMatcher: pulumi.String("allpaths"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("allpaths"),
    					DefaultService: home.ID(),
    					PathRules: compute.RegionUrlMapPathMatcherPathRuleArray{
    						&compute.RegionUrlMapPathMatcherPathRuleArgs{
    							Paths: pulumi.StringArray{
    								pulumi.String("/home"),
    							},
    							RouteAction: &compute.RegionUrlMapPathMatcherPathRuleRouteActionArgs{
    								RetryPolicy: &compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs{
    									NumRetries: pulumi.Int(4),
    									PerTryTimeout: &compute.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs{
    										Seconds: pulumi.String("30"),
    									},
    									RetryConditions: pulumi.StringArray{
    										pulumi.String("5xx"),
    										pulumi.String("deadline-exceeded"),
    									},
    								},
    								Timeout: &compute.RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs{
    									Seconds: pulumi.String("20"),
    									Nanos:   pulumi.Int(750000000),
    								},
    								UrlRewrite: &compute.RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs{
    									HostRewrite:       pulumi.String("dev.example.com"),
    									PathPrefixRewrite: pulumi.String("/v1/api/"),
    								},
    								WeightedBackendServices: compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArray{
    									&compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs{
    										BackendService: home.ID(),
    										Weight:         pulumi.Int(400),
    										HeaderAction: &compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs{
    											ResponseHeadersToAdds: compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArray{
    												&compute.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs{
    													HeaderName:  pulumi.String("AddMe"),
    													HeaderValue: pulumi.String("MyValue"),
    													Replace:     pulumi.Bool(false),
    												},
    											},
    										},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    			Tests: compute.RegionUrlMapTestArray{
    				&compute.RegionUrlMapTestArgs{
    					Service: home.ID(),
    					Host:    pulumi.String("hi.com"),
    					Path:    pulumi.String("/home"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Name = "health-check",
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                Port = 80,
            },
        });
    
        var home = new Gcp.Compute.RegionBackendService("home", new()
        {
            Name = "home",
            Protocol = "HTTP",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
            LoadBalancingScheme = "INTERNAL_MANAGED",
        });
    
        var regionurlmap = new Gcp.Compute.RegionUrlMap("regionurlmap", new()
        {
            Name = "regionurlmap",
            Description = "a description",
            DefaultService = home.Id,
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "mysite.com",
                    },
                    PathMatcher = "allpaths",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "allpaths",
                    DefaultService = home.Id,
                    PathRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleArgs
                        {
                            Paths = new[]
                            {
                                "/home",
                            },
                            RouteAction = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionArgs
                            {
                                RetryPolicy = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs
                                {
                                    NumRetries = 4,
                                    PerTryTimeout = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs
                                    {
                                        Seconds = "30",
                                    },
                                    RetryConditions = new[]
                                    {
                                        "5xx",
                                        "deadline-exceeded",
                                    },
                                },
                                Timeout = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs
                                {
                                    Seconds = "20",
                                    Nanos = 750000000,
                                },
                                UrlRewrite = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs
                                {
                                    HostRewrite = "dev.example.com",
                                    PathPrefixRewrite = "/v1/api/",
                                },
                                WeightedBackendServices = new[]
                                {
                                    new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs
                                    {
                                        BackendService = home.Id,
                                        Weight = 400,
                                        HeaderAction = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs
                                        {
                                            ResponseHeadersToAdds = new[]
                                            {
                                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs
                                                {
                                                    HeaderName = "AddMe",
                                                    HeaderValue = "MyValue",
                                                    Replace = false,
                                                },
                                            },
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
            Tests = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapTestArgs
                {
                    Service = home.Id,
                    Host = "hi.com",
                    Path = "/home",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new RegionHealthCheck("default", RegionHealthCheckArgs.builder()        
                .name("health-check")
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .port(80)
                    .build())
                .build());
    
            var home = new RegionBackendService("home", RegionBackendServiceArgs.builder()        
                .name("home")
                .protocol("HTTP")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .loadBalancingScheme("INTERNAL_MANAGED")
                .build());
    
            var regionurlmap = new RegionUrlMap("regionurlmap", RegionUrlMapArgs.builder()        
                .name("regionurlmap")
                .description("a description")
                .defaultService(home.id())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("mysite.com")
                    .pathMatcher("allpaths")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("allpaths")
                    .defaultService(home.id())
                    .pathRules(RegionUrlMapPathMatcherPathRuleArgs.builder()
                        .paths("/home")
                        .routeAction(RegionUrlMapPathMatcherPathRuleRouteActionArgs.builder()
                            .retryPolicy(RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs.builder()
                                .numRetries(4)
                                .perTryTimeout(RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs.builder()
                                    .seconds(30)
                                    .build())
                                .retryConditions(                            
                                    "5xx",
                                    "deadline-exceeded")
                                .build())
                            .timeout(RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs.builder()
                                .seconds(20)
                                .nanos(750000000)
                                .build())
                            .urlRewrite(RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs.builder()
                                .hostRewrite("dev.example.com")
                                .pathPrefixRewrite("/v1/api/")
                                .build())
                            .weightedBackendServices(RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs.builder()
                                .backendService(home.id())
                                .weight(400)
                                .headerAction(RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs.builder()
                                    .responseHeadersToAdds(RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs.builder()
                                        .headerName("AddMe")
                                        .headerValue("MyValue")
                                        .replace(false)
                                        .build())
                                    .build())
                                .build())
                            .build())
                        .build())
                    .build())
                .tests(RegionUrlMapTestArgs.builder()
                    .service(home.id())
                    .host("hi.com")
                    .path("/home")
                    .build())
                .build());
    
        }
    }
    
    resources:
      regionurlmap:
        type: gcp:compute:RegionUrlMap
        properties:
          name: regionurlmap
          description: a description
          defaultService: ${home.id}
          hostRules:
            - hosts:
                - mysite.com
              pathMatcher: allpaths
          pathMatchers:
            - name: allpaths
              defaultService: ${home.id}
              pathRules:
                - paths:
                    - /home
                  routeAction:
                    retryPolicy:
                      numRetries: 4
                      perTryTimeout:
                        seconds: 30
                      retryConditions:
                        - 5xx
                        - deadline-exceeded
                    timeout:
                      seconds: 20
                      nanos: 7.5e+08
                    urlRewrite:
                      hostRewrite: dev.example.com
                      pathPrefixRewrite: /v1/api/
                    weightedBackendServices:
                      - backendService: ${home.id}
                        weight: 400
                        headerAction:
                          responseHeadersToAdds:
                            - headerName: AddMe
                              headerValue: MyValue
                              replace: false
          tests:
            - service: ${home.id}
              host: hi.com
              path: /home
      home:
        type: gcp:compute:RegionBackendService
        properties:
          name: home
          protocol: HTTP
          timeoutSec: 10
          healthChecks: ${default.id}
          loadBalancingScheme: INTERNAL_MANAGED
      default:
        type: gcp:compute:RegionHealthCheck
        properties:
          name: health-check
          httpHealthCheck:
            port: 80
    

    Region Url Map L7 Ilb Route

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.RegionHealthCheck("default", {
        name: "health-check",
        httpHealthCheck: {
            port: 80,
        },
    });
    const home = new gcp.compute.RegionBackendService("home", {
        name: "home",
        protocol: "HTTP",
        timeoutSec: 10,
        healthChecks: _default.id,
        loadBalancingScheme: "INTERNAL_MANAGED",
    });
    const regionurlmap = new gcp.compute.RegionUrlMap("regionurlmap", {
        name: "regionurlmap",
        description: "a description",
        defaultService: home.id,
        hostRules: [{
            hosts: ["mysite.com"],
            pathMatcher: "allpaths",
        }],
        pathMatchers: [{
            name: "allpaths",
            defaultService: home.id,
            routeRules: [{
                priority: 1,
                headerAction: {
                    requestHeadersToRemoves: ["RemoveMe2"],
                    requestHeadersToAdds: [{
                        headerName: "AddSomethingElse",
                        headerValue: "MyOtherValue",
                        replace: true,
                    }],
                    responseHeadersToRemoves: ["RemoveMe3"],
                    responseHeadersToAdds: [{
                        headerName: "AddMe",
                        headerValue: "MyValue",
                        replace: false,
                    }],
                },
                matchRules: [{
                    fullPathMatch: "a full path",
                    headerMatches: [{
                        headerName: "someheader",
                        exactMatch: "match this exactly",
                        invertMatch: true,
                    }],
                    ignoreCase: true,
                    metadataFilters: [{
                        filterMatchCriteria: "MATCH_ANY",
                        filterLabels: [{
                            name: "PLANET",
                            value: "MARS",
                        }],
                    }],
                    queryParameterMatches: [{
                        name: "a query parameter",
                        presentMatch: true,
                    }],
                }],
                urlRedirect: {
                    hostRedirect: "A host",
                    httpsRedirect: false,
                    pathRedirect: "some/path",
                    redirectResponseCode: "TEMPORARY_REDIRECT",
                    stripQuery: true,
                },
            }],
        }],
        tests: [{
            service: home.id,
            host: "hi.com",
            path: "/home",
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.RegionHealthCheck("default",
        name="health-check",
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port=80,
        ))
    home = gcp.compute.RegionBackendService("home",
        name="home",
        protocol="HTTP",
        timeout_sec=10,
        health_checks=default.id,
        load_balancing_scheme="INTERNAL_MANAGED")
    regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
        name="regionurlmap",
        description="a description",
        default_service=home.id,
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["mysite.com"],
            path_matcher="allpaths",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="allpaths",
            default_service=home.id,
            route_rules=[gcp.compute.RegionUrlMapPathMatcherRouteRuleArgs(
                priority=1,
                header_action=gcp.compute.RegionUrlMapPathMatcherRouteRuleHeaderActionArgs(
                    request_headers_to_removes=["RemoveMe2"],
                    request_headers_to_adds=[gcp.compute.RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAddArgs(
                        header_name="AddSomethingElse",
                        header_value="MyOtherValue",
                        replace=True,
                    )],
                    response_headers_to_removes=["RemoveMe3"],
                    response_headers_to_adds=[gcp.compute.RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAddArgs(
                        header_name="AddMe",
                        header_value="MyValue",
                        replace=False,
                    )],
                ),
                match_rules=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs(
                    full_path_match="a full path",
                    header_matches=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs(
                        header_name="someheader",
                        exact_match="match this exactly",
                        invert_match=True,
                    )],
                    ignore_case=True,
                    metadata_filters=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterArgs(
                        filter_match_criteria="MATCH_ANY",
                        filter_labels=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabelArgs(
                            name="PLANET",
                            value="MARS",
                        )],
                    )],
                    query_parameter_matches=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs(
                        name="a query parameter",
                        present_match=True,
                    )],
                )],
                url_redirect=gcp.compute.RegionUrlMapPathMatcherRouteRuleUrlRedirectArgs(
                    host_redirect="A host",
                    https_redirect=False,
                    path_redirect="some/path",
                    redirect_response_code="TEMPORARY_REDIRECT",
                    strip_query=True,
                ),
            )],
        )],
        tests=[gcp.compute.RegionUrlMapTestArgs(
            service=home.id,
            host="hi.com",
            path="/home",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Name: pulumi.String("health-check"),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				Port: pulumi.Int(80),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		home, err := compute.NewRegionBackendService(ctx, "home", &compute.RegionBackendServiceArgs{
    			Name:                pulumi.String("home"),
    			Protocol:            pulumi.String("HTTP"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionUrlMap(ctx, "regionurlmap", &compute.RegionUrlMapArgs{
    			Name:           pulumi.String("regionurlmap"),
    			Description:    pulumi.String("a description"),
    			DefaultService: home.ID(),
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("mysite.com"),
    					},
    					PathMatcher: pulumi.String("allpaths"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("allpaths"),
    					DefaultService: home.ID(),
    					RouteRules: compute.RegionUrlMapPathMatcherRouteRuleArray{
    						&compute.RegionUrlMapPathMatcherRouteRuleArgs{
    							Priority: pulumi.Int(1),
    							HeaderAction: &compute.RegionUrlMapPathMatcherRouteRuleHeaderActionArgs{
    								RequestHeadersToRemoves: pulumi.StringArray{
    									pulumi.String("RemoveMe2"),
    								},
    								RequestHeadersToAdds: compute.RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAddArray{
    									&compute.RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAddArgs{
    										HeaderName:  pulumi.String("AddSomethingElse"),
    										HeaderValue: pulumi.String("MyOtherValue"),
    										Replace:     pulumi.Bool(true),
    									},
    								},
    								ResponseHeadersToRemoves: pulumi.StringArray{
    									pulumi.String("RemoveMe3"),
    								},
    								ResponseHeadersToAdds: compute.RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAddArray{
    									&compute.RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAddArgs{
    										HeaderName:  pulumi.String("AddMe"),
    										HeaderValue: pulumi.String("MyValue"),
    										Replace:     pulumi.Bool(false),
    									},
    								},
    							},
    							MatchRules: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArray{
    								&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs{
    									FullPathMatch: pulumi.String("a full path"),
    									HeaderMatches: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArray{
    										&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs{
    											HeaderName:  pulumi.String("someheader"),
    											ExactMatch:  pulumi.String("match this exactly"),
    											InvertMatch: pulumi.Bool(true),
    										},
    									},
    									IgnoreCase: pulumi.Bool(true),
    									MetadataFilters: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterArray{
    										&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterArgs{
    											FilterMatchCriteria: pulumi.String("MATCH_ANY"),
    											FilterLabels: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabelArray{
    												&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabelArgs{
    													Name:  pulumi.String("PLANET"),
    													Value: pulumi.String("MARS"),
    												},
    											},
    										},
    									},
    									QueryParameterMatches: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArray{
    										&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs{
    											Name:         pulumi.String("a query parameter"),
    											PresentMatch: pulumi.Bool(true),
    										},
    									},
    								},
    							},
    							UrlRedirect: &compute.RegionUrlMapPathMatcherRouteRuleUrlRedirectArgs{
    								HostRedirect:         pulumi.String("A host"),
    								HttpsRedirect:        pulumi.Bool(false),
    								PathRedirect:         pulumi.String("some/path"),
    								RedirectResponseCode: pulumi.String("TEMPORARY_REDIRECT"),
    								StripQuery:           pulumi.Bool(true),
    							},
    						},
    					},
    				},
    			},
    			Tests: compute.RegionUrlMapTestArray{
    				&compute.RegionUrlMapTestArgs{
    					Service: home.ID(),
    					Host:    pulumi.String("hi.com"),
    					Path:    pulumi.String("/home"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Name = "health-check",
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                Port = 80,
            },
        });
    
        var home = new Gcp.Compute.RegionBackendService("home", new()
        {
            Name = "home",
            Protocol = "HTTP",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
            LoadBalancingScheme = "INTERNAL_MANAGED",
        });
    
        var regionurlmap = new Gcp.Compute.RegionUrlMap("regionurlmap", new()
        {
            Name = "regionurlmap",
            Description = "a description",
            DefaultService = home.Id,
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "mysite.com",
                    },
                    PathMatcher = "allpaths",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "allpaths",
                    DefaultService = home.Id,
                    RouteRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleArgs
                        {
                            Priority = 1,
                            HeaderAction = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleHeaderActionArgs
                            {
                                RequestHeadersToRemoves = new[]
                                {
                                    "RemoveMe2",
                                },
                                RequestHeadersToAdds = new[]
                                {
                                    new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAddArgs
                                    {
                                        HeaderName = "AddSomethingElse",
                                        HeaderValue = "MyOtherValue",
                                        Replace = true,
                                    },
                                },
                                ResponseHeadersToRemoves = new[]
                                {
                                    "RemoveMe3",
                                },
                                ResponseHeadersToAdds = new[]
                                {
                                    new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAddArgs
                                    {
                                        HeaderName = "AddMe",
                                        HeaderValue = "MyValue",
                                        Replace = false,
                                    },
                                },
                            },
                            MatchRules = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs
                                {
                                    FullPathMatch = "a full path",
                                    HeaderMatches = new[]
                                    {
                                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs
                                        {
                                            HeaderName = "someheader",
                                            ExactMatch = "match this exactly",
                                            InvertMatch = true,
                                        },
                                    },
                                    IgnoreCase = true,
                                    MetadataFilters = new[]
                                    {
                                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterArgs
                                        {
                                            FilterMatchCriteria = "MATCH_ANY",
                                            FilterLabels = new[]
                                            {
                                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabelArgs
                                                {
                                                    Name = "PLANET",
                                                    Value = "MARS",
                                                },
                                            },
                                        },
                                    },
                                    QueryParameterMatches = new[]
                                    {
                                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs
                                        {
                                            Name = "a query parameter",
                                            PresentMatch = true,
                                        },
                                    },
                                },
                            },
                            UrlRedirect = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleUrlRedirectArgs
                            {
                                HostRedirect = "A host",
                                HttpsRedirect = false,
                                PathRedirect = "some/path",
                                RedirectResponseCode = "TEMPORARY_REDIRECT",
                                StripQuery = true,
                            },
                        },
                    },
                },
            },
            Tests = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapTestArgs
                {
                    Service = home.Id,
                    Host = "hi.com",
                    Path = "/home",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new RegionHealthCheck("default", RegionHealthCheckArgs.builder()        
                .name("health-check")
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .port(80)
                    .build())
                .build());
    
            var home = new RegionBackendService("home", RegionBackendServiceArgs.builder()        
                .name("home")
                .protocol("HTTP")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .loadBalancingScheme("INTERNAL_MANAGED")
                .build());
    
            var regionurlmap = new RegionUrlMap("regionurlmap", RegionUrlMapArgs.builder()        
                .name("regionurlmap")
                .description("a description")
                .defaultService(home.id())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("mysite.com")
                    .pathMatcher("allpaths")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("allpaths")
                    .defaultService(home.id())
                    .routeRules(RegionUrlMapPathMatcherRouteRuleArgs.builder()
                        .priority(1)
                        .headerAction(RegionUrlMapPathMatcherRouteRuleHeaderActionArgs.builder()
                            .requestHeadersToRemoves("RemoveMe2")
                            .requestHeadersToAdds(RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAddArgs.builder()
                                .headerName("AddSomethingElse")
                                .headerValue("MyOtherValue")
                                .replace(true)
                                .build())
                            .responseHeadersToRemoves("RemoveMe3")
                            .responseHeadersToAdds(RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAddArgs.builder()
                                .headerName("AddMe")
                                .headerValue("MyValue")
                                .replace(false)
                                .build())
                            .build())
                        .matchRules(RegionUrlMapPathMatcherRouteRuleMatchRuleArgs.builder()
                            .fullPathMatch("a full path")
                            .headerMatches(RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs.builder()
                                .headerName("someheader")
                                .exactMatch("match this exactly")
                                .invertMatch(true)
                                .build())
                            .ignoreCase(true)
                            .metadataFilters(RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterArgs.builder()
                                .filterMatchCriteria("MATCH_ANY")
                                .filterLabels(RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabelArgs.builder()
                                    .name("PLANET")
                                    .value("MARS")
                                    .build())
                                .build())
                            .queryParameterMatches(RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs.builder()
                                .name("a query parameter")
                                .presentMatch(true)
                                .build())
                            .build())
                        .urlRedirect(RegionUrlMapPathMatcherRouteRuleUrlRedirectArgs.builder()
                            .hostRedirect("A host")
                            .httpsRedirect(false)
                            .pathRedirect("some/path")
                            .redirectResponseCode("TEMPORARY_REDIRECT")
                            .stripQuery(true)
                            .build())
                        .build())
                    .build())
                .tests(RegionUrlMapTestArgs.builder()
                    .service(home.id())
                    .host("hi.com")
                    .path("/home")
                    .build())
                .build());
    
        }
    }
    
    resources:
      regionurlmap:
        type: gcp:compute:RegionUrlMap
        properties:
          name: regionurlmap
          description: a description
          defaultService: ${home.id}
          hostRules:
            - hosts:
                - mysite.com
              pathMatcher: allpaths
          pathMatchers:
            - name: allpaths
              defaultService: ${home.id}
              routeRules:
                - priority: 1
                  headerAction:
                    requestHeadersToRemoves:
                      - RemoveMe2
                    requestHeadersToAdds:
                      - headerName: AddSomethingElse
                        headerValue: MyOtherValue
                        replace: true
                    responseHeadersToRemoves:
                      - RemoveMe3
                    responseHeadersToAdds:
                      - headerName: AddMe
                        headerValue: MyValue
                        replace: false
                  matchRules:
                    - fullPathMatch: a full path
                      headerMatches:
                        - headerName: someheader
                          exactMatch: match this exactly
                          invertMatch: true
                      ignoreCase: true
                      metadataFilters:
                        - filterMatchCriteria: MATCH_ANY
                          filterLabels:
                            - name: PLANET
                              value: MARS
                      queryParameterMatches:
                        - name: a query parameter
                          presentMatch: true
                  urlRedirect:
                    hostRedirect: A host
                    httpsRedirect: false
                    pathRedirect: some/path
                    redirectResponseCode: TEMPORARY_REDIRECT
                    stripQuery: true
          tests:
            - service: ${home.id}
              host: hi.com
              path: /home
      home:
        type: gcp:compute:RegionBackendService
        properties:
          name: home
          protocol: HTTP
          timeoutSec: 10
          healthChecks: ${default.id}
          loadBalancingScheme: INTERNAL_MANAGED
      default:
        type: gcp:compute:RegionHealthCheck
        properties:
          name: health-check
          httpHealthCheck:
            port: 80
    

    Region Url Map L7 Ilb Route Partial

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.RegionHealthCheck("default", {
        name: "health-check",
        httpHealthCheck: {
            port: 80,
        },
    });
    const home = new gcp.compute.RegionBackendService("home", {
        name: "home",
        protocol: "HTTP",
        timeoutSec: 10,
        healthChecks: _default.id,
        loadBalancingScheme: "INTERNAL_MANAGED",
    });
    const regionurlmap = new gcp.compute.RegionUrlMap("regionurlmap", {
        name: "regionurlmap",
        description: "a description",
        defaultService: home.id,
        hostRules: [{
            hosts: ["mysite.com"],
            pathMatcher: "allpaths",
        }],
        pathMatchers: [{
            name: "allpaths",
            defaultService: home.id,
            routeRules: [{
                priority: 1,
                service: home.id,
                headerAction: {
                    requestHeadersToRemoves: ["RemoveMe2"],
                },
                matchRules: [{
                    fullPathMatch: "a full path",
                    headerMatches: [{
                        headerName: "someheader",
                        exactMatch: "match this exactly",
                        invertMatch: true,
                    }],
                    queryParameterMatches: [{
                        name: "a query parameter",
                        presentMatch: true,
                    }],
                }],
            }],
        }],
        tests: [{
            service: home.id,
            host: "hi.com",
            path: "/home",
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.RegionHealthCheck("default",
        name="health-check",
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port=80,
        ))
    home = gcp.compute.RegionBackendService("home",
        name="home",
        protocol="HTTP",
        timeout_sec=10,
        health_checks=default.id,
        load_balancing_scheme="INTERNAL_MANAGED")
    regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
        name="regionurlmap",
        description="a description",
        default_service=home.id,
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["mysite.com"],
            path_matcher="allpaths",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="allpaths",
            default_service=home.id,
            route_rules=[gcp.compute.RegionUrlMapPathMatcherRouteRuleArgs(
                priority=1,
                service=home.id,
                header_action=gcp.compute.RegionUrlMapPathMatcherRouteRuleHeaderActionArgs(
                    request_headers_to_removes=["RemoveMe2"],
                ),
                match_rules=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs(
                    full_path_match="a full path",
                    header_matches=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs(
                        header_name="someheader",
                        exact_match="match this exactly",
                        invert_match=True,
                    )],
                    query_parameter_matches=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs(
                        name="a query parameter",
                        present_match=True,
                    )],
                )],
            )],
        )],
        tests=[gcp.compute.RegionUrlMapTestArgs(
            service=home.id,
            host="hi.com",
            path="/home",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Name: pulumi.String("health-check"),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				Port: pulumi.Int(80),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		home, err := compute.NewRegionBackendService(ctx, "home", &compute.RegionBackendServiceArgs{
    			Name:                pulumi.String("home"),
    			Protocol:            pulumi.String("HTTP"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        _default.ID(),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionUrlMap(ctx, "regionurlmap", &compute.RegionUrlMapArgs{
    			Name:           pulumi.String("regionurlmap"),
    			Description:    pulumi.String("a description"),
    			DefaultService: home.ID(),
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("mysite.com"),
    					},
    					PathMatcher: pulumi.String("allpaths"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("allpaths"),
    					DefaultService: home.ID(),
    					RouteRules: compute.RegionUrlMapPathMatcherRouteRuleArray{
    						&compute.RegionUrlMapPathMatcherRouteRuleArgs{
    							Priority: pulumi.Int(1),
    							Service:  home.ID(),
    							HeaderAction: &compute.RegionUrlMapPathMatcherRouteRuleHeaderActionArgs{
    								RequestHeadersToRemoves: pulumi.StringArray{
    									pulumi.String("RemoveMe2"),
    								},
    							},
    							MatchRules: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArray{
    								&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs{
    									FullPathMatch: pulumi.String("a full path"),
    									HeaderMatches: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArray{
    										&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs{
    											HeaderName:  pulumi.String("someheader"),
    											ExactMatch:  pulumi.String("match this exactly"),
    											InvertMatch: pulumi.Bool(true),
    										},
    									},
    									QueryParameterMatches: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArray{
    										&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs{
    											Name:         pulumi.String("a query parameter"),
    											PresentMatch: pulumi.Bool(true),
    										},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    			Tests: compute.RegionUrlMapTestArray{
    				&compute.RegionUrlMapTestArgs{
    					Service: home.ID(),
    					Host:    pulumi.String("hi.com"),
    					Path:    pulumi.String("/home"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Name = "health-check",
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                Port = 80,
            },
        });
    
        var home = new Gcp.Compute.RegionBackendService("home", new()
        {
            Name = "home",
            Protocol = "HTTP",
            TimeoutSec = 10,
            HealthChecks = @default.Id,
            LoadBalancingScheme = "INTERNAL_MANAGED",
        });
    
        var regionurlmap = new Gcp.Compute.RegionUrlMap("regionurlmap", new()
        {
            Name = "regionurlmap",
            Description = "a description",
            DefaultService = home.Id,
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "mysite.com",
                    },
                    PathMatcher = "allpaths",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "allpaths",
                    DefaultService = home.Id,
                    RouteRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleArgs
                        {
                            Priority = 1,
                            Service = home.Id,
                            HeaderAction = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleHeaderActionArgs
                            {
                                RequestHeadersToRemoves = new[]
                                {
                                    "RemoveMe2",
                                },
                            },
                            MatchRules = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs
                                {
                                    FullPathMatch = "a full path",
                                    HeaderMatches = new[]
                                    {
                                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs
                                        {
                                            HeaderName = "someheader",
                                            ExactMatch = "match this exactly",
                                            InvertMatch = true,
                                        },
                                    },
                                    QueryParameterMatches = new[]
                                    {
                                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs
                                        {
                                            Name = "a query parameter",
                                            PresentMatch = true,
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
            Tests = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapTestArgs
                {
                    Service = home.Id,
                    Host = "hi.com",
                    Path = "/home",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new RegionHealthCheck("default", RegionHealthCheckArgs.builder()        
                .name("health-check")
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .port(80)
                    .build())
                .build());
    
            var home = new RegionBackendService("home", RegionBackendServiceArgs.builder()        
                .name("home")
                .protocol("HTTP")
                .timeoutSec(10)
                .healthChecks(default_.id())
                .loadBalancingScheme("INTERNAL_MANAGED")
                .build());
    
            var regionurlmap = new RegionUrlMap("regionurlmap", RegionUrlMapArgs.builder()        
                .name("regionurlmap")
                .description("a description")
                .defaultService(home.id())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("mysite.com")
                    .pathMatcher("allpaths")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("allpaths")
                    .defaultService(home.id())
                    .routeRules(RegionUrlMapPathMatcherRouteRuleArgs.builder()
                        .priority(1)
                        .service(home.id())
                        .headerAction(RegionUrlMapPathMatcherRouteRuleHeaderActionArgs.builder()
                            .requestHeadersToRemoves("RemoveMe2")
                            .build())
                        .matchRules(RegionUrlMapPathMatcherRouteRuleMatchRuleArgs.builder()
                            .fullPathMatch("a full path")
                            .headerMatches(RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs.builder()
                                .headerName("someheader")
                                .exactMatch("match this exactly")
                                .invertMatch(true)
                                .build())
                            .queryParameterMatches(RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs.builder()
                                .name("a query parameter")
                                .presentMatch(true)
                                .build())
                            .build())
                        .build())
                    .build())
                .tests(RegionUrlMapTestArgs.builder()
                    .service(home.id())
                    .host("hi.com")
                    .path("/home")
                    .build())
                .build());
    
        }
    }
    
    resources:
      regionurlmap:
        type: gcp:compute:RegionUrlMap
        properties:
          name: regionurlmap
          description: a description
          defaultService: ${home.id}
          hostRules:
            - hosts:
                - mysite.com
              pathMatcher: allpaths
          pathMatchers:
            - name: allpaths
              defaultService: ${home.id}
              routeRules:
                - priority: 1
                  service: ${home.id}
                  headerAction:
                    requestHeadersToRemoves:
                      - RemoveMe2
                  matchRules:
                    - fullPathMatch: a full path
                      headerMatches:
                        - headerName: someheader
                          exactMatch: match this exactly
                          invertMatch: true
                      queryParameterMatches:
                        - name: a query parameter
                          presentMatch: true
          tests:
            - service: ${home.id}
              host: hi.com
              path: /home
      home:
        type: gcp:compute:RegionBackendService
        properties:
          name: home
          protocol: HTTP
          timeoutSec: 10
          healthChecks: ${default.id}
          loadBalancingScheme: INTERNAL_MANAGED
      default:
        type: gcp:compute:RegionHealthCheck
        properties:
          name: health-check
          httpHealthCheck:
            port: 80
    

    Int Https Lb Https Redirect

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as tls from "@pulumi/tls";
    
    // Internal HTTPS load balancer with HTTP-to-HTTPS redirect
    // VPC network
    const _default = new gcp.compute.Network("default", {
        name: "l7-ilb-network",
        autoCreateSubnetworks: false,
    });
    // Proxy-only subnet
    const proxySubnet = new gcp.compute.Subnetwork("proxy_subnet", {
        name: "l7-ilb-proxy-subnet",
        ipCidrRange: "10.0.0.0/24",
        region: "europe-west1",
        purpose: "REGIONAL_MANAGED_PROXY",
        role: "ACTIVE",
        network: _default.id,
    });
    // Backend subnet
    const defaultSubnetwork = new gcp.compute.Subnetwork("default", {
        name: "l7-ilb-subnet",
        ipCidrRange: "10.0.1.0/24",
        region: "europe-west1",
        network: _default.id,
    });
    // Reserved internal address
    const defaultAddress = new gcp.compute.Address("default", {
        name: "l7-ilb-ip",
        subnetwork: defaultSubnetwork.id,
        addressType: "INTERNAL",
        address: "10.0.1.5",
        region: "europe-west1",
        purpose: "SHARED_LOADBALANCER_VIP",
    });
    // Self-signed regional SSL certificate for testing
    const defaultPrivateKey = new tls.PrivateKey("default", {
        algorithm: "RSA",
        rsaBits: 2048,
    });
    const defaultSelfSignedCert = new tls.SelfSignedCert("default", {
        keyAlgorithm: defaultPrivateKey.algorithm,
        privateKeyPem: defaultPrivateKey.privateKeyPem,
        validityPeriodHours: 12,
        earlyRenewalHours: 3,
        allowedUses: [
            "key_encipherment",
            "digital_signature",
            "server_auth",
        ],
        dnsNames: ["example.com"],
        subject: {
            commonName: "example.com",
            organization: "ACME Examples, Inc",
        },
    });
    const defaultRegionSslCertificate = new gcp.compute.RegionSslCertificate("default", {
        namePrefix: "my-certificate-",
        privateKey: defaultPrivateKey.privateKeyPem,
        certificate: defaultSelfSignedCert.certPem,
        region: "europe-west1",
    });
    // Regional health check
    const defaultRegionHealthCheck = new gcp.compute.RegionHealthCheck("default", {
        name: "l7-ilb-hc",
        region: "europe-west1",
        httpHealthCheck: {
            portSpecification: "USE_SERVING_PORT",
        },
    });
    // Instance template
    const defaultInstanceTemplate = new gcp.compute.InstanceTemplate("default", {
        networkInterfaces: [{
            accessConfigs: [{}],
            network: _default.id,
            subnetwork: defaultSubnetwork.id,
        }],
        name: "l7-ilb-mig-template",
        machineType: "e2-small",
        tags: ["http-server"],
        disks: [{
            sourceImage: "debian-cloud/debian-10",
            autoDelete: true,
            boot: true,
        }],
        metadata: {
            "startup-script": `#! /bin/bash
    set -euo pipefail
    
    export DEBIAN_FRONTEND=noninteractive
    apt-get update
    apt-get install -y nginx-light jq
    
    NAME=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/hostname")
    IP=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip")
    METADATA=$(curl -f -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/attributes/?recursive=True" | jq 'del(.["startup-script"])')
    
    cat <<EOF > /var/www/html/index.html
    <pre>
    Name: $NAME
    IP: $IP
    Metadata: $METADATA
    </pre>
    EOF
    `,
        },
    });
    // Regional MIG
    const defaultRegionInstanceGroupManager = new gcp.compute.RegionInstanceGroupManager("default", {
        name: "l7-ilb-mig1",
        region: "europe-west1",
        versions: [{
            instanceTemplate: defaultInstanceTemplate.id,
            name: "primary",
        }],
        namedPorts: [{
            name: "http-server",
            port: 80,
        }],
        baseInstanceName: "vm",
        targetSize: 2,
    });
    // Regional backend service
    const defaultRegionBackendService = new gcp.compute.RegionBackendService("default", {
        name: "l7-ilb-backend-service",
        region: "europe-west1",
        protocol: "HTTP",
        portName: "http-server",
        loadBalancingScheme: "INTERNAL_MANAGED",
        timeoutSec: 10,
        healthChecks: defaultRegionHealthCheck.id,
        backends: [{
            group: defaultRegionInstanceGroupManager.instanceGroup,
            balancingMode: "UTILIZATION",
            capacityScaler: 1,
        }],
    });
    // Regional URL map
    const httpsLb = new gcp.compute.RegionUrlMap("https_lb", {
        name: "l7-ilb-regional-url-map",
        region: "europe-west1",
        defaultService: defaultRegionBackendService.id,
    });
    // Regional target HTTPS proxy
    const defaultRegionTargetHttpsProxy = new gcp.compute.RegionTargetHttpsProxy("default", {
        name: "l7-ilb-target-https-proxy",
        region: "europe-west1",
        urlMap: httpsLb.id,
        sslCertificates: [defaultRegionSslCertificate.selfLink],
    });
    // Regional forwarding rule
    const defaultForwardingRule = new gcp.compute.ForwardingRule("default", {
        name: "l7-ilb-forwarding-rule",
        region: "europe-west1",
        ipProtocol: "TCP",
        ipAddress: defaultAddress.id,
        loadBalancingScheme: "INTERNAL_MANAGED",
        portRange: "443",
        target: defaultRegionTargetHttpsProxy.id,
        network: _default.id,
        subnetwork: defaultSubnetwork.id,
        networkTier: "PREMIUM",
    });
    // Allow all access to health check ranges
    const defaultFirewall = new gcp.compute.Firewall("default", {
        name: "l7-ilb-fw-allow-hc",
        direction: "INGRESS",
        network: _default.id,
        sourceRanges: [
            "130.211.0.0/22",
            "35.191.0.0/16",
            "35.235.240.0/20",
        ],
        allows: [{
            protocol: "tcp",
        }],
    });
    // Allow http from proxy subnet to backends
    const backends = new gcp.compute.Firewall("backends", {
        name: "l7-ilb-fw-allow-ilb-to-backends",
        direction: "INGRESS",
        network: _default.id,
        sourceRanges: ["10.0.0.0/24"],
        targetTags: ["http-server"],
        allows: [{
            protocol: "tcp",
            ports: [
                "80",
                "443",
                "8080",
            ],
        }],
    });
    // Test instance
    const defaultInstance = new gcp.compute.Instance("default", {
        name: "l7-ilb-test-vm",
        zone: "europe-west1-b",
        machineType: "e2-small",
        networkInterfaces: [{
            network: _default.id,
            subnetwork: defaultSubnetwork.id,
        }],
        bootDisk: {
            initializeParams: {
                image: "debian-cloud/debian-10",
            },
        },
    });
    //## HTTP-to-HTTPS redirect ###
    // Regional URL map
    const redirectRegionUrlMap = new gcp.compute.RegionUrlMap("redirect", {
        name: "l7-ilb-redirect-url-map",
        region: "europe-west1",
        defaultService: defaultRegionBackendService.id,
        hostRules: [{
            hosts: ["*"],
            pathMatcher: "allpaths",
        }],
        pathMatchers: [{
            name: "allpaths",
            defaultService: defaultRegionBackendService.id,
            pathRules: [{
                paths: ["/"],
                urlRedirect: {
                    httpsRedirect: true,
                    hostRedirect: "10.0.1.5:443",
                    redirectResponseCode: "PERMANENT_REDIRECT",
                    stripQuery: true,
                },
            }],
        }],
    });
    // Regional HTTP proxy
    const defaultRegionTargetHttpProxy = new gcp.compute.RegionTargetHttpProxy("default", {
        name: "l7-ilb-target-http-proxy",
        region: "europe-west1",
        urlMap: redirectRegionUrlMap.id,
    });
    // Regional forwarding rule
    const redirect = new gcp.compute.ForwardingRule("redirect", {
        name: "l7-ilb-redirect",
        region: "europe-west1",
        ipProtocol: "TCP",
        ipAddress: defaultAddress.id,
        loadBalancingScheme: "INTERNAL_MANAGED",
        portRange: "80",
        target: defaultRegionTargetHttpProxy.id,
        network: _default.id,
        subnetwork: defaultSubnetwork.id,
        networkTier: "PREMIUM",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumi_tls as tls
    
    # Internal HTTPS load balancer with HTTP-to-HTTPS redirect
    # VPC network
    default = gcp.compute.Network("default",
        name="l7-ilb-network",
        auto_create_subnetworks=False)
    # Proxy-only subnet
    proxy_subnet = gcp.compute.Subnetwork("proxy_subnet",
        name="l7-ilb-proxy-subnet",
        ip_cidr_range="10.0.0.0/24",
        region="europe-west1",
        purpose="REGIONAL_MANAGED_PROXY",
        role="ACTIVE",
        network=default.id)
    # Backend subnet
    default_subnetwork = gcp.compute.Subnetwork("default",
        name="l7-ilb-subnet",
        ip_cidr_range="10.0.1.0/24",
        region="europe-west1",
        network=default.id)
    # Reserved internal address
    default_address = gcp.compute.Address("default",
        name="l7-ilb-ip",
        subnetwork=default_subnetwork.id,
        address_type="INTERNAL",
        address="10.0.1.5",
        region="europe-west1",
        purpose="SHARED_LOADBALANCER_VIP")
    # Self-signed regional SSL certificate for testing
    default_private_key = tls.PrivateKey("default",
        algorithm="RSA",
        rsa_bits=2048)
    default_self_signed_cert = tls.SelfSignedCert("default",
        key_algorithm=default_private_key.algorithm,
        private_key_pem=default_private_key.private_key_pem,
        validity_period_hours=12,
        early_renewal_hours=3,
        allowed_uses=[
            "key_encipherment",
            "digital_signature",
            "server_auth",
        ],
        dns_names=["example.com"],
        subject=tls.SelfSignedCertSubjectArgs(
            common_name="example.com",
            organization="ACME Examples, Inc",
        ))
    default_region_ssl_certificate = gcp.compute.RegionSslCertificate("default",
        name_prefix="my-certificate-",
        private_key=default_private_key.private_key_pem,
        certificate=default_self_signed_cert.cert_pem,
        region="europe-west1")
    # Regional health check
    default_region_health_check = gcp.compute.RegionHealthCheck("default",
        name="l7-ilb-hc",
        region="europe-west1",
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port_specification="USE_SERVING_PORT",
        ))
    # Instance template
    default_instance_template = gcp.compute.InstanceTemplate("default",
        network_interfaces=[gcp.compute.InstanceTemplateNetworkInterfaceArgs(
            access_configs=[gcp.compute.InstanceTemplateNetworkInterfaceAccessConfigArgs()],
            network=default.id,
            subnetwork=default_subnetwork.id,
        )],
        name="l7-ilb-mig-template",
        machine_type="e2-small",
        tags=["http-server"],
        disks=[gcp.compute.InstanceTemplateDiskArgs(
            source_image="debian-cloud/debian-10",
            auto_delete=True,
            boot=True,
        )],
        metadata={
            "startup-script": """#! /bin/bash
    set -euo pipefail
    
    export DEBIAN_FRONTEND=noninteractive
    apt-get update
    apt-get install -y nginx-light jq
    
    NAME=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/hostname")
    IP=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip")
    METADATA=$(curl -f -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/attributes/?recursive=True" | jq 'del(.["startup-script"])')
    
    cat <<EOF > /var/www/html/index.html
    <pre>
    Name: $NAME
    IP: $IP
    Metadata: $METADATA
    </pre>
    EOF
    """,
        })
    # Regional MIG
    default_region_instance_group_manager = gcp.compute.RegionInstanceGroupManager("default",
        name="l7-ilb-mig1",
        region="europe-west1",
        versions=[gcp.compute.RegionInstanceGroupManagerVersionArgs(
            instance_template=default_instance_template.id,
            name="primary",
        )],
        named_ports=[gcp.compute.RegionInstanceGroupManagerNamedPortArgs(
            name="http-server",
            port=80,
        )],
        base_instance_name="vm",
        target_size=2)
    # Regional backend service
    default_region_backend_service = gcp.compute.RegionBackendService("default",
        name="l7-ilb-backend-service",
        region="europe-west1",
        protocol="HTTP",
        port_name="http-server",
        load_balancing_scheme="INTERNAL_MANAGED",
        timeout_sec=10,
        health_checks=default_region_health_check.id,
        backends=[gcp.compute.RegionBackendServiceBackendArgs(
            group=default_region_instance_group_manager.instance_group,
            balancing_mode="UTILIZATION",
            capacity_scaler=1,
        )])
    # Regional URL map
    https_lb = gcp.compute.RegionUrlMap("https_lb",
        name="l7-ilb-regional-url-map",
        region="europe-west1",
        default_service=default_region_backend_service.id)
    # Regional target HTTPS proxy
    default_region_target_https_proxy = gcp.compute.RegionTargetHttpsProxy("default",
        name="l7-ilb-target-https-proxy",
        region="europe-west1",
        url_map=https_lb.id,
        ssl_certificates=[default_region_ssl_certificate.self_link])
    # Regional forwarding rule
    default_forwarding_rule = gcp.compute.ForwardingRule("default",
        name="l7-ilb-forwarding-rule",
        region="europe-west1",
        ip_protocol="TCP",
        ip_address=default_address.id,
        load_balancing_scheme="INTERNAL_MANAGED",
        port_range="443",
        target=default_region_target_https_proxy.id,
        network=default.id,
        subnetwork=default_subnetwork.id,
        network_tier="PREMIUM")
    # Allow all access to health check ranges
    default_firewall = gcp.compute.Firewall("default",
        name="l7-ilb-fw-allow-hc",
        direction="INGRESS",
        network=default.id,
        source_ranges=[
            "130.211.0.0/22",
            "35.191.0.0/16",
            "35.235.240.0/20",
        ],
        allows=[gcp.compute.FirewallAllowArgs(
            protocol="tcp",
        )])
    # Allow http from proxy subnet to backends
    backends = gcp.compute.Firewall("backends",
        name="l7-ilb-fw-allow-ilb-to-backends",
        direction="INGRESS",
        network=default.id,
        source_ranges=["10.0.0.0/24"],
        target_tags=["http-server"],
        allows=[gcp.compute.FirewallAllowArgs(
            protocol="tcp",
            ports=[
                "80",
                "443",
                "8080",
            ],
        )])
    # Test instance
    default_instance = gcp.compute.Instance("default",
        name="l7-ilb-test-vm",
        zone="europe-west1-b",
        machine_type="e2-small",
        network_interfaces=[gcp.compute.InstanceNetworkInterfaceArgs(
            network=default.id,
            subnetwork=default_subnetwork.id,
        )],
        boot_disk=gcp.compute.InstanceBootDiskArgs(
            initialize_params=gcp.compute.InstanceBootDiskInitializeParamsArgs(
                image="debian-cloud/debian-10",
            ),
        ))
    ### HTTP-to-HTTPS redirect ###
    # Regional URL map
    redirect_region_url_map = gcp.compute.RegionUrlMap("redirect",
        name="l7-ilb-redirect-url-map",
        region="europe-west1",
        default_service=default_region_backend_service.id,
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["*"],
            path_matcher="allpaths",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="allpaths",
            default_service=default_region_backend_service.id,
            path_rules=[gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
                paths=["/"],
                url_redirect=gcp.compute.RegionUrlMapPathMatcherPathRuleUrlRedirectArgs(
                    https_redirect=True,
                    host_redirect="10.0.1.5:443",
                    redirect_response_code="PERMANENT_REDIRECT",
                    strip_query=True,
                ),
            )],
        )])
    # Regional HTTP proxy
    default_region_target_http_proxy = gcp.compute.RegionTargetHttpProxy("default",
        name="l7-ilb-target-http-proxy",
        region="europe-west1",
        url_map=redirect_region_url_map.id)
    # Regional forwarding rule
    redirect = gcp.compute.ForwardingRule("redirect",
        name="l7-ilb-redirect",
        region="europe-west1",
        ip_protocol="TCP",
        ip_address=default_address.id,
        load_balancing_scheme="INTERNAL_MANAGED",
        port_range="80",
        target=default_region_target_http_proxy.id,
        network=default.id,
        subnetwork=default_subnetwork.id,
        network_tier="PREMIUM")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi-tls/sdk/v4/go/tls"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Internal HTTPS load balancer with HTTP-to-HTTPS redirect
    		// VPC network
    		_, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
    			Name:                  pulumi.String("l7-ilb-network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// Proxy-only subnet
    		_, err = compute.NewSubnetwork(ctx, "proxy_subnet", &compute.SubnetworkArgs{
    			Name:        pulumi.String("l7-ilb-proxy-subnet"),
    			IpCidrRange: pulumi.String("10.0.0.0/24"),
    			Region:      pulumi.String("europe-west1"),
    			Purpose:     pulumi.String("REGIONAL_MANAGED_PROXY"),
    			Role:        pulumi.String("ACTIVE"),
    			Network:     _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		// Backend subnet
    		defaultSubnetwork, err := compute.NewSubnetwork(ctx, "default", &compute.SubnetworkArgs{
    			Name:        pulumi.String("l7-ilb-subnet"),
    			IpCidrRange: pulumi.String("10.0.1.0/24"),
    			Region:      pulumi.String("europe-west1"),
    			Network:     _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		// Reserved internal address
    		defaultAddress, err := compute.NewAddress(ctx, "default", &compute.AddressArgs{
    			Name:        pulumi.String("l7-ilb-ip"),
    			Subnetwork:  defaultSubnetwork.ID(),
    			AddressType: pulumi.String("INTERNAL"),
    			Address:     pulumi.String("10.0.1.5"),
    			Region:      pulumi.String("europe-west1"),
    			Purpose:     pulumi.String("SHARED_LOADBALANCER_VIP"),
    		})
    		if err != nil {
    			return err
    		}
    		// Self-signed regional SSL certificate for testing
    		defaultPrivateKey, err := tls.NewPrivateKey(ctx, "default", &tls.PrivateKeyArgs{
    			Algorithm: pulumi.String("RSA"),
    			RsaBits:   pulumi.Int(2048),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSelfSignedCert, err := tls.NewSelfSignedCert(ctx, "default", &tls.SelfSignedCertArgs{
    			KeyAlgorithm:        defaultPrivateKey.Algorithm,
    			PrivateKeyPem:       defaultPrivateKey.PrivateKeyPem,
    			ValidityPeriodHours: pulumi.Int(12),
    			EarlyRenewalHours:   pulumi.Int(3),
    			AllowedUses: pulumi.StringArray{
    				pulumi.String("key_encipherment"),
    				pulumi.String("digital_signature"),
    				pulumi.String("server_auth"),
    			},
    			DnsNames: pulumi.StringArray{
    				pulumi.String("example.com"),
    			},
    			Subject: &tls.SelfSignedCertSubjectArgs{
    				CommonName:   pulumi.String("example.com"),
    				Organization: pulumi.String("ACME Examples, Inc"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultRegionSslCertificate, err := compute.NewRegionSslCertificate(ctx, "default", &compute.RegionSslCertificateArgs{
    			NamePrefix:  pulumi.String("my-certificate-"),
    			PrivateKey:  defaultPrivateKey.PrivateKeyPem,
    			Certificate: defaultSelfSignedCert.CertPem,
    			Region:      pulumi.String("europe-west1"),
    		})
    		if err != nil {
    			return err
    		}
    		// Regional health check
    		defaultRegionHealthCheck, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Name:   pulumi.String("l7-ilb-hc"),
    			Region: pulumi.String("europe-west1"),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				PortSpecification: pulumi.String("USE_SERVING_PORT"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Instance template
    		defaultInstanceTemplate, err := compute.NewInstanceTemplate(ctx, "default", &compute.InstanceTemplateArgs{
    			NetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{
    				&compute.InstanceTemplateNetworkInterfaceArgs{
    					AccessConfigs: compute.InstanceTemplateNetworkInterfaceAccessConfigArray{
    						nil,
    					},
    					Network:    _default.ID(),
    					Subnetwork: defaultSubnetwork.ID(),
    				},
    			},
    			Name:        pulumi.String("l7-ilb-mig-template"),
    			MachineType: pulumi.String("e2-small"),
    			Tags: pulumi.StringArray{
    				pulumi.String("http-server"),
    			},
    			Disks: compute.InstanceTemplateDiskArray{
    				&compute.InstanceTemplateDiskArgs{
    					SourceImage: pulumi.String("debian-cloud/debian-10"),
    					AutoDelete:  pulumi.Bool(true),
    					Boot:        pulumi.Bool(true),
    				},
    			},
    			Metadata: pulumi.Map{
    				"startup-script": pulumi.Any(`#! /bin/bash
    set -euo pipefail
    
    export DEBIAN_FRONTEND=noninteractive
    apt-get update
    apt-get install -y nginx-light jq
    
    NAME=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/hostname")
    IP=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip")
    METADATA=$(curl -f -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/attributes/?recursive=True" | jq 'del(.["startup-script"])')
    
    cat <<EOF > /var/www/html/index.html
    <pre>
    Name: $NAME
    IP: $IP
    Metadata: $METADATA
    </pre>
    EOF
    `),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Regional MIG
    		defaultRegionInstanceGroupManager, err := compute.NewRegionInstanceGroupManager(ctx, "default", &compute.RegionInstanceGroupManagerArgs{
    			Name:   pulumi.String("l7-ilb-mig1"),
    			Region: pulumi.String("europe-west1"),
    			Versions: compute.RegionInstanceGroupManagerVersionArray{
    				&compute.RegionInstanceGroupManagerVersionArgs{
    					InstanceTemplate: defaultInstanceTemplate.ID(),
    					Name:             pulumi.String("primary"),
    				},
    			},
    			NamedPorts: compute.RegionInstanceGroupManagerNamedPortArray{
    				&compute.RegionInstanceGroupManagerNamedPortArgs{
    					Name: pulumi.String("http-server"),
    					Port: pulumi.Int(80),
    				},
    			},
    			BaseInstanceName: pulumi.String("vm"),
    			TargetSize:       pulumi.Int(2),
    		})
    		if err != nil {
    			return err
    		}
    		// Regional backend service
    		defaultRegionBackendService, err := compute.NewRegionBackendService(ctx, "default", &compute.RegionBackendServiceArgs{
    			Name:                pulumi.String("l7-ilb-backend-service"),
    			Region:              pulumi.String("europe-west1"),
    			Protocol:            pulumi.String("HTTP"),
    			PortName:            pulumi.String("http-server"),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    			TimeoutSec:          pulumi.Int(10),
    			HealthChecks:        defaultRegionHealthCheck.ID(),
    			Backends: compute.RegionBackendServiceBackendArray{
    				&compute.RegionBackendServiceBackendArgs{
    					Group:          defaultRegionInstanceGroupManager.InstanceGroup,
    					BalancingMode:  pulumi.String("UTILIZATION"),
    					CapacityScaler: pulumi.Float64(1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Regional URL map
    		httpsLb, err := compute.NewRegionUrlMap(ctx, "https_lb", &compute.RegionUrlMapArgs{
    			Name:           pulumi.String("l7-ilb-regional-url-map"),
    			Region:         pulumi.String("europe-west1"),
    			DefaultService: defaultRegionBackendService.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		// Regional target HTTPS proxy
    		defaultRegionTargetHttpsProxy, err := compute.NewRegionTargetHttpsProxy(ctx, "default", &compute.RegionTargetHttpsProxyArgs{
    			Name:   pulumi.String("l7-ilb-target-https-proxy"),
    			Region: pulumi.String("europe-west1"),
    			UrlMap: httpsLb.ID(),
    			SslCertificates: pulumi.StringArray{
    				defaultRegionSslCertificate.SelfLink,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Regional forwarding rule
    		_, err = compute.NewForwardingRule(ctx, "default", &compute.ForwardingRuleArgs{
    			Name:                pulumi.String("l7-ilb-forwarding-rule"),
    			Region:              pulumi.String("europe-west1"),
    			IpProtocol:          pulumi.String("TCP"),
    			IpAddress:           defaultAddress.ID(),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    			PortRange:           pulumi.String("443"),
    			Target:              defaultRegionTargetHttpsProxy.ID(),
    			Network:             _default.ID(),
    			Subnetwork:          defaultSubnetwork.ID(),
    			NetworkTier:         pulumi.String("PREMIUM"),
    		})
    		if err != nil {
    			return err
    		}
    		// Allow all access to health check ranges
    		_, err = compute.NewFirewall(ctx, "default", &compute.FirewallArgs{
    			Name:      pulumi.String("l7-ilb-fw-allow-hc"),
    			Direction: pulumi.String("INGRESS"),
    			Network:   _default.ID(),
    			SourceRanges: pulumi.StringArray{
    				pulumi.String("130.211.0.0/22"),
    				pulumi.String("35.191.0.0/16"),
    				pulumi.String("35.235.240.0/20"),
    			},
    			Allows: compute.FirewallAllowArray{
    				&compute.FirewallAllowArgs{
    					Protocol: pulumi.String("tcp"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Allow http from proxy subnet to backends
    		_, err = compute.NewFirewall(ctx, "backends", &compute.FirewallArgs{
    			Name:      pulumi.String("l7-ilb-fw-allow-ilb-to-backends"),
    			Direction: pulumi.String("INGRESS"),
    			Network:   _default.ID(),
    			SourceRanges: pulumi.StringArray{
    				pulumi.String("10.0.0.0/24"),
    			},
    			TargetTags: pulumi.StringArray{
    				pulumi.String("http-server"),
    			},
    			Allows: compute.FirewallAllowArray{
    				&compute.FirewallAllowArgs{
    					Protocol: pulumi.String("tcp"),
    					Ports: pulumi.StringArray{
    						pulumi.String("80"),
    						pulumi.String("443"),
    						pulumi.String("8080"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Test instance
    		_, err = compute.NewInstance(ctx, "default", &compute.InstanceArgs{
    			Name:        pulumi.String("l7-ilb-test-vm"),
    			Zone:        pulumi.String("europe-west1-b"),
    			MachineType: pulumi.String("e2-small"),
    			NetworkInterfaces: compute.InstanceNetworkInterfaceArray{
    				&compute.InstanceNetworkInterfaceArgs{
    					Network:    _default.ID(),
    					Subnetwork: defaultSubnetwork.ID(),
    				},
    			},
    			BootDisk: &compute.InstanceBootDiskArgs{
    				InitializeParams: &compute.InstanceBootDiskInitializeParamsArgs{
    					Image: pulumi.String("debian-cloud/debian-10"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Regional URL map
    		redirectRegionUrlMap, err := compute.NewRegionUrlMap(ctx, "redirect", &compute.RegionUrlMapArgs{
    			Name:           pulumi.String("l7-ilb-redirect-url-map"),
    			Region:         pulumi.String("europe-west1"),
    			DefaultService: defaultRegionBackendService.ID(),
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("*"),
    					},
    					PathMatcher: pulumi.String("allpaths"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("allpaths"),
    					DefaultService: defaultRegionBackendService.ID(),
    					PathRules: compute.RegionUrlMapPathMatcherPathRuleArray{
    						&compute.RegionUrlMapPathMatcherPathRuleArgs{
    							Paths: pulumi.StringArray{
    								pulumi.String("/"),
    							},
    							UrlRedirect: &compute.RegionUrlMapPathMatcherPathRuleUrlRedirectArgs{
    								HttpsRedirect:        pulumi.Bool(true),
    								HostRedirect:         pulumi.String("10.0.1.5:443"),
    								RedirectResponseCode: pulumi.String("PERMANENT_REDIRECT"),
    								StripQuery:           pulumi.Bool(true),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Regional HTTP proxy
    		defaultRegionTargetHttpProxy, err := compute.NewRegionTargetHttpProxy(ctx, "default", &compute.RegionTargetHttpProxyArgs{
    			Name:   pulumi.String("l7-ilb-target-http-proxy"),
    			Region: pulumi.String("europe-west1"),
    			UrlMap: redirectRegionUrlMap.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		// Regional forwarding rule
    		_, err = compute.NewForwardingRule(ctx, "redirect", &compute.ForwardingRuleArgs{
    			Name:                pulumi.String("l7-ilb-redirect"),
    			Region:              pulumi.String("europe-west1"),
    			IpProtocol:          pulumi.String("TCP"),
    			IpAddress:           defaultAddress.ID(),
    			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
    			PortRange:           pulumi.String("80"),
    			Target:              defaultRegionTargetHttpProxy.ID(),
    			Network:             _default.ID(),
    			Subnetwork:          defaultSubnetwork.ID(),
    			NetworkTier:         pulumi.String("PREMIUM"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Tls = Pulumi.Tls;
    
    return await Deployment.RunAsync(() => 
    {
        // Internal HTTPS load balancer with HTTP-to-HTTPS redirect
        // VPC network
        var @default = new Gcp.Compute.Network("default", new()
        {
            Name = "l7-ilb-network",
            AutoCreateSubnetworks = false,
        });
    
        // Proxy-only subnet
        var proxySubnet = new Gcp.Compute.Subnetwork("proxy_subnet", new()
        {
            Name = "l7-ilb-proxy-subnet",
            IpCidrRange = "10.0.0.0/24",
            Region = "europe-west1",
            Purpose = "REGIONAL_MANAGED_PROXY",
            Role = "ACTIVE",
            Network = @default.Id,
        });
    
        // Backend subnet
        var defaultSubnetwork = new Gcp.Compute.Subnetwork("default", new()
        {
            Name = "l7-ilb-subnet",
            IpCidrRange = "10.0.1.0/24",
            Region = "europe-west1",
            Network = @default.Id,
        });
    
        // Reserved internal address
        var defaultAddress = new Gcp.Compute.Address("default", new()
        {
            Name = "l7-ilb-ip",
            Subnetwork = defaultSubnetwork.Id,
            AddressType = "INTERNAL",
            IPAddress = "10.0.1.5",
            Region = "europe-west1",
            Purpose = "SHARED_LOADBALANCER_VIP",
        });
    
        // Self-signed regional SSL certificate for testing
        var defaultPrivateKey = new Tls.PrivateKey("default", new()
        {
            Algorithm = "RSA",
            RsaBits = 2048,
        });
    
        var defaultSelfSignedCert = new Tls.SelfSignedCert("default", new()
        {
            KeyAlgorithm = defaultPrivateKey.Algorithm,
            PrivateKeyPem = defaultPrivateKey.PrivateKeyPem,
            ValidityPeriodHours = 12,
            EarlyRenewalHours = 3,
            AllowedUses = new[]
            {
                "key_encipherment",
                "digital_signature",
                "server_auth",
            },
            DnsNames = new[]
            {
                "example.com",
            },
            Subject = new Tls.Inputs.SelfSignedCertSubjectArgs
            {
                CommonName = "example.com",
                Organization = "ACME Examples, Inc",
            },
        });
    
        var defaultRegionSslCertificate = new Gcp.Compute.RegionSslCertificate("default", new()
        {
            NamePrefix = "my-certificate-",
            PrivateKey = defaultPrivateKey.PrivateKeyPem,
            Certificate = defaultSelfSignedCert.CertPem,
            Region = "europe-west1",
        });
    
        // Regional health check
        var defaultRegionHealthCheck = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Name = "l7-ilb-hc",
            Region = "europe-west1",
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                PortSpecification = "USE_SERVING_PORT",
            },
        });
    
        // Instance template
        var defaultInstanceTemplate = new Gcp.Compute.InstanceTemplate("default", new()
        {
            NetworkInterfaces = new[]
            {
                new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs
                {
                    AccessConfigs = new[]
                    {
                        null,
                    },
                    Network = @default.Id,
                    Subnetwork = defaultSubnetwork.Id,
                },
            },
            Name = "l7-ilb-mig-template",
            MachineType = "e2-small",
            Tags = new[]
            {
                "http-server",
            },
            Disks = new[]
            {
                new Gcp.Compute.Inputs.InstanceTemplateDiskArgs
                {
                    SourceImage = "debian-cloud/debian-10",
                    AutoDelete = true,
                    Boot = true,
                },
            },
            Metadata = 
            {
                { "startup-script", @"#! /bin/bash
    set -euo pipefail
    
    export DEBIAN_FRONTEND=noninteractive
    apt-get update
    apt-get install -y nginx-light jq
    
    NAME=$(curl -H ""Metadata-Flavor: Google"" ""http://metadata.google.internal/computeMetadata/v1/instance/hostname"")
    IP=$(curl -H ""Metadata-Flavor: Google"" ""http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip"")
    METADATA=$(curl -f -H ""Metadata-Flavor: Google"" ""http://metadata.google.internal/computeMetadata/v1/instance/attributes/?recursive=True"" | jq 'del(.[""startup-script""])')
    
    cat <<EOF > /var/www/html/index.html
    <pre>
    Name: $NAME
    IP: $IP
    Metadata: $METADATA
    </pre>
    EOF
    " },
            },
        });
    
        // Regional MIG
        var defaultRegionInstanceGroupManager = new Gcp.Compute.RegionInstanceGroupManager("default", new()
        {
            Name = "l7-ilb-mig1",
            Region = "europe-west1",
            Versions = new[]
            {
                new Gcp.Compute.Inputs.RegionInstanceGroupManagerVersionArgs
                {
                    InstanceTemplate = defaultInstanceTemplate.Id,
                    Name = "primary",
                },
            },
            NamedPorts = new[]
            {
                new Gcp.Compute.Inputs.RegionInstanceGroupManagerNamedPortArgs
                {
                    Name = "http-server",
                    Port = 80,
                },
            },
            BaseInstanceName = "vm",
            TargetSize = 2,
        });
    
        // Regional backend service
        var defaultRegionBackendService = new Gcp.Compute.RegionBackendService("default", new()
        {
            Name = "l7-ilb-backend-service",
            Region = "europe-west1",
            Protocol = "HTTP",
            PortName = "http-server",
            LoadBalancingScheme = "INTERNAL_MANAGED",
            TimeoutSec = 10,
            HealthChecks = defaultRegionHealthCheck.Id,
            Backends = new[]
            {
                new Gcp.Compute.Inputs.RegionBackendServiceBackendArgs
                {
                    Group = defaultRegionInstanceGroupManager.InstanceGroup,
                    BalancingMode = "UTILIZATION",
                    CapacityScaler = 1,
                },
            },
        });
    
        // Regional URL map
        var httpsLb = new Gcp.Compute.RegionUrlMap("https_lb", new()
        {
            Name = "l7-ilb-regional-url-map",
            Region = "europe-west1",
            DefaultService = defaultRegionBackendService.Id,
        });
    
        // Regional target HTTPS proxy
        var defaultRegionTargetHttpsProxy = new Gcp.Compute.RegionTargetHttpsProxy("default", new()
        {
            Name = "l7-ilb-target-https-proxy",
            Region = "europe-west1",
            UrlMap = httpsLb.Id,
            SslCertificates = new[]
            {
                defaultRegionSslCertificate.SelfLink,
            },
        });
    
        // Regional forwarding rule
        var defaultForwardingRule = new Gcp.Compute.ForwardingRule("default", new()
        {
            Name = "l7-ilb-forwarding-rule",
            Region = "europe-west1",
            IpProtocol = "TCP",
            IpAddress = defaultAddress.Id,
            LoadBalancingScheme = "INTERNAL_MANAGED",
            PortRange = "443",
            Target = defaultRegionTargetHttpsProxy.Id,
            Network = @default.Id,
            Subnetwork = defaultSubnetwork.Id,
            NetworkTier = "PREMIUM",
        });
    
        // Allow all access to health check ranges
        var defaultFirewall = new Gcp.Compute.Firewall("default", new()
        {
            Name = "l7-ilb-fw-allow-hc",
            Direction = "INGRESS",
            Network = @default.Id,
            SourceRanges = new[]
            {
                "130.211.0.0/22",
                "35.191.0.0/16",
                "35.235.240.0/20",
            },
            Allows = new[]
            {
                new Gcp.Compute.Inputs.FirewallAllowArgs
                {
                    Protocol = "tcp",
                },
            },
        });
    
        // Allow http from proxy subnet to backends
        var backends = new Gcp.Compute.Firewall("backends", new()
        {
            Name = "l7-ilb-fw-allow-ilb-to-backends",
            Direction = "INGRESS",
            Network = @default.Id,
            SourceRanges = new[]
            {
                "10.0.0.0/24",
            },
            TargetTags = new[]
            {
                "http-server",
            },
            Allows = new[]
            {
                new Gcp.Compute.Inputs.FirewallAllowArgs
                {
                    Protocol = "tcp",
                    Ports = new[]
                    {
                        "80",
                        "443",
                        "8080",
                    },
                },
            },
        });
    
        // Test instance
        var defaultInstance = new Gcp.Compute.Instance("default", new()
        {
            Name = "l7-ilb-test-vm",
            Zone = "europe-west1-b",
            MachineType = "e2-small",
            NetworkInterfaces = new[]
            {
                new Gcp.Compute.Inputs.InstanceNetworkInterfaceArgs
                {
                    Network = @default.Id,
                    Subnetwork = defaultSubnetwork.Id,
                },
            },
            BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs
            {
                InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs
                {
                    Image = "debian-cloud/debian-10",
                },
            },
        });
    
        //## HTTP-to-HTTPS redirect ###
        // Regional URL map
        var redirectRegionUrlMap = new Gcp.Compute.RegionUrlMap("redirect", new()
        {
            Name = "l7-ilb-redirect-url-map",
            Region = "europe-west1",
            DefaultService = defaultRegionBackendService.Id,
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "*",
                    },
                    PathMatcher = "allpaths",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "allpaths",
                    DefaultService = defaultRegionBackendService.Id,
                    PathRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleArgs
                        {
                            Paths = new[]
                            {
                                "/",
                            },
                            UrlRedirect = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherPathRuleUrlRedirectArgs
                            {
                                HttpsRedirect = true,
                                HostRedirect = "10.0.1.5:443",
                                RedirectResponseCode = "PERMANENT_REDIRECT",
                                StripQuery = true,
                            },
                        },
                    },
                },
            },
        });
    
        // Regional HTTP proxy
        var defaultRegionTargetHttpProxy = new Gcp.Compute.RegionTargetHttpProxy("default", new()
        {
            Name = "l7-ilb-target-http-proxy",
            Region = "europe-west1",
            UrlMap = redirectRegionUrlMap.Id,
        });
    
        // Regional forwarding rule
        var redirect = new Gcp.Compute.ForwardingRule("redirect", new()
        {
            Name = "l7-ilb-redirect",
            Region = "europe-west1",
            IpProtocol = "TCP",
            IpAddress = defaultAddress.Id,
            LoadBalancingScheme = "INTERNAL_MANAGED",
            PortRange = "80",
            Target = defaultRegionTargetHttpProxy.Id,
            Network = @default.Id,
            Subnetwork = defaultSubnetwork.Id,
            NetworkTier = "PREMIUM",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.compute.Address;
    import com.pulumi.gcp.compute.AddressArgs;
    import com.pulumi.tls.PrivateKey;
    import com.pulumi.tls.PrivateKeyArgs;
    import com.pulumi.tls.SelfSignedCert;
    import com.pulumi.tls.SelfSignedCertArgs;
    import com.pulumi.tls.inputs.SelfSignedCertSubjectArgs;
    import com.pulumi.gcp.compute.RegionSslCertificate;
    import com.pulumi.gcp.compute.RegionSslCertificateArgs;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.InstanceTemplate;
    import com.pulumi.gcp.compute.InstanceTemplateArgs;
    import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;
    import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
    import com.pulumi.gcp.compute.RegionInstanceGroupManager;
    import com.pulumi.gcp.compute.RegionInstanceGroupManagerArgs;
    import com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerVersionArgs;
    import com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerNamedPortArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.inputs.RegionBackendServiceBackendArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.RegionTargetHttpsProxy;
    import com.pulumi.gcp.compute.RegionTargetHttpsProxyArgs;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.Firewall;
    import com.pulumi.gcp.compute.FirewallArgs;
    import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
    import com.pulumi.gcp.compute.Instance;
    import com.pulumi.gcp.compute.InstanceArgs;
    import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
    import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
    import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import com.pulumi.gcp.compute.RegionTargetHttpProxy;
    import com.pulumi.gcp.compute.RegionTargetHttpProxyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new Network("default", NetworkArgs.builder()        
                .name("l7-ilb-network")
                .autoCreateSubnetworks(false)
                .build());
    
            var proxySubnet = new Subnetwork("proxySubnet", SubnetworkArgs.builder()        
                .name("l7-ilb-proxy-subnet")
                .ipCidrRange("10.0.0.0/24")
                .region("europe-west1")
                .purpose("REGIONAL_MANAGED_PROXY")
                .role("ACTIVE")
                .network(default_.id())
                .build());
    
            var defaultSubnetwork = new Subnetwork("defaultSubnetwork", SubnetworkArgs.builder()        
                .name("l7-ilb-subnet")
                .ipCidrRange("10.0.1.0/24")
                .region("europe-west1")
                .network(default_.id())
                .build());
    
            var defaultAddress = new Address("defaultAddress", AddressArgs.builder()        
                .name("l7-ilb-ip")
                .subnetwork(defaultSubnetwork.id())
                .addressType("INTERNAL")
                .address("10.0.1.5")
                .region("europe-west1")
                .purpose("SHARED_LOADBALANCER_VIP")
                .build());
    
            var defaultPrivateKey = new PrivateKey("defaultPrivateKey", PrivateKeyArgs.builder()        
                .algorithm("RSA")
                .rsaBits(2048)
                .build());
    
            var defaultSelfSignedCert = new SelfSignedCert("defaultSelfSignedCert", SelfSignedCertArgs.builder()        
                .keyAlgorithm(defaultPrivateKey.algorithm())
                .privateKeyPem(defaultPrivateKey.privateKeyPem())
                .validityPeriodHours(12)
                .earlyRenewalHours(3)
                .allowedUses(            
                    "key_encipherment",
                    "digital_signature",
                    "server_auth")
                .dnsNames("example.com")
                .subject(SelfSignedCertSubjectArgs.builder()
                    .commonName("example.com")
                    .organization("ACME Examples, Inc")
                    .build())
                .build());
    
            var defaultRegionSslCertificate = new RegionSslCertificate("defaultRegionSslCertificate", RegionSslCertificateArgs.builder()        
                .namePrefix("my-certificate-")
                .privateKey(defaultPrivateKey.privateKeyPem())
                .certificate(defaultSelfSignedCert.certPem())
                .region("europe-west1")
                .build());
    
            var defaultRegionHealthCheck = new RegionHealthCheck("defaultRegionHealthCheck", RegionHealthCheckArgs.builder()        
                .name("l7-ilb-hc")
                .region("europe-west1")
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .portSpecification("USE_SERVING_PORT")
                    .build())
                .build());
    
            var defaultInstanceTemplate = new InstanceTemplate("defaultInstanceTemplate", InstanceTemplateArgs.builder()        
                .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()
                    .accessConfigs()
                    .network(default_.id())
                    .subnetwork(defaultSubnetwork.id())
                    .build())
                .name("l7-ilb-mig-template")
                .machineType("e2-small")
                .tags("http-server")
                .disks(InstanceTemplateDiskArgs.builder()
                    .sourceImage("debian-cloud/debian-10")
                    .autoDelete(true)
                    .boot(true)
                    .build())
                .metadata(Map.of("startup-script", """
    #! /bin/bash
    set -euo pipefail
    
    export DEBIAN_FRONTEND=noninteractive
    apt-get update
    apt-get install -y nginx-light jq
    
    NAME=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/hostname")
    IP=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip")
    METADATA=$(curl -f -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/attributes/?recursive=True" | jq 'del(.["startup-script"])')
    
    cat <<EOF > /var/www/html/index.html
    <pre>
    Name: $NAME
    IP: $IP
    Metadata: $METADATA
    </pre>
    EOF
                """))
                .build());
    
            var defaultRegionInstanceGroupManager = new RegionInstanceGroupManager("defaultRegionInstanceGroupManager", RegionInstanceGroupManagerArgs.builder()        
                .name("l7-ilb-mig1")
                .region("europe-west1")
                .versions(RegionInstanceGroupManagerVersionArgs.builder()
                    .instanceTemplate(defaultInstanceTemplate.id())
                    .name("primary")
                    .build())
                .namedPorts(RegionInstanceGroupManagerNamedPortArgs.builder()
                    .name("http-server")
                    .port(80)
                    .build())
                .baseInstanceName("vm")
                .targetSize(2)
                .build());
    
            var defaultRegionBackendService = new RegionBackendService("defaultRegionBackendService", RegionBackendServiceArgs.builder()        
                .name("l7-ilb-backend-service")
                .region("europe-west1")
                .protocol("HTTP")
                .portName("http-server")
                .loadBalancingScheme("INTERNAL_MANAGED")
                .timeoutSec(10)
                .healthChecks(defaultRegionHealthCheck.id())
                .backends(RegionBackendServiceBackendArgs.builder()
                    .group(defaultRegionInstanceGroupManager.instanceGroup())
                    .balancingMode("UTILIZATION")
                    .capacityScaler(1)
                    .build())
                .build());
    
            var httpsLb = new RegionUrlMap("httpsLb", RegionUrlMapArgs.builder()        
                .name("l7-ilb-regional-url-map")
                .region("europe-west1")
                .defaultService(defaultRegionBackendService.id())
                .build());
    
            var defaultRegionTargetHttpsProxy = new RegionTargetHttpsProxy("defaultRegionTargetHttpsProxy", RegionTargetHttpsProxyArgs.builder()        
                .name("l7-ilb-target-https-proxy")
                .region("europe-west1")
                .urlMap(httpsLb.id())
                .sslCertificates(defaultRegionSslCertificate.selfLink())
                .build());
    
            var defaultForwardingRule = new ForwardingRule("defaultForwardingRule", ForwardingRuleArgs.builder()        
                .name("l7-ilb-forwarding-rule")
                .region("europe-west1")
                .ipProtocol("TCP")
                .ipAddress(defaultAddress.id())
                .loadBalancingScheme("INTERNAL_MANAGED")
                .portRange("443")
                .target(defaultRegionTargetHttpsProxy.id())
                .network(default_.id())
                .subnetwork(defaultSubnetwork.id())
                .networkTier("PREMIUM")
                .build());
    
            var defaultFirewall = new Firewall("defaultFirewall", FirewallArgs.builder()        
                .name("l7-ilb-fw-allow-hc")
                .direction("INGRESS")
                .network(default_.id())
                .sourceRanges(            
                    "130.211.0.0/22",
                    "35.191.0.0/16",
                    "35.235.240.0/20")
                .allows(FirewallAllowArgs.builder()
                    .protocol("tcp")
                    .build())
                .build());
    
            var backends = new Firewall("backends", FirewallArgs.builder()        
                .name("l7-ilb-fw-allow-ilb-to-backends")
                .direction("INGRESS")
                .network(default_.id())
                .sourceRanges("10.0.0.0/24")
                .targetTags("http-server")
                .allows(FirewallAllowArgs.builder()
                    .protocol("tcp")
                    .ports(                
                        "80",
                        "443",
                        "8080")
                    .build())
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
                .name("l7-ilb-test-vm")
                .zone("europe-west1-b")
                .machineType("e2-small")
                .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
                    .network(default_.id())
                    .subnetwork(defaultSubnetwork.id())
                    .build())
                .bootDisk(InstanceBootDiskArgs.builder()
                    .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
                        .image("debian-cloud/debian-10")
                        .build())
                    .build())
                .build());
    
            var redirectRegionUrlMap = new RegionUrlMap("redirectRegionUrlMap", RegionUrlMapArgs.builder()        
                .name("l7-ilb-redirect-url-map")
                .region("europe-west1")
                .defaultService(defaultRegionBackendService.id())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("*")
                    .pathMatcher("allpaths")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("allpaths")
                    .defaultService(defaultRegionBackendService.id())
                    .pathRules(RegionUrlMapPathMatcherPathRuleArgs.builder()
                        .paths("/")
                        .urlRedirect(RegionUrlMapPathMatcherPathRuleUrlRedirectArgs.builder()
                            .httpsRedirect(true)
                            .hostRedirect("10.0.1.5:443")
                            .redirectResponseCode("PERMANENT_REDIRECT")
                            .stripQuery(true)
                            .build())
                        .build())
                    .build())
                .build());
    
            var defaultRegionTargetHttpProxy = new RegionTargetHttpProxy("defaultRegionTargetHttpProxy", RegionTargetHttpProxyArgs.builder()        
                .name("l7-ilb-target-http-proxy")
                .region("europe-west1")
                .urlMap(redirectRegionUrlMap.id())
                .build());
    
            var redirect = new ForwardingRule("redirect", ForwardingRuleArgs.builder()        
                .name("l7-ilb-redirect")
                .region("europe-west1")
                .ipProtocol("TCP")
                .ipAddress(defaultAddress.id())
                .loadBalancingScheme("INTERNAL_MANAGED")
                .portRange("80")
                .target(defaultRegionTargetHttpProxy.id())
                .network(default_.id())
                .subnetwork(defaultSubnetwork.id())
                .networkTier("PREMIUM")
                .build());
    
        }
    }
    
    resources:
      # Internal HTTPS load balancer with HTTP-to-HTTPS redirect
    
    
    
      # VPC network
      default:
        type: gcp:compute:Network
        properties:
          name: l7-ilb-network
          autoCreateSubnetworks: false
      # Proxy-only subnet
      proxySubnet:
        type: gcp:compute:Subnetwork
        name: proxy_subnet
        properties:
          name: l7-ilb-proxy-subnet
          ipCidrRange: 10.0.0.0/24
          region: europe-west1
          purpose: REGIONAL_MANAGED_PROXY
          role: ACTIVE
          network: ${default.id}
      # Backend subnet
      defaultSubnetwork:
        type: gcp:compute:Subnetwork
        name: default
        properties:
          name: l7-ilb-subnet
          ipCidrRange: 10.0.1.0/24
          region: europe-west1
          network: ${default.id}
      # Reserved internal address
      defaultAddress:
        type: gcp:compute:Address
        name: default
        properties:
          name: l7-ilb-ip
          subnetwork: ${defaultSubnetwork.id}
          addressType: INTERNAL
          address: 10.0.1.5
          region: europe-west1
          purpose: SHARED_LOADBALANCER_VIP
      # Regional forwarding rule
      defaultForwardingRule:
        type: gcp:compute:ForwardingRule
        name: default
        properties:
          name: l7-ilb-forwarding-rule
          region: europe-west1
          ipProtocol: TCP
          ipAddress: ${defaultAddress.id}
          loadBalancingScheme: INTERNAL_MANAGED
          portRange: '443'
          target: ${defaultRegionTargetHttpsProxy.id}
          network: ${default.id}
          subnetwork: ${defaultSubnetwork.id}
          networkTier: PREMIUM
      # Self-signed regional SSL certificate for testing
      defaultPrivateKey:
        type: tls:PrivateKey
        name: default
        properties:
          algorithm: RSA
          rsaBits: 2048
      defaultSelfSignedCert:
        type: tls:SelfSignedCert
        name: default
        properties:
          keyAlgorithm: ${defaultPrivateKey.algorithm}
          privateKeyPem: ${defaultPrivateKey.privateKeyPem}
          validityPeriodHours: 12 # Generate a new certificate if Terraform is run within three
          #   # hours of the certificate's expiration time.
          earlyRenewalHours: 3 # Reasonable set of uses for a server SSL certificate.
          allowedUses:
            - key_encipherment
            - digital_signature
            - server_auth
          dnsNames:
            - example.com
          subject:
            commonName: example.com
            organization: ACME Examples, Inc
      defaultRegionSslCertificate:
        type: gcp:compute:RegionSslCertificate
        name: default
        properties:
          namePrefix: my-certificate-
          privateKey: ${defaultPrivateKey.privateKeyPem}
          certificate: ${defaultSelfSignedCert.certPem}
          region: europe-west1
      # Regional target HTTPS proxy
      defaultRegionTargetHttpsProxy:
        type: gcp:compute:RegionTargetHttpsProxy
        name: default
        properties:
          name: l7-ilb-target-https-proxy
          region: europe-west1
          urlMap: ${httpsLb.id}
          sslCertificates:
            - ${defaultRegionSslCertificate.selfLink}
      # Regional URL map
      httpsLb:
        type: gcp:compute:RegionUrlMap
        name: https_lb
        properties:
          name: l7-ilb-regional-url-map
          region: europe-west1
          defaultService: ${defaultRegionBackendService.id}
      # Regional backend service
      defaultRegionBackendService:
        type: gcp:compute:RegionBackendService
        name: default
        properties:
          name: l7-ilb-backend-service
          region: europe-west1
          protocol: HTTP
          portName: http-server
          loadBalancingScheme: INTERNAL_MANAGED
          timeoutSec: 10
          healthChecks: ${defaultRegionHealthCheck.id}
          backends:
            - group: ${defaultRegionInstanceGroupManager.instanceGroup}
              balancingMode: UTILIZATION
              capacityScaler: 1
      # Instance template
      defaultInstanceTemplate:
        type: gcp:compute:InstanceTemplate
        name: default
        properties:
          networkInterfaces:
            - accessConfigs:
                - {}
              network: ${default.id}
              subnetwork: ${defaultSubnetwork.id}
          name: l7-ilb-mig-template
          machineType: e2-small
          tags:
            - http-server
          disks:
            - sourceImage: debian-cloud/debian-10
              autoDelete: true
              boot: true
          metadata:
            startup-script: |
              #! /bin/bash
              set -euo pipefail
    
              export DEBIAN_FRONTEND=noninteractive
              apt-get update
              apt-get install -y nginx-light jq
    
              NAME=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/hostname")
              IP=$(curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip")
              METADATA=$(curl -f -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/attributes/?recursive=True" | jq 'del(.["startup-script"])')
    
              cat <<EOF > /var/www/html/index.html
              <pre>
              Name: $NAME
              IP: $IP
              Metadata: $METADATA
              </pre>
              EOF          
      # Regional health check
      defaultRegionHealthCheck:
        type: gcp:compute:RegionHealthCheck
        name: default
        properties:
          name: l7-ilb-hc
          region: europe-west1
          httpHealthCheck:
            portSpecification: USE_SERVING_PORT
      # Regional MIG
      defaultRegionInstanceGroupManager:
        type: gcp:compute:RegionInstanceGroupManager
        name: default
        properties:
          name: l7-ilb-mig1
          region: europe-west1
          versions:
            - instanceTemplate: ${defaultInstanceTemplate.id}
              name: primary
          namedPorts:
            - name: http-server
              port: 80
          baseInstanceName: vm
          targetSize: 2
      # Allow all access to health check ranges
      defaultFirewall:
        type: gcp:compute:Firewall
        name: default
        properties:
          name: l7-ilb-fw-allow-hc
          direction: INGRESS
          network: ${default.id}
          sourceRanges:
            - 130.211.0.0/22
            - 35.191.0.0/16
            - 35.235.240.0/20
          allows:
            - protocol: tcp
      # Allow http from proxy subnet to backends
      backends:
        type: gcp:compute:Firewall
        properties:
          name: l7-ilb-fw-allow-ilb-to-backends
          direction: INGRESS
          network: ${default.id}
          sourceRanges:
            - 10.0.0.0/24
          targetTags:
            - http-server
          allows:
            - protocol: tcp
              ports:
                - '80'
                - '443'
                - '8080'
      # Test instance
      defaultInstance: ### HTTP-to-HTTPS redirect ###
        type: gcp:compute:Instance
        name: default
        properties:
          name: l7-ilb-test-vm
          zone: europe-west1-b
          machineType: e2-small
          networkInterfaces:
            - network: ${default.id}
              subnetwork: ${defaultSubnetwork.id}
          bootDisk:
            initializeParams:
              image: debian-cloud/debian-10
      # Regional forwarding rule
      redirect:
        type: gcp:compute:ForwardingRule
        properties:
          name: l7-ilb-redirect
          region: europe-west1
          ipProtocol: TCP
          ipAddress: ${defaultAddress.id}
          loadBalancingScheme: INTERNAL_MANAGED
          portRange: '80'
          target: ${defaultRegionTargetHttpProxy.id}
          network: ${default.id}
          subnetwork: ${defaultSubnetwork.id}
          networkTier: PREMIUM
      # Regional HTTP proxy
      defaultRegionTargetHttpProxy:
        type: gcp:compute:RegionTargetHttpProxy
        name: default
        properties:
          name: l7-ilb-target-http-proxy
          region: europe-west1
          urlMap: ${redirectRegionUrlMap.id}
      # Regional URL map
      redirectRegionUrlMap:
        type: gcp:compute:RegionUrlMap
        name: redirect
        properties:
          name: l7-ilb-redirect-url-map
          region: europe-west1
          defaultService: ${defaultRegionBackendService.id}
          hostRules:
            - hosts:
                - '*'
              pathMatcher: allpaths
          pathMatchers:
            - name: allpaths
              defaultService: ${defaultRegionBackendService.id}
              pathRules:
                - paths:
                    - /
                  urlRedirect:
                    httpsRedirect: true
                    hostRedirect: 10.0.1.5:443
                    redirectResponseCode: PERMANENT_REDIRECT
                    stripQuery: true
    

    Region Url Map Path Template Match

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.RegionHealthCheck("default", {
        region: "us-central1",
        name: "health-check",
        checkIntervalSec: 1,
        timeoutSec: 1,
        httpHealthCheck: {
            port: 80,
            requestPath: "/",
        },
    });
    const home_backend = new gcp.compute.RegionBackendService("home-backend", {
        region: "us-central1",
        name: "home-service",
        portName: "http",
        protocol: "HTTP",
        timeoutSec: 10,
        loadBalancingScheme: "EXTERNAL_MANAGED",
        healthChecks: _default.id,
    });
    const cart_backend = new gcp.compute.RegionBackendService("cart-backend", {
        region: "us-central1",
        name: "cart-service",
        portName: "http",
        protocol: "HTTP",
        timeoutSec: 10,
        loadBalancingScheme: "EXTERNAL_MANAGED",
        healthChecks: _default.id,
    });
    const user_backend = new gcp.compute.RegionBackendService("user-backend", {
        region: "us-central1",
        name: "user-service",
        portName: "http",
        protocol: "HTTP",
        timeoutSec: 10,
        loadBalancingScheme: "EXTERNAL_MANAGED",
        healthChecks: _default.id,
    });
    const urlmap = new gcp.compute.RegionUrlMap("urlmap", {
        region: "us-central1",
        name: "urlmap",
        description: "a description",
        defaultService: home_backend.id,
        hostRules: [{
            hosts: ["mysite.com"],
            pathMatcher: "mysite",
        }],
        pathMatchers: [{
            name: "mysite",
            defaultService: home_backend.id,
            routeRules: [
                {
                    matchRules: [{
                        pathTemplateMatch: "/xyzwebservices/v2/xyz/users/{username=*}/carts/{cartid=**}",
                    }],
                    service: cart_backend.id,
                    priority: 1,
                    routeAction: {
                        urlRewrite: {
                            pathTemplateRewrite: "/{username}-{cartid}/",
                        },
                    },
                },
                {
                    matchRules: [{
                        pathTemplateMatch: "/xyzwebservices/v2/xyz/users/*/accountinfo/*",
                    }],
                    service: user_backend.id,
                    priority: 2,
                },
            ],
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.RegionHealthCheck("default",
        region="us-central1",
        name="health-check",
        check_interval_sec=1,
        timeout_sec=1,
        http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
            port=80,
            request_path="/",
        ))
    home_backend = gcp.compute.RegionBackendService("home-backend",
        region="us-central1",
        name="home-service",
        port_name="http",
        protocol="HTTP",
        timeout_sec=10,
        load_balancing_scheme="EXTERNAL_MANAGED",
        health_checks=default.id)
    cart_backend = gcp.compute.RegionBackendService("cart-backend",
        region="us-central1",
        name="cart-service",
        port_name="http",
        protocol="HTTP",
        timeout_sec=10,
        load_balancing_scheme="EXTERNAL_MANAGED",
        health_checks=default.id)
    user_backend = gcp.compute.RegionBackendService("user-backend",
        region="us-central1",
        name="user-service",
        port_name="http",
        protocol="HTTP",
        timeout_sec=10,
        load_balancing_scheme="EXTERNAL_MANAGED",
        health_checks=default.id)
    urlmap = gcp.compute.RegionUrlMap("urlmap",
        region="us-central1",
        name="urlmap",
        description="a description",
        default_service=home_backend.id,
        host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
            hosts=["mysite.com"],
            path_matcher="mysite",
        )],
        path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
            name="mysite",
            default_service=home_backend.id,
            route_rules=[
                gcp.compute.RegionUrlMapPathMatcherRouteRuleArgs(
                    match_rules=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs(
                        path_template_match="/xyzwebservices/v2/xyz/users/{username=*}/carts/{cartid=**}",
                    )],
                    service=cart_backend.id,
                    priority=1,
                    route_action=gcp.compute.RegionUrlMapPathMatcherRouteRuleRouteActionArgs(
                        url_rewrite=gcp.compute.RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewriteArgs(
                            path_template_rewrite="/{username}-{cartid}/",
                        ),
                    ),
                ),
                gcp.compute.RegionUrlMapPathMatcherRouteRuleArgs(
                    match_rules=[gcp.compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs(
                        path_template_match="/xyzwebservices/v2/xyz/users/*/accountinfo/*",
                    )],
                    service=user_backend.id,
                    priority=2,
                ),
            ],
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
    			Region:           pulumi.String("us-central1"),
    			Name:             pulumi.String("health-check"),
    			CheckIntervalSec: pulumi.Int(1),
    			TimeoutSec:       pulumi.Int(1),
    			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
    				Port:        pulumi.Int(80),
    				RequestPath: pulumi.String("/"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionBackendService(ctx, "home-backend", &compute.RegionBackendServiceArgs{
    			Region:              pulumi.String("us-central1"),
    			Name:                pulumi.String("home-service"),
    			PortName:            pulumi.String("http"),
    			Protocol:            pulumi.String("HTTP"),
    			TimeoutSec:          pulumi.Int(10),
    			LoadBalancingScheme: pulumi.String("EXTERNAL_MANAGED"),
    			HealthChecks:        _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionBackendService(ctx, "cart-backend", &compute.RegionBackendServiceArgs{
    			Region:              pulumi.String("us-central1"),
    			Name:                pulumi.String("cart-service"),
    			PortName:            pulumi.String("http"),
    			Protocol:            pulumi.String("HTTP"),
    			TimeoutSec:          pulumi.Int(10),
    			LoadBalancingScheme: pulumi.String("EXTERNAL_MANAGED"),
    			HealthChecks:        _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionBackendService(ctx, "user-backend", &compute.RegionBackendServiceArgs{
    			Region:              pulumi.String("us-central1"),
    			Name:                pulumi.String("user-service"),
    			PortName:            pulumi.String("http"),
    			Protocol:            pulumi.String("HTTP"),
    			TimeoutSec:          pulumi.Int(10),
    			LoadBalancingScheme: pulumi.String("EXTERNAL_MANAGED"),
    			HealthChecks:        _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionUrlMap(ctx, "urlmap", &compute.RegionUrlMapArgs{
    			Region:         pulumi.String("us-central1"),
    			Name:           pulumi.String("urlmap"),
    			Description:    pulumi.String("a description"),
    			DefaultService: home_backend.ID(),
    			HostRules: compute.RegionUrlMapHostRuleArray{
    				&compute.RegionUrlMapHostRuleArgs{
    					Hosts: pulumi.StringArray{
    						pulumi.String("mysite.com"),
    					},
    					PathMatcher: pulumi.String("mysite"),
    				},
    			},
    			PathMatchers: compute.RegionUrlMapPathMatcherArray{
    				&compute.RegionUrlMapPathMatcherArgs{
    					Name:           pulumi.String("mysite"),
    					DefaultService: home_backend.ID(),
    					RouteRules: compute.RegionUrlMapPathMatcherRouteRuleArray{
    						&compute.RegionUrlMapPathMatcherRouteRuleArgs{
    							MatchRules: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArray{
    								&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs{
    									PathTemplateMatch: pulumi.String("/xyzwebservices/v2/xyz/users/{username=*}/carts/{cartid=**}"),
    								},
    							},
    							Service:  cart_backend.ID(),
    							Priority: pulumi.Int(1),
    							RouteAction: &compute.RegionUrlMapPathMatcherRouteRuleRouteActionArgs{
    								UrlRewrite: &compute.RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewriteArgs{
    									PathTemplateRewrite: pulumi.String("/{username}-{cartid}/"),
    								},
    							},
    						},
    						&compute.RegionUrlMapPathMatcherRouteRuleArgs{
    							MatchRules: compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArray{
    								&compute.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs{
    									PathTemplateMatch: pulumi.String("/xyzwebservices/v2/xyz/users/*/accountinfo/*"),
    								},
    							},
    							Service:  user_backend.ID(),
    							Priority: pulumi.Int(2),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.RegionHealthCheck("default", new()
        {
            Region = "us-central1",
            Name = "health-check",
            CheckIntervalSec = 1,
            TimeoutSec = 1,
            HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
            {
                Port = 80,
                RequestPath = "/",
            },
        });
    
        var home_backend = new Gcp.Compute.RegionBackendService("home-backend", new()
        {
            Region = "us-central1",
            Name = "home-service",
            PortName = "http",
            Protocol = "HTTP",
            TimeoutSec = 10,
            LoadBalancingScheme = "EXTERNAL_MANAGED",
            HealthChecks = @default.Id,
        });
    
        var cart_backend = new Gcp.Compute.RegionBackendService("cart-backend", new()
        {
            Region = "us-central1",
            Name = "cart-service",
            PortName = "http",
            Protocol = "HTTP",
            TimeoutSec = 10,
            LoadBalancingScheme = "EXTERNAL_MANAGED",
            HealthChecks = @default.Id,
        });
    
        var user_backend = new Gcp.Compute.RegionBackendService("user-backend", new()
        {
            Region = "us-central1",
            Name = "user-service",
            PortName = "http",
            Protocol = "HTTP",
            TimeoutSec = 10,
            LoadBalancingScheme = "EXTERNAL_MANAGED",
            HealthChecks = @default.Id,
        });
    
        var urlmap = new Gcp.Compute.RegionUrlMap("urlmap", new()
        {
            Region = "us-central1",
            Name = "urlmap",
            Description = "a description",
            DefaultService = home_backend.Id,
            HostRules = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapHostRuleArgs
                {
                    Hosts = new[]
                    {
                        "mysite.com",
                    },
                    PathMatcher = "mysite",
                },
            },
            PathMatchers = new[]
            {
                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherArgs
                {
                    Name = "mysite",
                    DefaultService = home_backend.Id,
                    RouteRules = new[]
                    {
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleArgs
                        {
                            MatchRules = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs
                                {
                                    PathTemplateMatch = "/xyzwebservices/v2/xyz/users/{username=*}/carts/{cartid=**}",
                                },
                            },
                            Service = cart_backend.Id,
                            Priority = 1,
                            RouteAction = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleRouteActionArgs
                            {
                                UrlRewrite = new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewriteArgs
                                {
                                    PathTemplateRewrite = "/{username}-{cartid}/",
                                },
                            },
                        },
                        new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleArgs
                        {
                            MatchRules = new[]
                            {
                                new Gcp.Compute.Inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleArgs
                                {
                                    PathTemplateMatch = "/xyzwebservices/v2/xyz/users/*/accountinfo/*",
                                },
                            },
                            Service = user_backend.Id,
                            Priority = 2,
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionHealthCheck;
    import com.pulumi.gcp.compute.RegionHealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.RegionUrlMap;
    import com.pulumi.gcp.compute.RegionUrlMapArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapHostRuleArgs;
    import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new RegionHealthCheck("default", RegionHealthCheckArgs.builder()        
                .region("us-central1")
                .name("health-check")
                .checkIntervalSec(1)
                .timeoutSec(1)
                .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                    .port(80)
                    .requestPath("/")
                    .build())
                .build());
    
            var home_backend = new RegionBackendService("home-backend", RegionBackendServiceArgs.builder()        
                .region("us-central1")
                .name("home-service")
                .portName("http")
                .protocol("HTTP")
                .timeoutSec(10)
                .loadBalancingScheme("EXTERNAL_MANAGED")
                .healthChecks(default_.id())
                .build());
    
            var cart_backend = new RegionBackendService("cart-backend", RegionBackendServiceArgs.builder()        
                .region("us-central1")
                .name("cart-service")
                .portName("http")
                .protocol("HTTP")
                .timeoutSec(10)
                .loadBalancingScheme("EXTERNAL_MANAGED")
                .healthChecks(default_.id())
                .build());
    
            var user_backend = new RegionBackendService("user-backend", RegionBackendServiceArgs.builder()        
                .region("us-central1")
                .name("user-service")
                .portName("http")
                .protocol("HTTP")
                .timeoutSec(10)
                .loadBalancingScheme("EXTERNAL_MANAGED")
                .healthChecks(default_.id())
                .build());
    
            var urlmap = new RegionUrlMap("urlmap", RegionUrlMapArgs.builder()        
                .region("us-central1")
                .name("urlmap")
                .description("a description")
                .defaultService(home_backend.id())
                .hostRules(RegionUrlMapHostRuleArgs.builder()
                    .hosts("mysite.com")
                    .pathMatcher("mysite")
                    .build())
                .pathMatchers(RegionUrlMapPathMatcherArgs.builder()
                    .name("mysite")
                    .defaultService(home_backend.id())
                    .routeRules(                
                        RegionUrlMapPathMatcherRouteRuleArgs.builder()
                            .matchRules(RegionUrlMapPathMatcherRouteRuleMatchRuleArgs.builder()
                                .pathTemplateMatch("/xyzwebservices/v2/xyz/users/{username=*}/carts/{cartid=**}")
                                .build())
                            .service(cart_backend.id())
                            .priority(1)
                            .routeAction(RegionUrlMapPathMatcherRouteRuleRouteActionArgs.builder()
                                .urlRewrite(RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewriteArgs.builder()
                                    .pathTemplateRewrite("/{username}-{cartid}/")
                                    .build())
                                .build())
                            .build(),
                        RegionUrlMapPathMatcherRouteRuleArgs.builder()
                            .matchRules(RegionUrlMapPathMatcherRouteRuleMatchRuleArgs.builder()
                                .pathTemplateMatch("/xyzwebservices/v2/xyz/users/*/accountinfo/*")
                                .build())
                            .service(user_backend.id())
                            .priority(2)
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      urlmap:
        type: gcp:compute:RegionUrlMap
        properties:
          region: us-central1
          name: urlmap
          description: a description
          defaultService: ${["home-backend"].id}
          hostRules:
            - hosts:
                - mysite.com
              pathMatcher: mysite
          pathMatchers:
            - name: mysite
              defaultService: ${["home-backend"].id}
              routeRules:
                - matchRules:
                    - pathTemplateMatch: /xyzwebservices/v2/xyz/users/{username=*}/carts/{cartid=**}
                  service: ${["cart-backend"].id}
                  priority: 1
                  routeAction:
                    urlRewrite:
                      pathTemplateRewrite: /{username}-{cartid}/
                - matchRules:
                    - pathTemplateMatch: /xyzwebservices/v2/xyz/users/*/accountinfo/*
                  service: ${["user-backend"].id}
                  priority: 2
      home-backend:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-central1
          name: home-service
          portName: http
          protocol: HTTP
          timeoutSec: 10
          loadBalancingScheme: EXTERNAL_MANAGED
          healthChecks: ${default.id}
      cart-backend:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-central1
          name: cart-service
          portName: http
          protocol: HTTP
          timeoutSec: 10
          loadBalancingScheme: EXTERNAL_MANAGED
          healthChecks: ${default.id}
      user-backend:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-central1
          name: user-service
          portName: http
          protocol: HTTP
          timeoutSec: 10
          loadBalancingScheme: EXTERNAL_MANAGED
          healthChecks: ${default.id}
      default:
        type: gcp:compute:RegionHealthCheck
        properties:
          region: us-central1
          name: health-check
          checkIntervalSec: 1
          timeoutSec: 1
          httpHealthCheck:
            port: 80
            requestPath: /
    

    Create RegionUrlMap Resource

    new RegionUrlMap(name: string, args?: RegionUrlMapArgs, opts?: CustomResourceOptions);
    @overload
    def RegionUrlMap(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     default_route_action: Optional[RegionUrlMapDefaultRouteActionArgs] = None,
                     default_service: Optional[str] = None,
                     default_url_redirect: Optional[RegionUrlMapDefaultUrlRedirectArgs] = None,
                     description: Optional[str] = None,
                     host_rules: Optional[Sequence[RegionUrlMapHostRuleArgs]] = None,
                     name: Optional[str] = None,
                     path_matchers: Optional[Sequence[RegionUrlMapPathMatcherArgs]] = None,
                     project: Optional[str] = None,
                     region: Optional[str] = None,
                     tests: Optional[Sequence[RegionUrlMapTestArgs]] = None)
    @overload
    def RegionUrlMap(resource_name: str,
                     args: Optional[RegionUrlMapArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    func NewRegionUrlMap(ctx *Context, name string, args *RegionUrlMapArgs, opts ...ResourceOption) (*RegionUrlMap, error)
    public RegionUrlMap(string name, RegionUrlMapArgs? args = null, CustomResourceOptions? opts = null)
    public RegionUrlMap(String name, RegionUrlMapArgs args)
    public RegionUrlMap(String name, RegionUrlMapArgs args, CustomResourceOptions options)
    
    type: gcp:compute:RegionUrlMap
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args RegionUrlMapArgs
    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 RegionUrlMapArgs
    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 RegionUrlMapArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegionUrlMapArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegionUrlMapArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    RegionUrlMap 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 RegionUrlMap resource accepts the following input properties:

    DefaultRouteAction RegionUrlMapDefaultRouteAction
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    DefaultService string
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    DefaultUrlRedirect RegionUrlMapDefaultUrlRedirect
    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.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    HostRules List<RegionUrlMapHostRule>
    The list of HostRules to use against the URL. Structure is documented below.
    Name string
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    PathMatchers List<RegionUrlMapPathMatcher>
    The list of named PathMatchers to use against the URL. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    Tests List<RegionUrlMapTest>
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    DefaultRouteAction RegionUrlMapDefaultRouteActionArgs
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    DefaultService string
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    DefaultUrlRedirect RegionUrlMapDefaultUrlRedirectArgs
    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.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    HostRules []RegionUrlMapHostRuleArgs
    The list of HostRules to use against the URL. Structure is documented below.
    Name string
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    PathMatchers []RegionUrlMapPathMatcherArgs
    The list of named PathMatchers to use against the URL. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    Tests []RegionUrlMapTestArgs
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    defaultRouteAction RegionUrlMapDefaultRouteAction
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    defaultService String
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    defaultUrlRedirect RegionUrlMapDefaultUrlRedirect
    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.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    hostRules List<RegionUrlMapHostRule>
    The list of HostRules to use against the URL. Structure is documented below.
    name String
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    pathMatchers List<RegionUrlMapPathMatcher>
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    tests List<RegionUrlMapTest>
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    defaultRouteAction RegionUrlMapDefaultRouteAction
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    defaultService string
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    defaultUrlRedirect RegionUrlMapDefaultUrlRedirect
    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.
    description string
    An optional description of this resource. Provide this property when you create the resource.
    hostRules RegionUrlMapHostRule[]
    The list of HostRules to use against the URL. Structure is documented below.
    name string
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    pathMatchers RegionUrlMapPathMatcher[]
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region string
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    tests RegionUrlMapTest[]
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    default_route_action RegionUrlMapDefaultRouteActionArgs
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    default_service str
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    default_url_redirect RegionUrlMapDefaultUrlRedirectArgs
    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.
    description str
    An optional description of this resource. Provide this property when you create the resource.
    host_rules Sequence[RegionUrlMapHostRuleArgs]
    The list of HostRules to use against the URL. Structure is documented below.
    name str
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    path_matchers Sequence[RegionUrlMapPathMatcherArgs]
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region str
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    tests Sequence[RegionUrlMapTestArgs]
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    defaultRouteAction Property Map
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    defaultService String
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    defaultUrlRedirect Property Map
    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.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    hostRules List<Property Map>
    The list of HostRules to use against the URL. Structure is documented below.
    name String
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    pathMatchers List<Property Map>
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    tests List<Property Map>
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RegionUrlMap resource produces the following output properties:

    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Fingerprint string
    Fingerprint of this resource. This field is used internally during updates of this resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    MapId int
    The unique identifier for the resource.
    SelfLink string
    The URI of the created resource.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Fingerprint string
    Fingerprint of this resource. This field is used internally during updates of this resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    MapId int
    The unique identifier for the resource.
    SelfLink string
    The URI of the created resource.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    fingerprint String
    Fingerprint of this resource. This field is used internally during updates of this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    mapId Integer
    The unique identifier for the resource.
    selfLink String
    The URI of the created resource.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    fingerprint string
    Fingerprint of this resource. This field is used internally during updates of this resource.
    id string
    The provider-assigned unique ID for this managed resource.
    mapId number
    The unique identifier for the resource.
    selfLink string
    The URI of the created resource.
    creation_timestamp str
    Creation timestamp in RFC3339 text format.
    fingerprint str
    Fingerprint of this resource. This field is used internally during updates of this resource.
    id str
    The provider-assigned unique ID for this managed resource.
    map_id int
    The unique identifier for the resource.
    self_link str
    The URI of the created resource.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    fingerprint String
    Fingerprint of this resource. This field is used internally during updates of this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    mapId Number
    The unique identifier for the resource.
    selfLink String
    The URI of the created resource.

    Look up Existing RegionUrlMap Resource

    Get an existing RegionUrlMap resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RegionUrlMapState, opts?: CustomResourceOptions): RegionUrlMap
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_timestamp: Optional[str] = None,
            default_route_action: Optional[RegionUrlMapDefaultRouteActionArgs] = None,
            default_service: Optional[str] = None,
            default_url_redirect: Optional[RegionUrlMapDefaultUrlRedirectArgs] = None,
            description: Optional[str] = None,
            fingerprint: Optional[str] = None,
            host_rules: Optional[Sequence[RegionUrlMapHostRuleArgs]] = None,
            map_id: Optional[int] = None,
            name: Optional[str] = None,
            path_matchers: Optional[Sequence[RegionUrlMapPathMatcherArgs]] = None,
            project: Optional[str] = None,
            region: Optional[str] = None,
            self_link: Optional[str] = None,
            tests: Optional[Sequence[RegionUrlMapTestArgs]] = None) -> RegionUrlMap
    func GetRegionUrlMap(ctx *Context, name string, id IDInput, state *RegionUrlMapState, opts ...ResourceOption) (*RegionUrlMap, error)
    public static RegionUrlMap Get(string name, Input<string> id, RegionUrlMapState? state, CustomResourceOptions? opts = null)
    public static RegionUrlMap get(String name, Output<String> id, RegionUrlMapState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    DefaultRouteAction RegionUrlMapDefaultRouteAction
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    DefaultService string
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    DefaultUrlRedirect RegionUrlMapDefaultUrlRedirect
    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.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Fingerprint string
    Fingerprint of this resource. This field is used internally during updates of this resource.
    HostRules List<RegionUrlMapHostRule>
    The list of HostRules to use against the URL. Structure is documented below.
    MapId int
    The unique identifier for the resource.
    Name string
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    PathMatchers List<RegionUrlMapPathMatcher>
    The list of named PathMatchers to use against the URL. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    SelfLink string
    The URI of the created resource.
    Tests List<RegionUrlMapTest>
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    DefaultRouteAction RegionUrlMapDefaultRouteActionArgs
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    DefaultService string
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    DefaultUrlRedirect RegionUrlMapDefaultUrlRedirectArgs
    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.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Fingerprint string
    Fingerprint of this resource. This field is used internally during updates of this resource.
    HostRules []RegionUrlMapHostRuleArgs
    The list of HostRules to use against the URL. Structure is documented below.
    MapId int
    The unique identifier for the resource.
    Name string
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    PathMatchers []RegionUrlMapPathMatcherArgs
    The list of named PathMatchers to use against the URL. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    SelfLink string
    The URI of the created resource.
    Tests []RegionUrlMapTestArgs
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    defaultRouteAction RegionUrlMapDefaultRouteAction
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    defaultService String
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    defaultUrlRedirect RegionUrlMapDefaultUrlRedirect
    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.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    fingerprint String
    Fingerprint of this resource. This field is used internally during updates of this resource.
    hostRules List<RegionUrlMapHostRule>
    The list of HostRules to use against the URL. Structure is documented below.
    mapId Integer
    The unique identifier for the resource.
    name String
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    pathMatchers List<RegionUrlMapPathMatcher>
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    selfLink String
    The URI of the created resource.
    tests List<RegionUrlMapTest>
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    defaultRouteAction RegionUrlMapDefaultRouteAction
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    defaultService string
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    defaultUrlRedirect RegionUrlMapDefaultUrlRedirect
    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.
    description string
    An optional description of this resource. Provide this property when you create the resource.
    fingerprint string
    Fingerprint of this resource. This field is used internally during updates of this resource.
    hostRules RegionUrlMapHostRule[]
    The list of HostRules to use against the URL. Structure is documented below.
    mapId number
    The unique identifier for the resource.
    name string
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    pathMatchers RegionUrlMapPathMatcher[]
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region string
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    selfLink string
    The URI of the created resource.
    tests RegionUrlMapTest[]
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    creation_timestamp str
    Creation timestamp in RFC3339 text format.
    default_route_action RegionUrlMapDefaultRouteActionArgs
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    default_service str
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    default_url_redirect RegionUrlMapDefaultUrlRedirectArgs
    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.
    description str
    An optional description of this resource. Provide this property when you create the resource.
    fingerprint str
    Fingerprint of this resource. This field is used internally during updates of this resource.
    host_rules Sequence[RegionUrlMapHostRuleArgs]
    The list of HostRules to use against the URL. Structure is documented below.
    map_id int
    The unique identifier for the resource.
    name str
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    path_matchers Sequence[RegionUrlMapPathMatcherArgs]
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region str
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    self_link str
    The URI of the created resource.
    tests Sequence[RegionUrlMapTestArgs]
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    defaultRouteAction Property Map
    defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before 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. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    defaultService String
    The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
    defaultUrlRedirect Property Map
    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.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    fingerprint String
    Fingerprint of this resource. This field is used internally during updates of this resource.
    hostRules List<Property Map>
    The list of HostRules to use against the URL. Structure is documented below.
    mapId Number
    The unique identifier for the resource.
    name String
    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


    pathMatchers List<Property Map>
    The list of named PathMatchers to use against the URL. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    The Region in which the url map should reside. If it is not provided, the provider region is used.
    selfLink String
    The URI of the created resource.
    tests List<Property Map>
    The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.

    Supporting Types

    RegionUrlMapDefaultRouteAction, RegionUrlMapDefaultRouteActionArgs

    CorsPolicy RegionUrlMapDefaultRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    FaultInjectionPolicy RegionUrlMapDefaultRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: Routing and traffic management features. Structure is documented below.
    RequestMirrorPolicy RegionUrlMapDefaultRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    RetryPolicy RegionUrlMapDefaultRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    Timeout RegionUrlMapDefaultRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    UrlRewrite RegionUrlMapDefaultRouteActionUrlRewrite
    The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    WeightedBackendServices List<RegionUrlMapDefaultRouteActionWeightedBackendService>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    CorsPolicy RegionUrlMapDefaultRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    FaultInjectionPolicy RegionUrlMapDefaultRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: Routing and traffic management features. Structure is documented below.
    RequestMirrorPolicy RegionUrlMapDefaultRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    RetryPolicy RegionUrlMapDefaultRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    Timeout RegionUrlMapDefaultRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    UrlRewrite RegionUrlMapDefaultRouteActionUrlRewrite
    The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    WeightedBackendServices []RegionUrlMapDefaultRouteActionWeightedBackendService
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy RegionUrlMapDefaultRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy RegionUrlMapDefaultRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: Routing and traffic management features. Structure is documented below.
    requestMirrorPolicy RegionUrlMapDefaultRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    retryPolicy RegionUrlMapDefaultRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapDefaultRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    urlRewrite RegionUrlMapDefaultRouteActionUrlRewrite
    The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    weightedBackendServices List<RegionUrlMapDefaultRouteActionWeightedBackendService>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy RegionUrlMapDefaultRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy RegionUrlMapDefaultRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: Routing and traffic management features. Structure is documented below.
    requestMirrorPolicy RegionUrlMapDefaultRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    retryPolicy RegionUrlMapDefaultRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapDefaultRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    urlRewrite RegionUrlMapDefaultRouteActionUrlRewrite
    The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    weightedBackendServices RegionUrlMapDefaultRouteActionWeightedBackendService[]
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    cors_policy RegionUrlMapDefaultRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    fault_injection_policy RegionUrlMapDefaultRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: Routing and traffic management features. Structure is documented below.
    request_mirror_policy RegionUrlMapDefaultRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    retry_policy RegionUrlMapDefaultRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapDefaultRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    url_rewrite RegionUrlMapDefaultRouteActionUrlRewrite
    The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    weighted_backend_services Sequence[RegionUrlMapDefaultRouteActionWeightedBackendService]
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy Property Map
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy Property Map
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: Routing and traffic management features. Structure is documented below.
    requestMirrorPolicy Property Map
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    retryPolicy Property Map
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout Property Map
    Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    urlRewrite Property Map
    The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
    weightedBackendServices List<Property Map>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.

    RegionUrlMapDefaultRouteActionCorsPolicy, RegionUrlMapDefaultRouteActionCorsPolicyArgs

    AllowCredentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    AllowHeaders List<string>
    Specifies the content for the Access-Control-Allow-Headers header.
    AllowMethods List<string>
    Specifies the content for the Access-Control-Allow-Methods header.
    AllowOriginRegexes List<string>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    AllowOrigins List<string>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    Disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    ExposeHeaders List<string>
    Specifies the content for the Access-Control-Expose-Headers header.
    MaxAge int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    AllowCredentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    AllowHeaders []string
    Specifies the content for the Access-Control-Allow-Headers header.
    AllowMethods []string
    Specifies the content for the Access-Control-Allow-Methods header.
    AllowOriginRegexes []string
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    AllowOrigins []string
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    Disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    ExposeHeaders []string
    Specifies the content for the Access-Control-Expose-Headers header.
    MaxAge int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allowCredentials Boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders List<String>
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods List<String>
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes List<String>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins List<String>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled Boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    exposeHeaders List<String>
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge Integer
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allowCredentials boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders string[]
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods string[]
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes string[]
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins string[]
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    exposeHeaders string[]
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge number
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allow_credentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allow_headers Sequence[str]
    Specifies the content for the Access-Control-Allow-Headers header.
    allow_methods Sequence[str]
    Specifies the content for the Access-Control-Allow-Methods header.
    allow_origin_regexes Sequence[str]
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allow_origins Sequence[str]
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    expose_headers Sequence[str]
    Specifies the content for the Access-Control-Expose-Headers header.
    max_age int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allowCredentials Boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders List<String>
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods List<String>
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes List<String>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins List<String>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled Boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    exposeHeaders List<String>
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge Number
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.

    RegionUrlMapDefaultRouteActionFaultInjectionPolicy, RegionUrlMapDefaultRouteActionFaultInjectionPolicyArgs

    Abort RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    Delay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    Abort RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    Delay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort Property Map
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay Property Map
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.

    RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbort, RegionUrlMapDefaultRouteActionFaultInjectionPolicyAbortArgs

    HttpStatus int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    Percentage double
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    HttpStatus int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    Percentage float64
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus Integer
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage Double
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus number
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage number
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    http_status int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage float
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus Number
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage Number
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.

    RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelay, RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs

    FixedDelay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    Percentage double
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    FixedDelay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    Percentage float64
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage Double
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage number
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixed_delay RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage float
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay Property Map
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage Number
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.

    RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelay, RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs

    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years

    RegionUrlMapDefaultRouteActionRequestMirrorPolicy, RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs

    BackendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    BackendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService String
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backend_service str
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService String
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.

    RegionUrlMapDefaultRouteActionRetryPolicy, RegionUrlMapDefaultRouteActionRetryPolicyArgs

    NumRetries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    PerTryTimeout RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    RetryConditions List<string>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    NumRetries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    PerTryTimeout RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    RetryConditions []string
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries Integer
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions List<String>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries number
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions string[]
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    num_retries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    per_try_timeout RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retry_conditions Sequence[str]
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries Number
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout Property Map
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions List<String>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.

    RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeout, RegionUrlMapDefaultRouteActionRetryPolicyPerTryTimeoutArgs

    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years

    RegionUrlMapDefaultRouteActionTimeout, RegionUrlMapDefaultRouteActionTimeoutArgs

    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years

    RegionUrlMapDefaultRouteActionUrlRewrite, RegionUrlMapDefaultRouteActionUrlRewriteArgs

    HostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    PathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    HostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    PathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    hostRewrite String
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite String
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    hostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    host_rewrite str
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    path_prefix_rewrite str
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    hostRewrite String
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite String
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.

    RegionUrlMapDefaultRouteActionWeightedBackendService, RegionUrlMapDefaultRouteActionWeightedBackendServiceArgs

    BackendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    HeaderAction RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    Weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    BackendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    HeaderAction RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    Weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    backendService String
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    headerAction RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    weight Integer
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    backendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    headerAction RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    weight number
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    backend_service str
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    header_action RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    backendService String
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    headerAction Property Map
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    weight Number
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.

    RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderAction, RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs

    RequestHeadersToAdds List<RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds List<RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    RequestHeadersToAdds []RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves []string
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds []RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves []string
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd[]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd[]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    request_headers_to_adds Sequence[RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    request_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    response_headers_to_adds Sequence[RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    response_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<Property Map>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<Property Map>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.

    RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd, RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd, RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapDefaultUrlRedirect, RegionUrlMapDefaultUrlRedirectArgs

    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    strip_query bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    host_redirect str
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    https_redirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    path_redirect str
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefix_redirect str
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirect_response_code str
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.

    RegionUrlMapHostRule, RegionUrlMapHostRuleArgs

    Hosts List<string>
    The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
    PathMatcher string
    The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
    Description string
    An optional description of this HostRule. Provide this property when you create the resource.
    Hosts []string
    The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
    PathMatcher string
    The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
    Description string
    An optional description of this HostRule. Provide this property when you create the resource.
    hosts List<String>
    The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
    pathMatcher String
    The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
    description String
    An optional description of this HostRule. Provide this property when you create the resource.
    hosts string[]
    The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
    pathMatcher string
    The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
    description string
    An optional description of this HostRule. Provide this property when you create the resource.
    hosts Sequence[str]
    The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
    path_matcher str
    The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
    description str
    An optional description of this HostRule. Provide this property when you create the resource.
    hosts List<String>
    The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
    pathMatcher String
    The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
    description String
    An optional description of this HostRule. Provide this property when you create the resource.

    RegionUrlMapPathMatcher, RegionUrlMapPathMatcherArgs

    Name string
    The name to which this PathMatcher is referred by the HostRule.
    DefaultService string
    A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion.
    DefaultUrlRedirect RegionUrlMapPathMatcherDefaultUrlRedirect
    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.
    Description string
    An optional description of this resource.
    PathRules List<RegionUrlMapPathMatcherPathRule>
    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.
    RouteRules List<RegionUrlMapPathMatcherRouteRule>
    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.
    Name string
    The name to which this PathMatcher is referred by the HostRule.
    DefaultService string
    A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion.
    DefaultUrlRedirect RegionUrlMapPathMatcherDefaultUrlRedirect
    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.
    Description string
    An optional description of this resource.
    PathRules []RegionUrlMapPathMatcherPathRule
    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.
    RouteRules []RegionUrlMapPathMatcherRouteRule
    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.
    name String
    The name to which this PathMatcher is referred by the HostRule.
    defaultService String
    A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion.
    defaultUrlRedirect RegionUrlMapPathMatcherDefaultUrlRedirect
    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.
    description String
    An optional description of this resource.
    pathRules List<RegionUrlMapPathMatcherPathRule>
    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.
    routeRules List<RegionUrlMapPathMatcherRouteRule>
    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.
    name string
    The name to which this PathMatcher is referred by the HostRule.
    defaultService string
    A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion.
    defaultUrlRedirect RegionUrlMapPathMatcherDefaultUrlRedirect
    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.
    description string
    An optional description of this resource.
    pathRules RegionUrlMapPathMatcherPathRule[]
    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.
    routeRules RegionUrlMapPathMatcherRouteRule[]
    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.
    name str
    The name to which this PathMatcher is referred by the HostRule.
    default_service str
    A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion.
    default_url_redirect RegionUrlMapPathMatcherDefaultUrlRedirect
    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.
    description str
    An optional description of this resource.
    path_rules Sequence[RegionUrlMapPathMatcherPathRule]
    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.
    route_rules Sequence[RegionUrlMapPathMatcherRouteRule]
    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.
    name String
    The name to which this PathMatcher is referred by the HostRule.
    defaultService String
    A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion.
    defaultUrlRedirect Property Map
    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.
    description String
    An optional description of this resource.
    pathRules List<Property Map>
    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.
    routeRules List<Property Map>
    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.

    RegionUrlMapPathMatcherDefaultUrlRedirect, RegionUrlMapPathMatcherDefaultUrlRedirectArgs

    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    strip_query bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    host_redirect str
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    https_redirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    path_redirect str
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefix_redirect str
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirect_response_code str
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.

    RegionUrlMapPathMatcherPathRule, RegionUrlMapPathMatcherPathRuleArgs

    Paths List<string>
    The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
    RouteAction RegionUrlMapPathMatcherPathRuleRouteAction
    In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    Service string
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    UrlRedirect RegionUrlMapPathMatcherPathRuleUrlRedirect
    When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    Paths []string
    The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
    RouteAction RegionUrlMapPathMatcherPathRuleRouteAction
    In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    Service string
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    UrlRedirect RegionUrlMapPathMatcherPathRuleUrlRedirect
    When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    paths List<String>
    The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
    routeAction RegionUrlMapPathMatcherPathRuleRouteAction
    In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service String
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    urlRedirect RegionUrlMapPathMatcherPathRuleUrlRedirect
    When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    paths string[]
    The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
    routeAction RegionUrlMapPathMatcherPathRuleRouteAction
    In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service string
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    urlRedirect RegionUrlMapPathMatcherPathRuleUrlRedirect
    When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    paths Sequence[str]
    The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
    route_action RegionUrlMapPathMatcherPathRuleRouteAction
    In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service str
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    url_redirect RegionUrlMapPathMatcherPathRuleUrlRedirect
    When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    paths List<String>
    The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
    routeAction Property Map
    In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service String
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    urlRedirect Property Map
    When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.

    RegionUrlMapPathMatcherPathRuleRouteAction, RegionUrlMapPathMatcherPathRuleRouteActionArgs

    CorsPolicy RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    FaultInjectionPolicy RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    RequestMirrorPolicy RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    RetryPolicy RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    Timeout RegionUrlMapPathMatcherPathRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    UrlRewrite RegionUrlMapPathMatcherPathRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    WeightedBackendServices List<RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendService>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    CorsPolicy RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    FaultInjectionPolicy RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    RequestMirrorPolicy RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    RetryPolicy RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    Timeout RegionUrlMapPathMatcherPathRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    UrlRewrite RegionUrlMapPathMatcherPathRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    WeightedBackendServices []RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendService
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    requestMirrorPolicy RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retryPolicy RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapPathMatcherPathRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    urlRewrite RegionUrlMapPathMatcherPathRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weightedBackendServices List<RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendService>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    requestMirrorPolicy RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retryPolicy RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapPathMatcherPathRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    urlRewrite RegionUrlMapPathMatcherPathRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weightedBackendServices RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendService[]
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    cors_policy RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    fault_injection_policy RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    request_mirror_policy RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retry_policy RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapPathMatcherPathRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    url_rewrite RegionUrlMapPathMatcherPathRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weighted_backend_services Sequence[RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendService]
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy Property Map
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy Property Map
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    requestMirrorPolicy Property Map
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retryPolicy Property Map
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout Property Map
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    urlRewrite Property Map
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weightedBackendServices List<Property Map>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.

    RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicy, RegionUrlMapPathMatcherPathRuleRouteActionCorsPolicyArgs

    Disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    AllowCredentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    AllowHeaders List<string>
    Specifies the content for the Access-Control-Allow-Headers header.
    AllowMethods List<string>
    Specifies the content for the Access-Control-Allow-Methods header.
    AllowOriginRegexes List<string>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    AllowOrigins List<string>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    ExposeHeaders List<string>
    Specifies the content for the Access-Control-Expose-Headers header.
    MaxAge int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    Disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    AllowCredentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    AllowHeaders []string
    Specifies the content for the Access-Control-Allow-Headers header.
    AllowMethods []string
    Specifies the content for the Access-Control-Allow-Methods header.
    AllowOriginRegexes []string
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    AllowOrigins []string
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    ExposeHeaders []string
    Specifies the content for the Access-Control-Expose-Headers header.
    MaxAge int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    disabled Boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    allowCredentials Boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders List<String>
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods List<String>
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes List<String>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins List<String>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    exposeHeaders List<String>
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge Integer
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    disabled boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    allowCredentials boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders string[]
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods string[]
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes string[]
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins string[]
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    exposeHeaders string[]
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge number
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    allow_credentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allow_headers Sequence[str]
    Specifies the content for the Access-Control-Allow-Headers header.
    allow_methods Sequence[str]
    Specifies the content for the Access-Control-Allow-Methods header.
    allow_origin_regexes Sequence[str]
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allow_origins Sequence[str]
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    expose_headers Sequence[str]
    Specifies the content for the Access-Control-Expose-Headers header.
    max_age int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    disabled Boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    allowCredentials Boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders List<String>
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods List<String>
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes List<String>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins List<String>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    exposeHeaders List<String>
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge Number
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.

    RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicy, RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyArgs

    Abort RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    Delay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    Abort RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    Delay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort Property Map
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay Property Map
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.

    RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort, RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs

    HttpStatus int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    Percentage double
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    HttpStatus int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    Percentage float64
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus Integer
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage Double
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus number
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage number
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    http_status int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage float
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus Number
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage Number
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.

    RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelay, RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs

    FixedDelay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    Percentage double
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    FixedDelay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    Percentage float64
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage Double
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage number
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixed_delay RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage float
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay Property Map
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage Number
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.

    RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelay, RegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs

    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

    RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicy, RegionUrlMapPathMatcherPathRuleRouteActionRequestMirrorPolicyArgs

    BackendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    BackendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService String
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backend_service str
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService String
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.

    RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicy, RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyArgs

    NumRetries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    PerTryTimeout RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    RetryConditions List<string>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    NumRetries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    PerTryTimeout RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    RetryConditions []string
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries Integer
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions List<String>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries number
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions string[]
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    num_retries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    per_try_timeout RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retry_conditions Sequence[str]
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries Number
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout Property Map
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions List<String>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.

    RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeout, RegionUrlMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeoutArgs

    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

    RegionUrlMapPathMatcherPathRuleRouteActionTimeout, RegionUrlMapPathMatcherPathRuleRouteActionTimeoutArgs

    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

    RegionUrlMapPathMatcherPathRuleRouteActionUrlRewrite, RegionUrlMapPathMatcherPathRuleRouteActionUrlRewriteArgs

    HostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    PathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    HostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    PathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    hostRewrite String
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite String
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    hostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    host_rewrite str
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    path_prefix_rewrite str
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    hostRewrite String
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite String
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.

    RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendService, RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceArgs

    BackendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    Weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    HeaderAction RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    BackendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    Weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    HeaderAction RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backendService String
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight Integer
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    headerAction RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight number
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    headerAction RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backend_service str
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    header_action RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backendService String
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight Number
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    headerAction Property Map
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.

    RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction, RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionArgs

    RequestHeadersToAdds List<RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds List<RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    RequestHeadersToAdds []RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves []string
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds []RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves []string
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd[]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd[]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    request_headers_to_adds Sequence[RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    request_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    response_headers_to_adds Sequence[RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    response_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<Property Map>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<Property Map>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.

    RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd, RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd, RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapPathMatcherPathRuleUrlRedirect, RegionUrlMapPathMatcherPathRuleUrlRedirectArgs

    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    strip_query bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    host_redirect str
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    https_redirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    path_redirect str
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefix_redirect str
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirect_response_code str
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.

    RegionUrlMapPathMatcherRouteRule, RegionUrlMapPathMatcherRouteRuleArgs

    Priority int
    For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 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.
    HeaderAction RegionUrlMapPathMatcherRouteRuleHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here are applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].r outeAction.weightedBackendService.backendServiceWeightAction[].headerAction Structure is documented below.
    MatchRules List<RegionUrlMapPathMatcherRouteRuleMatchRule>
    The rules for determining a match. Structure is documented below.
    RouteAction RegionUrlMapPathMatcherRouteRuleRouteAction
    In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    Service string
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    UrlRedirect RegionUrlMapPathMatcherRouteRuleUrlRedirect
    When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    Priority int
    For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 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.
    HeaderAction RegionUrlMapPathMatcherRouteRuleHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here are applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].r outeAction.weightedBackendService.backendServiceWeightAction[].headerAction Structure is documented below.
    MatchRules []RegionUrlMapPathMatcherRouteRuleMatchRule
    The rules for determining a match. Structure is documented below.
    RouteAction RegionUrlMapPathMatcherRouteRuleRouteAction
    In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    Service string
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    UrlRedirect RegionUrlMapPathMatcherRouteRuleUrlRedirect
    When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    priority Integer
    For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 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.
    headerAction RegionUrlMapPathMatcherRouteRuleHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here are applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].r outeAction.weightedBackendService.backendServiceWeightAction[].headerAction Structure is documented below.
    matchRules List<RegionUrlMapPathMatcherRouteRuleMatchRule>
    The rules for determining a match. Structure is documented below.
    routeAction RegionUrlMapPathMatcherRouteRuleRouteAction
    In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service String
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    urlRedirect RegionUrlMapPathMatcherRouteRuleUrlRedirect
    When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    priority number
    For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 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.
    headerAction RegionUrlMapPathMatcherRouteRuleHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here are applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].r outeAction.weightedBackendService.backendServiceWeightAction[].headerAction Structure is documented below.
    matchRules RegionUrlMapPathMatcherRouteRuleMatchRule[]
    The rules for determining a match. Structure is documented below.
    routeAction RegionUrlMapPathMatcherRouteRuleRouteAction
    In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service string
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    urlRedirect RegionUrlMapPathMatcherRouteRuleUrlRedirect
    When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    priority int
    For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 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.
    header_action RegionUrlMapPathMatcherRouteRuleHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here are applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].r outeAction.weightedBackendService.backendServiceWeightAction[].headerAction Structure is documented below.
    match_rules Sequence[RegionUrlMapPathMatcherRouteRuleMatchRule]
    The rules for determining a match. Structure is documented below.
    route_action RegionUrlMapPathMatcherRouteRuleRouteAction
    In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service str
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    url_redirect RegionUrlMapPathMatcherRouteRuleUrlRedirect
    When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
    priority Number
    For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 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.
    headerAction Property Map
    Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here are applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].r outeAction.weightedBackendService.backendServiceWeightAction[].headerAction Structure is documented below.
    matchRules List<Property Map>
    The rules for determining a match. Structure is documented below.
    routeAction Property Map
    In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
    service String
    The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    urlRedirect Property Map
    When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.

    RegionUrlMapPathMatcherRouteRuleHeaderAction, RegionUrlMapPathMatcherRouteRuleHeaderActionArgs

    RequestHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    RequestHeadersToAdds []RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAdd
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves []string
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds []RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAdd
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves []string
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAdd[]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAdd[]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    request_headers_to_adds Sequence[RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAdd]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    request_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    response_headers_to_adds Sequence[RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAdd]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    response_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<Property Map>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<Property Map>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.

    RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAdd, RegionUrlMapPathMatcherRouteRuleHeaderActionRequestHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAdd, RegionUrlMapPathMatcherRouteRuleHeaderActionResponseHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapPathMatcherRouteRuleMatchRule, RegionUrlMapPathMatcherRouteRuleMatchRuleArgs

    FullPathMatch string
    For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    HeaderMatches List<RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatch>
    Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
    IgnoreCase bool
    Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
    MetadataFilters List<RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilter>
    Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
    PathTemplateMatch string
    For satisfying the matchRule condition, the path of the request must match the wildcard pattern specified in pathTemplateMatch after removing any query parameters and anchor that may be part of the original URL. pathTemplateMatch must be between 1 and 255 characters (inclusive). The pattern specified by pathTemplateMatch may have at most 5 wildcard operators and at most 5 variable captures in total.
    PrefixMatch string
    For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    QueryParameterMatches List<RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch>
    Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
    RegexMatch string
    For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    FullPathMatch string
    For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    HeaderMatches []RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatch
    Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
    IgnoreCase bool
    Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
    MetadataFilters []RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilter
    Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
    PathTemplateMatch string
    For satisfying the matchRule condition, the path of the request must match the wildcard pattern specified in pathTemplateMatch after removing any query parameters and anchor that may be part of the original URL. pathTemplateMatch must be between 1 and 255 characters (inclusive). The pattern specified by pathTemplateMatch may have at most 5 wildcard operators and at most 5 variable captures in total.
    PrefixMatch string
    For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    QueryParameterMatches []RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch
    Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
    RegexMatch string
    For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    fullPathMatch String
    For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    headerMatches List<RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatch>
    Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
    ignoreCase Boolean
    Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
    metadataFilters List<RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilter>
    Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
    pathTemplateMatch String
    For satisfying the matchRule condition, the path of the request must match the wildcard pattern specified in pathTemplateMatch after removing any query parameters and anchor that may be part of the original URL. pathTemplateMatch must be between 1 and 255 characters (inclusive). The pattern specified by pathTemplateMatch may have at most 5 wildcard operators and at most 5 variable captures in total.
    prefixMatch String
    For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    queryParameterMatches List<RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch>
    Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
    regexMatch String
    For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    fullPathMatch string
    For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    headerMatches RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatch[]
    Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
    ignoreCase boolean
    Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
    metadataFilters RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilter[]
    Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
    pathTemplateMatch string
    For satisfying the matchRule condition, the path of the request must match the wildcard pattern specified in pathTemplateMatch after removing any query parameters and anchor that may be part of the original URL. pathTemplateMatch must be between 1 and 255 characters (inclusive). The pattern specified by pathTemplateMatch may have at most 5 wildcard operators and at most 5 variable captures in total.
    prefixMatch string
    For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    queryParameterMatches RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch[]
    Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
    regexMatch string
    For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    full_path_match str
    For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    header_matches Sequence[RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatch]
    Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
    ignore_case bool
    Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
    metadata_filters Sequence[RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilter]
    Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
    path_template_match str
    For satisfying the matchRule condition, the path of the request must match the wildcard pattern specified in pathTemplateMatch after removing any query parameters and anchor that may be part of the original URL. pathTemplateMatch must be between 1 and 255 characters (inclusive). The pattern specified by pathTemplateMatch may have at most 5 wildcard operators and at most 5 variable captures in total.
    prefix_match str
    For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    query_parameter_matches Sequence[RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch]
    Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
    regex_match str
    For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    fullPathMatch String
    For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    headerMatches List<Property Map>
    Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
    ignoreCase Boolean
    Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
    metadataFilters List<Property Map>
    Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
    pathTemplateMatch String
    For satisfying the matchRule condition, the path of the request must match the wildcard pattern specified in pathTemplateMatch after removing any query parameters and anchor that may be part of the original URL. pathTemplateMatch must be between 1 and 255 characters (inclusive). The pattern specified by pathTemplateMatch may have at most 5 wildcard operators and at most 5 variable captures in total.
    prefixMatch String
    For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
    queryParameterMatches List<Property Map>
    Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
    regexMatch String
    For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript Only one of prefixMatch, fullPathMatch or regexMatch must be specified.

    RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatch, RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchArgs

    HeaderName string
    The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".
    ExactMatch string
    The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    InvertMatch bool
    If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
    PrefixMatch string
    The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    PresentMatch bool
    A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    RangeMatch RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatch
    The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0]

    • -3 will match
    • 0 will not match
    • 0.25 will not match
    • -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
    RegexMatch string
    The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    SuffixMatch string
    The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    HeaderName string
    The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".
    ExactMatch string
    The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    InvertMatch bool
    If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
    PrefixMatch string
    The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    PresentMatch bool
    A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    RangeMatch RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatch
    The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0]

    • -3 will match
    • 0 will not match
    • 0.25 will not match
    • -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
    RegexMatch string
    The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    SuffixMatch string
    The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    headerName String
    The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".
    exactMatch String
    The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    invertMatch Boolean
    If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
    prefixMatch String
    The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    presentMatch Boolean
    A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    rangeMatch RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatch
    The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0]

    • -3 will match
    • 0 will not match
    • 0.25 will not match
    • -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
    regexMatch String
    The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    suffixMatch String
    The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    headerName string
    The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".
    exactMatch string
    The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    invertMatch boolean
    If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
    prefixMatch string
    The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    presentMatch boolean
    A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    rangeMatch RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatch
    The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0]

    • -3 will match
    • 0 will not match
    • 0.25 will not match
    • -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
    regexMatch string
    The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    suffixMatch string
    The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    header_name str
    The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".
    exact_match str
    The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    invert_match bool
    If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
    prefix_match str
    The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    present_match bool
    A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    range_match RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatch
    The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0]

    • -3 will match
    • 0 will not match
    • 0.25 will not match
    • -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
    regex_match str
    The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    suffix_match str
    The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    headerName String
    The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".
    exactMatch String
    The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    invertMatch Boolean
    If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
    prefixMatch String
    The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    presentMatch Boolean
    A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    rangeMatch Property Map
    The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0]

    • -3 will match
    • 0 will not match
    • 0.25 will not match
    • -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
    regexMatch String
    The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
    suffixMatch String
    The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.

    RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatch, RegionUrlMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatchArgs

    RangeEnd int
    The end of the range (exclusive).
    RangeStart int
    The start of the range (inclusive).
    RangeEnd int
    The end of the range (exclusive).
    RangeStart int
    The start of the range (inclusive).
    rangeEnd Integer
    The end of the range (exclusive).
    rangeStart Integer
    The start of the range (inclusive).
    rangeEnd number
    The end of the range (exclusive).
    rangeStart number
    The start of the range (inclusive).
    range_end int
    The end of the range (exclusive).
    range_start int
    The start of the range (inclusive).
    rangeEnd Number
    The end of the range (exclusive).
    rangeStart Number
    The start of the range (inclusive).

    RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilter, RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterArgs

    FilterLabels List<RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabel>
    The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
    FilterMatchCriteria string
    Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are:

    • MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
    • MATCH_ALL: All filterLabels must have matching labels in the provided metadata. Possible values are: MATCH_ALL, MATCH_ANY.
    FilterLabels []RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabel
    The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
    FilterMatchCriteria string
    Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are:

    • MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
    • MATCH_ALL: All filterLabels must have matching labels in the provided metadata. Possible values are: MATCH_ALL, MATCH_ANY.
    filterLabels List<RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabel>
    The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
    filterMatchCriteria String
    Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are:

    • MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
    • MATCH_ALL: All filterLabels must have matching labels in the provided metadata. Possible values are: MATCH_ALL, MATCH_ANY.
    filterLabels RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabel[]
    The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
    filterMatchCriteria string
    Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are:

    • MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
    • MATCH_ALL: All filterLabels must have matching labels in the provided metadata. Possible values are: MATCH_ALL, MATCH_ANY.
    filter_labels Sequence[RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabel]
    The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
    filter_match_criteria str
    Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are:

    • MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
    • MATCH_ALL: All filterLabels must have matching labels in the provided metadata. Possible values are: MATCH_ALL, MATCH_ANY.
    filterLabels List<Property Map>
    The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
    filterMatchCriteria String
    Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are:

    • MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
    • MATCH_ALL: All filterLabels must have matching labels in the provided metadata. Possible values are: MATCH_ALL, MATCH_ANY.

    RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabel, RegionUrlMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabelArgs

    Name string
    Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
    Value string
    The value of the label must match the specified value. value can have a maximum length of 1024 characters.
    Name string
    Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
    Value string
    The value of the label must match the specified value. value can have a maximum length of 1024 characters.
    name String
    Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
    value String
    The value of the label must match the specified value. value can have a maximum length of 1024 characters.
    name string
    Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
    value string
    The value of the label must match the specified value. value can have a maximum length of 1024 characters.
    name str
    Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
    value str
    The value of the label must match the specified value. value can have a maximum length of 1024 characters.
    name String
    Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
    value String
    The value of the label must match the specified value. value can have a maximum length of 1024 characters.

    RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch, RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs

    Name string
    The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
    ExactMatch string
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
    PresentMatch bool
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
    RegexMatch string
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
    Name string
    The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
    ExactMatch string
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
    PresentMatch bool
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
    RegexMatch string
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
    name String
    The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
    exactMatch String
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
    presentMatch Boolean
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
    regexMatch String
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
    name string
    The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
    exactMatch string
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
    presentMatch boolean
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
    regexMatch string
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
    name str
    The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
    exact_match str
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
    present_match bool
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
    regex_match str
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
    name String
    The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
    exactMatch String
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
    presentMatch Boolean
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
    regexMatch String
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.

    RegionUrlMapPathMatcherRouteRuleRouteAction, RegionUrlMapPathMatcherRouteRuleRouteActionArgs

    CorsPolicy RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    FaultInjectionPolicy RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    RequestMirrorPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    RetryPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    Timeout RegionUrlMapPathMatcherRouteRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    UrlRewrite RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    WeightedBackendServices List<RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendService>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    CorsPolicy RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    FaultInjectionPolicy RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    RequestMirrorPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    RetryPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    Timeout RegionUrlMapPathMatcherRouteRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    UrlRewrite RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    WeightedBackendServices []RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendService
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    requestMirrorPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retryPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapPathMatcherRouteRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    urlRewrite RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weightedBackendServices List<RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendService>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    requestMirrorPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retryPolicy RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapPathMatcherRouteRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    urlRewrite RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weightedBackendServices RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendService[]
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    cors_policy RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicy
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    fault_injection_policy RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    request_mirror_policy RegionUrlMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retry_policy RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicy
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout RegionUrlMapPathMatcherRouteRuleRouteActionTimeout
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    url_rewrite RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weighted_backend_services Sequence[RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendService]
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
    corsPolicy Property Map
    The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
    faultInjectionPolicy Property Map
    The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. Structure is documented below.
    requestMirrorPolicy Property Map
    Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
    retryPolicy Property Map
    Specifies the retry policy associated with this route. Structure is documented below.
    timeout Property Map
    Specifies the timeout for the selected route. Timeout is computed from the time the request is has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, the default value is 15 seconds. Structure is documented below.
    urlRewrite Property Map
    The spec to modify the URL of the request, prior to forwarding the request to the matched service Structure is documented below.
    weightedBackendServices List<Property Map>
    A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.

    RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicy, RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicyArgs

    AllowCredentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    AllowHeaders List<string>
    Specifies the content for the Access-Control-Allow-Headers header.
    AllowMethods List<string>
    Specifies the content for the Access-Control-Allow-Methods header.
    AllowOriginRegexes List<string>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    AllowOrigins List<string>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    Disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    ExposeHeaders List<string>
    Specifies the content for the Access-Control-Expose-Headers header.
    MaxAge int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    AllowCredentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    AllowHeaders []string
    Specifies the content for the Access-Control-Allow-Headers header.
    AllowMethods []string
    Specifies the content for the Access-Control-Allow-Methods header.
    AllowOriginRegexes []string
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    AllowOrigins []string
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    Disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    ExposeHeaders []string
    Specifies the content for the Access-Control-Expose-Headers header.
    MaxAge int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allowCredentials Boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders List<String>
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods List<String>
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes List<String>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins List<String>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled Boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    exposeHeaders List<String>
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge Integer
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allowCredentials boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders string[]
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods string[]
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes string[]
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins string[]
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    exposeHeaders string[]
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge number
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allow_credentials bool
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allow_headers Sequence[str]
    Specifies the content for the Access-Control-Allow-Headers header.
    allow_methods Sequence[str]
    Specifies the content for the Access-Control-Allow-Methods header.
    allow_origin_regexes Sequence[str]
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allow_origins Sequence[str]
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled bool
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    expose_headers Sequence[str]
    Specifies the content for the Access-Control-Expose-Headers header.
    max_age int
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
    allowCredentials Boolean
    In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
    allowHeaders List<String>
    Specifies the content for the Access-Control-Allow-Headers header.
    allowMethods List<String>
    Specifies the content for the Access-Control-Allow-Methods header.
    allowOriginRegexes List<String>
    Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    allowOrigins List<String>
    Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
    disabled Boolean
    If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
    exposeHeaders List<String>
    Specifies the content for the Access-Control-Expose-Headers header.
    maxAge Number
    Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.

    RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy, RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs

    Abort RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    Delay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    Abort RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    Delay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelay
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
    abort Property Map
    The specification for how client requests are aborted as part of fault injection. Structure is documented below.
    delay Property Map
    The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.

    RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort, RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs

    HttpStatus int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    Percentage double
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    HttpStatus int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    Percentage float64
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus Integer
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage Double
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus number
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage number
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    http_status int
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage float
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    httpStatus Number
    The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
    percentage Number
    The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.

    RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelay, RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs

    FixedDelay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    Percentage double
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    FixedDelay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    Percentage float64
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage Double
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage number
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixed_delay RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelay
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage float
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
    fixedDelay Property Map
    Specifies the value of the fixed delay interval. Structure is documented below.
    percentage Number
    The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive.

    RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelay, RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs

    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

    RegionUrlMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy, RegionUrlMapPathMatcherRouteRuleRouteActionRequestMirrorPolicyArgs

    BackendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    BackendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService String
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService string
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backend_service str
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.
    backendService String
    The full or partial URL to the RegionBackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service.

    RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicy, RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyArgs

    NumRetries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    PerTryTimeout RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    RetryConditions List<string>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    NumRetries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    PerTryTimeout RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    RetryConditions []string
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries Integer
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions List<String>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries number
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions string[]
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    num_retries int
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    per_try_timeout RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeout
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retry_conditions Sequence[str]
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
    numRetries Number
    Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
    perTryTimeout Property Map
    Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
    retryConditions List<String>
    Specifies one or more conditions when this retry policy applies. Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.

    • 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
    • gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
    • connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
    • retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
    • refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
    • deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
    • internal : a retry is attempted if the gRPC status code in the response header is set to internal.
    • resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
    • unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.

    RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeout, RegionUrlMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeoutArgs

    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

    RegionUrlMapPathMatcherRouteRuleRouteActionTimeout, RegionUrlMapPathMatcherRouteRuleRouteActionTimeoutArgs

    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    Seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    Nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Integer
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds string
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds str
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos int
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
    seconds String
    Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
    nanos Number
    Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

    RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite, RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewriteArgs

    HostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    PathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    PathTemplateRewrite string
    Prior to forwarding the request to the selected origin, if the request matched a pathTemplateMatch, the matching portion of the request's path is replaced re-written using the pattern specified by pathTemplateRewrite. pathTemplateRewrite must be between 1 and 255 characters (inclusive), must start with a '/', and must only use variables captured by the route's pathTemplate matchers. pathTemplateRewrite may only be used when all of a route's MatchRules specify pathTemplate. Only one of pathPrefixRewrite and pathTemplateRewrite may be specified.
    HostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    PathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    PathTemplateRewrite string
    Prior to forwarding the request to the selected origin, if the request matched a pathTemplateMatch, the matching portion of the request's path is replaced re-written using the pattern specified by pathTemplateRewrite. pathTemplateRewrite must be between 1 and 255 characters (inclusive), must start with a '/', and must only use variables captured by the route's pathTemplate matchers. pathTemplateRewrite may only be used when all of a route's MatchRules specify pathTemplate. Only one of pathPrefixRewrite and pathTemplateRewrite may be specified.
    hostRewrite String
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite String
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    pathTemplateRewrite String
    Prior to forwarding the request to the selected origin, if the request matched a pathTemplateMatch, the matching portion of the request's path is replaced re-written using the pattern specified by pathTemplateRewrite. pathTemplateRewrite must be between 1 and 255 characters (inclusive), must start with a '/', and must only use variables captured by the route's pathTemplate matchers. pathTemplateRewrite may only be used when all of a route's MatchRules specify pathTemplate. Only one of pathPrefixRewrite and pathTemplateRewrite may be specified.
    hostRewrite string
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite string
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    pathTemplateRewrite string
    Prior to forwarding the request to the selected origin, if the request matched a pathTemplateMatch, the matching portion of the request's path is replaced re-written using the pattern specified by pathTemplateRewrite. pathTemplateRewrite must be between 1 and 255 characters (inclusive), must start with a '/', and must only use variables captured by the route's pathTemplate matchers. pathTemplateRewrite may only be used when all of a route's MatchRules specify pathTemplate. Only one of pathPrefixRewrite and pathTemplateRewrite may be specified.
    host_rewrite str
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    path_prefix_rewrite str
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    path_template_rewrite str
    Prior to forwarding the request to the selected origin, if the request matched a pathTemplateMatch, the matching portion of the request's path is replaced re-written using the pattern specified by pathTemplateRewrite. pathTemplateRewrite must be between 1 and 255 characters (inclusive), must start with a '/', and must only use variables captured by the route's pathTemplate matchers. pathTemplateRewrite may only be used when all of a route's MatchRules specify pathTemplate. Only one of pathPrefixRewrite and pathTemplateRewrite may be specified.
    hostRewrite String
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
    pathPrefixRewrite String
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
    pathTemplateRewrite String
    Prior to forwarding the request to the selected origin, if the request matched a pathTemplateMatch, the matching portion of the request's path is replaced re-written using the pattern specified by pathTemplateRewrite. pathTemplateRewrite must be between 1 and 255 characters (inclusive), must start with a '/', and must only use variables captured by the route's pathTemplate matchers. pathTemplateRewrite may only be used when all of a route's MatchRules specify pathTemplate. Only one of pathPrefixRewrite and pathTemplateRewrite may be specified.

    RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendService, RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceArgs

    BackendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    Weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    HeaderAction RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    BackendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    Weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    HeaderAction RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backendService String
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight Integer
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    headerAction RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backendService string
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight number
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    headerAction RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backend_service str
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight int
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    header_action RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.
    backendService String
    The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
    weight Number
    Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
    headerAction Property Map
    Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. Structure is documented below.

    RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction, RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionArgs

    RequestHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves List<string>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    RequestHeadersToAdds []RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    RequestHeadersToRemoves []string
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    ResponseHeadersToAdds []RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd
    Headers to add the response before sending the response back to the client. Structure is documented below.
    ResponseHeadersToRemoves []string
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd[]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd[]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves string[]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    request_headers_to_adds Sequence[RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd]
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    request_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    response_headers_to_adds Sequence[RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd]
    Headers to add the response before sending the response back to the client. Structure is documented below.
    response_headers_to_removes Sequence[str]
    A list of header names for headers that need to be removed from the response before sending the response back to the client.
    requestHeadersToAdds List<Property Map>
    Headers to add to a matching request before forwarding the request to the backendService. Structure is documented below.
    requestHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
    responseHeadersToAdds List<Property Map>
    Headers to add the response before sending the response back to the client. Structure is documented below.
    responseHeadersToRemoves List<String>
    A list of header names for headers that need to be removed from the response before sending the response back to the client.

    RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd, RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd, RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs

    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    HeaderName string
    The name of the header.
    HeaderValue string
    The value of the header to add.
    Replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName string
    The name of the header.
    headerValue string
    The value of the header to add.
    replace boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    header_name str
    The name of the header.
    header_value str
    The value of the header to add.
    replace bool
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.
    headerName String
    The name of the header.
    headerValue String
    The value of the header to add.
    replace Boolean
    If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

    RegionUrlMapPathMatcherRouteRuleUrlRedirect, RegionUrlMapPathMatcherRouteRuleUrlRedirectArgs

    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    HostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    HttpsRedirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    PathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    PrefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    RedirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    StripQuery bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect string
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect string
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect string
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode string
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    host_redirect str
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    https_redirect bool
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    path_redirect str
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefix_redirect str
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirect_response_code str
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    strip_query bool
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.
    hostRedirect String
    The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
    httpsRedirect Boolean
    If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
    pathRedirect String
    The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    prefixRedirect String
    The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
    redirectResponseCode String
    The HTTP Status code to use for this RedirectAction. Supported values are:

    • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
    • FOUND, which corresponds to 302.
    • SEE_OTHER which corresponds to 303.
    • TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained.
    • PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
    stripQuery Boolean
    If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. This field is required to ensure an empty block is not set. The normal default value is false.

    RegionUrlMapTest, RegionUrlMapTestArgs

    Host string
    Host portion of the URL.
    Path string
    Path portion of the URL.
    Service string
    A reference to expected RegionBackendService resource the given URL should be mapped to.
    Description string
    Description of this test case.
    Host string
    Host portion of the URL.
    Path string
    Path portion of the URL.
    Service string
    A reference to expected RegionBackendService resource the given URL should be mapped to.
    Description string
    Description of this test case.
    host String
    Host portion of the URL.
    path String
    Path portion of the URL.
    service String
    A reference to expected RegionBackendService resource the given URL should be mapped to.
    description String
    Description of this test case.
    host string
    Host portion of the URL.
    path string
    Path portion of the URL.
    service string
    A reference to expected RegionBackendService resource the given URL should be mapped to.
    description string
    Description of this test case.
    host str
    Host portion of the URL.
    path str
    Path portion of the URL.
    service str
    A reference to expected RegionBackendService resource the given URL should be mapped to.
    description str
    Description of this test case.
    host String
    Host portion of the URL.
    path String
    Path portion of the URL.
    service String
    A reference to expected RegionBackendService resource the given URL should be mapped to.
    description String
    Description of this test case.

    Import

    RegionUrlMap can be imported using any of these accepted formats:

    • projects/{{project}}/regions/{{region}}/urlMaps/{{name}}

    • {{project}}/{{region}}/{{name}}

    • {{region}}/{{name}}

    • {{name}}

    When using the pulumi import command, RegionUrlMap can be imported using one of the formats above. For example:

    $ pulumi import gcp:compute/regionUrlMap:RegionUrlMap default projects/{{project}}/regions/{{region}}/urlMaps/{{name}}
    
    $ pulumi import gcp:compute/regionUrlMap:RegionUrlMap default {{project}}/{{region}}/{{name}}
    
    $ pulumi import gcp:compute/regionUrlMap:RegionUrlMap default {{region}}/{{name}}
    
    $ pulumi import gcp:compute/regionUrlMap:RegionUrlMap default {{name}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi