1VM::EC2::Spot::PriceHisUtsoerry(C3o)ntributed Perl DocumVeMn:t:aEtCi2o:n:Spot::PriceHistory(3)
2
3
4

NAME

6       VM::EC2::Spot::PriceHistory - Object describing an Amazon EC2 spot
7       instance price history record
8

SYNOPSIS

10         use VM::EC2;
11
12         $ec2     = VM::EC2->new(...);
13
14         my @history = $ec2->describe_spot_price_history(-start_time => '2011-09-01T00:00:00',
15                                                         -end_time   => '2011-09-05T00:00:00',
16                                                         -availability_zone => 'us-east-1a',
17                                                         -instance_type   => 'm1.small',
18                                                         -filter     => {'product-description'=>'*Linux*'},
19                                                       } or die $ec2->error_str;
20         for my $h (@history) {
21           print join("\t",$h->timestamp,
22                           $h->spot_price,
23                           $h->instanceType,
24                           $h->productDescription,
25                           $h->availability_zone),"\n";
26         }
27

DESCRIPTION

29       This object represents an Amazon EC2 spot instance price history
30       record, and is returned by VM::EC2->describe_spot_price_history().
31

METHODS

33       These object methods are supported:
34
35        instanceType         -- Instance type, e.g. 'm1.small'
36        productDescription   -- Product description, e.g. "windows"
37        spotPrice            -- Price, in dollars per run-hour.
38        timestamp            -- Timestamp of data point, in format yyyy-mm-ddThh:mm:ss.000Z
39        availabilityZone     -- Availability zone of spot instance.
40

SEE ALSO

42       VM::EC2 VM::EC2::Generic
43

AUTHOR

45       Lincoln Stein <lincoln.stein@gmail.com>.
46
47       Copyright (c) 2011 Ontario Institute for Cancer Research
48
49       This package and its accompanying libraries is free software; you can
50       redistribute it and/or modify it under the terms of the GPL (either
51       version 1, or at your option, any later version) or the Artistic
52       License 2.0.  Refer to LICENSE for the full license text. In addition,
53       please see DISCLAIMER.txt for disclaimers of warranty.
54
55
56
57perl v5.36.0                      2023-01-20    VM::EC2::Spot::PriceHistory(3)
Impressum