/AWS1/IF_DCO=>CREDIRECTCNCTGWASSOCIATION00()¶
About CreateDirectConnectGatewayAssociationProposal¶
Creates a proposal to associate the specified virtual private gateway or transit gateway with the specified Direct Connect gateway.
You can associate a Direct Connect gateway and virtual private gateway or transit gateway that is owned by any Amazon Web Services account.
Method Signature¶
METHODS /AWS1/IF_DCO~CREDIRECTCNCTGWASSOCIATION00
IMPORTING
!IV_DIRECTCONNECTGATEWAYID TYPE /AWS1/DCODIRECTCNCTGATEWAYID OPTIONAL
!IV_DIRECTCNCTGWOWNERACCOUNT TYPE /AWS1/DCOOWNERACCOUNT OPTIONAL
!IV_GATEWAYID TYPE /AWS1/DCOGATEWAYIDTOASSOCIATE OPTIONAL
!IT_ADDALWEDPREFIXESTODIREC00 TYPE /AWS1/CL_DCOROUTEFILTERPREFIX=>TT_ROUTEFILTERPREFIXLIST OPTIONAL
!IT_REMALWEDPREFIXESTODIREC00 TYPE /AWS1/CL_DCOROUTEFILTERPREFIX=>TT_ROUTEFILTERPREFIXLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dcocredirectcnctgwa03
RAISING
/AWS1/CX_DCODIRECTCNCTCLIENTEX
/AWS1/CX_DCODIRECTCNCTSERVEREX
/AWS1/CX_DCOCLIENTEXC
/AWS1/CX_DCOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_directconnectgatewayid TYPE /AWS1/DCODIRECTCNCTGATEWAYID /AWS1/DCODIRECTCNCTGATEWAYID¶
The ID of the Direct Connect gateway.
iv_directcnctgwowneraccount TYPE /AWS1/DCOOWNERACCOUNT /AWS1/DCOOWNERACCOUNT¶
The ID of the Amazon Web Services account that owns the Direct Connect gateway.
iv_gatewayid TYPE /AWS1/DCOGATEWAYIDTOASSOCIATE /AWS1/DCOGATEWAYIDTOASSOCIATE¶
The ID of the virtual private gateway or transit gateway.
Optional arguments:¶
it_addalwedprefixestodirec00 TYPE /AWS1/CL_DCOROUTEFILTERPREFIX=>TT_ROUTEFILTERPREFIXLIST TT_ROUTEFILTERPREFIXLIST¶
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
it_remalwedprefixestodirec00 TYPE /AWS1/CL_DCOROUTEFILTERPREFIX=>TT_ROUTEFILTERPREFIXLIST TT_ROUTEFILTERPREFIXLIST¶
The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dcocredirectcnctgwa03 /AWS1/CL_DCOCREDIRECTCNCTGWA03¶
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->credirectcnctgwassociation00(
it_addalwedprefixestodirec00 = VALUE /aws1/cl_dcoroutefilterprefix=>tt_routefilterprefixlist(
( new /aws1/cl_dcoroutefilterprefix( |string| ) )
)
it_remalwedprefixestodirec00 = VALUE /aws1/cl_dcoroutefilterprefix=>tt_routefilterprefixlist(
( new /aws1/cl_dcoroutefilterprefix( |string| ) )
)
iv_directcnctgwowneraccount = |string|
iv_directconnectgatewayid = |string|
iv_gatewayid = |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_directcnctgwassociatio00( ).
IF lo_directconnectgatewayass IS NOT INITIAL.
lv_directconnectgatewayass_1 = lo_directconnectgatewayass->get_proposalid( ).
lv_directconnectgatewayid = lo_directconnectgatewayass->get_directconnectgatewayid( ).
lv_owneraccount = lo_directconnectgatewayass->get_directcnctgwowneraccount( ).
lv_directconnectgatewayass_2 = lo_directconnectgatewayass->get_proposalstate( ).
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.
LOOP AT lo_directconnectgatewayass->get_exingalwedprefixestodi00( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_cidr = lo_row_1->get_cidr( ).
ENDIF.
ENDLOOP.
LOOP AT lo_directconnectgatewayass->get_reqedalwedprefixestodi00( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_cidr = lo_row_1->get_cidr( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.