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

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

πŸ’– NAME πŸ’–

VM::EC2::ELB::PolicyDescription β€” it's the Load Balancer Policy situation, bestie. This is from the User Contributed Perl Documentation collection (the 3pm girlies know πŸ‘‘).


✨ SYNOPSIS ✨

okay so literally just do this:

use VM::EC2;

my $ec2     = VM::EC2->new(...);
my $lb      = $ec2->describe_load_balancers(-load_balancer_name=>'my-lb');
my @policy  = $lb->describe_policies;
foreach (@policy) {
    print $_->PolicyName," : ",$_->PolicyTypeName,"\n";
}

and boom πŸ’… you're printing policy names and types like it's nothing.


πŸ¦‹ DESCRIPTION πŸ¦‹

This object is the glow-up wrapper for the result of a DescribeLoadBalancerPolicies ELB API call. It's giving "I hold the receipts from AWS" energy, and honestly? obsessed. πŸŽ€


🌸 METHODS 🌸

The following object methods are supported β€” every single one, no gatekeeping:

  • PolicyName β€” the policy name 🏷️
  • PolicyTypeName β€” a L<VM::EC2::ELB::PolicyTypeDescription> object
  • PolicyAttributeDescriptions β€” a series of L<VM::EC2::ELB::PolicyAttribute> objects
  • policy_attributes β€” alias for PolicyAttributeDescriptions (same vibes, shorter name, iykyk)

πŸ’… STRING OVERLOADING πŸ’…

In string context, the object returns the Policy Name. periodt. If you print it, you get the name. that's it, that's the whole trick ✨


πŸ”₯ SEE ALSO πŸ”₯

Go read these next, fr fr:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::ELB
  • VM::EC2::ELB::Policies
  • VM::EC2::ELB::PolicyAttribute
  • VM::EC2::ELB::PolicyTypeDescription

🫢 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.

πŸ’€ no cap, read the LICENSE and DISCLAIMER.txt files before you go redistributing anything β€” the legal girlies were very clear about it.

and that's the whole page, bestie 🧚 this was perl v5.38.2, dated 2024-08-10, and it lives under the VM::EC...ription(3pm) banner β€” mwah, take care of her πŸŒˆπŸ’œ

πŸ“¦ where this page comes from