VM::EC...aining(3pm)
π VM::EC2::ELB:Attributes::ConnectionDraining π
okay bestie, so this is the page for VM::EC2::ELB:Attributes::ConnectionDraining, living in the 3pm manual section (User Contributed Perl Documentation, if we're being official about it). It's an object that describes the ConnectionDraining attribute of an Elastic Load Balancer. Yes, it's a whole little object just for that. She's small but she's important. π
β¨ NAME β¨
VM::EC2::ELB:Attributes::ConnectionDraining β an object that describes the ConnectionDraining attribute of an Elastic Load Balancer. That's literally her whole job and she does it flawlessly, no cap. π
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste coded exactly as-is:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $lb = $ec2->describe_load_balancer_attributes('my-lb');
my $conn_drain = $lb->ConnectionDraining;
so you spin up your $ec2 with VM::EC2->new(...), grab the attributes of 'my-lb' with describe_load_balancer_attributes, and then the ConnectionDraining method on $lb hands you this whole entire object. iconic behaviour honestly. β¨
π¦ DESCRIPTION π¦
This object gets returned as part of the DescribeLoadBalancerAttributes API call. That's the origin story. She doesn't just show up anywhere β she comes back with the describe call, and then you poke at her methods. π«Ά
π METHODS π
The following object methods are supported β yes, both of them, it's a short list, we love a minimalist queen:
Enabledβ Specifies whether connection draining is enabled for the load balancer. on or off, that's the whole question. πTimeoutβ Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances. so it's the "how long do we wait, bestie" number. β³
π STRING OVERLOADING π
When you use this object in a string context, it will interpolate the instance state. so if you just drop it into a double-quoted string or print it, it'll stringify itself for you. no manual ->Enabled required, she's doing it herself. π
β¨
π SEE ALSO π
go read these too, they're the friends in her group chat:
VM::EC2VM::EC2::GenericVM::EC2::ELB
π 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.
no warranty disclaimers are a vibe, but they are the law, so read DISCLAIMER.txt fr fr. π«‘
and that's the whole page, bestie!! πΈ This was perl v5.38.2, dated 2024-08-10, and this lil manual page lives under the name VM::EC...aining(3pm). mwah, go drain some connections responsibly ππ¦πβ¨
π¦ 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