Skip to content

/AWS1/IF_EC2=>MODIFYIPAMROUTINGPOLICYREG()

About ModifyIpamRoutingPolicyRegistration

Modifies an existing routing policy registration. You can update the authorized ASNs, maximum prefix length, and other properties of a Route Origin Authorization (ROA).

Method Signature

METHODS /AWS1/IF_EC2~MODIFYIPAMROUTINGPOLICYREG
  IMPORTING
    !IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
    !IV_IPAMINETREGISTRYASSOCID TYPE /AWS1/EC2IPAMINETREGASSOCID OPTIONAL
    !IV_CIDR TYPE /AWS1/EC2STRING OPTIONAL
    !IT_ASNS TYPE /AWS1/CL_EC2ASNLIST_W=>TT_ASNLIST OPTIONAL
    !IV_PERMITMORESPECIFICANNS TYPE /AWS1/EC2BOXEDBOOLEAN OPTIONAL
    !IV_MAXLENGTH TYPE /AWS1/EC2IPAMROUTPLYREGMAXLNGT OPTIONAL
    !IV_DESCRIPTION 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_ec2modipamrtgplyregrs
  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 modify.

it_asns TYPE /AWS1/CL_EC2ASNLIST_W=>TT_ASNLIST TT_ASNLIST

The updated list of Autonomous System Numbers (ASNs) authorized to originate the prefix.

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_permitmorespecificanns TYPE /AWS1/EC2BOXEDBOOLEAN /AWS1/EC2BOXEDBOOLEAN

Specifies whether to permit more specific route announcements than the CIDR prefix. Default: false.

iv_maxlength TYPE /AWS1/EC2IPAMROUTPLYREGMAXLNGT /AWS1/EC2IPAMROUTPLYREGMAXLNGT

The new maximum prefix length that the ASNs are authorized to announce. Must be greater than or equal to the prefix length of the CIDR.

iv_description TYPE /AWS1/EC2STRING /AWS1/EC2STRING

A new description for the routing policy registration.

iv_force TYPE /AWS1/EC2BOXEDBOOLEAN /AWS1/EC2BOXEDBOOLEAN

Forces the modification 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_ec2modipamrtgplyregrs /AWS1/CL_EC2MODIPAMRTGPLYREGRS

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->modifyipamroutingpolicyreg(
  it_asns = VALUE /aws1/cl_ec2asnlist_w=>tt_asnlist(
    ( new /aws1/cl_ec2asnlist_w( |string| ) )
  )
  iv_cidr = |string|
  iv_clienttoken = |string|
  iv_description = |string|
  iv_dryrun = ABAP_TRUE
  iv_force = ABAP_TRUE
  iv_ipaminetregistryassocid = |string|
  iv_maxlength = 123
  iv_permitmorespecificanns = ABAP_TRUE
).

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.