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

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

✨ NAME ✨

okay so bestie, this is VM::EC2::AvailabilityZone β€” it's a whole object that describes an Amazon availability zone πŸ’– like, it's the little guy that holds all the deets about one of those AWS zones. that's the whole job. iconic behavior honestly πŸŽ€


🌸 SYNOPSIS 🌸

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

use VM::EC2;

$ec2     = VM::EC2->new(...);
@zones   = $ec2->describe_availability_zones(-filter=>{state=>'available'});

$zone    = $zones[0];
$name    = $zone->zoneName;
@messages= $zone->messages;

like... you make your $ec2, you pull the zones, you grab one, and then you're literally just reading zoneName and messages off it. slay πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so. this object is the representation of an Amazon EC2 availability zone, periodt. and where does it come from? not you constructing it, bestie β€” it gets returned by VM::EC2->describe_availability_zones(). that's the way that works. you don't build it, it comes to you 🫢


πŸ’œ METHODS πŸ’œ

these object methods are the supported ones β€” the whole roster, no notes:

  • zoneName β€” the name of the zone, e.g. "eu-west-1a" ✨
  • zoneState β€” the state of the availability zone, e.g. "available" βœ…
  • regionName β€” the name of the region 🌍
  • region β€” a VM::EC2::Region object that corresponds to regionName πŸ‘‘
  • messages β€” a list of messages about the zone πŸ“¬
not me listing every single one because skipping options is a crime in this house πŸ’€

🌈 STRING OVERLOADING 🌈

the moment you use this object in a string context, it will interpolate the zoneName. that's it, that's the trick β€” it just knows what to say when you print it πŸŽ€βœ¨


⭐ SEE ALSO ⭐

go read these next, iykyk:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::Region

🫢 AUTHOR 🫢

this was written by Lincoln Stein <lincoln.stein@gmail.com> πŸ’–

Copyright (c) 2011 Ontario Institute for Cancer Research

and the legal tea, fr fr: 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. and also please see DISCLAIMER.txt for disclaimers of warranty πŸ“œ


okay that's the whole page, bestie πŸ’… this was VM::EC2::AvailabilityZone from the User Contributed Perl Documentation, and the footer tea is: perl v5.38.2, dated 2024-08-10. go describe some zones, you got this πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from