{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ElasticBeanstalk.Types.EnvironmentHealthStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ElasticBeanstalk.Types.EnvironmentHealthStatus
  ( EnvironmentHealthStatus
      ( ..,
        EnvironmentHealthStatus_Degraded,
        EnvironmentHealthStatus_Info,
        EnvironmentHealthStatus_NoData,
        EnvironmentHealthStatus_Ok,
        EnvironmentHealthStatus_Pending,
        EnvironmentHealthStatus_Severe,
        EnvironmentHealthStatus_Suspended,
        EnvironmentHealthStatus_Unknown,
        EnvironmentHealthStatus_Warning
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern EnvironmentHealthStatus_Degraded :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Degraded :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Degraded :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Degraded = EnvironmentHealthStatus' "Degraded"

pattern EnvironmentHealthStatus_Info :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Info :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Info :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Info = EnvironmentHealthStatus' "Info"

pattern EnvironmentHealthStatus_NoData :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_NoData :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_NoData :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_NoData = EnvironmentHealthStatus' "NoData"

pattern EnvironmentHealthStatus_Ok :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Ok :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Ok :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Ok = EnvironmentHealthStatus' "Ok"

pattern EnvironmentHealthStatus_Pending :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Pending :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Pending :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Pending = EnvironmentHealthStatus' "Pending"

pattern EnvironmentHealthStatus_Severe :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Severe :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Severe :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Severe = EnvironmentHealthStatus' "Severe"

pattern EnvironmentHealthStatus_Suspended :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Suspended :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Suspended :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Suspended = EnvironmentHealthStatus' "Suspended"

pattern EnvironmentHealthStatus_Unknown :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Unknown :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Unknown :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Unknown = EnvironmentHealthStatus' "Unknown"

pattern EnvironmentHealthStatus_Warning :: EnvironmentHealthStatus
pattern $bEnvironmentHealthStatus_Warning :: EnvironmentHealthStatus
$mEnvironmentHealthStatus_Warning :: forall r.
EnvironmentHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentHealthStatus_Warning = EnvironmentHealthStatus' "Warning"

{-# COMPLETE
  EnvironmentHealthStatus_Degraded,
  EnvironmentHealthStatus_Info,
  EnvironmentHealthStatus_NoData,
  EnvironmentHealthStatus_Ok,
  EnvironmentHealthStatus_Pending,
  EnvironmentHealthStatus_Severe,
  EnvironmentHealthStatus_Suspended,
  EnvironmentHealthStatus_Unknown,
  EnvironmentHealthStatus_Warning,
  EnvironmentHealthStatus'
  #-}