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

Contents

Description

The DeleteHIT operation is used to delete HIT that is no longer needed. Only the Requester who created the HIT can delete it.

You can only dispose of HITs that are in the Reviewable state, with all of their submitted assignments already either approved or rejected. If you call the DeleteHIT operation on a HIT that is not in the Reviewable state (for example, that has not expired, or still has active assignments), or on a HIT that is Reviewable but without all of its submitted assignments already approved or rejected, the service will return an error.

Synopsis

Creating a Request

deleteHIT Source #

Arguments

:: Text

dhitHITId

-> DeleteHIT 

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

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

data DeleteHIT Source #

See: deleteHIT smart constructor.

Instances

Eq DeleteHIT Source # 
Data DeleteHIT Source # 

Methods

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

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

toConstr :: DeleteHIT -> Constr #

dataTypeOf :: DeleteHIT -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteHIT Source # 
Show DeleteHIT Source # 
Generic DeleteHIT Source # 

Associated Types

type Rep DeleteHIT :: * -> * #

Hashable DeleteHIT Source # 
ToJSON DeleteHIT Source # 
NFData DeleteHIT Source # 

Methods

rnf :: DeleteHIT -> () #

AWSRequest DeleteHIT Source # 
ToHeaders DeleteHIT Source # 

Methods

toHeaders :: DeleteHIT -> [Header] #

ToPath DeleteHIT Source # 
ToQuery DeleteHIT Source # 
type Rep DeleteHIT Source # 
type Rep DeleteHIT = D1 * (MetaData "DeleteHIT" "Network.AWS.MechanicalTurk.DeleteHIT" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" True) (C1 * (MetaCons "DeleteHIT'" PrefixI True) (S1 * (MetaSel (Just Symbol "_dhitHITId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs DeleteHIT Source # 

Request Lenses

dhitHITId :: Lens' DeleteHIT Text Source #

The ID of the HIT to be deleted.

Destructuring the Response

deleteHITResponse Source #

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

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

data DeleteHITResponse Source #

See: deleteHITResponse smart constructor.

Instances

Eq DeleteHITResponse Source # 
Data DeleteHITResponse Source # 

Methods

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

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

toConstr :: DeleteHITResponse -> Constr #

dataTypeOf :: DeleteHITResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteHITResponse Source # 
Show DeleteHITResponse Source # 
Generic DeleteHITResponse Source # 
NFData DeleteHITResponse Source # 

Methods

rnf :: DeleteHITResponse -> () #

type Rep DeleteHITResponse Source # 
type Rep DeleteHITResponse = D1 * (MetaData "DeleteHITResponse" "Network.AWS.MechanicalTurk.DeleteHIT" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" True) (C1 * (MetaCons "DeleteHITResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_dhitrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

dhitrsResponseStatus :: Lens' DeleteHITResponse Int Source #

  • - | The response status code.