

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::GatewayRoute HttpGatewayRouteAction
<a name="aws-properties-appmesh-gatewayroute-httpgatewayrouteaction"></a>

An object that represents the action to take if a match is determined.

## Syntax
<a name="aws-properties-appmesh-gatewayroute-httpgatewayrouteaction-syntax"></a>

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

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

```
{
  "[Rewrite](#cfn-appmesh-gatewayroute-httpgatewayrouteaction-rewrite)" : HttpGatewayRouteRewrite,
  "[Target](#cfn-appmesh-gatewayroute-httpgatewayrouteaction-target)" : GatewayRouteTarget
}
```

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

```
  [Rewrite](#cfn-appmesh-gatewayroute-httpgatewayrouteaction-rewrite): 
    HttpGatewayRouteRewrite
  [Target](#cfn-appmesh-gatewayroute-httpgatewayrouteaction-target): 
    GatewayRouteTarget
```

## Properties
<a name="aws-properties-appmesh-gatewayroute-httpgatewayrouteaction-properties"></a>

`Rewrite`  <a name="cfn-appmesh-gatewayroute-httpgatewayrouteaction-rewrite"></a>
The gateway route action to rewrite.  
*Required*: No  
*Type*: [HttpGatewayRouteRewrite](aws-properties-appmesh-gatewayroute-httpgatewayrouterewrite.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Target`  <a name="cfn-appmesh-gatewayroute-httpgatewayrouteaction-target"></a>
An object that represents the target that traffic is routed to when a request matches the gateway route.  
*Required*: Yes  
*Type*: [GatewayRouteTarget](aws-properties-appmesh-gatewayroute-gatewayroutetarget.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)