Skip to main content

folder_contents

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

Overview

Namefolder_contents
TypeResource
Idaws.workdocs.folder_contents

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_folder_contentsselectfolder_id, regionAuthentication, sort, order, limit, marker, type, includeDescribes the contents of the specified folder, including its documents and subfolders. By default, Amazon WorkDocs returns the first 100 active document and folder metadata items. If there are more results, the response includes a marker that you can use to request the next set of results. You can also request initialized documents.
delete_folder_contentsdeletefolder_id, regionAuthenticationDeletes the contents of the specified folder.

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
folder_idstringThe ID of the folder.
regionstringAWS region (default: us-east-1)
AuthenticationstringAmazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
includestringThe contents to include. Specify "INITIALIZED" to include initialized documents.
limitintegerThe maximum number of items to return with this call.
markerstringThe marker for the next set of results. This marker was received from a previous call.
orderstringThe order for the contents of the folder.
sortstringThe sorting criteria.
typestringThe type of items.

SELECT examples

Describes the contents of the specified folder, including its documents and subfolders. By default, Amazon WorkDocs returns the first 100 active document and folder metadata items. If there are more results, the response includes a marker that you can use to request the next set of results. You can also request initialized documents.

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

DELETE examples

Deletes the contents of the specified folder.

DELETE FROM aws.workdocs.folder_contents
WHERE folder_id = '{{ folder_id }}' --required
AND region = '{{ region }}' --required
AND Authentication = '{{ Authentication }}'
;