delete_cache_cluster
async
¶
delete_cache_cluster(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = 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/async_elasti_cache.py
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 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 | |