Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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.
- createAdditionalAssignmentsForHIT :: Text -> Int -> CreateAdditionalAssignmentsForHIT
- data CreateAdditionalAssignmentsForHIT
- caafhitUniqueRequestToken :: Lens' CreateAdditionalAssignmentsForHIT (Maybe Text)
- caafhitHITId :: Lens' CreateAdditionalAssignmentsForHIT Text
- caafhitNumberOfAdditionalAssignments :: Lens' CreateAdditionalAssignmentsForHIT Int
- createAdditionalAssignmentsForHITResponse :: Int -> CreateAdditionalAssignmentsForHITResponse
- data CreateAdditionalAssignmentsForHITResponse
- caafhitrsResponseStatus :: Lens' CreateAdditionalAssignmentsForHITResponse Int
Creating a Request
createAdditionalAssignmentsForHIT Source #
Creates a value of CreateAdditionalAssignmentsForHIT
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
caafhitUniqueRequestToken
- 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 sameUniqueRequestToken
, subsequent calls will return an error with a message containing the request ID.caafhitHITId
- The ID of the HIT to extend.caafhitNumberOfAdditionalAssignments
- The number of additional assignments to request for this HIT.
data CreateAdditionalAssignmentsForHIT Source #
See: createAdditionalAssignmentsForHIT
smart constructor.
Request Lenses
caafhitUniqueRequestToken :: 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.
caafhitHITId :: Lens' CreateAdditionalAssignmentsForHIT Text Source #
The ID of the HIT to extend.
caafhitNumberOfAdditionalAssignments :: Lens' CreateAdditionalAssignmentsForHIT Int Source #
The number of additional assignments to request for this HIT.
Destructuring the Response
createAdditionalAssignmentsForHITResponse Source #
Creates a value of CreateAdditionalAssignmentsForHITResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
caafhitrsResponseStatus
- -- | The response status code.
data CreateAdditionalAssignmentsForHITResponse Source #
See: createAdditionalAssignmentsForHITResponse
smart constructor.
Response Lenses
caafhitrsResponseStatus :: Lens' CreateAdditionalAssignmentsForHITResponse Int Source #
- - | The response status code.