/AWS1/IF_SGM=>CREATEHUB()¶
About CreateHub¶
Create a hub.
Method Signature¶
METHODS /AWS1/IF_SGM~CREATEHUB
IMPORTING
!IV_HUBNAME TYPE /AWS1/SGMHUBNAME OPTIONAL
!IV_HUBDESCRIPTION TYPE /AWS1/SGMHUBDESCRIPTION OPTIONAL
!IV_HUBDISPLAYNAME TYPE /AWS1/SGMHUBDISPLAYNAME OPTIONAL
!IT_HUBSEARCHKEYWORDS TYPE /AWS1/CL_SGMHUBSRCHKEYWORDLS00=>TT_HUBSEARCHKEYWORDLIST OPTIONAL
!IO_S3STORAGECONFIG TYPE REF TO /AWS1/CL_SGMHUBS3STORAGECONFIG OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmcreatehubresponse
RAISING
/AWS1/CX_SGMRESOURCEINUSE
/AWS1/CX_SGMRESOURCELIMITEXCD
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_hubname TYPE /AWS1/SGMHUBNAME /AWS1/SGMHUBNAME¶
The name of the hub to create.
iv_hubdescription TYPE /AWS1/SGMHUBDESCRIPTION /AWS1/SGMHUBDESCRIPTION¶
A description of the hub.
Optional arguments:¶
iv_hubdisplayname TYPE /AWS1/SGMHUBDISPLAYNAME /AWS1/SGMHUBDISPLAYNAME¶
The display name of the hub.
it_hubsearchkeywords TYPE /AWS1/CL_SGMHUBSRCHKEYWORDLS00=>TT_HUBSEARCHKEYWORDLIST TT_HUBSEARCHKEYWORDLIST¶
The searchable keywords for the hub.
io_s3storageconfig TYPE REF TO /AWS1/CL_SGMHUBS3STORAGECONFIG /AWS1/CL_SGMHUBS3STORAGECONFIG¶
The Amazon S3 storage configuration for the hub.
it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST¶
Any tags to associate with the hub.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmcreatehubresponse /AWS1/CL_SGMCREATEHUBRESPONSE¶
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->createhub(
io_s3storageconfig = new /aws1/cl_sgmhubs3storageconfig( |string| )
it_hubsearchkeywords = VALUE /aws1/cl_sgmhubsrchkeywordls00=>tt_hubsearchkeywordlist(
( new /aws1/cl_sgmhubsrchkeywordls00( |string| ) )
)
it_tags = VALUE /aws1/cl_sgmtag=>tt_taglist(
(
new /aws1/cl_sgmtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_hubdescription = |string|
iv_hubdisplayname = |string|
iv_hubname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_hubarn = lo_result->get_hubarn( ).
ENDIF.