Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes 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.
Synopsis
- deleteReplicationGroup :: Text -> DeleteReplicationGroup
- data DeleteReplicationGroup
- drgFinalSnapshotIdentifier :: Lens' DeleteReplicationGroup (Maybe Text)
- drgRetainPrimaryCluster :: Lens' DeleteReplicationGroup (Maybe Bool)
- drgReplicationGroupId :: Lens' DeleteReplicationGroup Text
- deleteReplicationGroupResponse :: Int -> DeleteReplicationGroupResponse
- data DeleteReplicationGroupResponse
- delrsReplicationGroup :: Lens' DeleteReplicationGroupResponse (Maybe ReplicationGroup)
- delrsResponseStatus :: Lens' DeleteReplicationGroupResponse Int
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:
drgFinalSnapshotIdentifier
- The name of a final node group (shard) 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 replication group is immediately deleted.drgRetainPrimaryCluster
- If set totrue
, all of the read replicas are deleted, but the primary node is retained.drgReplicationGroupId
- The identifier for the cluster to be deleted. This parameter is not case sensitive.
data DeleteReplicationGroup Source #
Represents the input of a DeleteReplicationGroup
operation.
See: deleteReplicationGroup
smart constructor.
Instances
Request Lenses
drgFinalSnapshotIdentifier :: Lens' DeleteReplicationGroup (Maybe Text) Source #
The name of a final node group (shard) 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 replication group is immediately deleted.
drgRetainPrimaryCluster :: Lens' DeleteReplicationGroup (Maybe Bool) Source #
If set to true
, all of the read replicas are deleted, but the primary node is 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:
delrsReplicationGroup
- Undocumented member.delrsResponseStatus
- -- | The response status code.
data DeleteReplicationGroupResponse Source #
See: deleteReplicationGroupResponse
smart constructor.
Instances
Response Lenses
delrsReplicationGroup :: Lens' DeleteReplicationGroupResponse (Maybe ReplicationGroup) Source #
Undocumented member.
delrsResponseStatus :: Lens' DeleteReplicationGroupResponse Int Source #
- - | The response status code.