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

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

✨ 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 the ScalingAdjustment is an absolute number or a percentage of the current capacity. The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. 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 policy
  • cooldown β€” 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 the DesiredCapacity of the Auto Scaling group by at least the specified number of instances
  • policy_arn β€” the Amazon Resource Name (ARN) of the policy
  • policy_name β€” the name of the scaling policy
  • scaling_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 for policy_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