1. Packages
  2. Google Cloud Native
  3. API Docs
  4. networkservices
  5. networkservices/v1beta1
  6. GrpcRoute

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.networkservices/v1beta1.GrpcRoute

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Creates a new GrpcRoute in a given project and location.

Create GrpcRoute Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GrpcRoute(name: string, args: GrpcRouteArgs, opts?: CustomResourceOptions);
@overload
def GrpcRoute(resource_name: str,
              args: GrpcRouteArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def GrpcRoute(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              grpc_route_id: Optional[str] = None,
              hostnames: Optional[Sequence[str]] = None,
              rules: Optional[Sequence[GrpcRouteRouteRuleArgs]] = None,
              description: Optional[str] = None,
              gateways: Optional[Sequence[str]] = None,
              labels: Optional[Mapping[str, str]] = None,
              location: Optional[str] = None,
              meshes: Optional[Sequence[str]] = None,
              name: Optional[str] = None,
              project: Optional[str] = None)
func NewGrpcRoute(ctx *Context, name string, args GrpcRouteArgs, opts ...ResourceOption) (*GrpcRoute, error)
public GrpcRoute(string name, GrpcRouteArgs args, CustomResourceOptions? opts = null)
public GrpcRoute(String name, GrpcRouteArgs args)
public GrpcRoute(String name, GrpcRouteArgs args, CustomResourceOptions options)
type: google-native:networkservices/v1beta1:GrpcRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GrpcRouteArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GrpcRouteArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GrpcRouteArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GrpcRouteArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GrpcRouteArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var google_nativeGrpcRouteResource = new GoogleNative.NetworkServices.V1Beta1.GrpcRoute("google-nativeGrpcRouteResource", new()
{
    GrpcRouteId = "string",
    Hostnames = new[]
    {
        "string",
    },
    Rules = new[]
    {
        new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteRuleArgs
        {
            Action = new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteActionArgs
            {
                Destinations = new[]
                {
                    new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteDestinationArgs
                    {
                        ServiceName = "string",
                        Weight = 0,
                    },
                },
                FaultInjectionPolicy = new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteFaultInjectionPolicyArgs
                {
                    Abort = new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteFaultInjectionPolicyAbortArgs
                    {
                        HttpStatus = 0,
                        Percentage = 0,
                    },
                    Delay = new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteFaultInjectionPolicyDelayArgs
                    {
                        FixedDelay = "string",
                        Percentage = 0,
                    },
                },
                RetryPolicy = new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRetryPolicyArgs
                {
                    NumRetries = 0,
                    RetryConditions = new[]
                    {
                        "string",
                    },
                },
                StatefulSessionAffinity = new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteStatefulSessionAffinityPolicyArgs
                {
                    CookieTtl = "string",
                },
                Timeout = "string",
            },
            Matches = new[]
            {
                new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteMatchArgs
                {
                    Headers = new[]
                    {
                        new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteHeaderMatchArgs
                        {
                            Key = "string",
                            Value = "string",
                            Type = GoogleNative.NetworkServices.V1Beta1.GrpcRouteHeaderMatchType.TypeUnspecified,
                        },
                    },
                    Method = new GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteMethodMatchArgs
                    {
                        GrpcMethod = "string",
                        GrpcService = "string",
                        CaseSensitive = false,
                        Type = GoogleNative.NetworkServices.V1Beta1.GrpcRouteMethodMatchType.TypeUnspecified,
                    },
                },
            },
        },
    },
    Description = "string",
    Gateways = new[]
    {
        "string",
    },
    Labels = 
    {
        { "string", "string" },
    },
    Location = "string",
    Meshes = new[]
    {
        "string",
    },
    Name = "string",
    Project = "string",
});
Copy
example, err := networkservicesv1beta1.NewGrpcRoute(ctx, "google-nativeGrpcRouteResource", &networkservicesv1beta1.GrpcRouteArgs{
	GrpcRouteId: pulumi.String("string"),
	Hostnames: pulumi.StringArray{
		pulumi.String("string"),
	},
	Rules: networkservices.GrpcRouteRouteRuleArray{
		&networkservices.GrpcRouteRouteRuleArgs{
			Action: &networkservices.GrpcRouteRouteActionArgs{
				Destinations: networkservices.GrpcRouteDestinationArray{
					&networkservices.GrpcRouteDestinationArgs{
						ServiceName: pulumi.String("string"),
						Weight:      pulumi.Int(0),
					},
				},
				FaultInjectionPolicy: &networkservices.GrpcRouteFaultInjectionPolicyArgs{
					Abort: &networkservices.GrpcRouteFaultInjectionPolicyAbortArgs{
						HttpStatus: pulumi.Int(0),
						Percentage: pulumi.Int(0),
					},
					Delay: &networkservices.GrpcRouteFaultInjectionPolicyDelayArgs{
						FixedDelay: pulumi.String("string"),
						Percentage: pulumi.Int(0),
					},
				},
				RetryPolicy: &networkservices.GrpcRouteRetryPolicyArgs{
					NumRetries: pulumi.Int(0),
					RetryConditions: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
				StatefulSessionAffinity: &networkservices.GrpcRouteStatefulSessionAffinityPolicyArgs{
					CookieTtl: pulumi.String("string"),
				},
				Timeout: pulumi.String("string"),
			},
			Matches: networkservices.GrpcRouteRouteMatchArray{
				&networkservices.GrpcRouteRouteMatchArgs{
					Headers: networkservices.GrpcRouteHeaderMatchArray{
						&networkservices.GrpcRouteHeaderMatchArgs{
							Key:   pulumi.String("string"),
							Value: pulumi.String("string"),
							Type:  networkservicesv1beta1.GrpcRouteHeaderMatchTypeTypeUnspecified,
						},
					},
					Method: &networkservices.GrpcRouteMethodMatchArgs{
						GrpcMethod:    pulumi.String("string"),
						GrpcService:   pulumi.String("string"),
						CaseSensitive: pulumi.Bool(false),
						Type:          networkservicesv1beta1.GrpcRouteMethodMatchTypeTypeUnspecified,
					},
				},
			},
		},
	},
	Description: pulumi.String("string"),
	Gateways: pulumi.StringArray{
		pulumi.String("string"),
	},
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Meshes: pulumi.StringArray{
		pulumi.String("string"),
	},
	Name:    pulumi.String("string"),
	Project: pulumi.String("string"),
})
Copy
var google_nativeGrpcRouteResource = new GrpcRoute("google-nativeGrpcRouteResource", GrpcRouteArgs.builder()
    .grpcRouteId("string")
    .hostnames("string")
    .rules(GrpcRouteRouteRuleArgs.builder()
        .action(GrpcRouteRouteActionArgs.builder()
            .destinations(GrpcRouteDestinationArgs.builder()
                .serviceName("string")
                .weight(0)
                .build())
            .faultInjectionPolicy(GrpcRouteFaultInjectionPolicyArgs.builder()
                .abort(GrpcRouteFaultInjectionPolicyAbortArgs.builder()
                    .httpStatus(0)
                    .percentage(0)
                    .build())
                .delay(GrpcRouteFaultInjectionPolicyDelayArgs.builder()
                    .fixedDelay("string")
                    .percentage(0)
                    .build())
                .build())
            .retryPolicy(GrpcRouteRetryPolicyArgs.builder()
                .numRetries(0)
                .retryConditions("string")
                .build())
            .statefulSessionAffinity(GrpcRouteStatefulSessionAffinityPolicyArgs.builder()
                .cookieTtl("string")
                .build())
            .timeout("string")
            .build())
        .matches(GrpcRouteRouteMatchArgs.builder()
            .headers(GrpcRouteHeaderMatchArgs.builder()
                .key("string")
                .value("string")
                .type("TYPE_UNSPECIFIED")
                .build())
            .method(GrpcRouteMethodMatchArgs.builder()
                .grpcMethod("string")
                .grpcService("string")
                .caseSensitive(false)
                .type("TYPE_UNSPECIFIED")
                .build())
            .build())
        .build())
    .description("string")
    .gateways("string")
    .labels(Map.of("string", "string"))
    .location("string")
    .meshes("string")
    .name("string")
    .project("string")
    .build());
Copy
google_native_grpc_route_resource = google_native.networkservices.v1beta1.GrpcRoute("google-nativeGrpcRouteResource",
    grpc_route_id="string",
    hostnames=["string"],
    rules=[{
        "action": {
            "destinations": [{
                "service_name": "string",
                "weight": 0,
            }],
            "fault_injection_policy": {
                "abort": {
                    "http_status": 0,
                    "percentage": 0,
                },
                "delay": {
                    "fixed_delay": "string",
                    "percentage": 0,
                },
            },
            "retry_policy": {
                "num_retries": 0,
                "retry_conditions": ["string"],
            },
            "stateful_session_affinity": {
                "cookie_ttl": "string",
            },
            "timeout": "string",
        },
        "matches": [{
            "headers": [{
                "key": "string",
                "value": "string",
                "type": google_native.networkservices.v1beta1.GrpcRouteHeaderMatchType.TYPE_UNSPECIFIED,
            }],
            "method": {
                "grpc_method": "string",
                "grpc_service": "string",
                "case_sensitive": False,
                "type": google_native.networkservices.v1beta1.GrpcRouteMethodMatchType.TYPE_UNSPECIFIED,
            },
        }],
    }],
    description="string",
    gateways=["string"],
    labels={
        "string": "string",
    },
    location="string",
    meshes=["string"],
    name="string",
    project="string")
Copy
const google_nativeGrpcRouteResource = new google_native.networkservices.v1beta1.GrpcRoute("google-nativeGrpcRouteResource", {
    grpcRouteId: "string",
    hostnames: ["string"],
    rules: [{
        action: {
            destinations: [{
                serviceName: "string",
                weight: 0,
            }],
            faultInjectionPolicy: {
                abort: {
                    httpStatus: 0,
                    percentage: 0,
                },
                delay: {
                    fixedDelay: "string",
                    percentage: 0,
                },
            },
            retryPolicy: {
                numRetries: 0,
                retryConditions: ["string"],
            },
            statefulSessionAffinity: {
                cookieTtl: "string",
            },
            timeout: "string",
        },
        matches: [{
            headers: [{
                key: "string",
                value: "string",
                type: google_native.networkservices.v1beta1.GrpcRouteHeaderMatchType.TypeUnspecified,
            }],
            method: {
                grpcMethod: "string",
                grpcService: "string",
                caseSensitive: false,
                type: google_native.networkservices.v1beta1.GrpcRouteMethodMatchType.TypeUnspecified,
            },
        }],
    }],
    description: "string",
    gateways: ["string"],
    labels: {
        string: "string",
    },
    location: "string",
    meshes: ["string"],
    name: "string",
    project: "string",
});
Copy
type: google-native:networkservices/v1beta1:GrpcRoute
properties:
    description: string
    gateways:
        - string
    grpcRouteId: string
    hostnames:
        - string
    labels:
        string: string
    location: string
    meshes:
        - string
    name: string
    project: string
    rules:
        - action:
            destinations:
                - serviceName: string
                  weight: 0
            faultInjectionPolicy:
                abort:
                    httpStatus: 0
                    percentage: 0
                delay:
                    fixedDelay: string
                    percentage: 0
            retryPolicy:
                numRetries: 0
                retryConditions:
                    - string
            statefulSessionAffinity:
                cookieTtl: string
            timeout: string
          matches:
            - headers:
                - key: string
                  type: TYPE_UNSPECIFIED
                  value: string
              method:
                caseSensitive: false
                grpcMethod: string
                grpcService: string
                type: TYPE_UNSPECIFIED
Copy

GrpcRoute Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The GrpcRoute resource accepts the following input properties:

GrpcRouteId
This property is required.
Changes to this property will trigger replacement.
string
Required. Short name of the GrpcRoute resource to be created.
Hostnames This property is required. List<string>
Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. foo.example.com) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames *.foo.bar.com and *.bar.com to be associated with the same route, it is not possible to associate two routes both with *.bar.com or both with bar.com. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
Rules This property is required. List<Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteRule>
A list of detailed rules defining how to route traffic. Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the first matching GrpcRoute.RouteRule will be executed. At least one rule must be supplied.
Description string
Optional. A free-text description of the resource. Max length 1024 characters.
Gateways List<string>
Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/
Labels Dictionary<string, string>
Optional. Set of label tags associated with the GrpcRoute resource.
Location Changes to this property will trigger replacement. string
Meshes List<string>
Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/
Name string
Name of the GrpcRoute resource. It matches pattern projects/*/locations/global/grpcRoutes/
Project Changes to this property will trigger replacement. string
GrpcRouteId
This property is required.
Changes to this property will trigger replacement.
string
Required. Short name of the GrpcRoute resource to be created.
Hostnames This property is required. []string
Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. foo.example.com) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames *.foo.bar.com and *.bar.com to be associated with the same route, it is not possible to associate two routes both with *.bar.com or both with bar.com. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
Rules This property is required. []GrpcRouteRouteRuleArgs
A list of detailed rules defining how to route traffic. Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the first matching GrpcRoute.RouteRule will be executed. At least one rule must be supplied.
Description string
Optional. A free-text description of the resource. Max length 1024 characters.
Gateways []string
Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/
Labels map[string]string
Optional. Set of label tags associated with the GrpcRoute resource.
Location Changes to this property will trigger replacement. string
Meshes []string
Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/
Name string
Name of the GrpcRoute resource. It matches pattern projects/*/locations/global/grpcRoutes/
Project Changes to this property will trigger replacement. string
grpcRouteId
This property is required.
Changes to this property will trigger replacement.
String
Required. Short name of the GrpcRoute resource to be created.
hostnames This property is required. List<String>
Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. foo.example.com) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames *.foo.bar.com and *.bar.com to be associated with the same route, it is not possible to associate two routes both with *.bar.com or both with bar.com. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
rules This property is required. List<GrpcRouteRouteRule>
A list of detailed rules defining how to route traffic. Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the first matching GrpcRoute.RouteRule will be executed. At least one rule must be supplied.
description String
Optional. A free-text description of the resource. Max length 1024 characters.
gateways List<String>
Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/
labels Map<String,String>
Optional. Set of label tags associated with the GrpcRoute resource.
location Changes to this property will trigger replacement. String
meshes List<String>
Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/
name String
Name of the GrpcRoute resource. It matches pattern projects/*/locations/global/grpcRoutes/
project Changes to this property will trigger replacement. String
grpcRouteId
This property is required.
Changes to this property will trigger replacement.
string
Required. Short name of the GrpcRoute resource to be created.
hostnames This property is required. string[]
Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. foo.example.com) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames *.foo.bar.com and *.bar.com to be associated with the same route, it is not possible to associate two routes both with *.bar.com or both with bar.com. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
rules This property is required. GrpcRouteRouteRule[]
A list of detailed rules defining how to route traffic. Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the first matching GrpcRoute.RouteRule will be executed. At least one rule must be supplied.
description string
Optional. A free-text description of the resource. Max length 1024 characters.
gateways string[]
Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/
labels {[key: string]: string}
Optional. Set of label tags associated with the GrpcRoute resource.
location Changes to this property will trigger replacement. string
meshes string[]
Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/
name string
Name of the GrpcRoute resource. It matches pattern projects/*/locations/global/grpcRoutes/
project Changes to this property will trigger replacement. string
grpc_route_id
This property is required.
Changes to this property will trigger replacement.
str
Required. Short name of the GrpcRoute resource to be created.
hostnames This property is required. Sequence[str]
Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. foo.example.com) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames *.foo.bar.com and *.bar.com to be associated with the same route, it is not possible to associate two routes both with *.bar.com or both with bar.com. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
rules This property is required. Sequence[GrpcRouteRouteRuleArgs]
A list of detailed rules defining how to route traffic. Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the first matching GrpcRoute.RouteRule will be executed. At least one rule must be supplied.
description str
Optional. A free-text description of the resource. Max length 1024 characters.
gateways Sequence[str]
Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/
labels Mapping[str, str]
Optional. Set of label tags associated with the GrpcRoute resource.
location Changes to this property will trigger replacement. str
meshes Sequence[str]
Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/
name str
Name of the GrpcRoute resource. It matches pattern projects/*/locations/global/grpcRoutes/
project Changes to this property will trigger replacement. str
grpcRouteId
This property is required.
Changes to this property will trigger replacement.
String
Required. Short name of the GrpcRoute resource to be created.
hostnames This property is required. List<String>
Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. foo.example.com) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames *.foo.bar.com and *.bar.com to be associated with the same route, it is not possible to associate two routes both with *.bar.com or both with bar.com. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
rules This property is required. List<Property Map>
A list of detailed rules defining how to route traffic. Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the first matching GrpcRoute.RouteRule will be executed. At least one rule must be supplied.
description String
Optional. A free-text description of the resource. Max length 1024 characters.
gateways List<String>
Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/
labels Map<String>
Optional. Set of label tags associated with the GrpcRoute resource.
location Changes to this property will trigger replacement. String
meshes List<String>
Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/
name String
Name of the GrpcRoute resource. It matches pattern projects/*/locations/global/grpcRoutes/
project Changes to this property will trigger replacement. String

Outputs

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

CreateTime string
The timestamp when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
SelfLink string
Server-defined URL of this resource
UpdateTime string
The timestamp when the resource was updated.
CreateTime string
The timestamp when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
SelfLink string
Server-defined URL of this resource
UpdateTime string
The timestamp when the resource was updated.
createTime String
The timestamp when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
selfLink String
Server-defined URL of this resource
updateTime String
The timestamp when the resource was updated.
createTime string
The timestamp when the resource was created.
id string
The provider-assigned unique ID for this managed resource.
selfLink string
Server-defined URL of this resource
updateTime string
The timestamp when the resource was updated.
create_time str
The timestamp when the resource was created.
id str
The provider-assigned unique ID for this managed resource.
self_link str
Server-defined URL of this resource
update_time str
The timestamp when the resource was updated.
createTime String
The timestamp when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
selfLink String
Server-defined URL of this resource
updateTime String
The timestamp when the resource was updated.

Supporting Types

GrpcRouteDestination
, GrpcRouteDestinationArgs

ServiceName This property is required. string
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
Weight int
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
ServiceName This property is required. string
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
Weight int
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
serviceName This property is required. String
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight Integer
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
serviceName This property is required. string
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight number
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
service_name This property is required. str
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight int
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
serviceName This property is required. String
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight Number
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.

GrpcRouteDestinationResponse
, GrpcRouteDestinationResponseArgs

ServiceName This property is required. string
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
Weight This property is required. int
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
ServiceName This property is required. string
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
Weight This property is required. int
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
serviceName This property is required. String
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight This property is required. Integer
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
serviceName This property is required. string
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight This property is required. number
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
service_name This property is required. str
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight This property is required. int
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.
serviceName This property is required. String
The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService.
weight This property is required. Number
Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them.

GrpcRouteFaultInjectionPolicy
, GrpcRouteFaultInjectionPolicyArgs

Abort GrpcRouteFaultInjectionPolicyAbort
The specification for aborting to client requests.
Delay GrpcRouteFaultInjectionPolicyDelay
The specification for injecting delay to client requests.
abort GrpcRouteFaultInjectionPolicyAbort
The specification for aborting to client requests.
delay GrpcRouteFaultInjectionPolicyDelay
The specification for injecting delay to client requests.
abort GrpcRouteFaultInjectionPolicyAbort
The specification for aborting to client requests.
delay GrpcRouteFaultInjectionPolicyDelay
The specification for injecting delay to client requests.
abort GrpcRouteFaultInjectionPolicyAbort
The specification for aborting to client requests.
delay GrpcRouteFaultInjectionPolicyDelay
The specification for injecting delay to client requests.
abort Property Map
The specification for aborting to client requests.
delay Property Map
The specification for injecting delay to client requests.

GrpcRouteFaultInjectionPolicyAbort
, GrpcRouteFaultInjectionPolicyAbortArgs

HttpStatus int
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
Percentage int
The percentage of traffic which will be aborted. The value must be between [0, 100]
HttpStatus int
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
Percentage int
The percentage of traffic which will be aborted. The value must be between [0, 100]
httpStatus Integer
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage Integer
The percentage of traffic which will be aborted. The value must be between [0, 100]
httpStatus number
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage number
The percentage of traffic which will be aborted. The value must be between [0, 100]
http_status int
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage int
The percentage of traffic which will be aborted. The value must be between [0, 100]
httpStatus Number
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage Number
The percentage of traffic which will be aborted. The value must be between [0, 100]

GrpcRouteFaultInjectionPolicyAbortResponse
, GrpcRouteFaultInjectionPolicyAbortResponseArgs

HttpStatus This property is required. int
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
Percentage This property is required. int
The percentage of traffic which will be aborted. The value must be between [0, 100]
HttpStatus This property is required. int
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
Percentage This property is required. int
The percentage of traffic which will be aborted. The value must be between [0, 100]
httpStatus This property is required. Integer
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage This property is required. Integer
The percentage of traffic which will be aborted. The value must be between [0, 100]
httpStatus This property is required. number
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage This property is required. number
The percentage of traffic which will be aborted. The value must be between [0, 100]
http_status This property is required. int
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage This property is required. int
The percentage of traffic which will be aborted. The value must be between [0, 100]
httpStatus This property is required. Number
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
percentage This property is required. Number
The percentage of traffic which will be aborted. The value must be between [0, 100]

GrpcRouteFaultInjectionPolicyDelay
, GrpcRouteFaultInjectionPolicyDelayArgs

FixedDelay string
Specify a fixed delay before forwarding the request.
Percentage int
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
FixedDelay string
Specify a fixed delay before forwarding the request.
Percentage int
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixedDelay String
Specify a fixed delay before forwarding the request.
percentage Integer
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixedDelay string
Specify a fixed delay before forwarding the request.
percentage number
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixed_delay str
Specify a fixed delay before forwarding the request.
percentage int
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixedDelay String
Specify a fixed delay before forwarding the request.
percentage Number
The percentage of traffic on which delay will be injected. The value must be between [0, 100]

GrpcRouteFaultInjectionPolicyDelayResponse
, GrpcRouteFaultInjectionPolicyDelayResponseArgs

FixedDelay This property is required. string
Specify a fixed delay before forwarding the request.
Percentage This property is required. int
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
FixedDelay This property is required. string
Specify a fixed delay before forwarding the request.
Percentage This property is required. int
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixedDelay This property is required. String
Specify a fixed delay before forwarding the request.
percentage This property is required. Integer
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixedDelay This property is required. string
Specify a fixed delay before forwarding the request.
percentage This property is required. number
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixed_delay This property is required. str
Specify a fixed delay before forwarding the request.
percentage This property is required. int
The percentage of traffic on which delay will be injected. The value must be between [0, 100]
fixedDelay This property is required. String
Specify a fixed delay before forwarding the request.
percentage This property is required. Number
The percentage of traffic on which delay will be injected. The value must be between [0, 100]

GrpcRouteFaultInjectionPolicyResponse
, GrpcRouteFaultInjectionPolicyResponseArgs

Abort This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteFaultInjectionPolicyAbortResponse
The specification for aborting to client requests.
Delay This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteFaultInjectionPolicyDelayResponse
The specification for injecting delay to client requests.
Abort This property is required. GrpcRouteFaultInjectionPolicyAbortResponse
The specification for aborting to client requests.
Delay This property is required. GrpcRouteFaultInjectionPolicyDelayResponse
The specification for injecting delay to client requests.
abort This property is required. GrpcRouteFaultInjectionPolicyAbortResponse
The specification for aborting to client requests.
delay This property is required. GrpcRouteFaultInjectionPolicyDelayResponse
The specification for injecting delay to client requests.
abort This property is required. GrpcRouteFaultInjectionPolicyAbortResponse
The specification for aborting to client requests.
delay This property is required. GrpcRouteFaultInjectionPolicyDelayResponse
The specification for injecting delay to client requests.
abort This property is required. GrpcRouteFaultInjectionPolicyAbortResponse
The specification for aborting to client requests.
delay This property is required. GrpcRouteFaultInjectionPolicyDelayResponse
The specification for injecting delay to client requests.
abort This property is required. Property Map
The specification for aborting to client requests.
delay This property is required. Property Map
The specification for injecting delay to client requests.

GrpcRouteHeaderMatch
, GrpcRouteHeaderMatchArgs

Key This property is required. string
The key of the header.
Value This property is required. string
The value of the header.
Type Pulumi.GoogleNative.NetworkServices.V1Beta1.GrpcRouteHeaderMatchType
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
Key This property is required. string
The key of the header.
Value This property is required. string
The value of the header.
Type GrpcRouteHeaderMatchType
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
key This property is required. String
The key of the header.
value This property is required. String
The value of the header.
type GrpcRouteHeaderMatchType
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
key This property is required. string
The key of the header.
value This property is required. string
The value of the header.
type GrpcRouteHeaderMatchType
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
key This property is required. str
The key of the header.
value This property is required. str
The value of the header.
type GrpcRouteHeaderMatchType
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
key This property is required. String
The key of the header.
value This property is required. String
The value of the header.
type "TYPE_UNSPECIFIED" | "EXACT" | "REGULAR_EXPRESSION"
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

GrpcRouteHeaderMatchResponse
, GrpcRouteHeaderMatchResponseArgs

Key This property is required. string
The key of the header.
Type This property is required. string
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
Value This property is required. string
The value of the header.
Key This property is required. string
The key of the header.
Type This property is required. string
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
Value This property is required. string
The value of the header.
key This property is required. String
The key of the header.
type This property is required. String
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
value This property is required. String
The value of the header.
key This property is required. string
The key of the header.
type This property is required. string
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
value This property is required. string
The value of the header.
key This property is required. str
The key of the header.
type This property is required. str
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
value This property is required. str
The value of the header.
key This property is required. String
The key of the header.
type This property is required. String
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
value This property is required. String
The value of the header.

GrpcRouteHeaderMatchType
, GrpcRouteHeaderMatchTypeArgs

TypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
Exact
EXACTWill only match the exact value provided.
RegularExpression
REGULAR_EXPRESSIONWill match paths conforming to the prefix specified by value. RE2 syntax is supported.
GrpcRouteHeaderMatchTypeTypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
GrpcRouteHeaderMatchTypeExact
EXACTWill only match the exact value provided.
GrpcRouteHeaderMatchTypeRegularExpression
REGULAR_EXPRESSIONWill match paths conforming to the prefix specified by value. RE2 syntax is supported.
TypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
Exact
EXACTWill only match the exact value provided.
RegularExpression
REGULAR_EXPRESSIONWill match paths conforming to the prefix specified by value. RE2 syntax is supported.
TypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
Exact
EXACTWill only match the exact value provided.
RegularExpression
REGULAR_EXPRESSIONWill match paths conforming to the prefix specified by value. RE2 syntax is supported.
TYPE_UNSPECIFIED
TYPE_UNSPECIFIEDUnspecified.
EXACT
EXACTWill only match the exact value provided.
REGULAR_EXPRESSION
REGULAR_EXPRESSIONWill match paths conforming to the prefix specified by value. RE2 syntax is supported.
"TYPE_UNSPECIFIED"
TYPE_UNSPECIFIEDUnspecified.
"EXACT"
EXACTWill only match the exact value provided.
"REGULAR_EXPRESSION"
REGULAR_EXPRESSIONWill match paths conforming to the prefix specified by value. RE2 syntax is supported.

GrpcRouteMethodMatch
, GrpcRouteMethodMatchArgs

GrpcMethod This property is required. string
Name of the method to match against. If unspecified, will match all methods.
GrpcService This property is required. string
Name of the service to match against. If unspecified, will match all services.
CaseSensitive bool
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
Type Pulumi.GoogleNative.NetworkServices.V1Beta1.GrpcRouteMethodMatchType
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
GrpcMethod This property is required. string
Name of the method to match against. If unspecified, will match all methods.
GrpcService This property is required. string
Name of the service to match against. If unspecified, will match all services.
CaseSensitive bool
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
Type GrpcRouteMethodMatchType
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
grpcMethod This property is required. String
Name of the method to match against. If unspecified, will match all methods.
grpcService This property is required. String
Name of the service to match against. If unspecified, will match all services.
caseSensitive Boolean
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
type GrpcRouteMethodMatchType
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
grpcMethod This property is required. string
Name of the method to match against. If unspecified, will match all methods.
grpcService This property is required. string
Name of the service to match against. If unspecified, will match all services.
caseSensitive boolean
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
type GrpcRouteMethodMatchType
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
grpc_method This property is required. str
Name of the method to match against. If unspecified, will match all methods.
grpc_service This property is required. str
Name of the service to match against. If unspecified, will match all services.
case_sensitive bool
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
type GrpcRouteMethodMatchType
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
grpcMethod This property is required. String
Name of the method to match against. If unspecified, will match all methods.
grpcService This property is required. String
Name of the service to match against. If unspecified, will match all services.
caseSensitive Boolean
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
type "TYPE_UNSPECIFIED" | "EXACT" | "REGULAR_EXPRESSION"
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

GrpcRouteMethodMatchResponse
, GrpcRouteMethodMatchResponseArgs

CaseSensitive This property is required. bool
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
GrpcMethod This property is required. string
Name of the method to match against. If unspecified, will match all methods.
GrpcService This property is required. string
Name of the service to match against. If unspecified, will match all services.
Type This property is required. string
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
CaseSensitive This property is required. bool
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
GrpcMethod This property is required. string
Name of the method to match against. If unspecified, will match all methods.
GrpcService This property is required. string
Name of the service to match against. If unspecified, will match all services.
Type This property is required. string
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
caseSensitive This property is required. Boolean
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
grpcMethod This property is required. String
Name of the method to match against. If unspecified, will match all methods.
grpcService This property is required. String
Name of the service to match against. If unspecified, will match all services.
type This property is required. String
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
caseSensitive This property is required. boolean
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
grpcMethod This property is required. string
Name of the method to match against. If unspecified, will match all methods.
grpcService This property is required. string
Name of the service to match against. If unspecified, will match all services.
type This property is required. string
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
case_sensitive This property is required. bool
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
grpc_method This property is required. str
Name of the method to match against. If unspecified, will match all methods.
grpc_service This property is required. str
Name of the service to match against. If unspecified, will match all services.
type This property is required. str
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
caseSensitive This property is required. Boolean
Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
grpcMethod This property is required. String
Name of the method to match against. If unspecified, will match all methods.
grpcService This property is required. String
Name of the service to match against. If unspecified, will match all services.
type This property is required. String
Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

GrpcRouteMethodMatchType
, GrpcRouteMethodMatchTypeArgs

TypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
Exact
EXACTWill only match the exact name provided.
RegularExpression
REGULAR_EXPRESSIONWill interpret grpc_method and grpc_service as regexes. RE2 syntax is supported.
GrpcRouteMethodMatchTypeTypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
GrpcRouteMethodMatchTypeExact
EXACTWill only match the exact name provided.
GrpcRouteMethodMatchTypeRegularExpression
REGULAR_EXPRESSIONWill interpret grpc_method and grpc_service as regexes. RE2 syntax is supported.
TypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
Exact
EXACTWill only match the exact name provided.
RegularExpression
REGULAR_EXPRESSIONWill interpret grpc_method and grpc_service as regexes. RE2 syntax is supported.
TypeUnspecified
TYPE_UNSPECIFIEDUnspecified.
Exact
EXACTWill only match the exact name provided.
RegularExpression
REGULAR_EXPRESSIONWill interpret grpc_method and grpc_service as regexes. RE2 syntax is supported.
TYPE_UNSPECIFIED
TYPE_UNSPECIFIEDUnspecified.
EXACT
EXACTWill only match the exact name provided.
REGULAR_EXPRESSION
REGULAR_EXPRESSIONWill interpret grpc_method and grpc_service as regexes. RE2 syntax is supported.
"TYPE_UNSPECIFIED"
TYPE_UNSPECIFIEDUnspecified.
"EXACT"
EXACTWill only match the exact name provided.
"REGULAR_EXPRESSION"
REGULAR_EXPRESSIONWill interpret grpc_method and grpc_service as regexes. RE2 syntax is supported.

GrpcRouteRetryPolicy
, GrpcRouteRetryPolicyArgs

NumRetries int
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
RetryConditions List<string>
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
NumRetries int
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
RetryConditions []string
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
numRetries Integer
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retryConditions List<String>
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
numRetries number
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retryConditions string[]
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
num_retries int
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retry_conditions Sequence[str]
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
numRetries Number
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retryConditions List<String>
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable

GrpcRouteRetryPolicyResponse
, GrpcRouteRetryPolicyResponseArgs

NumRetries This property is required. int
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
RetryConditions This property is required. List<string>
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
NumRetries This property is required. int
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
RetryConditions This property is required. []string
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
numRetries This property is required. Integer
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retryConditions This property is required. List<String>
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
numRetries This property is required. number
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retryConditions This property is required. string[]
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
num_retries This property is required. int
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retry_conditions This property is required. Sequence[str]
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
numRetries This property is required. Number
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
retryConditions This property is required. List<String>
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts. - refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable

GrpcRouteRouteAction
, GrpcRouteRouteActionArgs

Destinations List<Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteDestination>
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
FaultInjectionPolicy Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteFaultInjectionPolicy
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
RetryPolicy Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRetryPolicy
Optional. Specifies the retry policy associated with this route.
StatefulSessionAffinity Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteStatefulSessionAffinityPolicy
Optional. Specifies cookie-based stateful session affinity.
Timeout string
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
Destinations []GrpcRouteDestination
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
FaultInjectionPolicy GrpcRouteFaultInjectionPolicy
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
RetryPolicy GrpcRouteRetryPolicy
Optional. Specifies the retry policy associated with this route.
StatefulSessionAffinity GrpcRouteStatefulSessionAffinityPolicy
Optional. Specifies cookie-based stateful session affinity.
Timeout string
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations List<GrpcRouteDestination>
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
faultInjectionPolicy GrpcRouteFaultInjectionPolicy
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retryPolicy GrpcRouteRetryPolicy
Optional. Specifies the retry policy associated with this route.
statefulSessionAffinity GrpcRouteStatefulSessionAffinityPolicy
Optional. Specifies cookie-based stateful session affinity.
timeout String
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations GrpcRouteDestination[]
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
faultInjectionPolicy GrpcRouteFaultInjectionPolicy
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retryPolicy GrpcRouteRetryPolicy
Optional. Specifies the retry policy associated with this route.
statefulSessionAffinity GrpcRouteStatefulSessionAffinityPolicy
Optional. Specifies cookie-based stateful session affinity.
timeout string
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations Sequence[GrpcRouteDestination]
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
fault_injection_policy GrpcRouteFaultInjectionPolicy
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retry_policy GrpcRouteRetryPolicy
Optional. Specifies the retry policy associated with this route.
stateful_session_affinity GrpcRouteStatefulSessionAffinityPolicy
Optional. Specifies cookie-based stateful session affinity.
timeout str
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations List<Property Map>
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
faultInjectionPolicy Property Map
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retryPolicy Property Map
Optional. Specifies the retry policy associated with this route.
statefulSessionAffinity Property Map
Optional. Specifies cookie-based stateful session affinity.
timeout String
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.

GrpcRouteRouteActionResponse
, GrpcRouteRouteActionResponseArgs

Destinations This property is required. List<Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteDestinationResponse>
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
FaultInjectionPolicy This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteFaultInjectionPolicyResponse
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
RetryPolicy This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRetryPolicyResponse
Optional. Specifies the retry policy associated with this route.
StatefulSessionAffinity This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteStatefulSessionAffinityPolicyResponse
Optional. Specifies cookie-based stateful session affinity.
Timeout This property is required. string
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
Destinations This property is required. []GrpcRouteDestinationResponse
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
FaultInjectionPolicy This property is required. GrpcRouteFaultInjectionPolicyResponse
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
RetryPolicy This property is required. GrpcRouteRetryPolicyResponse
Optional. Specifies the retry policy associated with this route.
StatefulSessionAffinity This property is required. GrpcRouteStatefulSessionAffinityPolicyResponse
Optional. Specifies cookie-based stateful session affinity.
Timeout This property is required. string
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations This property is required. List<GrpcRouteDestinationResponse>
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
faultInjectionPolicy This property is required. GrpcRouteFaultInjectionPolicyResponse
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retryPolicy This property is required. GrpcRouteRetryPolicyResponse
Optional. Specifies the retry policy associated with this route.
statefulSessionAffinity This property is required. GrpcRouteStatefulSessionAffinityPolicyResponse
Optional. Specifies cookie-based stateful session affinity.
timeout This property is required. String
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations This property is required. GrpcRouteDestinationResponse[]
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
faultInjectionPolicy This property is required. GrpcRouteFaultInjectionPolicyResponse
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retryPolicy This property is required. GrpcRouteRetryPolicyResponse
Optional. Specifies the retry policy associated with this route.
statefulSessionAffinity This property is required. GrpcRouteStatefulSessionAffinityPolicyResponse
Optional. Specifies cookie-based stateful session affinity.
timeout This property is required. string
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations This property is required. Sequence[GrpcRouteDestinationResponse]
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
fault_injection_policy This property is required. GrpcRouteFaultInjectionPolicyResponse
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retry_policy This property is required. GrpcRouteRetryPolicyResponse
Optional. Specifies the retry policy associated with this route.
stateful_session_affinity This property is required. GrpcRouteStatefulSessionAffinityPolicyResponse
Optional. Specifies cookie-based stateful session affinity.
timeout This property is required. str
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
destinations This property is required. List<Property Map>
Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.
faultInjectionPolicy This property is required. Property Map
Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
retryPolicy This property is required. Property Map
Optional. Specifies the retry policy associated with this route.
statefulSessionAffinity This property is required. Property Map
Optional. Specifies cookie-based stateful session affinity.
timeout This property is required. String
Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.

GrpcRouteRouteMatch
, GrpcRouteRouteMatchArgs

Headers List<Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteHeaderMatch>
Optional. Specifies a collection of headers to match.
Method Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteMethodMatch
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
Headers []GrpcRouteHeaderMatch
Optional. Specifies a collection of headers to match.
Method GrpcRouteMethodMatch
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers List<GrpcRouteHeaderMatch>
Optional. Specifies a collection of headers to match.
method GrpcRouteMethodMatch
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers GrpcRouteHeaderMatch[]
Optional. Specifies a collection of headers to match.
method GrpcRouteMethodMatch
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers Sequence[GrpcRouteHeaderMatch]
Optional. Specifies a collection of headers to match.
method GrpcRouteMethodMatch
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers List<Property Map>
Optional. Specifies a collection of headers to match.
method Property Map
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.

GrpcRouteRouteMatchResponse
, GrpcRouteRouteMatchResponseArgs

Headers This property is required. List<Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteHeaderMatchResponse>
Optional. Specifies a collection of headers to match.
Method This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteMethodMatchResponse
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
Headers This property is required. []GrpcRouteHeaderMatchResponse
Optional. Specifies a collection of headers to match.
Method This property is required. GrpcRouteMethodMatchResponse
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers This property is required. List<GrpcRouteHeaderMatchResponse>
Optional. Specifies a collection of headers to match.
method This property is required. GrpcRouteMethodMatchResponse
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers This property is required. GrpcRouteHeaderMatchResponse[]
Optional. Specifies a collection of headers to match.
method This property is required. GrpcRouteMethodMatchResponse
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers This property is required. Sequence[GrpcRouteHeaderMatchResponse]
Optional. Specifies a collection of headers to match.
method This property is required. GrpcRouteMethodMatchResponse
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
headers This property is required. List<Property Map>
Optional. Specifies a collection of headers to match.
method This property is required. Property Map
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.

GrpcRouteRouteRule
, GrpcRouteRouteRuleArgs

Action This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteAction
A detailed rule defining how to route traffic. This field is required.
Matches List<Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteMatch>
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
Action This property is required. GrpcRouteRouteAction
A detailed rule defining how to route traffic. This field is required.
Matches []GrpcRouteRouteMatch
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. GrpcRouteRouteAction
A detailed rule defining how to route traffic. This field is required.
matches List<GrpcRouteRouteMatch>
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. GrpcRouteRouteAction
A detailed rule defining how to route traffic. This field is required.
matches GrpcRouteRouteMatch[]
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. GrpcRouteRouteAction
A detailed rule defining how to route traffic. This field is required.
matches Sequence[GrpcRouteRouteMatch]
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. Property Map
A detailed rule defining how to route traffic. This field is required.
matches List<Property Map>
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

GrpcRouteRouteRuleResponse
, GrpcRouteRouteRuleResponseArgs

Action This property is required. Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteActionResponse
A detailed rule defining how to route traffic. This field is required.
Matches This property is required. List<Pulumi.GoogleNative.NetworkServices.V1Beta1.Inputs.GrpcRouteRouteMatchResponse>
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
Action This property is required. GrpcRouteRouteActionResponse
A detailed rule defining how to route traffic. This field is required.
Matches This property is required. []GrpcRouteRouteMatchResponse
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. GrpcRouteRouteActionResponse
A detailed rule defining how to route traffic. This field is required.
matches This property is required. List<GrpcRouteRouteMatchResponse>
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. GrpcRouteRouteActionResponse
A detailed rule defining how to route traffic. This field is required.
matches This property is required. GrpcRouteRouteMatchResponse[]
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. GrpcRouteRouteActionResponse
A detailed rule defining how to route traffic. This field is required.
matches This property is required. Sequence[GrpcRouteRouteMatchResponse]
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.
action This property is required. Property Map
A detailed rule defining how to route traffic. This field is required.
matches This property is required. List<Property Map>
Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

GrpcRouteStatefulSessionAffinityPolicy
, GrpcRouteStatefulSessionAffinityPolicyArgs

CookieTtl This property is required. string
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
CookieTtl This property is required. string
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookieTtl This property is required. String
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookieTtl This property is required. string
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookie_ttl This property is required. str
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookieTtl This property is required. String
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.

GrpcRouteStatefulSessionAffinityPolicyResponse
, GrpcRouteStatefulSessionAffinityPolicyResponseArgs

CookieTtl This property is required. string
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
CookieTtl This property is required. string
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookieTtl This property is required. String
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookieTtl This property is required. string
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookie_ttl This property is required. str
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.
cookieTtl This property is required. String
The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi