amazonka-mechanicalturk-1.6.0: 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 # 
Data ApproveAssignment Source # 

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 # 
Show ApproveAssignment Source # 
Generic ApproveAssignment Source # 
Hashable ApproveAssignment Source # 
ToJSON ApproveAssignment Source # 
NFData ApproveAssignment Source # 

Methods

rnf :: ApproveAssignment -> () #

AWSRequest ApproveAssignment Source # 
ToHeaders ApproveAssignment Source # 
ToPath ApproveAssignment Source # 
ToQuery ApproveAssignment Source # 
type Rep ApproveAssignment Source # 
type Rep ApproveAssignment = D1 * (MetaData "ApproveAssignment" "Network.AWS.MechanicalTurk.ApproveAssignment" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" False) (C1 * (MetaCons "ApproveAssignment'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_aaOverrideRejection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_aaRequesterFeedback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_aaAssignmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ApproveAssignment Source # 

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 # 
Data ApproveAssignmentResponse Source # 

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 # 
Show ApproveAssignmentResponse Source # 
Generic ApproveAssignmentResponse Source # 
NFData ApproveAssignmentResponse Source # 
type Rep ApproveAssignmentResponse Source # 
type Rep ApproveAssignmentResponse = D1 * (MetaData "ApproveAssignmentResponse" "Network.AWS.MechanicalTurk.ApproveAssignment" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" True) (C1 * (MetaCons "ApproveAssignmentResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_aarsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses