Skip to content

/AWS1/CL_ECA=>MODIFYCACHEPARAMETERGROUP()

About ModifyCacheParameterGroup

Modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.

Method Signature

IMPORTING

Required arguments:

iv_cacheparametergroupname TYPE /AWS1/ECASTRING /AWS1/ECASTRING

The name of the cache parameter group to modify.

it_parameternamevalues TYPE /AWS1/CL_ECAPARAMETERNAMEVALUE=>TT_PARAMETERNAMEVALUELIST TT_PARAMETERNAMEVALUELIST

An array of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request.

RETURNING

oo_output TYPE REF TO /aws1/cl_ecacacheparmgrnamemsg /AWS1/CL_ECACACHEPARMGRNAMEMSG

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_eca~modifycacheparametergroup(
  it_parameternamevalues = VALUE /aws1/cl_ecaparameternamevalue=>tt_parameternamevaluelist(
    (
      new /aws1/cl_ecaparameternamevalue(
        iv_parametername = |string|
        iv_parametervalue = |string|
      )
    )
  )
  iv_cacheparametergroupname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_cacheparametergroupname( ).
ENDIF.

ModifyCacheParameterGroup

Modifies one or more parameter values in the specified parameter group. You cannot modify any default parameter group.

DATA(lo_result) = lo_client->/aws1/if_eca~modifycacheparametergroup(
  it_parameternamevalues = VALUE /aws1/cl_ecaparameternamevalue=>tt_parameternamevaluelist(
    (
      new /aws1/cl_ecaparameternamevalue(
        iv_parametername = |binding_protocol|
        iv_parametervalue = |ascii|
      )
    )
    (
      new /aws1/cl_ecaparameternamevalue(
        iv_parametername = |chunk_size|
        iv_parametervalue = |96|
      )
    )
  )
  iv_cacheparametergroupname = |custom-mem1-4|
).