View a markdown version of this page

Use ListAssetModelProperties with an AWS SDK - AWS IoT SiteWise

Use ListAssetModelProperties with an AWS 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 AWS 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 AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.