Skip to main content

asset_model_interface_relationships

Creates, updates, deletes, gets or lists an asset_model_interface_relationships resource.

Overview

Nameasset_model_interface_relationships
TypeResource
Idaws.iotsitewise.asset_model_interface_relationships

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asset_model_idstringThe ID of the 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>)
hierarchy_mappingsarrayA list of hierarchy mappings between the interface asset model and the asset model where the interface is applied.
interface_asset_model_idstringThe ID of the interface 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>)
property_mappingsarrayA list of property mappings between the interface asset model and the asset model where the interface is applied.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_asset_model_interface_relationshipselectasset_model_id, interface_asset_model_id, regionRetrieves information about an interface relationship between an asset model and an interface asset model.
put_asset_model_interface_relationshipreplaceasset_model_id, interface_asset_model_id, region, propertyMappingConfigurationCreates or updates an interface relationship between an asset model and an interface asset model. This operation applies an interface to an asset model.
delete_asset_model_interface_relationshipdeleteasset_model_id, interface_asset_model_id, regionclientTokenDeletes an interface relationship between an asset model and an interface asset 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.
interface_asset_model_idstringThe ID of the interface asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID.
regionstringAWS region (default: us-east-1)
clientTokenstringA unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

SELECT examples

Retrieves information about an interface relationship between an asset model and an interface asset model.

SELECT
asset_model_id,
hierarchy_mappings,
interface_asset_model_id,
property_mappings
FROM aws.iotsitewise.asset_model_interface_relationships
WHERE asset_model_id = '{{ asset_model_id }}' -- required
AND interface_asset_model_id = '{{ interface_asset_model_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Creates or updates an interface relationship between an asset model and an interface asset model. This operation applies an interface to an asset model.

REPLACE aws.iotsitewise.asset_model_interface_relationships
SET
propertyMappingConfiguration = '{{ propertyMappingConfiguration }}',
clientToken = '{{ clientToken }}'
WHERE
asset_model_id = '{{ asset_model_id }}' --required
AND interface_asset_model_id = '{{ interface_asset_model_id }}' --required
AND region = '{{ region }}' --required
AND propertyMappingConfiguration = '{{ propertyMappingConfiguration }}' --required
RETURNING
asset_model_arn,
asset_model_id,
asset_model_status,
interface_asset_model_id;

DELETE examples

Deletes an interface relationship between an asset model and an interface asset model.

DELETE FROM aws.iotsitewise.asset_model_interface_relationships
WHERE asset_model_id = '{{ asset_model_id }}' --required
AND interface_asset_model_id = '{{ interface_asset_model_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;