| 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.DescribeRootFolders
Description
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_limit :: Lens' DescribeRootFolders (Maybe Natural)
- describeRootFolders_marker :: Lens' DescribeRootFolders (Maybe Text)
- 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.
Constructors
| DescribeRootFolders' | |
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:limit:DescribeRootFolders', describeRootFolders_limit - The maximum number of items to return.
DescribeRootFolders, describeRootFolders_marker - The marker for the next set of results. (You received this marker from a
previous call.)
$sel:authenticationToken:DescribeRootFolders', describeRootFolders_authenticationToken - Amazon WorkDocs authentication token.
Request Lenses
describeRootFolders_limit :: Lens' DescribeRootFolders (Maybe Natural) Source #
The maximum number of items to return.
describeRootFolders_marker :: Lens' DescribeRootFolders (Maybe Text) Source #
The marker for the next set of results. (You received this marker from a previous call.)
describeRootFolders_authenticationToken :: Lens' DescribeRootFolders Text Source #
Amazon WorkDocs authentication token.
Destructuring the Response
data DescribeRootFoldersResponse Source #
See: newDescribeRootFoldersResponse smart constructor.
Constructors
| DescribeRootFoldersResponse' | |
Fields
| |
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.
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.