| 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.IoT.GetJobDocument
Description
Gets a job document.
Requires permission to access the GetJobDocument action.
Synopsis
- data GetJobDocument = GetJobDocument' {}
- newGetJobDocument :: Text -> GetJobDocument
- getJobDocument_jobId :: Lens' GetJobDocument Text
- data GetJobDocumentResponse = GetJobDocumentResponse' {
- document :: Maybe Text
- httpStatus :: Int
- newGetJobDocumentResponse :: Int -> GetJobDocumentResponse
- getJobDocumentResponse_document :: Lens' GetJobDocumentResponse (Maybe Text)
- getJobDocumentResponse_httpStatus :: Lens' GetJobDocumentResponse Int
Creating a Request
data GetJobDocument Source #
See: newGetJobDocument smart constructor.
Constructors
| GetJobDocument' | |
Instances
Arguments
| :: Text | |
| -> GetJobDocument |
Create a value of GetJobDocument 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:
GetJobDocument, getJobDocument_jobId - The unique identifier you assigned to this job when it was created.
Request Lenses
getJobDocument_jobId :: Lens' GetJobDocument Text Source #
The unique identifier you assigned to this job when it was created.
Destructuring the Response
data GetJobDocumentResponse Source #
See: newGetJobDocumentResponse smart constructor.
Constructors
| GetJobDocumentResponse' | |
Fields
| |
Instances
newGetJobDocumentResponse Source #
Create a value of GetJobDocumentResponse 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:document:GetJobDocumentResponse', getJobDocumentResponse_document - The job document content.
$sel:httpStatus:GetJobDocumentResponse', getJobDocumentResponse_httpStatus - The response's http status code.
Response Lenses
getJobDocumentResponse_document :: Lens' GetJobDocumentResponse (Maybe Text) Source #
The job document content.
getJobDocumentResponse_httpStatus :: Lens' GetJobDocumentResponse Int Source #
The response's http status code.