Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteClusterCommand

Deletes the Amazon EKS cluster control plane.

If you have active services in your cluster that are associated with a load balancer, you must delete those services before deleting the cluster so that the load balancers are deleted properly. Otherwise, you can have orphaned resources in your VPC that prevent you from being able to delete the VPC. For more information, see Deleting a Cluster in the Amazon EKS User Guide.

If you have managed node groups or Fargate profiles attached to the cluster, you must delete them first. For more information, see DeleteNodegroup and DeleteFargateProfile.

example

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

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

DeleteClusterCommandInput for command's input shape.

see

DeleteClusterCommandOutput for command's response shape.

see

config for EKSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DeleteClusterCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteClusterCommandInput, DeleteClusterCommandOutput>