Struct aws_sdk_wafv2::types::ResponseInspectionHeader
source · #[non_exhaustive]pub struct ResponseInspectionHeader {
pub name: Option<String>,
pub success_values: Option<Vec<String>>,
pub failure_values: Option<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: Option<String>The name of the header to match against. The name must be an exact match, including case.
JSON example: "Name": [ "RequestResult" ]
success_values: Option<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: Option<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) -> Option<&str>
pub fn name(&self) -> Option<&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) -> Option<&[String]>
pub fn success_values(&self) -> Option<&[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) -> Option<&[String]>
pub fn failure_values(&self) -> Option<&[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<ResponseInspectionHeader> for ResponseInspectionHeader
impl PartialEq<ResponseInspectionHeader> 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 ==.