Skip to content

/AWS1/CL_ECA=>DELETEGLOBALREPLICATIONGROUP()

About DeleteGlobalReplicationGroup

Deleting a Global datastore is a two-step process:

  • First, you must DisassociateGlobalReplicationGroup to remove the secondary clusters in the Global datastore.

  • Once the Global datastore contains only the primary cluster, you can use the DeleteGlobalReplicationGroup API to delete the Global datastore while retainining the primary cluster using RetainPrimaryReplicationGroup=true.

Since the Global Datastore has only a primary cluster, you can delete the Global Datastore while retaining the primary by setting RetainPrimaryReplicationGroup=true. The primary cluster is never deleted when deleting a Global Datastore. It can only be deleted when it no longer is associated with any Global Datastore.

When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this operation.

Method Signature

IMPORTING

Required arguments:

iv_globalreplicationgroupid TYPE /AWS1/ECASTRING /AWS1/ECASTRING

The name of the Global datastore

iv_retainprimaryreplgroup TYPE /AWS1/ECABOOLEAN /AWS1/ECABOOLEAN

The primary replication group is retained as a standalone replication group.

RETURNING

oo_output TYPE REF TO /aws1/cl_ecadelglbreplgrprslt /AWS1/CL_ECADELGLBREPLGRPRSLT

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~deleteglobalreplicationgroup(
  iv_globalreplicationgroupid = |string|
  iv_retainprimaryreplgroup = ABAP_TRUE
).

This is an example of reading all possible response values

lv_string = lo_globalreplicationgroup->get_globalreplicationgroupid( ).
lv_string = lo_globalreplicationgroup->get_globalreplgroupdesc( ).
lv_string = lo_globalreplicationgroup->get_status( ).
lv_string = lo_globalreplicationgroup->get_cachenodetype( ).
lv_string = lo_globalreplicationgroup->get_engine( ).
lv_string = lo_globalreplicationgroup->get_engineversion( ).
LOOP AT lo_globalreplicationgroup->get_members( ) into lo_row.
  lv_string = lo_row_1->get_replicationgroupid( ).
  lv_string = lo_row_1->get_replicationgroupregion( ).
  lv_string = lo_row_1->get_role( ).
  lv_automaticfailoverstatus = lo_row_1->get_automaticfailover( ).
  lv_string = lo_row_1->get_status( ).
ENDLOOP.
lv_booleanoptional = lo_globalreplicationgroup->get_clusterenabled( ).
LOOP AT lo_globalreplicationgroup->get_globalnodegroups( ) into lo_row_2.
  lv_string = lo_row_3->get_globalnodegroupid( ).
  lv_string = lo_row_3->get_slots( ).
ENDLOOP.
lv_booleanoptional = lo_globalreplicationgroup->get_authtokenenabled( ).
lv_booleanoptional = lo_globalreplicationgroup->get_transitencryptionenabled( ).
lv_booleanoptional = lo_globalreplicationgroup->get_atrestencryptionenabled( ).
lv_string = lo_globalreplicationgroup->get_arn( ).