VM::EC...ctCode(3pm)
π VM::EC2::ProductCode β the glow-up edition π
okay so bestie, welcome to the VM::EC2::ProductCode page, part of the User Contributed Perl Documentation collection. this is the whole vibe: an object that describes an Amazon EC2 product code. that's it, that's the job. tiny module, big heart. π
β¨ NAME β¨
VM::EC2::ProductCode β Object describing an Amazon EC2 product code π¦
β¨ SYNOPSIS β¨
the way you just use it:
use VM::EC2;
$ec2 = VM::EC2->new(...);
$volume = $ec2->describe_volumes('vol-123456');
for my $g ($volume->product_codes) {
my $id = $g->productCode;
my $type = $g->type;
}
likeβ¦ look at that. $ec2->new(...) gives you the whole EC2 situation, describe_volumes('vol-123456') goes and gets you a volume by id, and then product_codes hands you back these little ProductCode objects so you can peek at productCode and type. chef's kiss. π
β¨ DESCRIPTION β¨
fr fr: this object represents the code and the type of a product code. that's the entire personality. no notes. π
β¨ METHODS β¨
These object methods are supported (so iconic of them):
productCodeβ the product code β¨codeβ shorter version of the above πtypeβ the type of product code, and the options are'devpay'and'marketplace'πΈ
β¨ STRING OVERLOADING β¨
the moment you use one of these in a string context, it will interpolate the productCode. so it just slides right into your strings like it was always meant to be there. main character energy, honestly. π
β¨ SEE ALSO β¨
go be nosy about its little friend group, iykyk:
VM::EC2VM::EC2::ObjectVM::EC2::GenericVM::EC2::InstanceVM::EC2::Volume
β¨ 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 real talk, that license bit is not optional reading β go actually look at LICENSE and DISCLAIMER.txt, bestie, they said what they said. π
and that's the whole page, periodt. this was perl v5.38.2, dated 2024-08-10, and it lives at VM::EC2::ProductCode(3pm). slay, go read your volumes. π«Άπβ
π¦ 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