Struct aws_sdk_wafv2::types::VisibilityConfig
source · #[non_exhaustive]pub struct VisibilityConfig {
pub sampled_requests_enabled: bool,
pub cloud_watch_metrics_enabled: bool,
pub metric_name: String,
}
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.sampled_requests_enabled: bool
Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
cloud_watch_metrics_enabled: bool
Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
metric_name: String
A name of the Amazon CloudWatch metric dimension. 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 WAF, for example All
and Default_Action
.
Implementations§
source§impl VisibilityConfig
impl VisibilityConfig
sourcepub fn sampled_requests_enabled(&self) -> bool
pub fn sampled_requests_enabled(&self) -> bool
Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
sourcepub fn cloud_watch_metrics_enabled(&self) -> bool
pub fn cloud_watch_metrics_enabled(&self) -> bool
Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics in the WAF Developer Guide.
For web ACLs, the metrics are for web requests that have the web ACL default action applied. WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see The web ACL default action in the WAF Developer Guide.
sourcepub fn metric_name(&self) -> &str
pub fn metric_name(&self) -> &str
A name of the Amazon CloudWatch metric dimension. 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 WAF, for example All
and Default_Action
.
source§impl VisibilityConfig
impl VisibilityConfig
sourcepub fn builder() -> VisibilityConfigBuilder
pub fn builder() -> VisibilityConfigBuilder
Creates a new builder-style object to manufacture VisibilityConfig
.
Trait Implementations§
source§impl Clone for VisibilityConfig
impl Clone for VisibilityConfig
source§fn clone(&self) -> VisibilityConfig
fn clone(&self) -> VisibilityConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VisibilityConfig
impl Debug for VisibilityConfig
source§impl PartialEq for VisibilityConfig
impl PartialEq for VisibilityConfig
source§fn eq(&self, other: &VisibilityConfig) -> bool
fn eq(&self, other: &VisibilityConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VisibilityConfig
Auto Trait Implementations§
impl Freeze for VisibilityConfig
impl RefUnwindSafe for VisibilityConfig
impl Send for VisibilityConfig
impl Sync for VisibilityConfig
impl Unpin for VisibilityConfig
impl UnwindSafe for VisibilityConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more