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

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

data DeleteWorkerBlock Source #

See: newDeleteWorkerBlock smart constructor.

Constructors

DeleteWorkerBlock' 

Fields

  • reason :: Maybe Text

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

  • workerId :: Text

    The ID of the Worker to unblock.

Instances

Instances details
Eq DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Read DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Show DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Generic DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Associated Types

type Rep DeleteWorkerBlock :: Type -> Type #

NFData DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Methods

rnf :: DeleteWorkerBlock -> () #

Hashable DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

ToJSON DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

AWSRequest DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Associated Types

type AWSResponse DeleteWorkerBlock #

ToHeaders DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

ToPath DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

ToQuery DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

type Rep DeleteWorkerBlock Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

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

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

newDeleteWorkerBlock Source #

Create a value of DeleteWorkerBlock 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:reason:DeleteWorkerBlock', deleteWorkerBlock_reason - A message that explains the reason for unblocking the Worker. The Worker does not see this message.

$sel:workerId:DeleteWorkerBlock', deleteWorkerBlock_workerId - The ID of the Worker to unblock.

Request Lenses

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

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

deleteWorkerBlock_workerId :: Lens' DeleteWorkerBlock Text Source #

The ID of the Worker to unblock.

Destructuring the Response

data DeleteWorkerBlockResponse Source #

See: newDeleteWorkerBlockResponse smart constructor.

Constructors

DeleteWorkerBlockResponse' 

Fields

Instances

Instances details
Eq DeleteWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Read DeleteWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Show DeleteWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Generic DeleteWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

Associated Types

type Rep DeleteWorkerBlockResponse :: Type -> Type #

NFData DeleteWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

type Rep DeleteWorkerBlockResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.DeleteWorkerBlock

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

newDeleteWorkerBlockResponse Source #

Create a value of DeleteWorkerBlockResponse 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:DeleteWorkerBlockResponse', deleteWorkerBlockResponse_httpStatus - The response's http status code.

Response Lenses