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 GetHIT
operation retrieves the details of the specified HIT.
Synopsis
- data GetHIT = GetHIT' {}
- newGetHIT :: Text -> GetHIT
- getHIT_hITId :: Lens' GetHIT Text
- data GetHITResponse = GetHITResponse' {
- hit :: Maybe HIT
- httpStatus :: Int
- newGetHITResponse :: Int -> GetHITResponse
- getHITResponse_hit :: Lens' GetHITResponse (Maybe HIT)
- getHITResponse_httpStatus :: Lens' GetHITResponse Int
Creating a Request
See: newGetHIT
smart constructor.
Instances
Eq GetHIT Source # | |
Read GetHIT Source # | |
Show GetHIT Source # | |
Generic GetHIT Source # | |
NFData GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT | |
Hashable GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT | |
ToJSON GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT | |
AWSRequest GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT type AWSResponse GetHIT # request :: GetHIT -> Request GetHIT # response :: MonadResource m => Logger -> Service -> Proxy GetHIT -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetHIT))) # | |
ToHeaders GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT | |
ToPath GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT toPath :: GetHIT -> ByteString # | |
ToQuery GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT toQuery :: GetHIT -> QueryString # | |
type Rep GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT | |
type AWSResponse GetHIT Source # | |
Defined in Amazonka.MechanicalTurk.GetHIT |
Create a value of GetHIT
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:GetHIT'
, getHIT_hITId
- The ID of the HIT to be retrieved.
Request Lenses
Destructuring the Response
data GetHITResponse Source #
See: newGetHITResponse
smart constructor.
GetHITResponse' | |
|
Instances
Create a value of GetHITResponse
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:hit:GetHITResponse'
, getHITResponse_hit
- Contains the requested HIT data.
$sel:httpStatus:GetHITResponse'
, getHITResponse_httpStatus
- The response's http status code.
Response Lenses
getHITResponse_hit :: Lens' GetHITResponse (Maybe HIT) Source #
Contains the requested HIT data.
getHITResponse_httpStatus :: Lens' GetHITResponse Int Source #
The response's http status code.