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

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

πŸ’– NAME πŸ’–

VM::EC2::ELB::Policies::LBCookieStickinessPolicy β€” bestie, it's the object that describes a Load Balancer Cookie Stickiness Policy πŸͺ✨ (yes, the whole page is filed under VM::EC...Policy(3pm) in the User Contributed Perl Documentation, she's a long name, we love her anyway πŸ’…)


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, copy-paste ready, no cap:

use VM::EC2;

$ec2          = VM::EC2->new(...);
$lb           = $ec2->describe_load_balancers('my-lb');
$p            = $lb->Policies;

@lb_policies  = $p->LBCookieStickinessPolicies;

like, you spin up your $ec2, you grab your load balancer $lb, you pull the $p Policies off it, and boom πŸ’₯ β€” you got yourself a list of @lb_policies. iconic behaviour honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

This object is used to describe the parameters used to create an

(not me noticing the original sentence just… ends there 😭 it literally stops at "an" β€” that's exactly what the source says, so that's exactly what you get, fr fr. I'm not gonna invent an ending for it, that would be fake news πŸ™ˆ)


✨ METHODS ✨

The following object methods are supported β€” she's a small queen with a small entourage πŸ‘‘:

  • PolicyName β€” the name of the policy πŸŽ€
  • CookieExpirationPeriod β€” expiration period for the policy ⏰

🧚 STRING OVERLOADING 🧚

when you use the object in string context, it just hands you back the policy name. that's it. that's the whole trick. the way she said "here's my name, that's all you need" πŸ’…βœ¨


πŸ’œ SEE ALSO πŸ’œ

go read these next, they're the friend group:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::ELB
  • VM::EC2::ELB::Policies

🌈 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.

lowkey important: LICENSE has the full license text and DISCLAIMER.txt has the warranty disclaimers β€” go read them, they're the fine print and the fine print matters πŸ’€πŸ“œ

and that's a wrap, bestie πŸŽ€ this was perl v5.38.2, dated 2024-08-10, filed as VM::EC...Policy(3pm) β€” slay, go stick some cookies to your load balancer, ily πŸͺπŸ’–πŸ¦‹

πŸ“¦ where this page comes from