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:
- Mesh
Name string - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- Spec
Route
Spec - Route specification to apply.
- Virtual
Router stringName - Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- Mesh
Owner 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mesh
Name string - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- Spec
Route
Spec Args - Route specification to apply.
- Virtual
Router stringName - Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- Mesh
Owner 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- mesh
Name String - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- spec
Route
Spec - Route specification to apply.
- virtual
Router StringName - Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- mesh
Owner 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- mesh
Name string - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- spec
Route
Spec - Route specification to apply.
- virtual
Router stringName - Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- mesh
Owner 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_tags
configuration 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
Route
Spec 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- mesh
Name 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.
- virtual
Router StringName - Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length.
- mesh
Owner 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_tags
configuration 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.
- Created
Date string - Creation date of the route.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate - Last update date of the route.
- Resource
Owner string - Resource owner's AWS account ID.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the route.
- Created
Date string - Creation date of the route.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate - Last update date of the route.
- Resource
Owner string - Resource owner's AWS account ID.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the route.
- created
Date String - Creation date of the route.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate - Last update date of the route.
- resource
Owner String - Resource owner's AWS account ID.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the route.
- created
Date string - Creation date of the route.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringDate - Last update date of the route.
- resource
Owner string - Resource owner's AWS account ID.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration 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_tags
configuration block.
- arn String
- ARN of the route.
- created
Date String - Creation date of the route.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate - Last update date of the route.
- resource
Owner String - Resource owner's AWS account ID.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration 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) -> Route
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)
public static Route get(String name, Output<String> id, RouteState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the route.
- Created
Date string - Creation date of the route.
- Last
Updated stringDate - Last update date of the route.
- Mesh
Name string - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- Mesh
Owner 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.
- Resource
Owner string - Resource owner's AWS account ID.
- Spec
Route
Spec - Route specification to apply.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration 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_tags
configuration block. - Virtual
Router 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.
- Created
Date string - Creation date of the route.
- Last
Updated stringDate - Last update date of the route.
- Mesh
Name string - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- Mesh
Owner 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.
- Resource
Owner string - Resource owner's AWS account ID.
- Spec
Route
Spec Args - Route specification to apply.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration 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_tags
configuration block. - Virtual
Router 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.
- created
Date String - Creation date of the route.
- last
Updated StringDate - Last update date of the route.
- mesh
Name String - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- mesh
Owner 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.
- resource
Owner String - Resource owner's AWS account ID.
- spec
Route
Spec - Route specification to apply.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration 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_tags
configuration block. - virtual
Router 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.
- created
Date string - Creation date of the route.
- last
Updated stringDate - Last update date of the route.
- mesh
Name string - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- mesh
Owner 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.
- resource
Owner string - Resource owner's AWS account ID.
- spec
Route
Spec - Route specification to apply.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration 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_tags
configuration block. - virtual
Router 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
Route
Spec Args - Route specification to apply.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration 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_tags
configuration 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.
- created
Date String - Creation date of the route.
- last
Updated StringDate - Last update date of the route.
- mesh
Name String - Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length.
- mesh
Owner 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.
- resource
Owner 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_tags
configuration 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_tags
configuration block. - virtual
Router 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
- Grpc
Route RouteSpec Grpc Route - GRPC routing information for the route.
- Http2Route
Route
Spec 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
0
and1000
. Routes are matched based on the specified value, where0
is the highest priority. - Tcp
Route RouteSpec Tcp Route - TCP routing information for the route.
- Grpc
Route RouteSpec Grpc Route - GRPC routing information for the route.
- Http2Route
Route
Spec 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
0
and1000
. Routes are matched based on the specified value, where0
is the highest priority. - Tcp
Route RouteSpec Tcp Route - TCP routing information for the route.
- grpc
Route RouteSpec Grpc Route - GRPC routing information for the route.
- http2Route
Route
Spec Http2Route - HTTP/2 routing information for the route.
- http
Route RouteSpec Http Route - HTTP routing information for the route.
- priority Integer
- Priority for the route, between
0
and1000
. Routes are matched based on the specified value, where0
is the highest priority. - tcp
Route RouteSpec Tcp Route - TCP routing information for the route.
- grpc
Route RouteSpec Grpc Route - GRPC routing information for the route.
- http2Route
Route
Spec Http2Route - HTTP/2 routing information for the route.
- http
Route RouteSpec Http Route - HTTP routing information for the route.
- priority number
- Priority for the route, between
0
and1000
. Routes are matched based on the specified value, where0
is the highest priority. - tcp
Route 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
0
and1000
. Routes are matched based on the specified value, where0
is the highest priority. - tcp_
route RouteSpec Tcp Route - TCP routing information for the route.
- grpc
Route Property Map - GRPC routing information for the route.
- http2Route Property Map
- HTTP/2 routing information for the route.
- http
Route Property Map - HTTP routing information for the route.
- priority Number
- Priority for the route, between
0
and1000
. Routes are matched based on the specified value, where0
is the highest priority. - tcp
Route Property Map - TCP routing information for the route.
RouteSpecGrpcRoute, RouteSpecGrpcRouteArgs
- Action
Route
Spec Grpc Route Action - Action to take if a match is determined.
- Match
Route
Spec Grpc Route Match - Criteria for determining an gRPC request match.
- Retry
Policy RouteSpec Grpc Route Retry Policy - Retry policy.
- Timeout
Route
Spec Grpc Route Timeout - Types of timeouts.
- Action
Route
Spec Grpc Route Action - Action to take if a match is determined.
- Match
Route
Spec Grpc Route Match - Criteria for determining an gRPC request match.
- Retry
Policy RouteSpec Grpc Route Retry Policy - Retry policy.
- Timeout
Route
Spec Grpc Route Timeout - Types of timeouts.
- action
Route
Spec Grpc Route Action - Action to take if a match is determined.
- match
Route
Spec Grpc Route Match - Criteria for determining an gRPC request match.
- retry
Policy RouteSpec Grpc Route Retry Policy - Retry policy.
- timeout
Route
Spec Grpc Route Timeout - Types of timeouts.
- action
Route
Spec Grpc Route Action - Action to take if a match is determined.
- match
Route
Spec Grpc Route Match - Criteria for determining an gRPC request match.
- retry
Policy RouteSpec Grpc Route Retry Policy - Retry policy.
- timeout
Route
Spec Grpc Route Timeout - Types of timeouts.
- action
Route
Spec Grpc Route Action - Action to take if a match is determined.
- match
Route
Spec Grpc Route Match - Criteria for determining an gRPC request match.
- retry_
policy RouteSpec Grpc Route Retry Policy - Retry policy.
- timeout
Route
Spec 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.
- retry
Policy Property Map - Retry policy.
- timeout Property Map
- Types of timeouts.
RouteSpecGrpcRouteAction, RouteSpecGrpcRouteActionArgs
- Weighted
Targets 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.
- Weighted
Targets []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 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.
- weighted
Targets 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.
- weighted
Targets 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
- Virtual
Node 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.
- Virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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<Route
Spec Grpc Route Match Metadata> - Data to match from the gRPC request.
- Method
Name 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
- Service
Name string - Fully qualified domain name for the service to match from the request.
- Metadatas
[]Route
Spec Grpc Route Match Metadata - Data to match from the gRPC request.
- Method
Name 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
- Service
Name string - Fully qualified domain name for the service to match from the request.
- metadatas
List<Route
Spec Grpc Route Match Metadata> - Data to match from the gRPC request.
- method
Name 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
- service
Name String - Fully qualified domain name for the service to match from the request.
- metadatas
Route
Spec Grpc Route Match Metadata[] - Data to match from the gRPC request.
- method
Name 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
- service
Name string - Fully qualified domain name for the service to match from the request.
- metadatas
Sequence[Route
Spec 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.
- method
Name 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
- service
Name 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 thematch
criteria. Default isfalse
. - Match
Route
Spec 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 thematch
criteria. Default isfalse
. - Match
Route
Spec 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 thematch
criteria. Default isfalse
. - match
Route
Spec 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 thematch
criteria. Default isfalse
. - match
Route
Spec 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 thematch
criteria. Default isfalse
. - match
Route
Spec 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 thematch
criteria. 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
- Max
Retries int - Maximum number of retries.
- Per
Retry RouteTimeout Spec Grpc Route Retry Policy Per Retry Timeout - Per-retry timeout.
- Grpc
Retry List<string>Events - List of gRPC retry events.
Valid values:
cancelled
,deadline-exceeded
,internal
,resource-exhausted
,unavailable
. - Http
Retry 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). - Tcp
Retry List<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 []stringEvents - List of gRPC retry events.
Valid values:
cancelled
,deadline-exceeded
,internal
,resource-exhausted
,unavailable
. - Http
Retry []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). - Tcp
Retry []stringEvents - List of TCP retry events. The only valid value is
connection-error
.
- max
Retries Integer - Maximum number of retries.
- per
Retry RouteTimeout Spec Grpc Route Retry Policy Per Retry Timeout - Per-retry timeout.
- grpc
Retry List<String>Events - List of gRPC retry events.
Valid values:
cancelled
,deadline-exceeded
,internal
,resource-exhausted
,unavailable
. - http
Retry 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). - tcp
Retry List<String>Events - List of TCP retry events. The only valid value is
connection-error
.
- max
Retries number - Maximum number of retries.
- per
Retry RouteTimeout Spec Grpc Route Retry Policy Per Retry Timeout - Per-retry timeout.
- grpc
Retry string[]Events - List of gRPC retry events.
Valid values:
cancelled
,deadline-exceeded
,internal
,resource-exhausted
,unavailable
. - http
Retry 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). - tcp
Retry 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
.
- max
Retries Number - Maximum number of retries.
- per
Retry Property MapTimeout - Per-retry timeout.
- grpc
Retry List<String>Events - List of gRPC retry events.
Valid values:
cancelled
,deadline-exceeded
,internal
,resource-exhausted
,unavailable
. - http
Retry 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). - tcp
Retry List<String>Events - List of TCP retry events. The only valid value is
connection-error
.
RouteSpecGrpcRouteRetryPolicyPerRetryTimeout, RouteSpecGrpcRouteRetryPolicyPerRetryTimeoutArgs
RouteSpecGrpcRouteTimeout, RouteSpecGrpcRouteTimeoutArgs
- Idle
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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.
- per
Request Property Map - Per request timeout.
RouteSpecGrpcRouteTimeoutIdle, RouteSpecGrpcRouteTimeoutIdleArgs
RouteSpecGrpcRouteTimeoutPerRequest, RouteSpecGrpcRouteTimeoutPerRequestArgs
RouteSpecHttp2Route, RouteSpecHttp2RouteArgs
- Action
Route
Spec Http2Route Action - Action to take if a match is determined.
- Match
Route
Spec Http2Route Match - Criteria for determining an HTTP request match.
- Retry
Policy RouteSpec Http2Route Retry Policy - Retry policy.
- Timeout
Route
Spec Http2Route Timeout - Types of timeouts.
- Action
Route
Spec Http2Route Action - Action to take if a match is determined.
- Match
Route
Spec Http2Route Match - Criteria for determining an HTTP request match.
- Retry
Policy RouteSpec Http2Route Retry Policy - Retry policy.
- Timeout
Route
Spec Http2Route Timeout - Types of timeouts.
- action
Route
Spec Http2Route Action - Action to take if a match is determined.
- match
Route
Spec Http2Route Match - Criteria for determining an HTTP request match.
- retry
Policy RouteSpec Http2Route Retry Policy - Retry policy.
- timeout
Route
Spec Http2Route Timeout - Types of timeouts.
- action
Route
Spec Http2Route Action - Action to take if a match is determined.
- match
Route
Spec Http2Route Match - Criteria for determining an HTTP request match.
- retry
Policy RouteSpec Http2Route Retry Policy - Retry policy.
- timeout
Route
Spec Http2Route Timeout - Types of timeouts.
- action
Route
Spec Http2Route Action - Action to take if a match is determined.
- match
Route
Spec Http2Route Match - Criteria for determining an HTTP request match.
- retry_
policy RouteSpec Http2Route Retry Policy - Retry policy.
- timeout
Route
Spec 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.
- retry
Policy Property Map - Retry policy.
- timeout Property Map
- Types of timeouts.
RouteSpecHttp2RouteAction, RouteSpecHttp2RouteActionArgs
- Weighted
Targets 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.
- Weighted
Targets []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 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.
- weighted
Targets 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.
- weighted
Targets 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
- Virtual
Node 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.
- Virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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<Route
Spec 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
Route
Spec 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.
- Query
Parameters 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
[]Route
Spec 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
Route
Spec 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.
- Query
Parameters []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<Route
Spec 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
Route
Spec 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.
- query
Parameters 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
Route
Spec 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
Route
Spec 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.
- query
Parameters 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[Route
Spec 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
Route
Spec 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.
- query
Parameters 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 thematch
method and value. Default isfalse
. - Match
Route
Spec 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 thematch
method and value. Default isfalse
. - Match
Route
Spec 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 thematch
method and value. Default isfalse
. - match
Route
Spec 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 thematch
method and value. Default isfalse
. - match
Route
Spec 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 thematch
method and value. Default isfalse
. - match
Route
Spec 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 thematch
method 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec Http2Route Match Query Parameter Match - The query parameter to match on.
- Name string
- Name for the query parameter that will be matched on.
- Match
Route
Spec Http2Route Match Query Parameter Match - The query parameter to match on.
- name String
- Name for the query parameter that will be matched on.
- match
Route
Spec Http2Route Match Query Parameter Match - The query parameter to match on.
- name string
- Name for the query parameter that will be matched on.
- match
Route
Spec Http2Route Match Query Parameter Match - The query parameter to match on.
- name str
- Name for the query parameter that will be matched on.
- match
Route
Spec 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
- Max
Retries int - Maximum number of retries.
- Per
Retry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout - Per-retry timeout.
- Http
Retry 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). - Tcp
Retry 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 fortcp_retry_events
.
- Max
Retries int - Maximum number of retries.
- Per
Retry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout - Per-retry timeout.
- Http
Retry []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). - Tcp
Retry []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 fortcp_retry_events
.
- max
Retries Integer - Maximum number of retries.
- per
Retry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout - Per-retry timeout.
- http
Retry 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). - tcp
Retry 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 fortcp_retry_events
.
- max
Retries number - Maximum number of retries.
- per
Retry RouteTimeout Spec Http2Route Retry Policy Per Retry Timeout - Per-retry timeout.
- http
Retry 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). - tcp
Retry 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 fortcp_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 fortcp_retry_events
.
- max
Retries Number - Maximum number of retries.
- per
Retry Property MapTimeout - Per-retry timeout.
- http
Retry 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). - tcp
Retry 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 fortcp_retry_events
.
RouteSpecHttp2RouteRetryPolicyPerRetryTimeout, RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs
RouteSpecHttp2RouteTimeout, RouteSpecHttp2RouteTimeoutArgs
- Idle
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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.
- per
Request Property Map - Per request timeout.
RouteSpecHttp2RouteTimeoutIdle, RouteSpecHttp2RouteTimeoutIdleArgs
RouteSpecHttp2RouteTimeoutPerRequest, RouteSpecHttp2RouteTimeoutPerRequestArgs
RouteSpecHttpRoute, RouteSpecHttpRouteArgs
- Action
Route
Spec Http Route Action - Action to take if a match is determined.
- Match
Route
Spec Http Route Match - Criteria for determining an HTTP request match.
- Retry
Policy RouteSpec Http Route Retry Policy - Retry policy.
- Timeout
Route
Spec Http Route Timeout - Types of timeouts.
- Action
Route
Spec Http Route Action - Action to take if a match is determined.
- Match
Route
Spec Http Route Match - Criteria for determining an HTTP request match.
- Retry
Policy RouteSpec Http Route Retry Policy - Retry policy.
- Timeout
Route
Spec Http Route Timeout - Types of timeouts.
- action
Route
Spec Http Route Action - Action to take if a match is determined.
- match
Route
Spec Http Route Match - Criteria for determining an HTTP request match.
- retry
Policy RouteSpec Http Route Retry Policy - Retry policy.
- timeout
Route
Spec Http Route Timeout - Types of timeouts.
- action
Route
Spec Http Route Action - Action to take if a match is determined.
- match
Route
Spec Http Route Match - Criteria for determining an HTTP request match.
- retry
Policy RouteSpec Http Route Retry Policy - Retry policy.
- timeout
Route
Spec Http Route Timeout - Types of timeouts.
- action
Route
Spec Http Route Action - Action to take if a match is determined.
- match
Route
Spec Http Route Match - Criteria for determining an HTTP request match.
- retry_
policy RouteSpec Http Route Retry Policy - Retry policy.
- timeout
Route
Spec 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.
- retry
Policy Property Map - Retry policy.
- timeout Property Map
- Types of timeouts.
RouteSpecHttpRouteAction, RouteSpecHttpRouteActionArgs
- Weighted
Targets 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.
- Weighted
Targets []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 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.
- weighted
Targets 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.
- weighted
Targets 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
- Virtual
Node 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.
- Virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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<Route
Spec 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
Route
Spec 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.
- Query
Parameters 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
[]Route
Spec 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
Route
Spec 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.
- Query
Parameters []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<Route
Spec 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
Route
Spec 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.
- query
Parameters 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
Route
Spec 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
Route
Spec 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.
- query
Parameters 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[Route
Spec 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
Route
Spec 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.
- query
Parameters 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 thematch
method and value. Default isfalse
. - Match
Route
Spec 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 thematch
method and value. Default isfalse
. - Match
Route
Spec 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 thematch
method and value. Default isfalse
. - match
Route
Spec 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 thematch
method and value. Default isfalse
. - match
Route
Spec 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 thematch
method and value. Default isfalse
. - match
Route
Spec 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 thematch
method 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
- Max
Retries int - Maximum number of retries.
- Per
Retry RouteTimeout Spec Http Route Retry Policy Per Retry Timeout - Per-retry timeout.
- Http
Retry 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). - Tcp
Retry 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 fortcp_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 []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). - Tcp
Retry []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 fortcp_retry_events
.
- max
Retries Integer - Maximum number of retries.
- per
Retry RouteTimeout Spec Http Route Retry Policy Per Retry Timeout - Per-retry timeout.
- http
Retry 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). - tcp
Retry 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 fortcp_retry_events
.
- max
Retries number - Maximum number of retries.
- per
Retry RouteTimeout Spec Http Route Retry Policy Per Retry Timeout - Per-retry timeout.
- http
Retry 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). - tcp
Retry 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 fortcp_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 fortcp_retry_events
.
- max
Retries Number - Maximum number of retries.
- per
Retry Property MapTimeout - Per-retry timeout.
- http
Retry 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). - tcp
Retry 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 fortcp_retry_events
.
RouteSpecHttpRouteRetryPolicyPerRetryTimeout, RouteSpecHttpRouteRetryPolicyPerRetryTimeoutArgs
RouteSpecHttpRouteTimeout, RouteSpecHttpRouteTimeoutArgs
- Idle
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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
Route
Spec 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.
- per
Request Property Map - Per request timeout.
RouteSpecHttpRouteTimeoutIdle, RouteSpecHttpRouteTimeoutIdleArgs
RouteSpecHttpRouteTimeoutPerRequest, RouteSpecHttpRouteTimeoutPerRequestArgs
RouteSpecTcpRoute, RouteSpecTcpRouteArgs
- Action
Route
Spec Tcp Route Action - Action to take if a match is determined.
- Match
Route
Spec Tcp Route Match - Timeout
Route
Spec Tcp Route Timeout - Types of timeouts.
- Action
Route
Spec Tcp Route Action - Action to take if a match is determined.
- Match
Route
Spec Tcp Route Match - Timeout
Route
Spec Tcp Route Timeout - Types of timeouts.
- action
Route
Spec Tcp Route Action - Action to take if a match is determined.
- match
Route
Spec Tcp Route Match - timeout
Route
Spec Tcp Route Timeout - Types of timeouts.
- action
Route
Spec Tcp Route Action - Action to take if a match is determined.
- match
Route
Spec Tcp Route Match - timeout
Route
Spec Tcp Route Timeout - Types of timeouts.
- action
Route
Spec Tcp Route Action - Action to take if a match is determined.
- match
Route
Spec Tcp Route Match - timeout
Route
Spec 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
- Weighted
Targets 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.
- Weighted
Targets []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 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.
- weighted
Targets 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.
- weighted
Targets 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
- Virtual
Node 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.
- Virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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.
- virtual
Node 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
Route
Spec Tcp Route Timeout Idle - Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- Idle
Route
Spec Tcp Route Timeout Idle - Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- idle
Route
Spec Tcp Route Timeout Idle - Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- idle
Route
Spec Tcp Route Timeout Idle - Idle timeout. An idle timeout bounds the amount of time that a connection may be idle.
- idle
Route
Spec 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
aws
Terraform Provider.