| Copyright | (c) 2013-2017 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 |
Network.AWS.MechanicalTurk.UpdateExpirationForHIT
Description
The UpdateExpirationForHIT operation allows you update the expiration time of a HIT. If you update it to a time in the past, the HIT will be immediately expired.
- updateExpirationForHIT :: Text -> UTCTime -> UpdateExpirationForHIT
- data UpdateExpirationForHIT
- uefhitHITId :: Lens' UpdateExpirationForHIT Text
- uefhitExpireAt :: Lens' UpdateExpirationForHIT UTCTime
- updateExpirationForHITResponse :: Int -> UpdateExpirationForHITResponse
- data UpdateExpirationForHITResponse
- uefhitrsResponseStatus :: Lens' UpdateExpirationForHITResponse Int
Creating a Request
updateExpirationForHIT Source #
Arguments
| :: Text | |
| -> UTCTime | |
| -> UpdateExpirationForHIT |
Creates a value of UpdateExpirationForHIT with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uefhitHITId- The HIT to update.uefhitExpireAt- The date and time at which you want the HIT to expire
data UpdateExpirationForHIT Source #
See: updateExpirationForHIT smart constructor.
Instances
Request Lenses
uefhitHITId :: Lens' UpdateExpirationForHIT Text Source #
The HIT to update.
uefhitExpireAt :: Lens' UpdateExpirationForHIT UTCTime Source #
The date and time at which you want the HIT to expire
Destructuring the Response
updateExpirationForHITResponse Source #
Arguments
| :: Int | |
| -> UpdateExpirationForHITResponse |
Creates a value of UpdateExpirationForHITResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uefhitrsResponseStatus- -- | The response status code.
data UpdateExpirationForHITResponse Source #
See: updateExpirationForHITResponse smart constructor.
Instances
Response Lenses
uefhitrsResponseStatus :: Lens' UpdateExpirationForHITResponse Int Source #
- - | The response status code.