Skip to main content

composition_relationships

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

Overview

Namecomposition_relationships
TypeResource
Idaws.iotsitewise.composition_relationships

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asset_model_composite_model_idstringThe ID of a composite model on this asset model. (pattern: <code>^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
asset_model_composite_model_typestringThe composite model type. Valid values are AWS/ALARM, CUSTOM, or AWS/L4E_ANOMALY. (pattern: <code>[^\u0000-\u001F\u007F]+</code>)
asset_model_idstringThe ID of the asset model, in UUID format. (pattern: <code>^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_composition_relationshipsselectasset_model_id, regionnextToken, maxResultsRetrieves a paginated list of composition relationships for an asset model of type COMPONENT_MODEL.

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
asset_model_idstringThe ID of the asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return for each paginated request. Default: 50
nextTokenstringThe token to be used for the next set of paginated results.

SELECT examples

Retrieves a paginated list of composition relationships for an asset model of type COMPONENT_MODEL.

SELECT
asset_model_composite_model_id,
asset_model_composite_model_type,
asset_model_id
FROM aws.iotsitewise.composition_relationships
WHERE asset_model_id = '{{ asset_model_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;