

# AwsWafv2VisibilityConfigDetails
<a name="API_AwsWafv2VisibilityConfigDetails"></a>

 Defines and enables Amazon CloudWatch metrics and web request sample collection. 

## Contents
<a name="API_AwsWafv2VisibilityConfigDetails_Contents"></a>

 ** CloudWatchMetricsEnabled **   <a name="securityhub-Type-AwsWafv2VisibilityConfigDetails-CloudWatchMetricsEnabled"></a>
 A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see [Amazon WAF metrics and dimensions](https://docs.amazonaws.cn/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics) in the * Amazon WAF Developer Guide*.   
Type: Boolean  
Required: No

 ** MetricName **   <a name="securityhub-Type-AwsWafv2VisibilityConfigDetails-MetricName"></a>
 A name of the Amazon CloudWatch metric.   
Type: String  
Pattern: `.*\S.*`   
Required: No

 ** SampledRequestsEnabled **   <a name="securityhub-Type-AwsWafv2VisibilityConfigDetails-SampledRequestsEnabled"></a>
 A boolean indicating whether Amazon WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the Amazon WAF console.   
Type: Boolean  
Required: No

## See Also
<a name="API_AwsWafv2VisibilityConfigDetails_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/securityhub-2018-10-26/AwsWafv2VisibilityConfigDetails) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/securityhub-2018-10-26/AwsWafv2VisibilityConfigDetails) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/securityhub-2018-10-26/AwsWafv2VisibilityConfigDetails) 