« blib/lib/Paws/EC2/DescribeSpotInstanceRequestsResult.pm
↑ Summary
blib/lib/Paws/EC2/DescribeSpotPriceHistoryResult.pm »
| 1 | |||
| 2 | package Paws::EC2::DescribeSpotPriceHistory; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has AvailabilityZone => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZone' ); | |
| 5 | 1 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | |
| 6 | 1 | has EndTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'endTime' ); | |
| 7 | 1 | has Filters => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]', traits => ['NameInRequest'], request_name => 'Filter' ); | |
| 8 | 1 | has InstanceTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'InstanceType' ); | |
| 9 | 1 | has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' ); | |
| 10 | 1 | has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' ); | |
| 11 | 1 | has ProductDescriptions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'ProductDescription' ); | |
| 12 | 1 | has StartTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'startTime' ); | |
| 13 | |||
| 14 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeSpotPriceHistory'); | |
| 17 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeSpotPriceHistoryResult'); | |
| 18 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 19 | 1 | 1; | |
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::EC2::DescribeSpotPriceHistory - Arguments for method DescribeSpotPriceHistory on L<Paws::EC2> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method DescribeSpotPriceHistory on the | ||
| 30 | L<Amazon Elastic Compute Cloud|Paws::EC2> 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 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $ec2 = Paws->service('EC2'); | ||
| 38 | # To describe Spot price history for Linux/UNIX (Amazon VPC) | ||
| 39 | # This example returns the Spot Price history for m1.xlarge, Linux/UNIX (Amazon | ||
| 40 | # VPC) instances for a particular day in January. | ||
| 41 | my $DescribeSpotPriceHistoryResult = $ec2->DescribeSpotPriceHistory( | ||
| 42 | 'EndTime' => '2014-01-06T08:09:10', | ||
| 43 | 'InstanceTypes' => ['m1.xlarge'], | ||
| 44 | 'ProductDescriptions' => ['Linux/UNIX (Amazon VPC)'], | ||
| 45 | 'StartTime' => '2014-01-06T07:08:09' | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $SpotPriceHistory = $DescribeSpotPriceHistoryResult->SpotPriceHistory; | ||
| 50 | |||
| 51 | # Returns a L<Paws::EC2::DescribeSpotPriceHistoryResult> object. | ||
| 52 | |||
| 53 | 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. | ||
| 54 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/DescribeSpotPriceHistory> | ||
| 55 | |||
| 56 | =head1 ATTRIBUTES | ||
| 57 | |||
| 58 | |||
| 59 | =head2 AvailabilityZone => Str | ||
| 60 | |||
| 61 | Filters the results by the specified Availability Zone. | ||
| 62 | |||
| 63 | |||
| 64 | |||
| 65 | =head2 DryRun => Bool | ||
| 66 | |||
| 67 | Checks whether you have the required permissions for the action, | ||
| 68 | without actually making the request, and provides an error response. If | ||
| 69 | you have the required permissions, the error response is | ||
| 70 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 EndTime => Str | ||
| 75 | |||
| 76 | The date and time, up to the current date, from which to stop | ||
| 77 | retrieving the price history data, in UTC format (for example, | ||
| 78 | I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 Filters => ArrayRef[L<Paws::EC2::Filter>] | ||
| 83 | |||
| 84 | One or more filters. | ||
| 85 | |||
| 86 | =over | ||
| 87 | |||
| 88 | =item * | ||
| 89 | |||
| 90 | C<availability-zone> - The Availability Zone for which prices should be | ||
| 91 | returned. | ||
| 92 | |||
| 93 | =item * | ||
| 94 | |||
| 95 | C<instance-type> - The type of instance (for example, C<m3.medium>). | ||
| 96 | |||
| 97 | =item * | ||
| 98 | |||
| 99 | C<product-description> - The product description for the Spot price | ||
| 100 | (C<Linux/UNIX> | C<Red Hat Enterprise Linux> | C<SUSE Linux> | | ||
| 101 | C<Windows> | C<Linux/UNIX (Amazon VPC)> | C<Red Hat Enterprise Linux | ||
| 102 | (Amazon VPC)> | C<SUSE Linux (Amazon VPC)> | C<Windows (Amazon VPC)>). | ||
| 103 | |||
| 104 | =item * | ||
| 105 | |||
| 106 | C<spot-price> - The Spot price. The value must match exactly (or use | ||
| 107 | wildcards; greater than or less than comparison is not supported). | ||
| 108 | |||
| 109 | =item * | ||
| 110 | |||
| 111 | C<timestamp> - The time stamp of the Spot price history, in UTC format | ||
| 112 | (for example, I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). You can use | ||
| 113 | wildcards (* and ?). Greater than or less than comparison is not | ||
| 114 | supported. | ||
| 115 | |||
| 116 | =back | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head2 InstanceTypes => ArrayRef[Str|Undef] | ||
| 122 | |||
| 123 | Filters the results by the specified instance types. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head2 MaxResults => Int | ||
| 128 | |||
| 129 | The maximum number of results to return in a single call. Specify a | ||
| 130 | value between 1 and 1000. The default value is 1000. To retrieve the | ||
| 131 | remaining results, make another call with the returned C<NextToken> | ||
| 132 | value. | ||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | =head2 NextToken => Str | ||
| 137 | |||
| 138 | The token for the next set of results. | ||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | =head2 ProductDescriptions => ArrayRef[Str|Undef] | ||
| 143 | |||
| 144 | Filters the results by the specified basic product descriptions. | ||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | =head2 StartTime => Str | ||
| 149 | |||
| 150 | The date and time, up to the past 90 days, from which to start | ||
| 151 | retrieving the price history data, in UTC format (for example, | ||
| 152 | I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). | ||
| 153 | |||
| 154 | |||
| 155 | |||
| 156 | |||
| 157 | =head1 SEE ALSO | ||
| 158 | |||
| 159 | This class forms part of L<Paws>, documenting arguments for method DescribeSpotPriceHistory in L<Paws::EC2> | ||
| 160 | |||
| 161 | =head1 BUGS and CONTRIBUTIONS | ||
| 162 | |||
| 163 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 164 | |||
| 165 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 166 | |||
| 167 | =cut | ||
| 168 | |||