VM::EC...T::zone(3pm)
π VM::EC2::REST::zone π
okay bestie, so this is the VM::EC2::REST::zone page from the User Contributed Perl Documentation corner of the internet, and it's literally all about fetching info on EC2 regions and availability zones. yes. that's the whole vibe. slay. π
β¨ NAME β¨
VM::EC2::REST::zone β Fetch information on EC2 regions and availability zones π¦
πΈ SYNOPSIS πΈ
use VM::EC2 qw(:standard);
that's it. that's the setup. iconic. π
π EC2 REGIONS AND AVAILABILITY ZONES π
okay so this section is where the methods live, and they're the ones that let you fetch info about EC2 regions and availability zones. and like, they don't return random hashes or vibes β they hand you back actual objects of type VM::EC2::Region and VM::EC2::AvailabilityZone. main character objects, fr fr. π
Implemented:
DescribeAvailabilityZonesDescribeRegions
Unimplemented:
- (none)
ngl, "unimplemented: (none)" is the most satisfying line in any manpage. we love a complete queen. πβ¨
π§ @regions = $ec2->describe_regions(@list)
π§ @regions = $ec2->describe_regions(-region_name=>\@list)
so this one describes regions and gives you back a list of VM::EC2::Region objects. π«Ά
call it with no arguments and you get all the regions, periodt. but if you wanna narrow it down, you can pass a list of regions in either of the two forms shown above. and yes, glob-style wildcards are allowed β like "*east" β so go off. π
π¦ @zones = $ec2->describe_availability_zones(@names)
π¦ @zones = $ec2->describe_availability_zones(-zone_name=>\@names,-filter=>\%filters)
this one describes availability zones and returns a list of VM::EC2::AvailabilityZone objects. π
no arguments? you get all the availability regions. π« you can also hand it a list of zones in either of the two forms shown above to restrict what comes back. and same deal as before β glob-style wildcards like "*east" are allowed, bestie. π
and here's the lil plot twist π«£ β if you pass a single argument that's a hashref, it gets treated as a -filter argument. so like:
$ec2->describe_availability_zones({state=>'available'})
is equivalent to:
$ec2->describe_availability_zones(-filter=>{state=>'available'})
same energy, different outfit. π
availability zone filters are described over at: http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeAvailabilityZones.html
β SEE ALSO β
VM::EC2
go read that one too, iykyk. π
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com>. π
Copyright (c) 2011 Ontario Institute for Cancer Research
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.
okay so lowkey important: the license stuff above is not decoration, bestie β it's the actual legal tea. readLICENSEandDISCLAIMER.txtfr fr. π
and that's the whole page!! πΈ this was documented by perl v5.38.2 on 2024-08-10, and yeah the page title got a lil squished into VM::EC...T::zone(3pm) β she's a little mysterious, we respect it. π bye bestie, go describe some zones!! π¦β¨π
π¦ 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