{-# 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.InstanceFleetState
( InstanceFleetState
( ..,
InstanceFleetState_BOOTSTRAPPING,
InstanceFleetState_PROVISIONING,
InstanceFleetState_RESIZING,
InstanceFleetState_RUNNING,
InstanceFleetState_SUSPENDED,
InstanceFleetState_TERMINATED,
InstanceFleetState_TERMINATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype InstanceFleetState = InstanceFleetState'
{ InstanceFleetState -> Text
fromInstanceFleetState ::
Core.Text
}
deriving stock
( Int -> InstanceFleetState -> ShowS
[InstanceFleetState] -> ShowS
InstanceFleetState -> String
(Int -> InstanceFleetState -> ShowS)
-> (InstanceFleetState -> String)
-> ([InstanceFleetState] -> ShowS)
-> Show InstanceFleetState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InstanceFleetState] -> ShowS
$cshowList :: [InstanceFleetState] -> ShowS
show :: InstanceFleetState -> String
$cshow :: InstanceFleetState -> String
showsPrec :: Int -> InstanceFleetState -> ShowS
$cshowsPrec :: Int -> InstanceFleetState -> ShowS
Prelude.Show,
ReadPrec [InstanceFleetState]
ReadPrec InstanceFleetState
Int -> ReadS InstanceFleetState
ReadS [InstanceFleetState]
(Int -> ReadS InstanceFleetState)
-> ReadS [InstanceFleetState]
-> ReadPrec InstanceFleetState
-> ReadPrec [InstanceFleetState]
-> Read InstanceFleetState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InstanceFleetState]
$creadListPrec :: ReadPrec [InstanceFleetState]
readPrec :: ReadPrec InstanceFleetState
$creadPrec :: ReadPrec InstanceFleetState
readList :: ReadS [InstanceFleetState]
$creadList :: ReadS [InstanceFleetState]
readsPrec :: Int -> ReadS InstanceFleetState
$creadsPrec :: Int -> ReadS InstanceFleetState
Prelude.Read,
InstanceFleetState -> InstanceFleetState -> Bool
(InstanceFleetState -> InstanceFleetState -> Bool)
-> (InstanceFleetState -> InstanceFleetState -> Bool)
-> Eq InstanceFleetState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InstanceFleetState -> InstanceFleetState -> Bool
$c/= :: InstanceFleetState -> InstanceFleetState -> Bool
== :: InstanceFleetState -> InstanceFleetState -> Bool
$c== :: InstanceFleetState -> InstanceFleetState -> Bool
Prelude.Eq,
Eq InstanceFleetState
Eq InstanceFleetState
-> (InstanceFleetState -> InstanceFleetState -> Ordering)
-> (InstanceFleetState -> InstanceFleetState -> Bool)
-> (InstanceFleetState -> InstanceFleetState -> Bool)
-> (InstanceFleetState -> InstanceFleetState -> Bool)
-> (InstanceFleetState -> InstanceFleetState -> Bool)
-> (InstanceFleetState -> InstanceFleetState -> InstanceFleetState)
-> (InstanceFleetState -> InstanceFleetState -> InstanceFleetState)
-> Ord InstanceFleetState
InstanceFleetState -> InstanceFleetState -> Bool
InstanceFleetState -> InstanceFleetState -> Ordering
InstanceFleetState -> InstanceFleetState -> InstanceFleetState
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 :: InstanceFleetState -> InstanceFleetState -> InstanceFleetState
$cmin :: InstanceFleetState -> InstanceFleetState -> InstanceFleetState
max :: InstanceFleetState -> InstanceFleetState -> InstanceFleetState
$cmax :: InstanceFleetState -> InstanceFleetState -> InstanceFleetState
>= :: InstanceFleetState -> InstanceFleetState -> Bool
$c>= :: InstanceFleetState -> InstanceFleetState -> Bool
> :: InstanceFleetState -> InstanceFleetState -> Bool
$c> :: InstanceFleetState -> InstanceFleetState -> Bool
<= :: InstanceFleetState -> InstanceFleetState -> Bool
$c<= :: InstanceFleetState -> InstanceFleetState -> Bool
< :: InstanceFleetState -> InstanceFleetState -> Bool
$c< :: InstanceFleetState -> InstanceFleetState -> Bool
compare :: InstanceFleetState -> InstanceFleetState -> Ordering
$ccompare :: InstanceFleetState -> InstanceFleetState -> Ordering
$cp1Ord :: Eq InstanceFleetState
Prelude.Ord,
(forall x. InstanceFleetState -> Rep InstanceFleetState x)
-> (forall x. Rep InstanceFleetState x -> InstanceFleetState)
-> Generic InstanceFleetState
forall x. Rep InstanceFleetState x -> InstanceFleetState
forall x. InstanceFleetState -> Rep InstanceFleetState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InstanceFleetState x -> InstanceFleetState
$cfrom :: forall x. InstanceFleetState -> Rep InstanceFleetState x
Prelude.Generic
)
deriving newtype
( Int -> InstanceFleetState -> Int
InstanceFleetState -> Int
(Int -> InstanceFleetState -> Int)
-> (InstanceFleetState -> Int) -> Hashable InstanceFleetState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InstanceFleetState -> Int
$chash :: InstanceFleetState -> Int
hashWithSalt :: Int -> InstanceFleetState -> Int
$chashWithSalt :: Int -> InstanceFleetState -> Int
Prelude.Hashable,
InstanceFleetState -> ()
(InstanceFleetState -> ()) -> NFData InstanceFleetState
forall a. (a -> ()) -> NFData a
rnf :: InstanceFleetState -> ()
$crnf :: InstanceFleetState -> ()
Prelude.NFData,
Text -> Either String InstanceFleetState
(Text -> Either String InstanceFleetState)
-> FromText InstanceFleetState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InstanceFleetState
$cfromText :: Text -> Either String InstanceFleetState
Core.FromText,
InstanceFleetState -> Text
(InstanceFleetState -> Text) -> ToText InstanceFleetState
forall a. (a -> Text) -> ToText a
toText :: InstanceFleetState -> Text
$ctoText :: InstanceFleetState -> Text
Core.ToText,
InstanceFleetState -> ByteString
(InstanceFleetState -> ByteString)
-> ToByteString InstanceFleetState
forall a. (a -> ByteString) -> ToByteString a
toBS :: InstanceFleetState -> ByteString
$ctoBS :: InstanceFleetState -> ByteString
Core.ToByteString,
InstanceFleetState -> ByteStringBuilder
(InstanceFleetState -> ByteStringBuilder)
-> ToLog InstanceFleetState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InstanceFleetState -> ByteStringBuilder
$cbuild :: InstanceFleetState -> ByteStringBuilder
Core.ToLog,
HeaderName -> InstanceFleetState -> [Header]
(HeaderName -> InstanceFleetState -> [Header])
-> ToHeader InstanceFleetState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InstanceFleetState -> [Header]
$ctoHeader :: HeaderName -> InstanceFleetState -> [Header]
Core.ToHeader,
InstanceFleetState -> QueryString
(InstanceFleetState -> QueryString) -> ToQuery InstanceFleetState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InstanceFleetState -> QueryString
$ctoQuery :: InstanceFleetState -> QueryString
Core.ToQuery,
Value -> Parser [InstanceFleetState]
Value -> Parser InstanceFleetState
(Value -> Parser InstanceFleetState)
-> (Value -> Parser [InstanceFleetState])
-> FromJSON InstanceFleetState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InstanceFleetState]
$cparseJSONList :: Value -> Parser [InstanceFleetState]
parseJSON :: Value -> Parser InstanceFleetState
$cparseJSON :: Value -> Parser InstanceFleetState
Core.FromJSON,
FromJSONKeyFunction [InstanceFleetState]
FromJSONKeyFunction InstanceFleetState
FromJSONKeyFunction InstanceFleetState
-> FromJSONKeyFunction [InstanceFleetState]
-> FromJSONKey InstanceFleetState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InstanceFleetState]
$cfromJSONKeyList :: FromJSONKeyFunction [InstanceFleetState]
fromJSONKey :: FromJSONKeyFunction InstanceFleetState
$cfromJSONKey :: FromJSONKeyFunction InstanceFleetState
Core.FromJSONKey,
[InstanceFleetState] -> Encoding
[InstanceFleetState] -> Value
InstanceFleetState -> Encoding
InstanceFleetState -> Value
(InstanceFleetState -> Value)
-> (InstanceFleetState -> Encoding)
-> ([InstanceFleetState] -> Value)
-> ([InstanceFleetState] -> Encoding)
-> ToJSON InstanceFleetState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InstanceFleetState] -> Encoding
$ctoEncodingList :: [InstanceFleetState] -> Encoding
toJSONList :: [InstanceFleetState] -> Value
$ctoJSONList :: [InstanceFleetState] -> Value
toEncoding :: InstanceFleetState -> Encoding
$ctoEncoding :: InstanceFleetState -> Encoding
toJSON :: InstanceFleetState -> Value
$ctoJSON :: InstanceFleetState -> Value
Core.ToJSON,
ToJSONKeyFunction [InstanceFleetState]
ToJSONKeyFunction InstanceFleetState
ToJSONKeyFunction InstanceFleetState
-> ToJSONKeyFunction [InstanceFleetState]
-> ToJSONKey InstanceFleetState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InstanceFleetState]
$ctoJSONKeyList :: ToJSONKeyFunction [InstanceFleetState]
toJSONKey :: ToJSONKeyFunction InstanceFleetState
$ctoJSONKey :: ToJSONKeyFunction InstanceFleetState
Core.ToJSONKey,
[Node] -> Either String InstanceFleetState
([Node] -> Either String InstanceFleetState)
-> FromXML InstanceFleetState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InstanceFleetState
$cparseXML :: [Node] -> Either String InstanceFleetState
Core.FromXML,
InstanceFleetState -> XML
(InstanceFleetState -> XML) -> ToXML InstanceFleetState
forall a. (a -> XML) -> ToXML a
toXML :: InstanceFleetState -> XML
$ctoXML :: InstanceFleetState -> XML
Core.ToXML
)
pattern InstanceFleetState_BOOTSTRAPPING :: InstanceFleetState
pattern $bInstanceFleetState_BOOTSTRAPPING :: InstanceFleetState
$mInstanceFleetState_BOOTSTRAPPING :: forall r. InstanceFleetState -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetState_BOOTSTRAPPING = InstanceFleetState' "BOOTSTRAPPING"
pattern InstanceFleetState_PROVISIONING :: InstanceFleetState
pattern $bInstanceFleetState_PROVISIONING :: InstanceFleetState
$mInstanceFleetState_PROVISIONING :: forall r. InstanceFleetState -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetState_PROVISIONING = InstanceFleetState' "PROVISIONING"
pattern InstanceFleetState_RESIZING :: InstanceFleetState
pattern $bInstanceFleetState_RESIZING :: InstanceFleetState
$mInstanceFleetState_RESIZING :: forall r. InstanceFleetState -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetState_RESIZING = InstanceFleetState' "RESIZING"
pattern InstanceFleetState_RUNNING :: InstanceFleetState
pattern $bInstanceFleetState_RUNNING :: InstanceFleetState
$mInstanceFleetState_RUNNING :: forall r. InstanceFleetState -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetState_RUNNING = InstanceFleetState' "RUNNING"
pattern InstanceFleetState_SUSPENDED :: InstanceFleetState
pattern $bInstanceFleetState_SUSPENDED :: InstanceFleetState
$mInstanceFleetState_SUSPENDED :: forall r. InstanceFleetState -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetState_SUSPENDED = InstanceFleetState' "SUSPENDED"
pattern InstanceFleetState_TERMINATED :: InstanceFleetState
pattern $bInstanceFleetState_TERMINATED :: InstanceFleetState
$mInstanceFleetState_TERMINATED :: forall r. InstanceFleetState -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetState_TERMINATED = InstanceFleetState' "TERMINATED"
pattern InstanceFleetState_TERMINATING :: InstanceFleetState
pattern $bInstanceFleetState_TERMINATING :: InstanceFleetState
$mInstanceFleetState_TERMINATING :: forall r. InstanceFleetState -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetState_TERMINATING = InstanceFleetState' "TERMINATING"
{-# COMPLETE
InstanceFleetState_BOOTSTRAPPING,
InstanceFleetState_PROVISIONING,
InstanceFleetState_RESIZING,
InstanceFleetState_RUNNING,
InstanceFleetState_SUSPENDED,
InstanceFleetState_TERMINATED,
InstanceFleetState_TERMINATING,
InstanceFleetState'
#-}