Struct aws_sdk_wafv2::types::builders::CookiesBuilder
source · #[non_exhaustive]pub struct CookiesBuilder { /* private fields */ }
Expand description
A builder for Cookies
.
Implementations§
source§impl CookiesBuilder
impl CookiesBuilder
sourcepub fn match_pattern(self, input: CookieMatchPattern) -> Self
pub fn match_pattern(self, input: CookieMatchPattern) -> Self
The filter to use to identify the subset of cookies to inspect in a web request.
You must specify exactly one setting: either All
, IncludedCookies
, or ExcludedCookies
.
Example JSON: "MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }
sourcepub fn set_match_pattern(self, input: Option<CookieMatchPattern>) -> Self
pub fn set_match_pattern(self, input: Option<CookieMatchPattern>) -> Self
The filter to use to identify the subset of cookies to inspect in a web request.
You must specify exactly one setting: either All
, IncludedCookies
, or ExcludedCookies
.
Example JSON: "MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }
sourcepub fn get_match_pattern(&self) -> &Option<CookieMatchPattern>
pub fn get_match_pattern(&self) -> &Option<CookieMatchPattern>
The filter to use to identify the subset of cookies to inspect in a web request.
You must specify exactly one setting: either All
, IncludedCookies
, or ExcludedCookies
.
Example JSON: "MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }
sourcepub fn match_scope(self, input: MapMatchScope) -> Self
pub fn match_scope(self, input: MapMatchScope) -> Self
The parts of the cookies to inspect with the rule inspection criteria. If you specify ALL
, WAF inspects both keys and values.
All
does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical AND
statement to combine two match rules, one that inspects the keys and another that inspects the values.
sourcepub fn set_match_scope(self, input: Option<MapMatchScope>) -> Self
pub fn set_match_scope(self, input: Option<MapMatchScope>) -> Self
The parts of the cookies to inspect with the rule inspection criteria. If you specify ALL
, WAF inspects both keys and values.
All
does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical AND
statement to combine two match rules, one that inspects the keys and another that inspects the values.
sourcepub fn get_match_scope(&self) -> &Option<MapMatchScope>
pub fn get_match_scope(&self) -> &Option<MapMatchScope>
The parts of the cookies to inspect with the rule inspection criteria. If you specify ALL
, WAF inspects both keys and values.
All
does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical AND
statement to combine two match rules, one that inspects the keys and another that inspects the values.
sourcepub fn oversize_handling(self, input: OversizeHandling) -> Self
pub fn oversize_handling(self, input: OversizeHandling) -> Self
What WAF should do if the cookies of the request are more numerous or larger than WAF can inspect. WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to WAF.
The options for oversize handling are the following:
-
CONTINUE
- Inspect the available cookies normally, according to the rule inspection criteria. -
MATCH
- Treat the web request as matching the rule statement. WAF applies the rule action to the request. -
NO_MATCH
- Treat the web request as not matching the rule statement.
sourcepub fn set_oversize_handling(self, input: Option<OversizeHandling>) -> Self
pub fn set_oversize_handling(self, input: Option<OversizeHandling>) -> Self
What WAF should do if the cookies of the request are more numerous or larger than WAF can inspect. WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to WAF.
The options for oversize handling are the following:
-
CONTINUE
- Inspect the available cookies normally, according to the rule inspection criteria. -
MATCH
- Treat the web request as matching the rule statement. WAF applies the rule action to the request. -
NO_MATCH
- Treat the web request as not matching the rule statement.
sourcepub fn get_oversize_handling(&self) -> &Option<OversizeHandling>
pub fn get_oversize_handling(&self) -> &Option<OversizeHandling>
What WAF should do if the cookies of the request are more numerous or larger than WAF can inspect. WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to WAF.
The options for oversize handling are the following:
-
CONTINUE
- Inspect the available cookies normally, according to the rule inspection criteria. -
MATCH
- Treat the web request as matching the rule statement. WAF applies the rule action to the request. -
NO_MATCH
- Treat the web request as not matching the rule statement.
Trait Implementations§
source§impl Clone for CookiesBuilder
impl Clone for CookiesBuilder
source§fn clone(&self) -> CookiesBuilder
fn clone(&self) -> CookiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CookiesBuilder
impl Debug for CookiesBuilder
source§impl Default for CookiesBuilder
impl Default for CookiesBuilder
source§fn default() -> CookiesBuilder
fn default() -> CookiesBuilder
source§impl PartialEq for CookiesBuilder
impl PartialEq for CookiesBuilder
source§fn eq(&self, other: &CookiesBuilder) -> bool
fn eq(&self, other: &CookiesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.