The following code examples show how to use DescribeLoadBalancers
.
- AWS CLI
-
To describe the Classic Load Balancers for an Auto Scaling group
This example describes the Classic Load Balancers for the specified Auto Scaling group.
aws autoscaling describe-load-balancers \ --auto-scaling-group-name
my-asg
Output:
{ "LoadBalancers": [ { "State": "Added", "LoadBalancerName": "my-load-balancer" } ] }
-
For API details, see DescribeLoadBalancers
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.