答案 0 :(得分:1)
describe_instance_health - 描述指定负载均衡器的指定实例的状态
import boto3
client = boto3.client("elb")
response = client.describe_instance_health(LoadBalancerName='testname')
for instance in response['InstanceStates']:
print(instance['InstanceId'],instance['State'])