/AWS1/IF_DOA=>CREATEPRIVATECONNECTION()¶
About CreatePrivateConnection¶
Creates a Private Connection to a target resource.
Method Signature¶
METHODS /AWS1/IF_DOA~CREATEPRIVATECONNECTION
IMPORTING
!IV_NAME TYPE /AWS1/DOAPRIVATECONNECTIONNAME OPTIONAL
!IO_MODE TYPE REF TO /AWS1/CL_DOAPRIVATECONNMODE OPTIONAL
!IT_TAGS TYPE /AWS1/CL_DOATAGS_W=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_doacreatepvtconnout
RAISING
/AWS1/CX_DOAACCESSDENIEDEX
/AWS1/CX_DOACONFLICTEXCEPTION
/AWS1/CX_DOACONTENTSIZEEXCDEX
/AWS1/CX_DOAINTERNALSERVEREX
/AWS1/CX_DOAINVALIDPARAMETEREX
/AWS1/CX_DOARESOURCENOTFOUNDEX
/AWS1/CX_DOASERVICEQUOTAEXCDEX
/AWS1/CX_DOATHROTTLINGEX
/AWS1/CX_DOAVLDTNEXCEPTION
/AWS1/CX_DOACLIENTEXC
/AWS1/CX_DOASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/DOAPRIVATECONNECTIONNAME /AWS1/DOAPRIVATECONNECTIONNAME¶
Unique name for this Private Connection within the account.
io_mode TYPE REF TO /AWS1/CL_DOAPRIVATECONNMODE /AWS1/CL_DOAPRIVATECONNMODE¶
Private Connection mode configuration.
Optional arguments:¶
it_tags TYPE /AWS1/CL_DOATAGS_W=>TT_TAGS TT_TAGS¶
Tags to add to the Private Connection at creation time.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_doacreatepvtconnout /AWS1/CL_DOACREATEPVTCONNOUT¶
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->createprivateconnection(
io_mode = new /aws1/cl_doaprivateconnmode(
io_selfmanaged = new /aws1/cl_doaselfmanagedinput(
iv_certificate = |string|
iv_resourceconfigurationid = |string|
)
io_servicemanaged = new /aws1/cl_doasvcmanagedinput(
it_portranges = VALUE /aws1/cl_doaportranges_w=>tt_portranges(
( new /aws1/cl_doaportranges_w( |string| ) )
)
it_securitygroupids = VALUE /aws1/cl_doalistofsecgrpids_w=>tt_listofsecuritygroupids(
( new /aws1/cl_doalistofsecgrpids_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_doalistofsubnetids_w=>tt_listofsubnetids(
( new /aws1/cl_doalistofsubnetids_w( |string| ) )
)
iv_certificate = |string|
iv_hostaddress = |string|
iv_ipaddresstype = |string|
iv_ipv4addressespereni = 123
iv_vpcid = |string|
)
)
it_tags = VALUE /aws1/cl_doatags_w=>tt_tags(
(
VALUE /aws1/cl_doatags_w=>ts_tags_maprow(
value = new /aws1/cl_doatags_w( |string| )
key = |string|
)
)
)
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_privateconnectionname = lo_result->get_name( ).
lv_privateconnectiontype = lo_result->get_type( ).
lv_resourcegatewayarn = lo_result->get_resourcegatewayid( ).
lv_ipaddressordnsname = lo_result->get_hostaddress( ).
lv_vpcid = lo_result->get_vpcid( ).
lv_resourceconfigurationar = lo_result->get_resourceconfigurationid( ).
lv_privateconnectionstatus = lo_result->get_status( ).
lv_timestamp = lo_result->get_certificateexpirytime( ).
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.