NAME

Paws::EC2::DescribeSpotPriceHistory - Arguments for method DescribeSpotPriceHistory on Paws::EC2

DESCRIPTION

This class represents the parameters used for calling the method DescribeSpotPriceHistory on the Amazon Elastic Compute Cloud service. Use the attributes of this class as arguments to method DescribeSpotPriceHistory.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeSpotPriceHistory.

SYNOPSIS

   my $ec2 = Paws->service('EC2');
# To describe Spot price history for Linux/UNIX (Amazon VPC)
# This example returns the Spot Price history for m1.xlarge, Linux/UNIX (Amazon
# VPC) instances for a particular day in January.
   my $DescribeSpotPriceHistoryResult = $ec2->DescribeSpotPriceHistory(
     'EndTime'             => '2014-01-06T08:09:10',
     'InstanceTypes'       => ['m1.xlarge'],
     'ProductDescriptions' => ['Linux/UNIX (Amazon VPC)'],
     'StartTime'           => '2014-01-06T07:08:09'
   );

   # Results:
   my $SpotPriceHistory = $DescribeSpotPriceHistoryResult->SpotPriceHistory;

   # Returns a L<Paws::EC2::DescribeSpotPriceHistoryResult> object.

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. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/ec2/DescribeSpotPriceHistory

ATTRIBUTES

AvailabilityZone => Str

Filters the results by the specified Availability Zone.

DryRun => Bool

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

EndTime => Str

The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

Filters => ArrayRef[Paws::EC2::Filter]

One or more filters.

  • availability-zone - The Availability Zone for which prices should be returned.

  • instance-type - The type of instance (for example, m3.medium).

  • product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

  • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

  • timestamp - The time stamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

InstanceTypes => ArrayRef[Str|Undef]

Filters the results by the specified instance types.

MaxResults => Int

The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

NextToken => Str

The token for the next set of results.

ProductDescriptions => ArrayRef[Str|Undef]

Filters the results by the specified basic product descriptions.

StartTime => Str

The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

SEE ALSO

This class forms part of Paws, documenting arguments for method DescribeSpotPriceHistory in Paws::EC2

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues