VM::EC...iption(3pm)

πŸ“¦
version 1.28 Β· 7 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

VM::EC2::ELB:BackendServerDescription β€” it's giving Load Balancer Backend Server Description, bestie. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

okay so first you gotta actually load the thing:

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";
    }

}

like, you spin up your $ec2, you grab your load balancer with describe_load_balancers('my-lb'), you pull all the descriptions off it with BackendServerDescriptions, and then you just loop and print. iconic behaviour tbh. πŸ¦‹


🌸 DESCRIPTION 🌸

so this object is literally the BackendServerDescription data type. it's one of the response elements that comes back from the DescribeLoadBalancers API call. that's it, that's the job. no cap. πŸ’…


πŸ‘‘ METHODS πŸ‘‘

here's everything this lil guy can do for you:

  • InstancePort β€” returns the port the back-end server is listening on. that's the one. πŸ“
  • PolicyNames β€” returns an array of all the policy names that are enabled for the back-end server. plural. an array. not a single one. πŸ’œ

πŸ’€ STRING OVERLOADING πŸ’€

NONE.</purl> okay? NONE. don't try it. 😭


πŸ”₯ SEE ALSO πŸ”₯

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::Listener

🫢 AUTHOR 🫢

Lance Kinley <lkinley@loyaltymethods.com>

Copyright (c) 2012 Loyalty Methods, Inc.

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.

fr fr, go read LICENSE and DISCLAIMER.txt before you come for me. legal besties stay winning. ⭐

and that's the whole page, bestie β€” perl v5.38.2, dated 2024-08-10, from your friendly neighbourhood User Contributed Perl Documentation. mwah. πŸ’–πŸŒˆβœ¨

πŸ“¦ where this page comes from