Safe Haskell | None |
---|---|
Language | Haskell2010 |
Describes the Spot Price history. The prices returned are listed in chronological order, from the oldest to the most recent, for up to the past 90 days. For more information, see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide.
When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.
- data DescribeSpotPriceHistory
- describeSpotPriceHistory :: DescribeSpotPriceHistory
- dsphAvailabilityZone :: Lens' DescribeSpotPriceHistory (Maybe Text)
- dsphDryRun :: Lens' DescribeSpotPriceHistory (Maybe Bool)
- dsphEndTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime)
- dsphFilters :: Lens' DescribeSpotPriceHistory [Filter]
- dsphInstanceTypes :: Lens' DescribeSpotPriceHistory [InstanceType]
- dsphMaxResults :: Lens' DescribeSpotPriceHistory (Maybe Int)
- dsphNextToken :: Lens' DescribeSpotPriceHistory (Maybe Text)
- dsphProductDescriptions :: Lens' DescribeSpotPriceHistory [Text]
- dsphStartTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime)
- data DescribeSpotPriceHistoryResponse
- describeSpotPriceHistoryResponse :: DescribeSpotPriceHistoryResponse
- dsphrNextToken :: Lens' DescribeSpotPriceHistoryResponse (Maybe Text)
- dsphrSpotPriceHistory :: Lens' DescribeSpotPriceHistoryResponse [SpotPrice]
Request
data DescribeSpotPriceHistory Source
Request constructor
describeSpotPriceHistory :: DescribeSpotPriceHistory Source
DescribeSpotPriceHistory
constructor.
The fields accessible through corresponding lenses are:
Request lenses
dsphAvailabilityZone :: Lens' DescribeSpotPriceHistory (Maybe Text) Source
Filters the results by the specified Availability Zone.
dsphEndTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime) Source
The date and time, up to the current date, from which to stop retrieving the price history data.
dsphFilters :: Lens' DescribeSpotPriceHistory [Filter] Source
One or more filters.
'availability-zone' - The Availability Zone for which prices should be returned.
'instance-type' - The type of instance (for example, 'm1.small').
'product-description' - The product description for the Spot Price ('Linux/UNIX' | 'SUSE Linux' | Windows
| 'Linux/UNIX (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 timestamp of the Spot Price history (for example,
2010-08-16T05:06:11.000Z). You can use wildcards (* and ?). Greater than or
less than comparison is not supported.
dsphInstanceTypes :: Lens' DescribeSpotPriceHistory [InstanceType] Source
Filters the results by the specified instance types.
dsphMaxResults :: Lens' DescribeSpotPriceHistory (Maybe Int) Source
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
dsphNextToken :: Lens' DescribeSpotPriceHistory (Maybe Text) Source
The token for the next set of items. (You received this token from a prior call.)
dsphProductDescriptions :: Lens' DescribeSpotPriceHistory [Text] Source
Filters the results by the specified basic product descriptions.
dsphStartTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime) Source
The date and time, up to the past 90 days, from which to start retrieving the price history data.
Response
Response constructor
describeSpotPriceHistoryResponse :: DescribeSpotPriceHistoryResponse Source
DescribeSpotPriceHistoryResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
dsphrNextToken :: Lens' DescribeSpotPriceHistoryResponse (Maybe Text) Source
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
dsphrSpotPriceHistory :: Lens' DescribeSpotPriceHistoryResponse [SpotPrice] Source
The historical Spot Prices.