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

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

πŸ’– VM::EC2::ReservedInstance::Listing::PriceSchedule πŸ’–

okay so bestie, welcome to the User Contributed Perl Documentation corner of the internet, where we're about to get intimately acquainted with VM::EC2::ReservedInstance::Listing::PriceSchedule (3pm, obviously). it's giving very specific, very niche, and honestly? iconic. ✨


🌸 NAME 🌸

VM::EC2::ReservedInstance::Listing::PriceSchedule β€” bestie, this is the object that describes an Amazon EC2 reserved instance listing price schedule. that's it. that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

here's how you actually use her:

use VM::EC2;

$ec2       = VM::EC2->new(...);
@listings = $ec2->describe_reserved_instances_listings();
for my $l (@listings) {
  foreach ($l->priceSchedules) {
    print $_,"\n";
  }
}

look at that loop. look at it. she's looping, she's printing, she's living her truth. πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

so like, this object represents an Amazon EC2 reserved instance listing price schedule. the fancy technical name for that is PriceScheduleSetItemType, and yes we're saying it with our whole chest. 🫢


✨ METHODS ✨

these object methods are supported, bestie β€” memorize them, they're the main characters:

  • term β€” the number of months remaining in the reservation. tick tock ⏳
  • price β€” the fixed price for the term. your wallet is watching πŸ‘€
  • currencyCode β€” the currency for transacting the Reserved Instance resale. and listen, at this time, the only supported currency is USD. that's it. USD or nothing, no cap. πŸ’΅
  • active β€” the current price schedule, as determined by the term remaining for the Reserved Instance in the listing. she's active, she's current, she's that girl. πŸ‘‘

🌈 STRING OVERLOADING 🌈

when you use this object in a string context, it will interpolate the reservedInstancesListingId. so like, if you just casually drop it into a string, it knows what to do. self-sufficient. lowkey obsessed. πŸ’–


πŸŽ€ SEE ALSO πŸŽ€

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

go read those too, they're part of the family. 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Lance Kinley <lkinley@loyaltymethods.com<gt>. (the <gt> is literally in there, we're not touching it, we respect the source πŸ™ˆ)

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.

fr fr, go read LICENSE and DISCLAIMER.txt β€” the legal girlies worked hard on those and they matter. πŸ’€

and that's the whole page bestie!! πŸ₯³ this was perl v5.38.2, dated 2024-08-10, and honestly? slay. ate. no crumbs. πŸ’…βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from