

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 GatewayRouteHostnameRewrite
<a name="aws-properties-appmesh-gatewayroute-gatewayroutehostnamerewrite"></a>

An object representing the gateway route host name to rewrite.

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

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

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

```
{
  "[DefaultTargetHostname](#cfn-appmesh-gatewayroute-gatewayroutehostnamerewrite-defaulttargethostname)" : {{String}}
}
```

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

```
  [DefaultTargetHostname](#cfn-appmesh-gatewayroute-gatewayroutehostnamerewrite-defaulttargethostname): {{String}}
```

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

`DefaultTargetHostname`  <a name="cfn-appmesh-gatewayroute-gatewayroutehostnamerewrite-defaulttargethostname"></a>
The default target host name to write to.  
*Required*: No  
*Type*: String  
*Allowed values*: `ENABLED | DISABLED`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)