@Stability(value=Stable)
public static interface CfnRuleGroup.VisibilityConfigProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;
VisibilityConfigProperty visibilityConfigProperty = VisibilityConfigProperty.builder()
.cloudWatchMetricsEnabled(false)
.metricName("metricName")
.sampledRequestsEnabled(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRuleGroup.VisibilityConfigProperty.Builder
A builder for
CfnRuleGroup.VisibilityConfigProperty |
static class |
CfnRuleGroup.VisibilityConfigProperty.Jsii$Proxy
An implementation for
CfnRuleGroup.VisibilityConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRuleGroup.VisibilityConfigProperty.Builder |
builder() |
Object |
getCloudWatchMetricsEnabled()
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch.
|
String |
getMetricName()
A name of the Amazon CloudWatch metric.
|
Object |
getSampledRequestsEnabled()
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules.
|
@Stability(value=Stable) @NotNull Object getCloudWatchMetricsEnabled()
For the list of available metrics, see AWS WAF Metrics .
@Stability(value=Stable) @NotNull String getMetricName()
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 reserved for AWS WAF , for example "All" and "Default_Action."
@Stability(value=Stable) @NotNull Object getSampledRequestsEnabled()
You can view the sampled requests through the AWS WAF console.
@Stability(value=Stable) static CfnRuleGroup.VisibilityConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.