amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeSpotPriceHistory

Contents

Description

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, 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.

This operation returns paginated results.

Synopsis

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:

  • dsphInstanceTypes - Filters the results by the specified instance types.
  • dsphStartTime - 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 -DD THH :MM :SS Z).
  • dsphFilters - 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 | 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 time stamp of the Spot price history, in UTC format (for example, YYYY -MM -DD THH :MM :SS Z). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
  • dsphNextToken - The token for the next set of results.
  • dsphAvailabilityZone - Filters the results by the specified Availability Zone.
  • dsphEndTime - 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 -DD THH :MM :SS Z).
  • dsphProductDescriptions - Filters the results by the specified basic product descriptions.
  • dsphDryRun - 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 - 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.

data DescribeSpotPriceHistory Source #

Contains the parameters for DescribeSpotPriceHistory.

See: describeSpotPriceHistory smart constructor.

Instances
Eq DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Data DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSpotPriceHistory -> c DescribeSpotPriceHistory #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSpotPriceHistory #

toConstr :: DescribeSpotPriceHistory -> Constr #

dataTypeOf :: DescribeSpotPriceHistory -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSpotPriceHistory) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSpotPriceHistory) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSpotPriceHistory -> DescribeSpotPriceHistory #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSpotPriceHistory -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSpotPriceHistory -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSpotPriceHistory -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSpotPriceHistory -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSpotPriceHistory -> m DescribeSpotPriceHistory #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSpotPriceHistory -> m DescribeSpotPriceHistory #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSpotPriceHistory -> m DescribeSpotPriceHistory #

Read DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Show DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Generic DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Associated Types

type Rep DescribeSpotPriceHistory :: Type -> Type #

Hashable DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

AWSPager DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

AWSRequest DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Associated Types

type Rs DescribeSpotPriceHistory :: Type #

ToHeaders DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

ToPath DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

ToQuery DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

NFData DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

type Rep DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

type Rep DescribeSpotPriceHistory = D1 (MetaData "DescribeSpotPriceHistory" "Network.AWS.EC2.DescribeSpotPriceHistory" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeSpotPriceHistory'" PrefixI True) (((S1 (MetaSel (Just "_dsphInstanceTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceType])) :*: S1 (MetaSel (Just "_dsphStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 (MetaSel (Just "_dsphFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 (MetaSel (Just "_dsphNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_dsphAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsphEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 (MetaSel (Just "_dsphProductDescriptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_dsphDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dsphMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))))
type Rs DescribeSpotPriceHistory Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

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 -DD THH :MM :SS Z).

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, m3.medium ). * 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 time stamp of the Spot price history, in UTC format (for example, YYYY -MM -DD THH :MM :SS Z). 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 -DD THH :MM :SS Z).

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.

Instances
Eq DescribeSpotPriceHistoryResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Data DescribeSpotPriceHistoryResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSpotPriceHistoryResponse -> c DescribeSpotPriceHistoryResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSpotPriceHistoryResponse #

toConstr :: DescribeSpotPriceHistoryResponse -> Constr #

dataTypeOf :: DescribeSpotPriceHistoryResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSpotPriceHistoryResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSpotPriceHistoryResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSpotPriceHistoryResponse -> DescribeSpotPriceHistoryResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSpotPriceHistoryResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSpotPriceHistoryResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSpotPriceHistoryResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSpotPriceHistoryResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSpotPriceHistoryResponse -> m DescribeSpotPriceHistoryResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSpotPriceHistoryResponse -> m DescribeSpotPriceHistoryResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSpotPriceHistoryResponse -> m DescribeSpotPriceHistoryResponse #

Read DescribeSpotPriceHistoryResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Show DescribeSpotPriceHistoryResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Generic DescribeSpotPriceHistoryResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

Associated Types

type Rep DescribeSpotPriceHistoryResponse :: Type -> Type #

NFData DescribeSpotPriceHistoryResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

type Rep DescribeSpotPriceHistoryResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSpotPriceHistory

type Rep DescribeSpotPriceHistoryResponse = D1 (MetaData "DescribeSpotPriceHistoryResponse" "Network.AWS.EC2.DescribeSpotPriceHistory" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeSpotPriceHistoryResponse'" PrefixI True) (S1 (MetaSel (Just "_dsphrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dsphrsSpotPriceHistory") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [SpotPrice])) :*: S1 (MetaSel (Just "_dsphrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dsphrsNextToken :: 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.