Struct aws_sdk_wafv2::types::ResponseInspection
source · #[non_exhaustive]pub struct ResponseInspection {
pub status_code: Option<ResponseInspectionStatusCode>,
pub header: Option<ResponseInspectionHeader>,
pub body_contains: Option<ResponseInspectionBodyContains>,
pub json: Option<ResponseInspectionJson>,
}
Expand description
The criteria for inspecting responses to login requests and account creation requests, used by the ATP and ACFP rule groups to track login and account creation success and failure rates.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
The rule groups evaluates the responses that your protected resources send back to client login and account creation attempts, keeping count of successful and failed attempts from each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses with too much suspicious activity in a short amount of time.
This is part of the AWSManagedRulesATPRuleSet
and AWSManagedRulesACFPRuleSet
configurations in ManagedRuleGroupConfig
.
Enable response inspection by configuring exactly one component of the response to inspect, for example, Header
or StatusCode
. You can't configure more than one component for inspection. If you don't configure any of the response inspection options, response inspection is disabled.
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.status_code: Option<ResponseInspectionStatusCode>
Configures inspection of the response status code for success and failure indicators.
header: Option<ResponseInspectionHeader>
Configures inspection of the response header for success and failure indicators.
body_contains: Option<ResponseInspectionBodyContains>
Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
json: Option<ResponseInspectionJson>
Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
Implementations§
source§impl ResponseInspection
impl ResponseInspection
sourcepub fn status_code(&self) -> Option<&ResponseInspectionStatusCode>
pub fn status_code(&self) -> Option<&ResponseInspectionStatusCode>
Configures inspection of the response status code for success and failure indicators.
sourcepub fn header(&self) -> Option<&ResponseInspectionHeader>
pub fn header(&self) -> Option<&ResponseInspectionHeader>
Configures inspection of the response header for success and failure indicators.
sourcepub fn body_contains(&self) -> Option<&ResponseInspectionBodyContains>
pub fn body_contains(&self) -> Option<&ResponseInspectionBodyContains>
Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
sourcepub fn json(&self) -> Option<&ResponseInspectionJson>
pub fn json(&self) -> Option<&ResponseInspectionJson>
Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
source§impl ResponseInspection
impl ResponseInspection
sourcepub fn builder() -> ResponseInspectionBuilder
pub fn builder() -> ResponseInspectionBuilder
Creates a new builder-style object to manufacture ResponseInspection
.
Trait Implementations§
source§impl Clone for ResponseInspection
impl Clone for ResponseInspection
source§fn clone(&self) -> ResponseInspection
fn clone(&self) -> ResponseInspection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseInspection
impl Debug for ResponseInspection
source§impl PartialEq for ResponseInspection
impl PartialEq for ResponseInspection
source§fn eq(&self, other: &ResponseInspection) -> bool
fn eq(&self, other: &ResponseInspection) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseInspection
Auto Trait Implementations§
impl Freeze for ResponseInspection
impl RefUnwindSafe for ResponseInspection
impl Send for ResponseInspection
impl Sync for ResponseInspection
impl Unpin for ResponseInspection
impl UnwindSafe for ResponseInspection
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