/AWS1/IF_IOT=>UPDATEPROVISIONINGTEMPLATE()¶
About UpdateProvisioningTemplate¶
Updates a provisioning template.
Requires permission to access the UpdateProvisioningTemplate action.
Method Signature¶
METHODS /AWS1/IF_IOT~UPDATEPROVISIONINGTEMPLATE
IMPORTING
!IV_TEMPLATENAME TYPE /AWS1/IOTTEMPLATENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IOTTEMPLATEDESCRIPTION OPTIONAL
!IV_ENABLED TYPE /AWS1/IOTENABLED2 OPTIONAL
!IV_DEFAULTVERSIONID TYPE /AWS1/IOTTEMPLATEVERSIONID OPTIONAL
!IV_PROVISIONINGROLEARN TYPE /AWS1/IOTROLEARN OPTIONAL
!IO_PREPROVISIONINGHOOK TYPE REF TO /AWS1/CL_IOTPROVISIONINGHOOK OPTIONAL
!IV_REMOVEPREPROVISIONINGHOOK TYPE /AWS1/IOTREMOVEHOOK OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotupdateprovtmplrsp
RAISING
/AWS1/CX_IOTCNFLCTRESRCUPDEX
/AWS1/CX_IOTINTERNALFAILUREEX
/AWS1/CX_IOTINVALIDREQUESTEX
/AWS1/CX_IOTRESOURCENOTFOUNDEX
/AWS1/CX_IOTUNAUTHORIZEDEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_templatename TYPE /AWS1/IOTTEMPLATENAME /AWS1/IOTTEMPLATENAME¶
The name of the provisioning template.
Optional arguments:¶
iv_description TYPE /AWS1/IOTTEMPLATEDESCRIPTION /AWS1/IOTTEMPLATEDESCRIPTION¶
The description of the provisioning template.
iv_enabled TYPE /AWS1/IOTENABLED2 /AWS1/IOTENABLED2¶
True to enable the provisioning template, otherwise false.
iv_defaultversionid TYPE /AWS1/IOTTEMPLATEVERSIONID /AWS1/IOTTEMPLATEVERSIONID¶
The ID of the default provisioning template version.
iv_provisioningrolearn TYPE /AWS1/IOTROLEARN /AWS1/IOTROLEARN¶
The ARN of the role associated with the provisioning template. This IoT role grants permission to provision a device.
io_preprovisioninghook TYPE REF TO /AWS1/CL_IOTPROVISIONINGHOOK /AWS1/CL_IOTPROVISIONINGHOOK¶
Updates the pre-provisioning hook template. Only supports template of type
FLEET_PROVISIONING. For more information about provisioning template types, see type.
iv_removepreprovisioninghook TYPE /AWS1/IOTREMOVEHOOK /AWS1/IOTREMOVEHOOK¶
Removes pre-provisioning hook template.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotupdateprovtmplrsp /AWS1/CL_IOTUPDATEPROVTMPLRSP¶
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->updateprovisioningtemplate(
io_preprovisioninghook = new /aws1/cl_iotprovisioninghook(
iv_payloadversion = |string|
iv_targetarn = |string|
)
iv_defaultversionid = 123
iv_description = |string|
iv_enabled = ABAP_TRUE
iv_provisioningrolearn = |string|
iv_removepreprovisioninghook = ABAP_TRUE
iv_templatename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.