Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide for Linux Instances.
When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.
This operation returns paginated results.
Synopsis
- data DescribeSpotPriceHistory = DescribeSpotPriceHistory' {}
- newDescribeSpotPriceHistory :: DescribeSpotPriceHistory
- describeSpotPriceHistory_availabilityZone :: Lens' DescribeSpotPriceHistory (Maybe Text)
- describeSpotPriceHistory_dryRun :: Lens' DescribeSpotPriceHistory (Maybe Bool)
- describeSpotPriceHistory_endTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime)
- describeSpotPriceHistory_filters :: Lens' DescribeSpotPriceHistory (Maybe [Filter])
- describeSpotPriceHistory_instanceTypes :: Lens' DescribeSpotPriceHistory (Maybe [InstanceType])
- describeSpotPriceHistory_maxResults :: Lens' DescribeSpotPriceHistory (Maybe Int)
- describeSpotPriceHistory_nextToken :: Lens' DescribeSpotPriceHistory (Maybe Text)
- describeSpotPriceHistory_productDescriptions :: Lens' DescribeSpotPriceHistory (Maybe [Text])
- describeSpotPriceHistory_startTime :: Lens' DescribeSpotPriceHistory (Maybe UTCTime)
- data DescribeSpotPriceHistoryResponse = DescribeSpotPriceHistoryResponse' {
- nextToken :: Maybe Text
- spotPriceHistory :: Maybe [SpotPrice]
- httpStatus :: Int
- newDescribeSpotPriceHistoryResponse :: Int -> DescribeSpotPriceHistoryResponse
- describeSpotPriceHistoryResponse_nextToken :: Lens' DescribeSpotPriceHistoryResponse (Maybe Text)
- describeSpotPriceHistoryResponse_spotPriceHistory :: Lens' DescribeSpotPriceHistoryResponse (Maybe [SpotPrice])
- describeSpotPriceHistoryResponse_httpStatus :: Lens' DescribeSpotPriceHistoryResponse Int
Creating a Request
data DescribeSpotPriceHistory Source #
Contains the parameters for DescribeSpotPriceHistory.
See: newDescribeSpotPriceHistory
smart constructor.
DescribeSpotPriceHistory' | |
|
Instances
newDescribeSpotPriceHistory :: DescribeSpotPriceHistory Source #
Create a value of DescribeSpotPriceHistory
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeSpotPriceHistory
, describeSpotPriceHistory_availabilityZone
- Filters the results by the specified Availability Zone.
$sel:dryRun:DescribeSpotPriceHistory'
, describeSpotPriceHistory_dryRun
- 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
.
DescribeSpotPriceHistory
, describeSpotPriceHistory_endTime
- 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).
$sel:filters:DescribeSpotPriceHistory'
, describeSpotPriceHistory_filters
- 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.
DescribeSpotPriceHistory
, describeSpotPriceHistory_instanceTypes
- Filters the results by the specified instance types.
$sel:maxResults:DescribeSpotPriceHistory'
, describeSpotPriceHistory_maxResults
- 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.
DescribeSpotPriceHistory
, describeSpotPriceHistory_nextToken
- The token for the next set of results.
$sel:productDescriptions:DescribeSpotPriceHistory'
, describeSpotPriceHistory_productDescriptions
- Filters the results by the specified basic product descriptions.
DescribeSpotPriceHistory
, describeSpotPriceHistory_startTime
- 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).
Request Lenses
describeSpotPriceHistory_availabilityZone :: Lens' DescribeSpotPriceHistory (Maybe Text) Source #
Filters the results by the specified Availability Zone.
describeSpotPriceHistory_dryRun :: 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
.
describeSpotPriceHistory_endTime :: 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).
describeSpotPriceHistory_filters :: Lens' DescribeSpotPriceHistory (Maybe [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,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.
describeSpotPriceHistory_instanceTypes :: Lens' DescribeSpotPriceHistory (Maybe [InstanceType]) Source #
Filters the results by the specified instance types.
describeSpotPriceHistory_maxResults :: 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.
describeSpotPriceHistory_nextToken :: Lens' DescribeSpotPriceHistory (Maybe Text) Source #
The token for the next set of results.
describeSpotPriceHistory_productDescriptions :: Lens' DescribeSpotPriceHistory (Maybe [Text]) Source #
Filters the results by the specified basic product descriptions.
describeSpotPriceHistory_startTime :: 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).
Destructuring the Response
data DescribeSpotPriceHistoryResponse Source #
Contains the output of DescribeSpotPriceHistory.
See: newDescribeSpotPriceHistoryResponse
smart constructor.
DescribeSpotPriceHistoryResponse' | |
|
Instances
newDescribeSpotPriceHistoryResponse Source #
Create a value of DescribeSpotPriceHistoryResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeSpotPriceHistory
, describeSpotPriceHistoryResponse_nextToken
- The token required to retrieve the next set of results. This value is
null or an empty string when there are no more results to return.
$sel:spotPriceHistory:DescribeSpotPriceHistoryResponse'
, describeSpotPriceHistoryResponse_spotPriceHistory
- The historical Spot prices.
$sel:httpStatus:DescribeSpotPriceHistoryResponse'
, describeSpotPriceHistoryResponse_httpStatus
- The response's http status code.
Response Lenses
describeSpotPriceHistoryResponse_nextToken :: Lens' DescribeSpotPriceHistoryResponse (Maybe Text) Source #
The token required to retrieve the next set of results. This value is null or an empty string when there are no more results to return.
describeSpotPriceHistoryResponse_spotPriceHistory :: Lens' DescribeSpotPriceHistoryResponse (Maybe [SpotPrice]) Source #
The historical Spot prices.
describeSpotPriceHistoryResponse_httpStatus :: Lens' DescribeSpotPriceHistoryResponse Int Source #
The response's http status code.