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

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

πŸ’– 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 the ConnectionSettings attribute 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::EC2
  • VM::EC2::Generic
  • VM::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. read LICENSE and DISCLAIMER.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