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