Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes 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.
Synopsis
- data DeleteLoadBalancer = DeleteLoadBalancer' {}
- newDeleteLoadBalancer :: Text -> DeleteLoadBalancer
- deleteLoadBalancer_loadBalancerArn :: Lens' DeleteLoadBalancer Text
- data DeleteLoadBalancerResponse = DeleteLoadBalancerResponse' {
- httpStatus :: Int
- newDeleteLoadBalancerResponse :: Int -> DeleteLoadBalancerResponse
- deleteLoadBalancerResponse_httpStatus :: Lens' DeleteLoadBalancerResponse Int
Creating a Request
data DeleteLoadBalancer Source #
See: newDeleteLoadBalancer
smart constructor.
DeleteLoadBalancer' | |
|
Instances
newDeleteLoadBalancer Source #
Create a value of DeleteLoadBalancer
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:loadBalancerArn:DeleteLoadBalancer'
, deleteLoadBalancer_loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.
Request Lenses
deleteLoadBalancer_loadBalancerArn :: Lens' DeleteLoadBalancer Text Source #
The Amazon Resource Name (ARN) of the load balancer.
Destructuring the Response
data DeleteLoadBalancerResponse Source #
See: newDeleteLoadBalancerResponse
smart constructor.
DeleteLoadBalancerResponse' | |
|
Instances
newDeleteLoadBalancerResponse Source #
Create a value of DeleteLoadBalancerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteLoadBalancerResponse'
, deleteLoadBalancerResponse_httpStatus
- The response's http status code.
Response Lenses
deleteLoadBalancerResponse_httpStatus :: Lens' DeleteLoadBalancerResponse Int Source #
The response's http status code.