{-# 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.SpotProvisioningAllocationStrategy
( SpotProvisioningAllocationStrategy
( ..,
SpotProvisioningAllocationStrategy_Capacity_optimized
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SpotProvisioningAllocationStrategy = SpotProvisioningAllocationStrategy'
{ SpotProvisioningAllocationStrategy -> Text
fromSpotProvisioningAllocationStrategy ::
Core.Text
}
deriving stock
( Int -> SpotProvisioningAllocationStrategy -> ShowS
[SpotProvisioningAllocationStrategy] -> ShowS
SpotProvisioningAllocationStrategy -> String
(Int -> SpotProvisioningAllocationStrategy -> ShowS)
-> (SpotProvisioningAllocationStrategy -> String)
-> ([SpotProvisioningAllocationStrategy] -> ShowS)
-> Show SpotProvisioningAllocationStrategy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SpotProvisioningAllocationStrategy] -> ShowS
$cshowList :: [SpotProvisioningAllocationStrategy] -> ShowS
show :: SpotProvisioningAllocationStrategy -> String
$cshow :: SpotProvisioningAllocationStrategy -> String
showsPrec :: Int -> SpotProvisioningAllocationStrategy -> ShowS
$cshowsPrec :: Int -> SpotProvisioningAllocationStrategy -> ShowS
Prelude.Show,
ReadPrec [SpotProvisioningAllocationStrategy]
ReadPrec SpotProvisioningAllocationStrategy
Int -> ReadS SpotProvisioningAllocationStrategy
ReadS [SpotProvisioningAllocationStrategy]
(Int -> ReadS SpotProvisioningAllocationStrategy)
-> ReadS [SpotProvisioningAllocationStrategy]
-> ReadPrec SpotProvisioningAllocationStrategy
-> ReadPrec [SpotProvisioningAllocationStrategy]
-> Read SpotProvisioningAllocationStrategy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SpotProvisioningAllocationStrategy]
$creadListPrec :: ReadPrec [SpotProvisioningAllocationStrategy]
readPrec :: ReadPrec SpotProvisioningAllocationStrategy
$creadPrec :: ReadPrec SpotProvisioningAllocationStrategy
readList :: ReadS [SpotProvisioningAllocationStrategy]
$creadList :: ReadS [SpotProvisioningAllocationStrategy]
readsPrec :: Int -> ReadS SpotProvisioningAllocationStrategy
$creadsPrec :: Int -> ReadS SpotProvisioningAllocationStrategy
Prelude.Read,
SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
(SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool)
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool)
-> Eq SpotProvisioningAllocationStrategy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
$c/= :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
== :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
$c== :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
Prelude.Eq,
Eq SpotProvisioningAllocationStrategy
Eq SpotProvisioningAllocationStrategy
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Ordering)
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool)
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool)
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool)
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool)
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy)
-> (SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy)
-> Ord SpotProvisioningAllocationStrategy
SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Ordering
SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
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 :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
$cmin :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
max :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
$cmax :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy
>= :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
$c>= :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
> :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
$c> :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
<= :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
$c<= :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
< :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
$c< :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Bool
compare :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Ordering
$ccompare :: SpotProvisioningAllocationStrategy
-> SpotProvisioningAllocationStrategy -> Ordering
$cp1Ord :: Eq SpotProvisioningAllocationStrategy
Prelude.Ord,
(forall x.
SpotProvisioningAllocationStrategy
-> Rep SpotProvisioningAllocationStrategy x)
-> (forall x.
Rep SpotProvisioningAllocationStrategy x
-> SpotProvisioningAllocationStrategy)
-> Generic SpotProvisioningAllocationStrategy
forall x.
Rep SpotProvisioningAllocationStrategy x
-> SpotProvisioningAllocationStrategy
forall x.
SpotProvisioningAllocationStrategy
-> Rep SpotProvisioningAllocationStrategy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SpotProvisioningAllocationStrategy x
-> SpotProvisioningAllocationStrategy
$cfrom :: forall x.
SpotProvisioningAllocationStrategy
-> Rep SpotProvisioningAllocationStrategy x
Prelude.Generic
)
deriving newtype
( Int -> SpotProvisioningAllocationStrategy -> Int
SpotProvisioningAllocationStrategy -> Int
(Int -> SpotProvisioningAllocationStrategy -> Int)
-> (SpotProvisioningAllocationStrategy -> Int)
-> Hashable SpotProvisioningAllocationStrategy
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SpotProvisioningAllocationStrategy -> Int
$chash :: SpotProvisioningAllocationStrategy -> Int
hashWithSalt :: Int -> SpotProvisioningAllocationStrategy -> Int
$chashWithSalt :: Int -> SpotProvisioningAllocationStrategy -> Int
Prelude.Hashable,
SpotProvisioningAllocationStrategy -> ()
(SpotProvisioningAllocationStrategy -> ())
-> NFData SpotProvisioningAllocationStrategy
forall a. (a -> ()) -> NFData a
rnf :: SpotProvisioningAllocationStrategy -> ()
$crnf :: SpotProvisioningAllocationStrategy -> ()
Prelude.NFData,
Text -> Either String SpotProvisioningAllocationStrategy
(Text -> Either String SpotProvisioningAllocationStrategy)
-> FromText SpotProvisioningAllocationStrategy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SpotProvisioningAllocationStrategy
$cfromText :: Text -> Either String SpotProvisioningAllocationStrategy
Core.FromText,
SpotProvisioningAllocationStrategy -> Text
(SpotProvisioningAllocationStrategy -> Text)
-> ToText SpotProvisioningAllocationStrategy
forall a. (a -> Text) -> ToText a
toText :: SpotProvisioningAllocationStrategy -> Text
$ctoText :: SpotProvisioningAllocationStrategy -> Text
Core.ToText,
SpotProvisioningAllocationStrategy -> ByteString
(SpotProvisioningAllocationStrategy -> ByteString)
-> ToByteString SpotProvisioningAllocationStrategy
forall a. (a -> ByteString) -> ToByteString a
toBS :: SpotProvisioningAllocationStrategy -> ByteString
$ctoBS :: SpotProvisioningAllocationStrategy -> ByteString
Core.ToByteString,
SpotProvisioningAllocationStrategy -> ByteStringBuilder
(SpotProvisioningAllocationStrategy -> ByteStringBuilder)
-> ToLog SpotProvisioningAllocationStrategy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SpotProvisioningAllocationStrategy -> ByteStringBuilder
$cbuild :: SpotProvisioningAllocationStrategy -> ByteStringBuilder
Core.ToLog,
HeaderName -> SpotProvisioningAllocationStrategy -> [Header]
(HeaderName -> SpotProvisioningAllocationStrategy -> [Header])
-> ToHeader SpotProvisioningAllocationStrategy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SpotProvisioningAllocationStrategy -> [Header]
$ctoHeader :: HeaderName -> SpotProvisioningAllocationStrategy -> [Header]
Core.ToHeader,
SpotProvisioningAllocationStrategy -> QueryString
(SpotProvisioningAllocationStrategy -> QueryString)
-> ToQuery SpotProvisioningAllocationStrategy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SpotProvisioningAllocationStrategy -> QueryString
$ctoQuery :: SpotProvisioningAllocationStrategy -> QueryString
Core.ToQuery,
Value -> Parser [SpotProvisioningAllocationStrategy]
Value -> Parser SpotProvisioningAllocationStrategy
(Value -> Parser SpotProvisioningAllocationStrategy)
-> (Value -> Parser [SpotProvisioningAllocationStrategy])
-> FromJSON SpotProvisioningAllocationStrategy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SpotProvisioningAllocationStrategy]
$cparseJSONList :: Value -> Parser [SpotProvisioningAllocationStrategy]
parseJSON :: Value -> Parser SpotProvisioningAllocationStrategy
$cparseJSON :: Value -> Parser SpotProvisioningAllocationStrategy
Core.FromJSON,
FromJSONKeyFunction [SpotProvisioningAllocationStrategy]
FromJSONKeyFunction SpotProvisioningAllocationStrategy
FromJSONKeyFunction SpotProvisioningAllocationStrategy
-> FromJSONKeyFunction [SpotProvisioningAllocationStrategy]
-> FromJSONKey SpotProvisioningAllocationStrategy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SpotProvisioningAllocationStrategy]
$cfromJSONKeyList :: FromJSONKeyFunction [SpotProvisioningAllocationStrategy]
fromJSONKey :: FromJSONKeyFunction SpotProvisioningAllocationStrategy
$cfromJSONKey :: FromJSONKeyFunction SpotProvisioningAllocationStrategy
Core.FromJSONKey,
[SpotProvisioningAllocationStrategy] -> Encoding
[SpotProvisioningAllocationStrategy] -> Value
SpotProvisioningAllocationStrategy -> Encoding
SpotProvisioningAllocationStrategy -> Value
(SpotProvisioningAllocationStrategy -> Value)
-> (SpotProvisioningAllocationStrategy -> Encoding)
-> ([SpotProvisioningAllocationStrategy] -> Value)
-> ([SpotProvisioningAllocationStrategy] -> Encoding)
-> ToJSON SpotProvisioningAllocationStrategy
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SpotProvisioningAllocationStrategy] -> Encoding
$ctoEncodingList :: [SpotProvisioningAllocationStrategy] -> Encoding
toJSONList :: [SpotProvisioningAllocationStrategy] -> Value
$ctoJSONList :: [SpotProvisioningAllocationStrategy] -> Value
toEncoding :: SpotProvisioningAllocationStrategy -> Encoding
$ctoEncoding :: SpotProvisioningAllocationStrategy -> Encoding
toJSON :: SpotProvisioningAllocationStrategy -> Value
$ctoJSON :: SpotProvisioningAllocationStrategy -> Value
Core.ToJSON,
ToJSONKeyFunction [SpotProvisioningAllocationStrategy]
ToJSONKeyFunction SpotProvisioningAllocationStrategy
ToJSONKeyFunction SpotProvisioningAllocationStrategy
-> ToJSONKeyFunction [SpotProvisioningAllocationStrategy]
-> ToJSONKey SpotProvisioningAllocationStrategy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SpotProvisioningAllocationStrategy]
$ctoJSONKeyList :: ToJSONKeyFunction [SpotProvisioningAllocationStrategy]
toJSONKey :: ToJSONKeyFunction SpotProvisioningAllocationStrategy
$ctoJSONKey :: ToJSONKeyFunction SpotProvisioningAllocationStrategy
Core.ToJSONKey,
[Node] -> Either String SpotProvisioningAllocationStrategy
([Node] -> Either String SpotProvisioningAllocationStrategy)
-> FromXML SpotProvisioningAllocationStrategy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SpotProvisioningAllocationStrategy
$cparseXML :: [Node] -> Either String SpotProvisioningAllocationStrategy
Core.FromXML,
SpotProvisioningAllocationStrategy -> XML
(SpotProvisioningAllocationStrategy -> XML)
-> ToXML SpotProvisioningAllocationStrategy
forall a. (a -> XML) -> ToXML a
toXML :: SpotProvisioningAllocationStrategy -> XML
$ctoXML :: SpotProvisioningAllocationStrategy -> XML
Core.ToXML
)
pattern SpotProvisioningAllocationStrategy_Capacity_optimized :: SpotProvisioningAllocationStrategy
pattern $bSpotProvisioningAllocationStrategy_Capacity_optimized :: SpotProvisioningAllocationStrategy
$mSpotProvisioningAllocationStrategy_Capacity_optimized :: forall r.
SpotProvisioningAllocationStrategy
-> (Void# -> r) -> (Void# -> r) -> r
SpotProvisioningAllocationStrategy_Capacity_optimized = SpotProvisioningAllocationStrategy' "capacity-optimized"
{-# COMPLETE
SpotProvisioningAllocationStrategy_Capacity_optimized,
SpotProvisioningAllocationStrategy'
#-}