Skip to main content

object_attributes

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

Overview

Nameobject_attributes
TypeResource
Idaws.clouddirectory.object_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesarrayThe attributes that are associated with the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_object_attributesselectx-amz-data-partition, regionx-amz-consistency-levelRetrieves attributes within a facet that are associated with an object.
list_object_attributesselectx-amz-data-partition, regionx-amz-consistency-levelLists all attributes that are associated with an object.
update_object_attributesupdatex-amz-data-partition, region, ObjectReference, AttributeUpdatesUpdates a given object's attributes.

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 Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns.
x-amz-consistency-levelstringRepresents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

SELECT examples

Retrieves attributes within a facet that are associated with an object.

SELECT
attributes
FROM aws.clouddirectory.object_attributes
WHERE `x-amz-data-partition` = '{{ x-amz-data-partition }}' -- required
AND region = '{{ region }}' -- required
AND `x-amz-consistency-level` = '{{ x-amz-consistency-level }}'
;

UPDATE examples

Updates a given object's attributes.

UPDATE aws.clouddirectory.object_attributes
SET
ObjectReference = '{{ ObjectReference }}',
AttributeUpdates = '{{ AttributeUpdates }}'
WHERE
`x-amz-data-partition` = '{{ x-amz-data-partition }}' --required
AND region = '{{ region }}' --required
AND ObjectReference = '{{ ObjectReference }}' --required
AND AttributeUpdates = '{{ AttributeUpdates }}' --required
RETURNING
object_identifier;