Struct aws_sdk_wafv2::model::VisibilityConfig
source · [−]#[non_exhaustive]pub struct VisibilityConfig {
pub sampled_requests_enabled: bool,
pub cloud_watch_metrics_enabled: bool,
pub metric_name: Option<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: boolA 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.
cloud_watch_metrics_enabled: boolA boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics.
metric_name: Option<String>A name of the Amazon CloudWatch metric. 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 WAF, for example "All" and "Default_Action."
Implementations
sourceimpl VisibilityConfig
impl VisibilityConfig
sourcepub fn sampled_requests_enabled(&self) -> bool
pub fn sampled_requests_enabled(&self) -> 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.
sourcepub fn cloud_watch_metrics_enabled(&self) -> bool
pub fn cloud_watch_metrics_enabled(&self) -> bool
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics.
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
A name of the Amazon CloudWatch metric. 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 WAF, for example "All" and "Default_Action."
sourceimpl VisibilityConfig
impl VisibilityConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VisibilityConfig
Trait Implementations
sourceimpl Clone for VisibilityConfig
impl Clone for VisibilityConfig
sourcefn clone(&self) -> VisibilityConfig
fn clone(&self) -> VisibilityConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for VisibilityConfig
impl Debug for VisibilityConfig
sourceimpl PartialEq<VisibilityConfig> for VisibilityConfig
impl PartialEq<VisibilityConfig> for VisibilityConfig
sourcefn eq(&self, other: &VisibilityConfig) -> bool
fn eq(&self, other: &VisibilityConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &VisibilityConfig) -> bool
fn ne(&self, other: &VisibilityConfig) -> bool
This method tests for !=.
impl StructuralPartialEq for VisibilityConfig
Auto Trait Implementations
impl RefUnwindSafe for VisibilityConfig
impl Send for VisibilityConfig
impl Sync for VisibilityConfig
impl Unpin for VisibilityConfig
impl UnwindSafe for VisibilityConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more