| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.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.
Synopsis
- data UpdateExpirationForHIT = UpdateExpirationForHIT' {}
- newUpdateExpirationForHIT :: Text -> UTCTime -> UpdateExpirationForHIT
- updateExpirationForHIT_hITId :: Lens' UpdateExpirationForHIT Text
- updateExpirationForHIT_expireAt :: Lens' UpdateExpirationForHIT UTCTime
- data UpdateExpirationForHITResponse = UpdateExpirationForHITResponse' {
- httpStatus :: Int
- newUpdateExpirationForHITResponse :: Int -> UpdateExpirationForHITResponse
- updateExpirationForHITResponse_httpStatus :: Lens' UpdateExpirationForHITResponse Int
Creating a Request
data UpdateExpirationForHIT Source #
See: newUpdateExpirationForHIT smart constructor.
Constructors
| UpdateExpirationForHIT' | |
Instances
newUpdateExpirationForHIT Source #
Arguments
| :: Text | |
| -> UTCTime | |
| -> UpdateExpirationForHIT |
Create a value of UpdateExpirationForHIT 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:
UpdateExpirationForHIT, updateExpirationForHIT_hITId - The HIT to update.
$sel:expireAt:UpdateExpirationForHIT', updateExpirationForHIT_expireAt - The date and time at which you want the HIT to expire
Request Lenses
updateExpirationForHIT_hITId :: Lens' UpdateExpirationForHIT Text Source #
The HIT to update.
updateExpirationForHIT_expireAt :: Lens' UpdateExpirationForHIT UTCTime Source #
The date and time at which you want the HIT to expire
Destructuring the Response
data UpdateExpirationForHITResponse Source #
See: newUpdateExpirationForHITResponse smart constructor.
Constructors
| UpdateExpirationForHITResponse' | |
Fields
| |
Instances
newUpdateExpirationForHITResponse Source #
Create a value of UpdateExpirationForHITResponse 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:UpdateExpirationForHITResponse', updateExpirationForHITResponse_httpStatus - The response's http status code.
Response Lenses
updateExpirationForHITResponse_httpStatus :: Lens' UpdateExpirationForHITResponse Int Source #
The response's http status code.