{-# 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.Route53AutoNaming.Types.CustomHealthStatus
-- 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.Route53AutoNaming.Types.CustomHealthStatus
  ( CustomHealthStatus
      ( ..,
        CustomHealthStatus_HEALTHY,
        CustomHealthStatus_UNHEALTHY
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CustomHealthStatus = CustomHealthStatus'
  { CustomHealthStatus -> Text
fromCustomHealthStatus ::
      Data.Text
  }
  deriving stock
    ( Int -> CustomHealthStatus -> ShowS
[CustomHealthStatus] -> ShowS
CustomHealthStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CustomHealthStatus] -> ShowS
$cshowList :: [CustomHealthStatus] -> ShowS
show :: CustomHealthStatus -> String
$cshow :: CustomHealthStatus -> String
showsPrec :: Int -> CustomHealthStatus -> ShowS
$cshowsPrec :: Int -> CustomHealthStatus -> ShowS
Prelude.Show,
      ReadPrec [CustomHealthStatus]
ReadPrec CustomHealthStatus
Int -> ReadS CustomHealthStatus
ReadS [CustomHealthStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CustomHealthStatus]
$creadListPrec :: ReadPrec [CustomHealthStatus]
readPrec :: ReadPrec CustomHealthStatus
$creadPrec :: ReadPrec CustomHealthStatus
readList :: ReadS [CustomHealthStatus]
$creadList :: ReadS [CustomHealthStatus]
readsPrec :: Int -> ReadS CustomHealthStatus
$creadsPrec :: Int -> ReadS CustomHealthStatus
Prelude.Read,
      CustomHealthStatus -> CustomHealthStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CustomHealthStatus -> CustomHealthStatus -> Bool
$c/= :: CustomHealthStatus -> CustomHealthStatus -> Bool
== :: CustomHealthStatus -> CustomHealthStatus -> Bool
$c== :: CustomHealthStatus -> CustomHealthStatus -> Bool
Prelude.Eq,
      Eq CustomHealthStatus
CustomHealthStatus -> CustomHealthStatus -> Bool
CustomHealthStatus -> CustomHealthStatus -> Ordering
CustomHealthStatus -> CustomHealthStatus -> CustomHealthStatus
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 :: CustomHealthStatus -> CustomHealthStatus -> CustomHealthStatus
$cmin :: CustomHealthStatus -> CustomHealthStatus -> CustomHealthStatus
max :: CustomHealthStatus -> CustomHealthStatus -> CustomHealthStatus
$cmax :: CustomHealthStatus -> CustomHealthStatus -> CustomHealthStatus
>= :: CustomHealthStatus -> CustomHealthStatus -> Bool
$c>= :: CustomHealthStatus -> CustomHealthStatus -> Bool
> :: CustomHealthStatus -> CustomHealthStatus -> Bool
$c> :: CustomHealthStatus -> CustomHealthStatus -> Bool
<= :: CustomHealthStatus -> CustomHealthStatus -> Bool
$c<= :: CustomHealthStatus -> CustomHealthStatus -> Bool
< :: CustomHealthStatus -> CustomHealthStatus -> Bool
$c< :: CustomHealthStatus -> CustomHealthStatus -> Bool
compare :: CustomHealthStatus -> CustomHealthStatus -> Ordering
$ccompare :: CustomHealthStatus -> CustomHealthStatus -> Ordering
Prelude.Ord,
      forall x. Rep CustomHealthStatus x -> CustomHealthStatus
forall x. CustomHealthStatus -> Rep CustomHealthStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CustomHealthStatus x -> CustomHealthStatus
$cfrom :: forall x. CustomHealthStatus -> Rep CustomHealthStatus x
Prelude.Generic
    )
  deriving newtype
    ( Eq CustomHealthStatus
Int -> CustomHealthStatus -> Int
CustomHealthStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CustomHealthStatus -> Int
$chash :: CustomHealthStatus -> Int
hashWithSalt :: Int -> CustomHealthStatus -> Int
$chashWithSalt :: Int -> CustomHealthStatus -> Int
Prelude.Hashable,
      CustomHealthStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: CustomHealthStatus -> ()
$crnf :: CustomHealthStatus -> ()
Prelude.NFData,
      Text -> Either String CustomHealthStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CustomHealthStatus
$cfromText :: Text -> Either String CustomHealthStatus
Data.FromText,
      CustomHealthStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: CustomHealthStatus -> Text
$ctoText :: CustomHealthStatus -> Text
Data.ToText,
      CustomHealthStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CustomHealthStatus -> ByteString
$ctoBS :: CustomHealthStatus -> ByteString
Data.ToByteString,
      CustomHealthStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CustomHealthStatus -> ByteStringBuilder
$cbuild :: CustomHealthStatus -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CustomHealthStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CustomHealthStatus -> [Header]
$ctoHeader :: HeaderName -> CustomHealthStatus -> [Header]
Data.ToHeader,
      CustomHealthStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CustomHealthStatus -> QueryString
$ctoQuery :: CustomHealthStatus -> QueryString
Data.ToQuery,
      Value -> Parser [CustomHealthStatus]
Value -> Parser CustomHealthStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CustomHealthStatus]
$cparseJSONList :: Value -> Parser [CustomHealthStatus]
parseJSON :: Value -> Parser CustomHealthStatus
$cparseJSON :: Value -> Parser CustomHealthStatus
Data.FromJSON,
      FromJSONKeyFunction [CustomHealthStatus]
FromJSONKeyFunction CustomHealthStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CustomHealthStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [CustomHealthStatus]
fromJSONKey :: FromJSONKeyFunction CustomHealthStatus
$cfromJSONKey :: FromJSONKeyFunction CustomHealthStatus
Data.FromJSONKey,
      [CustomHealthStatus] -> Encoding
[CustomHealthStatus] -> Value
CustomHealthStatus -> Encoding
CustomHealthStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CustomHealthStatus] -> Encoding
$ctoEncodingList :: [CustomHealthStatus] -> Encoding
toJSONList :: [CustomHealthStatus] -> Value
$ctoJSONList :: [CustomHealthStatus] -> Value
toEncoding :: CustomHealthStatus -> Encoding
$ctoEncoding :: CustomHealthStatus -> Encoding
toJSON :: CustomHealthStatus -> Value
$ctoJSON :: CustomHealthStatus -> Value
Data.ToJSON,
      ToJSONKeyFunction [CustomHealthStatus]
ToJSONKeyFunction CustomHealthStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CustomHealthStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [CustomHealthStatus]
toJSONKey :: ToJSONKeyFunction CustomHealthStatus
$ctoJSONKey :: ToJSONKeyFunction CustomHealthStatus
Data.ToJSONKey,
      [Node] -> Either String CustomHealthStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CustomHealthStatus
$cparseXML :: [Node] -> Either String CustomHealthStatus
Data.FromXML,
      CustomHealthStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CustomHealthStatus -> XML
$ctoXML :: CustomHealthStatus -> XML
Data.ToXML
    )

pattern CustomHealthStatus_HEALTHY :: CustomHealthStatus
pattern $bCustomHealthStatus_HEALTHY :: CustomHealthStatus
$mCustomHealthStatus_HEALTHY :: forall {r}. CustomHealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CustomHealthStatus_HEALTHY = CustomHealthStatus' "HEALTHY"

pattern CustomHealthStatus_UNHEALTHY :: CustomHealthStatus
pattern $bCustomHealthStatus_UNHEALTHY :: CustomHealthStatus
$mCustomHealthStatus_UNHEALTHY :: forall {r}. CustomHealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CustomHealthStatus_UNHEALTHY = CustomHealthStatus' "UNHEALTHY"

{-# COMPLETE
  CustomHealthStatus_HEALTHY,
  CustomHealthStatus_UNHEALTHY,
  CustomHealthStatus'
  #-}