/AWS1/CL_EC2=>CREATEIPAMRESOURCEDISCOVERY()
¶
About CreateIpamResourceDiscovery¶
Creates an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.
Method Signature¶
IMPORTING¶
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_description
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
A description for the IPAM resource discovery.
it_operatingregions
TYPE /AWS1/CL_EC2ADDIPAMOPERATING00=>TT_ADDIPAMOPERATINGREGIONSET
TT_ADDIPAMOPERATINGREGIONSET
¶
Operating Regions for the IPAM resource discovery. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
it_tagspecifications
TYPE /AWS1/CL_EC2TAGSPECIFICATION=>TT_TAGSPECIFICATIONLIST
TT_TAGSPECIFICATIONLIST
¶
Tag specifications for the IPAM resource discovery.
iv_clienttoken
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
A client token for the IPAM resource discovery.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ec2creipamresrcdisc01
/AWS1/CL_EC2CREIPAMRESRCDISC01
¶
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~createipamresourcediscovery(
it_operatingregions = VALUE /aws1/cl_ec2addipamoperating00=>tt_addipamoperatingregionset(
( new /aws1/cl_ec2addipamoperating00( |string| ) )
)
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_clienttoken = |string|
iv_description = |string|
iv_dryrun = ABAP_TRUE
).
This is an example of reading all possible response values
lv_string = lo_ipamresourcediscovery->get_ownerid( ).
lv_ipamresourcediscoveryid = lo_ipamresourcediscovery->get_ipamresourcediscoveryid( ).
lv_string = lo_ipamresourcediscovery->get_ipamresourcediscoveryarn( ).
lv_string = lo_ipamresourcediscovery->get_ipamresrcdiscoveryregion( ).
lv_string = lo_ipamresourcediscovery->get_description( ).
LOOP AT lo_ipamresourcediscovery->get_operatingregions( ) into lo_row.
lv_string = lo_row_1->get_regionname( ).
ENDLOOP.
lv_boolean = lo_ipamresourcediscovery->get_isdefault( ).
lv_ipamresourcediscoveryst = lo_ipamresourcediscovery->get_state( ).
LOOP AT lo_ipamresourcediscovery->get_tags( ) into lo_row_2.
lv_string = lo_row_3->get_key( ).
lv_string = lo_row_3->get_value( ).
ENDLOOP.
LOOP AT lo_ipamresourcediscovery->get_orgalunitexclusions( ) into lo_row_4.
lv_string = lo_row_5->get_organizationsentitypath( ).
ENDLOOP.