/AWS1/IF_IOT=>UPDATEPACKAGECONFIGURATION()¶
About UpdatePackageConfiguration¶
Updates the software package configuration.
Requires permission to access the UpdatePackageConfiguration and iam:PassRole actions.
Method Signature¶
METHODS /AWS1/IF_IOT~UPDATEPACKAGECONFIGURATION
IMPORTING
!IO_VERSIONUPDATEBYJOBSCONFIG TYPE REF TO /AWS1/CL_IOTVRSUPDATEBYJOBSCFG OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/IOTCLIENTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotupdpackageconfrsp
RAISING
/AWS1/CX_IOTCONFLICTEXCEPTION
/AWS1/CX_IOTINTERNALSERVEREX
/AWS1/CX_IOTTHROTTLINGEX
/AWS1/CX_IOTVALIDATIONEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
io_versionupdatebyjobsconfig TYPE REF TO /AWS1/CL_IOTVRSUPDATEBYJOBSCFG /AWS1/CL_IOTVRSUPDATEBYJOBSCFG¶
Configuration to manage job's package version reporting. This updates the thing's reserved named shadow that the job targets.
iv_clienttoken TYPE /AWS1/IOTCLIENTTOKEN /AWS1/IOTCLIENTTOKEN¶
A 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.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotupdpackageconfrsp /AWS1/CL_IOTUPDPACKAGECONFRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->updatepackageconfiguration(
io_versionupdatebyjobsconfig = new /aws1/cl_iotvrsupdatebyjobscfg(
iv_enabled = ABAP_TRUE
iv_rolearn = |string|
)
iv_clienttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.