Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Manage interfaces, linked asset models, and
properties
After creating interfaces and linking them to asset models, you can manage relationships,
edit, and delete interfaces through the console or Amazon CLI.
Modify an interface and asset model relationship
To change an interface's relationship to an asset model, do the following in either the
Amazon IoT SiteWise console or through Amazon CLI:
- Console
-
-
Navigate to the Amazon IoT SiteWise console and choose Models from
the navigation pane.
-
Select the interface you want modify.
-
Choose the asset model to modify and edit it.
You can follow the Apply an interface to an asset model instructions to link a different
asset model.
-
Choose Apply interface to save your changes.
- Amazon CLI
-
To edit an interface and asset model relationship, use the
PutAssetModelInterfaceRelationship
action. Replace
your-asset-model-id
and
your-interface-asset-model-id
with your own values. For
more information, see PutAssetModelInterfaceRelationship in the Amazon IoT SiteWise API Reference.
aws iotsitewise put-asset-model-interface-relationship \
--asset-model-id your-asset-model-id
\
--interface-asset-model-id your-interface-asset-model-id
Modify an interface property mapping
To change an interface's property, do the following in either the Amazon IoT SiteWise console or
through Amazon CLI:
- Console
-
-
Navigate to the Amazon IoT SiteWise console and choose Models from
the navigation pane.
-
Select the interface for which you want modify property mappings. The
Edit property mappings page appears.
-
In the Property mappings section, filter the list to find
the appropriate property mappings.
-
Change the properties using the Model property
column.
- Amazon CLI
-
To edit an interface and asset model relationship, use the
PutAssetModelInterfaceRelationship
action. Replace
your-asset-model-id
and
your-interface-asset-model-id
with your own values. For
more information, see PutAssetModelInterfaceRelationship in the Amazon IoT SiteWise API Reference.
aws iotsitewise put-asset-model-interface-relationship \
--asset-model-id your-asset-model-id
\
--interface-asset-model-id your-interface-asset-model-id
\
List interfaces linked to an asset model
To get a list of interfaces applied to an asset model, do the following in either the
Amazon IoT SiteWise console or through Amazon CLI:
- Console
-
-
Navigate to the Amazon IoT SiteWise console and choose Models from
the navigation pane.
-
In the Models section, choose the appropriate asset model
or interface. You can view a list of either applied interfaces or linked asset
models on the model's corresponding details page.
-
When viewing a particular interface, see the Linked asset
models section.
-
When viewing a particular asset model, see the Applied
interfaces section.
- Amazon CLI
-
To list interfaces, you can use the ListInterfaceRelationships
operation. Replace your-interface-asset-model-id
with your
own value. For more information, see ListInterfaceRelationships
in the Amazon IoT SiteWise API Reference.
aws iotsitewise list-interface-relationships \
--interface-asset-model-id your-interface-asset-model-id
\
[--next-token your-next-token
] \
[--max-results 20
]
View the details of an interface and asset model
relationship
To see the details of an interface applied to an asset model, do the following in either
the Amazon IoT SiteWise console or through Amazon CLI:
- Console
-
View the details of applied interfaces and linked asset models.
-
Navigate to the Amazon IoT SiteWise console and choose Models from
the navigation pane.
-
In the Models section, search for the appropriate asset
model or interface. Select the model or interface's Name to
open up a page containing more details.
- Amazon CLI
-
To view interface details for an interface and asset model relationship, use the
DescribeAssetModelInterfaceRelationship
action. Replace
your-asset-model-id
and
your-interface-asset-model-id
with your own values. For
more information, see DescribeAssetModelInterfaceRelationship in the Amazon IoT SiteWise API Reference.
aws iotsitewise describe-asset-model-interface-relationship \
--asset-model-id your-asset-model-id
\
--interface-asset-model-id your-interface-asset-model-id
Remove an interface applied to an asset model
To remove an interface applied to an asset model, do the following in either the
Amazon IoT SiteWise console or through Amazon CLI:
- Console
-
We recommend removing an interface through the asset model. You can also delete an
interface or unlink an interface through a particular interface's page.
-
Navigate to the Amazon IoT SiteWise console and choose Models from
the navigation pane.
-
Select the appropriate asset model from which to remove the interface
relationship.
-
Choose Unlink asset model.
- Amazon CLI
-
To remove an interface relationship from an asset model, you can use the
DeleteAssetModelInterfaceRelationship
action. Replace
your-interface-asset-model-id
with your own value. For
more information, see DeleteAssetModelInterfaceRelationship in the Amazon IoT SiteWise API Reference.
aws iotsitewise delete-asset-model-interface-relationship \
--asset-model-id your-asset-model-id
\
--interface-asset-model-id your-interface-asset-model-id