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 specified folder.
By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested folder 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 parent folder names.
Synopsis
- data GetFolderPath = GetFolderPath' {}
- newGetFolderPath :: Text -> GetFolderPath
- getFolderPath_authenticationToken :: Lens' GetFolderPath (Maybe Text)
- getFolderPath_marker :: Lens' GetFolderPath (Maybe Text)
- getFolderPath_limit :: Lens' GetFolderPath (Maybe Natural)
- getFolderPath_fields :: Lens' GetFolderPath (Maybe Text)
- getFolderPath_folderId :: Lens' GetFolderPath Text
- data GetFolderPathResponse = GetFolderPathResponse' {
- path :: Maybe ResourcePath
- httpStatus :: Int
- newGetFolderPathResponse :: Int -> GetFolderPathResponse
- getFolderPathResponse_path :: Lens' GetFolderPathResponse (Maybe ResourcePath)
- getFolderPathResponse_httpStatus :: Lens' GetFolderPathResponse Int
Creating a Request
data GetFolderPath Source #
See: newGetFolderPath
smart constructor.
GetFolderPath' | |
|
Instances
Create a value of GetFolderPath
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:GetFolderPath'
, getFolderPath_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:marker:GetFolderPath'
, getFolderPath_marker
- This value is not supported.
$sel:limit:GetFolderPath'
, getFolderPath_limit
- The maximum number of levels in the hierarchy to return.
$sel:fields:GetFolderPath'
, getFolderPath_fields
- A comma-separated list of values. Specify "NAME" to include the names
of the parent folders.
$sel:folderId:GetFolderPath'
, getFolderPath_folderId
- The ID of the folder.
Request Lenses
getFolderPath_authenticationToken :: Lens' GetFolderPath (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
getFolderPath_marker :: Lens' GetFolderPath (Maybe Text) Source #
This value is not supported.
getFolderPath_limit :: Lens' GetFolderPath (Maybe Natural) Source #
The maximum number of levels in the hierarchy to return.
getFolderPath_fields :: Lens' GetFolderPath (Maybe Text) Source #
A comma-separated list of values. Specify "NAME" to include the names of the parent folders.
getFolderPath_folderId :: Lens' GetFolderPath Text Source #
The ID of the folder.
Destructuring the Response
data GetFolderPathResponse Source #
See: newGetFolderPathResponse
smart constructor.
GetFolderPathResponse' | |
|
Instances
newGetFolderPathResponse Source #
Create a value of GetFolderPathResponse
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:GetFolderPathResponse'
, getFolderPathResponse_path
- The path information.
$sel:httpStatus:GetFolderPathResponse'
, getFolderPathResponse_httpStatus
- The response's http status code.
Response Lenses
getFolderPathResponse_path :: Lens' GetFolderPathResponse (Maybe ResourcePath) Source #
The path information.
getFolderPathResponse_httpStatus :: Lens' GetFolderPathResponse Int Source #
The response's http status code.