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 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.
Instances
newUpdateExpirationForHIT Source #
:: 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:
$sel:hITId: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.
UpdateExpirationForHITResponse' | |
|
Instances
Eq UpdateExpirationForHITResponse Source # | |
Read UpdateExpirationForHITResponse Source # | |
Show UpdateExpirationForHITResponse Source # | |
Generic UpdateExpirationForHITResponse Source # | |
NFData UpdateExpirationForHITResponse Source # | |
Defined in Amazonka.MechanicalTurk.UpdateExpirationForHIT rnf :: UpdateExpirationForHITResponse -> () # | |
type Rep UpdateExpirationForHITResponse Source # | |
Defined in Amazonka.MechanicalTurk.UpdateExpirationForHIT type Rep UpdateExpirationForHITResponse = D1 ('MetaData "UpdateExpirationForHITResponse" "Amazonka.MechanicalTurk.UpdateExpirationForHIT" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "UpdateExpirationForHITResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.