Struct aws_sdk_wafv2::types::builders::RateLimitCookieBuilder
source · #[non_exhaustive]pub struct RateLimitCookieBuilder { /* private fields */ }
Expand description
A builder for RateLimitCookie
.
Implementations§
source§impl RateLimitCookieBuilder
impl RateLimitCookieBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the cookie to use.
This field is required.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<RateLimitCookie, BuildError>
pub fn build(self) -> Result<RateLimitCookie, BuildError>
Consumes the builder and constructs a RateLimitCookie
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RateLimitCookieBuilder
impl Clone for RateLimitCookieBuilder
source§fn clone(&self) -> RateLimitCookieBuilder
fn clone(&self) -> RateLimitCookieBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RateLimitCookieBuilder
impl Debug for RateLimitCookieBuilder
source§impl Default for RateLimitCookieBuilder
impl Default for RateLimitCookieBuilder
source§fn default() -> RateLimitCookieBuilder
fn default() -> RateLimitCookieBuilder
source§impl PartialEq for RateLimitCookieBuilder
impl PartialEq for RateLimitCookieBuilder
source§fn eq(&self, other: &RateLimitCookieBuilder) -> bool
fn eq(&self, other: &RateLimitCookieBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.