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 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.
Synopsis
- 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 #
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 #
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.