Struct aws_sdk_wafv2::types::ResponseInspectionHeader
source · #[non_exhaustive]pub struct ResponseInspectionHeader {
pub name: String,
pub success_values: Vec<String>,
pub failure_values: Vec<String>,
}
Expand description
Configures inspection of the response header. 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.name: String
The name of the header to match against. The name must be an exact match, including case.
JSON example: "Name": [ "RequestResult" ]
success_values: Vec<String>
Values in the response header with the specified name 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 examples: "SuccessValues": [ "LoginPassed", "Successful login" ]
and "SuccessValues": [ "AccountCreated", "Successful account creation" ]
failure_values: Vec<String>
Values in the response header with the specified name 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 examples: "FailureValues": [ "LoginFailed", "Failed login" ]
and "FailureValues": [ "AccountCreationFailed" ]
Implementations§
source§impl ResponseInspectionHeader
impl ResponseInspectionHeader
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the header to match against. The name must be an exact match, including case.
JSON example: "Name": [ "RequestResult" ]
sourcepub fn success_values(&self) -> &[String]
pub fn success_values(&self) -> &[String]
Values in the response header with the specified name 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 examples: "SuccessValues": [ "LoginPassed", "Successful login" ]
and "SuccessValues": [ "AccountCreated", "Successful account creation" ]
sourcepub fn failure_values(&self) -> &[String]
pub fn failure_values(&self) -> &[String]
Values in the response header with the specified name 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 examples: "FailureValues": [ "LoginFailed", "Failed login" ]
and "FailureValues": [ "AccountCreationFailed" ]
source§impl ResponseInspectionHeader
impl ResponseInspectionHeader
sourcepub fn builder() -> ResponseInspectionHeaderBuilder
pub fn builder() -> ResponseInspectionHeaderBuilder
Creates a new builder-style object to manufacture ResponseInspectionHeader
.
Trait Implementations§
source§impl Clone for ResponseInspectionHeader
impl Clone for ResponseInspectionHeader
source§fn clone(&self) -> ResponseInspectionHeader
fn clone(&self) -> ResponseInspectionHeader
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseInspectionHeader
impl Debug for ResponseInspectionHeader
source§impl PartialEq for ResponseInspectionHeader
impl PartialEq for ResponseInspectionHeader
source§fn eq(&self, other: &ResponseInspectionHeader) -> bool
fn eq(&self, other: &ResponseInspectionHeader) -> bool
self
and other
values to be equal, and is used
by ==
.