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

Contents

Description

The CreateWorkerBlock operation allows you to prevent a Worker from working on your HITs. For example, you can block a Worker who is producing poor quality work. You can block up to 100,000 Workers.

Synopsis

Creating a Request

createWorkerBlock Source #

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

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

  • cwbWorkerId - The ID of the Worker to block.
  • cwbReason - A message explaining the reason for blocking the Worker. This parameter enables you to keep track of your Workers. The Worker does not see this message.

data CreateWorkerBlock Source #

See: createWorkerBlock smart constructor.

Instances

Eq CreateWorkerBlock Source # 
Data CreateWorkerBlock Source # 

Methods

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

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

toConstr :: CreateWorkerBlock -> Constr #

dataTypeOf :: CreateWorkerBlock -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateWorkerBlock -> () #

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

Request Lenses

cwbWorkerId :: Lens' CreateWorkerBlock Text Source #

The ID of the Worker to block.

cwbReason :: Lens' CreateWorkerBlock Text Source #

A message explaining the reason for blocking the Worker. This parameter enables you to keep track of your Workers. The Worker does not see this message.

Destructuring the Response

createWorkerBlockResponse Source #

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

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

data CreateWorkerBlockResponse Source #

See: createWorkerBlockResponse smart constructor.

Instances

Eq CreateWorkerBlockResponse Source # 
Data CreateWorkerBlockResponse Source # 

Methods

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

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

toConstr :: CreateWorkerBlockResponse -> Constr #

dataTypeOf :: CreateWorkerBlockResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateWorkerBlockResponse Source # 
Show CreateWorkerBlockResponse Source # 
Generic CreateWorkerBlockResponse Source # 
NFData CreateWorkerBlockResponse Source # 
type Rep CreateWorkerBlockResponse Source # 
type Rep CreateWorkerBlockResponse = D1 * (MetaData "CreateWorkerBlockResponse" "Network.AWS.MechanicalTurk.CreateWorkerBlock" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" True) (C1 * (MetaCons "CreateWorkerBlockResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_cwbrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses