Smaws_Client_ECS.DeleteCapacityProviderDeletes the specified capacity provider.
The FARGATE and FARGATE_SPOT capacity providers are reserved and can't be deleted. You can disassociate them from a cluster using either PutClusterCapacityProviders or by deleting the cluster.
Prior to a capacity provider being deleted, the capacity provider must be removed from the capacity provider strategy from all services. The UpdateService API can be used to remove a capacity provider from a service's capacity provider strategy. When updating a service, the forceNewDeployment option can be used to ensure that any tasks using the Amazon EC2 instance capacity provided by the capacity provider are transitioned to use the capacity from the remaining capacity providers. Only capacity providers that aren't associated with a cluster can be deleted. To remove a capacity provider from a cluster, you can either use PutClusterCapacityProviders or delete the cluster.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UnsupportedFeatureException of Types.unsupported_feature_exception
| `UpdateInProgressException of Types.update_in_progress_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_capacity_provider_request ->
(Types.delete_capacity_provider_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UnsupportedFeatureException of Types.unsupported_feature_exception
| `UpdateInProgressException of Types.update_in_progress_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_capacity_provider_request ->
(Types.delete_capacity_provider_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `ClusterNotFoundException of Types.cluster_not_found_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `ServerException of Types.server_exception
| `UnsupportedFeatureException of Types.unsupported_feature_exception
| `UpdateInProgressException of Types.update_in_progress_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result