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

Amazonka.MechanicalTurk.CreateWorkerBlock

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

data CreateWorkerBlock Source #

See: newCreateWorkerBlock smart constructor.

Constructors

CreateWorkerBlock' 

Fields

  • workerId :: Text

    The ID of the Worker to block.

  • reason :: Text

    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.

Instances

Instances details
Eq CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Read CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Show CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Generic CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Associated Types

type Rep CreateWorkerBlock :: Type -> Type #

NFData CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Methods

rnf :: CreateWorkerBlock -> () #

Hashable CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

ToJSON CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

AWSRequest CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Associated Types

type AWSResponse CreateWorkerBlock #

ToHeaders CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

ToPath CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

ToQuery CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

type Rep CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

type Rep CreateWorkerBlock = D1 ('MetaData "CreateWorkerBlock" "Amazonka.MechanicalTurk.CreateWorkerBlock" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "CreateWorkerBlock'" 'PrefixI 'True) (S1 ('MetaSel ('Just "workerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

newCreateWorkerBlock Source #

Create a value of CreateWorkerBlock with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:workerId:CreateWorkerBlock', createWorkerBlock_workerId - The ID of the Worker to block.

$sel:reason:CreateWorkerBlock', createWorkerBlock_reason - 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.

Request Lenses

createWorkerBlock_reason :: 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

data CreateWorkerBlockResponse Source #

See: newCreateWorkerBlockResponse smart constructor.

Constructors

CreateWorkerBlockResponse' 

Fields

Instances

Instances details
Eq CreateWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Read CreateWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Show CreateWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Generic CreateWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

Associated Types

type Rep CreateWorkerBlockResponse :: Type -> Type #

NFData CreateWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

type Rep CreateWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateWorkerBlock

type Rep CreateWorkerBlockResponse = D1 ('MetaData "CreateWorkerBlockResponse" "Amazonka.MechanicalTurk.CreateWorkerBlock" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "CreateWorkerBlockResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateWorkerBlockResponse Source #

Create a value of CreateWorkerBlockResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateWorkerBlockResponse', createWorkerBlockResponse_httpStatus - The response's http status code.

Response Lenses