/AWS1/IF_QST=>CREATETOPICV2()¶
About CreateTopicV2¶
Creates a new Q topic.
Method Signature¶
METHODS /AWS1/IF_QST~CREATETOPICV2
IMPORTING
!IV_AWSACCOUNTID TYPE /AWS1/QSTAWSACCOUNTID OPTIONAL
!IV_TOPICID TYPE /AWS1/QSTTOPICID OPTIONAL
!IO_TOPIC TYPE REF TO /AWS1/CL_QSTTOPICV2DETAILS OPTIONAL
!IT_TAGS TYPE /AWS1/CL_QSTTAG=>TT_TAGLIST OPTIONAL
!IT_FOLDERARNS TYPE /AWS1/CL_QSTFOLDERARNLIST_W=>TT_FOLDERARNLIST OPTIONAL
!IO_CUSTOMINSTRUCTIONS TYPE REF TO /AWS1/CL_QSTCUSTOMINSTRUCTIONS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstcreatetopicv2rsp
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 you want to create a topic in.
iv_topicid TYPE /AWS1/QSTTOPICID /AWS1/QSTTOPICID¶
The ID for the topic that you want to create. 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 a topic to create.
Optional arguments:¶
it_tags TYPE /AWS1/CL_QSTTAG=>TT_TAGLIST TT_TAGLIST¶
Contains a map of the key-value pairs for the resource tag or tags that are assigned to the topic.
it_folderarns TYPE /AWS1/CL_QSTFOLDERARNLIST_W=>TT_FOLDERARNLIST TT_FOLDERARNLIST¶
The Amazon Resource Names (ARNs) of the folders that you want the topic to reside in.
io_custominstructions TYPE REF TO /AWS1/CL_QSTCUSTOMINSTRUCTIONS /AWS1/CL_QSTCUSTOMINSTRUCTIONS¶
Instructions that provide additional guidance and context for response generation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_qstcreatetopicv2rsp /AWS1/CL_QSTCREATETOPICV2RSP¶
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->createtopicv2(
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|
)
it_folderarns = VALUE /aws1/cl_qstfolderarnlist_w=>tt_folderarnlist(
( new /aws1/cl_qstfolderarnlist_w( |string| ) )
)
it_tags = VALUE /aws1/cl_qsttag=>tt_taglist(
(
new /aws1/cl_qsttag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_awsaccountid = |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.