1VM::EC2::ReservedInstanUcsee:r:OCfofnetrriinbgu(t3e)d PeVrMl::DEoCc2u:m:eRnetsaetrivoendInstance::Offering(3)
2
3
4

NAME

6       VM::EC2::ReservedInstance::Offering - Object describing an Amazon EC2
7       reserved instance offering
8

SYNOPSIS

10         use VM::EC2;
11
12         $ec2       = VM::EC2->new(...);
13         @offerings = $ec2->describe_reserved_instances_offerings();
14         for my $o (@offerings) {
15           print $o->reservedInstancesOfferingId,"\n";
16           print $o->instanceType,"\n";
17           print $o->availabilityZone,"\n";
18           print $o->duration,"\n";
19           print $o->fixedPrice,"\n";
20           print $o->usagePrice,"\n";
21           print $o->productDescription,"\n";
22           print $o->instanceTenancy,"\n";
23           print $o->currencyCode,"\n";
24         }
25
26        # purchase the first one
27        $offerings[0]->purchase() && print "offer purchased\n";
28

DESCRIPTION

30       This object represents an Amazon EC2 reserved instance offering, as
31       returned by VM::EC2->describe_reserved_instances_offerings.
32

METHODS

34       These object methods are supported:
35
36        reservedInstancesOfferingId -- ID of this offer
37
38        instanceType                -- The instance type on which this reserved
39                                        instance can be used.
40
41        availabilityZone            -- The availability zone in which this reserved
42                                        instance can be used.
43
44        duration                    -- The duration of the reserved instance contract, in seconds.
45
46        fixedPrice                  -- The purchase price of the reserved instance for the indicated
47                                        version.
48
49        usagePrice                  -- The usage price of the reserved instance, per hour.
50
51        productDescription          -- The reserved instance description. One of  "Linux/UNIX",
52                                        "Linux/UNIX (Amazon VPC)", "Windows", and "Windows (Amazon
53                                          VPC)"
54
55        instanceTenancy             -- The tenancy of the reserved instance (VPC only).
56
57        currencyCode                -- The currency of the reserved instance offering prices.
58
59       In addition, this object supports the purchase() method:
60
61   $boolean = $offering->purchase($count)
62       Purchases the offering and returns true on success. The optional $count
63       argument specifies the number of reserved instances to purchase
64       (default 1).
65

STRING OVERLOADING

67       When used in a string context, this object will interpolate the
68       reservedInstancesOfferingId.
69

SEE ALSO

71       VM::EC2 VM::EC2::Generic
72

AUTHOR

74       Lincoln Stein <lincoln.stein@gmail.com>.
75
76       Copyright (c) 2011 Ontario Institute for Cancer Research
77
78       This package and its accompanying libraries is free software; you can
79       redistribute it and/or modify it under the terms of the GPL (either
80       version 1, or at your option, any later version) or the Artistic
81       License 2.0.  Refer to LICENSE for the full license text. In addition,
82       please see DISCLAIMER.txt for disclaimers of warranty.
83
84
85
86perl v5.34.0                      2021-07V-M2:7:EC2::ReservedInstance::Offering(3)
Impressum