aws.appmesh.Route
Explore with Pulumi AI
Provides an AWS App Mesh route resource.
Example Usage
HTTP Routing
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const serviceb = new aws.appmesh.Route("serviceb", {
    name: "serviceB-route",
    meshName: simple.id,
    virtualRouterName: servicebAwsAppmeshVirtualRouter.name,
    spec: {
        httpRoute: {
            match: {
                prefix: "/",
            },
            action: {
                weightedTargets: [
                    {
                        virtualNode: serviceb1.name,
                        weight: 90,
                    },
                    {
                        virtualNode: serviceb2.name,
                        weight: 10,
                    },
                ],
            },
        },
    },
});
import pulumi
import pulumi_aws as aws
serviceb = aws.appmesh.Route("serviceb",
    name="serviceB-route",
    mesh_name=simple["id"],
    virtual_router_name=serviceb_aws_appmesh_virtual_router["name"],
    spec={
        "http_route": {
            "match": {
                "prefix": "/",
            },
            "action": {
                "weighted_targets": [
                    {
                        "virtual_node": serviceb1["name"],
                        "weight": 90,
                    },
                    {
                        "virtual_node": serviceb2["name"],
                        "weight": 10,
                    },
                ],
            },
        },
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appmesh.NewRoute(ctx, "serviceb", &appmesh.RouteArgs{
			Name:              pulumi.String("serviceB-route"),
			MeshName:          pulumi.Any(simple.Id),
			VirtualRouterName: pulumi.Any(servicebAwsAppmeshVirtualRouter.Name),
			Spec: &appmesh.RouteSpecArgs{
				HttpRoute: &appmesh.RouteSpecHttpRouteArgs{
					Match: &appmesh.RouteSpecHttpRouteMatchArgs{
						Prefix: pulumi.String("/"),
					},
					Action: &appmesh.RouteSpecHttpRouteActionArgs{
						WeightedTargets: appmesh.RouteSpecHttpRouteActionWeightedTargetArray{
							&appmesh.RouteSpecHttpRouteActionWeightedTargetArgs{
								VirtualNode: pulumi.Any(serviceb1.Name),
								Weight:      pulumi.Int(90),
							},
							&appmesh.RouteSpecHttpRouteActionWeightedTargetArgs{
								VirtualNode: pulumi.Any(serviceb2.Name),
								Weight:      pulumi.Int(10),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var serviceb = new Aws.AppMesh.Route("serviceb", new()
    {
        Name = "serviceB-route",
        MeshName = simple.Id,
        VirtualRouterName = servicebAwsAppmeshVirtualRouter.Name,
        Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
        {
            HttpRoute = new Aws.AppMesh.Inputs.RouteSpecHttpRouteArgs
            {
                Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchArgs
                {
                    Prefix = "/",
                },
                Action = new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionArgs
                {
                    WeightedTargets = new[]
                    {
                        new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionWeightedTargetArgs
                        {
                            VirtualNode = serviceb1.Name,
                            Weight = 90,
                        },
                        new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionWeightedTargetArgs
                        {
                            VirtualNode = serviceb2.Name,
                            Weight = 10,
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appmesh.Route;
import com.pulumi.aws.appmesh.RouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteMatchArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var serviceb = new Route("serviceb", RouteArgs.builder()
            .name("serviceB-route")
            .meshName(simple.id())
            .virtualRouterName(servicebAwsAppmeshVirtualRouter.name())
            .spec(RouteSpecArgs.builder()
                .httpRoute(RouteSpecHttpRouteArgs.builder()
                    .match(RouteSpecHttpRouteMatchArgs.builder()
                        .prefix("/")
                        .build())
                    .action(RouteSpecHttpRouteActionArgs.builder()
                        .weightedTargets(                        
                            RouteSpecHttpRouteActionWeightedTargetArgs.builder()
                                .virtualNode(serviceb1.name())
                                .weight(90)
                                .build(),
                            RouteSpecHttpRouteActionWeightedTargetArgs.builder()
                                .virtualNode(serviceb2.name())
                                .weight(10)
                                .build())
                        .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  serviceb:
    type: aws:appmesh:Route
    properties:
      name: serviceB-route
      meshName: ${simple.id}
      virtualRouterName: ${servicebAwsAppmeshVirtualRouter.name}
      spec:
        httpRoute:
          match:
            prefix: /
          action:
            weightedTargets:
              - virtualNode: ${serviceb1.name}
                weight: 90
              - virtualNode: ${serviceb2.name}
                weight: 10
HTTP Header Routing
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const serviceb = new aws.appmesh.Route("serviceb", {
    name: "serviceB-route",
    meshName: simple.id,
    virtualRouterName: servicebAwsAppmeshVirtualRouter.name,
    spec: {
        httpRoute: {
            match: {
                method: "POST",
                prefix: "/",
                scheme: "https",
                headers: [{
                    name: "clientRequestId",
                    match: {
                        prefix: "123",
                    },
                }],
            },
            action: {
                weightedTargets: [{
                    virtualNode: servicebAwsAppmeshVirtualNode.name,
                    weight: 100,
                }],
            },
        },
    },
});
import pulumi
import pulumi_aws as aws
serviceb = aws.appmesh.Route("serviceb",
    name="serviceB-route",
    mesh_name=simple["id"],
    virtual_router_name=serviceb_aws_appmesh_virtual_router["name"],
    spec={
        "http_route": {
            "match": {
                "method": "POST",
                "prefix": "/",
                "scheme": "https",
                "headers": [{
                    "name": "clientRequestId",
                    "match": {
                        "prefix": "123",
                    },
                }],
            },
            "action": {
                "weighted_targets": [{
                    "virtual_node": serviceb_aws_appmesh_virtual_node["name"],
                    "weight": 100,
                }],
            },
        },
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appmesh.NewRoute(ctx, "serviceb", &appmesh.RouteArgs{
			Name:              pulumi.String("serviceB-route"),
			MeshName:          pulumi.Any(simple.Id),
			VirtualRouterName: pulumi.Any(servicebAwsAppmeshVirtualRouter.Name),
			Spec: &appmesh.RouteSpecArgs{
				HttpRoute: &appmesh.RouteSpecHttpRouteArgs{
					Match: &appmesh.RouteSpecHttpRouteMatchArgs{
						Method: pulumi.String("POST"),
						Prefix: pulumi.String("/"),
						Scheme: pulumi.String("https"),
						Headers: appmesh.RouteSpecHttpRouteMatchHeaderArray{
							&appmesh.RouteSpecHttpRouteMatchHeaderArgs{
								Name: pulumi.String("clientRequestId"),
								Match: &appmesh.RouteSpecHttpRouteMatchHeaderMatchArgs{
									Prefix: pulumi.String("123"),
								},
							},
						},
					},
					Action: &appmesh.RouteSpecHttpRouteActionArgs{
						WeightedTargets: appmesh.RouteSpecHttpRouteActionWeightedTargetArray{
							&appmesh.RouteSpecHttpRouteActionWeightedTargetArgs{
								VirtualNode: pulumi.Any(servicebAwsAppmeshVirtualNode.Name),
								Weight:      pulumi.Int(100),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var serviceb = new Aws.AppMesh.Route("serviceb", new()
    {
        Name = "serviceB-route",
        MeshName = simple.Id,
        VirtualRouterName = servicebAwsAppmeshVirtualRouter.Name,
        Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
        {
            HttpRoute = new Aws.AppMesh.Inputs.RouteSpecHttpRouteArgs
            {
                Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchArgs
                {
                    Method = "POST",
                    Prefix = "/",
                    Scheme = "https",
                    Headers = new[]
                    {
                        new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchHeaderArgs
                        {
                            Name = "clientRequestId",
                            Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchHeaderMatchArgs
                            {
                                Prefix = "123",
                            },
                        },
                    },
                },
                Action = new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionArgs
                {
                    WeightedTargets = new[]
                    {
                        new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionWeightedTargetArgs
                        {
                            VirtualNode = servicebAwsAppmeshVirtualNode.Name,
                            Weight = 100,
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appmesh.Route;
import com.pulumi.aws.appmesh.RouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteMatchArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var serviceb = new Route("serviceb", RouteArgs.builder()
            .name("serviceB-route")
            .meshName(simple.id())
            .virtualRouterName(servicebAwsAppmeshVirtualRouter.name())
            .spec(RouteSpecArgs.builder()
                .httpRoute(RouteSpecHttpRouteArgs.builder()
                    .match(RouteSpecHttpRouteMatchArgs.builder()
                        .method("POST")
                        .prefix("/")
                        .scheme("https")
                        .headers(RouteSpecHttpRouteMatchHeaderArgs.builder()
                            .name("clientRequestId")
                            .match(RouteSpecHttpRouteMatchHeaderMatchArgs.builder()
                                .prefix("123")
                                .build())
                            .build())
                        .build())
                    .action(RouteSpecHttpRouteActionArgs.builder()
                        .weightedTargets(RouteSpecHttpRouteActionWeightedTargetArgs.builder()
                            .virtualNode(servicebAwsAppmeshVirtualNode.name())
                            .weight(100)
                            .build())
                        .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  serviceb:
    type: aws:appmesh:Route
    properties:
      name: serviceB-route
      meshName: ${simple.id}
      virtualRouterName: ${servicebAwsAppmeshVirtualRouter.name}
      spec:
        httpRoute:
          match:
            method: POST
            prefix: /
            scheme: https
            headers:
              - name: clientRequestId
                match:
                  prefix: '123'
          action:
            weightedTargets:
              - virtualNode: ${servicebAwsAppmeshVirtualNode.name}
                weight: 100
Retry Policy
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const serviceb = new aws.appmesh.Route("serviceb", {
    name: "serviceB-route",
    meshName: simple.id,
    virtualRouterName: servicebAwsAppmeshVirtualRouter.name,
    spec: {
        httpRoute: {
            match: {
                prefix: "/",
            },
            retryPolicy: {
                httpRetryEvents: ["server-error"],
                maxRetries: 1,
                perRetryTimeout: {
                    unit: "s",
                    value: 15,
                },
            },
            action: {
                weightedTargets: [{
                    virtualNode: servicebAwsAppmeshVirtualNode.name,
                    weight: 100,
                }],
            },
        },
    },
});
import pulumi
import pulumi_aws as aws
serviceb = aws.appmesh.Route("serviceb",
    name="serviceB-route",
    mesh_name=simple["id"],
    virtual_router_name=serviceb_aws_appmesh_virtual_router["name"],
    spec={
        "http_route": {
            "match": {
                "prefix": "/",
            },
            "retry_policy": {
                "http_retry_events": ["server-error"],
                "max_retries": 1,
                "per_retry_timeout": {
                    "unit": "s",
                    "value": 15,
                },
            },
            "action": {
                "weighted_targets": [{
                    "virtual_node": serviceb_aws_appmesh_virtual_node["name"],
                    "weight": 100,
                }],
            },
        },
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appmesh.NewRoute(ctx, "serviceb", &appmesh.RouteArgs{
			Name:              pulumi.String("serviceB-route"),
			MeshName:          pulumi.Any(simple.Id),
			VirtualRouterName: pulumi.Any(servicebAwsAppmeshVirtualRouter.Name),
			Spec: &appmesh.RouteSpecArgs{
				HttpRoute: &appmesh.RouteSpecHttpRouteArgs{
					Match: &appmesh.RouteSpecHttpRouteMatchArgs{
						Prefix: pulumi.String("/"),
					},
					RetryPolicy: &appmesh.RouteSpecHttpRouteRetryPolicyArgs{
						HttpRetryEvents: pulumi.StringArray{
							pulumi.String("server-error"),
						},
						MaxRetries: pulumi.Int(1),
						PerRetryTimeout: &appmesh.RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs{
							Unit:  pulumi.String("s"),
							Value: pulumi.Int(15),
						},
					},
					Action: &appmesh.RouteSpecHttpRouteActionArgs{
						WeightedTargets: appmesh.RouteSpecHttpRouteActionWeightedTargetArray{
							&appmesh.RouteSpecHttpRouteActionWeightedTargetArgs{
								VirtualNode: pulumi.Any(servicebAwsAppmeshVirtualNode.Name),
								Weight:      pulumi.Int(100),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var serviceb = new Aws.AppMesh.Route("serviceb", new()
    {
        Name = "serviceB-route",
        MeshName = simple.Id,
        VirtualRouterName = servicebAwsAppmeshVirtualRouter.Name,
        Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
        {
            HttpRoute = new Aws.AppMesh.Inputs.RouteSpecHttpRouteArgs
            {
                Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchArgs
                {
                    Prefix = "/",
                },
                RetryPolicy = new Aws.AppMesh.Inputs.RouteSpecHttpRouteRetryPolicyArgs
                {
                    HttpRetryEvents = new[]
                    {
                        "server-error",
                    },
                    MaxRetries = 1,
                    PerRetryTimeout = new Aws.AppMesh.Inputs.RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs
                    {
                        Unit = "s",
                        Value = 15,
                    },
                },
                Action = new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionArgs
                {
                    WeightedTargets = new[]
                    {
                        new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionWeightedTargetArgs
                        {
                            VirtualNode = servicebAwsAppmeshVirtualNode.Name,
                            Weight = 100,
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appmesh.Route;
import com.pulumi.aws.appmesh.RouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteMatchArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteRetryPolicyArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var serviceb = new Route("serviceb", RouteArgs.builder()
            .name("serviceB-route")
            .meshName(simple.id())
            .virtualRouterName(servicebAwsAppmeshVirtualRouter.name())
            .spec(RouteSpecArgs.builder()
                .httpRoute(RouteSpecHttpRouteArgs.builder()
                    .match(RouteSpecHttpRouteMatchArgs.builder()
                        .prefix("/")
                        .build())
                    .retryPolicy(RouteSpecHttpRouteRetryPolicyArgs.builder()
                        .httpRetryEvents("server-error")
                        .maxRetries(1)
                        .perRetryTimeout(RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs.builder()
                            .unit("s")
                            .value(15)
                            .build())
                        .build())
                    .action(RouteSpecHttpRouteActionArgs.builder()
                        .weightedTargets(RouteSpecHttpRouteActionWeightedTargetArgs.builder()
                            .virtualNode(servicebAwsAppmeshVirtualNode.name())
                            .weight(100)
                            .build())
                        .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  serviceb:
    type: aws:appmesh:Route
    properties:
      name: serviceB-route
      meshName: ${simple.id}
      virtualRouterName: ${servicebAwsAppmeshVirtualRouter.name}
      spec:
        httpRoute:
          match:
            prefix: /
          retryPolicy:
            httpRetryEvents:
              - server-error
            maxRetries: 1
            perRetryTimeout:
              unit: s
              value: 15
          action:
            weightedTargets:
              - virtualNode: ${servicebAwsAppmeshVirtualNode.name}
                weight: 100
TCP Routing
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const serviceb = new aws.appmesh.Route("serviceb", {
    name: "serviceB-route",
    meshName: simple.id,
    virtualRouterName: servicebAwsAppmeshVirtualRouter.name,
    spec: {
        tcpRoute: {
            action: {
                weightedTargets: [{
                    virtualNode: serviceb1.name,
                    weight: 100,
                }],
            },
        },
    },
});
import pulumi
import pulumi_aws as aws
serviceb = aws.appmesh.Route("serviceb",
    name="serviceB-route",
    mesh_name=simple["id"],
    virtual_router_name=serviceb_aws_appmesh_virtual_router["name"],
    spec={
        "tcp_route": {
            "action": {
                "weighted_targets": [{
                    "virtual_node": serviceb1["name"],
                    "weight": 100,
                }],
            },
        },
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appmesh.NewRoute(ctx, "serviceb", &appmesh.RouteArgs{
			Name:              pulumi.String("serviceB-route"),
			MeshName:          pulumi.Any(simple.Id),
			VirtualRouterName: pulumi.Any(servicebAwsAppmeshVirtualRouter.Name),
			Spec: &appmesh.RouteSpecArgs{
				TcpRoute: &appmesh.RouteSpecTcpRouteArgs{
					Action: &appmesh.RouteSpecTcpRouteActionArgs{
						WeightedTargets: appmesh.RouteSpecTcpRouteActionWeightedTargetArray{
							&appmesh.RouteSpecTcpRouteActionWeightedTargetArgs{
								VirtualNode: pulumi.Any(serviceb1.Name),
								Weight:      pulumi.Int(100),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var serviceb = new Aws.AppMesh.Route("serviceb", new()
    {
        Name = "serviceB-route",
        MeshName = simple.Id,
        VirtualRouterName = servicebAwsAppmeshVirtualRouter.Name,
        Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
        {
            TcpRoute = new Aws.AppMesh.Inputs.RouteSpecTcpRouteArgs
            {
                Action = new Aws.AppMesh.Inputs.RouteSpecTcpRouteActionArgs
                {
                    WeightedTargets = new[]
                    {
                        new Aws.AppMesh.Inputs.RouteSpecTcpRouteActionWeightedTargetArgs
                        {
                            VirtualNode = serviceb1.Name,
                            Weight = 100,
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appmesh.Route;
import com.pulumi.aws.appmesh.RouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecTcpRouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecTcpRouteActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var serviceb = new Route("serviceb", RouteArgs.builder()
            .name("serviceB-route")
            .meshName(simple.id())
            .virtualRouterName(servicebAwsAppmeshVirtualRouter.name())
            .spec(RouteSpecArgs.builder()
                .tcpRoute(RouteSpecTcpRouteArgs.builder()
                    .action(RouteSpecTcpRouteActionArgs.builder()
                        .weightedTargets(RouteSpecTcpRouteActionWeightedTargetArgs.builder()
                            .virtualNode(serviceb1.name())
                            .weight(100)
                            .build())
                        .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  serviceb:
    type: aws:appmesh:Route
    properties:
      name: serviceB-route
      meshName: ${simple.id}
      virtualRouterName: ${servicebAwsAppmeshVirtualRouter.name}
      spec:
        tcpRoute:
          action:
            weightedTargets:
              - virtualNode: ${serviceb1.name}
                weight: 100
Create Route Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Route(name: string, args: RouteArgs, opts?: CustomResourceOptions);@overload
def Route(resource_name: str,
          args: RouteArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Route(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          mesh_name: Optional[str] = None,
          spec: Optional[RouteSpecArgs] = None,
          virtual_router_name: Optional[str] = None,
          mesh_owner: Optional[str] = None,
          name: Optional[str] = None,
          tags: Optional[Mapping[str, str]] = None)func NewRoute(ctx *Context, name string, args RouteArgs, opts ...ResourceOption) (*Route, error)public Route(string name, RouteArgs args, CustomResourceOptions? opts = null)type: aws:appmesh:Route
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteArgs
- 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 awsRouteResource = new Aws.AppMesh.Route("awsRouteResource", new()
{
    MeshName = "string",
    Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
    {
        GrpcRoute = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteArgs
        {
            Action = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteActionArgs
            {
                WeightedTargets = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecGrpcRouteActionWeightedTargetArgs
                    {
                        VirtualNode = "string",
                        Weight = 0,
                        Port = 0,
                    },
                },
            },
            Match = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteMatchArgs
            {
                Metadatas = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecGrpcRouteMatchMetadataArgs
                    {
                        Name = "string",
                        Invert = false,
                        Match = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteMatchMetadataMatchArgs
                        {
                            Exact = "string",
                            Prefix = "string",
                            Range = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteMatchMetadataMatchRangeArgs
                            {
                                End = 0,
                                Start = 0,
                            },
                            Regex = "string",
                            Suffix = "string",
                        },
                    },
                },
                MethodName = "string",
                Port = 0,
                Prefix = "string",
                ServiceName = "string",
            },
            RetryPolicy = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteRetryPolicyArgs
            {
                MaxRetries = 0,
                PerRetryTimeout = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteRetryPolicyPerRetryTimeoutArgs
                {
                    Unit = "string",
                    Value = 0,
                },
                GrpcRetryEvents = new[]
                {
                    "string",
                },
                HttpRetryEvents = new[]
                {
                    "string",
                },
                TcpRetryEvents = new[]
                {
                    "string",
                },
            },
            Timeout = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteTimeoutArgs
            {
                Idle = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteTimeoutIdleArgs
                {
                    Unit = "string",
                    Value = 0,
                },
                PerRequest = new Aws.AppMesh.Inputs.RouteSpecGrpcRouteTimeoutPerRequestArgs
                {
                    Unit = "string",
                    Value = 0,
                },
            },
        },
        Http2Route = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteArgs
        {
            Action = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteActionArgs
            {
                WeightedTargets = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecHttp2RouteActionWeightedTargetArgs
                    {
                        VirtualNode = "string",
                        Weight = 0,
                        Port = 0,
                    },
                },
            },
            Match = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteMatchArgs
            {
                Headers = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecHttp2RouteMatchHeaderArgs
                    {
                        Name = "string",
                        Invert = false,
                        Match = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteMatchHeaderMatchArgs
                        {
                            Exact = "string",
                            Prefix = "string",
                            Range = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteMatchHeaderMatchRangeArgs
                            {
                                End = 0,
                                Start = 0,
                            },
                            Regex = "string",
                            Suffix = "string",
                        },
                    },
                },
                Method = "string",
                Path = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteMatchPathArgs
                {
                    Exact = "string",
                    Regex = "string",
                },
                Port = 0,
                Prefix = "string",
                QueryParameters = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecHttp2RouteMatchQueryParameterArgs
                    {
                        Name = "string",
                        Match = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteMatchQueryParameterMatchArgs
                        {
                            Exact = "string",
                        },
                    },
                },
                Scheme = "string",
            },
            RetryPolicy = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteRetryPolicyArgs
            {
                MaxRetries = 0,
                PerRetryTimeout = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs
                {
                    Unit = "string",
                    Value = 0,
                },
                HttpRetryEvents = new[]
                {
                    "string",
                },
                TcpRetryEvents = new[]
                {
                    "string",
                },
            },
            Timeout = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteTimeoutArgs
            {
                Idle = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteTimeoutIdleArgs
                {
                    Unit = "string",
                    Value = 0,
                },
                PerRequest = new Aws.AppMesh.Inputs.RouteSpecHttp2RouteTimeoutPerRequestArgs
                {
                    Unit = "string",
                    Value = 0,
                },
            },
        },
        HttpRoute = new Aws.AppMesh.Inputs.RouteSpecHttpRouteArgs
        {
            Action = new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionArgs
            {
                WeightedTargets = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionWeightedTargetArgs
                    {
                        VirtualNode = "string",
                        Weight = 0,
                        Port = 0,
                    },
                },
            },
            Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchArgs
            {
                Headers = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchHeaderArgs
                    {
                        Name = "string",
                        Invert = false,
                        Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchHeaderMatchArgs
                        {
                            Exact = "string",
                            Prefix = "string",
                            Range = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchHeaderMatchRangeArgs
                            {
                                End = 0,
                                Start = 0,
                            },
                            Regex = "string",
                            Suffix = "string",
                        },
                    },
                },
                Method = "string",
                Path = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchPathArgs
                {
                    Exact = "string",
                    Regex = "string",
                },
                Port = 0,
                Prefix = "string",
                QueryParameters = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchQueryParameterArgs
                    {
                        Name = "string",
                        Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchQueryParameterMatchArgs
                        {
                            Exact = "string",
                        },
                    },
                },
                Scheme = "string",
            },
            RetryPolicy = new Aws.AppMesh.Inputs.RouteSpecHttpRouteRetryPolicyArgs
            {
                MaxRetries = 0,
                PerRetryTimeout = new Aws.AppMesh.Inputs.RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs
                {
                    Unit = "string",
                    Value = 0,
                },
                HttpRetryEvents = new[]
                {
                    "string",
                },
                TcpRetryEvents = new[]
                {
                    "string",
                },
            },
            Timeout = new Aws.AppMesh.Inputs.RouteSpecHttpRouteTimeoutArgs
            {
                Idle = new Aws.AppMesh.Inputs.RouteSpecHttpRouteTimeoutIdleArgs
                {
                    Unit = "string",
                    Value = 0,
                },
                PerRequest = new Aws.AppMesh.Inputs.RouteSpecHttpRouteTimeoutPerRequestArgs
                {
                    Unit = "string",
                    Value = 0,
                },
            },
        },
        Priority = 0,
        TcpRoute = new Aws.AppMesh.Inputs.RouteSpecTcpRouteArgs
        {
            Action = new Aws.AppMesh.Inputs.RouteSpecTcpRouteActionArgs
            {
                WeightedTargets = new[]
                {
                    new Aws.AppMesh.Inputs.RouteSpecTcpRouteActionWeightedTargetArgs
                    {
                        VirtualNode = "string",
                        Weight = 0,
                        Port = 0,
                    },
                },
            },
            Match = new Aws.AppMesh.Inputs.RouteSpecTcpRouteMatchArgs
            {
                Port = 0,
            },
            Timeout = new Aws.AppMesh.Inputs.RouteSpecTcpRouteTimeoutArgs
            {
                Idle = new Aws.AppMesh.Inputs.RouteSpecTcpRouteTimeoutIdleArgs
                {
                    Unit = "string",
                    Value = 0,
                },
            },
        },
    },
    VirtualRouterName = "string",
    MeshOwner = "string",
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := appmesh.NewRoute(ctx, "awsRouteResource", &appmesh.RouteArgs{
	MeshName: pulumi.String("string"),
	Spec: &appmesh.RouteSpecArgs{
		GrpcRoute: &appmesh.RouteSpecGrpcRouteArgs{
			Action: &appmesh.RouteSpecGrpcRouteActionArgs{
				WeightedTargets: appmesh.RouteSpecGrpcRouteActionWeightedTargetArray{
					&appmesh.RouteSpecGrpcRouteActionWeightedTargetArgs{
						VirtualNode: pulumi.String("string"),
						Weight:      pulumi.Int(0),
						Port:        pulumi.Int(0),
					},
				},
			},
			Match: &appmesh.RouteSpecGrpcRouteMatchArgs{
				Metadatas: appmesh.RouteSpecGrpcRouteMatchMetadataArray{
					&appmesh.RouteSpecGrpcRouteMatchMetadataArgs{
						Name:   pulumi.String("string"),
						Invert: pulumi.Bool(false),
						Match: &appmesh.RouteSpecGrpcRouteMatchMetadataMatchArgs{
							Exact:  pulumi.String("string"),
							Prefix: pulumi.String("string"),
							Range: &appmesh.RouteSpecGrpcRouteMatchMetadataMatchRangeArgs{
								End:   pulumi.Int(0),
								Start: pulumi.Int(0),
							},
							Regex:  pulumi.String("string"),
							Suffix: pulumi.String("string"),
						},
					},
				},
				MethodName:  pulumi.String("string"),
				Port:        pulumi.Int(0),
				Prefix:      pulumi.String("string"),
				ServiceName: pulumi.String("string"),
			},
			RetryPolicy: &appmesh.RouteSpecGrpcRouteRetryPolicyArgs{
				MaxRetries: pulumi.Int(0),
				PerRetryTimeout: &appmesh.RouteSpecGrpcRouteRetryPolicyPerRetryTimeoutArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
				GrpcRetryEvents: pulumi.StringArray{
					pulumi.String("string"),
				},
				HttpRetryEvents: pulumi.StringArray{
					pulumi.String("string"),
				},
				TcpRetryEvents: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			Timeout: &appmesh.RouteSpecGrpcRouteTimeoutArgs{
				Idle: &appmesh.RouteSpecGrpcRouteTimeoutIdleArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
				PerRequest: &appmesh.RouteSpecGrpcRouteTimeoutPerRequestArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
			},
		},
		Http2Route: &appmesh.RouteSpecHttp2RouteArgs{
			Action: &appmesh.RouteSpecHttp2RouteActionArgs{
				WeightedTargets: appmesh.RouteSpecHttp2RouteActionWeightedTargetArray{
					&appmesh.RouteSpecHttp2RouteActionWeightedTargetArgs{
						VirtualNode: pulumi.String("string"),
						Weight:      pulumi.Int(0),
						Port:        pulumi.Int(0),
					},
				},
			},
			Match: &appmesh.RouteSpecHttp2RouteMatchArgs{
				Headers: appmesh.RouteSpecHttp2RouteMatchHeaderArray{
					&appmesh.RouteSpecHttp2RouteMatchHeaderArgs{
						Name:   pulumi.String("string"),
						Invert: pulumi.Bool(false),
						Match: &appmesh.RouteSpecHttp2RouteMatchHeaderMatchArgs{
							Exact:  pulumi.String("string"),
							Prefix: pulumi.String("string"),
							Range: &appmesh.RouteSpecHttp2RouteMatchHeaderMatchRangeArgs{
								End:   pulumi.Int(0),
								Start: pulumi.Int(0),
							},
							Regex:  pulumi.String("string"),
							Suffix: pulumi.String("string"),
						},
					},
				},
				Method: pulumi.String("string"),
				Path: &appmesh.RouteSpecHttp2RouteMatchPathArgs{
					Exact: pulumi.String("string"),
					Regex: pulumi.String("string"),
				},
				Port:   pulumi.Int(0),
				Prefix: pulumi.String("string"),
				QueryParameters: appmesh.RouteSpecHttp2RouteMatchQueryParameterArray{
					&appmesh.RouteSpecHttp2RouteMatchQueryParameterArgs{
						Name: pulumi.String("string"),
						Match: &appmesh.RouteSpecHttp2RouteMatchQueryParameterMatchArgs{
							Exact: pulumi.String("string"),
						},
					},
				},
				Scheme: pulumi.String("string"),
			},
			RetryPolicy: &appmesh.RouteSpecHttp2RouteRetryPolicyArgs{
				MaxRetries: pulumi.Int(0),
				PerRetryTimeout: &appmesh.RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
				HttpRetryEvents: pulumi.StringArray{
					pulumi.String("string"),
				},
				TcpRetryEvents: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			Timeout: &appmesh.RouteSpecHttp2RouteTimeoutArgs{
				Idle: &appmesh.RouteSpecHttp2RouteTimeoutIdleArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
				PerRequest: &appmesh.RouteSpecHttp2RouteTimeoutPerRequestArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
			},
		},
		HttpRoute: &appmesh.RouteSpecHttpRouteArgs{
			Action: &appmesh.RouteSpecHttpRouteActionArgs{
				WeightedTargets: appmesh.RouteSpecHttpRouteActionWeightedTargetArray{
					&appmesh.RouteSpecHttpRouteActionWeightedTargetArgs{
						VirtualNode: pulumi.String("string"),
						Weight:      pulumi.Int(0),
						Port:        pulumi.Int(0),
					},
				},
			},
			Match: &appmesh.RouteSpecHttpRouteMatchArgs{
				Headers: appmesh.RouteSpecHttpRouteMatchHeaderArray{
					&appmesh.RouteSpecHttpRouteMatchHeaderArgs{
						Name:   pulumi.String("string"),
						Invert: pulumi.Bool(false),
						Match: &appmesh.RouteSpecHttpRouteMatchHeaderMatchArgs{
							Exact:  pulumi.String("string"),
							Prefix: pulumi.String("string"),
							Range: &appmesh.RouteSpecHttpRouteMatchHeaderMatchRangeArgs{
								End:   pulumi.Int(0),
								Start: pulumi.Int(0),
							},
							Regex:  pulumi.String("string"),
							Suffix: pulumi.String("string"),
						},
					},
				},
				Method: pulumi.String("string"),
				Path: &appmesh.RouteSpecHttpRouteMatchPathArgs{
					Exact: pulumi.String("string"),
					Regex: pulumi.String("string"),
				},
				Port:   pulumi.Int(0),
				Prefix: pulumi.String("string"),
				QueryParameters: appmesh.RouteSpecHttpRouteMatchQueryParameterArray{
					&appmesh.RouteSpecHttpRouteMatchQueryParameterArgs{
						Name: pulumi.String("string"),
						Match: &appmesh.RouteSpecHttpRouteMatchQueryParameterMatchArgs{
							Exact: pulumi.String("string"),
						},
					},
				},
				Scheme: pulumi.String("string"),
			},
			RetryPolicy: &appmesh.RouteSpecHttpRouteRetryPolicyArgs{
				MaxRetries: pulumi.Int(0),
				PerRetryTimeout: &appmesh.RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
				HttpRetryEvents: pulumi.StringArray{
					pulumi.String("string"),
				},
				TcpRetryEvents: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			Timeout: &appmesh.RouteSpecHttpRouteTimeoutArgs{
				Idle: &appmesh.RouteSpecHttpRouteTimeoutIdleArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
				PerRequest: &appmesh.RouteSpecHttpRouteTimeoutPerRequestArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
			},
		},
		Priority: pulumi.Int(0),
		TcpRoute: &appmesh.RouteSpecTcpRouteArgs{
			Action: &appmesh.RouteSpecTcpRouteActionArgs{
				WeightedTargets: appmesh.RouteSpecTcpRouteActionWeightedTargetArray{
					&appmesh.RouteSpecTcpRouteActionWeightedTargetArgs{
						VirtualNode: pulumi.String("string"),
						Weight:      pulumi.Int(0),
						Port:        pulumi.Int(0),
					},
				},
			},
			Match: &appmesh.RouteSpecTcpRouteMatchArgs{
				Port: pulumi.Int(0),
			},
			Timeout: &appmesh.RouteSpecTcpRouteTimeoutArgs{
				Idle: &appmesh.RouteSpecTcpRouteTimeoutIdleArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
			},
		},
	},
	VirtualRouterName: pulumi.String("string"),
	MeshOwner:         pulumi.String("string"),
	Name:              pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var awsRouteResource = new Route("awsRouteResource", RouteArgs.builder()
    .meshName("string")
    .spec(RouteSpecArgs.builder()
        .grpcRoute(RouteSpecGrpcRouteArgs.builder()
            .action(RouteSpecGrpcRouteActionArgs.builder()
                .weightedTargets(RouteSpecGrpcRouteActionWeightedTargetArgs.builder()
                    .virtualNode("string")
                    .weight(0)
                    .port(0)
                    .build())
                .build())
            .match(RouteSpecGrpcRouteMatchArgs.builder()
                .metadatas(RouteSpecGrpcRouteMatchMetadataArgs.builder()
                    .name("string")
                    .invert(false)
                    .match(RouteSpecGrpcRouteMatchMetadataMatchArgs.builder()
                        .exact("string")
                        .prefix("string")
                        .range(RouteSpecGrpcRouteMatchMetadataMatchRangeArgs.builder()
                            .end(0)
                            .start(0)
                            .build())
                        .regex("string")
                        .suffix("string")
                        .build())
                    .build())
                .methodName("string")
                .port(0)
                .prefix("string")
                .serviceName("string")
                .build())
            .retryPolicy(RouteSpecGrpcRouteRetryPolicyArgs.builder()
                .maxRetries(0)
                .perRetryTimeout(RouteSpecGrpcRouteRetryPolicyPerRetryTimeoutArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .grpcRetryEvents("string")
                .httpRetryEvents("string")
                .tcpRetryEvents("string")
                .build())
            .timeout(RouteSpecGrpcRouteTimeoutArgs.builder()
                .idle(RouteSpecGrpcRouteTimeoutIdleArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .perRequest(RouteSpecGrpcRouteTimeoutPerRequestArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .build())
            .build())
        .http2Route(RouteSpecHttp2RouteArgs.builder()
            .action(RouteSpecHttp2RouteActionArgs.builder()
                .weightedTargets(RouteSpecHttp2RouteActionWeightedTargetArgs.builder()
                    .virtualNode("string")
                    .weight(0)
                    .port(0)
                    .build())
                .build())
            .match(RouteSpecHttp2RouteMatchArgs.builder()
                .headers(RouteSpecHttp2RouteMatchHeaderArgs.builder()
                    .name("string")
                    .invert(false)
                    .match(RouteSpecHttp2RouteMatchHeaderMatchArgs.builder()
                        .exact("string")
                        .prefix("string")
                        .range(RouteSpecHttp2RouteMatchHeaderMatchRangeArgs.builder()
                            .end(0)
                            .start(0)
                            .build())
                        .regex("string")
                        .suffix("string")
                        .build())
                    .build())
                .method("string")
                .path(RouteSpecHttp2RouteMatchPathArgs.builder()
                    .exact("string")
                    .regex("string")
                    .build())
                .port(0)
                .prefix("string")
                .queryParameters(RouteSpecHttp2RouteMatchQueryParameterArgs.builder()
                    .name("string")
                    .match(RouteSpecHttp2RouteMatchQueryParameterMatchArgs.builder()
                        .exact("string")
                        .build())
                    .build())
                .scheme("string")
                .build())
            .retryPolicy(RouteSpecHttp2RouteRetryPolicyArgs.builder()
                .maxRetries(0)
                .perRetryTimeout(RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .httpRetryEvents("string")
                .tcpRetryEvents("string")
                .build())
            .timeout(RouteSpecHttp2RouteTimeoutArgs.builder()
                .idle(RouteSpecHttp2RouteTimeoutIdleArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .perRequest(RouteSpecHttp2RouteTimeoutPerRequestArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .build())
            .build())
        .httpRoute(RouteSpecHttpRouteArgs.builder()
            .action(RouteSpecHttpRouteActionArgs.builder()
                .weightedTargets(RouteSpecHttpRouteActionWeightedTargetArgs.builder()
                    .virtualNode("string")
                    .weight(0)
                    .port(0)
                    .build())
                .build())
            .match(RouteSpecHttpRouteMatchArgs.builder()
                .headers(RouteSpecHttpRouteMatchHeaderArgs.builder()
                    .name("string")
                    .invert(false)
                    .match(RouteSpecHttpRouteMatchHeaderMatchArgs.builder()
                        .exact("string")
                        .prefix("string")
                        .range(RouteSpecHttpRouteMatchHeaderMatchRangeArgs.builder()
                            .end(0)
                            .start(0)
                            .build())
                        .regex("string")
                        .suffix("string")
                        .build())
                    .build())
                .method("string")
                .path(RouteSpecHttpRouteMatchPathArgs.builder()
                    .exact("string")
                    .regex("string")
                    .build())
                .port(0)
                .prefix("string")
                .queryParameters(RouteSpecHttpRouteMatchQueryParameterArgs.builder()
                    .name("string")
                    .match(RouteSpecHttpRouteMatchQueryParameterMatchArgs.builder()
                        .exact("string")
                        .build())
                    .build())
                .scheme("string")
                .build())
            .retryPolicy(RouteSpecHttpRouteRetryPolicyArgs.builder()
                .maxRetries(0)
                .perRetryTimeout(RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .httpRetryEvents("string")
                .tcpRetryEvents("string")
                .build())
            .timeout(RouteSpecHttpRouteTimeoutArgs.builder()
                .idle(RouteSpecHttpRouteTimeoutIdleArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .perRequest(RouteSpecHttpRouteTimeoutPerRequestArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .build())
            .build())
        .priority(0)
        .tcpRoute(RouteSpecTcpRouteArgs.builder()
            .action(RouteSpecTcpRouteActionArgs.builder()
                .weightedTargets(RouteSpecTcpRouteActionWeightedTargetArgs.builder()
                    .virtualNode("string")
                    .weight(0)
                    .port(0)
                    .build())
                .build())
            .match(RouteSpecTcpRouteMatchArgs.builder()
                .port(0)
                .build())
            .timeout(RouteSpecTcpRouteTimeoutArgs.builder()
                .idle(RouteSpecTcpRouteTimeoutIdleArgs.builder()
                    .unit("string")
                    .value(0)
                    .build())
                .build())
            .build())
        .build())
    .virtualRouterName("string")
    .meshOwner("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
aws_route_resource = aws.appmesh.Route("awsRouteResource",
    mesh_name="string",
    spec={
        "grpc_route": {
            "action": {
                "weighted_targets": [{
                    "virtual_node": "string",
                    "weight": 0,
                    "port": 0,
                }],
            },
            "match": {
                "metadatas": [{
                    "name": "string",
                    "invert": False,
                    "match": {
                        "exact": "string",
                        "prefix": "string",
                        "range": {
                            "end": 0,
                            "start": 0,
                        },
                        "regex": "string",
                        "suffix": "string",
                    },
                }],
                "method_name": "string",
                "port": 0,
                "prefix": "string",
                "service_name": "string",
            },
            "retry_policy": {
                "max_retries": 0,
                "per_retry_timeout": {
                    "unit": "string",
                    "value": 0,
                },
                "grpc_retry_events": ["string"],
                "http_retry_events": ["string"],
                "tcp_retry_events": ["string"],
            },
            "timeout": {
                "idle": {
                    "unit": "string",
                    "value": 0,
                },
                "per_request": {
                    "unit": "string",
                    "value": 0,
                },
            },
        },
        "http2_route": {
            "action": {
                "weighted_targets": [{
                    "virtual_node": "string",
                    "weight": 0,
                    "port": 0,
                }],
            },
            "match": {
                "headers": [{
                    "name": "string",
                    "invert": False,
                    "match": {
                        "exact": "string",
                        "prefix": "string",
                        "range": {
                            "end": 0,
                            "start": 0,
                        },
                        "regex": "string",
                        "suffix": "string",
                    },
                }],
                "method": "string",
                "path": {
                    "exact": "string",
                    "regex": "string",
                },
                "port": 0,
                "prefix": "string",
                "query_parameters": [{
                    "name": "string",
                    "match": {
                        "exact": "string",
                    },
                }],
                "scheme": "string",
            },
            "retry_policy": {
                "max_retries": 0,
                "per_retry_timeout": {
                    "unit": "string",
                    "value": 0,
                },
                "http_retry_events": ["string"],
                "tcp_retry_events": ["string"],
            },
            "timeout": {
                "idle": {
                    "unit": "string",
                    "value": 0,
                },
                "per_request": {
                    "unit": "string",
                    "value": 0,
                },
            },
        },
        "http_route": {
            "action": {
                "weighted_targets": [{
                    "virtual_node": "string",
                    "weight": 0,
                    "port": 0,
                }],
            },
            "match": {
                "headers": [{
                    "name": "string",
                    "invert": False,
                    "match": {
                        "exact": "string",
                        "prefix": "string",
                        "range": {
                            "end": 0,
                            "start": 0,
                        },
                        "regex": "string",
                        "suffix": "string",
                    },
                }],
                "method": "string",
                "path": {
                    "exact": "string",
                    "regex": "string",
                },
                "port": 0,
                "prefix": "string",
                "query_parameters": [{
                    "name": "string",
                    "match": {
                        "exact": "string",
                    },
                }],
                "scheme": "string",
            },
            "retry_policy": {
                "max_retries": 0,
                "per_retry_timeout": {
                    "unit": "string",
                    "value": 0,
                },
                "http_retry_events": ["string"],
                "tcp_retry_events": ["string"],
            },
            "timeout": {
                "idle": {
                    "unit": "string",
                    "value": 0,
                },
                "per_request": {
                    "unit": "string",
                    "value": 0,
                },
            },
        },
        "priority": 0,
        "tcp_route": {
            "action": {
                "weighted_targets": [{
                    "virtual_node": "string",
                    "weight": 0,
                    "port": 0,
                }],
            },
            "match": {
                "port": 0,
            },
            "timeout": {
                "idle": {
                    "unit": "string",
                    "value": 0,
                },
            },
        },
    },
    virtual_router_name="string",
    mesh_owner="string",
    name="string",
    tags={
        "string": "string",
    })
const awsRouteResource = new aws.appmesh.Route("awsRouteResource", {
    meshName: "string",
    spec: {
        grpcRoute: {
            action: {
                weightedTargets: [{
                    virtualNode: "string",
                    weight: 0,
                    port: 0,
                }],
            },
            match: {
                metadatas: [{
                    name: "string",
                    invert: false,
                    match: {
                        exact: "string",
                        prefix: "string",
                        range: {
                            end: 0,
                            start: 0,
                        },
                        regex: "string",
                        suffix: "string",
                    },
                }],
                methodName: "string",
                port: 0,
                prefix: "string",
                serviceName: "string",
            },
            retryPolicy: {
                maxRetries: 0,
                perRetryTimeout: {
                    unit: "string",
                    value: 0,
                },
                grpcRetryEvents: ["string"],
                httpRetryEvents: ["string"],
                tcpRetryEvents: ["string"],
            },
            timeout: {
                idle: {
                    unit: "string",
                    value: 0,
                },
                perRequest: {
                    unit: "string",
                    value: 0,
                },
            },
        },
        http2Route: {
            action: {
                weightedTargets: [{
                    virtualNode: "string",
                    weight: 0,
                    port: 0,
                }],
            },
            match: {
                headers: [{
                    name: "string",
                    invert: false,
                    match: {
                        exact: "string",
                        prefix: "string",
                        range: {
                            end: 0,
                            start: 0,
                        },
                        regex: "string",
                        suffix: "string",
                    },
                }],
                method: "string",
                path: {
                    exact: "string",
                    regex: "string",
                },
                port: 0,
                prefix: "string",
                queryParameters: [{
                    name: "string",
                    match: {
                        exact: "string",
                    },
                }],
                scheme: "string",
            },
            retryPolicy: {
                maxRetries: 0,
                perRetryTimeout: {
                    unit: "string",
                    value: 0,
                },
                httpRetryEvents: ["string"],
                tcpRetryEvents: ["string"],
            },
            timeout: {
                idle: {
                    unit: "string",
                    value: 0,
                },
                perRequest: {
                    unit: "string",
                    value: 0,
                },
            },
        },
        httpRoute: {
            action: {
                weightedTargets: [{
                    virtualNode: "string",
                    weight: 0,
                    port: 0,
                }],
            },
            match: {
                headers: [{
                    name: "string",
                    invert: false,
                    match: {
                        exact: "string",
                        prefix: "string",
                        range: {
                            end: 0,
                            start: 0,
                        },
                        regex: "string",
                        suffix: "string",
                    },
                }],
                method: "string",
                path: {
                    exact: "string",
                    regex: "string",
                },
                port: 0,
                prefix: "string",
                queryParameters: [{
                    name: "string",
                    match: {
                        exact: "string",
                    },
                }],
                scheme: "string",
            },
            retryPolicy: {
                maxRetries: 0,
                perRetryTimeout: {
                    unit: "string",
                    value: 0,
                },
                httpRetryEvents: ["string"],
                tcpRetryEvents: ["string"],
            },
            timeout: {
                idle: {
                    unit: "string",
                    value: 0,
                },
                perRequest: {
                    unit: "string",
                    value: 0,
                },
            },
        },
        priority: 0,
        tcpRoute: {
            action: {
                weightedTargets: [{
                    virtualNode: "string",
                    weight: 0,
                    port: 0,
                }],
            },
            match: {
                port: 0,
            },
            timeout: {
                idle: {
                    unit: "string",
                    value: 0,
                },
            },
        },
    },
    virtualRouterName: "string",
    meshOwner: "string",
    name: "string",
    tags: {
        string: "string",
    },
});
type: aws:appmesh:Route
properties:
    meshName: string
    meshOwner: string
    name: string
    spec:
        grpcRoute:
            action:
                weightedTargets:
                    - port: 0
                      virtualNode: string
                      weight: 0
            match:
                metadatas:
                    - invert: false
                      match:
                        exact: string
                        prefix: string
                        range:
                            end: 0
                            start: 0
                        regex: string
                        suffix: string
                      name: string
                methodName: string
                port: 0
                prefix: string
                serviceName: string
            retryPolicy:
                grpcRetryEvents:
                    - string
                httpRetryEvents:
                    - string
                maxRetries: 0
                perRetryTimeout:
                    unit: string
                    value: 0
                tcpRetryEvents:
                    - string
            timeout:
                idle:
                    unit: string
                    value: 0
                perRequest:
                    unit: string
                    value: 0
        http2Route:
            action:
                weightedTargets:
                    - port: 0
                      virtualNode: string
                      weight: 0
            match:
                headers:
                    - invert: false
                      match:
                        exact: string
                        prefix: string
                        range:
                            end: 0
                            start: 0
                        regex: string
                        suffix: string
                      name: string
                method: string
                path:
                    exact: string
                    regex: string
                port: 0
                prefix: string
                queryParameters:
                    - match:
                        exact: string
                      name: string
                scheme: string
            retryPolicy:
                httpRetryEvents:
                    - string
                maxRetries: 0
                perRetryTimeout:
                    unit: string
                    value: 0
                tcpRetryEvents:
                    - string
            timeout:
                idle:
                    unit: string
                    value: 0
                perRequest:
                    unit: string
                    value: 0
        httpRoute:
            action:
                weightedTargets:
                    - port: 0
                      virtualNode: string
                      weight: 0
            match:
                headers:
                    - invert: false
                      match:
                        exact: string
                        prefix: string
                        range:
                            end: 0
                            start: 0
                        regex: string
                        suffix: string
                      name: string
                method: string
                path:
                    exact: string
                    regex: string
                port: 0
                prefix: string
                queryParameters:
                    - match:
                        exact: string
                      name: string
                scheme: string
            retryPolicy:
                httpRetryEvents:
                    - string
                maxRetries: 0
                perRetryTimeout:
                    unit: string
                    value: 0
                tcpRetryEvents:
                    - string
            timeout:
                idle:
                    unit: string
                    value: 0
                perRequest:
                    unit: string
                    value: 0
        priority: 0
        tcpRoute:
            action:
                weightedTargets:
                    - port: 0
                      virtualNode: string
                      weight: 0
            match:
                port: 0
            timeout:
                idle:
                    unit: string
                    value: 0
    tags:
        string: string
    virtualRouterName: string
Route 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 Route resource accepts the following input properties:
- MeshName string
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- Spec
RouteSpec 
- Route specification to apply.
- VirtualRouter stringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- MeshOwner string
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- Name string
- Name to use for the route. Must be between 1 and 255 characters in length.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- MeshName string
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- Spec
RouteSpec Args 
- Route specification to apply.
- VirtualRouter stringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- MeshOwner string
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- Name string
- Name to use for the route. Must be between 1 and 255 characters in length.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- meshName String
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- spec
RouteSpec 
- Route specification to apply.
- virtualRouter StringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- meshOwner String
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name String
- Name to use for the route. Must be between 1 and 255 characters in length.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- meshName string
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- spec
RouteSpec 
- Route specification to apply.
- virtualRouter stringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- meshOwner string
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name string
- Name to use for the route. Must be between 1 and 255 characters in length.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- mesh_name str
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- spec
RouteSpec Args 
- Route specification to apply.
- virtual_router_ strname 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- mesh_owner str
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name str
- Name to use for the route. Must be between 1 and 255 characters in length.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- meshName String
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- spec Property Map
- Route specification to apply.
- virtualRouter StringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- meshOwner String
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name String
- Name to use for the route. Must be between 1 and 255 characters in length.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Route resource produces the following output properties:
- Arn string
- ARN of the route.
- CreatedDate string
- Creation date of the route.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringDate 
- Last update date of the route.
- ResourceOwner string
- Resource owner's AWS account ID.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- ARN of the route.
- CreatedDate string
- Creation date of the route.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringDate 
- Last update date of the route.
- ResourceOwner string
- Resource owner's AWS account ID.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the route.
- createdDate String
- Creation date of the route.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringDate 
- Last update date of the route.
- resourceOwner String
- Resource owner's AWS account ID.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- ARN of the route.
- createdDate string
- Creation date of the route.
- id string
- The provider-assigned unique ID for this managed resource.
- lastUpdated stringDate 
- Last update date of the route.
- resourceOwner string
- Resource owner's AWS account ID.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- ARN of the route.
- created_date str
- Creation date of the route.
- id str
- The provider-assigned unique ID for this managed resource.
- last_updated_ strdate 
- Last update date of the route.
- resource_owner str
- Resource owner's AWS account ID.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the route.
- createdDate String
- Creation date of the route.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringDate 
- Last update date of the route.
- resourceOwner String
- Resource owner's AWS account ID.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing Route Resource
Get an existing Route resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RouteState, opts?: CustomResourceOptions): Route@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        created_date: Optional[str] = None,
        last_updated_date: Optional[str] = None,
        mesh_name: Optional[str] = None,
        mesh_owner: Optional[str] = None,
        name: Optional[str] = None,
        resource_owner: Optional[str] = None,
        spec: Optional[RouteSpecArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        virtual_router_name: Optional[str] = None) -> Routefunc GetRoute(ctx *Context, name string, id IDInput, state *RouteState, opts ...ResourceOption) (*Route, error)public static Route Get(string name, Input<string> id, RouteState? state, CustomResourceOptions? opts = null)public static Route get(String name, Output<String> id, RouteState state, CustomResourceOptions options)resources:  _:    type: aws:appmesh:Route    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the route.
- CreatedDate string
- Creation date of the route.
- LastUpdated stringDate 
- Last update date of the route.
- MeshName string
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- MeshOwner string
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- Name string
- Name to use for the route. Must be between 1 and 255 characters in length.
- ResourceOwner string
- Resource owner's AWS account ID.
- Spec
RouteSpec 
- Route specification to apply.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- VirtualRouter stringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- Arn string
- ARN of the route.
- CreatedDate string
- Creation date of the route.
- LastUpdated stringDate 
- Last update date of the route.
- MeshName string
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- MeshOwner string
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- Name string
- Name to use for the route. Must be between 1 and 255 characters in length.
- ResourceOwner string
- Resource owner's AWS account ID.
- Spec
RouteSpec Args 
- Route specification to apply.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- VirtualRouter stringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- arn String
- ARN of the route.
- createdDate String
- Creation date of the route.
- lastUpdated StringDate 
- Last update date of the route.
- meshName String
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- meshOwner String
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name String
- Name to use for the route. Must be between 1 and 255 characters in length.
- resourceOwner String
- Resource owner's AWS account ID.
- spec
RouteSpec 
- Route specification to apply.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- virtualRouter StringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- arn string
- ARN of the route.
- createdDate string
- Creation date of the route.
- lastUpdated stringDate 
- Last update date of the route.
- meshName string
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- meshOwner string
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name string
- Name to use for the route. Must be between 1 and 255 characters in length.
- resourceOwner string
- Resource owner's AWS account ID.
- spec
RouteSpec 
- Route specification to apply.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- virtualRouter stringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- arn str
- ARN of the route.
- created_date str
- Creation date of the route.
- last_updated_ strdate 
- Last update date of the route.
- mesh_name str
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- mesh_owner str
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name str
- Name to use for the route. Must be between 1 and 255 characters in length.
- resource_owner str
- Resource owner's AWS account ID.
- spec
RouteSpec Args 
- Route specification to apply.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- virtual_router_ strname 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- arn String
- ARN of the route.
- createdDate String
- Creation date of the route.
- lastUpdated StringDate 
- Last update date of the route.
- meshName String
- Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- meshOwner String
- AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
- name String
- Name to use for the route. Must be between 1 and 255 characters in length.
- resourceOwner String
- Resource owner's AWS account ID.
- spec Property Map
- Route specification to apply.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- virtualRouter StringName 
- Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
Supporting Types
RouteSpec, RouteSpecArgs    
- GrpcRoute RouteSpec Grpc Route 
- GRPC routing information for the route.
- Http2Route
RouteSpec Http2Route 
- HTTP/2 routing information for the route.
- HttpRoute RouteSpec Http Route 
- HTTP routing information for the route.
- Priority int
- Priority for the route, between 0and1000. Routes are matched based on the specified value, where0is the highest priority.
- TcpRoute RouteSpec Tcp Route 
- TCP routing information for the route.
- GrpcRoute RouteSpec Grpc Route 
- GRPC routing information for the route.
- Http2Route
RouteSpec Http2Route 
- HTTP/2 routing information for the route.
- HttpRoute RouteSpec Http Route 
- HTTP routing information for the route.
- Priority int
- Priority for the route, between 0and1000. Routes are matched based on the specified value, where0is the highest priority.
- TcpRoute RouteSpec Tcp Route 
- TCP routing information for the route.
- grpcRoute RouteSpec Grpc Route 
- GRPC routing information for the route.
- http2Route
RouteSpec Http2Route 
- HTTP/2 routing information for the route.
- httpRoute RouteSpec Http Route 
- HTTP routing information for the route.
- priority Integer
- Priority for the route, between 0and1000. Routes are matched based on the specified value, where0is the highest priority.
- tcpRoute RouteSpec Tcp Route 
- TCP routing information for the route.
- grpcRoute RouteSpec Grpc Route 
- GRPC routing information for the route.
- http2Route
RouteSpec Http2Route 
- HTTP/2 routing information for the route.
- httpRoute RouteSpec Http Route 
- HTTP routing information for the route.
- priority number
- Priority for the route, between 0and1000. Routes are matched based on the specified value, where0is the highest priority.
- tcpRoute RouteSpec Tcp Route 
- TCP routing information for the route.
- grpc_route RouteSpec Grpc Route 
- GRPC routing information for the route.
- http2_route RouteSpec Http2Route 
- HTTP/2 routing information for the route.
- http_route RouteSpec Http Route 
- HTTP routing information for the route.
- priority int
- Priority for the route, between 0and1000. Routes are matched based on the specified value, where0is the highest priority.
- tcp_route RouteSpec Tcp Route 
- TCP routing information for the route.
- grpcRoute Property Map
- GRPC routing information for the route.
- http2Route Property Map
- HTTP/2 routing information for the route.
- httpRoute Property Map
- HTTP routing information for the route.
- priority Number
- Priority for the route, between 0and1000. Routes are matched based on the specified value, where0is the highest priority.
- tcpRoute Property Map
- TCP routing information for the route.
RouteSpecGrpcRoute, RouteSpecGrpcRouteArgs        
- Action
RouteSpec Grpc Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Grpc Route Match 
- Criteria for determining an gRPC request match.
- RetryPolicy RouteSpec Grpc Route Retry Policy 
- Retry policy.
- Timeout
RouteSpec Grpc Route Timeout 
- Types of timeouts.
- Action
RouteSpec Grpc Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Grpc Route Match 
- Criteria for determining an gRPC request match.
- RetryPolicy RouteSpec Grpc Route Retry Policy 
- Retry policy.
- Timeout
RouteSpec Grpc Route Timeout 
- Types of timeouts.
- action
RouteSpec Grpc Route Action 
- Action to take if a match is determined.
- match
RouteSpec Grpc Route Match 
- Criteria for determining an gRPC request match.
- retryPolicy RouteSpec Grpc Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Grpc Route Timeout 
- Types of timeouts.
- action
RouteSpec Grpc Route Action 
- Action to take if a match is determined.
- match
RouteSpec Grpc Route Match 
- Criteria for determining an gRPC request match.
- retryPolicy RouteSpec Grpc Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Grpc Route Timeout 
- Types of timeouts.
- action
RouteSpec Grpc Route Action 
- Action to take if a match is determined.
- match
RouteSpec Grpc Route Match 
- Criteria for determining an gRPC request match.
- retry_policy RouteSpec Grpc Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Grpc Route Timeout 
- Types of timeouts.
- action Property Map
- Action to take if a match is determined.
- match Property Map
- Criteria for determining an gRPC request match.
- retryPolicy Property Map
- Retry policy.
- timeout Property Map
- Types of timeouts.
RouteSpecGrpcRouteAction, RouteSpecGrpcRouteActionArgs          
- WeightedTargets List<RouteSpec Grpc Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- WeightedTargets []RouteSpec Grpc Route Action Weighted Target 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<RouteSpec Grpc Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets RouteSpec Grpc Route Action Weighted Target[] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weighted_targets Sequence[RouteSpec Grpc Route Action Weighted Target] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<Property Map>
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
RouteSpecGrpcRouteActionWeightedTarget, RouteSpecGrpcRouteActionWeightedTargetArgs              
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Integer
- Relative weight of the weighted target. An integer between 0 and 100.
- port Integer
- The targeted port of the weighted object.
- virtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight number
- Relative weight of the weighted target. An integer between 0 and 100.
- port number
- The targeted port of the weighted object.
- virtual_node str
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Number
- Relative weight of the weighted target. An integer between 0 and 100.
- port Number
- The targeted port of the weighted object.
RouteSpecGrpcRouteMatch, RouteSpecGrpcRouteMatchArgs          
- Metadatas
List<RouteSpec Grpc Route Match Metadata> 
- Data to match from the gRPC request.
- MethodName string
- Method name to match from the request. If you specify a name, you must also specify a service_name.
- Port int
- The port number to match from the request.
- Prefix string
- ServiceName string
- Fully qualified domain name for the service to match from the request.
- Metadatas
[]RouteSpec Grpc Route Match Metadata 
- Data to match from the gRPC request.
- MethodName string
- Method name to match from the request. If you specify a name, you must also specify a service_name.
- Port int
- The port number to match from the request.
- Prefix string
- ServiceName string
- Fully qualified domain name for the service to match from the request.
- metadatas
List<RouteSpec Grpc Route Match Metadata> 
- Data to match from the gRPC request.
- methodName String
- Method name to match from the request. If you specify a name, you must also specify a service_name.
- port Integer
- The port number to match from the request.
- prefix String
- serviceName String
- Fully qualified domain name for the service to match from the request.
- metadatas
RouteSpec Grpc Route Match Metadata[] 
- Data to match from the gRPC request.
- methodName string
- Method name to match from the request. If you specify a name, you must also specify a service_name.
- port number
- The port number to match from the request.
- prefix string
- serviceName string
- Fully qualified domain name for the service to match from the request.
- metadatas
Sequence[RouteSpec Grpc Route Match Metadata] 
- Data to match from the gRPC request.
- method_name str
- Method name to match from the request. If you specify a name, you must also specify a service_name.
- port int
- The port number to match from the request.
- prefix str
- service_name str
- Fully qualified domain name for the service to match from the request.
- metadatas List<Property Map>
- Data to match from the gRPC request.
- methodName String
- Method name to match from the request. If you specify a name, you must also specify a service_name.
- port Number
- The port number to match from the request.
- prefix String
- serviceName String
- Fully qualified domain name for the service to match from the request.
RouteSpecGrpcRouteMatchMetadata, RouteSpecGrpcRouteMatchMetadataArgs            
- Name string
- Name of the route. Must be between 1 and 50 characters in length.
- Invert bool
- If true, the match is on the opposite of thematchcriteria. Default isfalse.
- Match
RouteSpec Grpc Route Match Metadata Match 
- Data to match from the request.
- Name string
- Name of the route. Must be between 1 and 50 characters in length.
- Invert bool
- If true, the match is on the opposite of thematchcriteria. Default isfalse.
- Match
RouteSpec Grpc Route Match Metadata Match 
- Data to match from the request.
- name String
- Name of the route. Must be between 1 and 50 characters in length.
- invert Boolean
- If true, the match is on the opposite of thematchcriteria. Default isfalse.
- match
RouteSpec Grpc Route Match Metadata Match 
- Data to match from the request.
- name string
- Name of the route. Must be between 1 and 50 characters in length.
- invert boolean
- If true, the match is on the opposite of thematchcriteria. Default isfalse.
- match
RouteSpec Grpc Route Match Metadata Match 
- Data to match from the request.
- name str
- Name of the route. Must be between 1 and 50 characters in length.
- invert bool
- If true, the match is on the opposite of thematchcriteria. Default isfalse.
- match
RouteSpec Grpc Route Match Metadata Match 
- Data to match from the request.
- name String
- Name of the route. Must be between 1 and 50 characters in length.
- invert Boolean
- If true, the match is on the opposite of thematchcriteria. Default isfalse.
- match Property Map
- Data to match from the request.
RouteSpecGrpcRouteMatchMetadataMatch, RouteSpecGrpcRouteMatchMetadataMatchArgs              
- Exact string
- Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length.
- Prefix string
- Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length.
- Range
RouteSpec Grpc Route Match Metadata Match Range 
- Object that specifies the range of numbers that the value sent by the client must be included in.
- Regex string
- Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length.
- Suffix string
- Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length.
- Exact string
- Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length.
- Prefix string
- Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length.
- Range
RouteSpec Grpc Route Match Metadata Match Range 
- Object that specifies the range of numbers that the value sent by the client must be included in.
- Regex string
- Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length.
- Suffix string
- Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length.
- exact String
- Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length.
- prefix String
- Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length.
- range
RouteSpec Grpc Route Match Metadata Match Range 
- Object that specifies the range of numbers that the value sent by the client must be included in.
- regex String
- Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length.
- suffix String
- Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length.
- exact string
- Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length.
- prefix string
- Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length.
- range
RouteSpec Grpc Route Match Metadata Match Range 
- Object that specifies the range of numbers that the value sent by the client must be included in.
- regex string
- Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length.
- suffix string
- Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length.
- exact str
- Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length.
- prefix str
- Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length.
- range
RouteSpec Grpc Route Match Metadata Match Range 
- Object that specifies the range of numbers that the value sent by the client must be included in.
- regex str
- Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length.
- suffix str
- Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length.
- exact String
- Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length.
- prefix String
- Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length.
- range Property Map
- Object that specifies the range of numbers that the value sent by the client must be included in.
- regex String
- Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length.
- suffix String
- Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length.
RouteSpecGrpcRouteMatchMetadataMatchRange, RouteSpecGrpcRouteMatchMetadataMatchRangeArgs                
RouteSpecGrpcRouteRetryPolicy, RouteSpecGrpcRouteRetryPolicyArgs            
- MaxRetries int
- Maximum number of retries.
- PerRetry RouteTimeout Spec Grpc Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- GrpcRetry List<string>Events 
- List of gRPC retry events.
Valid values: cancelled,deadline-exceeded,internal,resource-exhausted,unavailable.
- HttpRetry List<string>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- TcpRetry List<string>Events 
- List of TCP retry events. The only valid value is connection-error.
- MaxRetries int
- Maximum number of retries.
- PerRetry RouteTimeout Spec Grpc Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- GrpcRetry []stringEvents 
- List of gRPC retry events.
Valid values: cancelled,deadline-exceeded,internal,resource-exhausted,unavailable.
- HttpRetry []stringEvents 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- TcpRetry []stringEvents 
- List of TCP retry events. The only valid value is connection-error.
- maxRetries Integer
- Maximum number of retries.
- perRetry RouteTimeout Spec Grpc Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- grpcRetry List<String>Events 
- List of gRPC retry events.
Valid values: cancelled,deadline-exceeded,internal,resource-exhausted,unavailable.
- httpRetry List<String>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry List<String>Events 
- List of TCP retry events. The only valid value is connection-error.
- maxRetries number
- Maximum number of retries.
- perRetry RouteTimeout Spec Grpc Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- grpcRetry string[]Events 
- List of gRPC retry events.
Valid values: cancelled,deadline-exceeded,internal,resource-exhausted,unavailable.
- httpRetry string[]Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry string[]Events 
- List of TCP retry events. The only valid value is connection-error.
- max_retries int
- Maximum number of retries.
- per_retry_ Routetimeout Spec Grpc Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- grpc_retry_ Sequence[str]events 
- List of gRPC retry events.
Valid values: cancelled,deadline-exceeded,internal,resource-exhausted,unavailable.
- http_retry_ Sequence[str]events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcp_retry_ Sequence[str]events 
- List of TCP retry events. The only valid value is connection-error.
- maxRetries Number
- Maximum number of retries.
- perRetry Property MapTimeout 
- Per-retry timeout.
- grpcRetry List<String>Events 
- List of gRPC retry events.
Valid values: cancelled,deadline-exceeded,internal,resource-exhausted,unavailable.
- httpRetry List<String>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry List<String>Events 
- List of TCP retry events. The only valid value is connection-error.
RouteSpecGrpcRouteRetryPolicyPerRetryTimeout, RouteSpecGrpcRouteRetryPolicyPerRetryTimeoutArgs                  
RouteSpecGrpcRouteTimeout, RouteSpecGrpcRouteTimeoutArgs          
- Idle
RouteSpec Grpc Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- PerRequest RouteSpec Grpc Route Timeout Per Request 
- Per request timeout.
- Idle
RouteSpec Grpc Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- PerRequest RouteSpec Grpc Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Grpc Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest RouteSpec Grpc Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Grpc Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest RouteSpec Grpc Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Grpc Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- per_request RouteSpec Grpc Route Timeout Per Request 
- Per request timeout.
- idle Property Map
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest Property Map
- Per request timeout.
RouteSpecGrpcRouteTimeoutIdle, RouteSpecGrpcRouteTimeoutIdleArgs            
RouteSpecGrpcRouteTimeoutPerRequest, RouteSpecGrpcRouteTimeoutPerRequestArgs              
RouteSpecHttp2Route, RouteSpecHttp2RouteArgs      
- Action
RouteSpec Http2Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Http2Route Match 
- Criteria for determining an HTTP request match.
- RetryPolicy RouteSpec Http2Route Retry Policy 
- Retry policy.
- Timeout
RouteSpec Http2Route Timeout 
- Types of timeouts.
- Action
RouteSpec Http2Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Http2Route Match 
- Criteria for determining an HTTP request match.
- RetryPolicy RouteSpec Http2Route Retry Policy 
- Retry policy.
- Timeout
RouteSpec Http2Route Timeout 
- Types of timeouts.
- action
RouteSpec Http2Route Action 
- Action to take if a match is determined.
- match
RouteSpec Http2Route Match 
- Criteria for determining an HTTP request match.
- retryPolicy RouteSpec Http2Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Http2Route Timeout 
- Types of timeouts.
- action
RouteSpec Http2Route Action 
- Action to take if a match is determined.
- match
RouteSpec Http2Route Match 
- Criteria for determining an HTTP request match.
- retryPolicy RouteSpec Http2Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Http2Route Timeout 
- Types of timeouts.
- action
RouteSpec Http2Route Action 
- Action to take if a match is determined.
- match
RouteSpec Http2Route Match 
- Criteria for determining an HTTP request match.
- retry_policy RouteSpec Http2Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Http2Route Timeout 
- Types of timeouts.
- action Property Map
- Action to take if a match is determined.
- match Property Map
- Criteria for determining an HTTP request match.
- retryPolicy Property Map
- Retry policy.
- timeout Property Map
- Types of timeouts.
RouteSpecHttp2RouteAction, RouteSpecHttp2RouteActionArgs        
- WeightedTargets List<RouteSpec Http2Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- WeightedTargets []RouteSpec Http2Route Action Weighted Target 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<RouteSpec Http2Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets RouteSpec Http2Route Action Weighted Target[] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weighted_targets Sequence[RouteSpec Http2Route Action Weighted Target] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<Property Map>
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
RouteSpecHttp2RouteActionWeightedTarget, RouteSpecHttp2RouteActionWeightedTargetArgs            
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Integer
- Relative weight of the weighted target. An integer between 0 and 100.
- port Integer
- The targeted port of the weighted object.
- virtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight number
- Relative weight of the weighted target. An integer between 0 and 100.
- port number
- The targeted port of the weighted object.
- virtual_node str
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Number
- Relative weight of the weighted target. An integer between 0 and 100.
- port Number
- The targeted port of the weighted object.
RouteSpecHttp2RouteMatch, RouteSpecHttp2RouteMatchArgs        
- Headers
List<RouteSpec Http2Route Match Header> 
- Client request headers to match on.
- Method string
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- Path
RouteSpec Http2Route Match Path 
- Client request path to match on.
- Port int
- The port number to match from the request.
- Prefix string
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- QueryParameters List<RouteSpec Http2Route Match Query Parameter> 
- Client request query parameters to match on.
- Scheme string
- Client request header scheme to match on. Valid values: http,https.
- Headers
[]RouteSpec Http2Route Match Header 
- Client request headers to match on.
- Method string
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- Path
RouteSpec Http2Route Match Path 
- Client request path to match on.
- Port int
- The port number to match from the request.
- Prefix string
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- QueryParameters []RouteSpec Http2Route Match Query Parameter 
- Client request query parameters to match on.
- Scheme string
- Client request header scheme to match on. Valid values: http,https.
- headers
List<RouteSpec Http2Route Match Header> 
- Client request headers to match on.
- method String
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path
RouteSpec Http2Route Match Path 
- Client request path to match on.
- port Integer
- The port number to match from the request.
- prefix String
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- queryParameters List<RouteSpec Http2Route Match Query Parameter> 
- Client request query parameters to match on.
- scheme String
- Client request header scheme to match on. Valid values: http,https.
- headers
RouteSpec Http2Route Match Header[] 
- Client request headers to match on.
- method string
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path
RouteSpec Http2Route Match Path 
- Client request path to match on.
- port number
- The port number to match from the request.
- prefix string
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- queryParameters RouteSpec Http2Route Match Query Parameter[] 
- Client request query parameters to match on.
- scheme string
- Client request header scheme to match on. Valid values: http,https.
- headers
Sequence[RouteSpec Http2Route Match Header] 
- Client request headers to match on.
- method str
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path
RouteSpec Http2Route Match Path 
- Client request path to match on.
- port int
- The port number to match from the request.
- prefix str
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- query_parameters Sequence[RouteSpec Http2Route Match Query Parameter] 
- Client request query parameters to match on.
- scheme str
- Client request header scheme to match on. Valid values: http,https.
- headers List<Property Map>
- Client request headers to match on.
- method String
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path Property Map
- Client request path to match on.
- port Number
- The port number to match from the request.
- prefix String
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- queryParameters List<Property Map>
- Client request query parameters to match on.
- scheme String
- Client request header scheme to match on. Valid values: http,https.
RouteSpecHttp2RouteMatchHeader, RouteSpecHttp2RouteMatchHeaderArgs          
- Name string
- Name for the HTTP header in the client request that will be matched on.
- Invert bool
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- Match
RouteSpec Http2Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- Name string
- Name for the HTTP header in the client request that will be matched on.
- Invert bool
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- Match
RouteSpec Http2Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name String
- Name for the HTTP header in the client request that will be matched on.
- invert Boolean
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match
RouteSpec Http2Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name string
- Name for the HTTP header in the client request that will be matched on.
- invert boolean
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match
RouteSpec Http2Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name str
- Name for the HTTP header in the client request that will be matched on.
- invert bool
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match
RouteSpec Http2Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name String
- Name for the HTTP header in the client request that will be matched on.
- invert Boolean
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match Property Map
- Method and value to match the header value sent with a request. Specify one match method.
RouteSpecHttp2RouteMatchHeaderMatch, RouteSpecHttp2RouteMatchHeaderMatchArgs            
- Exact string
- Header value sent by the client must match the specified value exactly.
- Prefix string
- Header value sent by the client must begin with the specified characters.
- Range
RouteSpec Http2Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- Regex string
- Header value sent by the client must include the specified characters.
- Suffix string
- Header value sent by the client must end with the specified characters.
- Exact string
- Header value sent by the client must match the specified value exactly.
- Prefix string
- Header value sent by the client must begin with the specified characters.
- Range
RouteSpec Http2Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- Regex string
- Header value sent by the client must include the specified characters.
- Suffix string
- Header value sent by the client must end with the specified characters.
- exact String
- Header value sent by the client must match the specified value exactly.
- prefix String
- Header value sent by the client must begin with the specified characters.
- range
RouteSpec Http2Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex String
- Header value sent by the client must include the specified characters.
- suffix String
- Header value sent by the client must end with the specified characters.
- exact string
- Header value sent by the client must match the specified value exactly.
- prefix string
- Header value sent by the client must begin with the specified characters.
- range
RouteSpec Http2Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex string
- Header value sent by the client must include the specified characters.
- suffix string
- Header value sent by the client must end with the specified characters.
- exact str
- Header value sent by the client must match the specified value exactly.
- prefix str
- Header value sent by the client must begin with the specified characters.
- range
RouteSpec Http2Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex str
- Header value sent by the client must include the specified characters.
- suffix str
- Header value sent by the client must end with the specified characters.
- exact String
- Header value sent by the client must match the specified value exactly.
- prefix String
- Header value sent by the client must begin with the specified characters.
- range Property Map
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex String
- Header value sent by the client must include the specified characters.
- suffix String
- Header value sent by the client must end with the specified characters.
RouteSpecHttp2RouteMatchHeaderMatchRange, RouteSpecHttp2RouteMatchHeaderMatchRangeArgs              
RouteSpecHttp2RouteMatchPath, RouteSpecHttp2RouteMatchPathArgs          
RouteSpecHttp2RouteMatchQueryParameter, RouteSpecHttp2RouteMatchQueryParameterArgs            
- Name string
- Name for the query parameter that will be matched on.
- Match
RouteSpec Http2Route Match Query Parameter Match 
- The query parameter to match on.
- Name string
- Name for the query parameter that will be matched on.
- Match
RouteSpec Http2Route Match Query Parameter Match 
- The query parameter to match on.
- name String
- Name for the query parameter that will be matched on.
- match
RouteSpec Http2Route Match Query Parameter Match 
- The query parameter to match on.
- name string
- Name for the query parameter that will be matched on.
- match
RouteSpec Http2Route Match Query Parameter Match 
- The query parameter to match on.
- name str
- Name for the query parameter that will be matched on.
- match
RouteSpec Http2Route Match Query Parameter Match 
- The query parameter to match on.
- name String
- Name for the query parameter that will be matched on.
- match Property Map
- The query parameter to match on.
RouteSpecHttp2RouteMatchQueryParameterMatch, RouteSpecHttp2RouteMatchQueryParameterMatchArgs              
- Exact string
- The exact query parameter to match on.
- Exact string
- The exact query parameter to match on.
- exact String
- The exact query parameter to match on.
- exact string
- The exact query parameter to match on.
- exact str
- The exact query parameter to match on.
- exact String
- The exact query parameter to match on.
RouteSpecHttp2RouteRetryPolicy, RouteSpecHttp2RouteRetryPolicyArgs          
- MaxRetries int
- Maximum number of retries.
- PerRetry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- HttpRetry List<string>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- TcpRetry List<string>Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- MaxRetries int
- Maximum number of retries.
- PerRetry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- HttpRetry []stringEvents 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- TcpRetry []stringEvents 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- maxRetries Integer
- Maximum number of retries.
- perRetry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- httpRetry List<String>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry List<String>Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- maxRetries number
- Maximum number of retries.
- perRetry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- httpRetry string[]Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry string[]Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- max_retries int
- Maximum number of retries.
- per_retry_ Routetimeout Spec Http2Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- http_retry_ Sequence[str]events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcp_retry_ Sequence[str]events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- maxRetries Number
- Maximum number of retries.
- perRetry Property MapTimeout 
- Per-retry timeout.
- httpRetry List<String>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry List<String>Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
RouteSpecHttp2RouteRetryPolicyPerRetryTimeout, RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs                
RouteSpecHttp2RouteTimeout, RouteSpecHttp2RouteTimeoutArgs        
- Idle
RouteSpec Http2Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- PerRequest RouteSpec Http2Route Timeout Per Request 
- Per request timeout.
- Idle
RouteSpec Http2Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- PerRequest RouteSpec Http2Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Http2Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest RouteSpec Http2Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Http2Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest RouteSpec Http2Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Http2Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- per_request RouteSpec Http2Route Timeout Per Request 
- Per request timeout.
- idle Property Map
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest Property Map
- Per request timeout.
RouteSpecHttp2RouteTimeoutIdle, RouteSpecHttp2RouteTimeoutIdleArgs          
RouteSpecHttp2RouteTimeoutPerRequest, RouteSpecHttp2RouteTimeoutPerRequestArgs            
RouteSpecHttpRoute, RouteSpecHttpRouteArgs        
- Action
RouteSpec Http Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Http Route Match 
- Criteria for determining an HTTP request match.
- RetryPolicy RouteSpec Http Route Retry Policy 
- Retry policy.
- Timeout
RouteSpec Http Route Timeout 
- Types of timeouts.
- Action
RouteSpec Http Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Http Route Match 
- Criteria for determining an HTTP request match.
- RetryPolicy RouteSpec Http Route Retry Policy 
- Retry policy.
- Timeout
RouteSpec Http Route Timeout 
- Types of timeouts.
- action
RouteSpec Http Route Action 
- Action to take if a match is determined.
- match
RouteSpec Http Route Match 
- Criteria for determining an HTTP request match.
- retryPolicy RouteSpec Http Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Http Route Timeout 
- Types of timeouts.
- action
RouteSpec Http Route Action 
- Action to take if a match is determined.
- match
RouteSpec Http Route Match 
- Criteria for determining an HTTP request match.
- retryPolicy RouteSpec Http Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Http Route Timeout 
- Types of timeouts.
- action
RouteSpec Http Route Action 
- Action to take if a match is determined.
- match
RouteSpec Http Route Match 
- Criteria for determining an HTTP request match.
- retry_policy RouteSpec Http Route Retry Policy 
- Retry policy.
- timeout
RouteSpec Http Route Timeout 
- Types of timeouts.
- action Property Map
- Action to take if a match is determined.
- match Property Map
- Criteria for determining an HTTP request match.
- retryPolicy Property Map
- Retry policy.
- timeout Property Map
- Types of timeouts.
RouteSpecHttpRouteAction, RouteSpecHttpRouteActionArgs          
- WeightedTargets List<RouteSpec Http Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- WeightedTargets []RouteSpec Http Route Action Weighted Target 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<RouteSpec Http Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets RouteSpec Http Route Action Weighted Target[] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weighted_targets Sequence[RouteSpec Http Route Action Weighted Target] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<Property Map>
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
RouteSpecHttpRouteActionWeightedTarget, RouteSpecHttpRouteActionWeightedTargetArgs              
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Integer
- Relative weight of the weighted target. An integer between 0 and 100.
- port Integer
- The targeted port of the weighted object.
- virtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight number
- Relative weight of the weighted target. An integer between 0 and 100.
- port number
- The targeted port of the weighted object.
- virtual_node str
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Number
- Relative weight of the weighted target. An integer between 0 and 100.
- port Number
- The targeted port of the weighted object.
RouteSpecHttpRouteMatch, RouteSpecHttpRouteMatchArgs          
- Headers
List<RouteSpec Http Route Match Header> 
- Client request headers to match on.
- Method string
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- Path
RouteSpec Http Route Match Path 
- Client request path to match on.
- Port int
- The port number to match from the request.
- Prefix string
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- QueryParameters List<RouteSpec Http Route Match Query Parameter> 
- Client request query parameters to match on.
- Scheme string
- Client request header scheme to match on. Valid values: http,https.
- Headers
[]RouteSpec Http Route Match Header 
- Client request headers to match on.
- Method string
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- Path
RouteSpec Http Route Match Path 
- Client request path to match on.
- Port int
- The port number to match from the request.
- Prefix string
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- QueryParameters []RouteSpec Http Route Match Query Parameter 
- Client request query parameters to match on.
- Scheme string
- Client request header scheme to match on. Valid values: http,https.
- headers
List<RouteSpec Http Route Match Header> 
- Client request headers to match on.
- method String
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path
RouteSpec Http Route Match Path 
- Client request path to match on.
- port Integer
- The port number to match from the request.
- prefix String
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- queryParameters List<RouteSpec Http Route Match Query Parameter> 
- Client request query parameters to match on.
- scheme String
- Client request header scheme to match on. Valid values: http,https.
- headers
RouteSpec Http Route Match Header[] 
- Client request headers to match on.
- method string
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path
RouteSpec Http Route Match Path 
- Client request path to match on.
- port number
- The port number to match from the request.
- prefix string
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- queryParameters RouteSpec Http Route Match Query Parameter[] 
- Client request query parameters to match on.
- scheme string
- Client request header scheme to match on. Valid values: http,https.
- headers
Sequence[RouteSpec Http Route Match Header] 
- Client request headers to match on.
- method str
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path
RouteSpec Http Route Match Path 
- Client request path to match on.
- port int
- The port number to match from the request.
- prefix str
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- query_parameters Sequence[RouteSpec Http Route Match Query Parameter] 
- Client request query parameters to match on.
- scheme str
- Client request header scheme to match on. Valid values: http,https.
- headers List<Property Map>
- Client request headers to match on.
- method String
- Client request header method to match on. Valid values: GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH.
- path Property Map
- Client request path to match on.
- port Number
- The port number to match from the request.
- prefix String
- Path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.
- queryParameters List<Property Map>
- Client request query parameters to match on.
- scheme String
- Client request header scheme to match on. Valid values: http,https.
RouteSpecHttpRouteMatchHeader, RouteSpecHttpRouteMatchHeaderArgs            
- Name string
- Name for the HTTP header in the client request that will be matched on.
- Invert bool
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- Match
RouteSpec Http Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- Name string
- Name for the HTTP header in the client request that will be matched on.
- Invert bool
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- Match
RouteSpec Http Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name String
- Name for the HTTP header in the client request that will be matched on.
- invert Boolean
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match
RouteSpec Http Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name string
- Name for the HTTP header in the client request that will be matched on.
- invert boolean
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match
RouteSpec Http Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name str
- Name for the HTTP header in the client request that will be matched on.
- invert bool
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match
RouteSpec Http Route Match Header Match 
- Method and value to match the header value sent with a request. Specify one match method.
- name String
- Name for the HTTP header in the client request that will be matched on.
- invert Boolean
- If true, the match is on the opposite of thematchmethod and value. Default isfalse.
- match Property Map
- Method and value to match the header value sent with a request. Specify one match method.
RouteSpecHttpRouteMatchHeaderMatch, RouteSpecHttpRouteMatchHeaderMatchArgs              
- Exact string
- Header value sent by the client must match the specified value exactly.
- Prefix string
- Header value sent by the client must begin with the specified characters.
- Range
RouteSpec Http Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- Regex string
- Header value sent by the client must include the specified characters.
- Suffix string
- Header value sent by the client must end with the specified characters.
- Exact string
- Header value sent by the client must match the specified value exactly.
- Prefix string
- Header value sent by the client must begin with the specified characters.
- Range
RouteSpec Http Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- Regex string
- Header value sent by the client must include the specified characters.
- Suffix string
- Header value sent by the client must end with the specified characters.
- exact String
- Header value sent by the client must match the specified value exactly.
- prefix String
- Header value sent by the client must begin with the specified characters.
- range
RouteSpec Http Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex String
- Header value sent by the client must include the specified characters.
- suffix String
- Header value sent by the client must end with the specified characters.
- exact string
- Header value sent by the client must match the specified value exactly.
- prefix string
- Header value sent by the client must begin with the specified characters.
- range
RouteSpec Http Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex string
- Header value sent by the client must include the specified characters.
- suffix string
- Header value sent by the client must end with the specified characters.
- exact str
- Header value sent by the client must match the specified value exactly.
- prefix str
- Header value sent by the client must begin with the specified characters.
- range
RouteSpec Http Route Match Header Match Range 
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex str
- Header value sent by the client must include the specified characters.
- suffix str
- Header value sent by the client must end with the specified characters.
- exact String
- Header value sent by the client must match the specified value exactly.
- prefix String
- Header value sent by the client must begin with the specified characters.
- range Property Map
- Object that specifies the range of numbers that the header value sent by the client must be included in.
- regex String
- Header value sent by the client must include the specified characters.
- suffix String
- Header value sent by the client must end with the specified characters.
RouteSpecHttpRouteMatchHeaderMatchRange, RouteSpecHttpRouteMatchHeaderMatchRangeArgs                
RouteSpecHttpRouteMatchPath, RouteSpecHttpRouteMatchPathArgs            
RouteSpecHttpRouteMatchQueryParameter, RouteSpecHttpRouteMatchQueryParameterArgs              
- Name string
- Name for the query parameter that will be matched on.
- Match
RouteSpec Http Route Match Query Parameter Match 
- The query parameter to match on.
- Name string
- Name for the query parameter that will be matched on.
- Match
RouteSpec Http Route Match Query Parameter Match 
- The query parameter to match on.
- name String
- Name for the query parameter that will be matched on.
- match
RouteSpec Http Route Match Query Parameter Match 
- The query parameter to match on.
- name string
- Name for the query parameter that will be matched on.
- match
RouteSpec Http Route Match Query Parameter Match 
- The query parameter to match on.
- name str
- Name for the query parameter that will be matched on.
- match
RouteSpec Http Route Match Query Parameter Match 
- The query parameter to match on.
- name String
- Name for the query parameter that will be matched on.
- match Property Map
- The query parameter to match on.
RouteSpecHttpRouteMatchQueryParameterMatch, RouteSpecHttpRouteMatchQueryParameterMatchArgs                
- Exact string
- The exact query parameter to match on.
- Exact string
- The exact query parameter to match on.
- exact String
- The exact query parameter to match on.
- exact string
- The exact query parameter to match on.
- exact str
- The exact query parameter to match on.
- exact String
- The exact query parameter to match on.
RouteSpecHttpRouteRetryPolicy, RouteSpecHttpRouteRetryPolicyArgs            
- MaxRetries int
- Maximum number of retries.
- PerRetry RouteTimeout Spec Http Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- HttpRetry List<string>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- TcpRetry List<string>Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- MaxRetries int
- Maximum number of retries.
- PerRetry RouteTimeout Spec Http Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- HttpRetry []stringEvents 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- TcpRetry []stringEvents 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- maxRetries Integer
- Maximum number of retries.
- perRetry RouteTimeout Spec Http Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- httpRetry List<String>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry List<String>Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- maxRetries number
- Maximum number of retries.
- perRetry RouteTimeout Spec Http Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- httpRetry string[]Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry string[]Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- max_retries int
- Maximum number of retries.
- per_retry_ Routetimeout Spec Http Route Retry Policy Per Retry Timeout 
- Per-retry timeout.
- http_retry_ Sequence[str]events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcp_retry_ Sequence[str]events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
- maxRetries Number
- Maximum number of retries.
- perRetry Property MapTimeout 
- Per-retry timeout.
- httpRetry List<String>Events 
- List of HTTP retry events.
Valid values: client-error(HTTP status code 409),gateway-error(HTTP status codes 502, 503, and 504),server-error(HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511),stream-error(retry on refused stream).
- tcpRetry List<String>Events 
- List of TCP retry events. The only valid value is - connection-error.- You must specify at least one value for - http_retry_events, or at least one value for- tcp_retry_events.
RouteSpecHttpRouteRetryPolicyPerRetryTimeout, RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs                  
RouteSpecHttpRouteTimeout, RouteSpecHttpRouteTimeoutArgs          
- Idle
RouteSpec Http Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- PerRequest RouteSpec Http Route Timeout Per Request 
- Per request timeout.
- Idle
RouteSpec Http Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- PerRequest RouteSpec Http Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Http Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest RouteSpec Http Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Http Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest RouteSpec Http Route Timeout Per Request 
- Per request timeout.
- idle
RouteSpec Http Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- per_request RouteSpec Http Route Timeout Per Request 
- Per request timeout.
- idle Property Map
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- perRequest Property Map
- Per request timeout.
RouteSpecHttpRouteTimeoutIdle, RouteSpecHttpRouteTimeoutIdleArgs            
RouteSpecHttpRouteTimeoutPerRequest, RouteSpecHttpRouteTimeoutPerRequestArgs              
RouteSpecTcpRoute, RouteSpecTcpRouteArgs        
- Action
RouteSpec Tcp Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Tcp Route Match 
- Timeout
RouteSpec Tcp Route Timeout 
- Types of timeouts.
- Action
RouteSpec Tcp Route Action 
- Action to take if a match is determined.
- Match
RouteSpec Tcp Route Match 
- Timeout
RouteSpec Tcp Route Timeout 
- Types of timeouts.
- action
RouteSpec Tcp Route Action 
- Action to take if a match is determined.
- match
RouteSpec Tcp Route Match 
- timeout
RouteSpec Tcp Route Timeout 
- Types of timeouts.
- action
RouteSpec Tcp Route Action 
- Action to take if a match is determined.
- match
RouteSpec Tcp Route Match 
- timeout
RouteSpec Tcp Route Timeout 
- Types of timeouts.
- action
RouteSpec Tcp Route Action 
- Action to take if a match is determined.
- match
RouteSpec Tcp Route Match 
- timeout
RouteSpec Tcp Route Timeout 
- Types of timeouts.
- action Property Map
- Action to take if a match is determined.
- match Property Map
- timeout Property Map
- Types of timeouts.
RouteSpecTcpRouteAction, RouteSpecTcpRouteActionArgs          
- WeightedTargets List<RouteSpec Tcp Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- WeightedTargets []RouteSpec Tcp Route Action Weighted Target 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<RouteSpec Tcp Route Action Weighted Target> 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets RouteSpec Tcp Route Action Weighted Target[] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weighted_targets Sequence[RouteSpec Tcp Route Action Weighted Target] 
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
- weightedTargets List<Property Map>
- Targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
RouteSpecTcpRouteActionWeightedTarget, RouteSpecTcpRouteActionWeightedTargetArgs              
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- VirtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- Weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- Port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Integer
- Relative weight of the weighted target. An integer between 0 and 100.
- port Integer
- The targeted port of the weighted object.
- virtualNode string
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight number
- Relative weight of the weighted target. An integer between 0 and 100.
- port number
- The targeted port of the weighted object.
- virtual_node str
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight int
- Relative weight of the weighted target. An integer between 0 and 100.
- port int
- The targeted port of the weighted object.
- virtualNode String
- Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
- weight Number
- Relative weight of the weighted target. An integer between 0 and 100.
- port Number
- The targeted port of the weighted object.
RouteSpecTcpRouteMatch, RouteSpecTcpRouteMatchArgs          
- Port int
- Port int
- port Integer
- port number
- port int
- port Number
RouteSpecTcpRouteTimeout, RouteSpecTcpRouteTimeoutArgs          
- Idle
RouteSpec Tcp Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- Idle
RouteSpec Tcp Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- idle
RouteSpec Tcp Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- idle
RouteSpec Tcp Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- idle
RouteSpec Tcp Route Timeout Idle 
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- idle Property Map
- Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
RouteSpecTcpRouteTimeoutIdle, RouteSpecTcpRouteTimeoutIdleArgs            
Import
Using pulumi import, import App Mesh virtual routes using mesh_name and virtual_router_name together with the route’s name. For example:
$ pulumi import aws:appmesh/route:Route serviceb simpleapp/serviceB/serviceB-route
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.