Struct aws_sdk_wafv2::types::builders::RateLimitUriPathBuilder
source · #[non_exhaustive]pub struct RateLimitUriPathBuilder { /* private fields */ }
Expand description
A builder for RateLimitUriPath
.
Implementations§
source§impl RateLimitUriPathBuilder
impl RateLimitUriPathBuilder
sourcepub fn text_transformations(self, input: TextTransformation) -> Self
pub fn text_transformations(self, input: TextTransformation) -> Self
Appends an item to text_transformations
.
To override the contents of this collection use set_text_transformations
.
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch
request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
sourcepub fn set_text_transformations(
self,
input: Option<Vec<TextTransformation>>
) -> Self
pub fn set_text_transformations( self, input: Option<Vec<TextTransformation>> ) -> Self
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch
request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
sourcepub fn get_text_transformations(&self) -> &Option<Vec<TextTransformation>>
pub fn get_text_transformations(&self) -> &Option<Vec<TextTransformation>>
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch
request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
sourcepub fn build(self) -> Result<RateLimitUriPath, BuildError>
pub fn build(self) -> Result<RateLimitUriPath, BuildError>
Consumes the builder and constructs a RateLimitUriPath
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RateLimitUriPathBuilder
impl Clone for RateLimitUriPathBuilder
source§fn clone(&self) -> RateLimitUriPathBuilder
fn clone(&self) -> RateLimitUriPathBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RateLimitUriPathBuilder
impl Debug for RateLimitUriPathBuilder
source§impl Default for RateLimitUriPathBuilder
impl Default for RateLimitUriPathBuilder
source§fn default() -> RateLimitUriPathBuilder
fn default() -> RateLimitUriPathBuilder
source§impl PartialEq for RateLimitUriPathBuilder
impl PartialEq for RateLimitUriPathBuilder
source§fn eq(&self, other: &RateLimitUriPathBuilder) -> bool
fn eq(&self, other: &RateLimitUriPathBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RateLimitUriPathBuilder
Auto Trait Implementations§
impl Freeze for RateLimitUriPathBuilder
impl RefUnwindSafe for RateLimitUriPathBuilder
impl Send for RateLimitUriPathBuilder
impl Sync for RateLimitUriPathBuilder
impl Unpin for RateLimitUriPathBuilder
impl UnwindSafe for RateLimitUriPathBuilder
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