Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteCacheClusterCommand

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

example

Use a bare-bones client and the command you need to make an API call.

import { ElastiCacheClient, DeleteCacheClusterCommand } from "@aws-sdk/client-elasticache"; // ES Modules import
// const { ElastiCacheClient, DeleteCacheClusterCommand } = require("@aws-sdk/client-elasticache"); // CommonJS import
const client = new ElastiCacheClient(config);
const command = new DeleteCacheClusterCommand(input);
const response = await client.send(command);
see

DeleteCacheClusterCommandInput for command's input shape.

see

DeleteCacheClusterCommandOutput for command's response shape.

see

config for ElastiCacheClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteCacheClusterCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions