Smaws_Client_ElasticLoadBalancingv2.DeleteLoadBalancerDeletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. Deleting a load balancer also deletes its listeners.
You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds.
Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `LoadBalancerNotFoundException of Types.load_balancer_not_found_exception
| `OperationNotPermittedException of Types.operation_not_permitted_exception
| `ResourceInUseException of Types.resource_in_use_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_load_balancer_input ->
(Types.delete_load_balancer_output,
[> Smaws_Lib.Protocols.AwsQuery.error
| `LoadBalancerNotFoundException of Types.load_balancer_not_found_exception
| `OperationNotPermittedException of
Types.operation_not_permitted_exception
| `ResourceInUseException of Types.resource_in_use_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_load_balancer_input ->
(Types.delete_load_balancer_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `LoadBalancerNotFoundException of Types.load_balancer_not_found_exception
| `OperationNotPermittedException of
Types.operation_not_permitted_exception
| `ResourceInUseException of Types.resource_in_use_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result