

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::EC2::VPNConnection VpnTunnelLogOptionsSpecification
<a name="aws-properties-ec2-vpnconnection-vpntunnellogoptionsspecification"></a>

Options for logging VPN tunnel activity.

## Syntax
<a name="aws-properties-ec2-vpnconnection-vpntunnellogoptionsspecification-syntax"></a>

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

### JSON
<a name="aws-properties-ec2-vpnconnection-vpntunnellogoptionsspecification-syntax.json"></a>

```
{
  "[CloudwatchLogOptions](#cfn-ec2-vpnconnection-vpntunnellogoptionsspecification-cloudwatchlogoptions)" : {{CloudwatchLogOptionsSpecification}}
}
```

### YAML
<a name="aws-properties-ec2-vpnconnection-vpntunnellogoptionsspecification-syntax.yaml"></a>

```
  [CloudwatchLogOptions](#cfn-ec2-vpnconnection-vpntunnellogoptionsspecification-cloudwatchlogoptions): {{
    CloudwatchLogOptionsSpecification}}
```

## Properties
<a name="aws-properties-ec2-vpnconnection-vpntunnellogoptionsspecification-properties"></a>

`CloudwatchLogOptions`  <a name="cfn-ec2-vpnconnection-vpntunnellogoptionsspecification-cloudwatchlogoptions"></a>
Options for sending VPN tunnel logs to CloudWatch.  
*Required*: No  
*Type*: [CloudwatchLogOptionsSpecification](aws-properties-ec2-vpnconnection-cloudwatchlogoptionsspecification.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)