View a markdown version of this page

Use ListAssetModelProperties with an Amazon SDK - Amazon IoT SiteWise
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).

Use ListAssetModelProperties with an Amazon SDK

The following code example shows how to use ListAssetModelProperties.

Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example:

SAP ABAP
SDK for SAP ABAP
Note

There's more on GitHub. Find the complete example and learn how to set up and run in the Amazon Code Examples Repository.

TRY. oo_result = lo_ios->listassetmodelproperties( iv_assetmodelid = iv_asset_model_id ). " oo_result is returned for testing purposes. " DATA(lt_properties) = oo_result->get_assetmodelpropertysums( ). MESSAGE 'Retrieved list of asset model properties.' TYPE 'I'. CATCH /aws1/cx_rt_generic. MESSAGE 'Unable to list asset model properties.' TYPE 'E'. ENDTRY.

For a complete list of Amazon SDK developer guides and code examples, see Using this service with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.