/AWS1/IF_MCI=>ACCEPTCONNECTIONPROPOSAL()¶
About AcceptConnectionProposal¶
Accepts a connection proposal which was generated at a supported partner's portal.
The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified.
Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.
Method Signature¶
METHODS /AWS1/IF_MCI~ACCEPTCONNECTIONPROPOSAL
IMPORTING
!IO_ATTACHPOINT TYPE REF TO /AWS1/CL_MCIATTACHPOINT OPTIONAL
!IV_ACTIVATIONKEY TYPE /AWS1/MCIACTIVATIONKEY OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/MCICONNECTIONDESCRIPTION OPTIONAL
!IT_TAGS TYPE /AWS1/CL_MCITAGMAP_W=>TT_TAGMAP OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/MCISTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mciaccconnproposalrsp
RAISING
/AWS1/CX_MCIACCESSDENIEDEX
/AWS1/CX_MCIINTERCNCTCLIENTEX
/AWS1/CX_MCIINTERCNCTSERVEREX
/AWS1/CX_MCIINTERCNCTVLDTNEX
/AWS1/CX_MCIRESOURCENOTFOUNDEX
/AWS1/CX_MCISERVICEQUOTAEXCDEX
/AWS1/CX_MCITHROTTLINGEX
/AWS1/CX_MCICLIENTEXC
/AWS1/CX_MCISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_attachpoint TYPE REF TO /AWS1/CL_MCIATTACHPOINT /AWS1/CL_MCIATTACHPOINT¶
The Attach Point to which the connection should be associated.
iv_activationkey TYPE /AWS1/MCIACTIVATIONKEY /AWS1/MCIACTIVATIONKEY¶
An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request.
The details of this request can be described using with DescribeConnectionProposal.
Optional arguments:¶
iv_description TYPE /AWS1/MCICONNECTIONDESCRIPTION /AWS1/MCICONNECTIONDESCRIPTION¶
A description to distinguish this Connection.
it_tags TYPE /AWS1/CL_MCITAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The tags to associate with the resulting Connection.
iv_clienttoken TYPE /AWS1/MCISTRING /AWS1/MCISTRING¶
Idempotency token used for the request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mciaccconnproposalrsp /AWS1/CL_MCIACCCONNPROPOSALRSP¶
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->acceptconnectionproposal(
io_attachpoint = new /aws1/cl_mciattachpoint(
iv_arn = |string|
iv_directconnectgateway = |string|
)
it_tags = VALUE /aws1/cl_mcitagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_mcitagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_mcitagmap_w( |string| )
)
)
)
iv_activationkey = |string|
iv_clienttoken = |string|
iv_description = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_connection = lo_result->get_connection( ).
IF lo_connection IS NOT INITIAL.
lv_connectionid = lo_connection->get_id( ).
lv_amazonresourcename = lo_connection->get_arn( ).
lv_connectiondescription = lo_connection->get_description( ).
lv_connectionbandwidth = lo_connection->get_bandwidth( ).
lo_attachpoint = lo_connection->get_attachpoint( ).
IF lo_attachpoint IS NOT INITIAL.
lv_directconnectgatewayatt = lo_attachpoint->get_directconnectgateway( ).
lv_amazonresourcename = lo_attachpoint->get_arn( ).
ENDIF.
lv_environmentid = lo_connection->get_environmentid( ).
lo_provider = lo_connection->get_provider( ).
IF lo_provider IS NOT INITIAL.
lv_cloudserviceprovider = lo_provider->get_cloudserviceprovider( ).
lv_lastmileprovider = lo_provider->get_lastmileprovider( ).
ENDIF.
lv_location = lo_connection->get_location( ).
lv_producttype = lo_connection->get_type( ).
lv_connectionstate = lo_connection->get_state( ).
lv_connectionsharedid = lo_connection->get_sharedid( ).
lv_billingtier = lo_connection->get_billingtier( ).
lv_owneraccountid = lo_connection->get_owneraccount( ).
lv_activationkey = lo_connection->get_activationkey( ).
LOOP AT lo_connection->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.
ENDIF.
Accept Connection Proposal¶
Accept Connection Proposal
DATA(lo_result) = lo_client->acceptconnectionproposal(
io_attachpoint = new /aws1/cl_mciattachpoint( iv_directconnectgateway = |90392BE3-219C-47FD-BBA5-03DF76D2542A| )
iv_activationkey = |<Activation Key Data>|
).