| 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.GetHIT
Description
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
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:
GetHIT, getHIT_hITId - The ID of the HIT to be retrieved.
Request Lenses
Destructuring the Response
data GetHITResponse Source #
See: newGetHITResponse smart constructor.
Constructors
| GetHITResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetHITResponse |
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.