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 |
Describes the current user's special folders; the RootFolder
and the
RecycleBin
. RootFolder
is the root of user's files and folders and
RecycleBin
is the root of recycled items. This is not a valid action
for SigV4 (administrative API) clients.
This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.
This operation returns paginated results.
Synopsis
- data DescribeRootFolders = DescribeRootFolders' {}
- newDescribeRootFolders :: Text -> DescribeRootFolders
- describeRootFolders_marker :: Lens' DescribeRootFolders (Maybe Text)
- describeRootFolders_limit :: Lens' DescribeRootFolders (Maybe Natural)
- describeRootFolders_authenticationToken :: Lens' DescribeRootFolders Text
- data DescribeRootFoldersResponse = DescribeRootFoldersResponse' {
- folders :: Maybe [FolderMetadata]
- marker :: Maybe Text
- httpStatus :: Int
- newDescribeRootFoldersResponse :: Int -> DescribeRootFoldersResponse
- describeRootFoldersResponse_folders :: Lens' DescribeRootFoldersResponse (Maybe [FolderMetadata])
- describeRootFoldersResponse_marker :: Lens' DescribeRootFoldersResponse (Maybe Text)
- describeRootFoldersResponse_httpStatus :: Lens' DescribeRootFoldersResponse Int
Creating a Request
data DescribeRootFolders Source #
See: newDescribeRootFolders
smart constructor.
Instances
newDescribeRootFolders Source #
Create a value of DescribeRootFolders
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:marker:DescribeRootFolders'
, describeRootFolders_marker
- The marker for the next set of results. (You received this marker from a
previous call.)
$sel:limit:DescribeRootFolders'
, describeRootFolders_limit
- The maximum number of items to return.
$sel:authenticationToken:DescribeRootFolders'
, describeRootFolders_authenticationToken
- Amazon WorkDocs authentication token.
Request Lenses
describeRootFolders_marker :: Lens' DescribeRootFolders (Maybe Text) Source #
The marker for the next set of results. (You received this marker from a previous call.)
describeRootFolders_limit :: Lens' DescribeRootFolders (Maybe Natural) Source #
The maximum number of items to return.
describeRootFolders_authenticationToken :: Lens' DescribeRootFolders Text Source #
Amazon WorkDocs authentication token.
Destructuring the Response
data DescribeRootFoldersResponse Source #
See: newDescribeRootFoldersResponse
smart constructor.
DescribeRootFoldersResponse' | |
|
Instances
newDescribeRootFoldersResponse Source #
Create a value of DescribeRootFoldersResponse
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:folders:DescribeRootFoldersResponse'
, describeRootFoldersResponse_folders
- The user's special folders.
$sel:marker:DescribeRootFolders'
, describeRootFoldersResponse_marker
- The marker for the next set of results.
$sel:httpStatus:DescribeRootFoldersResponse'
, describeRootFoldersResponse_httpStatus
- The response's http status code.
Response Lenses
describeRootFoldersResponse_folders :: Lens' DescribeRootFoldersResponse (Maybe [FolderMetadata]) Source #
The user's special folders.
describeRootFoldersResponse_marker :: Lens' DescribeRootFoldersResponse (Maybe Text) Source #
The marker for the next set of results.
describeRootFoldersResponse_httpStatus :: Lens' DescribeRootFoldersResponse Int Source #
The response's http status code.