Google Cloud (GCP) Classic

Pulumi Official
Package maintained by Pulumi
v6.32.0 published on Wednesday, Jul 20, 2022 by Pulumi

EdgeCacheService

EdgeCacheService defines the IP addresses, protocols, security policies, cache policies and routing configuration.

Warning: These resources require allow-listing to use, and are not openly available to all Cloud customers. Engage with your Cloud account team to discuss how to onboard.

Example Usage

Network Services Edge Cache Service Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
    public MyStack()
    {
        var dest = new Gcp.Storage.Bucket("dest", new Gcp.Storage.BucketArgs
        {
            Location = "US",
            ForceDestroy = true,
        });
        var instanceEdgeCacheOrigin = new Gcp.NetworkServices.EdgeCacheOrigin("instanceEdgeCacheOrigin", new Gcp.NetworkServices.EdgeCacheOriginArgs
        {
            OriginAddress = dest.Url,
            Description = "The default bucket for media edge test",
            MaxAttempts = 2,
            Timeout = new Gcp.NetworkServices.Inputs.EdgeCacheOriginTimeoutArgs
            {
                ConnectTimeout = "10s",
            },
        });
        var instanceEdgeCacheService = new Gcp.NetworkServices.EdgeCacheService("instanceEdgeCacheService", new Gcp.NetworkServices.EdgeCacheServiceArgs
        {
            Description = "some description",
            Routing = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingArgs
            {
                HostRules = 
                {
                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingHostRuleArgs
                    {
                        Description = "host rule description",
                        Hosts = 
                        {
                            "sslcert.tf-test.club",
                        },
                        PathMatcher = "routes",
                    },
                },
                PathMatchers = 
                {
                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherArgs
                    {
                        Name = "routes",
                        RouteRules = 
                        {
                            new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs
                            {
                                Description = "a route rule to match against",
                                Priority = "1",
                                MatchRules = 
                                {
                                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs
                                    {
                                        PrefixMatch = "/",
                                    },
                                },
                                Origin = instanceEdgeCacheOrigin.Name,
                                RouteAction = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs
                                {
                                    CdnPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs
                                    {
                                        CacheMode = "CACHE_ALL_STATIC",
                                        DefaultTtl = "3600s",
                                    },
                                },
                                HeaderAction = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs
                                {
                                    ResponseHeaderToAdds = 
                                    {
                                        new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs
                                        {
                                            HeaderName = "x-cache-status",
                                            HeaderValue = "{cdn_cache_status}",
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/networkservices"
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		dest, err := storage.NewBucket(ctx, "dest", &storage.BucketArgs{
			Location:     pulumi.String("US"),
			ForceDestroy: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		instanceEdgeCacheOrigin, err := networkservices.NewEdgeCacheOrigin(ctx, "instanceEdgeCacheOrigin", &networkservices.EdgeCacheOriginArgs{
			OriginAddress: dest.Url,
			Description:   pulumi.String("The default bucket for media edge test"),
			MaxAttempts:   pulumi.Int(2),
			Timeout: &networkservices.EdgeCacheOriginTimeoutArgs{
				ConnectTimeout: pulumi.String("10s"),
			},
		})
		if err != nil {
			return err
		}
		_, err = networkservices.NewEdgeCacheService(ctx, "instanceEdgeCacheService", &networkservices.EdgeCacheServiceArgs{
			Description: pulumi.String("some description"),
			Routing: &networkservices.EdgeCacheServiceRoutingArgs{
				HostRules: networkservices.EdgeCacheServiceRoutingHostRuleArray{
					&networkservices.EdgeCacheServiceRoutingHostRuleArgs{
						Description: pulumi.String("host rule description"),
						Hosts: pulumi.StringArray{
							pulumi.String("sslcert.tf-test.club"),
						},
						PathMatcher: pulumi.String("routes"),
					},
				},
				PathMatchers: networkservices.EdgeCacheServiceRoutingPathMatcherArray{
					&networkservices.EdgeCacheServiceRoutingPathMatcherArgs{
						Name: pulumi.String("routes"),
						RouteRules: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArray{
							&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs{
								Description: pulumi.String("a route rule to match against"),
								Priority:    pulumi.String("1"),
								MatchRules: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArray{
									&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs{
										PrefixMatch: pulumi.String("/"),
									},
								},
								Origin: instanceEdgeCacheOrigin.Name,
								RouteAction: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs{
									CdnPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs{
										CacheMode:  pulumi.String("CACHE_ALL_STATIC"),
										DefaultTtl: pulumi.String("3600s"),
									},
								},
								HeaderAction: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs{
									ResponseHeaderToAdds: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArray{
										&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs{
											HeaderName:  pulumi.String("x-cache-status"),
											HeaderValue: pulumi.String("{cdn_cache_status}"),
										},
									},
								},
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var dest = new Bucket("dest", BucketArgs.builder()        
            .location("US")
            .forceDestroy(true)
            .build());

        var instanceEdgeCacheOrigin = new EdgeCacheOrigin("instanceEdgeCacheOrigin", EdgeCacheOriginArgs.builder()        
            .originAddress(dest.url())
            .description("The default bucket for media edge test")
            .maxAttempts(2)
            .timeout(EdgeCacheOriginTimeoutArgs.builder()
                .connectTimeout("10s")
                .build())
            .build());

        var instanceEdgeCacheService = new EdgeCacheService("instanceEdgeCacheService", EdgeCacheServiceArgs.builder()        
            .description("some description")
            .routing(EdgeCacheServiceRoutingArgs.builder()
                .hostRules(EdgeCacheServiceRoutingHostRuleArgs.builder()
                    .description("host rule description")
                    .hosts("sslcert.tf-test.club")
                    .pathMatcher("routes")
                    .build())
                .pathMatchers(EdgeCacheServiceRoutingPathMatcherArgs.builder()
                    .name("routes")
                    .routeRules(EdgeCacheServiceRoutingPathMatcherRouteRuleArgs.builder()
                        .description("a route rule to match against")
                        .priority(1)
                        .matchRules(EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs.builder()
                            .prefixMatch("/")
                            .build())
                        .origin(instanceEdgeCacheOrigin.name())
                        .routeAction(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs.builder()
                            .cdnPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs.builder()
                                .cacheMode("CACHE_ALL_STATIC")
                                .defaultTtl("3600s")
                                .build())
                            .build())
                        .headerAction(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs.builder()
                            .responseHeaderToAdds(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs.builder()
                                .headerName("x-cache-status")
                                .headerValue("{cdn_cache_status}")
                                .build())
                            .build())
                        .build())
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

dest = gcp.storage.Bucket("dest",
    location="US",
    force_destroy=True)
instance_edge_cache_origin = gcp.networkservices.EdgeCacheOrigin("instanceEdgeCacheOrigin",
    origin_address=dest.url,
    description="The default bucket for media edge test",
    max_attempts=2,
    timeout=gcp.networkservices.EdgeCacheOriginTimeoutArgs(
        connect_timeout="10s",
    ))
instance_edge_cache_service = gcp.networkservices.EdgeCacheService("instanceEdgeCacheService",
    description="some description",
    routing=gcp.networkservices.EdgeCacheServiceRoutingArgs(
        host_rules=[gcp.networkservices.EdgeCacheServiceRoutingHostRuleArgs(
            description="host rule description",
            hosts=["sslcert.tf-test.club"],
            path_matcher="routes",
        )],
        path_matchers=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherArgs(
            name="routes",
            route_rules=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs(
                description="a route rule to match against",
                priority="1",
                match_rules=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs(
                    prefix_match="/",
                )],
                origin=instance_edge_cache_origin.name,
                route_action=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs(
                    cdn_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs(
                        cache_mode="CACHE_ALL_STATIC",
                        default_ttl="3600s",
                    ),
                ),
                header_action=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs(
                    response_header_to_adds=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs(
                        header_name="x-cache-status",
                        header_value="{cdn_cache_status}",
                    )],
                ),
            )],
        )],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const dest = new gcp.storage.Bucket("dest", {
    location: "US",
    forceDestroy: true,
});
const instanceEdgeCacheOrigin = new gcp.networkservices.EdgeCacheOrigin("instanceEdgeCacheOrigin", {
    originAddress: dest.url,
    description: "The default bucket for media edge test",
    maxAttempts: 2,
    timeout: {
        connectTimeout: "10s",
    },
});
const instanceEdgeCacheService = new gcp.networkservices.EdgeCacheService("instanceEdgeCacheService", {
    description: "some description",
    routing: {
        hostRules: [{
            description: "host rule description",
            hosts: ["sslcert.tf-test.club"],
            pathMatcher: "routes",
        }],
        pathMatchers: [{
            name: "routes",
            routeRules: [{
                description: "a route rule to match against",
                priority: "1",
                matchRules: [{
                    prefixMatch: "/",
                }],
                origin: instanceEdgeCacheOrigin.name,
                routeAction: {
                    cdnPolicy: {
                        cacheMode: "CACHE_ALL_STATIC",
                        defaultTtl: "3600s",
                    },
                },
                headerAction: {
                    responseHeaderToAdds: [{
                        headerName: "x-cache-status",
                        headerValue: "{cdn_cache_status}",
                    }],
                },
            }],
        }],
    },
});
resources:
  dest:
    type: gcp:storage:Bucket
    properties:
      location: US
      forceDestroy: true
  instanceEdgeCacheOrigin:
    type: gcp:networkservices:EdgeCacheOrigin
    properties:
      originAddress: ${dest.url}
      description: The default bucket for media edge test
      maxAttempts: 2
      timeout:
        connectTimeout: 10s
  instanceEdgeCacheService:
    type: gcp:networkservices:EdgeCacheService
    properties:
      description: some description
      routing:
        hostRules:
          - description: host rule description
            hosts:
              - sslcert.tf-test.club
            pathMatcher: routes
        pathMatchers:
          - name: routes
            routeRules:
              - description: a route rule to match against
                priority: 1
                matchRules:
                  - prefixMatch: /
                origin: ${instanceEdgeCacheOrigin.name}
                routeAction:
                  cdnPolicy:
                    cacheMode: CACHE_ALL_STATIC
                    defaultTtl: 3600s
                headerAction:
                  responseHeaderToAdds:
                    - headerName: x-cache-status
                      headerValue: '{cdn_cache_status}'

Network Services Edge Cache Service Advanced

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
    public MyStack()
    {
        var dest = new Gcp.Storage.Bucket("dest", new Gcp.Storage.BucketArgs
        {
            Location = "US",
            ForceDestroy = true,
        });
        var google = new Gcp.NetworkServices.EdgeCacheOrigin("google", new Gcp.NetworkServices.EdgeCacheOriginArgs
        {
            OriginAddress = "google.com",
            Description = "The default bucket for media edge test",
            MaxAttempts = 2,
            Timeout = new Gcp.NetworkServices.Inputs.EdgeCacheOriginTimeoutArgs
            {
                ConnectTimeout = "10s",
            },
        });
        var instanceEdgeCacheOrigin = new Gcp.NetworkServices.EdgeCacheOrigin("instanceEdgeCacheOrigin", new Gcp.NetworkServices.EdgeCacheOriginArgs
        {
            OriginAddress = dest.Url,
            Description = "The default bucket for media edge test",
            MaxAttempts = 2,
            Timeout = new Gcp.NetworkServices.Inputs.EdgeCacheOriginTimeoutArgs
            {
                ConnectTimeout = "10s",
            },
        });
        var instanceEdgeCacheService = new Gcp.NetworkServices.EdgeCacheService("instanceEdgeCacheService", new Gcp.NetworkServices.EdgeCacheServiceArgs
        {
            Description = "some description",
            DisableQuic = true,
            DisableHttp2 = true,
            Labels = 
            {
                { "a", "b" },
            },
            Routing = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingArgs
            {
                HostRules = 
                {
                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingHostRuleArgs
                    {
                        Description = "host rule description",
                        Hosts = 
                        {
                            "sslcert.tf-test.club",
                        },
                        PathMatcher = "routes",
                    },
                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingHostRuleArgs
                    {
                        Description = "host rule2",
                        Hosts = 
                        {
                            "sslcert.tf-test2.club",
                        },
                        PathMatcher = "routes",
                    },
                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingHostRuleArgs
                    {
                        Description = "host rule3",
                        Hosts = 
                        {
                            "sslcert.tf-test3.club",
                        },
                        PathMatcher = "routesAdvanced",
                    },
                },
                PathMatchers = 
                {
                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherArgs
                    {
                        Name = "routes",
                        RouteRules = 
                        {
                            new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs
                            {
                                Description = "a route rule to match against",
                                Priority = "1",
                                MatchRules = 
                                {
                                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs
                                    {
                                        PrefixMatch = "/",
                                    },
                                },
                                Origin = instanceEdgeCacheOrigin.Name,
                                RouteAction = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs
                                {
                                    CdnPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs
                                    {
                                        CacheMode = "CACHE_ALL_STATIC",
                                        DefaultTtl = "3600s",
                                    },
                                },
                                HeaderAction = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs
                                {
                                    ResponseHeaderToAdds = 
                                    {
                                        new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs
                                        {
                                            HeaderName = "x-cache-status",
                                            HeaderValue = "{cdn_cache_status}",
                                        },
                                    },
                                },
                            },
                        },
                    },
                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherArgs
                    {
                        Name = "routesAdvanced",
                        Description = "an advanced ruleset",
                        RouteRules = 
                        {
                            new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs
                            {
                                Description = "an advanced route rule to match against",
                                Priority = "1",
                                MatchRules = 
                                {
                                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs
                                    {
                                        PrefixMatch = "/potato/",
                                        QueryParameterMatches = 
                                        {
                                            new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs
                                            {
                                                Name = "debug",
                                                PresentMatch = true,
                                            },
                                            new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs
                                            {
                                                Name = "state",
                                                ExactMatch = "debug",
                                            },
                                        },
                                    },
                                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs
                                    {
                                        FullPathMatch = "/apple",
                                    },
                                },
                                HeaderAction = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs
                                {
                                    RequestHeaderToAdds = 
                                    {
                                        new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs
                                        {
                                            HeaderName = "debug",
                                            HeaderValue = "true",
                                            Replace = true,
                                        },
                                        new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs
                                        {
                                            HeaderName = "potato",
                                            HeaderValue = "plant",
                                        },
                                    },
                                    ResponseHeaderToAdds = 
                                    {
                                        new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs
                                        {
                                            HeaderName = "potato",
                                            HeaderValue = "plant",
                                            Replace = true,
                                        },
                                    },
                                    RequestHeaderToRemoves = 
                                    {
                                        new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemoveArgs
                                        {
                                            HeaderName = "prod",
                                        },
                                    },
                                    ResponseHeaderToRemoves = 
                                    {
                                        new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemoveArgs
                                        {
                                            HeaderName = "prod",
                                        },
                                    },
                                },
                                Origin = instanceEdgeCacheOrigin.Name,
                                RouteAction = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs
                                {
                                    CdnPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs
                                    {
                                        CacheMode = "CACHE_ALL_STATIC",
                                        DefaultTtl = "3800s",
                                        ClientTtl = "3600s",
                                        MaxTtl = "9000s",
                                        CacheKeyPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs
                                        {
                                            IncludeProtocol = true,
                                            ExcludeHost = true,
                                            IncludedQueryParameters = 
                                            {
                                                "apple",
                                                "dev",
                                                "santa",
                                                "claus",
                                            },
                                            IncludedHeaderNames = 
                                            {
                                                "banana",
                                            },
                                            IncludedCookieNames = 
                                            {
                                                "orange",
                                            },
                                        },
                                        NegativeCaching = true,
                                        SignedRequestMode = "DISABLED",
                                        NegativeCachingPolicy = 
                                        {
                                            { "500", "3000s" },
                                        },
                                    },
                                    UrlRewrite = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs
                                    {
                                        PathPrefixRewrite = "/dev",
                                        HostRewrite = "dev.club",
                                    },
                                    CorsPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs
                                    {
                                        MaxAge = "2500s",
                                        AllowCredentials = true,
                                        AllowOrigins = 
                                        {
                                            "*",
                                        },
                                        AllowMethods = 
                                        {
                                            "GET",
                                        },
                                        AllowHeaders = 
                                        {
                                            "dev",
                                        },
                                        ExposeHeaders = 
                                        {
                                            "prod",
                                        },
                                    },
                                },
                            },
                            new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs
                            {
                                Description = "a second route rule to match against",
                                Priority = "2",
                                MatchRules = 
                                {
                                    new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs
                                    {
                                        FullPathMatch = "/yay",
                                    },
                                },
                                Origin = instanceEdgeCacheOrigin.Name,
                                RouteAction = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs
                                {
                                    CdnPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs
                                    {
                                        CacheMode = "CACHE_ALL_STATIC",
                                        DefaultTtl = "3600s",
                                        CacheKeyPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs
                                        {
                                            ExcludedQueryParameters = 
                                            {
                                                "dev",
                                            },
                                        },
                                    },
                                    CorsPolicy = new Gcp.NetworkServices.Inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs
                                    {
                                        MaxAge = "3000s",
                                        AllowHeaders = 
                                        {
                                            "dev",
                                        },
                                        Disabled = true,
                                    },
                                },
                            },
                        },
                    },
                },
            },
            LogConfig = new Gcp.NetworkServices.Inputs.EdgeCacheServiceLogConfigArgs
            {
                Enable = true,
                SampleRate = 0.01,
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/networkservices"
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		dest, err := storage.NewBucket(ctx, "dest", &storage.BucketArgs{
			Location:     pulumi.String("US"),
			ForceDestroy: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = networkservices.NewEdgeCacheOrigin(ctx, "google", &networkservices.EdgeCacheOriginArgs{
			OriginAddress: pulumi.String("google.com"),
			Description:   pulumi.String("The default bucket for media edge test"),
			MaxAttempts:   pulumi.Int(2),
			Timeout: &networkservices.EdgeCacheOriginTimeoutArgs{
				ConnectTimeout: pulumi.String("10s"),
			},
		})
		if err != nil {
			return err
		}
		instanceEdgeCacheOrigin, err := networkservices.NewEdgeCacheOrigin(ctx, "instanceEdgeCacheOrigin", &networkservices.EdgeCacheOriginArgs{
			OriginAddress: dest.Url,
			Description:   pulumi.String("The default bucket for media edge test"),
			MaxAttempts:   pulumi.Int(2),
			Timeout: &networkservices.EdgeCacheOriginTimeoutArgs{
				ConnectTimeout: pulumi.String("10s"),
			},
		})
		if err != nil {
			return err
		}
		_, err = networkservices.NewEdgeCacheService(ctx, "instanceEdgeCacheService", &networkservices.EdgeCacheServiceArgs{
			Description:  pulumi.String("some description"),
			DisableQuic:  pulumi.Bool(true),
			DisableHttp2: pulumi.Bool(true),
			Labels: pulumi.StringMap{
				"a": pulumi.String("b"),
			},
			Routing: &networkservices.EdgeCacheServiceRoutingArgs{
				HostRules: networkservices.EdgeCacheServiceRoutingHostRuleArray{
					&networkservices.EdgeCacheServiceRoutingHostRuleArgs{
						Description: pulumi.String("host rule description"),
						Hosts: pulumi.StringArray{
							pulumi.String("sslcert.tf-test.club"),
						},
						PathMatcher: pulumi.String("routes"),
					},
					&networkservices.EdgeCacheServiceRoutingHostRuleArgs{
						Description: pulumi.String("host rule2"),
						Hosts: pulumi.StringArray{
							pulumi.String("sslcert.tf-test2.club"),
						},
						PathMatcher: pulumi.String("routes"),
					},
					&networkservices.EdgeCacheServiceRoutingHostRuleArgs{
						Description: pulumi.String("host rule3"),
						Hosts: pulumi.StringArray{
							pulumi.String("sslcert.tf-test3.club"),
						},
						PathMatcher: pulumi.String("routesAdvanced"),
					},
				},
				PathMatchers: networkservices.EdgeCacheServiceRoutingPathMatcherArray{
					&networkservices.EdgeCacheServiceRoutingPathMatcherArgs{
						Name: pulumi.String("routes"),
						RouteRules: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArray{
							&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs{
								Description: pulumi.String("a route rule to match against"),
								Priority:    pulumi.String("1"),
								MatchRules: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArray{
									&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs{
										PrefixMatch: pulumi.String("/"),
									},
								},
								Origin: instanceEdgeCacheOrigin.Name,
								RouteAction: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs{
									CdnPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs{
										CacheMode:  pulumi.String("CACHE_ALL_STATIC"),
										DefaultTtl: pulumi.String("3600s"),
									},
								},
								HeaderAction: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs{
									ResponseHeaderToAdds: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArray{
										&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs{
											HeaderName:  pulumi.String("x-cache-status"),
											HeaderValue: pulumi.String("{cdn_cache_status}"),
										},
									},
								},
							},
						},
					},
					&networkservices.EdgeCacheServiceRoutingPathMatcherArgs{
						Name:        pulumi.String("routesAdvanced"),
						Description: pulumi.String("an advanced ruleset"),
						RouteRules: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArray{
							&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs{
								Description: pulumi.String("an advanced route rule to match against"),
								Priority:    pulumi.String("1"),
								MatchRules: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArray{
									&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs{
										PrefixMatch: pulumi.String("/potato/"),
										QueryParameterMatches: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArray{
											&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs{
												Name:         pulumi.String("debug"),
												PresentMatch: pulumi.Bool(true),
											},
											&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs{
												Name:       pulumi.String("state"),
												ExactMatch: pulumi.String("debug"),
											},
										},
									},
									&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs{
										FullPathMatch: pulumi.String("/apple"),
									},
								},
								HeaderAction: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs{
									RequestHeaderToAdds: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArray{
										&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs{
											HeaderName:  pulumi.String("debug"),
											HeaderValue: pulumi.String("true"),
											Replace:     pulumi.Bool(true),
										},
										&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs{
											HeaderName:  pulumi.String("potato"),
											HeaderValue: pulumi.String("plant"),
										},
									},
									ResponseHeaderToAdds: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArray{
										&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs{
											HeaderName:  pulumi.String("potato"),
											HeaderValue: pulumi.String("plant"),
											Replace:     pulumi.Bool(true),
										},
									},
									RequestHeaderToRemoves: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemoveArray{
										&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemoveArgs{
											HeaderName: pulumi.String("prod"),
										},
									},
									ResponseHeaderToRemoves: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemoveArray{
										&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemoveArgs{
											HeaderName: pulumi.String("prod"),
										},
									},
								},
								Origin: instanceEdgeCacheOrigin.Name,
								RouteAction: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs{
									CdnPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs{
										CacheMode:  pulumi.String("CACHE_ALL_STATIC"),
										DefaultTtl: pulumi.String("3800s"),
										ClientTtl:  pulumi.String("3600s"),
										MaxTtl:     pulumi.String("9000s"),
										CacheKeyPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs{
											IncludeProtocol: pulumi.Bool(true),
											ExcludeHost:     pulumi.Bool(true),
											IncludedQueryParameters: pulumi.StringArray{
												pulumi.String("apple"),
												pulumi.String("dev"),
												pulumi.String("santa"),
												pulumi.String("claus"),
											},
											IncludedHeaderNames: pulumi.StringArray{
												pulumi.String("banana"),
											},
											IncludedCookieNames: pulumi.StringArray{
												pulumi.String("orange"),
											},
										},
										NegativeCaching:   pulumi.Bool(true),
										SignedRequestMode: pulumi.String("DISABLED"),
										NegativeCachingPolicy: pulumi.StringMap{
											"500": pulumi.String("3000s"),
										},
									},
									UrlRewrite: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs{
										PathPrefixRewrite: pulumi.String("/dev"),
										HostRewrite:       pulumi.String("dev.club"),
									},
									CorsPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs{
										MaxAge:           pulumi.String("2500s"),
										AllowCredentials: pulumi.Bool(true),
										AllowOrigins: pulumi.StringArray{
											pulumi.String("*"),
										},
										AllowMethods: pulumi.StringArray{
											pulumi.String("GET"),
										},
										AllowHeaders: pulumi.StringArray{
											pulumi.String("dev"),
										},
										ExposeHeaders: pulumi.StringArray{
											pulumi.String("prod"),
										},
									},
								},
							},
							&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs{
								Description: pulumi.String("a second route rule to match against"),
								Priority:    pulumi.String("2"),
								MatchRules: networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArray{
									&networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs{
										FullPathMatch: pulumi.String("/yay"),
									},
								},
								Origin: instanceEdgeCacheOrigin.Name,
								RouteAction: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs{
									CdnPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs{
										CacheMode:  pulumi.String("CACHE_ALL_STATIC"),
										DefaultTtl: pulumi.String("3600s"),
										CacheKeyPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs{
											ExcludedQueryParameters: pulumi.StringArray{
												pulumi.String("dev"),
											},
										},
									},
									CorsPolicy: &networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs{
										MaxAge: pulumi.String("3000s"),
										AllowHeaders: pulumi.StringArray{
											pulumi.String("dev"),
										},
										Disabled: pulumi.Bool(true),
									},
								},
							},
						},
					},
				},
			},
			LogConfig: &networkservices.EdgeCacheServiceLogConfigArgs{
				Enable:     pulumi.Bool(true),
				SampleRate: pulumi.Float64(0.01),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var dest = new Bucket("dest", BucketArgs.builder()        
            .location("US")
            .forceDestroy(true)
            .build());

        var google = new EdgeCacheOrigin("google", EdgeCacheOriginArgs.builder()        
            .originAddress("google.com")
            .description("The default bucket for media edge test")
            .maxAttempts(2)
            .timeout(EdgeCacheOriginTimeoutArgs.builder()
                .connectTimeout("10s")
                .build())
            .build());

        var instanceEdgeCacheOrigin = new EdgeCacheOrigin("instanceEdgeCacheOrigin", EdgeCacheOriginArgs.builder()        
            .originAddress(dest.url())
            .description("The default bucket for media edge test")
            .maxAttempts(2)
            .timeout(EdgeCacheOriginTimeoutArgs.builder()
                .connectTimeout("10s")
                .build())
            .build());

        var instanceEdgeCacheService = new EdgeCacheService("instanceEdgeCacheService", EdgeCacheServiceArgs.builder()        
            .description("some description")
            .disableQuic(true)
            .disableHttp2(true)
            .labels(Map.of("a", "b"))
            .routing(EdgeCacheServiceRoutingArgs.builder()
                .hostRules(                
                    EdgeCacheServiceRoutingHostRuleArgs.builder()
                        .description("host rule description")
                        .hosts("sslcert.tf-test.club")
                        .pathMatcher("routes")
                        .build(),
                    EdgeCacheServiceRoutingHostRuleArgs.builder()
                        .description("host rule2")
                        .hosts("sslcert.tf-test2.club")
                        .pathMatcher("routes")
                        .build(),
                    EdgeCacheServiceRoutingHostRuleArgs.builder()
                        .description("host rule3")
                        .hosts("sslcert.tf-test3.club")
                        .pathMatcher("routesAdvanced")
                        .build())
                .pathMatchers(                
                    EdgeCacheServiceRoutingPathMatcherArgs.builder()
                        .name("routes")
                        .routeRules(EdgeCacheServiceRoutingPathMatcherRouteRuleArgs.builder()
                            .description("a route rule to match against")
                            .priority(1)
                            .matchRules(EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs.builder()
                                .prefixMatch("/")
                                .build())
                            .origin(instanceEdgeCacheOrigin.name())
                            .routeAction(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs.builder()
                                .cdnPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs.builder()
                                    .cacheMode("CACHE_ALL_STATIC")
                                    .defaultTtl("3600s")
                                    .build())
                                .build())
                            .headerAction(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs.builder()
                                .responseHeaderToAdds(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs.builder()
                                    .headerName("x-cache-status")
                                    .headerValue("{cdn_cache_status}")
                                    .build())
                                .build())
                            .build())
                        .build(),
                    EdgeCacheServiceRoutingPathMatcherArgs.builder()
                        .name("routesAdvanced")
                        .description("an advanced ruleset")
                        .routeRules(                        
                            EdgeCacheServiceRoutingPathMatcherRouteRuleArgs.builder()
                                .description("an advanced route rule to match against")
                                .priority(1)
                                .matchRules(                                
                                    EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs.builder()
                                        .prefixMatch("/potato/")
                                        .queryParameterMatches(                                        
                                            EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs.builder()
                                                .name("debug")
                                                .presentMatch(true)
                                                .build(),
                                            EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs.builder()
                                                .name("state")
                                                .exactMatch("debug")
                                                .build())
                                        .build(),
                                    EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs.builder()
                                        .fullPathMatch("/apple")
                                        .build())
                                .headerAction(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs.builder()
                                    .requestHeaderToAdds(                                    
                                        EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs.builder()
                                            .headerName("debug")
                                            .headerValue("true")
                                            .replace(true)
                                            .build(),
                                        EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs.builder()
                                            .headerName("potato")
                                            .headerValue("plant")
                                            .build())
                                    .responseHeaderToAdds(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs.builder()
                                        .headerName("potato")
                                        .headerValue("plant")
                                        .replace(true)
                                        .build())
                                    .requestHeaderToRemoves(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemoveArgs.builder()
                                        .headerName("prod")
                                        .build())
                                    .responseHeaderToRemoves(EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemoveArgs.builder()
                                        .headerName("prod")
                                        .build())
                                    .build())
                                .origin(instanceEdgeCacheOrigin.name())
                                .routeAction(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs.builder()
                                    .cdnPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs.builder()
                                        .cacheMode("CACHE_ALL_STATIC")
                                        .defaultTtl("3800s")
                                        .clientTtl("3600s")
                                        .maxTtl("9000s")
                                        .cacheKeyPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs.builder()
                                            .includeProtocol(true)
                                            .excludeHost(true)
                                            .includedQueryParameters(                                            
                                                "apple",
                                                "dev",
                                                "santa",
                                                "claus")
                                            .includedHeaderNames("banana")
                                            .includedCookieNames("orange")
                                            .build())
                                        .negativeCaching(true)
                                        .signedRequestMode("DISABLED")
                                        .negativeCachingPolicy(Map.of("500", "3000s"))
                                        .build())
                                    .urlRewrite(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs.builder()
                                        .pathPrefixRewrite("/dev")
                                        .hostRewrite("dev.club")
                                        .build())
                                    .corsPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs.builder()
                                        .maxAge("2500s")
                                        .allowCredentials(true)
                                        .allowOrigins("*")
                                        .allowMethods("GET")
                                        .allowHeaders("dev")
                                        .exposeHeaders("prod")
                                        .build())
                                    .build())
                                .build(),
                            EdgeCacheServiceRoutingPathMatcherRouteRuleArgs.builder()
                                .description("a second route rule to match against")
                                .priority(2)
                                .matchRules(EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs.builder()
                                    .fullPathMatch("/yay")
                                    .build())
                                .origin(instanceEdgeCacheOrigin.name())
                                .routeAction(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs.builder()
                                    .cdnPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs.builder()
                                        .cacheMode("CACHE_ALL_STATIC")
                                        .defaultTtl("3600s")
                                        .cacheKeyPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs.builder()
                                            .excludedQueryParameters("dev")
                                            .build())
                                        .build())
                                    .corsPolicy(EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs.builder()
                                        .maxAge("3000s")
                                        .allowHeaders("dev")
                                        .disabled(true)
                                        .build())
                                    .build())
                                .build())
                        .build())
                .build())
            .logConfig(EdgeCacheServiceLogConfigArgs.builder()
                .enable(true)
                .sampleRate(0.01)
                .build())
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

dest = gcp.storage.Bucket("dest",
    location="US",
    force_destroy=True)
google = gcp.networkservices.EdgeCacheOrigin("google",
    origin_address="google.com",
    description="The default bucket for media edge test",
    max_attempts=2,
    timeout=gcp.networkservices.EdgeCacheOriginTimeoutArgs(
        connect_timeout="10s",
    ))
instance_edge_cache_origin = gcp.networkservices.EdgeCacheOrigin("instanceEdgeCacheOrigin",
    origin_address=dest.url,
    description="The default bucket for media edge test",
    max_attempts=2,
    timeout=gcp.networkservices.EdgeCacheOriginTimeoutArgs(
        connect_timeout="10s",
    ))
instance_edge_cache_service = gcp.networkservices.EdgeCacheService("instanceEdgeCacheService",
    description="some description",
    disable_quic=True,
    disable_http2=True,
    labels={
        "a": "b",
    },
    routing=gcp.networkservices.EdgeCacheServiceRoutingArgs(
        host_rules=[
            gcp.networkservices.EdgeCacheServiceRoutingHostRuleArgs(
                description="host rule description",
                hosts=["sslcert.tf-test.club"],
                path_matcher="routes",
            ),
            gcp.networkservices.EdgeCacheServiceRoutingHostRuleArgs(
                description="host rule2",
                hosts=["sslcert.tf-test2.club"],
                path_matcher="routes",
            ),
            gcp.networkservices.EdgeCacheServiceRoutingHostRuleArgs(
                description="host rule3",
                hosts=["sslcert.tf-test3.club"],
                path_matcher="routesAdvanced",
            ),
        ],
        path_matchers=[
            gcp.networkservices.EdgeCacheServiceRoutingPathMatcherArgs(
                name="routes",
                route_rules=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs(
                    description="a route rule to match against",
                    priority="1",
                    match_rules=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs(
                        prefix_match="/",
                    )],
                    origin=instance_edge_cache_origin.name,
                    route_action=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs(
                        cdn_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs(
                            cache_mode="CACHE_ALL_STATIC",
                            default_ttl="3600s",
                        ),
                    ),
                    header_action=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs(
                        response_header_to_adds=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs(
                            header_name="x-cache-status",
                            header_value="{cdn_cache_status}",
                        )],
                    ),
                )],
            ),
            gcp.networkservices.EdgeCacheServiceRoutingPathMatcherArgs(
                name="routesAdvanced",
                description="an advanced ruleset",
                route_rules=[
                    gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs(
                        description="an advanced route rule to match against",
                        priority="1",
                        match_rules=[
                            gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs(
                                prefix_match="/potato/",
                                query_parameter_matches=[
                                    gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs(
                                        name="debug",
                                        present_match=True,
                                    ),
                                    gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs(
                                        name="state",
                                        exact_match="debug",
                                    ),
                                ],
                            ),
                            gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs(
                                full_path_match="/apple",
                            ),
                        ],
                        header_action=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionArgs(
                            request_header_to_adds=[
                                gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs(
                                    header_name="debug",
                                    header_value="true",
                                    replace=True,
                                ),
                                gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAddArgs(
                                    header_name="potato",
                                    header_value="plant",
                                ),
                            ],
                            response_header_to_adds=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAddArgs(
                                header_name="potato",
                                header_value="plant",
                                replace=True,
                            )],
                            request_header_to_removes=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemoveArgs(
                                header_name="prod",
                            )],
                            response_header_to_removes=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemoveArgs(
                                header_name="prod",
                            )],
                        ),
                        origin=instance_edge_cache_origin.name,
                        route_action=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs(
                            cdn_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs(
                                cache_mode="CACHE_ALL_STATIC",
                                default_ttl="3800s",
                                client_ttl="3600s",
                                max_ttl="9000s",
                                cache_key_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs(
                                    include_protocol=True,
                                    exclude_host=True,
                                    included_query_parameters=[
                                        "apple",
                                        "dev",
                                        "santa",
                                        "claus",
                                    ],
                                    included_header_names=["banana"],
                                    included_cookie_names=["orange"],
                                ),
                                negative_caching=True,
                                signed_request_mode="DISABLED",
                                negative_caching_policy={
                                    "500": "3000s",
                                },
                            ),
                            url_rewrite=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs(
                                path_prefix_rewrite="/dev",
                                host_rewrite="dev.club",
                            ),
                            cors_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs(
                                max_age="2500s",
                                allow_credentials=True,
                                allow_origins=["*"],
                                allow_methods=["GET"],
                                allow_headers=["dev"],
                                expose_headers=["prod"],
                            ),
                        ),
                    ),
                    gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleArgs(
                        description="a second route rule to match against",
                        priority="2",
                        match_rules=[gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleArgs(
                            full_path_match="/yay",
                        )],
                        origin=instance_edge_cache_origin.name,
                        route_action=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionArgs(
                            cdn_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyArgs(
                                cache_mode="CACHE_ALL_STATIC",
                                default_ttl="3600s",
                                cache_key_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicyArgs(
                                    excluded_query_parameters=["dev"],
                                ),
                            ),
                            cors_policy=gcp.networkservices.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs(
                                max_age="3000s",
                                allow_headers=["dev"],
                                disabled=True,
                            ),
                        ),
                    ),
                ],
            ),
        ],
    ),
    log_config=gcp.networkservices.EdgeCacheServiceLogConfigArgs(
        enable=True,
        sample_rate=0.01,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const dest = new gcp.storage.Bucket("dest", {
    location: "US",
    forceDestroy: true,
});
const google = new gcp.networkservices.EdgeCacheOrigin("google", {
    originAddress: "google.com",
    description: "The default bucket for media edge test",
    maxAttempts: 2,
    timeout: {
        connectTimeout: "10s",
    },
});
const instanceEdgeCacheOrigin = new gcp.networkservices.EdgeCacheOrigin("instanceEdgeCacheOrigin", {
    originAddress: dest.url,
    description: "The default bucket for media edge test",
    maxAttempts: 2,
    timeout: {
        connectTimeout: "10s",
    },
});
const instanceEdgeCacheService = new gcp.networkservices.EdgeCacheService("instanceEdgeCacheService", {
    description: "some description",
    disableQuic: true,
    disableHttp2: true,
    labels: {
        a: "b",
    },
    routing: {
        hostRules: [
            {
                description: "host rule description",
                hosts: ["sslcert.tf-test.club"],
                pathMatcher: "routes",
            },
            {
                description: "host rule2",
                hosts: ["sslcert.tf-test2.club"],
                pathMatcher: "routes",
            },
            {
                description: "host rule3",
                hosts: ["sslcert.tf-test3.club"],
                pathMatcher: "routesAdvanced",
            },
        ],
        pathMatchers: [
            {
                name: "routes",
                routeRules: [{
                    description: "a route rule to match against",
                    priority: "1",
                    matchRules: [{
                        prefixMatch: "/",
                    }],
                    origin: instanceEdgeCacheOrigin.name,
                    routeAction: {
                        cdnPolicy: {
                            cacheMode: "CACHE_ALL_STATIC",
                            defaultTtl: "3600s",
                        },
                    },
                    headerAction: {
                        responseHeaderToAdds: [{
                            headerName: "x-cache-status",
                            headerValue: "{cdn_cache_status}",
                        }],
                    },
                }],
            },
            {
                name: "routesAdvanced",
                description: "an advanced ruleset",
                routeRules: [
                    {
                        description: "an advanced route rule to match against",
                        priority: "1",
                        matchRules: [
                            {
                                prefixMatch: "/potato/",
                                queryParameterMatches: [
                                    {
                                        name: "debug",
                                        presentMatch: true,
                                    },
                                    {
                                        name: "state",
                                        exactMatch: "debug",
                                    },
                                ],
                            },
                            {
                                fullPathMatch: "/apple",
                            },
                        ],
                        headerAction: {
                            requestHeaderToAdds: [
                                {
                                    headerName: "debug",
                                    headerValue: "true",
                                    replace: true,
                                },
                                {
                                    headerName: "potato",
                                    headerValue: "plant",
                                },
                            ],
                            responseHeaderToAdds: [{
                                headerName: "potato",
                                headerValue: "plant",
                                replace: true,
                            }],
                            requestHeaderToRemoves: [{
                                headerName: "prod",
                            }],
                            responseHeaderToRemoves: [{
                                headerName: "prod",
                            }],
                        },
                        origin: instanceEdgeCacheOrigin.name,
                        routeAction: {
                            cdnPolicy: {
                                cacheMode: "CACHE_ALL_STATIC",
                                defaultTtl: "3800s",
                                clientTtl: "3600s",
                                maxTtl: "9000s",
                                cacheKeyPolicy: {
                                    includeProtocol: true,
                                    excludeHost: true,
                                    includedQueryParameters: [
                                        "apple",
                                        "dev",
                                        "santa",
                                        "claus",
                                    ],
                                    includedHeaderNames: ["banana"],
                                    includedCookieNames: ["orange"],
                                },
                                negativeCaching: true,
                                signedRequestMode: "DISABLED",
                                negativeCachingPolicy: {
                                    "500": "3000s",
                                },
                            },
                            urlRewrite: {
                                pathPrefixRewrite: "/dev",
                                hostRewrite: "dev.club",
                            },
                            corsPolicy: {
                                maxAge: "2500s",
                                allowCredentials: true,
                                allowOrigins: ["*"],
                                allowMethods: ["GET"],
                                allowHeaders: ["dev"],
                                exposeHeaders: ["prod"],
                            },
                        },
                    },
                    {
                        description: "a second route rule to match against",
                        priority: "2",
                        matchRules: [{
                            fullPathMatch: "/yay",
                        }],
                        origin: instanceEdgeCacheOrigin.name,
                        routeAction: {
                            cdnPolicy: {
                                cacheMode: "CACHE_ALL_STATIC",
                                defaultTtl: "3600s",
                                cacheKeyPolicy: {
                                    excludedQueryParameters: ["dev"],
                                },
                            },
                            corsPolicy: {
                                maxAge: "3000s",
                                allowHeaders: ["dev"],
                                disabled: true,
                            },
                        },
                    },
                ],
            },
        ],
    },
    logConfig: {
        enable: true,
        sampleRate: 0.01,
    },
});
resources:
  dest:
    type: gcp:storage:Bucket
    properties:
      location: US
      forceDestroy: true
  google:
    type: gcp:networkservices:EdgeCacheOrigin
    properties:
      originAddress: google.com
      description: The default bucket for media edge test
      maxAttempts: 2
      timeout:
        connectTimeout: 10s
  instanceEdgeCacheOrigin:
    type: gcp:networkservices:EdgeCacheOrigin
    properties:
      originAddress: ${dest.url}
      description: The default bucket for media edge test
      maxAttempts: 2
      timeout:
        connectTimeout: 10s
  instanceEdgeCacheService:
    type: gcp:networkservices:EdgeCacheService
    properties:
      description: some description
      disableQuic: true
      disableHttp2: true
      labels:
        a: b
      routing:
        hostRules:
          - description: host rule description
            hosts:
              - sslcert.tf-test.club
            pathMatcher: routes
          - description: host rule2
            hosts:
              - sslcert.tf-test2.club
            pathMatcher: routes
          - description: host rule3
            hosts:
              - sslcert.tf-test3.club
            pathMatcher: routesAdvanced
        pathMatchers:
          - name: routes
            routeRules:
              - description: a route rule to match against
                priority: 1
                matchRules:
                  - prefixMatch: /
                origin: ${instanceEdgeCacheOrigin.name}
                routeAction:
                  cdnPolicy:
                    cacheMode: CACHE_ALL_STATIC
                    defaultTtl: 3600s
                headerAction:
                  responseHeaderToAdds:
                    - headerName: x-cache-status
                      headerValue: '{cdn_cache_status}'
          - name: routesAdvanced
            description: an advanced ruleset
            routeRules:
              - description: an advanced route rule to match against
                priority: 1
                matchRules:
                  - prefixMatch: /potato/
                    queryParameterMatches:
                      - name: debug
                        presentMatch: true
                      - name: state
                        exactMatch: debug
                  - fullPathMatch: /apple
                headerAction:
                  requestHeaderToAdds:
                    - headerName: debug
                      headerValue: true
                      replace: true
                    - headerName: potato
                      headerValue: plant
                  responseHeaderToAdds:
                    - headerName: potato
                      headerValue: plant
                      replace: true
                  requestHeaderToRemoves:
                    - headerName: prod
                  responseHeaderToRemoves:
                    - headerName: prod
                origin: ${instanceEdgeCacheOrigin.name}
                routeAction:
                  cdnPolicy:
                    cacheMode: CACHE_ALL_STATIC
                    defaultTtl: 3800s
                    clientTtl: 3600s
                    maxTtl: 9000s
                    cacheKeyPolicy:
                      includeProtocol: true
                      excludeHost: true
                      includedQueryParameters:
                        - apple
                        - dev
                        - santa
                        - claus
                      includedHeaderNames:
                        - banana
                      includedCookieNames:
                        - orange
                    negativeCaching: true
                    signedRequestMode: DISABLED
                    negativeCachingPolicy:
                      500: 3000s
                  urlRewrite:
                    pathPrefixRewrite: /dev
                    hostRewrite: dev.club
                  corsPolicy:
                    maxAge: 2500s
                    allowCredentials: true
                    allowOrigins:
                      - '*'
                    allowMethods:
                      - GET
                    allowHeaders:
                      - dev
                    exposeHeaders:
                      - prod
              - description: a second route rule to match against
                priority: 2
                matchRules:
                  - fullPathMatch: /yay
                origin: ${instanceEdgeCacheOrigin.name}
                routeAction:
                  cdnPolicy:
                    cacheMode: CACHE_ALL_STATIC
                    defaultTtl: 3600s
                    cacheKeyPolicy:
                      excludedQueryParameters:
                        - dev
                  corsPolicy:
                    maxAge: 3000s
                    allowHeaders:
                      - dev
                    disabled: true
      logConfig:
        enable: true
        sampleRate: 0.01

Create a EdgeCacheService Resource

new EdgeCacheService(name: string, args: EdgeCacheServiceArgs, opts?: CustomResourceOptions);
@overload
def EdgeCacheService(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     disable_http2: Optional[bool] = None,
                     disable_quic: Optional[bool] = None,
                     edge_security_policy: Optional[str] = None,
                     edge_ssl_certificates: Optional[Sequence[str]] = None,
                     labels: Optional[Mapping[str, str]] = None,
                     log_config: Optional[EdgeCacheServiceLogConfigArgs] = None,
                     name: Optional[str] = None,
                     project: Optional[str] = None,
                     require_tls: Optional[bool] = None,
                     routing: Optional[EdgeCacheServiceRoutingArgs] = None,
                     ssl_policy: Optional[str] = None)
@overload
def EdgeCacheService(resource_name: str,
                     args: EdgeCacheServiceArgs,
                     opts: Optional[ResourceOptions] = None)
func NewEdgeCacheService(ctx *Context, name string, args EdgeCacheServiceArgs, opts ...ResourceOption) (*EdgeCacheService, error)
public EdgeCacheService(string name, EdgeCacheServiceArgs args, CustomResourceOptions? opts = null)
public EdgeCacheService(String name, EdgeCacheServiceArgs args)
public EdgeCacheService(String name, EdgeCacheServiceArgs args, CustomResourceOptions options)
type: gcp:networkservices:EdgeCacheService
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EdgeCacheServiceArgs
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 EdgeCacheServiceArgs
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 EdgeCacheServiceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EdgeCacheServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EdgeCacheServiceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

Description string

A human-readable description of the resource.

DisableHttp2 bool

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

DisableQuic bool

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

EdgeSecurityPolicy string

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

EdgeSslCertificates List<string>

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

Labels Dictionary<string, string>

Set of label tags associated with the EdgeCache resource.

LogConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RequireTls bool

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

SslPolicy string

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

Routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

Description string

A human-readable description of the resource.

DisableHttp2 bool

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

DisableQuic bool

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

EdgeSecurityPolicy string

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

EdgeSslCertificates []string

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

Labels map[string]string

Set of label tags associated with the EdgeCache resource.

LogConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RequireTls bool

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

SslPolicy string

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

description String

A human-readable description of the resource.

disableHttp2 Boolean

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disableQuic Boolean

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edgeSecurityPolicy String

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edgeSslCertificates List<String>

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

labels Map<String,String>

Set of label tags associated with the EdgeCache resource.

logConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

requireTls Boolean

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

sslPolicy String

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

description string

A human-readable description of the resource.

disableHttp2 boolean

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disableQuic boolean

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edgeSecurityPolicy string

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edgeSslCertificates string[]

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

labels {[key: string]: string}

Set of label tags associated with the EdgeCache resource.

logConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

requireTls boolean

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

sslPolicy string

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

description str

A human-readable description of the resource.

disable_http2 bool

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disable_quic bool

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edge_security_policy str

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edge_ssl_certificates Sequence[str]

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

labels Mapping[str, str]

Set of label tags associated with the EdgeCache resource.

log_config EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

require_tls bool

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

ssl_policy str

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

routing Property Map

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

description String

A human-readable description of the resource.

disableHttp2 Boolean

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disableQuic Boolean

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edgeSecurityPolicy String

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edgeSslCertificates List<String>

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

labels Map<String>

Set of label tags associated with the EdgeCache resource.

logConfig Property Map

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

requireTls Boolean

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

sslPolicy String

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Ipv4Addresses List<string>

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

Ipv6Addresses List<string>

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

Id string

The provider-assigned unique ID for this managed resource.

Ipv4Addresses []string

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

Ipv6Addresses []string

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

id String

The provider-assigned unique ID for this managed resource.

ipv4Addresses List<String>

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6Addresses List<String>

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

id string

The provider-assigned unique ID for this managed resource.

ipv4Addresses string[]

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6Addresses string[]

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

id str

The provider-assigned unique ID for this managed resource.

ipv4_addresses Sequence[str]

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6_addresses Sequence[str]

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

id String

The provider-assigned unique ID for this managed resource.

ipv4Addresses List<String>

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6Addresses List<String>

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

Look up an Existing EdgeCacheService Resource

Get an existing EdgeCacheService 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?: EdgeCacheServiceState, opts?: CustomResourceOptions): EdgeCacheService
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        disable_http2: Optional[bool] = None,
        disable_quic: Optional[bool] = None,
        edge_security_policy: Optional[str] = None,
        edge_ssl_certificates: Optional[Sequence[str]] = None,
        ipv4_addresses: Optional[Sequence[str]] = None,
        ipv6_addresses: Optional[Sequence[str]] = None,
        labels: Optional[Mapping[str, str]] = None,
        log_config: Optional[EdgeCacheServiceLogConfigArgs] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        require_tls: Optional[bool] = None,
        routing: Optional[EdgeCacheServiceRoutingArgs] = None,
        ssl_policy: Optional[str] = None) -> EdgeCacheService
func GetEdgeCacheService(ctx *Context, name string, id IDInput, state *EdgeCacheServiceState, opts ...ResourceOption) (*EdgeCacheService, error)
public static EdgeCacheService Get(string name, Input<string> id, EdgeCacheServiceState? state, CustomResourceOptions? opts = null)
public static EdgeCacheService get(String name, Output<String> id, EdgeCacheServiceState 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:
Description string

A human-readable description of the resource.

DisableHttp2 bool

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

DisableQuic bool

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

EdgeSecurityPolicy string

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

EdgeSslCertificates List<string>

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

Ipv4Addresses List<string>

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

Ipv6Addresses List<string>

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

Labels Dictionary<string, string>

Set of label tags associated with the EdgeCache resource.

LogConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RequireTls bool

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

Routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

SslPolicy string

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

Description string

A human-readable description of the resource.

DisableHttp2 bool

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

DisableQuic bool

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

EdgeSecurityPolicy string

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

EdgeSslCertificates []string

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

Ipv4Addresses []string

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

Ipv6Addresses []string

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

Labels map[string]string

Set of label tags associated with the EdgeCache resource.

LogConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

RequireTls bool

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

Routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

SslPolicy string

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

description String

A human-readable description of the resource.

disableHttp2 Boolean

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disableQuic Boolean

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edgeSecurityPolicy String

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edgeSslCertificates List<String>

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

ipv4Addresses List<String>

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6Addresses List<String>

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

labels Map<String,String>

Set of label tags associated with the EdgeCache resource.

logConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

requireTls Boolean

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

sslPolicy String

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

description string

A human-readable description of the resource.

disableHttp2 boolean

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disableQuic boolean

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edgeSecurityPolicy string

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edgeSslCertificates string[]

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

ipv4Addresses string[]

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6Addresses string[]

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

labels {[key: string]: string}

Set of label tags associated with the EdgeCache resource.

logConfig EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

requireTls boolean

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

sslPolicy string

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

description str

A human-readable description of the resource.

disable_http2 bool

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disable_quic bool

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edge_security_policy str

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edge_ssl_certificates Sequence[str]

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

ipv4_addresses Sequence[str]

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6_addresses Sequence[str]

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

labels Mapping[str, str]

Set of label tags associated with the EdgeCache resource.

log_config EdgeCacheServiceLogConfigArgs

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

require_tls bool

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

routing EdgeCacheServiceRoutingArgs

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

ssl_policy str

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

description String

A human-readable description of the resource.

disableHttp2 Boolean

Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated.

disableQuic Boolean

HTTP/3 (IETF QUIC) and Google QUIC are enabled by default.

edgeSecurityPolicy String

Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService.

edgeSslCertificates List<String>

URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService.

ipv4Addresses List<String>

The IPv4 addresses associated with this service. Addresses are static for the lifetime of the service.

ipv6Addresses List<String>

The IPv6 addresses associated with this service. Addresses are static for the lifetime of the service.

labels Map<String>

Set of label tags associated with the EdgeCache resource.

logConfig Property Map

Specifies the logging options for the traffic served by this service. If logging is enabled, logs will be exported to Cloud Logging. Structure is documented below.

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.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

requireTls Boolean

Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this.

routing Property Map

Defines how requests are routed, modified, cached and/or which origin content is filled from. Structure is documented below.

sslPolicy String

URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy.

Supporting Types

EdgeCacheServiceLogConfig

Enable bool

Specifies whether to enable logging for traffic served by this service.

SampleRate double

Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1]. This field can only be specified if logging is enabled for this service.

Enable bool

Specifies whether to enable logging for traffic served by this service.

SampleRate float64

Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1]. This field can only be specified if logging is enabled for this service.

enable Boolean

Specifies whether to enable logging for traffic served by this service.

sampleRate Double

Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1]. This field can only be specified if logging is enabled for this service.

enable boolean

Specifies whether to enable logging for traffic served by this service.

sampleRate number

Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1]. This field can only be specified if logging is enabled for this service.

enable bool

Specifies whether to enable logging for traffic served by this service.

sample_rate float

Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1]. This field can only be specified if logging is enabled for this service.

enable Boolean

Specifies whether to enable logging for traffic served by this service.

sampleRate Number

Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1]. This field can only be specified if logging is enabled for this service.

EdgeCacheServiceRouting

HostRules List<EdgeCacheServiceRoutingHostRule>

The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply. Structure is documented below.

PathMatchers List<EdgeCacheServiceRoutingPathMatcher>

The name of the pathMatcher associated with this hostRule.

HostRules []EdgeCacheServiceRoutingHostRule

The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply. Structure is documented below.

PathMatchers []EdgeCacheServiceRoutingPathMatcher

The name of the pathMatcher associated with this hostRule.

hostRules List<EdgeCacheServiceRoutingHostRule>

The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply. Structure is documented below.

pathMatchers List<EdgeCacheServiceRoutingPathMatcher>

The name of the pathMatcher associated with this hostRule.

hostRules EdgeCacheServiceRoutingHostRule[]

The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply. Structure is documented below.

pathMatchers EdgeCacheServiceRoutingPathMatcher[]

The name of the pathMatcher associated with this hostRule.

host_rules Sequence[EdgeCacheServiceRoutingHostRule]

The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply. Structure is documented below.

path_matchers Sequence[EdgeCacheServiceRoutingPathMatcher]

The name of the pathMatcher associated with this hostRule.

hostRules List<Property Map>

The list of hostRules to match against. These rules define which hostnames the EdgeCacheService will match against, and which route configurations apply. Structure is documented below.

pathMatchers List<Property Map>

The name of the pathMatcher associated with this hostRule.

EdgeCacheServiceRoutingHostRule

Hosts List<string>

The list of host patterns to match. Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string. When multiple hosts are specified, hosts are matched in the following priority:

  1. Exact domain names: www.foo.com.
  2. Suffix domain wildcards: *.foo.com or *-bar.foo.com.
  3. Prefix domain wildcards: foo.* or foo-*.
  4. Special wildcard * matching any domain. Notes: The wildcard will not match the empty string. e.g. *-bar.foo.com will match baz-bar.foo.com but not -bar.foo.com. The longest wildcards match first. Only a single host in the entire service can match on *. A domain must be unique across all configured hosts within a service. Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request. You may specify up to 10 hosts.
PathMatcher string

The name of the pathMatcher associated with this hostRule.

Description string

A human-readable description of the resource.

Hosts []string

The list of host patterns to match. Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string. When multiple hosts are specified, hosts are matched in the following priority:

  1. Exact domain names: www.foo.com.
  2. Suffix domain wildcards: *.foo.com or *-bar.foo.com.
  3. Prefix domain wildcards: foo.* or foo-*.
  4. Special wildcard * matching any domain. Notes: The wildcard will not match the empty string. e.g. *-bar.foo.com will match baz-bar.foo.com but not -bar.foo.com. The longest wildcards match first. Only a single host in the entire service can match on *. A domain must be unique across all configured hosts within a service. Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request. You may specify up to 10 hosts.
PathMatcher string

The name of the pathMatcher associated with this hostRule.

Description string

A human-readable description of the resource.

hosts List<String>

The list of host patterns to match. Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string. When multiple hosts are specified, hosts are matched in the following priority:

  1. Exact domain names: www.foo.com.
  2. Suffix domain wildcards: *.foo.com or *-bar.foo.com.
  3. Prefix domain wildcards: foo.* or foo-*.
  4. Special wildcard * matching any domain. Notes: The wildcard will not match the empty string. e.g. *-bar.foo.com will match baz-bar.foo.com but not -bar.foo.com. The longest wildcards match first. Only a single host in the entire service can match on *. A domain must be unique across all configured hosts within a service. Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request. You may specify up to 10 hosts.
pathMatcher String

The name of the pathMatcher associated with this hostRule.

description String

A human-readable description of the resource.

hosts string[]

The list of host patterns to match. Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string. When multiple hosts are specified, hosts are matched in the following priority:

  1. Exact domain names: www.foo.com.
  2. Suffix domain wildcards: *.foo.com or *-bar.foo.com.
  3. Prefix domain wildcards: foo.* or foo-*.
  4. Special wildcard * matching any domain. Notes: The wildcard will not match the empty string. e.g. *-bar.foo.com will match baz-bar.foo.com but not -bar.foo.com. The longest wildcards match first. Only a single host in the entire service can match on *. A domain must be unique across all configured hosts within a service. Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request. You may specify up to 10 hosts.
pathMatcher string

The name of the pathMatcher associated with this hostRule.

description string

A human-readable description of the resource.

hosts Sequence[str]

The list of host patterns to match. Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string. When multiple hosts are specified, hosts are matched in the following priority:

  1. Exact domain names: www.foo.com.
  2. Suffix domain wildcards: *.foo.com or *-bar.foo.com.
  3. Prefix domain wildcards: foo.* or foo-*.
  4. Special wildcard * matching any domain. Notes: The wildcard will not match the empty string. e.g. *-bar.foo.com will match baz-bar.foo.com but not -bar.foo.com. The longest wildcards match first. Only a single host in the entire service can match on *. A domain must be unique across all configured hosts within a service. Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request. You may specify up to 10 hosts.
path_matcher str

The name of the pathMatcher associated with this hostRule.

description str

A human-readable description of the resource.

hosts List<String>

The list of host patterns to match. Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string. When multiple hosts are specified, hosts are matched in the following priority:

  1. Exact domain names: www.foo.com.
  2. Suffix domain wildcards: *.foo.com or *-bar.foo.com.
  3. Prefix domain wildcards: foo.* or foo-*.
  4. Special wildcard * matching any domain. Notes: The wildcard will not match the empty string. e.g. *-bar.foo.com will match baz-bar.foo.com but not -bar.foo.com. The longest wildcards match first. Only a single host in the entire service can match on *. A domain must be unique across all configured hosts within a service. Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request. You may specify up to 10 hosts.
pathMatcher String

The name of the pathMatcher associated with this hostRule.

description String

A human-readable description of the resource.

EdgeCacheServiceRoutingPathMatcher

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.

RouteRules List<EdgeCacheServiceRoutingPathMatcherRouteRule>

The routeRules to match against. routeRules support advanced routing behaviour, and can match on paths, headers and query parameters, as well as status codes and HTTP methods. Structure is documented below.

Description string

A human-readable description of the resource.

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.

RouteRules []EdgeCacheServiceRoutingPathMatcherRouteRule

The routeRules to match against. routeRules support advanced routing behaviour, and can match on paths, headers and query parameters, as well as status codes and HTTP methods. Structure is documented below.

Description string

A human-readable description of the resource.

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.

routeRules List<EdgeCacheServiceRoutingPathMatcherRouteRule>

The routeRules to match against. routeRules support advanced routing behaviour, and can match on paths, headers and query parameters, as well as status codes and HTTP methods. Structure is documented below.

description String

A human-readable description of the resource.

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.

routeRules EdgeCacheServiceRoutingPathMatcherRouteRule[]

The routeRules to match against. routeRules support advanced routing behaviour, and can match on paths, headers and query parameters, as well as status codes and HTTP methods. Structure is documented below.

description string

A human-readable description of the resource.

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.

route_rules Sequence[EdgeCacheServiceRoutingPathMatcherRouteRule]

The routeRules to match against. routeRules support advanced routing behaviour, and can match on paths, headers and query parameters, as well as status codes and HTTP methods. Structure is documented below.

description str

A human-readable description of the resource.

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.

routeRules List<Property Map>

The routeRules to match against. routeRules support advanced routing behaviour, and can match on paths, headers and query parameters, as well as status codes and HTTP methods. Structure is documented below.

description String

A human-readable description of the resource.

EdgeCacheServiceRoutingPathMatcherRouteRule

MatchRules List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRule>

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

Priority string

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

Description string

A human-readable description of the resource.

HeaderAction EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderAction

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

Origin string

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

RouteAction EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction

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

UrlRedirect EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirect

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

MatchRules []EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRule

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

Priority string

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

Description string

A human-readable description of the resource.

HeaderAction EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderAction

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

Origin string

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

RouteAction EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction

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

UrlRedirect EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirect

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

matchRules List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRule>

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

priority String

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

description String

A human-readable description of the resource.

headerAction EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderAction

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

origin String

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

routeAction EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction

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

urlRedirect EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirect

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

matchRules EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRule[]

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

priority string

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

description string

A human-readable description of the resource.

headerAction EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderAction

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

origin string

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

routeAction EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction

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

urlRedirect EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirect

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

match_rules Sequence[EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRule]

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

priority str

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

description str

A human-readable description of the resource.

header_action EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderAction

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

origin str

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

route_action EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction

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

url_redirect EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirect

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

matchRules List<Property Map>

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

priority String

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

description String

A human-readable description of the resource.

headerAction Property Map

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

origin String

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

routeAction Property Map

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

urlRedirect Property Map

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

EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderAction

RequestHeaderToAdds List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAdd>

Describes a header to add. Structure is documented below.

RequestHeaderToRemoves List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemove>

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

ResponseHeaderToAdds List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAdd>

Headers to add to the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response. Structure is documented below.

ResponseHeaderToRemoves List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemove>

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

RequestHeaderToAdds []EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAdd

Describes a header to add. Structure is documented below.

RequestHeaderToRemoves []EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemove

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

ResponseHeaderToAdds []EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAdd

Headers to add to the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response. Structure is documented below.

ResponseHeaderToRemoves []EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemove

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

requestHeaderToAdds List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAdd>

Describes a header to add. Structure is documented below.

requestHeaderToRemoves List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemove>

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

responseHeaderToAdds List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAdd>

Headers to add to the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response. Structure is documented below.

responseHeaderToRemoves List<EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemove>

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

requestHeaderToAdds EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAdd[]

Describes a header to add. Structure is documented below.

requestHeaderToRemoves EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemove[]

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

responseHeaderToAdds EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAdd[]

Headers to add to the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response. Structure is documented below.

responseHeaderToRemoves EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemove[]

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

request_header_to_adds Sequence[EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAdd]

Describes a header to add. Structure is documented below.

request_header_to_removes Sequence[EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemove]

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

response_header_to_adds Sequence[EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAdd]

Headers to add to the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response. Structure is documented below.

response_header_to_removes Sequence[EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemove]

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

requestHeaderToAdds List<Property Map>

Describes a header to add. Structure is documented below.

requestHeaderToRemoves List<Property Map>

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

responseHeaderToAdds List<Property Map>

Headers to add to the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response. Structure is documented below.

responseHeaderToRemoves List<Property Map>

A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin. Structure is documented below.

EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToAdd

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

HeaderValue string

The value of the header to add.

Replace bool

Whether to replace all existing headers with the same name.

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

HeaderValue string

The value of the header to add.

Replace bool

Whether to replace all existing headers with the same name.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerValue String

The value of the header to add.

replace Boolean

Whether to replace all existing headers with the same name.

headerName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerValue string

The value of the header to add.

replace boolean

Whether to replace all existing headers with the same name.

header_name str

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

header_value str

The value of the header to add.

replace bool

Whether to replace all existing headers with the same name.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerValue String

The value of the header to add.

replace Boolean

Whether to replace all existing headers with the same name.

EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionRequestHeaderToRemove

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

header_name str

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToAdd

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

HeaderValue string

The value of the header to add.

Replace bool

Whether to replace all existing headers with the same name.

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

HeaderValue string

The value of the header to add.

Replace bool

Whether to replace all existing headers with the same name.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerValue String

The value of the header to add.

replace Boolean

Whether to replace all existing headers with the same name.

headerName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerValue string

The value of the header to add.

replace boolean

Whether to replace all existing headers with the same name.

header_name str

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

header_value str

The value of the header to add.

replace bool

Whether to replace all existing headers with the same name.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerValue String

The value of the header to add.

replace Boolean

Whether to replace all existing headers with the same name.

EdgeCacheServiceRoutingPathMatcherRouteRuleHeaderActionResponseHeaderToRemove

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

header_name str

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRule

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.

HeaderMatches List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch>

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.

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

The value of the header must start with the contents of prefixMatch.

QueryParameterMatches List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatch>

Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.

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.

HeaderMatches []EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch

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.

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

The value of the header must start with the contents of prefixMatch.

QueryParameterMatches []EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatch

Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.

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.

headerMatches List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch>

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.

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

The value of the header must start with the contents of prefixMatch.

queryParameterMatches List<EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatch>

Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.

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.

headerMatches EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch[]

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.

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

The value of the header must start with the contents of prefixMatch.

queryParameterMatches EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatch[]

Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.

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.

header_matches Sequence[EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch]

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.

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

The value of the header must start with the contents of prefixMatch.

query_parameter_matches Sequence[EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatch]

Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.

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.

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.

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

The value of the header must start with the contents of prefixMatch.

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.

EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

ExactMatch string

The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.

InvertMatch bool

If set to false (default), 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.

PrefixMatch string

The value of the header must start with the contents of prefixMatch.

PresentMatch bool

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

SuffixMatch string

The value of the header must end with the contents of suffixMatch.

HeaderName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

ExactMatch string

The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.

InvertMatch bool

If set to false (default), 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.

PrefixMatch string

The value of the header must start with the contents of prefixMatch.

PresentMatch bool

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

SuffixMatch string

The value of the header must end with the contents of suffixMatch.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

exactMatch String

The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.

invertMatch Boolean

If set to false (default), 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.

prefixMatch String

The value of the header must start with the contents of prefixMatch.

presentMatch Boolean

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

suffixMatch String

The value of the header must end with the contents of suffixMatch.

headerName string

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

exactMatch string

The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.

invertMatch boolean

If set to false (default), 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.

prefixMatch string

The value of the header must start with the contents of prefixMatch.

presentMatch boolean

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

suffixMatch string

The value of the header must end with the contents of suffixMatch.

header_name str

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

exact_match str

The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.

invert_match bool

If set to false (default), 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.

prefix_match str

The value of the header must start with the contents of prefixMatch.

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.

suffix_match str

The value of the header must end with the contents of suffixMatch.

headerName String

Headers to remove from the response prior to sending it back to the client. Response headers are only sent to the client, and do not have an effect on the cache serving the response.

exactMatch String

The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.

invertMatch Boolean

If set to false (default), 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.

prefixMatch String

The value of the header must start with the contents of prefixMatch.

presentMatch Boolean

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

suffixMatch String

The value of the header must end with the contents of suffixMatch.

EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleQueryParameterMatch

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.

PresentMatch bool

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

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.

PresentMatch bool

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

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.

presentMatch Boolean

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

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.

presentMatch boolean

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

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.

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.

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.

presentMatch Boolean

Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.

EdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction

CdnPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy

The policy to use for defining caching and signed request behaviour for requests that match this route. Structure is documented below.

CorsPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

CORSPolicy defines Cross-Origin-Resource-Sharing configuration, including which CORS response headers will be set. Structure is documented below.

UrlRewrite EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite

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

CdnPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy

The policy to use for defining caching and signed request behaviour for requests that match this route. Structure is documented below.

CorsPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

CORSPolicy defines Cross-Origin-Resource-Sharing configuration, including which CORS response headers will be set. Structure is documented below.

UrlRewrite EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite

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

cdnPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy

The policy to use for defining caching and signed request behaviour for requests that match this route. Structure is documented below.

corsPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

CORSPolicy defines Cross-Origin-Resource-Sharing configuration, including which CORS response headers will be set. Structure is documented below.

urlRewrite EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite

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

cdnPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy

The policy to use for defining caching and signed request behaviour for requests that match this route. Structure is documented below.

corsPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

CORSPolicy defines Cross-Origin-Resource-Sharing configuration, including which CORS response headers will be set. Structure is documented below.

urlRewrite EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite

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

cdn_policy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy

The policy to use for defining caching and signed request behaviour for requests that match this route. Structure is documented below.

cors_policy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

CORSPolicy defines Cross-Origin-Resource-Sharing configuration, including which CORS response headers will be set. Structure is documented below.

url_rewrite EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite

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

cdnPolicy Property Map

The policy to use for defining caching and signed request behaviour for requests that match this route. Structure is documented below.

corsPolicy Property Map

CORSPolicy defines Cross-Origin-Resource-Sharing configuration, including which CORS response headers will be set. Structure is documented below.

urlRewrite Property Map

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

EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicy

CacheKeyPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicy

Defines the request parameters that contribute to the cache key. Structure is documented below.

CacheMode string

Cache modes allow users to control the behaviour of the cache, what content it should cache automatically, whether to respect origin headers, or whether to unconditionally cache all responses. For all cache modes, Cache-Control headers will be passed to the client. Use clientTtl to override what is sent to the client. Possible values are CACHE_ALL_STATIC, USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, and BYPASS_CACHE.

ClientTtl string

Specifies a separate client (e.g. browser client) TTL, separate from the TTL used by the edge caches. Leaving this empty will use the same cache TTL for both the CDN and the client-facing response.

  • The TTL must be > 0 and <= 86400s (1 day)
  • The clientTtl cannot be larger than the defaultTtl (if set)
  • Fractions of a second are not allowed. Omit this field to use the defaultTtl, or the max-age set by the origin, as the client-facing TTL. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
DefaultTtl string

Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Defaults to 3600s (1 hour).

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate" (equivalent to must-revalidate)
  • The value of defaultTTL cannot be set to a value greater than that of maxTTL.
  • Fractions of a second are not allowed.
  • When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. Note that infrequently accessed objects may be evicted from the cache before the defined TTL. Objects that expire will be revalidated with the origin. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
MaxTtl string

Specifies the maximum allowed TTL for cached content served by this origin. Defaults to 86400s (1 day). Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTtl seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive.

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate"
  • The value of maxTtl must be equal to or greater than defaultTtl.
  • Fractions of a second are not allowed. When the cache mode is set to "USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
NegativeCaching bool

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, the CDNPolicy will apply the following default TTLs to these status codes:

  • HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
  • HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
  • HTTP 405 (Method Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can be overridden in negativeCachingPolicy
NegativeCachingPolicy Dictionary<string, string>

Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy.

  • Omitting the policy and leaving negativeCaching enabled will use the default TTLs for each status code, defined in negativeCaching.
  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.
SignedRequestKeyset string

The EdgeCacheKeyset containing the set of public keys used to validate signed requests at the edge.

SignedRequestMode string

Whether to enforce signed requests. The default value is DISABLED, which means all content is public, and does not authorize access. You must also set a signedRequestKeyset to enable signed requests. When set to REQUIRE_SIGNATURES, all matching requests will have their signature validated. Requests that were not signed with the corresponding private key, or that are otherwise invalid (expired, do not match the signature, IP address, or header) will be rejected with a HTTP 403 and (if enabled) logged. Possible values are DISABLED and REQUIRE_SIGNATURES.

CacheKeyPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicy

Defines the request parameters that contribute to the cache key. Structure is documented below.

CacheMode string

Cache modes allow users to control the behaviour of the cache, what content it should cache automatically, whether to respect origin headers, or whether to unconditionally cache all responses. For all cache modes, Cache-Control headers will be passed to the client. Use clientTtl to override what is sent to the client. Possible values are CACHE_ALL_STATIC, USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, and BYPASS_CACHE.

ClientTtl string

Specifies a separate client (e.g. browser client) TTL, separate from the TTL used by the edge caches. Leaving this empty will use the same cache TTL for both the CDN and the client-facing response.

  • The TTL must be > 0 and <= 86400s (1 day)
  • The clientTtl cannot be larger than the defaultTtl (if set)
  • Fractions of a second are not allowed. Omit this field to use the defaultTtl, or the max-age set by the origin, as the client-facing TTL. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
DefaultTtl string

Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Defaults to 3600s (1 hour).

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate" (equivalent to must-revalidate)
  • The value of defaultTTL cannot be set to a value greater than that of maxTTL.
  • Fractions of a second are not allowed.
  • When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. Note that infrequently accessed objects may be evicted from the cache before the defined TTL. Objects that expire will be revalidated with the origin. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
MaxTtl string

Specifies the maximum allowed TTL for cached content served by this origin. Defaults to 86400s (1 day). Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTtl seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive.

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate"
  • The value of maxTtl must be equal to or greater than defaultTtl.
  • Fractions of a second are not allowed. When the cache mode is set to "USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
NegativeCaching bool

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, the CDNPolicy will apply the following default TTLs to these status codes:

  • HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
  • HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
  • HTTP 405 (Method Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can be overridden in negativeCachingPolicy
NegativeCachingPolicy map[string]string

Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy.

  • Omitting the policy and leaving negativeCaching enabled will use the default TTLs for each status code, defined in negativeCaching.
  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.
SignedRequestKeyset string

The EdgeCacheKeyset containing the set of public keys used to validate signed requests at the edge.

SignedRequestMode string

Whether to enforce signed requests. The default value is DISABLED, which means all content is public, and does not authorize access. You must also set a signedRequestKeyset to enable signed requests. When set to REQUIRE_SIGNATURES, all matching requests will have their signature validated. Requests that were not signed with the corresponding private key, or that are otherwise invalid (expired, do not match the signature, IP address, or header) will be rejected with a HTTP 403 and (if enabled) logged. Possible values are DISABLED and REQUIRE_SIGNATURES.

cacheKeyPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicy

Defines the request parameters that contribute to the cache key. Structure is documented below.

cacheMode String

Cache modes allow users to control the behaviour of the cache, what content it should cache automatically, whether to respect origin headers, or whether to unconditionally cache all responses. For all cache modes, Cache-Control headers will be passed to the client. Use clientTtl to override what is sent to the client. Possible values are CACHE_ALL_STATIC, USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, and BYPASS_CACHE.

clientTtl String

Specifies a separate client (e.g. browser client) TTL, separate from the TTL used by the edge caches. Leaving this empty will use the same cache TTL for both the CDN and the client-facing response.

  • The TTL must be > 0 and <= 86400s (1 day)
  • The clientTtl cannot be larger than the defaultTtl (if set)
  • Fractions of a second are not allowed. Omit this field to use the defaultTtl, or the max-age set by the origin, as the client-facing TTL. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
defaultTtl String

Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Defaults to 3600s (1 hour).

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate" (equivalent to must-revalidate)
  • The value of defaultTTL cannot be set to a value greater than that of maxTTL.
  • Fractions of a second are not allowed.
  • When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. Note that infrequently accessed objects may be evicted from the cache before the defined TTL. Objects that expire will be revalidated with the origin. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
maxTtl String

Specifies the maximum allowed TTL for cached content served by this origin. Defaults to 86400s (1 day). Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTtl seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive.

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate"
  • The value of maxTtl must be equal to or greater than defaultTtl.
  • Fractions of a second are not allowed. When the cache mode is set to "USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
negativeCaching Boolean

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, the CDNPolicy will apply the following default TTLs to these status codes:

  • HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
  • HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
  • HTTP 405 (Method Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can be overridden in negativeCachingPolicy
negativeCachingPolicy Map<String,String>

Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy.

  • Omitting the policy and leaving negativeCaching enabled will use the default TTLs for each status code, defined in negativeCaching.
  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.
signedRequestKeyset String

The EdgeCacheKeyset containing the set of public keys used to validate signed requests at the edge.

signedRequestMode String

Whether to enforce signed requests. The default value is DISABLED, which means all content is public, and does not authorize access. You must also set a signedRequestKeyset to enable signed requests. When set to REQUIRE_SIGNATURES, all matching requests will have their signature validated. Requests that were not signed with the corresponding private key, or that are otherwise invalid (expired, do not match the signature, IP address, or header) will be rejected with a HTTP 403 and (if enabled) logged. Possible values are DISABLED and REQUIRE_SIGNATURES.

cacheKeyPolicy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicy

Defines the request parameters that contribute to the cache key. Structure is documented below.

cacheMode string

Cache modes allow users to control the behaviour of the cache, what content it should cache automatically, whether to respect origin headers, or whether to unconditionally cache all responses. For all cache modes, Cache-Control headers will be passed to the client. Use clientTtl to override what is sent to the client. Possible values are CACHE_ALL_STATIC, USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, and BYPASS_CACHE.

clientTtl string

Specifies a separate client (e.g. browser client) TTL, separate from the TTL used by the edge caches. Leaving this empty will use the same cache TTL for both the CDN and the client-facing response.

  • The TTL must be > 0 and <= 86400s (1 day)
  • The clientTtl cannot be larger than the defaultTtl (if set)
  • Fractions of a second are not allowed. Omit this field to use the defaultTtl, or the max-age set by the origin, as the client-facing TTL. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
defaultTtl string

Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Defaults to 3600s (1 hour).

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate" (equivalent to must-revalidate)
  • The value of defaultTTL cannot be set to a value greater than that of maxTTL.
  • Fractions of a second are not allowed.
  • When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. Note that infrequently accessed objects may be evicted from the cache before the defined TTL. Objects that expire will be revalidated with the origin. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
maxTtl string

Specifies the maximum allowed TTL for cached content served by this origin. Defaults to 86400s (1 day). Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTtl seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive.

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate"
  • The value of maxTtl must be equal to or greater than defaultTtl.
  • Fractions of a second are not allowed. When the cache mode is set to "USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
negativeCaching boolean

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, the CDNPolicy will apply the following default TTLs to these status codes:

  • HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
  • HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
  • HTTP 405 (Method Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can be overridden in negativeCachingPolicy
negativeCachingPolicy {[key: string]: string}

Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy.

  • Omitting the policy and leaving negativeCaching enabled will use the default TTLs for each status code, defined in negativeCaching.
  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.
signedRequestKeyset string

The EdgeCacheKeyset containing the set of public keys used to validate signed requests at the edge.

signedRequestMode string

Whether to enforce signed requests. The default value is DISABLED, which means all content is public, and does not authorize access. You must also set a signedRequestKeyset to enable signed requests. When set to REQUIRE_SIGNATURES, all matching requests will have their signature validated. Requests that were not signed with the corresponding private key, or that are otherwise invalid (expired, do not match the signature, IP address, or header) will be rejected with a HTTP 403 and (if enabled) logged. Possible values are DISABLED and REQUIRE_SIGNATURES.

cache_key_policy EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicy

Defines the request parameters that contribute to the cache key. Structure is documented below.

cache_mode str

Cache modes allow users to control the behaviour of the cache, what content it should cache automatically, whether to respect origin headers, or whether to unconditionally cache all responses. For all cache modes, Cache-Control headers will be passed to the client. Use clientTtl to override what is sent to the client. Possible values are CACHE_ALL_STATIC, USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, and BYPASS_CACHE.

client_ttl str

Specifies a separate client (e.g. browser client) TTL, separate from the TTL used by the edge caches. Leaving this empty will use the same cache TTL for both the CDN and the client-facing response.

  • The TTL must be > 0 and <= 86400s (1 day)
  • The clientTtl cannot be larger than the defaultTtl (if set)
  • Fractions of a second are not allowed. Omit this field to use the defaultTtl, or the max-age set by the origin, as the client-facing TTL. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
default_ttl str

Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Defaults to 3600s (1 hour).

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate" (equivalent to must-revalidate)
  • The value of defaultTTL cannot be set to a value greater than that of maxTTL.
  • Fractions of a second are not allowed.
  • When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. Note that infrequently accessed objects may be evicted from the cache before the defined TTL. Objects that expire will be revalidated with the origin. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
max_ttl str

Specifies the maximum allowed TTL for cached content served by this origin. Defaults to 86400s (1 day). Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTtl seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive.

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate"
  • The value of maxTtl must be equal to or greater than defaultTtl.
  • Fractions of a second are not allowed. When the cache mode is set to "USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
negative_caching bool

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, the CDNPolicy will apply the following default TTLs to these status codes:

  • HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
  • HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
  • HTTP 405 (Method Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can be overridden in negativeCachingPolicy
negative_caching_policy Mapping[str, str]

Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy.

  • Omitting the policy and leaving negativeCaching enabled will use the default TTLs for each status code, defined in negativeCaching.
  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.
signed_request_keyset str

The EdgeCacheKeyset containing the set of public keys used to validate signed requests at the edge.

signed_request_mode str

Whether to enforce signed requests. The default value is DISABLED, which means all content is public, and does not authorize access. You must also set a signedRequestKeyset to enable signed requests. When set to REQUIRE_SIGNATURES, all matching requests will have their signature validated. Requests that were not signed with the corresponding private key, or that are otherwise invalid (expired, do not match the signature, IP address, or header) will be rejected with a HTTP 403 and (if enabled) logged. Possible values are DISABLED and REQUIRE_SIGNATURES.

cacheKeyPolicy Property Map

Defines the request parameters that contribute to the cache key. Structure is documented below.

cacheMode String

Cache modes allow users to control the behaviour of the cache, what content it should cache automatically, whether to respect origin headers, or whether to unconditionally cache all responses. For all cache modes, Cache-Control headers will be passed to the client. Use clientTtl to override what is sent to the client. Possible values are CACHE_ALL_STATIC, USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, and BYPASS_CACHE.

clientTtl String

Specifies a separate client (e.g. browser client) TTL, separate from the TTL used by the edge caches. Leaving this empty will use the same cache TTL for both the CDN and the client-facing response.

  • The TTL must be > 0 and <= 86400s (1 day)
  • The clientTtl cannot be larger than the defaultTtl (if set)
  • Fractions of a second are not allowed. Omit this field to use the defaultTtl, or the max-age set by the origin, as the client-facing TTL. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
defaultTtl String

Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Defaults to 3600s (1 hour).

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate" (equivalent to must-revalidate)
  • The value of defaultTTL cannot be set to a value greater than that of maxTTL.
  • Fractions of a second are not allowed.
  • When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. Note that infrequently accessed objects may be evicted from the cache before the defined TTL. Objects that expire will be revalidated with the origin. When the cache mode is set to "USE_ORIGIN_HEADERS" or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
maxTtl String

Specifies the maximum allowed TTL for cached content served by this origin. Defaults to 86400s (1 day). Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTtl seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive.

  • The TTL must be >= 0 and <= 31,536,000 seconds (1 year)
  • Setting a TTL of "0" means "always revalidate"
  • The value of maxTtl must be equal to or greater than defaultTtl.
  • Fractions of a second are not allowed. When the cache mode is set to "USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", or "BYPASS_CACHE", you must omit this field. A duration in seconds terminated by 's'. Example: "3s".
negativeCaching Boolean

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, the CDNPolicy will apply the following default TTLs to these status codes:

  • HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
  • HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
  • HTTP 405 (Method Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can be overridden in negativeCachingPolicy
negativeCachingPolicy Map<String>

Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy.

  • Omitting the policy and leaving negativeCaching enabled will use the default TTLs for each status code, defined in negativeCaching.
  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.
signedRequestKeyset String

The EdgeCacheKeyset containing the set of public keys used to validate signed requests at the edge.

signedRequestMode String

Whether to enforce signed requests. The default value is DISABLED, which means all content is public, and does not authorize access. You must also set a signedRequestKeyset to enable signed requests. When set to REQUIRE_SIGNATURES, all matching requests will have their signature validated. Requests that were not signed with the corresponding private key, or that are otherwise invalid (expired, do not match the signature, IP address, or header) will be rejected with a HTTP 403 and (if enabled) logged. Possible values are DISABLED and REQUIRE_SIGNATURES.

EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyCacheKeyPolicy

ExcludeHost bool

If true, requests to different hosts will be cached separately. Note: this should only be enabled if hosts share the same origin and content. Removing the host from the cache key may inadvertently result in different objects being cached than intended, depending on which route the first user matched.

ExcludeQueryString bool

If true, exclude query string parameters from the cache key If false (the default), include the query string parameters in the cache key according to includeQueryParameters and excludeQueryParameters. If neither includeQueryParameters nor excludeQueryParameters is set, the entire query string will be included.

ExcludedQueryParameters List<string>

Names of query string parameters to exclude from cache keys. All other parameters will be included. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

IncludeProtocol bool

If true, http and https requests will be cached separately.

IncludedCookieNames List<string>

Names of Cookies to include in cache keys. The cookie name and cookie value of each cookie named will be used as part of the cache key. Cookie names:

  • must be valid RFC 6265 "cookie-name" tokens
  • are case sensitive
  • cannot start with "Edge-Cache-" (case insensitive) Note that specifying several cookies, and/or cookies that have a large range of values (e.g., per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance. You may specify up to three cookie names.
IncludedHeaderNames List<string>

Names of HTTP request headers to include in cache keys. The value of the header field will be used as part of the cache key.

  • Header names must be valid HTTP RFC 7230 header field values.
  • Header field names are case insensitive
  • To include the HTTP method, use ":method" Note that specifying several headers, and/or headers that have a large range of values (e.g. per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance.
IncludedQueryParameters List<string>

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

ExcludeHost bool

If true, requests to different hosts will be cached separately. Note: this should only be enabled if hosts share the same origin and content. Removing the host from the cache key may inadvertently result in different objects being cached than intended, depending on which route the first user matched.

ExcludeQueryString bool

If true, exclude query string parameters from the cache key If false (the default), include the query string parameters in the cache key according to includeQueryParameters and excludeQueryParameters. If neither includeQueryParameters nor excludeQueryParameters is set, the entire query string will be included.

ExcludedQueryParameters []string

Names of query string parameters to exclude from cache keys. All other parameters will be included. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

IncludeProtocol bool

If true, http and https requests will be cached separately.

IncludedCookieNames []string

Names of Cookies to include in cache keys. The cookie name and cookie value of each cookie named will be used as part of the cache key. Cookie names:

  • must be valid RFC 6265 "cookie-name" tokens
  • are case sensitive
  • cannot start with "Edge-Cache-" (case insensitive) Note that specifying several cookies, and/or cookies that have a large range of values (e.g., per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance. You may specify up to three cookie names.
IncludedHeaderNames []string

Names of HTTP request headers to include in cache keys. The value of the header field will be used as part of the cache key.

  • Header names must be valid HTTP RFC 7230 header field values.
  • Header field names are case insensitive
  • To include the HTTP method, use ":method" Note that specifying several headers, and/or headers that have a large range of values (e.g. per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance.
IncludedQueryParameters []string

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

excludeHost Boolean

If true, requests to different hosts will be cached separately. Note: this should only be enabled if hosts share the same origin and content. Removing the host from the cache key may inadvertently result in different objects being cached than intended, depending on which route the first user matched.

excludeQueryString Boolean

If true, exclude query string parameters from the cache key If false (the default), include the query string parameters in the cache key according to includeQueryParameters and excludeQueryParameters. If neither includeQueryParameters nor excludeQueryParameters is set, the entire query string will be included.

excludedQueryParameters List<String>

Names of query string parameters to exclude from cache keys. All other parameters will be included. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

includeProtocol Boolean

If true, http and https requests will be cached separately.

includedCookieNames List<String>

Names of Cookies to include in cache keys. The cookie name and cookie value of each cookie named will be used as part of the cache key. Cookie names:

  • must be valid RFC 6265 "cookie-name" tokens
  • are case sensitive
  • cannot start with "Edge-Cache-" (case insensitive) Note that specifying several cookies, and/or cookies that have a large range of values (e.g., per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance. You may specify up to three cookie names.
includedHeaderNames List<String>

Names of HTTP request headers to include in cache keys. The value of the header field will be used as part of the cache key.

  • Header names must be valid HTTP RFC 7230 header field values.
  • Header field names are case insensitive
  • To include the HTTP method, use ":method" Note that specifying several headers, and/or headers that have a large range of values (e.g. per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance.
includedQueryParameters List<String>

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

excludeHost boolean

If true, requests to different hosts will be cached separately. Note: this should only be enabled if hosts share the same origin and content. Removing the host from the cache key may inadvertently result in different objects being cached than intended, depending on which route the first user matched.

excludeQueryString boolean

If true, exclude query string parameters from the cache key If false (the default), include the query string parameters in the cache key according to includeQueryParameters and excludeQueryParameters. If neither includeQueryParameters nor excludeQueryParameters is set, the entire query string will be included.

excludedQueryParameters string[]

Names of query string parameters to exclude from cache keys. All other parameters will be included. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

includeProtocol boolean

If true, http and https requests will be cached separately.

includedCookieNames string[]

Names of Cookies to include in cache keys. The cookie name and cookie value of each cookie named will be used as part of the cache key. Cookie names:

  • must be valid RFC 6265 "cookie-name" tokens
  • are case sensitive
  • cannot start with "Edge-Cache-" (case insensitive) Note that specifying several cookies, and/or cookies that have a large range of values (e.g., per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance. You may specify up to three cookie names.
includedHeaderNames string[]

Names of HTTP request headers to include in cache keys. The value of the header field will be used as part of the cache key.

  • Header names must be valid HTTP RFC 7230 header field values.
  • Header field names are case insensitive
  • To include the HTTP method, use ":method" Note that specifying several headers, and/or headers that have a large range of values (e.g. per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance.
includedQueryParameters string[]

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

exclude_host bool

If true, requests to different hosts will be cached separately. Note: this should only be enabled if hosts share the same origin and content. Removing the host from the cache key may inadvertently result in different objects being cached than intended, depending on which route the first user matched.

exclude_query_string bool

If true, exclude query string parameters from the cache key If false (the default), include the query string parameters in the cache key according to includeQueryParameters and excludeQueryParameters. If neither includeQueryParameters nor excludeQueryParameters is set, the entire query string will be included.

excluded_query_parameters Sequence[str]

Names of query string parameters to exclude from cache keys. All other parameters will be included. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

include_protocol bool

If true, http and https requests will be cached separately.

included_cookie_names Sequence[str]

Names of Cookies to include in cache keys. The cookie name and cookie value of each cookie named will be used as part of the cache key. Cookie names:

  • must be valid RFC 6265 "cookie-name" tokens
  • are case sensitive
  • cannot start with "Edge-Cache-" (case insensitive) Note that specifying several cookies, and/or cookies that have a large range of values (e.g., per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance. You may specify up to three cookie names.
included_header_names Sequence[str]

Names of HTTP request headers to include in cache keys. The value of the header field will be used as part of the cache key.

  • Header names must be valid HTTP RFC 7230 header field values.
  • Header field names are case insensitive
  • To include the HTTP method, use ":method" Note that specifying several headers, and/or headers that have a large range of values (e.g. per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance.
included_query_parameters Sequence[str]

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

excludeHost Boolean

If true, requests to different hosts will be cached separately. Note: this should only be enabled if hosts share the same origin and content. Removing the host from the cache key may inadvertently result in different objects being cached than intended, depending on which route the first user matched.

excludeQueryString Boolean

If true, exclude query string parameters from the cache key If false (the default), include the query string parameters in the cache key according to includeQueryParameters and excludeQueryParameters. If neither includeQueryParameters nor excludeQueryParameters is set, the entire query string will be included.

excludedQueryParameters List<String>

Names of query string parameters to exclude from cache keys. All other parameters will be included. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

includeProtocol Boolean

If true, http and https requests will be cached separately.

includedCookieNames List<String>

Names of Cookies to include in cache keys. The cookie name and cookie value of each cookie named will be used as part of the cache key. Cookie names:

  • must be valid RFC 6265 "cookie-name" tokens
  • are case sensitive
  • cannot start with "Edge-Cache-" (case insensitive) Note that specifying several cookies, and/or cookies that have a large range of values (e.g., per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance. You may specify up to three cookie names.
includedHeaderNames List<String>

Names of HTTP request headers to include in cache keys. The value of the header field will be used as part of the cache key.

  • Header names must be valid HTTP RFC 7230 header field values.
  • Header field names are case insensitive
  • To include the HTTP method, use ":method" Note that specifying several headers, and/or headers that have a large range of values (e.g. per-user) will dramatically impact the cache hit rate, and may result in a higher eviction rate and reduced performance.
includedQueryParameters List<String>

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify includedQueryParameters or excludedQueryParameters, not both. '&' and '=' will be percent encoded and not treated as delimiters.

EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

MaxAge string

Specifies how long results of a preflight request can be cached by a client in seconds. Note that many browser clients enforce a maximum TTL of 600s (10 minutes).

  • Setting the value to -1 forces a pre-flight check for all requests (not recommended)
  • A maximum TTL of 86400s can be set, but note that (as above) some clients may force pre-flight checks at a more regular interval.
  • This translates to the Access-Control-Max-Age header. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
AllowCredentials bool

In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials response header.

AllowHeaders List<string>

Specifies the content for the Access-Control-Allow-Headers response header.

AllowMethods List<string>

Specifies the content for the Access-Control-Allow-Methods response header.

AllowOrigins List<string>

Specifies the list of origins that will be allowed to do CORS requests. This translates to the Access-Control-Allow-Origin response header.

Disabled bool

If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.

ExposeHeaders List<string>

Specifies the content for the Access-Control-Allow-Headers response header.

MaxAge string

Specifies how long results of a preflight request can be cached by a client in seconds. Note that many browser clients enforce a maximum TTL of 600s (10 minutes).

  • Setting the value to -1 forces a pre-flight check for all requests (not recommended)
  • A maximum TTL of 86400s can be set, but note that (as above) some clients may force pre-flight checks at a more regular interval.
  • This translates to the Access-Control-Max-Age header. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
AllowCredentials bool

In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials response header.

AllowHeaders []string

Specifies the content for the Access-Control-Allow-Headers response header.

AllowMethods []string

Specifies the content for the Access-Control-Allow-Methods response header.

AllowOrigins []string

Specifies the list of origins that will be allowed to do CORS requests. This translates to the Access-Control-Allow-Origin response header.

Disabled bool

If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.

ExposeHeaders []string

Specifies the content for the Access-Control-Allow-Headers response header.

maxAge String

Specifies how long results of a preflight request can be cached by a client in seconds. Note that many browser clients enforce a maximum TTL of 600s (10 minutes).

  • Setting the value to -1 forces a pre-flight check for all requests (not recommended)
  • A maximum TTL of 86400s can be set, but note that (as above) some clients may force pre-flight checks at a more regular interval.
  • This translates to the Access-Control-Max-Age header. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
allowCredentials Boolean

In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials response header.

allowHeaders List<String>

Specifies the content for the Access-Control-Allow-Headers response header.

allowMethods List<String>

Specifies the content for the Access-Control-Allow-Methods response header.

allowOrigins List<String>

Specifies the list of origins that will be allowed to do CORS requests. This translates to the Access-Control-Allow-Origin response header.

disabled Boolean

If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.

exposeHeaders List<String>

Specifies the content for the Access-Control-Allow-Headers response header.

maxAge string

Specifies how long results of a preflight request can be cached by a client in seconds. Note that many browser clients enforce a maximum TTL of 600s (10 minutes).

  • Setting the value to -1 forces a pre-flight check for all requests (not recommended)
  • A maximum TTL of 86400s can be set, but note that (as above) some clients may force pre-flight checks at a more regular interval.
  • This translates to the Access-Control-Max-Age header. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
allowCredentials boolean

In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials response header.

allowHeaders string[]

Specifies the content for the Access-Control-Allow-Headers response header.

allowMethods string[]

Specifies the content for the Access-Control-Allow-Methods response header.

allowOrigins string[]

Specifies the list of origins that will be allowed to do CORS requests. This translates to the Access-Control-Allow-Origin response header.

disabled boolean

If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.

exposeHeaders string[]

Specifies the content for the Access-Control-Allow-Headers response header.

max_age str

Specifies how long results of a preflight request can be cached by a client in seconds. Note that many browser clients enforce a maximum TTL of 600s (10 minutes).

  • Setting the value to -1 forces a pre-flight check for all requests (not recommended)
  • A maximum TTL of 86400s can be set, but note that (as above) some clients may force pre-flight checks at a more regular interval.
  • This translates to the Access-Control-Max-Age header. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
allow_credentials bool

In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials response header.

allow_headers Sequence[str]

Specifies the content for the Access-Control-Allow-Headers response header.

allow_methods Sequence[str]

Specifies the content for the Access-Control-Allow-Methods response header.

allow_origins Sequence[str]

Specifies the list of origins that will be allowed to do CORS requests. This translates to the Access-Control-Allow-Origin response header.

disabled bool

If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.

expose_headers Sequence[str]

Specifies the content for the Access-Control-Allow-Headers response header.

maxAge String

Specifies how long results of a preflight request can be cached by a client in seconds. Note that many browser clients enforce a maximum TTL of 600s (10 minutes).

  • Setting the value to -1 forces a pre-flight check for all requests (not recommended)
  • A maximum TTL of 86400s can be set, but note that (as above) some clients may force pre-flight checks at a more regular interval.
  • This translates to the Access-Control-Max-Age header. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
allowCredentials Boolean

In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials response header.

allowHeaders List<String>

Specifies the content for the Access-Control-Allow-Headers response header.

allowMethods List<String>

Specifies the content for the Access-Control-Allow-Methods response header.

allowOrigins List<String>

Specifies the list of origins that will be allowed to do CORS requests. This translates to the Access-Control-Allow-Origin response header.

disabled Boolean

If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.

exposeHeaders List<String>

Specifies the content for the Access-Control-Allow-Headers response header.

EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewrite

HostRewrite string

Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.

PathPrefixRewrite string

Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.

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

Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.

PathPrefixRewrite string

Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.

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

Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.

pathPrefixRewrite String

Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.

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

Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.

pathPrefixRewrite string

Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.

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

Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.

path_prefix_rewrite str

Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.

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

Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.

pathPrefixRewrite String

Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.

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.

EdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirect

HostRedirect string

The host that will be used in the redirect response instead of the one that was supplied in the request.

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 can only be set if there is at least one (1) edgeSslCertificate set on the service.

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 path value must be between 1 and 1024 characters.

PrefixRedirect string

The prefix that replaces the prefixMatch specified in the routeRule, 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.

RedirectResponseCode string

The HTTP Status code to use for this RedirectAction. The supported values are:

  • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
  • FOUND, which corresponds to 302.
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.

HostRedirect string

The host that will be used in the redirect response instead of the one that was supplied in the request.

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 can only be set if there is at least one (1) edgeSslCertificate set on the service.

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 path value must be between 1 and 1024 characters.

PrefixRedirect string

The prefix that replaces the prefixMatch specified in the routeRule, 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.

RedirectResponseCode string

The HTTP Status code to use for this RedirectAction. The supported values are:

  • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
  • FOUND, which corresponds to 302.
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.

hostRedirect String

The host that will be used in the redirect response instead of the one that was supplied in the request.

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 can only be set if there is at least one (1) edgeSslCertificate set on the service.

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 path value must be between 1 and 1024 characters.

prefixRedirect String

The prefix that replaces the prefixMatch specified in the routeRule, 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.

redirectResponseCode String

The HTTP Status code to use for this RedirectAction. The supported values are:

  • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
  • FOUND, which corresponds to 302.
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.

hostRedirect string

The host that will be used in the redirect response instead of the one that was supplied in the request.

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 can only be set if there is at least one (1) edgeSslCertificate set on the service.

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 path value must be between 1 and 1024 characters.

prefixRedirect string

The prefix that replaces the prefixMatch specified in the routeRule, 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.

redirectResponseCode string

The HTTP Status code to use for this RedirectAction. The supported values are:

  • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
  • FOUND, which corresponds to 302.
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.

host_redirect str

The host that will be used in the redirect response instead of the one that was supplied in the request.

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 can only be set if there is at least one (1) edgeSslCertificate set on the service.

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 path value must be between 1 and 1024 characters.

prefix_redirect str

The prefix that replaces the prefixMatch specified in the routeRule, 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.

redirect_response_code str

The HTTP Status code to use for this RedirectAction. The supported values are:

  • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
  • FOUND, which corresponds to 302.
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.

hostRedirect String

The host that will be used in the redirect response instead of the one that was supplied in the request.

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 can only be set if there is at least one (1) edgeSslCertificate set on the service.

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 path value must be between 1 and 1024 characters.

prefixRedirect String

The prefix that replaces the prefixMatch specified in the routeRule, 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.

redirectResponseCode String

The HTTP Status code to use for this RedirectAction. The supported values are:

  • MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301.
  • FOUND, which corresponds to 302.
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.

Import

EdgeCacheService can be imported using any of these accepted formats

 $ pulumi import gcp:networkservices/edgeCacheService:EdgeCacheService default projects/{{project}}/locations/global/edgeCacheServices/{{name}}
 $ pulumi import gcp:networkservices/edgeCacheService:EdgeCacheService default {{project}}/{{name}}
 $ pulumi import gcp:networkservices/edgeCacheService:EdgeCacheService default {{name}}

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.