paws.networking (version 0.1.6)

elbv2_delete_load_balancer: Deletes the specified Application Load Balancer or Network Load Balancer and its attached listeners

Description

Deletes the specified Application Load Balancer or Network Load Balancer and its attached listeners.

Usage

elbv2_delete_load_balancer(LoadBalancerArn)

Arguments

LoadBalancerArn

[required] The Amazon Resource Name (ARN) of the load balancer.

Request syntax

svc$delete_load_balancer(
  LoadBalancerArn = "string"
)

Details

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.

Examples

Run this code
# NOT RUN {
# This example deletes the specified load balancer.
# }
# NOT RUN {
svc$delete_load_balancer(
  LoadBalancerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my..."
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab