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 a previously provisioned cluster. DeleteCacheCluster
deletes
all associated cache nodes, node endpoints and the cluster itself. When
you receive a successful response from this operation, Amazon
ElastiCache immediately begins deleting the cluster; you cannot cancel
or revert this operation.
This operation is not valid for:
- Redis (cluster mode enabled) clusters
- Redis (cluster mode disabled) clusters
- A cluster that is the last read replica of a replication group
- A cluster that is the primary node of a replication group
- A node group (shard) that has Multi-AZ mode enabled
- A cluster from a Redis (cluster mode enabled) replication group
- A cluster that is not in the
available
state
Synopsis
- data DeleteCacheCluster = DeleteCacheCluster' {}
- newDeleteCacheCluster :: Text -> DeleteCacheCluster
- deleteCacheCluster_finalSnapshotIdentifier :: Lens' DeleteCacheCluster (Maybe Text)
- deleteCacheCluster_cacheClusterId :: Lens' DeleteCacheCluster Text
- data DeleteCacheClusterResponse = DeleteCacheClusterResponse' {}
- newDeleteCacheClusterResponse :: Int -> DeleteCacheClusterResponse
- deleteCacheClusterResponse_cacheCluster :: Lens' DeleteCacheClusterResponse (Maybe CacheCluster)
- deleteCacheClusterResponse_httpStatus :: Lens' DeleteCacheClusterResponse Int
Creating a Request
data DeleteCacheCluster Source #
Represents the input of a DeleteCacheCluster
operation.
See: newDeleteCacheCluster
smart constructor.
DeleteCacheCluster' | |
|
Instances
newDeleteCacheCluster Source #
Create a value of DeleteCacheCluster
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:DeleteCacheCluster'
, deleteCacheCluster_finalSnapshotIdentifier
- The user-supplied name of a final cluster snapshot. This is the unique
name that identifies the snapshot. ElastiCache creates the snapshot, and
then deletes the cluster immediately afterward.
$sel:cacheClusterId:DeleteCacheCluster'
, deleteCacheCluster_cacheClusterId
- The cluster identifier for the cluster to be deleted. This parameter is
not case sensitive.
Request Lenses
deleteCacheCluster_finalSnapshotIdentifier :: Lens' DeleteCacheCluster (Maybe Text) Source #
The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. ElastiCache creates the snapshot, and then deletes the cluster immediately afterward.
deleteCacheCluster_cacheClusterId :: Lens' DeleteCacheCluster Text Source #
The cluster identifier for the cluster to be deleted. This parameter is not case sensitive.
Destructuring the Response
data DeleteCacheClusterResponse Source #
See: newDeleteCacheClusterResponse
smart constructor.
DeleteCacheClusterResponse' | |
|
Instances
newDeleteCacheClusterResponse Source #
Create a value of DeleteCacheClusterResponse
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:cacheCluster:DeleteCacheClusterResponse'
, deleteCacheClusterResponse_cacheCluster
- Undocumented member.
$sel:httpStatus:DeleteCacheClusterResponse'
, deleteCacheClusterResponse_httpStatus
- The response's http status code.
Response Lenses
deleteCacheClusterResponse_cacheCluster :: Lens' DeleteCacheClusterResponse (Maybe CacheCluster) Source #
Undocumented member.
deleteCacheClusterResponse_httpStatus :: Lens' DeleteCacheClusterResponse Int Source #
The response's http status code.