/AWS1/CL_DCO=>ACCDIRECTCNCTGWASSOCIATION00()
¶
About AcceptDirectConnectGatewayAssociationProposal¶
Accepts a proposal request to attach a virtual private gateway or transit gateway to a Direct Connect gateway.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_directconnectgatewayid
TYPE /AWS1/DCODIRECTCNCTGATEWAYID
/AWS1/DCODIRECTCNCTGATEWAYID
¶
The ID of the Direct Connect gateway.
iv_proposalid
TYPE /AWS1/DCODIRECTCNCTGWASSOCIA00
/AWS1/DCODIRECTCNCTGWASSOCIA00
¶
The ID of the request proposal.
iv_assocdgatewayowneraccount
TYPE /AWS1/DCOOWNERACCOUNT
/AWS1/DCOOWNERACCOUNT
¶
The ID of the Amazon Web Services account that owns the virtual private gateway or transit gateway.
Optional arguments:¶
it_overridealwedprefixesto00
TYPE /AWS1/CL_DCOROUTEFILTERPREFIX=>TT_ROUTEFILTERPREFIXLIST
TT_ROUTEFILTERPREFIXLIST
¶
Overrides the Amazon VPC prefixes advertised to the Direct Connect gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_dcoaccdirectcnctgwa01
/AWS1/CL_DCOACCDIRECTCNCTGWA01
¶
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->/aws1/if_dco~accdirectcnctgwassociation00(
it_overridealwedprefixesto00 = VALUE /aws1/cl_dcoroutefilterprefix=>tt_routefilterprefixlist(
( new /aws1/cl_dcoroutefilterprefix( |string| ) )
)
iv_assocdgatewayowneraccount = |string|
iv_directconnectgatewayid = |string|
iv_proposalid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_directconnectgatewayass = lo_result->get_directcnctgwassociation( ).
IF lo_directconnectgatewayass IS NOT INITIAL.
lv_directconnectgatewayid = lo_directconnectgatewayass->get_directconnectgatewayid( ).
lv_owneraccount = lo_directconnectgatewayass->get_directcnctgwowneraccount( ).
lv_directconnectgatewayass_1 = lo_directconnectgatewayass->get_associationstate( ).
lv_statechangeerror = lo_directconnectgatewayass->get_statechangeerror( ).
lo_associatedgateway = lo_directconnectgatewayass->get_associatedgateway( ).
IF lo_associatedgateway IS NOT INITIAL.
lv_gatewayidentifier = lo_associatedgateway->get_id( ).
lv_gatewaytype = lo_associatedgateway->get_type( ).
lv_owneraccount = lo_associatedgateway->get_owneraccount( ).
lv_region = lo_associatedgateway->get_region( ).
ENDIF.
lv_directconnectgatewayass_2 = lo_directconnectgatewayass->get_associationid( ).
LOOP AT lo_directconnectgatewayass->get_alwedprefixestodirectc00( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_cidr = lo_row_1->get_cidr( ).
ENDIF.
ENDLOOP.
lo_associatedcorenetwork = lo_directconnectgatewayass->get_associatedcorenetwork( ).
IF lo_associatedcorenetwork IS NOT INITIAL.
lv_corenetworkidentifier = lo_associatedcorenetwork->get_id( ).
lv_owneraccount = lo_associatedcorenetwork->get_owneraccount( ).
lv_corenetworkattachmentid = lo_associatedcorenetwork->get_attachmentid( ).
ENDIF.
lv_virtualgatewayid = lo_directconnectgatewayass->get_virtualgatewayid( ).
lv_virtualgatewayregion = lo_directconnectgatewayass->get_virtualgatewayregion( ).
lv_owneraccount = lo_directconnectgatewayass->get_vgwowneraccount( ).
ENDIF.
ENDIF.