VM::EC...Policy(3pm)
β¨ NAME β¨
VM::EC2::ScalingPolicy β the lil object that describes an AutoScaling Policy π
(it lives in the VM::EC...Policy manpage, bestie, the name's just abbreviated up top)
πΈ SYNOPSIS πΈ
okay so here's the vibe, fr fr:
use VM::EC2;
$ec2 = VM::EC2->new(...);
@pols = $ec2->describe_policies();
$pol = $pols[0];
$type = $pol->adjustment_type;
π¦ DESCRIPTION π¦
This object represents an AutoScaling Policy. That's literally it, that's the whole job π«Ά It gets handed back to you by VM::EC2->describe_policies(), and then you poke at its properties like the main character you are.
π METHODS π
These properties are supported, and yes you're gonna want all of them:
adjustment_typeβ tells you whether theScalingAdjustmentis an absolute number or a percentage of the current capacity. The valid values areChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. no in-between, pick one πalarmsβ a list of CloudWatch Alarms related to the policy. it's giving watchful energy πauto_scaling_group_nameβ the name of the Auto Scaling group associated with this scaling policycooldownβ the amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. it's the "bestie chill for a sec" timer β¨min_adjustment_stepβ changes theDesiredCapacityof the Auto Scaling group by at least the specified number of instancespolicy_arnβ the Amazon Resource Name (ARN) of the policypolicy_nameβ the name of the scaling policyscaling_adjustmentβ the number associated with the specified adjustment type. A positive value adds to the current capacity and a negative value removes from the current capacity (math but make it fashion ππ)nameβ alias forpolicy_name. same girl, different name π
π SEE ALSO π
VM::EC2 Β· VM::EC2::Generic
π AUTHOR π
Jose Luis Martinez
and that's a wrap, my love π this was the VM::EC...Policy page, brought to you by perl v5.38.2 on 2024-08-10, courtesy of the User Contributed Perl Documentation. slay, go scale something 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