/AWS1/IF_EC2=>DELETELOCALGATEWAYROUTE()¶
About DeleteLocalGatewayRoute¶
Deletes the specified route from the specified local gateway route table.
Method Signature¶
METHODS /AWS1/IF_EC2~DELETELOCALGATEWAYROUTE
IMPORTING
!IV_DESTINATIONCIDRBLOCK TYPE /AWS1/EC2STRING OPTIONAL
!IV_LOCALGATEWAYROUTETABLEID TYPE /AWS1/EC2LOCALGWROUTETABLEID OPTIONAL
!IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
!IV_DESTINATIONPREFIXLISTID TYPE /AWS1/EC2PREFIXLISTRESOURCEID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2dellocalgwrouters
RAISING
/AWS1/CX_EC2CLIENTEXC
/AWS1/CX_EC2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_localgatewayroutetableid TYPE /AWS1/EC2LOCALGWROUTETABLEID /AWS1/EC2LOCALGWROUTETABLEID¶
The ID of the local gateway route table.
Optional arguments:¶
iv_destinationcidrblock TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
The CIDR range for the route. This must match the CIDR for the route exactly.
iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN¶
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
iv_destinationprefixlistid TYPE /AWS1/EC2PREFIXLISTRESOURCEID /AWS1/EC2PREFIXLISTRESOURCEID¶
Use a prefix list in place of
DestinationCidrBlock. You cannot useDestinationPrefixListIdandDestinationCidrBlockin the same request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ec2dellocalgwrouters /AWS1/CL_EC2DELLOCALGWROUTERS¶
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->deletelocalgatewayroute(
iv_destinationcidrblock = |string|
iv_destinationprefixlistid = |string|
iv_dryrun = ABAP_TRUE
iv_localgatewayroutetableid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_localgatewayroute = lo_result->get_route( ).
IF lo_localgatewayroute IS NOT INITIAL.
lv_string = lo_localgatewayroute->get_destinationcidrblock( ).
lv_localgatewayvirtualinte = lo_localgatewayroute->get_localgwvirtualinterfac00( ).
lv_localgatewayroutetype = lo_localgatewayroute->get_type( ).
lv_localgatewayroutestate = lo_localgatewayroute->get_state( ).
lv_localgatewayroutetablei = lo_localgatewayroute->get_localgatewayroutetableid( ).
lv_resourcearn = lo_localgatewayroute->get_localgwroutetablearn( ).
lv_string = lo_localgatewayroute->get_ownerid( ).
lv_subnetid = lo_localgatewayroute->get_subnetid( ).
lv_coippoolid = lo_localgatewayroute->get_coippoolid( ).
lv_networkinterfaceid = lo_localgatewayroute->get_networkinterfaceid( ).
lv_prefixlistresourceid = lo_localgatewayroute->get_destinationprefixlistid( ).
ENDIF.
ENDIF.