VM::EC2::ELB:BackendServerDescription - Load Balancer Backend Server Description
Contents
Description
This object is used to describe the BackendServerDescription data type, which is one of the response
elements of the DescribeLoadBalancers API call.
Methods
The following object methods are supported:
InstancePort -- Returns the port on which the back-end server is listening.
PolicyNames -- Returns an array of policy names enabled for the back-end
server.
Name
VM::EC2::ELB:BackendServerDescription - Load Balancer Backend Server Description
See Also
VM::EC2 VM::EC2::Generic VM::EC2::Listener
String Overloading
NONE.
Synopsis
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $lb = $ec2->describe_load_balancers('my-lb');
my @descs = $lb->BackendServerDescriptions;
foreach my $desc (@descs) {
print $desc->InstancePort,":\n";
foreach ($desc->PolicyNames) {
print $_,"\n";
}
}
