Skip to main content

object_parent_paths

Creates, updates, deletes, gets or lists an object_parent_paths resource.

Overview​

Nameobject_parent_paths
TypeResource
Idaws.clouddirectory.object_parent_paths

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
object_identifiersarrayLists ObjectIdentifiers starting from directory root to the object in the request.
pathstringThe path that is used to identify the object starting from directory root.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_object_parent_pathsselectx-amz-data-partition, regionRetrieves all available parent paths for any object type such as node, leaf node, policy node, and index node objects. For more information about objects, see Directory Structure. Use this API to evaluate all parents for an object. The call returns all objects from the root of the directory up to the requested object. The API returns the number of paths based on user-defined MaxResults, in case there are multiple paths to the parent. The order of the paths and nodes returned is consistent among multiple API calls unless the objects are deleted or moved. Paths not leading to the directory root are ignored from the target object.

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
regionstringAWS region (default: us-east-1)
x-amz-data-partitionstringThe ARN of the directory to which the parent path applies.

SELECT examples​

Retrieves all available parent paths for any object type such as node, leaf node, policy node, and index node objects. For more information about objects, see Directory Structure. Use this API to evaluate all parents for an object. The call returns all objects from the root of the directory up to the requested object. The API returns the number of paths based on user-defined MaxResults, in case there are multiple paths to the parent. The order of the paths and nodes returned is consistent among multiple API calls unless the objects are deleted or moved. Paths not leading to the directory root are ignored from the target object.

SELECT
object_identifiers,
path
FROM aws.clouddirectory.object_parent_paths
WHERE `x-amz-data-partition` = '{{ x-amz-data-partition }}' -- required
AND region = '{{ region }}' -- required
;