

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::WAFv2::WebACL AnalyticsConfig

Specifies the security analytics configuration for the web ACL. Security analytics shows the web ACL's request log data from multiple Amazon Regions in a single dashboard in the Amazon WAF console. 

When you enable security analytics, you authorize Amazon to transfer and store full request logs outside the Amazon Region where the web ACL is hosted. For regional web ACLs, security analytics is disabled by default when you omit this configuration. For web ACLs that protect CloudFront distributions (global web ACLs), security analytics is enabled by default. For more information, see [Enabling security analytics for a protection pack (web ACL)](https://docs.amazonaws.cn/waf/latest/developerguide/web-acl-security-analytics-enabling.html) in the *Amazon WAF Developer Guide*. 

## Syntax
<a name="aws-properties-wafv2-webacl-analyticsconfig-syntax"></a>

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

### JSON
<a name="aws-properties-wafv2-webacl-analyticsconfig-syntax.json"></a>

```json
{
  "[Mode](#cfn-wafv2-webacl-analyticsconfig-mode)" : {{String}}
}
```

### YAML
<a name="aws-properties-wafv2-webacl-analyticsconfig-syntax.yaml"></a>

```yaml
  [Mode](#cfn-wafv2-webacl-analyticsconfig-mode): {{String}}
```

## Properties
<a name="aws-properties-wafv2-webacl-analyticsconfig-properties"></a>

`Mode`  <a name="cfn-wafv2-webacl-analyticsconfig-mode"></a>
The security analytics mode for the web ACL. Valid values:  
+ `CROSS_REGION` - Enables security analytics. Amazon WAF transfers and stores the web ACL's request logs outside the Amazon Region where the web ACL is hosted, for aggregation and processing. 
+ `DISABLED` - Disables security analytics. Amazon WAF stops transferring the web ACL's request logs. 
*Required*: Yes  
*Type*: String  
*Allowed values*: `CROSS_REGION | DISABLED`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)