Skip to main content

facet_attributes

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

Overview

Namefacet_attributes
TypeResource
Idaws.clouddirectory.facet_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attribute_definitionobjectA facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information.
attribute_referenceobjectAn attribute reference that is associated with the attribute. See Attribute References for more information.
namestringThe name of the facet attribute. (pattern: <code>^[a-zA-Z0-9._:-]*$</code>)
required_behaviorstringThe required behavior of the FacetAttribute. (REQUIRED_ALWAYS, NOT_REQUIRED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_facet_attributesselectx-amz-data-partition, regionRetrieves attributes attached to the facet.

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 schema where the facet resides.

SELECT examples

Retrieves attributes attached to the facet.

SELECT
attribute_definition,
attribute_reference,
name,
required_behavior
FROM aws.clouddirectory.facet_attributes
WHERE `x-amz-data-partition` = '{{ x-amz-data-partition }}' -- required
AND region = '{{ region }}' -- required
;