pub enum DeleteClusterError {
Client(String),
ClusterContainsContainerInstances(String),
ClusterContainsServices(String),
ClusterContainsTasks(String),
ClusterNotFound(String),
InvalidParameter(String),
Server(String),
UpdateInProgress(String),
}
Expand description
Errors returned by DeleteCluster
Variants§
Client(String)
These errors are usually caused by a client action, such as using an action or resource on behalf of a user that doesn't have permissions to use the action or resource, or specifying an identifier that is not valid.
ClusterContainsContainerInstances(String)
You cannot delete a cluster that has registered container instances. First, deregister the container instances before you can delete the cluster. For more information, see DeregisterContainerInstance.
ClusterContainsServices(String)
You cannot delete a cluster that contains services. First, update the service to reduce its desired task count to 0 and then delete the service. For more information, see UpdateService and DeleteService.
ClusterContainsTasks(String)
You cannot delete a cluster that has active tasks.
ClusterNotFound(String)
The specified cluster could not be found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region-specific.
InvalidParameter(String)
The specified parameter is invalid. Review the available parameters for the API request.
Server(String)
These errors are usually caused by a server issue.
UpdateInProgress(String)
There is already a current Amazon ECS container agent update in progress on the specified container instance. If the container agent becomes disconnected while it is in a transitional stage, such as PENDING
or STAGING
, the update process can get stuck in that state. However, when the agent reconnects, it resumes where it stopped previously.