{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Panorama.Types.ApplicationInstanceHealthStatus
( ApplicationInstanceHealthStatus
( ..,
ApplicationInstanceHealthStatus_ERROR,
ApplicationInstanceHealthStatus_NOT_AVAILABLE,
ApplicationInstanceHealthStatus_RUNNING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ApplicationInstanceHealthStatus = ApplicationInstanceHealthStatus'
{ ApplicationInstanceHealthStatus -> Text
fromApplicationInstanceHealthStatus ::
Core.Text
}
deriving stock
( Int -> ApplicationInstanceHealthStatus -> ShowS
[ApplicationInstanceHealthStatus] -> ShowS
ApplicationInstanceHealthStatus -> String
(Int -> ApplicationInstanceHealthStatus -> ShowS)
-> (ApplicationInstanceHealthStatus -> String)
-> ([ApplicationInstanceHealthStatus] -> ShowS)
-> Show ApplicationInstanceHealthStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationInstanceHealthStatus] -> ShowS
$cshowList :: [ApplicationInstanceHealthStatus] -> ShowS
show :: ApplicationInstanceHealthStatus -> String
$cshow :: ApplicationInstanceHealthStatus -> String
showsPrec :: Int -> ApplicationInstanceHealthStatus -> ShowS
$cshowsPrec :: Int -> ApplicationInstanceHealthStatus -> ShowS
Prelude.Show,
ReadPrec [ApplicationInstanceHealthStatus]
ReadPrec ApplicationInstanceHealthStatus
Int -> ReadS ApplicationInstanceHealthStatus
ReadS [ApplicationInstanceHealthStatus]
(Int -> ReadS ApplicationInstanceHealthStatus)
-> ReadS [ApplicationInstanceHealthStatus]
-> ReadPrec ApplicationInstanceHealthStatus
-> ReadPrec [ApplicationInstanceHealthStatus]
-> Read ApplicationInstanceHealthStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationInstanceHealthStatus]
$creadListPrec :: ReadPrec [ApplicationInstanceHealthStatus]
readPrec :: ReadPrec ApplicationInstanceHealthStatus
$creadPrec :: ReadPrec ApplicationInstanceHealthStatus
readList :: ReadS [ApplicationInstanceHealthStatus]
$creadList :: ReadS [ApplicationInstanceHealthStatus]
readsPrec :: Int -> ReadS ApplicationInstanceHealthStatus
$creadsPrec :: Int -> ReadS ApplicationInstanceHealthStatus
Prelude.Read,
ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
(ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool)
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool)
-> Eq ApplicationInstanceHealthStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
$c/= :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
== :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
$c== :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
Prelude.Eq,
Eq ApplicationInstanceHealthStatus
Eq ApplicationInstanceHealthStatus
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Ordering)
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool)
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool)
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool)
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool)
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus)
-> (ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus)
-> Ord ApplicationInstanceHealthStatus
ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Ordering
ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
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 :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
$cmin :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
max :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
$cmax :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus
>= :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
$c>= :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
> :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
$c> :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
<= :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
$c<= :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
< :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
$c< :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Bool
compare :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Ordering
$ccompare :: ApplicationInstanceHealthStatus
-> ApplicationInstanceHealthStatus -> Ordering
$cp1Ord :: Eq ApplicationInstanceHealthStatus
Prelude.Ord,
(forall x.
ApplicationInstanceHealthStatus
-> Rep ApplicationInstanceHealthStatus x)
-> (forall x.
Rep ApplicationInstanceHealthStatus x
-> ApplicationInstanceHealthStatus)
-> Generic ApplicationInstanceHealthStatus
forall x.
Rep ApplicationInstanceHealthStatus x
-> ApplicationInstanceHealthStatus
forall x.
ApplicationInstanceHealthStatus
-> Rep ApplicationInstanceHealthStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ApplicationInstanceHealthStatus x
-> ApplicationInstanceHealthStatus
$cfrom :: forall x.
ApplicationInstanceHealthStatus
-> Rep ApplicationInstanceHealthStatus x
Prelude.Generic
)
deriving newtype
( Int -> ApplicationInstanceHealthStatus -> Int
ApplicationInstanceHealthStatus -> Int
(Int -> ApplicationInstanceHealthStatus -> Int)
-> (ApplicationInstanceHealthStatus -> Int)
-> Hashable ApplicationInstanceHealthStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ApplicationInstanceHealthStatus -> Int
$chash :: ApplicationInstanceHealthStatus -> Int
hashWithSalt :: Int -> ApplicationInstanceHealthStatus -> Int
$chashWithSalt :: Int -> ApplicationInstanceHealthStatus -> Int
Prelude.Hashable,
ApplicationInstanceHealthStatus -> ()
(ApplicationInstanceHealthStatus -> ())
-> NFData ApplicationInstanceHealthStatus
forall a. (a -> ()) -> NFData a
rnf :: ApplicationInstanceHealthStatus -> ()
$crnf :: ApplicationInstanceHealthStatus -> ()
Prelude.NFData,
Text -> Either String ApplicationInstanceHealthStatus
(Text -> Either String ApplicationInstanceHealthStatus)
-> FromText ApplicationInstanceHealthStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ApplicationInstanceHealthStatus
$cfromText :: Text -> Either String ApplicationInstanceHealthStatus
Core.FromText,
ApplicationInstanceHealthStatus -> Text
(ApplicationInstanceHealthStatus -> Text)
-> ToText ApplicationInstanceHealthStatus
forall a. (a -> Text) -> ToText a
toText :: ApplicationInstanceHealthStatus -> Text
$ctoText :: ApplicationInstanceHealthStatus -> Text
Core.ToText,
ApplicationInstanceHealthStatus -> ByteString
(ApplicationInstanceHealthStatus -> ByteString)
-> ToByteString ApplicationInstanceHealthStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ApplicationInstanceHealthStatus -> ByteString
$ctoBS :: ApplicationInstanceHealthStatus -> ByteString
Core.ToByteString,
ApplicationInstanceHealthStatus -> ByteStringBuilder
(ApplicationInstanceHealthStatus -> ByteStringBuilder)
-> ToLog ApplicationInstanceHealthStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ApplicationInstanceHealthStatus -> ByteStringBuilder
$cbuild :: ApplicationInstanceHealthStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ApplicationInstanceHealthStatus -> [Header]
(HeaderName -> ApplicationInstanceHealthStatus -> [Header])
-> ToHeader ApplicationInstanceHealthStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ApplicationInstanceHealthStatus -> [Header]
$ctoHeader :: HeaderName -> ApplicationInstanceHealthStatus -> [Header]
Core.ToHeader,
ApplicationInstanceHealthStatus -> QueryString
(ApplicationInstanceHealthStatus -> QueryString)
-> ToQuery ApplicationInstanceHealthStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ApplicationInstanceHealthStatus -> QueryString
$ctoQuery :: ApplicationInstanceHealthStatus -> QueryString
Core.ToQuery,
Value -> Parser [ApplicationInstanceHealthStatus]
Value -> Parser ApplicationInstanceHealthStatus
(Value -> Parser ApplicationInstanceHealthStatus)
-> (Value -> Parser [ApplicationInstanceHealthStatus])
-> FromJSON ApplicationInstanceHealthStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ApplicationInstanceHealthStatus]
$cparseJSONList :: Value -> Parser [ApplicationInstanceHealthStatus]
parseJSON :: Value -> Parser ApplicationInstanceHealthStatus
$cparseJSON :: Value -> Parser ApplicationInstanceHealthStatus
Core.FromJSON,
FromJSONKeyFunction [ApplicationInstanceHealthStatus]
FromJSONKeyFunction ApplicationInstanceHealthStatus
FromJSONKeyFunction ApplicationInstanceHealthStatus
-> FromJSONKeyFunction [ApplicationInstanceHealthStatus]
-> FromJSONKey ApplicationInstanceHealthStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ApplicationInstanceHealthStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ApplicationInstanceHealthStatus]
fromJSONKey :: FromJSONKeyFunction ApplicationInstanceHealthStatus
$cfromJSONKey :: FromJSONKeyFunction ApplicationInstanceHealthStatus
Core.FromJSONKey,
[ApplicationInstanceHealthStatus] -> Encoding
[ApplicationInstanceHealthStatus] -> Value
ApplicationInstanceHealthStatus -> Encoding
ApplicationInstanceHealthStatus -> Value
(ApplicationInstanceHealthStatus -> Value)
-> (ApplicationInstanceHealthStatus -> Encoding)
-> ([ApplicationInstanceHealthStatus] -> Value)
-> ([ApplicationInstanceHealthStatus] -> Encoding)
-> ToJSON ApplicationInstanceHealthStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ApplicationInstanceHealthStatus] -> Encoding
$ctoEncodingList :: [ApplicationInstanceHealthStatus] -> Encoding
toJSONList :: [ApplicationInstanceHealthStatus] -> Value
$ctoJSONList :: [ApplicationInstanceHealthStatus] -> Value
toEncoding :: ApplicationInstanceHealthStatus -> Encoding
$ctoEncoding :: ApplicationInstanceHealthStatus -> Encoding
toJSON :: ApplicationInstanceHealthStatus -> Value
$ctoJSON :: ApplicationInstanceHealthStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ApplicationInstanceHealthStatus]
ToJSONKeyFunction ApplicationInstanceHealthStatus
ToJSONKeyFunction ApplicationInstanceHealthStatus
-> ToJSONKeyFunction [ApplicationInstanceHealthStatus]
-> ToJSONKey ApplicationInstanceHealthStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ApplicationInstanceHealthStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ApplicationInstanceHealthStatus]
toJSONKey :: ToJSONKeyFunction ApplicationInstanceHealthStatus
$ctoJSONKey :: ToJSONKeyFunction ApplicationInstanceHealthStatus
Core.ToJSONKey,
[Node] -> Either String ApplicationInstanceHealthStatus
([Node] -> Either String ApplicationInstanceHealthStatus)
-> FromXML ApplicationInstanceHealthStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ApplicationInstanceHealthStatus
$cparseXML :: [Node] -> Either String ApplicationInstanceHealthStatus
Core.FromXML,
ApplicationInstanceHealthStatus -> XML
(ApplicationInstanceHealthStatus -> XML)
-> ToXML ApplicationInstanceHealthStatus
forall a. (a -> XML) -> ToXML a
toXML :: ApplicationInstanceHealthStatus -> XML
$ctoXML :: ApplicationInstanceHealthStatus -> XML
Core.ToXML
)
pattern ApplicationInstanceHealthStatus_ERROR :: ApplicationInstanceHealthStatus
pattern $bApplicationInstanceHealthStatus_ERROR :: ApplicationInstanceHealthStatus
$mApplicationInstanceHealthStatus_ERROR :: forall r.
ApplicationInstanceHealthStatus
-> (Void# -> r) -> (Void# -> r) -> r
ApplicationInstanceHealthStatus_ERROR = ApplicationInstanceHealthStatus' "ERROR"
pattern ApplicationInstanceHealthStatus_NOT_AVAILABLE :: ApplicationInstanceHealthStatus
pattern $bApplicationInstanceHealthStatus_NOT_AVAILABLE :: ApplicationInstanceHealthStatus
$mApplicationInstanceHealthStatus_NOT_AVAILABLE :: forall r.
ApplicationInstanceHealthStatus
-> (Void# -> r) -> (Void# -> r) -> r
ApplicationInstanceHealthStatus_NOT_AVAILABLE = ApplicationInstanceHealthStatus' "NOT_AVAILABLE"
pattern ApplicationInstanceHealthStatus_RUNNING :: ApplicationInstanceHealthStatus
pattern $bApplicationInstanceHealthStatus_RUNNING :: ApplicationInstanceHealthStatus
$mApplicationInstanceHealthStatus_RUNNING :: forall r.
ApplicationInstanceHealthStatus
-> (Void# -> r) -> (Void# -> r) -> r
ApplicationInstanceHealthStatus_RUNNING = ApplicationInstanceHealthStatus' "RUNNING"
{-# COMPLETE
ApplicationInstanceHealthStatus_ERROR,
ApplicationInstanceHealthStatus_NOT_AVAILABLE,
ApplicationInstanceHealthStatus_RUNNING,
ApplicationInstanceHealthStatus'
#-}