{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EMR.Types.OnDemandProvisioningAllocationStrategy
( OnDemandProvisioningAllocationStrategy
( ..,
OnDemandProvisioningAllocationStrategy_Lowest_price
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype OnDemandProvisioningAllocationStrategy = OnDemandProvisioningAllocationStrategy'
{ OnDemandProvisioningAllocationStrategy -> Text
fromOnDemandProvisioningAllocationStrategy ::
Core.Text
}
deriving stock
( Int -> OnDemandProvisioningAllocationStrategy -> ShowS
[OnDemandProvisioningAllocationStrategy] -> ShowS
OnDemandProvisioningAllocationStrategy -> String
(Int -> OnDemandProvisioningAllocationStrategy -> ShowS)
-> (OnDemandProvisioningAllocationStrategy -> String)
-> ([OnDemandProvisioningAllocationStrategy] -> ShowS)
-> Show OnDemandProvisioningAllocationStrategy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OnDemandProvisioningAllocationStrategy] -> ShowS
$cshowList :: [OnDemandProvisioningAllocationStrategy] -> ShowS
show :: OnDemandProvisioningAllocationStrategy -> String
$cshow :: OnDemandProvisioningAllocationStrategy -> String
showsPrec :: Int -> OnDemandProvisioningAllocationStrategy -> ShowS
$cshowsPrec :: Int -> OnDemandProvisioningAllocationStrategy -> ShowS
Prelude.Show,
ReadPrec [OnDemandProvisioningAllocationStrategy]
ReadPrec OnDemandProvisioningAllocationStrategy
Int -> ReadS OnDemandProvisioningAllocationStrategy
ReadS [OnDemandProvisioningAllocationStrategy]
(Int -> ReadS OnDemandProvisioningAllocationStrategy)
-> ReadS [OnDemandProvisioningAllocationStrategy]
-> ReadPrec OnDemandProvisioningAllocationStrategy
-> ReadPrec [OnDemandProvisioningAllocationStrategy]
-> Read OnDemandProvisioningAllocationStrategy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OnDemandProvisioningAllocationStrategy]
$creadListPrec :: ReadPrec [OnDemandProvisioningAllocationStrategy]
readPrec :: ReadPrec OnDemandProvisioningAllocationStrategy
$creadPrec :: ReadPrec OnDemandProvisioningAllocationStrategy
readList :: ReadS [OnDemandProvisioningAllocationStrategy]
$creadList :: ReadS [OnDemandProvisioningAllocationStrategy]
readsPrec :: Int -> ReadS OnDemandProvisioningAllocationStrategy
$creadsPrec :: Int -> ReadS OnDemandProvisioningAllocationStrategy
Prelude.Read,
OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
(OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool)
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool)
-> Eq OnDemandProvisioningAllocationStrategy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
$c/= :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
== :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
$c== :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
Prelude.Eq,
Eq OnDemandProvisioningAllocationStrategy
Eq OnDemandProvisioningAllocationStrategy
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Ordering)
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool)
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool)
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool)
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool)
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy)
-> (OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy)
-> Ord OnDemandProvisioningAllocationStrategy
OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Ordering
OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
$cmin :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
max :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
$cmax :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy
>= :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
$c>= :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
> :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
$c> :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
<= :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
$c<= :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
< :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
$c< :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Bool
compare :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Ordering
$ccompare :: OnDemandProvisioningAllocationStrategy
-> OnDemandProvisioningAllocationStrategy -> Ordering
$cp1Ord :: Eq OnDemandProvisioningAllocationStrategy
Prelude.Ord,
(forall x.
OnDemandProvisioningAllocationStrategy
-> Rep OnDemandProvisioningAllocationStrategy x)
-> (forall x.
Rep OnDemandProvisioningAllocationStrategy x
-> OnDemandProvisioningAllocationStrategy)
-> Generic OnDemandProvisioningAllocationStrategy
forall x.
Rep OnDemandProvisioningAllocationStrategy x
-> OnDemandProvisioningAllocationStrategy
forall x.
OnDemandProvisioningAllocationStrategy
-> Rep OnDemandProvisioningAllocationStrategy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OnDemandProvisioningAllocationStrategy x
-> OnDemandProvisioningAllocationStrategy
$cfrom :: forall x.
OnDemandProvisioningAllocationStrategy
-> Rep OnDemandProvisioningAllocationStrategy x
Prelude.Generic
)
deriving newtype
( Int -> OnDemandProvisioningAllocationStrategy -> Int
OnDemandProvisioningAllocationStrategy -> Int
(Int -> OnDemandProvisioningAllocationStrategy -> Int)
-> (OnDemandProvisioningAllocationStrategy -> Int)
-> Hashable OnDemandProvisioningAllocationStrategy
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OnDemandProvisioningAllocationStrategy -> Int
$chash :: OnDemandProvisioningAllocationStrategy -> Int
hashWithSalt :: Int -> OnDemandProvisioningAllocationStrategy -> Int
$chashWithSalt :: Int -> OnDemandProvisioningAllocationStrategy -> Int
Prelude.Hashable,
OnDemandProvisioningAllocationStrategy -> ()
(OnDemandProvisioningAllocationStrategy -> ())
-> NFData OnDemandProvisioningAllocationStrategy
forall a. (a -> ()) -> NFData a
rnf :: OnDemandProvisioningAllocationStrategy -> ()
$crnf :: OnDemandProvisioningAllocationStrategy -> ()
Prelude.NFData,
Text -> Either String OnDemandProvisioningAllocationStrategy
(Text -> Either String OnDemandProvisioningAllocationStrategy)
-> FromText OnDemandProvisioningAllocationStrategy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OnDemandProvisioningAllocationStrategy
$cfromText :: Text -> Either String OnDemandProvisioningAllocationStrategy
Core.FromText,
OnDemandProvisioningAllocationStrategy -> Text
(OnDemandProvisioningAllocationStrategy -> Text)
-> ToText OnDemandProvisioningAllocationStrategy
forall a. (a -> Text) -> ToText a
toText :: OnDemandProvisioningAllocationStrategy -> Text
$ctoText :: OnDemandProvisioningAllocationStrategy -> Text
Core.ToText,
OnDemandProvisioningAllocationStrategy -> ByteString
(OnDemandProvisioningAllocationStrategy -> ByteString)
-> ToByteString OnDemandProvisioningAllocationStrategy
forall a. (a -> ByteString) -> ToByteString a
toBS :: OnDemandProvisioningAllocationStrategy -> ByteString
$ctoBS :: OnDemandProvisioningAllocationStrategy -> ByteString
Core.ToByteString,
OnDemandProvisioningAllocationStrategy -> ByteStringBuilder
(OnDemandProvisioningAllocationStrategy -> ByteStringBuilder)
-> ToLog OnDemandProvisioningAllocationStrategy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OnDemandProvisioningAllocationStrategy -> ByteStringBuilder
$cbuild :: OnDemandProvisioningAllocationStrategy -> ByteStringBuilder
Core.ToLog,
HeaderName -> OnDemandProvisioningAllocationStrategy -> [Header]
(HeaderName -> OnDemandProvisioningAllocationStrategy -> [Header])
-> ToHeader OnDemandProvisioningAllocationStrategy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OnDemandProvisioningAllocationStrategy -> [Header]
$ctoHeader :: HeaderName -> OnDemandProvisioningAllocationStrategy -> [Header]
Core.ToHeader,
OnDemandProvisioningAllocationStrategy -> QueryString
(OnDemandProvisioningAllocationStrategy -> QueryString)
-> ToQuery OnDemandProvisioningAllocationStrategy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OnDemandProvisioningAllocationStrategy -> QueryString
$ctoQuery :: OnDemandProvisioningAllocationStrategy -> QueryString
Core.ToQuery,
Value -> Parser [OnDemandProvisioningAllocationStrategy]
Value -> Parser OnDemandProvisioningAllocationStrategy
(Value -> Parser OnDemandProvisioningAllocationStrategy)
-> (Value -> Parser [OnDemandProvisioningAllocationStrategy])
-> FromJSON OnDemandProvisioningAllocationStrategy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OnDemandProvisioningAllocationStrategy]
$cparseJSONList :: Value -> Parser [OnDemandProvisioningAllocationStrategy]
parseJSON :: Value -> Parser OnDemandProvisioningAllocationStrategy
$cparseJSON :: Value -> Parser OnDemandProvisioningAllocationStrategy
Core.FromJSON,
FromJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
FromJSONKeyFunction OnDemandProvisioningAllocationStrategy
FromJSONKeyFunction OnDemandProvisioningAllocationStrategy
-> FromJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
-> FromJSONKey OnDemandProvisioningAllocationStrategy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
$cfromJSONKeyList :: FromJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
fromJSONKey :: FromJSONKeyFunction OnDemandProvisioningAllocationStrategy
$cfromJSONKey :: FromJSONKeyFunction OnDemandProvisioningAllocationStrategy
Core.FromJSONKey,
[OnDemandProvisioningAllocationStrategy] -> Encoding
[OnDemandProvisioningAllocationStrategy] -> Value
OnDemandProvisioningAllocationStrategy -> Encoding
OnDemandProvisioningAllocationStrategy -> Value
(OnDemandProvisioningAllocationStrategy -> Value)
-> (OnDemandProvisioningAllocationStrategy -> Encoding)
-> ([OnDemandProvisioningAllocationStrategy] -> Value)
-> ([OnDemandProvisioningAllocationStrategy] -> Encoding)
-> ToJSON OnDemandProvisioningAllocationStrategy
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OnDemandProvisioningAllocationStrategy] -> Encoding
$ctoEncodingList :: [OnDemandProvisioningAllocationStrategy] -> Encoding
toJSONList :: [OnDemandProvisioningAllocationStrategy] -> Value
$ctoJSONList :: [OnDemandProvisioningAllocationStrategy] -> Value
toEncoding :: OnDemandProvisioningAllocationStrategy -> Encoding
$ctoEncoding :: OnDemandProvisioningAllocationStrategy -> Encoding
toJSON :: OnDemandProvisioningAllocationStrategy -> Value
$ctoJSON :: OnDemandProvisioningAllocationStrategy -> Value
Core.ToJSON,
ToJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
ToJSONKeyFunction OnDemandProvisioningAllocationStrategy
ToJSONKeyFunction OnDemandProvisioningAllocationStrategy
-> ToJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
-> ToJSONKey OnDemandProvisioningAllocationStrategy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
$ctoJSONKeyList :: ToJSONKeyFunction [OnDemandProvisioningAllocationStrategy]
toJSONKey :: ToJSONKeyFunction OnDemandProvisioningAllocationStrategy
$ctoJSONKey :: ToJSONKeyFunction OnDemandProvisioningAllocationStrategy
Core.ToJSONKey,
[Node] -> Either String OnDemandProvisioningAllocationStrategy
([Node] -> Either String OnDemandProvisioningAllocationStrategy)
-> FromXML OnDemandProvisioningAllocationStrategy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OnDemandProvisioningAllocationStrategy
$cparseXML :: [Node] -> Either String OnDemandProvisioningAllocationStrategy
Core.FromXML,
OnDemandProvisioningAllocationStrategy -> XML
(OnDemandProvisioningAllocationStrategy -> XML)
-> ToXML OnDemandProvisioningAllocationStrategy
forall a. (a -> XML) -> ToXML a
toXML :: OnDemandProvisioningAllocationStrategy -> XML
$ctoXML :: OnDemandProvisioningAllocationStrategy -> XML
Core.ToXML
)
pattern OnDemandProvisioningAllocationStrategy_Lowest_price :: OnDemandProvisioningAllocationStrategy
pattern $bOnDemandProvisioningAllocationStrategy_Lowest_price :: OnDemandProvisioningAllocationStrategy
$mOnDemandProvisioningAllocationStrategy_Lowest_price :: forall r.
OnDemandProvisioningAllocationStrategy
-> (Void# -> r) -> (Void# -> r) -> r
OnDemandProvisioningAllocationStrategy_Lowest_price = OnDemandProvisioningAllocationStrategy' "lowest-price"
{-# COMPLETE
OnDemandProvisioningAllocationStrategy_Lowest_price,
OnDemandProvisioningAllocationStrategy'
#-}