Skip to content

/AWS1/IF_EC2=>DELETEIPAMROUTINGPOLICYREG()

About DeleteIpamRoutingPolicyRegistration

Deletes a routing policy registration for a specified CIDR prefix.

Method Signature

METHODS /AWS1/IF_EC2~DELETEIPAMROUTINGPOLICYREG
  IMPORTING
    !IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
    !IV_IPAMINETREGISTRYASSOCID TYPE /AWS1/EC2IPAMINETREGASSOCID OPTIONAL
    !IV_CIDR TYPE /AWS1/EC2STRING OPTIONAL
    !IV_FORCE TYPE /AWS1/EC2BOXEDBOOLEAN OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/EC2STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2delipamrtgplyregrs
  RAISING
    /AWS1/CX_EC2CLIENTEXC
    /AWS1/CX_EC2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_ipaminetregistryassocid TYPE /AWS1/EC2IPAMINETREGASSOCID /AWS1/EC2IPAMINETREGASSOCID

The ID of the IPAM internet registry association.

iv_cidr TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The IP address prefix in CIDR notation identifying the routing policy registration to delete.

Optional arguments:

iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

iv_force TYPE /AWS1/EC2BOXEDBOOLEAN /AWS1/EC2BOXEDBOOLEAN

Forces the deletion even if it conflicts with an announced route. Default: false.

iv_clienttoken TYPE /AWS1/EC2STRING /AWS1/EC2STRING

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the operation ignores the request, but does not return an error.

RETURNING

oo_output TYPE REF TO /aws1/cl_ec2delipamrtgplyregrs /AWS1/CL_EC2DELIPAMRTGPLYREGRS

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->deleteipamroutingpolicyreg(
  iv_cidr = |string|
  iv_clienttoken = |string|
  iv_dryrun = ABAP_TRUE
  iv_force = ABAP_TRUE
  iv_ipaminetregistryassocid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_ipamroutingpolicyregist = lo_result->get_ipamroutngpolicyregdelta( ).
  IF lo_ipamroutingpolicyregist IS NOT INITIAL.
    lv_string = lo_ipamroutingpolicyregist->get_deltaid( ).
    lv_string = lo_ipamroutingpolicyregist->get_deltajson( ).
    lv_ipamroutingpolicyregist_1 = lo_ipamroutingpolicyregist->get_state( ).
    lv_string = lo_ipamroutingpolicyregist->get_statemessage( ).
  ENDIF.
ENDIF.