public static final class CfnRuleGroup.VisibilityConfigProperty.Builder
extends java.lang.Object
CfnRuleGroup.VisibilityConfigProperty
Constructor and Description |
---|
Builder() |
public CfnRuleGroup.VisibilityConfigProperty.Builder cloudWatchMetricsEnabled(java.lang.Boolean cloudWatchMetricsEnabled)
CfnRuleGroup.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 CfnRuleGroup.VisibilityConfigProperty.Builder cloudWatchMetricsEnabled(IResolvable cloudWatchMetricsEnabled)
CfnRuleGroup.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 CfnRuleGroup.VisibilityConfigProperty.Builder metricName(java.lang.String metricName)
CfnRuleGroup.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 CfnRuleGroup.VisibilityConfigProperty.Builder sampledRequestsEnabled(java.lang.Boolean sampledRequestsEnabled)
CfnRuleGroup.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 CfnRuleGroup.VisibilityConfigProperty.Builder sampledRequestsEnabled(IResolvable sampledRequestsEnabled)
CfnRuleGroup.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 CfnRuleGroup.VisibilityConfigProperty build()
CfnRuleGroup.VisibilityConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided