Skip to main content

document_paths

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

Overview

Namedocument_paths
TypeResource
Idaws.workdocs.document_paths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
componentsarrayThe components of the resource path.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_document_pathselectdocument_id, regionAuthentication, limit, fields, markerRetrieves the path information (the hierarchy from the root folder) for the requested document. By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document 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 names of the parent folders.

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
document_idstringThe ID of the document.
regionstringAWS region (default: us-east-1)
AuthenticationstringAmazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
fieldsstringA comma-separated list of values. Specify NAME to include the names of the parent folders.
limitintegerThe maximum number of levels in the hierarchy to return.
markerstringThis value is not supported.

SELECT examples

Retrieves the path information (the hierarchy from the root folder) for the requested document. By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document 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 names of the parent folders.

SELECT
components
FROM aws.workdocs.document_paths
WHERE document_id = '{{ document_id }}' -- required
AND region = '{{ region }}' -- required
AND Authentication = '{{ Authentication }}'
AND limit = '{{ limit }}'
AND fields = '{{ fields }}'
AND marker = '{{ marker }}'
;