{-# 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-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.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.Prelude as Prelude

newtype EnvironmentHealthAttribute = EnvironmentHealthAttribute'
  { EnvironmentHealthAttribute -> Text
fromEnvironmentHealthAttribute ::
      Core.Text
  }
  deriving stock
    ( Int -> EnvironmentHealthAttribute -> ShowS
[EnvironmentHealthAttribute] -> ShowS
EnvironmentHealthAttribute -> String
(Int -> EnvironmentHealthAttribute -> ShowS)
-> (EnvironmentHealthAttribute -> String)
-> ([EnvironmentHealthAttribute] -> ShowS)
-> Show EnvironmentHealthAttribute
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]
(Int -> ReadS EnvironmentHealthAttribute)
-> ReadS [EnvironmentHealthAttribute]
-> ReadPrec EnvironmentHealthAttribute
-> ReadPrec [EnvironmentHealthAttribute]
-> Read 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
(EnvironmentHealthAttribute -> EnvironmentHealthAttribute -> Bool)
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> Bool)
-> Eq EnvironmentHealthAttribute
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
Eq EnvironmentHealthAttribute
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> Ordering)
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> Bool)
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> Bool)
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> Bool)
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> Bool)
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> EnvironmentHealthAttribute)
-> (EnvironmentHealthAttribute
    -> EnvironmentHealthAttribute -> EnvironmentHealthAttribute)
-> Ord 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
$cp1Ord :: Eq EnvironmentHealthAttribute
Prelude.Ord,
      (forall x.
 EnvironmentHealthAttribute -> Rep EnvironmentHealthAttribute x)
-> (forall x.
    Rep EnvironmentHealthAttribute x -> EnvironmentHealthAttribute)
-> Generic EnvironmentHealthAttribute
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
    ( Int -> EnvironmentHealthAttribute -> Int
EnvironmentHealthAttribute -> Int
(Int -> EnvironmentHealthAttribute -> Int)
-> (EnvironmentHealthAttribute -> Int)
-> Hashable EnvironmentHealthAttribute
forall 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 -> ()
(EnvironmentHealthAttribute -> ())
-> NFData EnvironmentHealthAttribute
forall a. (a -> ()) -> NFData a
rnf :: EnvironmentHealthAttribute -> ()
$crnf :: EnvironmentHealthAttribute -> ()
Prelude.NFData,
      Text -> Either String EnvironmentHealthAttribute
(Text -> Either String EnvironmentHealthAttribute)
-> FromText EnvironmentHealthAttribute
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EnvironmentHealthAttribute
$cfromText :: Text -> Either String EnvironmentHealthAttribute
Core.FromText,
      EnvironmentHealthAttribute -> Text
(EnvironmentHealthAttribute -> Text)
-> ToText EnvironmentHealthAttribute
forall a. (a -> Text) -> ToText a
toText :: EnvironmentHealthAttribute -> Text
$ctoText :: EnvironmentHealthAttribute -> Text
Core.ToText,
      EnvironmentHealthAttribute -> ByteString
(EnvironmentHealthAttribute -> ByteString)
-> ToByteString EnvironmentHealthAttribute
forall a. (a -> ByteString) -> ToByteString a
toBS :: EnvironmentHealthAttribute -> ByteString
$ctoBS :: EnvironmentHealthAttribute -> ByteString
Core.ToByteString,
      EnvironmentHealthAttribute -> ByteStringBuilder
(EnvironmentHealthAttribute -> ByteStringBuilder)
-> ToLog EnvironmentHealthAttribute
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EnvironmentHealthAttribute -> ByteStringBuilder
$cbuild :: EnvironmentHealthAttribute -> ByteStringBuilder
Core.ToLog,
      HeaderName -> EnvironmentHealthAttribute -> [Header]
(HeaderName -> EnvironmentHealthAttribute -> [Header])
-> ToHeader EnvironmentHealthAttribute
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EnvironmentHealthAttribute -> [Header]
$ctoHeader :: HeaderName -> EnvironmentHealthAttribute -> [Header]
Core.ToHeader,
      EnvironmentHealthAttribute -> QueryString
(EnvironmentHealthAttribute -> QueryString)
-> ToQuery EnvironmentHealthAttribute
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EnvironmentHealthAttribute -> QueryString
$ctoQuery :: EnvironmentHealthAttribute -> QueryString
Core.ToQuery,
      Value -> Parser [EnvironmentHealthAttribute]
Value -> Parser EnvironmentHealthAttribute
(Value -> Parser EnvironmentHealthAttribute)
-> (Value -> Parser [EnvironmentHealthAttribute])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [EnvironmentHealthAttribute]
FromJSONKeyFunction EnvironmentHealthAttribute
FromJSONKeyFunction EnvironmentHealthAttribute
-> FromJSONKeyFunction [EnvironmentHealthAttribute]
-> FromJSONKey EnvironmentHealthAttribute
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EnvironmentHealthAttribute]
$cfromJSONKeyList :: FromJSONKeyFunction [EnvironmentHealthAttribute]
fromJSONKey :: FromJSONKeyFunction EnvironmentHealthAttribute
$cfromJSONKey :: FromJSONKeyFunction EnvironmentHealthAttribute
Core.FromJSONKey,
      [EnvironmentHealthAttribute] -> Encoding
[EnvironmentHealthAttribute] -> Value
EnvironmentHealthAttribute -> Encoding
EnvironmentHealthAttribute -> Value
(EnvironmentHealthAttribute -> Value)
-> (EnvironmentHealthAttribute -> Encoding)
-> ([EnvironmentHealthAttribute] -> Value)
-> ([EnvironmentHealthAttribute] -> Encoding)
-> ToJSON EnvironmentHealthAttribute
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
Core.ToJSON,
      ToJSONKeyFunction [EnvironmentHealthAttribute]
ToJSONKeyFunction EnvironmentHealthAttribute
ToJSONKeyFunction EnvironmentHealthAttribute
-> ToJSONKeyFunction [EnvironmentHealthAttribute]
-> ToJSONKey EnvironmentHealthAttribute
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EnvironmentHealthAttribute]
$ctoJSONKeyList :: ToJSONKeyFunction [EnvironmentHealthAttribute]
toJSONKey :: ToJSONKeyFunction EnvironmentHealthAttribute
$ctoJSONKey :: ToJSONKeyFunction EnvironmentHealthAttribute
Core.ToJSONKey,
      [Node] -> Either String EnvironmentHealthAttribute
([Node] -> Either String EnvironmentHealthAttribute)
-> FromXML EnvironmentHealthAttribute
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EnvironmentHealthAttribute
$cparseXML :: [Node] -> Either String EnvironmentHealthAttribute
Core.FromXML,
      EnvironmentHealthAttribute -> XML
(EnvironmentHealthAttribute -> XML)
-> ToXML EnvironmentHealthAttribute
forall a. (a -> XML) -> ToXML a
toXML :: EnvironmentHealthAttribute -> XML
$ctoXML :: EnvironmentHealthAttribute -> XML
Core.ToXML
    )

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

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

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

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

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

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

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

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

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