/AWS1/IF_CON=>CREATECONNECTION()¶
About CreateConnection¶
Creates a connection that can then be given to other Amazon Web Services services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.
Method Signature¶
METHODS /AWS1/IF_CON~CREATECONNECTION
IMPORTING
!IV_PROVIDERTYPE TYPE /AWS1/CONPROVIDERTYPE OPTIONAL
!IV_CONNECTIONNAME TYPE /AWS1/CONCONNECTIONNAME OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CONTAG=>TT_TAGLIST OPTIONAL
!IV_HOSTARN TYPE /AWS1/CONHOSTARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_concreateconnoutput
RAISING
/AWS1/CX_CONLIMITEXCEEDEDEX
/AWS1/CX_CONRESOURCENOTFOUNDEX
/AWS1/CX_CONRESOURCEUNAVAILEX
/AWS1/CX_CONCLIENTEXC
/AWS1/CX_CONSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_connectionname TYPE /AWS1/CONCONNECTIONNAME /AWS1/CONCONNECTIONNAME¶
The name of the connection to be created.
Optional arguments:¶
iv_providertype TYPE /AWS1/CONPROVIDERTYPE /AWS1/CONPROVIDERTYPE¶
The name of the external provider where your third-party code repository is configured.
it_tags TYPE /AWS1/CL_CONTAG=>TT_TAGLIST TT_TAGLIST¶
The key-value pair to use when tagging the resource.
iv_hostarn TYPE /AWS1/CONHOSTARN /AWS1/CONHOSTARN¶
The Amazon Resource Name (ARN) of the host associated with the connection to be created.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_concreateconnoutput /AWS1/CL_CONCREATECONNOUTPUT¶
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->createconnection(
it_tags = VALUE /aws1/cl_contag=>tt_taglist(
(
new /aws1/cl_contag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_connectionname = |string|
iv_hostarn = |string|
iv_providertype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_connectionarn = lo_result->get_connectionarn( ).
LOOP AT lo_result->get_tags( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_tagkey = lo_row_1->get_key( ).
lv_tagvalue = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.