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

Description

The CreateAdditionalAssignmentsForHIT operation increases the maximum number of assignments of an existing HIT.

To extend the maximum number of assignments, specify the number of additional assignments.

  • HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more assignments will result in an AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease exception.
  • HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an AWS.MechanicalTurk.HITTooOldForExtension exception.
Synopsis

Creating a Request

data CreateAdditionalAssignmentsForHIT Source #

See: newCreateAdditionalAssignmentsForHIT smart constructor.

Constructors

CreateAdditionalAssignmentsForHIT' 

Fields

  • uniqueRequestToken :: Maybe Text

    A unique identifier for this request, which allows you to retry the call on error without extending the HIT multiple times. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the extend HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

  • hITId :: Text

    The ID of the HIT to extend.

  • numberOfAdditionalAssignments :: Int

    The number of additional assignments to request for this HIT.

Instances

Instances details
Eq CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Read CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Show CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Generic CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Associated Types

type Rep CreateAdditionalAssignmentsForHIT :: Type -> Type #

NFData CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Hashable CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

ToJSON CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

AWSRequest CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

ToHeaders CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

ToPath CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

ToQuery CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

type Rep CreateAdditionalAssignmentsForHIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

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

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

newCreateAdditionalAssignmentsForHIT Source #

Create a value of CreateAdditionalAssignmentsForHIT 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:uniqueRequestToken:CreateAdditionalAssignmentsForHIT', createAdditionalAssignmentsForHIT_uniqueRequestToken - A unique identifier for this request, which allows you to retry the call on error without extending the HIT multiple times. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the extend HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

$sel:hITId:CreateAdditionalAssignmentsForHIT', createAdditionalAssignmentsForHIT_hITId - The ID of the HIT to extend.

$sel:numberOfAdditionalAssignments:CreateAdditionalAssignmentsForHIT', createAdditionalAssignmentsForHIT_numberOfAdditionalAssignments - The number of additional assignments to request for this HIT.

Request Lenses

createAdditionalAssignmentsForHIT_uniqueRequestToken :: Lens' CreateAdditionalAssignmentsForHIT (Maybe Text) Source #

A unique identifier for this request, which allows you to retry the call on error without extending the HIT multiple times. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the extend HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

Destructuring the Response

data CreateAdditionalAssignmentsForHITResponse Source #

Constructors

CreateAdditionalAssignmentsForHITResponse' 

Fields

Instances

Instances details
Eq CreateAdditionalAssignmentsForHITResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Read CreateAdditionalAssignmentsForHITResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Show CreateAdditionalAssignmentsForHITResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

Generic CreateAdditionalAssignmentsForHITResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

NFData CreateAdditionalAssignmentsForHITResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

type Rep CreateAdditionalAssignmentsForHITResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.CreateAdditionalAssignmentsForHIT

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

newCreateAdditionalAssignmentsForHITResponse Source #

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

Response Lenses