Struct aws_sdk_wafv2::model::CaptchaAction  
source · [−]#[non_exhaustive]pub struct CaptchaAction {
    pub custom_request_handling: Option<CustomRequestHandling>,
}Expand description
Specifies that WAF should run a CAPTCHA check against the request: 
-  If the request includes a valid, unexpired CAPTCHAtoken, WAF allows the web request inspection to proceed to the next rule, similar to aCountAction.
-  If the request doesn't include a valid, unexpired CAPTCHAtoken, WAF discontinues the web ACL evaluation of the request and blocks it from going to its intended destination.WAF generates a response that it sends back to the client, which includes the following: -  The header x-amzn-waf-actionwith a value ofcaptcha.
-  The HTTP status code 405 Method Not Allowed.
-  If the request contains an Acceptheader with a value oftext/html, the response includes aCAPTCHAchallenge.
 
-  
You can configure the expiration time in the CaptchaConfig ImmunityTimeProperty setting at the rule and web ACL level. The rule setting overrides the web ACL setting. 
This action option is available for rules. It isn't available for web ACL default actions.
This is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction. 
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.custom_request_handling: Option<CustomRequestHandling>Defines custom handling for the web request.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
Implementations
sourceimpl CaptchaAction
 
impl CaptchaAction
sourcepub fn custom_request_handling(&self) -> Option<&CustomRequestHandling>
 
pub fn custom_request_handling(&self) -> Option<&CustomRequestHandling>
Defines custom handling for the web request.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
sourceimpl CaptchaAction
 
impl CaptchaAction
sourcepub fn builder() -> Builder
 
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CaptchaAction
Trait Implementations
sourceimpl Clone for CaptchaAction
 
impl Clone for CaptchaAction
sourcefn clone(&self) -> CaptchaAction
 
fn clone(&self) -> CaptchaAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CaptchaAction
 
impl Debug for CaptchaAction
sourceimpl PartialEq<CaptchaAction> for CaptchaAction
 
impl PartialEq<CaptchaAction> for CaptchaAction
sourcefn eq(&self, other: &CaptchaAction) -> bool
 
fn eq(&self, other: &CaptchaAction) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CaptchaAction) -> bool
 
fn ne(&self, other: &CaptchaAction) -> bool
This method tests for !=.
impl StructuralPartialEq for CaptchaAction
Auto Trait Implementations
impl RefUnwindSafe for CaptchaAction
impl Send for CaptchaAction
impl Sync for CaptchaAction
impl Unpin for CaptchaAction
impl UnwindSafe for CaptchaAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
 
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
 
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
 
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
 
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more