Struct aws_sdk_wafv2::types::ResponseInspectionStatusCode
source · #[non_exhaustive]pub struct ResponseInspectionStatusCode {
pub success_codes: Vec<i32>,
pub failure_codes: Vec<i32>,
}
Expand description
Configures inspection of the response status code. 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_codes: Vec<i32>
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
failure_codes: Vec<i32>
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
Implementations§
source§impl ResponseInspectionStatusCode
impl ResponseInspectionStatusCode
sourcepub fn success_codes(&self) -> &[i32]
pub fn success_codes(&self) -> &[i32]
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
sourcepub fn failure_codes(&self) -> &[i32]
pub fn failure_codes(&self) -> &[i32]
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
source§impl ResponseInspectionStatusCode
impl ResponseInspectionStatusCode
sourcepub fn builder() -> ResponseInspectionStatusCodeBuilder
pub fn builder() -> ResponseInspectionStatusCodeBuilder
Creates a new builder-style object to manufacture ResponseInspectionStatusCode
.
Trait Implementations§
source§impl Clone for ResponseInspectionStatusCode
impl Clone for ResponseInspectionStatusCode
source§fn clone(&self) -> ResponseInspectionStatusCode
fn clone(&self) -> ResponseInspectionStatusCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseInspectionStatusCode
impl Debug for ResponseInspectionStatusCode
source§impl PartialEq for ResponseInspectionStatusCode
impl PartialEq for ResponseInspectionStatusCode
source§fn eq(&self, other: &ResponseInspectionStatusCode) -> bool
fn eq(&self, other: &ResponseInspectionStatusCode) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseInspectionStatusCode
Auto Trait Implementations§
impl Freeze for ResponseInspectionStatusCode
impl RefUnwindSafe for ResponseInspectionStatusCode
impl Send for ResponseInspectionStatusCode
impl Sync for ResponseInspectionStatusCode
impl Unpin for ResponseInspectionStatusCode
impl UnwindSafe for ResponseInspectionStatusCode
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