Smaws_Client_ElastiCache.DeleteGlobalReplicationGroupDeleting a Global datastore is a two-step process:
DisassociateGlobalReplicationGroup to remove the secondary clusters in the Global datastore.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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `GlobalReplicationGroupNotFoundFault of
Types.global_replication_group_not_found_fault
| `InvalidGlobalReplicationGroupStateFault of
Types.invalid_global_replication_group_state_fault
| `InvalidParameterValueException of Types.invalid_parameter_value_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_global_replication_group_message ->
(Types.delete_global_replication_group_result,
[> Smaws_Lib.Protocols.AwsQuery.error
| `GlobalReplicationGroupNotFoundFault of
Types.global_replication_group_not_found_fault
| `InvalidGlobalReplicationGroupStateFault of
Types.invalid_global_replication_group_state_fault
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_global_replication_group_message ->
(Types.delete_global_replication_group_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `GlobalReplicationGroupNotFoundFault of
Types.global_replication_group_not_found_fault
| `InvalidGlobalReplicationGroupStateFault of
Types.invalid_global_replication_group_state_fault
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result