Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
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.
See: AWS API Reference for DescribeSpotPriceHistory.
This operation returns paginated results.
- describeSpotPriceHistory :: DescribeSpotPriceHistory
- data DescribeSpotPriceHistory
- dsphInstanceTypes :: Lens' DescribeSpotPriceHistory [InstanceType]
- dsphStartTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime)
- dsphFilters :: Lens' DescribeSpotPriceHistory [Filter]
- dsphNextToken :: Lens' DescribeSpotPriceHistory (Maybe Text)
- dsphAvailabilityZone :: Lens' DescribeSpotPriceHistory (Maybe Text)
- dsphEndTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime)
- dsphProductDescriptions :: Lens' DescribeSpotPriceHistory [Text]
- dsphDryRun :: Lens' DescribeSpotPriceHistory (Maybe Bool)
- dsphMaxResults :: Lens' DescribeSpotPriceHistory (Maybe Int)
- describeSpotPriceHistoryResponse :: Int -> DescribeSpotPriceHistoryResponse
- data DescribeSpotPriceHistoryResponse
- dsphrsNextToken :: Lens' DescribeSpotPriceHistoryResponse (Maybe Text)
- dsphrsSpotPriceHistory :: Lens' DescribeSpotPriceHistoryResponse [SpotPrice]
- dsphrsResponseStatus :: Lens' DescribeSpotPriceHistoryResponse Int
Creating a Request
describeSpotPriceHistory :: DescribeSpotPriceHistory Source
Creates a value of DescribeSpotPriceHistory
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeSpotPriceHistory Source
Contains the parameters for DescribeSpotPriceHistory.
See: describeSpotPriceHistory
smart constructor.
Request Lenses
dsphInstanceTypes :: Lens' DescribeSpotPriceHistory [InstanceType] Source
Filters the results by the specified instance types.
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
dsphNextToken :: Lens' DescribeSpotPriceHistory (Maybe Text) Source
The token for the next set of results.
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, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
dsphProductDescriptions :: Lens' DescribeSpotPriceHistory [Text] Source
Filters the results by the specified basic product descriptions.
dsphDryRun :: Lens' DescribeSpotPriceHistory (Maybe Bool) Source
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
.
dsphMaxResults :: Lens' DescribeSpotPriceHistory (Maybe Int) Source
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.
Destructuring the Response
describeSpotPriceHistoryResponse Source
Creates a value of DescribeSpotPriceHistoryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeSpotPriceHistoryResponse Source
Contains the output of DescribeSpotPriceHistory.
See: describeSpotPriceHistoryResponse
smart constructor.
Response Lenses
dsphrsNextToken :: Lens' DescribeSpotPriceHistoryResponse (Maybe Text) Source
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.
dsphrsSpotPriceHistory :: Lens' DescribeSpotPriceHistoryResponse [SpotPrice] Source
The historical Spot prices.
dsphrsResponseStatus :: Lens' DescribeSpotPriceHistoryResponse Int Source
The response status code.