Route

Provides an AWS App Mesh route resource.

Example Usage

HTTP Routing

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var serviceb = new Aws.AppMesh.Route("serviceb", new Aws.AppMesh.RouteArgs
        {
            MeshName = aws_appmesh_mesh.Simple.Id,
            Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
            {
                HttpRoute = new Aws.AppMesh.Inputs.RouteSpecHttpRouteArgs
                {
                    Action = new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionArgs
                    {
                        WeightedTarget = 
                        {
                            
                            {
                                { "virtualNode", aws_appmesh_virtual_node.Serviceb1.Name },
                                { "weight", 90 },
                            },
                            
                            {
                                { "virtualNode", aws_appmesh_virtual_node.Serviceb2.Name },
                                { "weight", 10 },
                            },
                        },
                    },
                    Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchArgs
                    {
                        Prefix = "/",
                    },
                },
            },
            VirtualRouterName = aws_appmesh_virtual_router.Serviceb.Name,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/appmesh"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := appmesh.NewRoute(ctx, "serviceb", &appmesh.RouteArgs{
            MeshName: pulumi.String(aws_appmesh_mesh.Simple.Id),
            Spec: &appmesh.RouteSpecArgs{
                HttpRoute: &appmesh.RouteSpecHttpRouteArgs{
                    Action: &appmesh.RouteSpecHttpRouteActionArgs{
                        WeightedTarget: pulumi.MapArray{
                            pulumi.Map{
                                "virtualNode": pulumi.String(aws_appmesh_virtual_node.Serviceb1.Name),
                                "weight":      pulumi.Float64(90),
                            },
                            pulumi.Map{
                                "virtualNode": pulumi.String(aws_appmesh_virtual_node.Serviceb2.Name),
                                "weight":      pulumi.Float64(10),
                            },
                        },
                    },
                    Match: &appmesh.RouteSpecHttpRouteMatchArgs{
                        Prefix: pulumi.String("/"),
                    },
                },
            },
            VirtualRouterName: pulumi.String(aws_appmesh_virtual_router.Serviceb.Name),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

serviceb = aws.appmesh.Route("serviceb",
    mesh_name=aws_appmesh_mesh["simple"]["id"],
    spec={
        "httpRoute": {
            "action": {
                "weightedTarget": [
                    {
                        "virtualNode": aws_appmesh_virtual_node["serviceb1"]["name"],
                        "weight": 90,
                    },
                    {
                        "virtualNode": aws_appmesh_virtual_node["serviceb2"]["name"],
                        "weight": 10,
                    },
                ],
            },
            "match": {
                "prefix": "/",
            },
        },
    },
    virtual_router_name=aws_appmesh_virtual_router["serviceb"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const serviceb = new aws.appmesh.Route("serviceb", {
    meshName: aws_appmesh_mesh_simple.id,
    spec: {
        httpRoute: {
            action: {
                weightedTargets: [
                    {
                        virtualNode: aws_appmesh_virtual_node_serviceb1.name,
                        weight: 90,
                    },
                    {
                        virtualNode: aws_appmesh_virtual_node_serviceb2.name,
                        weight: 10,
                    },
                ],
            },
            match: {
                prefix: "/",
            },
        },
    },
    virtualRouterName: aws_appmesh_virtual_router_serviceb.name,
});

HTTP Header Routing

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var serviceb = new Aws.AppMesh.Route("serviceb", new Aws.AppMesh.RouteArgs
        {
            MeshName = aws_appmesh_mesh.Simple.Id,
            Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
            {
                HttpRoute = new Aws.AppMesh.Inputs.RouteSpecHttpRouteArgs
                {
                    Action = new Aws.AppMesh.Inputs.RouteSpecHttpRouteActionArgs
                    {
                        WeightedTarget = 
                        {
                            
                            {
                                { "virtualNode", aws_appmesh_virtual_node.Serviceb.Name },
                                { "weight", 100 },
                            },
                        },
                    },
                    Match = new Aws.AppMesh.Inputs.RouteSpecHttpRouteMatchArgs
                    {
                        Header = 
                        {
                            
                            {
                                { "match", 
                                {
                                    { "prefix", "123" },
                                } },
                                { "name", "clientRequestId" },
                            },
                        },
                        Method = "POST",
                        Prefix = "/",
                        Scheme = "https",
                    },
                },
            },
            VirtualRouterName = aws_appmesh_virtual_router.Serviceb.Name,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/appmesh"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := appmesh.NewRoute(ctx, "serviceb", &appmesh.RouteArgs{
            MeshName: pulumi.String(aws_appmesh_mesh.Simple.Id),
            Spec: &appmesh.RouteSpecArgs{
                HttpRoute: &appmesh.RouteSpecHttpRouteArgs{
                    Action: &appmesh.RouteSpecHttpRouteActionArgs{
                        WeightedTarget: pulumi.MapArray{
                            pulumi.Map{
                                "virtualNode": pulumi.String(aws_appmesh_virtual_node.Serviceb.Name),
                                "weight":      pulumi.Float64(100),
                            },
                        },
                    },
                    Match: &appmesh.RouteSpecHttpRouteMatchArgs{
                        Header: pulumi.MapArray{
                            pulumi.Map{
                                "match": pulumi.StringMap{
                                    "prefix": pulumi.String("123"),
                                },
                                "name": pulumi.String("clientRequestId"),
                            },
                        },
                        Method: pulumi.String("POST"),
                        Prefix: pulumi.String("/"),
                        Scheme: pulumi.String("https"),
                    },
                },
            },
            VirtualRouterName: pulumi.String(aws_appmesh_virtual_router.Serviceb.Name),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

serviceb = aws.appmesh.Route("serviceb",
    mesh_name=aws_appmesh_mesh["simple"]["id"],
    spec={
        "httpRoute": {
            "action": {
                "weightedTarget": [{
                    "virtualNode": aws_appmesh_virtual_node["serviceb"]["name"],
                    "weight": 100,
                }],
            },
            "match": {
                "header": [{
                    "match": {
                        "prefix": "123",
                    },
                    "name": "clientRequestId",
                }],
                "method": "POST",
                "prefix": "/",
                "scheme": "https",
            },
        },
    },
    virtual_router_name=aws_appmesh_virtual_router["serviceb"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const serviceb = new aws.appmesh.Route("serviceb", {
    meshName: aws_appmesh_mesh_simple.id,
    spec: {
        httpRoute: {
            action: {
                weightedTargets: [{
                    virtualNode: aws_appmesh_virtual_node_serviceb.name,
                    weight: 100,
                }],
            },
            match: {
                headers: [{
                    match: {
                        prefix: "123",
                    },
                    name: "clientRequestId",
                }],
                method: "POST",
                prefix: "/",
                scheme: "https",
            },
        },
    },
    virtualRouterName: aws_appmesh_virtual_router_serviceb.name,
});

TCP Routing

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var serviceb = new Aws.AppMesh.Route("serviceb", new Aws.AppMesh.RouteArgs
        {
            MeshName = aws_appmesh_mesh.Simple.Id,
            Spec = new Aws.AppMesh.Inputs.RouteSpecArgs
            {
                TcpRoute = new Aws.AppMesh.Inputs.RouteSpecTcpRouteArgs
                {
                    Action = new Aws.AppMesh.Inputs.RouteSpecTcpRouteActionArgs
                    {
                        WeightedTarget = 
                        {
                            
                            {
                                { "virtualNode", aws_appmesh_virtual_node.Serviceb1.Name },
                                { "weight", 100 },
                            },
                        },
                    },
                },
            },
            VirtualRouterName = aws_appmesh_virtual_router.Serviceb.Name,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/appmesh"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := appmesh.NewRoute(ctx, "serviceb", &appmesh.RouteArgs{
            MeshName: pulumi.String(aws_appmesh_mesh.Simple.Id),
            Spec: &appmesh.RouteSpecArgs{
                TcpRoute: &appmesh.RouteSpecTcpRouteArgs{
                    Action: &appmesh.RouteSpecTcpRouteActionArgs{
                        WeightedTarget: pulumi.MapArray{
                            pulumi.Map{
                                "virtualNode": pulumi.String(aws_appmesh_virtual_node.Serviceb1.Name),
                                "weight":      pulumi.Float64(100),
                            },
                        },
                    },
                },
            },
            VirtualRouterName: pulumi.String(aws_appmesh_virtual_router.Serviceb.Name),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

serviceb = aws.appmesh.Route("serviceb",
    mesh_name=aws_appmesh_mesh["simple"]["id"],
    spec={
        "tcpRoute": {
            "action": {
                "weightedTarget": [{
                    "virtualNode": aws_appmesh_virtual_node["serviceb1"]["name"],
                    "weight": 100,
                }],
            },
        },
    },
    virtual_router_name=aws_appmesh_virtual_router["serviceb"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const serviceb = new aws.appmesh.Route("serviceb", {
    meshName: aws_appmesh_mesh_simple.id,
    spec: {
        tcpRoute: {
            action: {
                weightedTargets: [{
                    virtualNode: aws_appmesh_virtual_node_serviceb1.name,
                    weight: 100,
                }],
            },
        },
    },
    virtualRouterName: aws_appmesh_virtual_router_serviceb.name,
});

Create a Route Resource

new Route(name: string, args: RouteArgs, opts?: CustomResourceOptions);
def Route(resource_name, opts=None, mesh_name=None, name=None, spec=None, tags=None, virtual_router_name=None, __props__=None);
func NewRoute(ctx *Context, name string, args RouteArgs, opts ...ResourceOption) (*Route, error)
public Route(string name, RouteArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Route Resource Properties

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

Inputs

The Route resource accepts the following input properties:

MeshName string

The name of the service mesh in which to create the route.

Spec RouteSpecArgs

The route specification to apply.

VirtualRouterName string

The name of the virtual router in which to create the route.

Name string

The name to use for the route.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

MeshName string

The name of the service mesh in which to create the route.

Spec RouteSpec

The route specification to apply.

VirtualRouterName string

The name of the virtual router in which to create the route.

Name string

The name to use for the route.

Tags map[string]string

A map of tags to assign to the resource.

meshName string

The name of the service mesh in which to create the route.

spec RouteSpec

The route specification to apply.

virtualRouterName string

The name of the virtual router in which to create the route.

name string

The name to use for the route.

tags {[key: string]: string}

A map of tags to assign to the resource.

mesh_name str

The name of the service mesh in which to create the route.

spec Dict[RouteSpec]

The route specification to apply.

virtual_router_name str

The name of the virtual router in which to create the route.

name str

The name to use for the route.

tags Dict[str, str]

A map of tags to assign to the resource.

Outputs

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

Arn string

The ARN of the route.

CreatedDate string

The creation date of the route.

Id string
The provider-assigned unique ID for this managed resource.
LastUpdatedDate string

The last update date of the route.

Arn string

The ARN of the route.

CreatedDate string

The creation date of the route.

Id string
The provider-assigned unique ID for this managed resource.
LastUpdatedDate string

The last update date of the route.

arn string

The ARN of the route.

createdDate string

The creation date of the route.

id string
The provider-assigned unique ID for this managed resource.
lastUpdatedDate string

The last update date of the route.

arn str

The ARN of the route.

created_date str

The creation date of the route.

id str
The provider-assigned unique ID for this managed resource.
last_updated_date str

The last update date of the route.

Look up an 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
static get(resource_name, id, opts=None, arn=None, created_date=None, last_updated_date=None, mesh_name=None, name=None, spec=None, tags=None, virtual_router_name=None, __props__=None);
func 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)
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.

The following state arguments are supported:

Arn string

The ARN of the route.

CreatedDate string

The creation date of the route.

LastUpdatedDate string

The last update date of the route.

MeshName string

The name of the service mesh in which to create the route.

Name string

The name to use for the route.

Spec RouteSpecArgs

The route specification to apply.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

VirtualRouterName string

The name of the virtual router in which to create the route.

Arn string

The ARN of the route.

CreatedDate string

The creation date of the route.

LastUpdatedDate string

The last update date of the route.

MeshName string

The name of the service mesh in which to create the route.

Name string

The name to use for the route.

Spec RouteSpec

The route specification to apply.

Tags map[string]string

A map of tags to assign to the resource.

VirtualRouterName string

The name of the virtual router in which to create the route.

arn string

The ARN of the route.

createdDate string

The creation date of the route.

lastUpdatedDate string

The last update date of the route.

meshName string

The name of the service mesh in which to create the route.

name string

The name to use for the route.

spec RouteSpec

The route specification to apply.

tags {[key: string]: string}

A map of tags to assign to the resource.

virtualRouterName string

The name of the virtual router in which to create the route.

arn str

The ARN of the route.

created_date str

The creation date of the route.

last_updated_date str

The last update date of the route.

mesh_name str

The name of the service mesh in which to create the route.

name str

The name to use for the route.

spec Dict[RouteSpec]

The route specification to apply.

tags Dict[str, str]

A map of tags to assign to the resource.

virtual_router_name str

The name of the virtual router in which to create the route.

Supporting Types

RouteSpec

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

HttpRoute RouteSpecHttpRouteArgs

The HTTP routing information for the route.

Priority int

The priority for the route, between 0 and 1000. Routes are matched based on the specified value, where 0 is the highest priority.

TcpRoute RouteSpecTcpRouteArgs

The TCP routing information for the route.

HttpRoute RouteSpecHttpRoute

The HTTP routing information for the route.

Priority int

The priority for the route, between 0 and 1000. Routes are matched based on the specified value, where 0 is the highest priority.

TcpRoute RouteSpecTcpRoute

The TCP routing information for the route.

httpRoute RouteSpecHttpRoute

The HTTP routing information for the route.

priority number

The priority for the route, between 0 and 1000. Routes are matched based on the specified value, where 0 is the highest priority.

tcpRoute RouteSpecTcpRoute

The TCP routing information for the route.

httpRoute Dict[RouteSpecHttpRoute]

The HTTP routing information for the route.

priority float

The priority for the route, between 0 and 1000. Routes are matched based on the specified value, where 0 is the highest priority.

tcpRoute Dict[RouteSpecTcpRoute]

The TCP routing information for the route.

RouteSpecHttpRoute

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Action RouteSpecHttpRouteActionArgs

The action to take if a match is determined.

Match RouteSpecHttpRouteMatchArgs

The criteria for determining an HTTP request match.

Action RouteSpecHttpRouteAction

The action to take if a match is determined.

Match RouteSpecHttpRouteMatch

The criteria for determining an HTTP request match.

action RouteSpecHttpRouteAction

The action to take if a match is determined.

match RouteSpecHttpRouteMatch

The criteria for determining an HTTP request match.

action Dict[RouteSpecHttpRouteAction]

The action to take if a match is determined.

match Dict[RouteSpecHttpRouteMatch]

The criteria for determining an HTTP request match.

RouteSpecHttpRouteAction

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

WeightedTargets List<RouteSpecHttpRouteActionWeightedTargetArgs>

The 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 []RouteSpecHttpRouteActionWeightedTarget

The 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 RouteSpecHttpRouteActionWeightedTarget[]

The 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[RouteSpecHttpRouteActionWeightedTarget]

The 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

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

VirtualNode string

The virtual node to associate with the weighted target.

Weight int

The relative weight of the weighted target. An integer between 0 and 100.

VirtualNode string

The virtual node to associate with the weighted target.

Weight int

The relative weight of the weighted target. An integer between 0 and 100.

virtualNode string

The virtual node to associate with the weighted target.

weight number

The relative weight of the weighted target. An integer between 0 and 100.

virtualNode str

The virtual node to associate with the weighted target.

weight float

The relative weight of the weighted target. An integer between 0 and 100.

RouteSpecHttpRouteMatch

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Prefix string

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

Headers List<RouteSpecHttpRouteMatchHeaderArgs>

The client request headers to match on.

Method string

The client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH.

Scheme string

The client request header scheme to match on. Valid values: http, https.

Prefix string

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

Headers []RouteSpecHttpRouteMatchHeader

The client request headers to match on.

Method string

The client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH.

Scheme string

The client request header scheme to match on. Valid values: http, https.

prefix string

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

headers RouteSpecHttpRouteMatchHeader[]

The client request headers to match on.

method string

The client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH.

scheme string

The client request header scheme to match on. Valid values: http, https.

prefix str

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

headers List[RouteSpecHttpRouteMatchHeader]

The client request headers to match on.

method str

The client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH.

scheme str

The client request header scheme to match on. Valid values: http, https.

RouteSpecHttpRouteMatchHeader

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

A 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 the match method and value. Default is false.

Match RouteSpecHttpRouteMatchHeaderMatchArgs

The method and value to match the header value sent with a request. Specify one match method.

Name string

A 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 the match method and value. Default is false.

Match RouteSpecHttpRouteMatchHeaderMatch

The method and value to match the header value sent with a request. Specify one match method.

name string

A 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 the match method and value. Default is false.

match RouteSpecHttpRouteMatchHeaderMatch

The method and value to match the header value sent with a request. Specify one match method.

name str

A 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 the match method and value. Default is false.

match Dict[RouteSpecHttpRouteMatchHeaderMatch]

The method and value to match the header value sent with a request. Specify one match method.

RouteSpecHttpRouteMatchHeaderMatch

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Exact string

The header value sent by the client must match the specified value exactly.

Prefix string

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

Range RouteSpecHttpRouteMatchHeaderMatchRangeArgs

The object that specifies the range of numbers that the header value sent by the client must be included in.

Regex string

The header value sent by the client must include the specified characters.

Suffix string

The header value sent by the client must end with the specified characters.

Exact string

The header value sent by the client must match the specified value exactly.

Prefix string

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

Range RouteSpecHttpRouteMatchHeaderMatchRange

The object that specifies the range of numbers that the header value sent by the client must be included in.

Regex string

The header value sent by the client must include the specified characters.

Suffix string

The header value sent by the client must end with the specified characters.

exact string

The header value sent by the client must match the specified value exactly.

prefix string

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

range RouteSpecHttpRouteMatchHeaderMatchRange

The object that specifies the range of numbers that the header value sent by the client must be included in.

regex string

The header value sent by the client must include the specified characters.

suffix string

The header value sent by the client must end with the specified characters.

exact str

The header value sent by the client must match the specified value exactly.

prefix str

Specifies the path with which to match requests. This parameter must always start with /, which by itself matches all requests to the virtual router service name.

range Dict[RouteSpecHttpRouteMatchHeaderMatchRange]

The object that specifies the range of numbers that the header value sent by the client must be included in.

regex str

The header value sent by the client must include the specified characters.

suffix str

The header value sent by the client must end with the specified characters.

RouteSpecHttpRouteMatchHeaderMatchRange

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

End int

The end of the range.

Start int

The start of the range.

End int

The end of the range.

Start int

The start of the range.

end number

The end of the range.

start number

The start of the range.

end float

The end of the range.

start float

The start of the range.

RouteSpecTcpRoute

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Action RouteSpecTcpRouteActionArgs

The action to take if a match is determined.

Action RouteSpecTcpRouteAction

The action to take if a match is determined.

action RouteSpecTcpRouteAction

The action to take if a match is determined.

action Dict[RouteSpecTcpRouteAction]

The action to take if a match is determined.

RouteSpecTcpRouteAction

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

WeightedTargets List<RouteSpecTcpRouteActionWeightedTargetArgs>

The 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 []RouteSpecTcpRouteActionWeightedTarget

The 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 RouteSpecTcpRouteActionWeightedTarget[]

The 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[RouteSpecTcpRouteActionWeightedTarget]

The 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

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

VirtualNode string

The virtual node to associate with the weighted target.

Weight int

The relative weight of the weighted target. An integer between 0 and 100.

VirtualNode string

The virtual node to associate with the weighted target.

Weight int

The relative weight of the weighted target. An integer between 0 and 100.

virtualNode string

The virtual node to associate with the weighted target.

weight number

The relative weight of the weighted target. An integer between 0 and 100.

virtualNode str

The virtual node to associate with the weighted target.

weight float

The relative weight of the weighted target. An integer between 0 and 100.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.