/AWS1/CL_DCO=>CREATEPVTVIRTUALINTERFACE()
¶
About CreatePrivateVirtualInterface¶
Creates a private virtual interface. A virtual interface is the VLAN that transports Direct Connect traffic. A private virtual interface can be connected to either a Direct Connect gateway or a Virtual Private Gateway (VGW). Connecting the private virtual interface to a Direct Connect gateway enables the possibility for connecting to multiple VPCs, including VPCs in different Amazon Web Services Regions. Connecting the private virtual interface to a VGW only provides access to a single VPC within the same Region.
Setting the MTU of a virtual interface to 8500 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. To check whether your virtual interface supports jumbo frames, call DescribeVirtualInterfaces.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_connectionid
TYPE /AWS1/DCOCONNECTIONID
/AWS1/DCOCONNECTIONID
¶
The ID of the connection.
io_newpvtvirtualinterface
TYPE REF TO /AWS1/CL_DCONEWPVTVIRTUALINT01
/AWS1/CL_DCONEWPVTVIRTUALINT01
¶
Information about the private virtual interface.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_dcovirtualinterface
/AWS1/CL_DCOVIRTUALINTERFACE
¶
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~createpvtvirtualinterface(
io_newpvtvirtualinterface = new /aws1/cl_dconewpvtvirtualint01(
it_tags = VALUE /aws1/cl_dcotag=>tt_taglist(
(
new /aws1/cl_dcotag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_addressfamily = |string|
iv_amazonaddress = |string|
iv_asn = 123
iv_authkey = |string|
iv_customeraddress = |string|
iv_directconnectgatewayid = |string|
iv_enablesitelink = ABAP_TRUE
iv_mtu = 123
iv_virtualgatewayid = |string|
iv_virtualinterfacename = |string|
iv_vlan = 123
)
iv_connectionid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_owneraccount = lo_result->get_owneraccount( ).
lv_virtualinterfaceid = lo_result->get_virtualinterfaceid( ).
lv_locationcode = lo_result->get_location( ).
lv_connectionid = lo_result->get_connectionid( ).
lv_virtualinterfacetype = lo_result->get_virtualinterfacetype( ).
lv_virtualinterfacename = lo_result->get_virtualinterfacename( ).
lv_vlan = lo_result->get_vlan( ).
lv_asn = lo_result->get_asn( ).
lv_longasn = lo_result->get_amazonsideasn( ).
lv_bgpauthkey = lo_result->get_authkey( ).
lv_amazonaddress = lo_result->get_amazonaddress( ).
lv_customeraddress = lo_result->get_customeraddress( ).
lv_addressfamily = lo_result->get_addressfamily( ).
lv_virtualinterfacestate = lo_result->get_virtualinterfacestate( ).
lv_routerconfig = lo_result->get_customerrouterconfig( ).
lv_mtu = lo_result->get_mtu( ).
lv_jumboframecapable = lo_result->get_jumboframecapable( ).
lv_virtualgatewayid = lo_result->get_virtualgatewayid( ).
lv_directconnectgatewayid = lo_result->get_directconnectgatewayid( ).
LOOP AT lo_result->get_routefilterprefixes( ) 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_result->get_bgppeers( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_bgppeerid = lo_row_3->get_bgppeerid( ).
lv_asn = lo_row_3->get_asn( ).
lv_bgpauthkey = lo_row_3->get_authkey( ).
lv_addressfamily = lo_row_3->get_addressfamily( ).
lv_amazonaddress = lo_row_3->get_amazonaddress( ).
lv_customeraddress = lo_row_3->get_customeraddress( ).
lv_bgppeerstate = lo_row_3->get_bgppeerstate( ).
lv_bgpstatus = lo_row_3->get_bgpstatus( ).
lv_awsdevicev2 = lo_row_3->get_awsdevicev2( ).
lv_awslogicaldeviceid = lo_row_3->get_awslogicaldeviceid( ).
ENDIF.
ENDLOOP.
lv_region = lo_result->get_region( ).
lv_awsdevicev2 = lo_result->get_awsdevicev2( ).
lv_awslogicaldeviceid = lo_result->get_awslogicaldeviceid( ).
LOOP AT lo_result->get_tags( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_tagkey = lo_row_5->get_key( ).
lv_tagvalue = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_sitelinkenabled = lo_result->get_sitelinkenabled( ).
ENDIF.