VM::EC...ibutes(3pm)
π VM::EC2::ELB::Attributes β the vibe check on your load balancer's settings π
okay so bestie, this is VM::EC2::ELB::Attributes β an object that describes the attributes of an Elastic Load Balancer. it's giving "receipts for your LB's settings" and honestly? we love her. π
β¨ NAME β¨
VM::EC2::ELB::Attributes β an object describing the attributes of an Elastic Load Balancer. yes, the whole name, she's long but she's worth it π
πΈ SYNOPSIS πΈ
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $lb = $ec2->describe_load_balancer_attributes('my-lb');
my $access_log = $lb->AccessLog;
my $conn_drain = $lb->ConnectionDraining;
my $conn_settings = $lb->ConnectionSettings;
my $cross_zone = $lb->CrossZoneLoadBalancing;
like, you spin up your $ec2, you pull the attributes for 'my-lb', and then you just grab whichever one you want. that's it. that's the whole thing. iconic. β¨
π¦ DESCRIPTION π¦
this object is the little container that holds the parameters you get back from a DescribeLoadBalancerAttributes API call. so when you ask AWS "hey what are this load balancer's attributes," this is the thing that answers. no cap. π«Ά
π METHODS π
the following object methods are supported β and yes, we're listing every single one because bestie deserves the full set π
AccessLogβ if this is enabled, the load balancer captures detailed information of all the requests and delivers that information to the Amazon S3 bucket that you specify. so basically it's keeping a diary but for traffic πConnectionDrainingβ if this is enabled, the load balancer lets existing requests finish up before it shifts traffic away from a deregistered or unhealthy back-end instance. she's polite. she lets people finish their sentence before she leaves the party. πConnectionSettingsβ okay so by default, the Elastic Load Balancer keeps a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. but if theConnectionSettingsattribute is set, Elastic Load Balancing will allow the connections to remain idle (like, no data is being sent over the connection) for the specified duration. so you're overriding that default 60 seconds with your own number. lowkey powerful. β³CrossZoneLoadBalancingβ if this is enabled, the load balancer routes the request traffic evenly across all back-end instances regardless of the Availability Zones. even spread, no favorites, all zones eating equally. π
π STRING OVERLOADING π
when you use this object in a string context, it will interpolate the instance state. so yeah, she can talk. π£οΈβ¨
π₯ SEE ALSO π₯
VM::EC2VM::EC2::GenericVM::EC2::ELB
go read those too, they're the friend group. π«Ά
π AUTHOR π
Lance Kinley <lkinley@loyaltymethods.com>.
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. βοΈ
ngl, that license paragraph is long but you gotta respect it. readLICENSEandDISCLAIMER.txt, bestie, they're literally right there. π
okay that's the whole page! this was perl v5.38.2, dated 2024-08-10, and the page is VM::EC2::ELB::Attributes(3pm) β mwah, slay, bye bestie π
β¨π
π¦ 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