Skip to main content

link_attributes

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

Overview

Namelink_attributes
TypeResource
Idaws.clouddirectory.link_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesarrayThe attributes that are associated with the typed link.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_link_attributesselectx-amz-data-partition, regionRetrieves attributes that are associated with a typed link.
update_link_attributesupdatex-amz-data-partition, region, TypedLinkSpecifier, AttributeUpdatesUpdates a given typed link’s attributes. Attributes to be updated must not contribute to the typed link’s identity, as defined by its IdentityAttributeOrder.

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 updated typed link resides. For more information, see arns or Typed Links.

SELECT examples

Retrieves attributes that are associated with a typed link.

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

UPDATE examples

Updates a given typed link’s attributes. Attributes to be updated must not contribute to the typed link’s identity, as defined by its IdentityAttributeOrder.

UPDATE aws.clouddirectory.link_attributes
SET
TypedLinkSpecifier = '{{ TypedLinkSpecifier }}',
AttributeUpdates = '{{ AttributeUpdates }}'
WHERE
`x-amz-data-partition` = '{{ x-amz-data-partition }}' --required
AND region = '{{ region }}' --required
AND TypedLinkSpecifier = '{{ TypedLinkSpecifier }}' --required
AND AttributeUpdates = '{{ AttributeUpdates }}' --required;