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