{-# 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.Inspector.Types.AgentHealthCode
-- 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.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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern AgentHealthCode_IDLE :: AgentHealthCode
pattern $bAgentHealthCode_IDLE :: AgentHealthCode
$mAgentHealthCode_IDLE :: forall {r}. AgentHealthCode -> ((# #) -> r) -> ((# #) -> r) -> r
AgentHealthCode_IDLE = AgentHealthCode' "IDLE"

pattern AgentHealthCode_RUNNING :: AgentHealthCode
pattern $bAgentHealthCode_RUNNING :: AgentHealthCode
$mAgentHealthCode_RUNNING :: forall {r}. AgentHealthCode -> ((# #) -> r) -> ((# #) -> r) -> r
AgentHealthCode_RUNNING = AgentHealthCode' "RUNNING"

pattern AgentHealthCode_SHUTDOWN :: AgentHealthCode
pattern $bAgentHealthCode_SHUTDOWN :: AgentHealthCode
$mAgentHealthCode_SHUTDOWN :: forall {r}. AgentHealthCode -> ((# #) -> r) -> ((# #) -> r) -> r
AgentHealthCode_SHUTDOWN = AgentHealthCode' "SHUTDOWN"

pattern AgentHealthCode_THROTTLED :: AgentHealthCode
pattern $bAgentHealthCode_THROTTLED :: AgentHealthCode
$mAgentHealthCode_THROTTLED :: forall {r}. AgentHealthCode -> ((# #) -> r) -> ((# #) -> r) -> r
AgentHealthCode_THROTTLED = AgentHealthCode' "THROTTLED"

pattern AgentHealthCode_UNHEALTHY :: AgentHealthCode
pattern $bAgentHealthCode_UNHEALTHY :: AgentHealthCode
$mAgentHealthCode_UNHEALTHY :: forall {r}. AgentHealthCode -> ((# #) -> r) -> ((# #) -> r) -> r
AgentHealthCode_UNHEALTHY = AgentHealthCode' "UNHEALTHY"

pattern AgentHealthCode_UNKNOWN :: AgentHealthCode
pattern $bAgentHealthCode_UNKNOWN :: AgentHealthCode
$mAgentHealthCode_UNKNOWN :: forall {r}. AgentHealthCode -> ((# #) -> r) -> ((# #) -> r) -> r
AgentHealthCode_UNKNOWN = AgentHealthCode' "UNKNOWN"

{-# COMPLETE
  AgentHealthCode_IDLE,
  AgentHealthCode_RUNNING,
  AgentHealthCode_SHUTDOWN,
  AgentHealthCode_THROTTLED,
  AgentHealthCode_UNHEALTHY,
  AgentHealthCode_UNKNOWN,
  AgentHealthCode'
  #-}