VM::EC...ancing(3pm)
π VM::EC2::ELB:Attributes::CrossZoneLoadBalancing π
okay bestie, so this is a page from the User Contributed Perl Documentation collection β manual section 3pm β and the whole entire vibe of it is: it's the object that describes the CrossZoneLoadBalancing attribute of an Elastic Load Balancer. yes, that one. the little toggle that decides whether your load balancer spreads love across every availability zone or just keeps it local. iconic behavior honestly.
β¨ NAME β¨
VM::EC2::ELB:Attributes::CrossZoneLoadBalancing β it's an object describing the CrossZoneLoadBalancing attribute of an Elastic Load Balancer. that's it, that's the whole job, and it does it beautifully π
π¦ SYNOPSIS π¦
here's the whole little ritual, copy it exactly:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $lb = $ec2->describe_load_balancer_attributes('my-lb');
my $cross_zone = $lb->CrossZoneLoadBalancing;
so you make your $ec2 object (the ... is you, doing your thing, passing whatever you pass), you ask it about 'my-lb' with describe_load_balancer_attributes, and then you just reach in and grab CrossZoneLoadBalancing off the result. slay. β¨
πΈ DESCRIPTION πΈ
this object is returned as part of the DescribeLoadBalancerAttributes API call. like, it doesn't show up on its own β it comes home with that call, and you go pick it up from $lb. no cap.
π METHODS π
the following object methods are supported β yes, it's a short list, she's lowkey minimalist:
Enabledβ specifies whether cross-zone load balancing is enabled for the load balancer π
that's the one. that's the whole menu. quality over quantity fr fr.
π STRING OVERLOADING π
when you use this object in a string context, it will interpolate the instance state. so like, drop it in a "..." and it'll just⦠say something. main character energy, no questions asked.
π SEE ALSO π
go hang out with her friends, they're all in the family:
VM::EC2VM::EC2::GenericVM::EC2::ELB
iykyk π«Ά
π AUTHOR π
Lance Kinley <lkinley@loyaltymethods.com> β wrote it, thank him.
Copyright (c) 2014 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. π
not me ending on the legal bit but yes, read the license files, bestie, they're right there π
okay that's the whole page!! thanks for coming to my ted talk. this little gem was living in perl v5.38.2, dated 2024-08-10, and it's still out here doing its cross-zone thing. bye pookie, go balance some load π§π
π¦ 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