{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ElasticBeanstalk.Types.EventSeverity
( EventSeverity
( ..,
EventSeverity_DEBUG,
EventSeverity_ERROR,
EventSeverity_FATAL,
EventSeverity_INFO,
EventSeverity_TRACE,
EventSeverity_WARN
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype EventSeverity = EventSeverity'
{ EventSeverity -> Text
fromEventSeverity ::
Core.Text
}
deriving stock
( Int -> EventSeverity -> ShowS
[EventSeverity] -> ShowS
EventSeverity -> String
(Int -> EventSeverity -> ShowS)
-> (EventSeverity -> String)
-> ([EventSeverity] -> ShowS)
-> Show EventSeverity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EventSeverity] -> ShowS
$cshowList :: [EventSeverity] -> ShowS
show :: EventSeverity -> String
$cshow :: EventSeverity -> String
showsPrec :: Int -> EventSeverity -> ShowS
$cshowsPrec :: Int -> EventSeverity -> ShowS
Prelude.Show,
ReadPrec [EventSeverity]
ReadPrec EventSeverity
Int -> ReadS EventSeverity
ReadS [EventSeverity]
(Int -> ReadS EventSeverity)
-> ReadS [EventSeverity]
-> ReadPrec EventSeverity
-> ReadPrec [EventSeverity]
-> Read EventSeverity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EventSeverity]
$creadListPrec :: ReadPrec [EventSeverity]
readPrec :: ReadPrec EventSeverity
$creadPrec :: ReadPrec EventSeverity
readList :: ReadS [EventSeverity]
$creadList :: ReadS [EventSeverity]
readsPrec :: Int -> ReadS EventSeverity
$creadsPrec :: Int -> ReadS EventSeverity
Prelude.Read,
EventSeverity -> EventSeverity -> Bool
(EventSeverity -> EventSeverity -> Bool)
-> (EventSeverity -> EventSeverity -> Bool) -> Eq EventSeverity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventSeverity -> EventSeverity -> Bool
$c/= :: EventSeverity -> EventSeverity -> Bool
== :: EventSeverity -> EventSeverity -> Bool
$c== :: EventSeverity -> EventSeverity -> Bool
Prelude.Eq,
Eq EventSeverity
Eq EventSeverity
-> (EventSeverity -> EventSeverity -> Ordering)
-> (EventSeverity -> EventSeverity -> Bool)
-> (EventSeverity -> EventSeverity -> Bool)
-> (EventSeverity -> EventSeverity -> Bool)
-> (EventSeverity -> EventSeverity -> Bool)
-> (EventSeverity -> EventSeverity -> EventSeverity)
-> (EventSeverity -> EventSeverity -> EventSeverity)
-> Ord EventSeverity
EventSeverity -> EventSeverity -> Bool
EventSeverity -> EventSeverity -> Ordering
EventSeverity -> EventSeverity -> EventSeverity
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 :: EventSeverity -> EventSeverity -> EventSeverity
$cmin :: EventSeverity -> EventSeverity -> EventSeverity
max :: EventSeverity -> EventSeverity -> EventSeverity
$cmax :: EventSeverity -> EventSeverity -> EventSeverity
>= :: EventSeverity -> EventSeverity -> Bool
$c>= :: EventSeverity -> EventSeverity -> Bool
> :: EventSeverity -> EventSeverity -> Bool
$c> :: EventSeverity -> EventSeverity -> Bool
<= :: EventSeverity -> EventSeverity -> Bool
$c<= :: EventSeverity -> EventSeverity -> Bool
< :: EventSeverity -> EventSeverity -> Bool
$c< :: EventSeverity -> EventSeverity -> Bool
compare :: EventSeverity -> EventSeverity -> Ordering
$ccompare :: EventSeverity -> EventSeverity -> Ordering
$cp1Ord :: Eq EventSeverity
Prelude.Ord,
(forall x. EventSeverity -> Rep EventSeverity x)
-> (forall x. Rep EventSeverity x -> EventSeverity)
-> Generic EventSeverity
forall x. Rep EventSeverity x -> EventSeverity
forall x. EventSeverity -> Rep EventSeverity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EventSeverity x -> EventSeverity
$cfrom :: forall x. EventSeverity -> Rep EventSeverity x
Prelude.Generic
)
deriving newtype
( Int -> EventSeverity -> Int
EventSeverity -> Int
(Int -> EventSeverity -> Int)
-> (EventSeverity -> Int) -> Hashable EventSeverity
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EventSeverity -> Int
$chash :: EventSeverity -> Int
hashWithSalt :: Int -> EventSeverity -> Int
$chashWithSalt :: Int -> EventSeverity -> Int
Prelude.Hashable,
EventSeverity -> ()
(EventSeverity -> ()) -> NFData EventSeverity
forall a. (a -> ()) -> NFData a
rnf :: EventSeverity -> ()
$crnf :: EventSeverity -> ()
Prelude.NFData,
Text -> Either String EventSeverity
(Text -> Either String EventSeverity) -> FromText EventSeverity
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EventSeverity
$cfromText :: Text -> Either String EventSeverity
Core.FromText,
EventSeverity -> Text
(EventSeverity -> Text) -> ToText EventSeverity
forall a. (a -> Text) -> ToText a
toText :: EventSeverity -> Text
$ctoText :: EventSeverity -> Text
Core.ToText,
EventSeverity -> ByteString
(EventSeverity -> ByteString) -> ToByteString EventSeverity
forall a. (a -> ByteString) -> ToByteString a
toBS :: EventSeverity -> ByteString
$ctoBS :: EventSeverity -> ByteString
Core.ToByteString,
EventSeverity -> ByteStringBuilder
(EventSeverity -> ByteStringBuilder) -> ToLog EventSeverity
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EventSeverity -> ByteStringBuilder
$cbuild :: EventSeverity -> ByteStringBuilder
Core.ToLog,
HeaderName -> EventSeverity -> [Header]
(HeaderName -> EventSeverity -> [Header]) -> ToHeader EventSeverity
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EventSeverity -> [Header]
$ctoHeader :: HeaderName -> EventSeverity -> [Header]
Core.ToHeader,
EventSeverity -> QueryString
(EventSeverity -> QueryString) -> ToQuery EventSeverity
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EventSeverity -> QueryString
$ctoQuery :: EventSeverity -> QueryString
Core.ToQuery,
Value -> Parser [EventSeverity]
Value -> Parser EventSeverity
(Value -> Parser EventSeverity)
-> (Value -> Parser [EventSeverity]) -> FromJSON EventSeverity
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EventSeverity]
$cparseJSONList :: Value -> Parser [EventSeverity]
parseJSON :: Value -> Parser EventSeverity
$cparseJSON :: Value -> Parser EventSeverity
Core.FromJSON,
FromJSONKeyFunction [EventSeverity]
FromJSONKeyFunction EventSeverity
FromJSONKeyFunction EventSeverity
-> FromJSONKeyFunction [EventSeverity] -> FromJSONKey EventSeverity
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EventSeverity]
$cfromJSONKeyList :: FromJSONKeyFunction [EventSeverity]
fromJSONKey :: FromJSONKeyFunction EventSeverity
$cfromJSONKey :: FromJSONKeyFunction EventSeverity
Core.FromJSONKey,
[EventSeverity] -> Encoding
[EventSeverity] -> Value
EventSeverity -> Encoding
EventSeverity -> Value
(EventSeverity -> Value)
-> (EventSeverity -> Encoding)
-> ([EventSeverity] -> Value)
-> ([EventSeverity] -> Encoding)
-> ToJSON EventSeverity
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EventSeverity] -> Encoding
$ctoEncodingList :: [EventSeverity] -> Encoding
toJSONList :: [EventSeverity] -> Value
$ctoJSONList :: [EventSeverity] -> Value
toEncoding :: EventSeverity -> Encoding
$ctoEncoding :: EventSeverity -> Encoding
toJSON :: EventSeverity -> Value
$ctoJSON :: EventSeverity -> Value
Core.ToJSON,
ToJSONKeyFunction [EventSeverity]
ToJSONKeyFunction EventSeverity
ToJSONKeyFunction EventSeverity
-> ToJSONKeyFunction [EventSeverity] -> ToJSONKey EventSeverity
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EventSeverity]
$ctoJSONKeyList :: ToJSONKeyFunction [EventSeverity]
toJSONKey :: ToJSONKeyFunction EventSeverity
$ctoJSONKey :: ToJSONKeyFunction EventSeverity
Core.ToJSONKey,
[Node] -> Either String EventSeverity
([Node] -> Either String EventSeverity) -> FromXML EventSeverity
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EventSeverity
$cparseXML :: [Node] -> Either String EventSeverity
Core.FromXML,
EventSeverity -> XML
(EventSeverity -> XML) -> ToXML EventSeverity
forall a. (a -> XML) -> ToXML a
toXML :: EventSeverity -> XML
$ctoXML :: EventSeverity -> XML
Core.ToXML
)
pattern EventSeverity_DEBUG :: EventSeverity
pattern $bEventSeverity_DEBUG :: EventSeverity
$mEventSeverity_DEBUG :: forall r. EventSeverity -> (Void# -> r) -> (Void# -> r) -> r
EventSeverity_DEBUG = EventSeverity' "DEBUG"
pattern EventSeverity_ERROR :: EventSeverity
pattern $bEventSeverity_ERROR :: EventSeverity
$mEventSeverity_ERROR :: forall r. EventSeverity -> (Void# -> r) -> (Void# -> r) -> r
EventSeverity_ERROR = EventSeverity' "ERROR"
pattern EventSeverity_FATAL :: EventSeverity
pattern $bEventSeverity_FATAL :: EventSeverity
$mEventSeverity_FATAL :: forall r. EventSeverity -> (Void# -> r) -> (Void# -> r) -> r
EventSeverity_FATAL = EventSeverity' "FATAL"
pattern EventSeverity_INFO :: EventSeverity
pattern $bEventSeverity_INFO :: EventSeverity
$mEventSeverity_INFO :: forall r. EventSeverity -> (Void# -> r) -> (Void# -> r) -> r
EventSeverity_INFO = EventSeverity' "INFO"
pattern EventSeverity_TRACE :: EventSeverity
pattern $bEventSeverity_TRACE :: EventSeverity
$mEventSeverity_TRACE :: forall r. EventSeverity -> (Void# -> r) -> (Void# -> r) -> r
EventSeverity_TRACE = EventSeverity' "TRACE"
pattern EventSeverity_WARN :: EventSeverity
pattern $bEventSeverity_WARN :: EventSeverity
$mEventSeverity_WARN :: forall r. EventSeverity -> (Void# -> r) -> (Void# -> r) -> r
EventSeverity_WARN = EventSeverity' "WARN"
{-# COMPLETE
EventSeverity_DEBUG,
EventSeverity_ERROR,
EventSeverity_FATAL,
EventSeverity_INFO,
EventSeverity_TRACE,
EventSeverity_WARN,
EventSeverity'
#-}