VM::EC...isting(3pm)
π VM::EC2::ReservedInstance::Listing β the whole vibe π
okay so bestie, quick vibe check: this is a User Contributed Perl Documentation page, section 3pm, for the module VM::EC2::ReservedInstance::Listing. It's the little object that describes an Amazon EC2 reserved instance listing. We're gonna go through it together, no cap. π¦
β¨ NAME β¨
VM::EC2::ReservedInstance::Listing β the object that describes an Amazon EC2 reserved instance listing. That's it, that's the name, periodt. π
πΈ SYNOPSIS πΈ
Here's the whole "how do I even use this" moment. Copy it exactly, don't freestyle:
use VM::EC2;
$ec2 = VM::EC2->new(...);
@listings = $ec2->describe_reserved_instances_listings();
for my $l (@listings) {
print $l->reservedInstancesId,"\n";
print $l->createDate,"\n";
print $l->status,"\n";
}
Like, you make an $ec2 object, you ask it for all the listings with describe_reserved_instances_listings(), and then you loop over them and print the reservedInstancesId, the createDate and the status. Iconic. Obsessed. π₯
π DESCRIPTION π
So this object literally is an Amazon EC2 reserved instance listing, exactly as it comes back from VM::EC2->describe_reserved_instances_listings(). That's the whole origin story. No extra lore, no plot twists. π
π METHODS π
These object methods are supported β and yes, we're listing every single one, because we don't skip. Not me leaving options out. Never. π
reservedInstancesListingIdβ the ID of this listing, the lil' name tag it wears.reservedInstancesIdβ the ID of the Reserved Instance. (Sibling ID, iykyk.)createDateβ the time the listing was created. Its birthday. πupdateDateβ the last modified timestamp of the listing.statusβ the status of the Reserved Instance listing. Valid values are:activependingcancelledclosed
statusMessageβ the reason for the current status of the listing. Heads up bestie: the response can be blank. π«₯instanceCountsβ number of instances in this state.priceSchedulesβ price of the Reserved Instance listing. πΈclientTokenβ the idempotency token you provided when you created the listing.
π§ STRING OVERLOADING π§
When you use this object in a string context, it will interpolate the reservedInstancesListingId. So like, if you just print the thing, you get the listing ID. Lowkey the most useful party trick. β¨
π SEE ALSO π
Go look at these too, they're the friends of the group chat:
VM::EC2VM::EC2::Generic
π AUTHOR π
Lance Kinley <lkinley@loyaltymethods.com<gt>.
Copyright (c) 2014 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.
Real talk: that license stuff matters, bestie. Two licenses to pick from, and DISCLAIMER.txt has the warranty disclaimers. Read them, don't just skim. π«Ά
and that's the whole page, you ate it, no crumbs left π β¨
This was VM::EC2...isting(3pm) from perl v5.38.2, dated 2024-08-10. Signing off, mwah. π
π¦ 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