{-# 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.EnvironmentHealthAttribute
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ElasticBeanstalk.Types.EnvironmentHealthAttribute
  ( EnvironmentHealthAttribute
      ( ..,
        EnvironmentHealthAttribute_All,
        EnvironmentHealthAttribute_ApplicationMetrics,
        EnvironmentHealthAttribute_Causes,
        EnvironmentHealthAttribute_Color,
        EnvironmentHealthAttribute_HealthStatus,
        EnvironmentHealthAttribute_InstancesHealth,
        EnvironmentHealthAttribute_RefreshedAt,
        EnvironmentHealthAttribute_Status
      ),
  )
where

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

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

pattern EnvironmentHealthAttribute_All :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_All :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_All :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_All = EnvironmentHealthAttribute' "All"

pattern EnvironmentHealthAttribute_ApplicationMetrics :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_ApplicationMetrics :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_ApplicationMetrics :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_ApplicationMetrics = EnvironmentHealthAttribute' "ApplicationMetrics"

pattern EnvironmentHealthAttribute_Causes :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_Causes :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_Causes :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_Causes = EnvironmentHealthAttribute' "Causes"

pattern EnvironmentHealthAttribute_Color :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_Color :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_Color :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_Color = EnvironmentHealthAttribute' "Color"

pattern EnvironmentHealthAttribute_HealthStatus :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_HealthStatus :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_HealthStatus :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_HealthStatus = EnvironmentHealthAttribute' "HealthStatus"

pattern EnvironmentHealthAttribute_InstancesHealth :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_InstancesHealth :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_InstancesHealth :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_InstancesHealth = EnvironmentHealthAttribute' "InstancesHealth"

pattern EnvironmentHealthAttribute_RefreshedAt :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_RefreshedAt :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_RefreshedAt :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_RefreshedAt = EnvironmentHealthAttribute' "RefreshedAt"

pattern EnvironmentHealthAttribute_Status :: EnvironmentHealthAttribute
pattern $bEnvironmentHealthAttribute_Status :: EnvironmentHealthAttribute
$mEnvironmentHealthAttribute_Status :: forall {r}.
EnvironmentHealthAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentHealthAttribute_Status = EnvironmentHealthAttribute' "Status"

{-# COMPLETE
  EnvironmentHealthAttribute_All,
  EnvironmentHealthAttribute_ApplicationMetrics,
  EnvironmentHealthAttribute_Causes,
  EnvironmentHealthAttribute_Color,
  EnvironmentHealthAttribute_HealthStatus,
  EnvironmentHealthAttribute_InstancesHealth,
  EnvironmentHealthAttribute_RefreshedAt,
  EnvironmentHealthAttribute_Status,
  EnvironmentHealthAttribute'
  #-}