amazonka-mechanicalturk-1.6.1: Amazon Mechanical Turk SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.MechanicalTurk.ApproveAssignment

Contents

Description

The ApproveAssignment operation approves the results of a completed assignment.

Approving an assignment initiates two payments from the Requester's Amazon.com account

  • The Worker who submitted the results is paid the reward specified in the HIT.
  • Amazon Mechanical Turk fees are debited.

If the Requester's account does not have adequate funds for these payments, the call to ApproveAssignment returns an exception, and the approval is not processed. You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site.

You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.

Synopsis

Creating a Request

approveAssignment Source #

Creates a value of ApproveAssignment with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • aaOverrideRejection - A flag indicating that an assignment should be approved even if it was previously rejected. Defaults to False .
  • aaRequesterFeedback - A message for the Worker, which the Worker can see in the Status section of the web site.
  • aaAssignmentId - The ID of the assignment. The assignment must correspond to a HIT created by the Requester.

data ApproveAssignment Source #

See: approveAssignment smart constructor.

Instances
Eq ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Data ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ApproveAssignment -> c ApproveAssignment #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ApproveAssignment #

toConstr :: ApproveAssignment -> Constr #

dataTypeOf :: ApproveAssignment -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ApproveAssignment) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ApproveAssignment) #

gmapT :: (forall b. Data b => b -> b) -> ApproveAssignment -> ApproveAssignment #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ApproveAssignment -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ApproveAssignment -> r #

gmapQ :: (forall d. Data d => d -> u) -> ApproveAssignment -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ApproveAssignment -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ApproveAssignment -> m ApproveAssignment #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ApproveAssignment -> m ApproveAssignment #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ApproveAssignment -> m ApproveAssignment #

Read ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Show ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Generic ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Associated Types

type Rep ApproveAssignment :: Type -> Type #

Hashable ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

ToJSON ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

AWSRequest ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Associated Types

type Rs ApproveAssignment :: Type #

ToHeaders ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

ToPath ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

ToQuery ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

NFData ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Methods

rnf :: ApproveAssignment -> () #

type Rep ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

type Rep ApproveAssignment = D1 (MetaData "ApproveAssignment" "Network.AWS.MechanicalTurk.ApproveAssignment" "amazonka-mechanicalturk-1.6.1-GV5ehA4FkQY3BZvWX2sEC2" False) (C1 (MetaCons "ApproveAssignment'" PrefixI True) (S1 (MetaSel (Just "_aaOverrideRejection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_aaRequesterFeedback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aaAssignmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ApproveAssignment Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Request Lenses

aaOverrideRejection :: Lens' ApproveAssignment (Maybe Bool) Source #

A flag indicating that an assignment should be approved even if it was previously rejected. Defaults to False .

aaRequesterFeedback :: Lens' ApproveAssignment (Maybe Text) Source #

A message for the Worker, which the Worker can see in the Status section of the web site.

aaAssignmentId :: Lens' ApproveAssignment Text Source #

The ID of the assignment. The assignment must correspond to a HIT created by the Requester.

Destructuring the Response

approveAssignmentResponse Source #

Creates a value of ApproveAssignmentResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ApproveAssignmentResponse Source #

See: approveAssignmentResponse smart constructor.

Instances
Eq ApproveAssignmentResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Data ApproveAssignmentResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ApproveAssignmentResponse -> c ApproveAssignmentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ApproveAssignmentResponse #

toConstr :: ApproveAssignmentResponse -> Constr #

dataTypeOf :: ApproveAssignmentResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ApproveAssignmentResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ApproveAssignmentResponse) #

gmapT :: (forall b. Data b => b -> b) -> ApproveAssignmentResponse -> ApproveAssignmentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ApproveAssignmentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ApproveAssignmentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ApproveAssignmentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ApproveAssignmentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ApproveAssignmentResponse -> m ApproveAssignmentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ApproveAssignmentResponse -> m ApproveAssignmentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ApproveAssignmentResponse -> m ApproveAssignmentResponse #

Read ApproveAssignmentResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Show ApproveAssignmentResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Generic ApproveAssignmentResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

Associated Types

type Rep ApproveAssignmentResponse :: Type -> Type #

NFData ApproveAssignmentResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

type Rep ApproveAssignmentResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.ApproveAssignment

type Rep ApproveAssignmentResponse = D1 (MetaData "ApproveAssignmentResponse" "Network.AWS.MechanicalTurk.ApproveAssignment" "amazonka-mechanicalturk-1.6.1-GV5ehA4FkQY3BZvWX2sEC2" True) (C1 (MetaCons "ApproveAssignmentResponse'" PrefixI True) (S1 (MetaSel (Just "_aarsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses