

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::AppMesh::Route RouteSpec
<a name="aws-properties-appmesh-route-routespec"></a>

An object that represents a route specification. Specify one route type.

## Syntax
<a name="aws-properties-appmesh-route-routespec-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-appmesh-route-routespec-syntax.json"></a>

```
{
  "[GrpcRoute](#cfn-appmesh-route-routespec-grpcroute)" : GrpcRoute,
  "[Http2Route](#cfn-appmesh-route-routespec-http2route)" : HttpRoute,
  "[HttpRoute](#cfn-appmesh-route-routespec-httproute)" : HttpRoute,
  "[Priority](#cfn-appmesh-route-routespec-priority)" : Integer,
  "[TcpRoute](#cfn-appmesh-route-routespec-tcproute)" : TcpRoute
}
```

### YAML
<a name="aws-properties-appmesh-route-routespec-syntax.yaml"></a>

```
  [GrpcRoute](#cfn-appmesh-route-routespec-grpcroute): 
    GrpcRoute
  [Http2Route](#cfn-appmesh-route-routespec-http2route): 
    HttpRoute
  [HttpRoute](#cfn-appmesh-route-routespec-httproute): 
    HttpRoute
  [Priority](#cfn-appmesh-route-routespec-priority): Integer
  [TcpRoute](#cfn-appmesh-route-routespec-tcproute): 
    TcpRoute
```

## Properties
<a name="aws-properties-appmesh-route-routespec-properties"></a>

`GrpcRoute`  <a name="cfn-appmesh-route-routespec-grpcroute"></a>
An object that represents the specification of a gRPC route.  
*Required*: No  
*Type*: [GrpcRoute](aws-properties-appmesh-route-grpcroute.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Http2Route`  <a name="cfn-appmesh-route-routespec-http2route"></a>
An object that represents the specification of an HTTP/2 route.  
*Required*: No  
*Type*: [HttpRoute](aws-properties-appmesh-route-httproute.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`HttpRoute`  <a name="cfn-appmesh-route-routespec-httproute"></a>
An object that represents the specification of an HTTP route.  
*Required*: No  
*Type*: [HttpRoute](aws-properties-appmesh-route-httproute.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Priority`  <a name="cfn-appmesh-route-routespec-priority"></a>
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.  
*Required*: No  
*Type*: Integer  
*Minimum*: `0`  
*Maximum*: `1000`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TcpRoute`  <a name="cfn-appmesh-route-routespec-tcproute"></a>
An object that represents the specification of a TCP route.  
*Required*: No  
*Type*: [TcpRoute](aws-properties-appmesh-route-tcproute.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)