amazonka-mechanicalturk-1.5.0: Amazon Mechanical Turk SDK.

Copyright(c) 2013-2017 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.DeleteWorkerBlock

Contents

Description

The DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.

Synopsis

Creating a Request

deleteWorkerBlock Source #

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

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

  • dwbReason - A message that explains the reason for unblocking the Worker. The Worker does not see this message.
  • dwbWorkerId - The ID of the Worker to unblock.

data DeleteWorkerBlock Source #

See: deleteWorkerBlock smart constructor.

Instances

Eq DeleteWorkerBlock Source # 
Data DeleteWorkerBlock Source # 

Methods

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

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

toConstr :: DeleteWorkerBlock -> Constr #

dataTypeOf :: DeleteWorkerBlock -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteWorkerBlock Source # 
Show DeleteWorkerBlock Source # 
Generic DeleteWorkerBlock Source # 
Hashable DeleteWorkerBlock Source # 
ToJSON DeleteWorkerBlock Source # 
NFData DeleteWorkerBlock Source # 

Methods

rnf :: DeleteWorkerBlock -> () #

AWSRequest DeleteWorkerBlock Source # 
ToQuery DeleteWorkerBlock Source # 
ToPath DeleteWorkerBlock Source # 
ToHeaders DeleteWorkerBlock Source # 
type Rep DeleteWorkerBlock Source # 
type Rep DeleteWorkerBlock = D1 (MetaData "DeleteWorkerBlock" "Network.AWS.MechanicalTurk.DeleteWorkerBlock" "amazonka-mechanicalturk-1.5.0-FaPkjSp7Fzg9knquA94uxS" False) (C1 (MetaCons "DeleteWorkerBlock'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dwbReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dwbWorkerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteWorkerBlock Source # 

Request Lenses

dwbReason :: Lens' DeleteWorkerBlock (Maybe Text) Source #

A message that explains the reason for unblocking the Worker. The Worker does not see this message.

dwbWorkerId :: Lens' DeleteWorkerBlock Text Source #

The ID of the Worker to unblock.

Destructuring the Response

deleteWorkerBlockResponse Source #

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

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

data DeleteWorkerBlockResponse Source #

See: deleteWorkerBlockResponse smart constructor.

Instances

Eq DeleteWorkerBlockResponse Source # 
Data DeleteWorkerBlockResponse Source # 

Methods

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

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

toConstr :: DeleteWorkerBlockResponse -> Constr #

dataTypeOf :: DeleteWorkerBlockResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteWorkerBlockResponse Source # 
Show DeleteWorkerBlockResponse Source # 
Generic DeleteWorkerBlockResponse Source # 
NFData DeleteWorkerBlockResponse Source # 
type Rep DeleteWorkerBlockResponse Source # 
type Rep DeleteWorkerBlockResponse = D1 (MetaData "DeleteWorkerBlockResponse" "Network.AWS.MechanicalTurk.DeleteWorkerBlock" "amazonka-mechanicalturk-1.5.0-FaPkjSp7Fzg9knquA94uxS" True) (C1 (MetaCons "DeleteWorkerBlockResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_dwbrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses