Struct aws_sdk_wafv2::types::builders::VisibilityConfigBuilder
source · #[non_exhaustive]pub struct VisibilityConfigBuilder { /* private fields */ }
Expand description
A builder for VisibilityConfig
.
Implementations§
source§impl VisibilityConfigBuilder
impl VisibilityConfigBuilder
sourcepub fn sampled_requests_enabled(self, input: bool) -> Self
pub fn sampled_requests_enabled(self, input: bool) -> Self
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.
This field is required.sourcepub fn set_sampled_requests_enabled(self, input: Option<bool>) -> Self
pub fn set_sampled_requests_enabled(self, input: Option<bool>) -> Self
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 get_sampled_requests_enabled(&self) -> &Option<bool>
pub fn get_sampled_requests_enabled(&self) -> &Option<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, input: bool) -> Self
pub fn cloud_watch_metrics_enabled(self, input: bool) -> Self
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.
This field is required.sourcepub fn set_cloud_watch_metrics_enabled(self, input: Option<bool>) -> Self
pub fn set_cloud_watch_metrics_enabled(self, input: Option<bool>) -> Self
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 get_cloud_watch_metrics_enabled(&self) -> &Option<bool>
pub fn get_cloud_watch_metrics_enabled(&self) -> &Option<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, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
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
.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
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
.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<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
.
sourcepub fn build(self) -> Result<VisibilityConfig, BuildError>
pub fn build(self) -> Result<VisibilityConfig, BuildError>
Consumes the builder and constructs a VisibilityConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VisibilityConfigBuilder
impl Clone for VisibilityConfigBuilder
source§fn clone(&self) -> VisibilityConfigBuilder
fn clone(&self) -> VisibilityConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VisibilityConfigBuilder
impl Debug for VisibilityConfigBuilder
source§impl Default for VisibilityConfigBuilder
impl Default for VisibilityConfigBuilder
source§fn default() -> VisibilityConfigBuilder
fn default() -> VisibilityConfigBuilder
source§impl PartialEq for VisibilityConfigBuilder
impl PartialEq for VisibilityConfigBuilder
source§fn eq(&self, other: &VisibilityConfigBuilder) -> bool
fn eq(&self, other: &VisibilityConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VisibilityConfigBuilder
Auto Trait Implementations§
impl Freeze for VisibilityConfigBuilder
impl RefUnwindSafe for VisibilityConfigBuilder
impl Send for VisibilityConfigBuilder
impl Sync for VisibilityConfigBuilder
impl Unpin for VisibilityConfigBuilder
impl UnwindSafe for VisibilityConfigBuilder
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