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