public static final class CfnWebACL.VisibilityConfigProperty.Builder
extends java.lang.Object
CfnWebACL.VisibilityConfigProperty
Constructor and Description |
---|
Builder() |
public CfnWebACL.VisibilityConfigProperty.Builder cloudWatchMetricsEnabled(java.lang.Boolean cloudWatchMetricsEnabled)
CfnWebACL.VisibilityConfigProperty.getCloudWatchMetricsEnabled()
cloudWatchMetricsEnabled
- A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. This parameter is required.
For the list of available metrics, see AWS WAF Metrics in the AWS WAF Developer Guide .this
public CfnWebACL.VisibilityConfigProperty.Builder cloudWatchMetricsEnabled(IResolvable cloudWatchMetricsEnabled)
CfnWebACL.VisibilityConfigProperty.getCloudWatchMetricsEnabled()
cloudWatchMetricsEnabled
- A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. This parameter is required.
For the list of available metrics, see AWS WAF Metrics in the AWS WAF Developer Guide .this
public CfnWebACL.VisibilityConfigProperty.Builder metricName(java.lang.String metricName)
CfnWebACL.VisibilityConfigProperty.getMetricName()
metricName
- A name of the Amazon CloudWatch metric dimension. This parameter is required.
The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names that are reserved for AWS WAF , for example All
and Default_Action
.this
public CfnWebACL.VisibilityConfigProperty.Builder sampledRequestsEnabled(java.lang.Boolean sampledRequestsEnabled)
CfnWebACL.VisibilityConfigProperty.getSampledRequestsEnabled()
sampledRequestsEnabled
- A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. This parameter is required.
You can view the sampled requests through the AWS WAF console.this
public CfnWebACL.VisibilityConfigProperty.Builder sampledRequestsEnabled(IResolvable sampledRequestsEnabled)
CfnWebACL.VisibilityConfigProperty.getSampledRequestsEnabled()
sampledRequestsEnabled
- A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. This parameter is required.
You can view the sampled requests through the AWS WAF console.this
public CfnWebACL.VisibilityConfigProperty build()
CfnWebACL.VisibilityConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided