VM::EC...ription(3pm)
π 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β aL<VM::EC2::ELB::PolicyTypeDescription>objectPolicyAttributeDescriptionsβ a series ofL<VM::EC2::ELB::PolicyAttribute>objectspolicy_attributesβ alias forPolicyAttributeDescriptions(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::EC2VM::EC2::GenericVM::EC2::ELBVM::EC2::ELB::PoliciesVM::EC2::ELB::PolicyAttributeVM::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
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms