/AWS1/IF_OMX=>CREATECONFIGURATION()¶
About CreateConfiguration¶
Create a new configuration.
Method Signature¶
METHODS /AWS1/IF_OMX~CREATECONFIGURATION
IMPORTING
!IV_NAME TYPE /AWS1/OMXCONFIGURATIONNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/OMXCONFDESCRIPTION OPTIONAL
!IO_RUNCONFIGURATIONS TYPE REF TO /AWS1/CL_OMXRUNCONFIGURATIONS OPTIONAL
!IT_TAGS TYPE /AWS1/CL_OMXTAGMAP_W=>TT_TAGMAP OPTIONAL
!IV_REQUESTID TYPE /AWS1/OMXCONFREQUESTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_omxcreateconfresponse
RAISING
/AWS1/CX_OMXACCESSDENIEDEX
/AWS1/CX_OMXCONFLICTEXCEPTION
/AWS1/CX_OMXINTERNALSERVEREX
/AWS1/CX_OMXREQUESTTIMEOUTEX
/AWS1/CX_OMXRESOURCENOTFOUNDEX
/AWS1/CX_OMXSERVICEQUOTAEXCDEX
/AWS1/CX_OMXTHROTTLINGEX
/AWS1/CX_OMXVALIDATIONEX
/AWS1/CX_OMXCLIENTEXC
/AWS1/CX_OMXSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/OMXCONFIGURATIONNAME /AWS1/OMXCONFIGURATIONNAME¶
User-friendly name for the configuration.
io_runconfigurations TYPE REF TO /AWS1/CL_OMXRUNCONFIGURATIONS /AWS1/CL_OMXRUNCONFIGURATIONS¶
Required run-specific configurations.
iv_requestid TYPE /AWS1/OMXCONFREQUESTID /AWS1/OMXCONFREQUESTID¶
Optional request idempotency token. If not specified, a universally unique identifier (UUID) will be automatically generated for the request.
Optional arguments:¶
iv_description TYPE /AWS1/OMXCONFDESCRIPTION /AWS1/OMXCONFDESCRIPTION¶
Optional description for the configuration.
it_tags TYPE /AWS1/CL_OMXTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
Optional tags for the configuration.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_omxcreateconfresponse /AWS1/CL_OMXCREATECONFRESPONSE¶
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->createconfiguration(
io_runconfigurations = new /aws1/cl_omxrunconfigurations(
io_vpcconfig = new /aws1/cl_omxvpcconfig(
it_securitygroupids = VALUE /aws1/cl_omxsecuritygroupids_w=>tt_securitygroupids(
( new /aws1/cl_omxsecuritygroupids_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_omxsubnetids_w=>tt_subnetids(
( new /aws1/cl_omxsubnetids_w( |string| ) )
)
)
)
it_tags = VALUE /aws1/cl_omxtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_omxtagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_omxtagmap_w( |string| )
)
)
)
iv_description = |string|
iv_name = |string|
iv_requestid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_configurationarn = lo_result->get_arn( ).
lv_configurationuuid = lo_result->get_uuid( ).
lv_configurationname = lo_result->get_name( ).
lv_configurationdescriptio = lo_result->get_description( ).
lo_runconfigurationsrespon = lo_result->get_runconfigurations( ).
IF lo_runconfigurationsrespon IS NOT INITIAL.
lo_vpcconfigresponse = lo_runconfigurationsrespon->get_vpcconfig( ).
IF lo_vpcconfigresponse IS NOT INITIAL.
LOOP AT lo_vpcconfigresponse->get_securitygroupids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_securitygroupid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_vpcconfigresponse->get_subnetids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_subnetid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_vpcid = lo_vpcconfigresponse->get_vpcid( ).
ENDIF.
ENDIF.
lv_configurationstatus = lo_result->get_status( ).
lv_configurationtimestamp = lo_result->get_creationtime( ).
LOOP AT lo_result->get_tags( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.