delete_cache_cluster
¶
delete_cache_cluster(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
cache_cluster_id: Optional[String] = None,
final_snapshot_identifier: Optional[String] = None,
) -> DeleteCacheClusterResult
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:
-
Valkey or Redis OSS (cluster mode enabled) clusters
-
Valkey or Redis OSS (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 Valkey or Redis OSS (cluster mode enabled) replication group
-
A cluster that is not in the
availablestate
Parameters:
-
cache_cluster_id(Optional[String], default:None) –The cluster identifier for the cluster to be deleted. This parameter is not case sensitive.
-
final_snapshot_identifier(Optional[String], default:None) –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.
Raises:
-
CacheClusterNotFoundFault–The requested cluster ID does not refer to an existing cluster.
-
InvalidCacheClusterStateFault–The requested cluster is not in the
availablestate. -
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
SnapshotAlreadyExistsFault–You already have a snapshot with the given name.
-
SnapshotFeatureNotSupportedFault–You attempted one of the following operations:
-
Creating a snapshot of a Valkey or Redis OSS cluster running on a
cache.t1.microcache node. -
Creating a snapshot of a cluster that is running Memcached rather than Valkey or Redis OSS.
Neither of these are supported by ElastiCache.
-
-
SnapshotQuotaExceededFault–The request cannot be processed because it would exceed the maximum number of snapshots.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
DeleteCacheCluster Deletes an Amazon ElastiCache cluster.
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 | |