/AWS1/CL_NEP=>CREATEDBSUBNETGROUP()
¶
About CreateDBSubnetGroup¶
Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Region.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_dbsubnetgroupname
TYPE /AWS1/NEPSTRING
/AWS1/NEPSTRING
¶
The name for the DB subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.
Example:
mySubnetgroup
iv_dbsubnetgroupdescription
TYPE /AWS1/NEPSTRING
/AWS1/NEPSTRING
¶
The description for the DB subnet group.
it_subnetids
TYPE /AWS1/CL_NEPSUBNETIDLIST_W=>TT_SUBNETIDENTIFIERLIST
TT_SUBNETIDENTIFIERLIST
¶
The EC2 Subnet IDs for the DB subnet group.
Optional arguments:¶
it_tags
TYPE /AWS1/CL_NEPTAG=>TT_TAGLIST
TT_TAGLIST
¶
The tags to be assigned to the new DB subnet group.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_nepcredbsnetgrouprslt
/AWS1/CL_NEPCREDBSNETGROUPRSLT
¶
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_nep~createdbsubnetgroup(
it_subnetids = VALUE /aws1/cl_nepsubnetidlist_w=>tt_subnetidentifierlist(
( new /aws1/cl_nepsubnetidlist_w( |string| ) )
)
it_tags = VALUE /aws1/cl_neptag=>tt_taglist(
(
new /aws1/cl_neptag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_dbsubnetgroupdescription = |string|
iv_dbsubnetgroupname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_dbsubnetgroup = lo_result->get_dbsubnetgroup( ).
IF lo_dbsubnetgroup IS NOT INITIAL.
lv_string = lo_dbsubnetgroup->get_dbsubnetgroupname( ).
lv_string = lo_dbsubnetgroup->get_dbsubnetgroupdescription( ).
lv_string = lo_dbsubnetgroup->get_vpcid( ).
lv_string = lo_dbsubnetgroup->get_subnetgroupstatus( ).
LOOP AT lo_dbsubnetgroup->get_subnets( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_subnetidentifier( ).
lo_availabilityzone = lo_row_1->get_subnetavailabilityzone( ).
IF lo_availabilityzone IS NOT INITIAL.
lv_string = lo_availabilityzone->get_name( ).
ENDIF.
lv_string = lo_row_1->get_subnetstatus( ).
ENDIF.
ENDLOOP.
lv_string = lo_dbsubnetgroup->get_dbsubnetgrouparn( ).
ENDIF.
ENDIF.