#[non_exhaustive]pub struct ResponseInspectionBodyContains {
pub success_strings: Vec<String>,
pub failure_strings: Vec<String>,
}
Expand description
Configures inspection of the response body. WAF can inspect the first 65,536 bytes (64 KB) of the response body. This is part of the ResponseInspection
configuration for AWSManagedRulesATPRuleSet
and AWSManagedRulesACFPRuleSet
.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
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.success_strings: Vec<String>
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON examples: "SuccessStrings": [ "Login successful" ]
and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
failure_strings: Vec<String>
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Request failed" ]
Implementations§
source§impl ResponseInspectionBodyContains
impl ResponseInspectionBodyContains
sourcepub fn success_strings(&self) -> &[String]
pub fn success_strings(&self) -> &[String]
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON examples: "SuccessStrings": [ "Login successful" ]
and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
sourcepub fn failure_strings(&self) -> &[String]
pub fn failure_strings(&self) -> &[String]
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Request failed" ]
source§impl ResponseInspectionBodyContains
impl ResponseInspectionBodyContains
sourcepub fn builder() -> ResponseInspectionBodyContainsBuilder
pub fn builder() -> ResponseInspectionBodyContainsBuilder
Creates a new builder-style object to manufacture ResponseInspectionBodyContains
.
Trait Implementations§
source§impl Clone for ResponseInspectionBodyContains
impl Clone for ResponseInspectionBodyContains
source§fn clone(&self) -> ResponseInspectionBodyContains
fn clone(&self) -> ResponseInspectionBodyContains
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ResponseInspectionBodyContains
impl PartialEq for ResponseInspectionBodyContains
source§fn eq(&self, other: &ResponseInspectionBodyContains) -> bool
fn eq(&self, other: &ResponseInspectionBodyContains) -> bool
self
and other
values to be equal, and is used
by ==
.