/AWS1/IF_QST=>UPDATETOPICV2()¶
About UpdateTopicV2¶
Updates the definition of a Q topic.
Method Signature¶
METHODS /AWS1/IF_QST~UPDATETOPICV2
IMPORTING
!IV_AWSACCOUNTID TYPE /AWS1/QSTAWSACCOUNTID OPTIONAL
!IV_TOPICID TYPE /AWS1/QSTTOPICID OPTIONAL
!IO_TOPIC TYPE REF TO /AWS1/CL_QSTTOPICV2DETAILS OPTIONAL
!IO_CUSTOMINSTRUCTIONS TYPE REF TO /AWS1/CL_QSTCUSTOMINSTRUCTIONS OPTIONAL
!IV_PUBLISHOPTION TYPE /AWS1/QSTTOPICV2PUBLISHOPTION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstupdatetopicv2rsp
RAISING
/AWS1/CX_QSTACCESSDENIEDEX
/AWS1/CX_QSTCONFLICTEXCEPTION
/AWS1/CX_QSTINTERNALFAILUREEX
/AWS1/CX_QSTINVPARAMVALUEEX
/AWS1/CX_QSTLIMITEXCEEDEDEX
/AWS1/CX_QSTRESOURCEEXISTSEX
/AWS1/CX_QSTRESOURCENOTFOUNDEX
/AWS1/CX_QSTTHROTTLINGEX
/AWS1/CX_QSTCLIENTEXC
/AWS1/CX_QSTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_awsaccountid TYPE /AWS1/QSTAWSACCOUNTID /AWS1/QSTAWSACCOUNTID¶
The ID of the Amazon Web Services account that contains the topic that you want to update.
iv_topicid TYPE /AWS1/QSTTOPICID /AWS1/QSTTOPICID¶
The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
io_topic TYPE REF TO /AWS1/CL_QSTTOPICV2DETAILS /AWS1/CL_QSTTOPICV2DETAILS¶
The definition of the topic that you want to update.
Optional arguments:¶
io_custominstructions TYPE REF TO /AWS1/CL_QSTCUSTOMINSTRUCTIONS /AWS1/CL_QSTCUSTOMINSTRUCTIONS¶
Instructions that provide additional guidance and context for response generation.
iv_publishoption TYPE /AWS1/QSTTOPICV2PUBLISHOPTION /AWS1/QSTTOPICV2PUBLISHOPTION¶
The publish option for the topic that you want to update.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_qstupdatetopicv2rsp /AWS1/CL_QSTUPDATETOPICV2RSP¶
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->updatetopicv2(
io_custominstructions = new /aws1/cl_qstcustominstructions( |string| )
io_topic = new /aws1/cl_qsttopicv2details(
it_datasetrelations = VALUE /aws1/cl_qsttopicv2dsrelation=>tt_topicv2datasetrelationlist(
(
new /aws1/cl_qsttopicv2dsrelation(
io_left = new /aws1/cl_qsttpcv2dsrelatione00(
it_columnnames = VALUE /aws1/cl_qsttpcv2dsrelationc00=>tt_topicv2dsrelationcolmnames(
( new /aws1/cl_qsttpcv2dsrelationc00( |string| ) )
)
iv_datasetarn = |string|
)
io_right = new /aws1/cl_qsttpcv2dsrelatione00(
it_columnnames = VALUE /aws1/cl_qsttpcv2dsrelationc00=>tt_topicv2dsrelationcolmnames(
( new /aws1/cl_qsttpcv2dsrelationc00( |string| ) )
)
iv_datasetarn = |string|
)
)
)
)
it_datasets = VALUE /aws1/cl_qsttopicv2datasetref=>tt_topicv2datasetreferences(
(
new /aws1/cl_qsttopicv2datasetref(
iv_datasetarn = |string|
iv_datasetname = |string|
)
)
)
iv_description = |string|
iv_name = |string|
)
iv_awsaccountid = |string|
iv_publishoption = |string|
iv_topicid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_arn( ).
lv_topicid = lo_result->get_topicid( ).
lv_string = lo_result->get_requestid( ).
lv_statuscode = lo_result->get_status( ).
ENDIF.