/AWS1/IF_IOM=>CREATEWORKSPACE()¶
About CreateWorkspace¶
Creates a workplace.
Method Signature¶
METHODS /AWS1/IF_IOM~CREATEWORKSPACE
IMPORTING
!IV_WORKSPACEID TYPE /AWS1/IOMID OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IOMDESCRIPTION OPTIONAL
!IV_S3LOCATION TYPE /AWS1/IOMS3LOCATION OPTIONAL
!IV_ROLE TYPE /AWS1/IOMROLEARN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_IOMTAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iomcreateworkspacersp
RAISING
/AWS1/CX_IOMACCESSDENIEDEX
/AWS1/CX_IOMCONFLICTEXCEPTION
/AWS1/CX_IOMINTERNALSERVEREX
/AWS1/CX_IOMSERVICEQUOTAEXCDEX
/AWS1/CX_IOMTHROTTLINGEX
/AWS1/CX_IOMVALIDATIONEX
/AWS1/CX_IOMCLIENTEXC
/AWS1/CX_IOMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_workspaceid TYPE /AWS1/IOMID /AWS1/IOMID¶
The ID of the workspace.
Optional arguments:¶
iv_description TYPE /AWS1/IOMDESCRIPTION /AWS1/IOMDESCRIPTION¶
The description of the workspace.
iv_s3location TYPE /AWS1/IOMS3LOCATION /AWS1/IOMS3LOCATION¶
The ARN of the S3 bucket where resources associated with the workspace are stored.
iv_role TYPE /AWS1/IOMROLEARN /AWS1/IOMROLEARN¶
The ARN of the execution role associated with the workspace.
it_tags TYPE /AWS1/CL_IOMTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
Metadata that you can use to manage the workspace
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iomcreateworkspacersp /AWS1/CL_IOMCREATEWORKSPACERSP¶
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->createworkspace(
it_tags = VALUE /aws1/cl_iomtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_iomtagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_iomtagmap_w( |string| )
)
)
)
iv_description = |string|
iv_role = |string|
iv_s3location = |string|
iv_workspaceid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_twinmakerarn = lo_result->get_arn( ).
lv_timestamp = lo_result->get_creationdatetime( ).
ENDIF.