link_attributes
Creates, updates, deletes, gets or lists a link_attributes resource.
Overview
| Name | link_attributes |
| Type | Resource |
| Id | aws.clouddirectory.link_attributes |
Fields
The following fields are returned by SELECT queries:
- get_link_attributes
| Name | Datatype | Description |
|---|---|---|
attributes | array | The attributes that are associated with the typed link. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_link_attributes | select | x-amz-data-partition, region | Retrieves attributes that are associated with a typed link. | |
update_link_attributes | update | x-amz-data-partition, region, TypedLinkSpecifier, AttributeUpdates | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
x-amz-data-partition | string | The 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
- get_link_attributes
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
- update_link_attributes
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;