VM::EC2::ProductCode - Object describing an Amazon EC2 product code
Contents
Description
This object represents the code and type of a product code.
Methods
These object methods are supported:
productCode -- the product code
code -- shorter version of the above
type -- the type of product code ('devpay','marketplace')
Name
VM::EC2::ProductCode - Object describing an Amazon EC2 product code
See Also
VM::EC2 VM::EC2::Object VM::EC2::Generic VM::EC2::Instance VM::EC2::Volume
String Overloading
When used in a string context, this object will interpolate the productCode
Synopsis
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;
}
