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