amazonka-wafv2-2.0: Amazon WAFV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WAFV2.Types.CaptchaResponse

Description

 
Synopsis

Documentation

data CaptchaResponse Source #

The result from the inspection of the web request for a valid CAPTCHA token.

See: newCaptchaResponse smart constructor.

Constructors

CaptchaResponse' 

Fields

  • failureReason :: Maybe FailureReason

    The reason for failure, populated when the evaluation of the token fails.

  • responseCode :: Maybe Int

    The HTTP response code indicating the status of the CAPTCHA token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed.

  • solveTimestamp :: Maybe Integer

    The time that the CAPTCHA was last solved for the supplied token.

Instances

Instances details
FromJSON CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

Generic CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

Associated Types

type Rep CaptchaResponse :: Type -> Type #

Read CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

Show CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

NFData CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

Methods

rnf :: CaptchaResponse -> () #

Eq CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

Hashable CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

type Rep CaptchaResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CaptchaResponse

type Rep CaptchaResponse = D1 ('MetaData "CaptchaResponse" "Amazonka.WAFV2.Types.CaptchaResponse" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "CaptchaResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failureReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FailureReason)) :*: (S1 ('MetaSel ('Just "responseCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "solveTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))))

newCaptchaResponse :: CaptchaResponse Source #

Create a value of CaptchaResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:failureReason:CaptchaResponse', captchaResponse_failureReason - The reason for failure, populated when the evaluation of the token fails.

$sel:responseCode:CaptchaResponse', captchaResponse_responseCode - The HTTP response code indicating the status of the CAPTCHA token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed.

$sel:solveTimestamp:CaptchaResponse', captchaResponse_solveTimestamp - The time that the CAPTCHA was last solved for the supplied token.

captchaResponse_failureReason :: Lens' CaptchaResponse (Maybe FailureReason) Source #

The reason for failure, populated when the evaluation of the token fails.

captchaResponse_responseCode :: Lens' CaptchaResponse (Maybe Int) Source #

The HTTP response code indicating the status of the CAPTCHA token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed.

captchaResponse_solveTimestamp :: Lens' CaptchaResponse (Maybe Integer) Source #

The time that the CAPTCHA was last solved for the supplied token.