/AWS1/IF_RGR=>DELETEGROUP()¶
About DeleteGroup¶
Deletes the specified resource group. Deleting a resource group does not delete any resources that are members of the group; it only deletes the group structure.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:DeleteGroup
Method Signature¶
METHODS /AWS1/IF_RGR~DELETEGROUP
IMPORTING
!IV_GROUPNAME TYPE /AWS1/RGRGROUPNAME OPTIONAL
!IV_GROUP TYPE /AWS1/RGRGROUPSTRINGV2 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rgrdeletegroupoutput
RAISING
/AWS1/CX_RGRBADREQUESTEX
/AWS1/CX_RGRFORBIDDENEXCEPTION
/AWS1/CX_RGRINTERNALSERVERER00
/AWS1/CX_RGRMETHODNOTALLOWEDEX
/AWS1/CX_RGRNOTFOUNDEXCEPTION
/AWS1/CX_RGRTOOMANYREQUESTSEX
/AWS1/CX_RGRCLIENTEXC
/AWS1/CX_RGRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_groupname TYPE /AWS1/RGRGROUPNAME /AWS1/RGRGROUPNAME¶
Deprecated - don't use this parameter. Use
Groupinstead.
iv_group TYPE /AWS1/RGRGROUPSTRINGV2 /AWS1/RGRGROUPSTRINGV2¶
The name or the Amazon resource name (ARN) of the resource group to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rgrdeletegroupoutput /AWS1/CL_RGRDELETEGROUPOUTPUT¶
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->deletegroup(
iv_group = |string|
iv_groupname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_group = lo_result->get_group( ).
IF lo_group IS NOT INITIAL.
lv_grouparnv2 = lo_group->get_grouparn( ).
lv_groupname = lo_group->get_name( ).
lv_description = lo_group->get_description( ).
lv_criticality = lo_group->get_criticality( ).
lv_owner = lo_group->get_owner( ).
lv_displayname = lo_group->get_displayname( ).
LOOP AT lo_group->get_applicationtag( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_applicationarn = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.