amazonka-elasticache-1.3.5: Amazon ElastiCache SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ElastiCache.DeleteReplicationGroup

Contents

Description

The DeleteReplicationGroup action deletes an existing replication group. By default, this action deletes the entire replication group, including the primary cluster and all of the read replicas. You can optionally delete only the read replicas, while retaining the primary cluster.

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

See: AWS API Reference for DeleteReplicationGroup.

Synopsis

Creating a Request

deleteReplicationGroup Source

Creates a value of DeleteReplicationGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

drgFinalSnapshotIdentifier :: Lens' DeleteReplicationGroup (Maybe Text) Source

The name of a final node group snapshot. ElastiCache creates the snapshot from the primary node in the cluster, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the cluster is immediately deleted.

drgRetainPrimaryCluster :: Lens' DeleteReplicationGroup (Maybe Bool) Source

If set to true, all of the read replicas will be deleted, but the primary node will be retained.

drgReplicationGroupId :: Lens' DeleteReplicationGroup Text Source

The identifier for the cluster to be deleted. This parameter is not case sensitive.

Destructuring the Response

deleteReplicationGroupResponse Source

Creates a value of DeleteReplicationGroupResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses