// 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 (https://docs.aws.amazon.com/eks/latest/userguide/delete-cluster.html)
// 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.
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.
// 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 ( https : // docs . aws . amazon . com / eks / latest / userguide / delete - cluster . html ) // 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 .
func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error) {
	if params == nil {
		params = &DeleteClusterInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteCluster", params, optFns, addOperationDeleteClusterMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteClusterOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteCluster ( ctx context . Context , params * DeleteClusterInput , optFns ... func ( * Options ) ) ( * DeleteClusterOutput , error ) { if params == nil { params = & DeleteClusterInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteClusterMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteClusterOutput ) out . ResultMetadata = metadata return out , nil }
Deletes the Amazon EKS cluster control plane.
Deletes the Amazon EKS cluster control plane .