| Copyright | © 2017 All rights reserved. |
|---|---|
| License | GPL-3 |
| Maintainer | Evan Cofsky <evan@theunixman.com> |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Machines.SpotPrices
Description
- type SpotPriceSourceT m = AWSSourceT m SpotPrice
- type SpotPriceProcess b = Process SpotPrice b
- newtype Dollars = Dollars {}
- data PricePoint = PricePoint {
- _ppTime :: Time
- _ppInstanceType :: InstanceType
- _ppZone :: Text
- _ppDollars :: Dollars
- ppZone :: Lens' PricePoint Text
- ppTime :: Lens' PricePoint Time
- ppInstanceType :: Lens' PricePoint InstanceType
- ppDollars :: Lens' PricePoint Dollars
- pricePoint :: SpotPrice -> Maybe PricePoint
- spotPriceHistory :: [RequestMod DescribeSpotPriceHistory] -> SpotPriceSourceT m
- pricePoints :: SpotPriceProcess PricePoint
Documentation
type SpotPriceSourceT m = AWSSourceT m SpotPrice Source #
An AWSSourceT for SpotPrices.
type SpotPriceProcess b = Process SpotPrice b Source #
A Process for transducing SpotPrices to something else.
A Num instance for representing US Dollars.
data PricePoint Source #
The hourly spot price at a specific Time, InstanceType, and
Zone.
Constructors
| PricePoint | |
Fields
| |
Instances
| Eq PricePoint Source # | |
| Ord PricePoint Source # | |
| Show PricePoint Source # | |
| Printable PricePoint Source # | |
ppZone :: Lens' PricePoint Text Source #
ppTime :: Lens' PricePoint Time Source #
ppInstanceType :: Lens' PricePoint InstanceType Source #
ppDollars :: Lens' PricePoint Dollars Source #
pricePoint :: SpotPrice -> Maybe PricePoint Source #
Arguments
| :: [RequestMod DescribeSpotPriceHistory] | |
| -> SpotPriceSourceT m | The spot price history |
Streams the historic spot price history for a region.