Struct aws_sdk_wafv2::types::ResponseInspectionJson
source · #[non_exhaustive]pub struct ResponseInspectionJson {
pub identifier: String,
pub success_values: Vec<String>,
pub failure_values: Vec<String>,
}
Expand description
Configures inspection of the response JSON. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON. 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.identifier: String
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and "Identifier": [ "/sign-up/success" ]
success_values: Vec<String>
Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
failure_values: Vec<String>
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
Implementations§
source§impl ResponseInspectionJson
impl ResponseInspectionJson
sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and "Identifier": [ "/sign-up/success" ]
sourcepub fn success_values(&self) -> &[String]
pub fn success_values(&self) -> &[String]
Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
sourcepub fn failure_values(&self) -> &[String]
pub fn failure_values(&self) -> &[String]
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
source§impl ResponseInspectionJson
impl ResponseInspectionJson
sourcepub fn builder() -> ResponseInspectionJsonBuilder
pub fn builder() -> ResponseInspectionJsonBuilder
Creates a new builder-style object to manufacture ResponseInspectionJson
.
Trait Implementations§
source§impl Clone for ResponseInspectionJson
impl Clone for ResponseInspectionJson
source§fn clone(&self) -> ResponseInspectionJson
fn clone(&self) -> ResponseInspectionJson
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseInspectionJson
impl Debug for ResponseInspectionJson
source§impl PartialEq for ResponseInspectionJson
impl PartialEq for ResponseInspectionJson
source§fn eq(&self, other: &ResponseInspectionJson) -> bool
fn eq(&self, other: &ResponseInspectionJson) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseInspectionJson
Auto Trait Implementations§
impl Freeze for ResponseInspectionJson
impl RefUnwindSafe for ResponseInspectionJson
impl Send for ResponseInspectionJson
impl Sync for ResponseInspectionJson
impl Unpin for ResponseInspectionJson
impl UnwindSafe for ResponseInspectionJson
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