Smaws_Client_ECS.DeleteClusterDeletes the specified cluster. The cluster transitions to the INACTIVE state. Clusters with an INACTIVE status might remain discoverable in your account for a period of time. However, this behavior is subject to change in the future. We don't recommend that you rely on INACTIVE clusters persisting.
You must deregister all container instances from this cluster before you may delete it. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterContainsCapacityProviderException of
Types.cluster_contains_capacity_provider_exception
| `ClusterContainsContainerInstancesException of
Types.cluster_contains_container_instances_exception
| `ClusterContainsServicesException of
Types.cluster_contains_services_exception
| `ClusterContainsTasksException of Types.cluster_contains_tasks_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UpdateInProgressException of Types.update_in_progress_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_cluster_request ->
(Types.delete_cluster_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterContainsCapacityProviderException of
Types.cluster_contains_capacity_provider_exception
| `ClusterContainsContainerInstancesException of
Types.cluster_contains_container_instances_exception
| `ClusterContainsServicesException of
Types.cluster_contains_services_exception
| `ClusterContainsTasksException of Types.cluster_contains_tasks_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UpdateInProgressException of Types.update_in_progress_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_cluster_request ->
(Types.delete_cluster_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterContainsCapacityProviderException of
Types.cluster_contains_capacity_provider_exception
| `ClusterContainsContainerInstancesException of
Types.cluster_contains_container_instances_exception
| `ClusterContainsServicesException of
Types.cluster_contains_services_exception
| `ClusterContainsTasksException of Types.cluster_contains_tasks_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UpdateInProgressException of Types.update_in_progress_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result