typed_links
Creates, updates, deletes, gets or lists a typed_links resource.
Overview
| Name | typed_links |
| Type | Resource |
| Id | aws.clouddirectory.typed_links |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
attach_typed_link | update | x-amz-data-partition, region, SourceObjectReference, TargetObjectReference, TypedLinkFacet, Attributes | Attaches a typed link to a specified source and target object. For more information, see Typed Links. | |
detach_typed_link | update | x-amz-data-partition, region, TypedLinkSpecifier | Detaches a typed link from a specified source and target object. For more information, see Typed Links. |
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) of the directory where you want to detach the typed link. |
UPDATE examples
- attach_typed_link
- detach_typed_link
Attaches a typed link to a specified source and target object. For more information, see Typed Links.
UPDATE aws.clouddirectory.typed_links
SET
SourceObjectReference = '{{ SourceObjectReference }}',
TargetObjectReference = '{{ TargetObjectReference }}',
TypedLinkFacet = '{{ TypedLinkFacet }}',
Attributes = '{{ Attributes }}'
WHERE
`x-amz-data-partition` = '{{ x-amz-data-partition }}' --required
AND region = '{{ region }}' --required
AND SourceObjectReference = '{{ SourceObjectReference }}' --required
AND TargetObjectReference = '{{ TargetObjectReference }}' --required
AND TypedLinkFacet = '{{ TypedLinkFacet }}' --required
AND Attributes = '{{ Attributes }}' --required
RETURNING
typed_link_specifier;
Detaches a typed link from a specified source and target object. For more information, see Typed Links.
UPDATE aws.clouddirectory.typed_links
SET
TypedLinkSpecifier = '{{ TypedLinkSpecifier }}'
WHERE
`x-amz-data-partition` = '{{ x-amz-data-partition }}' --required
AND region = '{{ region }}' --required
AND TypedLinkSpecifier = '{{ TypedLinkSpecifier }}' --required;