Skip to content

/AWS1/IF_EC2=>BATCHMODIFYIPAMROUTNGPLYRGNS()

About BatchModifyIpamRoutingPolicyRegistrations

Modifies multiple routing policy registrations in a single operation. You can create, update, or delete Route Origin Authorizations (ROAs) in batch.

Method Signature

METHODS /AWS1/IF_EC2~BATCHMODIFYIPAMROUTNGPLYRGNS
  IMPORTING
    !IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
    !IV_IPAMINETREGISTRYASSOCID TYPE /AWS1/EC2IPAMINETREGASSOCID OPTIONAL
    !IV_DELTAJSON 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_ec2btcmodipamrtgply01
  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_deltajson TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The batch modifications to apply, in JSON format.

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 batch modification even if individual changes conflict with announced routes. 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_ec2btcmodipamrtgply01 /AWS1/CL_EC2BTCMODIPAMRTGPLY01

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->batchmodifyipamroutngplyrgns(
  iv_clienttoken = |string|
  iv_deltajson = |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.