I can able to get the load balancers using below
import boto3
elb = boto3.client('elbv2')
lbs = elb.describe_load_balancers()
How to get the instances of the lbs
.
Also How Can I fetch the load balancers which state is not active as describe_load_balanacers only give state active
load balanceres.