/AWS1/IF_EC2=>MODIFYIPAMRESOURCECIDR()¶
About ModifyIpamResourceCidr¶
Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.
For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.
Method Signature¶
METHODS /AWS1/IF_EC2~MODIFYIPAMRESOURCECIDR
IMPORTING
!IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
!IV_RESOURCEID TYPE /AWS1/EC2STRING OPTIONAL
!IV_RESOURCECIDR TYPE /AWS1/EC2STRING OPTIONAL
!IV_RESOURCEREGION TYPE /AWS1/EC2STRING OPTIONAL
!IV_CURRENTIPAMSCOPEID TYPE /AWS1/EC2IPAMSCOPEID OPTIONAL
!IV_DESTINATIONIPAMSCOPEID TYPE /AWS1/EC2IPAMSCOPEID OPTIONAL
!IV_MONITORED TYPE /AWS1/EC2BOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2modipamresrccidrrs
RAISING
/AWS1/CX_EC2CLIENTEXC
/AWS1/CX_EC2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourceid TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
The ID of the resource you want to modify.
iv_resourcecidr TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
The CIDR of the resource you want to modify.
iv_resourceregion TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
The Amazon Web Services Region of the resource you want to modify.
iv_currentipamscopeid TYPE /AWS1/EC2IPAMSCOPEID /AWS1/EC2IPAMSCOPEID¶
The ID of the current scope that the resource CIDR is in.
iv_monitored TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN¶
Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
Optional arguments:¶
iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN¶
A check for 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_destinationipamscopeid TYPE /AWS1/EC2IPAMSCOPEID /AWS1/EC2IPAMSCOPEID¶
The ID of the scope you want to transfer the resource CIDR to.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ec2modipamresrccidrrs /AWS1/CL_EC2MODIPAMRESRCCIDRRS¶
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->modifyipamresourcecidr(
iv_currentipamscopeid = |string|
iv_destinationipamscopeid = |string|
iv_dryrun = ABAP_TRUE
iv_monitored = ABAP_TRUE
iv_resourcecidr = |string|
iv_resourceid = |string|
iv_resourceregion = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_ipamresourcecidr = lo_result->get_ipamresourcecidr( ).
IF lo_ipamresourcecidr IS NOT INITIAL.
lv_ipamid = lo_ipamresourcecidr->get_ipamid( ).
lv_ipamscopeid = lo_ipamresourcecidr->get_ipamscopeid( ).
lv_ipampoolid = lo_ipamresourcecidr->get_ipampoolid( ).
lv_string = lo_ipamresourcecidr->get_resourceregion( ).
lv_string = lo_ipamresourcecidr->get_resourceownerid( ).
lv_string = lo_ipamresourcecidr->get_resourceid( ).
lv_string = lo_ipamresourcecidr->get_resourcename( ).
lv_string = lo_ipamresourcecidr->get_resourcecidr( ).
lv_ipamresourcetype = lo_ipamresourcecidr->get_resourcetype( ).
LOOP AT lo_ipamresourcecidr->get_resourcetags( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_key( ).
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_boxeddouble = lo_ipamresourcecidr->get_ipusage( ).
lv_ipamcompliancestatus = lo_ipamresourcecidr->get_compliancestatus( ).
lv_ipammanagementstate = lo_ipamresourcecidr->get_managementstate( ).
lv_ipamoverlapstatus = lo_ipamresourcecidr->get_overlapstatus( ).
lv_string = lo_ipamresourcecidr->get_vpcid( ).
lv_string = lo_ipamresourcecidr->get_availabilityzoneid( ).
ENDIF.
ENDIF.