#[non_exhaustive]pub struct AwsWafv2CustomResponseDetails { /* private fields */ }
Expand description
A custom response to send to the client. You can define a custom response for rule actions and default web ACL actions that are set to block.
Implementations§
source§impl AwsWafv2CustomResponseDetails
impl AwsWafv2CustomResponseDetails
sourcepub fn custom_response_body_key(&self) -> Option<&str>
pub fn custom_response_body_key(&self) -> Option<&str>
References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block.
sourcepub fn response_code(&self) -> i32
pub fn response_code(&self) -> i32
The HTTP status code to return to the client. For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the WAF Developer Guide.
sourcepub fn response_headers(&self) -> Option<&[AwsWafv2CustomHttpHeader]>
pub fn response_headers(&self) -> Option<&[AwsWafv2CustomHttpHeader]>
The HTTP headers to use in the response.
source§impl AwsWafv2CustomResponseDetails
impl AwsWafv2CustomResponseDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsWafv2CustomResponseDetails
.
Trait Implementations§
source§impl Clone for AwsWafv2CustomResponseDetails
impl Clone for AwsWafv2CustomResponseDetails
source§fn clone(&self) -> AwsWafv2CustomResponseDetails
fn clone(&self) -> AwsWafv2CustomResponseDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<AwsWafv2CustomResponseDetails> for AwsWafv2CustomResponseDetails
impl PartialEq<AwsWafv2CustomResponseDetails> for AwsWafv2CustomResponseDetails
source§fn eq(&self, other: &AwsWafv2CustomResponseDetails) -> bool
fn eq(&self, other: &AwsWafv2CustomResponseDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.