/AWS1/CL_EC2=>CREATESUBNETCIDRRESERVATION()
¶
About CreateSubnetCidrReservation¶
Creates a subnet CIDR reservation. For more information, see Subnet CIDR reservations in the Amazon VPC User Guide and Manage prefixes for your network interfaces in the Amazon EC2 User Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_subnetid
TYPE /AWS1/EC2SUBNETID
/AWS1/EC2SUBNETID
¶
The ID of the subnet.
iv_cidr
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The IPv4 or IPV6 CIDR range to reserve.
iv_reservationtype
TYPE /AWS1/EC2SNETCIDRRESERVATION00
/AWS1/EC2SNETCIDRRESERVATION00
¶
The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces.
explicit
- You assign the reserved IP addresses to network interfaces.
Optional arguments:¶
iv_description
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The description to assign to the subnet CIDR reservation.
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
.
it_tagspecifications
TYPE /AWS1/CL_EC2TAGSPECIFICATION=>TT_TAGSPECIFICATIONLIST
TT_TAGSPECIFICATIONLIST
¶
The tags to assign to the subnet CIDR reservation.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ec2cresnetcidrreser01
/AWS1/CL_EC2CRESNETCIDRRESER01
¶
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->/aws1/if_ec2~createsubnetcidrreservation(
it_tagspecifications = VALUE /aws1/cl_ec2tagspecification=>tt_tagspecificationlist(
(
new /aws1/cl_ec2tagspecification(
it_tags = VALUE /aws1/cl_ec2tag=>tt_taglist(
(
new /aws1/cl_ec2tag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_resourcetype = |string|
)
)
)
iv_cidr = |string|
iv_description = |string|
iv_dryrun = ABAP_TRUE
iv_reservationtype = |string|
iv_subnetid = |string|
).
This is an example of reading all possible response values
lv_subnetcidrreservationid = lo_subnetcidrreservation->get_subnetcidrreservationid( ).
lv_subnetid = lo_subnetcidrreservation->get_subnetid( ).
lv_string = lo_subnetcidrreservation->get_cidr( ).
lv_subnetcidrreservationty = lo_subnetcidrreservation->get_reservationtype( ).
lv_string = lo_subnetcidrreservation->get_ownerid( ).
lv_string = lo_subnetcidrreservation->get_description( ).
LOOP AT lo_subnetcidrreservation->get_tags( ) into lo_row.
lv_string = lo_row_1->get_key( ).
lv_string = lo_row_1->get_value( ).
ENDLOOP.