Skip to main content

root_folders

Creates, updates, deletes, gets or lists a root_folders resource.

Overview

Nameroot_folders
TypeResource
Idaws.workdocs.root_folders

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestampstring (date-time)The time when the folder was created.
creator_idstringThe ID of the creator. (pattern: <code>[&\w+-.@]+</code>)
idstringThe ID of the folder. (pattern: <code>[\w+-.@]+</code>)
labelsarrayList of labels on the folder.
latest_version_sizeinteger (int64)The size of the latest version of the folder metadata.
modified_timestampstring (date-time)The time when the folder was updated.
namestringThe name of the folder. (pattern: <code>[\u0020-\u202D\u202F-\uFFFF]+</code>)
parent_folder_idstringThe ID of the parent folder. (pattern: <code>[\w+-.@]+</code>)
resource_statestringThe resource state of the folder. (ACTIVE, RESTORING, RECYCLING, RECYCLED)
signaturestringThe unique identifier created from the subfolders and documents of the folder. (pattern: <code>[&\w+-.@]+</code>)
sizeinteger (int64)The size of the folder metadata.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_root_foldersselectAuthentication, regionlimit, markerDescribes 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AuthenticationstringAmazon WorkDocs authentication token.
regionstringAWS region (default: us-east-1)
limitintegerThe maximum number of items to return.
markerstringThe marker for the next set of results. (You received this marker from a previous call.)

SELECT examples

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.

SELECT
created_timestamp,
creator_id,
id,
labels,
latest_version_size,
modified_timestamp,
name,
parent_folder_id,
resource_state,
signature,
size
FROM aws.workdocs.root_folders
WHERE Authentication = '{{ Authentication }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND marker = '{{ marker }}'
;