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.ChallengeResponse

Description

 
Synopsis

Documentation

data ChallengeResponse Source #

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

See: newChallengeResponse smart constructor.

Constructors

ChallengeResponse' 

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 challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted.

  • solveTimestamp :: Maybe Integer

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

Instances

Instances details
FromJSON ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

Generic ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

Associated Types

type Rep ChallengeResponse :: Type -> Type #

Read ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

Show ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

NFData ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

Methods

rnf :: ChallengeResponse -> () #

Eq ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

Hashable ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

type Rep ChallengeResponse Source # 
Instance details

Defined in Amazonka.WAFV2.Types.ChallengeResponse

type Rep ChallengeResponse = D1 ('MetaData "ChallengeResponse" "Amazonka.WAFV2.Types.ChallengeResponse" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "ChallengeResponse'" '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)))))

newChallengeResponse :: ChallengeResponse Source #

Create a value of ChallengeResponse 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:ChallengeResponse', challengeResponse_failureReason - The reason for failure, populated when the evaluation of the token fails.

$sel:responseCode:ChallengeResponse', challengeResponse_responseCode - The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted.

$sel:solveTimestamp:ChallengeResponse', challengeResponse_solveTimestamp - The time that the challenge was last solved for the supplied token.

challengeResponse_failureReason :: Lens' ChallengeResponse (Maybe FailureReason) Source #

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

challengeResponse_responseCode :: Lens' ChallengeResponse (Maybe Int) Source #

The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted.

challengeResponse_solveTimestamp :: Lens' ChallengeResponse (Maybe Integer) Source #

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