Skip to main content

attached_indices

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

Overview

Nameattached_indices
TypeResource
Idaws.clouddirectory.attached_indices

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
indexed_attributesarrayThe indexed attribute values.
object_identifierstringIn response to ListIndex, the ObjectIdentifier of the object attached to the index. In response to ListAttachedIndices, the ObjectIdentifier of the index attached to the object. This field will always contain the ObjectIdentifier of the object on the opposite side of the attachment specified in the query.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_attached_indicesselectx-amz-data-partition, regionx-amz-consistency-levelLists indices attached to the specified 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.
x-amz-consistency-levelstringThe consistency level to use for this operation.

SELECT examples

Lists indices attached to the specified object.

SELECT
indexed_attributes,
object_identifier
FROM aws.clouddirectory.attached_indices
WHERE `x-amz-data-partition` = '{{ x-amz-data-partition }}' -- required
AND region = '{{ region }}' -- required
AND `x-amz-consistency-level` = '{{ x-amz-consistency-level }}'
;