Skip to content

/AWS1/CL_RGR=>PUTGROUPCONFIGURATION()

About PutGroupConfiguration

Attaches a service configuration to the specified group. This occurs asynchronously, and can take time to complete. You can use GetGroupConfiguration to check the status of the update.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:PutGroupConfiguration

Method Signature

IMPORTING

Optional arguments:

iv_group TYPE /AWS1/RGRGROUPSTRING /AWS1/RGRGROUPSTRING

The name or Amazon resource name (ARN) of the resource group with the configuration that you want to update.

it_configuration TYPE /AWS1/CL_RGRGROUPCONFITEM=>TT_GROUPCONFIGURATIONLIST TT_GROUPCONFIGURATIONLIST

The new configuration to associate with the specified group. A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements.

For information about the syntax of a service configuration, see Service configurations for Resource Groups.

A resource group can contain either a Configuration or a ResourceQuery, but not both.

RETURNING

oo_output TYPE REF TO /aws1/cl_rgrputgroupconfoutput /AWS1/CL_RGRPUTGROUPCONFOUTPUT

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_rgr~putgroupconfiguration(
  it_configuration = VALUE /aws1/cl_rgrgroupconfitem=>tt_groupconfigurationlist(
    (
      new /aws1/cl_rgrgroupconfitem(
        it_parameters = VALUE /aws1/cl_rgrgroupconfparameter=>tt_groupparameterlist(
          (
            new /aws1/cl_rgrgroupconfparameter(
              it_values = VALUE /aws1/cl_rgrgrconfparmvallst_w=>tt_groupconfparametervaluelist(
                ( new /aws1/cl_rgrgrconfparmvallst_w( |string| ) )
              )
              iv_name = |string|
            )
          )
        )
        iv_type = |string|
      )
    )
  )
  iv_group = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.