{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ELBV2.Types.TargetHealthStateEnum
( TargetHealthStateEnum
( ..,
TargetHealthStateEnum_Draining,
TargetHealthStateEnum_Healthy,
TargetHealthStateEnum_Initial,
TargetHealthStateEnum_Unavailable,
TargetHealthStateEnum_Unhealthy,
TargetHealthStateEnum_Unused
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TargetHealthStateEnum = TargetHealthStateEnum'
{ TargetHealthStateEnum -> Text
fromTargetHealthStateEnum ::
Core.Text
}
deriving stock
( Int -> TargetHealthStateEnum -> ShowS
[TargetHealthStateEnum] -> ShowS
TargetHealthStateEnum -> String
(Int -> TargetHealthStateEnum -> ShowS)
-> (TargetHealthStateEnum -> String)
-> ([TargetHealthStateEnum] -> ShowS)
-> Show TargetHealthStateEnum
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetHealthStateEnum] -> ShowS
$cshowList :: [TargetHealthStateEnum] -> ShowS
show :: TargetHealthStateEnum -> String
$cshow :: TargetHealthStateEnum -> String
showsPrec :: Int -> TargetHealthStateEnum -> ShowS
$cshowsPrec :: Int -> TargetHealthStateEnum -> ShowS
Prelude.Show,
ReadPrec [TargetHealthStateEnum]
ReadPrec TargetHealthStateEnum
Int -> ReadS TargetHealthStateEnum
ReadS [TargetHealthStateEnum]
(Int -> ReadS TargetHealthStateEnum)
-> ReadS [TargetHealthStateEnum]
-> ReadPrec TargetHealthStateEnum
-> ReadPrec [TargetHealthStateEnum]
-> Read TargetHealthStateEnum
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetHealthStateEnum]
$creadListPrec :: ReadPrec [TargetHealthStateEnum]
readPrec :: ReadPrec TargetHealthStateEnum
$creadPrec :: ReadPrec TargetHealthStateEnum
readList :: ReadS [TargetHealthStateEnum]
$creadList :: ReadS [TargetHealthStateEnum]
readsPrec :: Int -> ReadS TargetHealthStateEnum
$creadsPrec :: Int -> ReadS TargetHealthStateEnum
Prelude.Read,
TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
(TargetHealthStateEnum -> TargetHealthStateEnum -> Bool)
-> (TargetHealthStateEnum -> TargetHealthStateEnum -> Bool)
-> Eq TargetHealthStateEnum
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
$c/= :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
== :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
$c== :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
Prelude.Eq,
Eq TargetHealthStateEnum
Eq TargetHealthStateEnum
-> (TargetHealthStateEnum -> TargetHealthStateEnum -> Ordering)
-> (TargetHealthStateEnum -> TargetHealthStateEnum -> Bool)
-> (TargetHealthStateEnum -> TargetHealthStateEnum -> Bool)
-> (TargetHealthStateEnum -> TargetHealthStateEnum -> Bool)
-> (TargetHealthStateEnum -> TargetHealthStateEnum -> Bool)
-> (TargetHealthStateEnum
-> TargetHealthStateEnum -> TargetHealthStateEnum)
-> (TargetHealthStateEnum
-> TargetHealthStateEnum -> TargetHealthStateEnum)
-> Ord TargetHealthStateEnum
TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
TargetHealthStateEnum -> TargetHealthStateEnum -> Ordering
TargetHealthStateEnum
-> TargetHealthStateEnum -> TargetHealthStateEnum
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 :: TargetHealthStateEnum
-> TargetHealthStateEnum -> TargetHealthStateEnum
$cmin :: TargetHealthStateEnum
-> TargetHealthStateEnum -> TargetHealthStateEnum
max :: TargetHealthStateEnum
-> TargetHealthStateEnum -> TargetHealthStateEnum
$cmax :: TargetHealthStateEnum
-> TargetHealthStateEnum -> TargetHealthStateEnum
>= :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
$c>= :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
> :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
$c> :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
<= :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
$c<= :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
< :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
$c< :: TargetHealthStateEnum -> TargetHealthStateEnum -> Bool
compare :: TargetHealthStateEnum -> TargetHealthStateEnum -> Ordering
$ccompare :: TargetHealthStateEnum -> TargetHealthStateEnum -> Ordering
$cp1Ord :: Eq TargetHealthStateEnum
Prelude.Ord,
(forall x. TargetHealthStateEnum -> Rep TargetHealthStateEnum x)
-> (forall x. Rep TargetHealthStateEnum x -> TargetHealthStateEnum)
-> Generic TargetHealthStateEnum
forall x. Rep TargetHealthStateEnum x -> TargetHealthStateEnum
forall x. TargetHealthStateEnum -> Rep TargetHealthStateEnum x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TargetHealthStateEnum x -> TargetHealthStateEnum
$cfrom :: forall x. TargetHealthStateEnum -> Rep TargetHealthStateEnum x
Prelude.Generic
)
deriving newtype
( Int -> TargetHealthStateEnum -> Int
TargetHealthStateEnum -> Int
(Int -> TargetHealthStateEnum -> Int)
-> (TargetHealthStateEnum -> Int) -> Hashable TargetHealthStateEnum
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TargetHealthStateEnum -> Int
$chash :: TargetHealthStateEnum -> Int
hashWithSalt :: Int -> TargetHealthStateEnum -> Int
$chashWithSalt :: Int -> TargetHealthStateEnum -> Int
Prelude.Hashable,
TargetHealthStateEnum -> ()
(TargetHealthStateEnum -> ()) -> NFData TargetHealthStateEnum
forall a. (a -> ()) -> NFData a
rnf :: TargetHealthStateEnum -> ()
$crnf :: TargetHealthStateEnum -> ()
Prelude.NFData,
Text -> Either String TargetHealthStateEnum
(Text -> Either String TargetHealthStateEnum)
-> FromText TargetHealthStateEnum
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetHealthStateEnum
$cfromText :: Text -> Either String TargetHealthStateEnum
Core.FromText,
TargetHealthStateEnum -> Text
(TargetHealthStateEnum -> Text) -> ToText TargetHealthStateEnum
forall a. (a -> Text) -> ToText a
toText :: TargetHealthStateEnum -> Text
$ctoText :: TargetHealthStateEnum -> Text
Core.ToText,
TargetHealthStateEnum -> ByteString
(TargetHealthStateEnum -> ByteString)
-> ToByteString TargetHealthStateEnum
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetHealthStateEnum -> ByteString
$ctoBS :: TargetHealthStateEnum -> ByteString
Core.ToByteString,
TargetHealthStateEnum -> ByteStringBuilder
(TargetHealthStateEnum -> ByteStringBuilder)
-> ToLog TargetHealthStateEnum
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetHealthStateEnum -> ByteStringBuilder
$cbuild :: TargetHealthStateEnum -> ByteStringBuilder
Core.ToLog,
HeaderName -> TargetHealthStateEnum -> [Header]
(HeaderName -> TargetHealthStateEnum -> [Header])
-> ToHeader TargetHealthStateEnum
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetHealthStateEnum -> [Header]
$ctoHeader :: HeaderName -> TargetHealthStateEnum -> [Header]
Core.ToHeader,
TargetHealthStateEnum -> QueryString
(TargetHealthStateEnum -> QueryString)
-> ToQuery TargetHealthStateEnum
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetHealthStateEnum -> QueryString
$ctoQuery :: TargetHealthStateEnum -> QueryString
Core.ToQuery,
Value -> Parser [TargetHealthStateEnum]
Value -> Parser TargetHealthStateEnum
(Value -> Parser TargetHealthStateEnum)
-> (Value -> Parser [TargetHealthStateEnum])
-> FromJSON TargetHealthStateEnum
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TargetHealthStateEnum]
$cparseJSONList :: Value -> Parser [TargetHealthStateEnum]
parseJSON :: Value -> Parser TargetHealthStateEnum
$cparseJSON :: Value -> Parser TargetHealthStateEnum
Core.FromJSON,
FromJSONKeyFunction [TargetHealthStateEnum]
FromJSONKeyFunction TargetHealthStateEnum
FromJSONKeyFunction TargetHealthStateEnum
-> FromJSONKeyFunction [TargetHealthStateEnum]
-> FromJSONKey TargetHealthStateEnum
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetHealthStateEnum]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetHealthStateEnum]
fromJSONKey :: FromJSONKeyFunction TargetHealthStateEnum
$cfromJSONKey :: FromJSONKeyFunction TargetHealthStateEnum
Core.FromJSONKey,
[TargetHealthStateEnum] -> Encoding
[TargetHealthStateEnum] -> Value
TargetHealthStateEnum -> Encoding
TargetHealthStateEnum -> Value
(TargetHealthStateEnum -> Value)
-> (TargetHealthStateEnum -> Encoding)
-> ([TargetHealthStateEnum] -> Value)
-> ([TargetHealthStateEnum] -> Encoding)
-> ToJSON TargetHealthStateEnum
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TargetHealthStateEnum] -> Encoding
$ctoEncodingList :: [TargetHealthStateEnum] -> Encoding
toJSONList :: [TargetHealthStateEnum] -> Value
$ctoJSONList :: [TargetHealthStateEnum] -> Value
toEncoding :: TargetHealthStateEnum -> Encoding
$ctoEncoding :: TargetHealthStateEnum -> Encoding
toJSON :: TargetHealthStateEnum -> Value
$ctoJSON :: TargetHealthStateEnum -> Value
Core.ToJSON,
ToJSONKeyFunction [TargetHealthStateEnum]
ToJSONKeyFunction TargetHealthStateEnum
ToJSONKeyFunction TargetHealthStateEnum
-> ToJSONKeyFunction [TargetHealthStateEnum]
-> ToJSONKey TargetHealthStateEnum
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetHealthStateEnum]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetHealthStateEnum]
toJSONKey :: ToJSONKeyFunction TargetHealthStateEnum
$ctoJSONKey :: ToJSONKeyFunction TargetHealthStateEnum
Core.ToJSONKey,
[Node] -> Either String TargetHealthStateEnum
([Node] -> Either String TargetHealthStateEnum)
-> FromXML TargetHealthStateEnum
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetHealthStateEnum
$cparseXML :: [Node] -> Either String TargetHealthStateEnum
Core.FromXML,
TargetHealthStateEnum -> XML
(TargetHealthStateEnum -> XML) -> ToXML TargetHealthStateEnum
forall a. (a -> XML) -> ToXML a
toXML :: TargetHealthStateEnum -> XML
$ctoXML :: TargetHealthStateEnum -> XML
Core.ToXML
)
pattern TargetHealthStateEnum_Draining :: TargetHealthStateEnum
pattern $bTargetHealthStateEnum_Draining :: TargetHealthStateEnum
$mTargetHealthStateEnum_Draining :: forall r.
TargetHealthStateEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetHealthStateEnum_Draining = TargetHealthStateEnum' "draining"
pattern TargetHealthStateEnum_Healthy :: TargetHealthStateEnum
pattern $bTargetHealthStateEnum_Healthy :: TargetHealthStateEnum
$mTargetHealthStateEnum_Healthy :: forall r.
TargetHealthStateEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetHealthStateEnum_Healthy = TargetHealthStateEnum' "healthy"
pattern TargetHealthStateEnum_Initial :: TargetHealthStateEnum
pattern $bTargetHealthStateEnum_Initial :: TargetHealthStateEnum
$mTargetHealthStateEnum_Initial :: forall r.
TargetHealthStateEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetHealthStateEnum_Initial = TargetHealthStateEnum' "initial"
pattern TargetHealthStateEnum_Unavailable :: TargetHealthStateEnum
pattern $bTargetHealthStateEnum_Unavailable :: TargetHealthStateEnum
$mTargetHealthStateEnum_Unavailable :: forall r.
TargetHealthStateEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetHealthStateEnum_Unavailable = TargetHealthStateEnum' "unavailable"
pattern TargetHealthStateEnum_Unhealthy :: TargetHealthStateEnum
pattern $bTargetHealthStateEnum_Unhealthy :: TargetHealthStateEnum
$mTargetHealthStateEnum_Unhealthy :: forall r.
TargetHealthStateEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetHealthStateEnum_Unhealthy = TargetHealthStateEnum' "unhealthy"
pattern TargetHealthStateEnum_Unused :: TargetHealthStateEnum
pattern $bTargetHealthStateEnum_Unused :: TargetHealthStateEnum
$mTargetHealthStateEnum_Unused :: forall r.
TargetHealthStateEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetHealthStateEnum_Unused = TargetHealthStateEnum' "unused"
{-# COMPLETE
TargetHealthStateEnum_Draining,
TargetHealthStateEnum_Healthy,
TargetHealthStateEnum_Initial,
TargetHealthStateEnum_Unavailable,
TargetHealthStateEnum_Unhealthy,
TargetHealthStateEnum_Unused,
TargetHealthStateEnum'
#-}