#[non_exhaustive]pub struct AwsWafv2VisibilityConfigDetails {
pub cloud_watch_metrics_enabled: Option<bool>,
pub metric_name: Option<String>,
pub sampled_requests_enabled: Option<bool>,
}
Expand description
Defines and enables Amazon CloudWatch metrics and web request sample collection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cloud_watch_metrics_enabled: Option<bool>
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF metrics and dimensions in the WAF Developer Guide.
metric_name: Option<String>
A name of the Amazon CloudWatch metric.
sampled_requests_enabled: Option<bool>
A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
Implementations§
source§impl AwsWafv2VisibilityConfigDetails
impl AwsWafv2VisibilityConfigDetails
sourcepub fn cloud_watch_metrics_enabled(&self) -> Option<bool>
pub fn cloud_watch_metrics_enabled(&self) -> Option<bool>
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF metrics and dimensions in the WAF Developer Guide.
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
A name of the Amazon CloudWatch metric.
sourcepub fn sampled_requests_enabled(&self) -> Option<bool>
pub fn sampled_requests_enabled(&self) -> Option<bool>
A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
source§impl AwsWafv2VisibilityConfigDetails
impl AwsWafv2VisibilityConfigDetails
sourcepub fn builder() -> AwsWafv2VisibilityConfigDetailsBuilder
pub fn builder() -> AwsWafv2VisibilityConfigDetailsBuilder
Creates a new builder-style object to manufacture AwsWafv2VisibilityConfigDetails
.
Trait Implementations§
source§impl Clone for AwsWafv2VisibilityConfigDetails
impl Clone for AwsWafv2VisibilityConfigDetails
source§fn clone(&self) -> AwsWafv2VisibilityConfigDetails
fn clone(&self) -> AwsWafv2VisibilityConfigDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsWafv2VisibilityConfigDetails
impl PartialEq for AwsWafv2VisibilityConfigDetails
source§fn eq(&self, other: &AwsWafv2VisibilityConfigDetails) -> bool
fn eq(&self, other: &AwsWafv2VisibilityConfigDetails) -> bool
self
and other
values to be equal, and is used
by ==
.