Skip to content

/AWS1/CL_ECA=>LISTALLOWEDNODETYPEMODS()

About ListAllowedNodeTypeModifications

Lists all available node types that you can scale with your cluster's replication group's current node type.

When you use the ModifyCacheCluster or ModifyReplicationGroup operations to scale your cluster or replication group, the value of the CacheNodeType parameter must be one of the node types returned by this operation.

Method Signature

IMPORTING

Optional arguments:

iv_cacheclusterid TYPE /AWS1/ECASTRING /AWS1/ECASTRING

The name of the cluster you want to scale up to a larger node instanced type. ElastiCache uses the cluster id to identify the current node type of this cluster and from that to create a list of node types you can scale up to.

You must provide a value for either the CacheClusterId or the ReplicationGroupId.

iv_replicationgroupid TYPE /AWS1/ECASTRING /AWS1/ECASTRING

The name of the replication group want to scale up to a larger node type. ElastiCache uses the replication group id to identify the current node type being used by this replication group, and from that to create a list of node types you can scale up to.

You must provide a value for either the CacheClusterId or the ReplicationGroupId.

RETURNING

oo_output TYPE REF TO /aws1/cl_ecaalwednodetypemod00 /AWS1/CL_ECAALWEDNODETYPEMOD00

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~listallowednodetypemods(
  iv_cacheclusterid = |string|
  iv_replicationgroupid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_scaleupmodifications( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_scaledownmodifications( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
ENDIF.

ListAllowedNodeTypeModifications

Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.

DATA(lo_result) = lo_client->/aws1/if_eca~listallowednodetypemods( iv_cacheclusterid = |mycluster| ) .

ListAllowedNodeTypeModifications

Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.

DATA(lo_result) = lo_client->/aws1/if_eca~listallowednodetypemods( iv_replicationgroupid = |myreplgroup| ) .