Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateAdditionalAssignmentsForHIT = CreateAdditionalAssignmentsForHIT' {}
- newCreateAdditionalAssignmentsForHIT :: Text -> Int -> CreateAdditionalAssignmentsForHIT
- createAdditionalAssignmentsForHIT_uniqueRequestToken :: Lens' CreateAdditionalAssignmentsForHIT (Maybe Text)
- createAdditionalAssignmentsForHIT_hITId :: Lens' CreateAdditionalAssignmentsForHIT Text
- createAdditionalAssignmentsForHIT_numberOfAdditionalAssignments :: Lens' CreateAdditionalAssignmentsForHIT Int
- data CreateAdditionalAssignmentsForHITResponse = CreateAdditionalAssignmentsForHITResponse' {
- httpStatus :: Int
- newCreateAdditionalAssignmentsForHITResponse :: Int -> CreateAdditionalAssignmentsForHITResponse
- createAdditionalAssignmentsForHITResponse_httpStatus :: Lens' CreateAdditionalAssignmentsForHITResponse Int
Creating a Request
data CreateAdditionalAssignmentsForHIT Source #
See: newCreateAdditionalAssignmentsForHIT
smart constructor.
CreateAdditionalAssignmentsForHIT' | |
|
Instances
newCreateAdditionalAssignmentsForHIT Source #
:: Text | |
-> Int |
|
-> CreateAdditionalAssignmentsForHIT |
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.
createAdditionalAssignmentsForHIT_hITId :: Lens' CreateAdditionalAssignmentsForHIT Text Source #
The ID of the HIT to extend.
createAdditionalAssignmentsForHIT_numberOfAdditionalAssignments :: Lens' CreateAdditionalAssignmentsForHIT Int Source #
The number of additional assignments to request for this HIT.
Destructuring the Response
data CreateAdditionalAssignmentsForHITResponse Source #
See: newCreateAdditionalAssignmentsForHITResponse
smart constructor.
CreateAdditionalAssignmentsForHITResponse' | |
|
Instances
Eq CreateAdditionalAssignmentsForHITResponse Source # | |
Read CreateAdditionalAssignmentsForHITResponse Source # | |
Show CreateAdditionalAssignmentsForHITResponse Source # | |
Generic CreateAdditionalAssignmentsForHITResponse Source # | |
NFData CreateAdditionalAssignmentsForHITResponse Source # | |
type Rep CreateAdditionalAssignmentsForHITResponse Source # | |
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
createAdditionalAssignmentsForHITResponse_httpStatus :: Lens' CreateAdditionalAssignmentsForHITResponse Int Source #
The response's http status code.