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 |
Retrieves the path information (the hierarchy from the root folder) for the requested document.
By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.
Synopsis
- data GetDocumentPath = GetDocumentPath' {}
- newGetDocumentPath :: Text -> GetDocumentPath
- getDocumentPath_authenticationToken :: Lens' GetDocumentPath (Maybe Text)
- getDocumentPath_marker :: Lens' GetDocumentPath (Maybe Text)
- getDocumentPath_limit :: Lens' GetDocumentPath (Maybe Natural)
- getDocumentPath_fields :: Lens' GetDocumentPath (Maybe Text)
- getDocumentPath_documentId :: Lens' GetDocumentPath Text
- data GetDocumentPathResponse = GetDocumentPathResponse' {
- path :: Maybe ResourcePath
- httpStatus :: Int
- newGetDocumentPathResponse :: Int -> GetDocumentPathResponse
- getDocumentPathResponse_path :: Lens' GetDocumentPathResponse (Maybe ResourcePath)
- getDocumentPathResponse_httpStatus :: Lens' GetDocumentPathResponse Int
Creating a Request
data GetDocumentPath Source #
See: newGetDocumentPath
smart constructor.
GetDocumentPath' | |
|
Instances
Create a value of GetDocumentPath
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:GetDocumentPath'
, getDocumentPath_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:marker:GetDocumentPath'
, getDocumentPath_marker
- This value is not supported.
$sel:limit:GetDocumentPath'
, getDocumentPath_limit
- The maximum number of levels in the hierarchy to return.
$sel:fields:GetDocumentPath'
, getDocumentPath_fields
- A comma-separated list of values. Specify NAME
to include the names of
the parent folders.
$sel:documentId:GetDocumentPath'
, getDocumentPath_documentId
- The ID of the document.
Request Lenses
getDocumentPath_authenticationToken :: Lens' GetDocumentPath (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
getDocumentPath_marker :: Lens' GetDocumentPath (Maybe Text) Source #
This value is not supported.
getDocumentPath_limit :: Lens' GetDocumentPath (Maybe Natural) Source #
The maximum number of levels in the hierarchy to return.
getDocumentPath_fields :: Lens' GetDocumentPath (Maybe Text) Source #
A comma-separated list of values. Specify NAME
to include the names of
the parent folders.
getDocumentPath_documentId :: Lens' GetDocumentPath Text Source #
The ID of the document.
Destructuring the Response
data GetDocumentPathResponse Source #
See: newGetDocumentPathResponse
smart constructor.
GetDocumentPathResponse' | |
|
Instances
newGetDocumentPathResponse Source #
Create a value of GetDocumentPathResponse
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:path:GetDocumentPathResponse'
, getDocumentPathResponse_path
- The path information.
$sel:httpStatus:GetDocumentPathResponse'
, getDocumentPathResponse_httpStatus
- The response's http status code.
Response Lenses
getDocumentPathResponse_path :: Lens' GetDocumentPathResponse (Maybe ResourcePath) Source #
The path information.
getDocumentPathResponse_httpStatus :: Lens' GetDocumentPathResponse Int Source #
The response's http status code.