Copyright | (c) 2013-2021 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 |
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.
This operation is valid for Redis only.
Synopsis
- data DeleteReplicationGroup = DeleteReplicationGroup' {}
- newDeleteReplicationGroup :: Text -> DeleteReplicationGroup
- deleteReplicationGroup_finalSnapshotIdentifier :: Lens' DeleteReplicationGroup (Maybe Text)
- deleteReplicationGroup_retainPrimaryCluster :: Lens' DeleteReplicationGroup (Maybe Bool)
- deleteReplicationGroup_replicationGroupId :: Lens' DeleteReplicationGroup Text
- data DeleteReplicationGroupResponse = DeleteReplicationGroupResponse' {}
- newDeleteReplicationGroupResponse :: Int -> DeleteReplicationGroupResponse
- deleteReplicationGroupResponse_replicationGroup :: Lens' DeleteReplicationGroupResponse (Maybe ReplicationGroup)
- deleteReplicationGroupResponse_httpStatus :: Lens' DeleteReplicationGroupResponse Int
Creating a Request
data DeleteReplicationGroup Source #
Represents the input of a DeleteReplicationGroup
operation.
See: newDeleteReplicationGroup
smart constructor.
DeleteReplicationGroup' | |
|
Instances
newDeleteReplicationGroup Source #
Create a value of DeleteReplicationGroup
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:finalSnapshotIdentifier:DeleteReplicationGroup'
, deleteReplicationGroup_finalSnapshotIdentifier
- 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.
$sel:retainPrimaryCluster:DeleteReplicationGroup'
, deleteReplicationGroup_retainPrimaryCluster
- If set to true
, all of the read replicas are deleted, but the primary
node is retained.
$sel:replicationGroupId:DeleteReplicationGroup'
, deleteReplicationGroup_replicationGroupId
- The identifier for the cluster to be deleted. This parameter is not case
sensitive.
Request Lenses
deleteReplicationGroup_finalSnapshotIdentifier :: 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.
deleteReplicationGroup_retainPrimaryCluster :: Lens' DeleteReplicationGroup (Maybe Bool) Source #
If set to true
, all of the read replicas are deleted, but the primary
node is retained.
deleteReplicationGroup_replicationGroupId :: Lens' DeleteReplicationGroup Text Source #
The identifier for the cluster to be deleted. This parameter is not case sensitive.
Destructuring the Response
data DeleteReplicationGroupResponse Source #
See: newDeleteReplicationGroupResponse
smart constructor.
DeleteReplicationGroupResponse' | |
|
Instances
Eq DeleteReplicationGroupResponse Source # | |
Read DeleteReplicationGroupResponse Source # | |
Show DeleteReplicationGroupResponse Source # | |
Defined in Amazonka.ElastiCache.DeleteReplicationGroup | |
Generic DeleteReplicationGroupResponse Source # | |
NFData DeleteReplicationGroupResponse Source # | |
Defined in Amazonka.ElastiCache.DeleteReplicationGroup rnf :: DeleteReplicationGroupResponse -> () # | |
type Rep DeleteReplicationGroupResponse Source # | |
Defined in Amazonka.ElastiCache.DeleteReplicationGroup type Rep DeleteReplicationGroupResponse = D1 ('MetaData "DeleteReplicationGroupResponse" "Amazonka.ElastiCache.DeleteReplicationGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "DeleteReplicationGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "replicationGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicationGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteReplicationGroupResponse Source #
Create a value of DeleteReplicationGroupResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:replicationGroup:DeleteReplicationGroupResponse'
, deleteReplicationGroupResponse_replicationGroup
- Undocumented member.
$sel:httpStatus:DeleteReplicationGroupResponse'
, deleteReplicationGroupResponse_httpStatus
- The response's http status code.
Response Lenses
deleteReplicationGroupResponse_replicationGroup :: Lens' DeleteReplicationGroupResponse (Maybe ReplicationGroup) Source #
Undocumented member.
deleteReplicationGroupResponse_httpStatus :: Lens' DeleteReplicationGroupResponse Int Source #
The response's http status code.