Smaws_Client_ElastiCache.DeleteReplicationGroupDeletes an existing replication group. By default, this operation deletes the entire replication group, including the primary/primaries and all of the read replicas. If the replication group has only one primary, you can optionally delete only the read replicas, while retaining the primary by setting RetainPrimaryCluster=true.
When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this operation.
CreateSnapshot permission is required to create a final snapshot. Without this permission, the API call will fail with an Access Denied exception.val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of Types.invalid_parameter_value_exception
| `InvalidReplicationGroupStateFault of
Types.invalid_replication_group_state_fault
| `ReplicationGroupNotFoundFault of Types.replication_group_not_found_fault
| `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault
| `SnapshotFeatureNotSupportedFault of
Types.snapshot_feature_not_supported_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_replication_group_message ->
(Types.delete_replication_group_result,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `InvalidReplicationGroupStateFault of
Types.invalid_replication_group_state_fault
| `ReplicationGroupNotFoundFault of Types.replication_group_not_found_fault
| `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault
| `SnapshotFeatureNotSupportedFault of
Types.snapshot_feature_not_supported_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_replication_group_message ->
(Types.delete_replication_group_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `InvalidReplicationGroupStateFault of
Types.invalid_replication_group_state_fault
| `ReplicationGroupNotFoundFault of Types.replication_group_not_found_fault
| `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault
| `SnapshotFeatureNotSupportedFault of
Types.snapshot_feature_not_supported_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result