/AWS1/IF_IOT=>UPDATETOPICRULEDESTINATION()¶
About UpdateTopicRuleDestination¶
Updates a topic rule destination. You use this to change the status, endpoint URL, or confirmation URL of the destination.
Requires permission to access the UpdateTopicRuleDestination action.
Method Signature¶
METHODS /AWS1/IF_IOT~UPDATETOPICRULEDESTINATION
IMPORTING
!IV_ARN TYPE /AWS1/IOTAWSARN OPTIONAL
!IV_STATUS TYPE /AWS1/IOTTOPICRULEDSTSTATUS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotupdtopicruledstrsp
RAISING
/AWS1/CX_IOTCNFLCTRESRCUPDEX
/AWS1/CX_IOTINTERNALEXCEPTION
/AWS1/CX_IOTINVALIDREQUESTEX
/AWS1/CX_IOTSERVICEUNAVAILEX
/AWS1/CX_IOTUNAUTHORIZEDEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_arn TYPE /AWS1/IOTAWSARN /AWS1/IOTAWSARN¶
The ARN of the topic rule destination.
iv_status TYPE /AWS1/IOTTOPICRULEDSTSTATUS /AWS1/IOTTOPICRULEDSTSTATUS¶
The status of the topic rule destination. Valid values are:
- IN_PROGRESS
A topic rule destination was created but has not been confirmed. You can set
statustoIN_PROGRESSby callingUpdateTopicRuleDestination. CallingUpdateTopicRuleDestinationcauses a new confirmation challenge to be sent to your confirmation endpoint.- ENABLED
Confirmation was completed, and traffic to this destination is allowed. You can set
statustoDISABLEDby callingUpdateTopicRuleDestination.- DISABLED
Confirmation was completed, and traffic to this destination is not allowed. You can set
statustoENABLEDby callingUpdateTopicRuleDestination.- ERROR
Confirmation could not be completed, for example if the confirmation timed out. You can call
GetTopicRuleDestinationfor details about the error. You can setstatustoIN_PROGRESSby callingUpdateTopicRuleDestination. CallingUpdateTopicRuleDestinationcauses a new confirmation challenge to be sent to your confirmation endpoint.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotupdtopicruledstrsp /AWS1/CL_IOTUPDTOPICRULEDSTRSP¶
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->updatetopicruledestination(
iv_arn = |string|
iv_status = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.