File Coverage

blib/lib/Paws/EC2/DescribeSpotPriceHistory.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::DescribeSpotPriceHistory;
3 1     1   668 use Moose;
  1     1   4  
  1         11  
  1         462  
  1         3  
  1         7  
4             has AvailabilityZone => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZone' );
5             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6             has EndTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'endTime' );
7             has Filters => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]', traits => ['NameInRequest'], request_name => 'Filter' );
8             has InstanceTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'InstanceType' );
9             has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' );
10             has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
11             has ProductDescriptions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'ProductDescription' );
12             has StartTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'startTime' );
13              
14 1     1   11176 use MooseX::ClassAttribute;
  1     1   5  
  1         14  
  1         5856  
  1         3  
  1         8  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeSpotPriceHistory');
17             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeSpotPriceHistoryResult');
18             class_has _result_key => (isa => 'Str', is => 'ro');
19             1;
20              
21             ### main pod documentation begin ###
22              
23             =head1 NAME
24              
25             Paws::EC2::DescribeSpotPriceHistory - Arguments for method DescribeSpotPriceHistory on Paws::EC2
26              
27             =head1 DESCRIPTION
28              
29             This class represents the parameters used for calling the method DescribeSpotPriceHistory on the
30             Amazon Elastic Compute Cloud service. Use the attributes of this class
31             as arguments to method DescribeSpotPriceHistory.
32              
33             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeSpotPriceHistory.
34              
35             As an example:
36              
37             $service_obj->DescribeSpotPriceHistory(Att1 => $value1, Att2 => $value2, ...);
38              
39             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 AvailabilityZone => Str
45              
46             Filters the results by the specified Availability Zone.
47              
48              
49              
50             =head2 DryRun => Bool
51              
52             Checks whether you have the required permissions for the action,
53             without actually making the request, and provides an error response. If
54             you have the required permissions, the error response is
55             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
56              
57              
58              
59             =head2 EndTime => Str
60              
61             The date and time, up to the current date, from which to stop
62             retrieving the price history data, in UTC format (for example,
63             I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z).
64              
65              
66              
67             =head2 Filters => ArrayRef[L<Paws::EC2::Filter>]
68              
69             One or more filters.
70              
71             =over
72              
73             =item *
74              
75             C<availability-zone> - The Availability Zone for which prices should be
76             returned.
77              
78             =item *
79              
80             C<instance-type> - The type of instance (for example, C<m3.medium>).
81              
82             =item *
83              
84             C<product-description> - The product description for the Spot price
85             (C<Linux/UNIX> | C<SUSE Linux> | C<Windows> | C<Linux/UNIX (Amazon
86             VPC)> | C<SUSE Linux (Amazon VPC)> | C<Windows (Amazon VPC)>).
87              
88             =item *
89              
90             C<spot-price> - The Spot price. The value must match exactly (or use
91             wildcards; greater than or less than comparison is not supported).
92              
93             =item *
94              
95             C<timestamp> - The timestamp of the Spot price history, in UTC format
96             (for example, I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). You can use
97             wildcards (* and ?). Greater than or less than comparison is not
98             supported.
99              
100             =back
101              
102              
103              
104              
105             =head2 InstanceTypes => ArrayRef[Str|Undef]
106              
107             Filters the results by the specified instance types. Note that T2 and
108             HS1 instance types are not supported.
109              
110              
111              
112             =head2 MaxResults => Int
113              
114             The maximum number of results to return in a single call. Specify a
115             value between 1 and 1000. The default value is 1000. To retrieve the
116             remaining results, make another call with the returned C<NextToken>
117             value.
118              
119              
120              
121             =head2 NextToken => Str
122              
123             The token for the next set of results.
124              
125              
126              
127             =head2 ProductDescriptions => ArrayRef[Str|Undef]
128              
129             Filters the results by the specified basic product descriptions.
130              
131              
132              
133             =head2 StartTime => Str
134              
135             The date and time, up to the past 90 days, from which to start
136             retrieving the price history data, in UTC format (for example,
137             I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z).
138              
139              
140              
141              
142             =head1 SEE ALSO
143              
144             This class forms part of L<Paws>, documenting arguments for method DescribeSpotPriceHistory in L<Paws::EC2>
145              
146             =head1 BUGS and CONTRIBUTIONS
147              
148             The source code is located here: https://github.com/pplu/aws-sdk-perl
149              
150             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
151              
152             =cut
153