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

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

πŸ’– VM::EC2::ELB::PolicyAttributeType β€” the manual page, but make it cute ✨

okay bestie, so this is a page from the User Contributed Perl Documentation collection, and it's about VM::EC2::ELB::PolicyAttributeType β€” yes that's a whole mouthful, we're gonna call it the vibe-check object for load balancer policy attributes. πŸŽ€


✨ NAME ✨

VM::EC2::ELB::PolicyAttributeType β€” Load Balancer Policy Attribute Type. that's it, that's the name, it's giving very descriptive. πŸ’…


🌸 SYNOPSIS 🌸

here's how you actually use it, no cap:

use VM::EC2;

my $ec2          = VM::EC2->new(...);
my @policy_types = $ec2->describe_load_balancer_policy_types;
foreach my $type (@policy_types) {
    print $type,': ',$type->Description,"\n";
    foreach ($type->attribute_types) {
        print $_->AttributeName,"\n ",
              $_->AttributeType,"\n ",
              $_->Cardinality,"\n ",
              $_->DefaultValue,"\n ",
              $_->Description,"\n ";
    }
}

so you spin up your $ec2, grab all the policy types with describe_load_balancer_policy_types, and then for each type you print its Description, and then loop through its attribute_types and dump out every single field. iconic. πŸ¦‹


🫢 DESCRIPTION 🫢

This object is used to describe the ELB PolicyAttributeTypeDescription data type. that's literally its whole job and it does it beautifully. πŸ’œ


πŸ‘‘ METHODS πŸ‘‘

The following object methods are supported β€” each one is a little gift:

  • AttributeName β€” The attribute name
  • AttributeType β€” The attribute type
  • Cardinality β€” Cardinality of the policy attribute
  • DefaultValue β€” Default value for the attribute
  • Description β€” Description of the attribute

like, five methods, five slays. ✨


🌈 STRING OVERLOADING 🌈

In string context, the object will return the Attribute Name. so if you just print $type it's gonna hand you the attribute name like the main character it is. πŸ‘‘


πŸ’« SEE ALSO πŸ’«

go read these next, bestie:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::ELB::PolicyType

πŸ“ 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, read the LICENSE and DISCLAIMER.txt, they're not just decoration πŸ’€

and that's the whole page, babes πŸ’– this was perl v5.38.2, dated 2024-08-10, from the VM::EC2::ELB::PolicyAttributeType(3pm) page β€” periodt. 🧚🌸

πŸ“¦ where this page comes from