| 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.WorkDocs.GetDocument
Description
Retrieves details of a document.
Synopsis
- data GetDocument = GetDocument' {}
- newGetDocument :: Text -> GetDocument
- getDocument_authenticationToken :: Lens' GetDocument (Maybe Text)
- getDocument_includeCustomMetadata :: Lens' GetDocument (Maybe Bool)
- getDocument_documentId :: Lens' GetDocument Text
- data GetDocumentResponse = GetDocumentResponse' {}
- newGetDocumentResponse :: Int -> GetDocumentResponse
- getDocumentResponse_customMetadata :: Lens' GetDocumentResponse (Maybe (HashMap Text Text))
- getDocumentResponse_metadata :: Lens' GetDocumentResponse (Maybe DocumentMetadata)
- getDocumentResponse_httpStatus :: Lens' GetDocumentResponse Int
Creating a Request
data GetDocument Source #
See: newGetDocument smart constructor.
Constructors
| GetDocument' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetDocument |
Create a value of GetDocument 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:authenticationToken:GetDocument', getDocument_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:includeCustomMetadata:GetDocument', getDocument_includeCustomMetadata - Set this to TRUE to include custom metadata in the response.
$sel:documentId:GetDocument', getDocument_documentId - The ID of the document.
Request Lenses
getDocument_authenticationToken :: Lens' GetDocument (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
getDocument_includeCustomMetadata :: Lens' GetDocument (Maybe Bool) Source #
Set this to TRUE to include custom metadata in the response.
getDocument_documentId :: Lens' GetDocument Text Source #
The ID of the document.
Destructuring the Response
data GetDocumentResponse Source #
See: newGetDocumentResponse smart constructor.
Constructors
| GetDocumentResponse' | |
Fields
| |
Instances
newGetDocumentResponse Source #
Arguments
| :: Int | |
| -> GetDocumentResponse |
Create a value of GetDocumentResponse 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:customMetadata:GetDocumentResponse', getDocumentResponse_customMetadata - The custom metadata on the document.
$sel:metadata:GetDocumentResponse', getDocumentResponse_metadata - The metadata details of the document.
$sel:httpStatus:GetDocumentResponse', getDocumentResponse_httpStatus - The response's http status code.
Response Lenses
getDocumentResponse_customMetadata :: Lens' GetDocumentResponse (Maybe (HashMap Text Text)) Source #
The custom metadata on the document.
getDocumentResponse_metadata :: Lens' GetDocumentResponse (Maybe DocumentMetadata) Source #
The metadata details of the document.
getDocumentResponse_httpStatus :: Lens' GetDocumentResponse Int Source #
The response's http status code.