{-# 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.HealthCheckType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Route53AutoNaming.Types.HealthCheckType
  ( HealthCheckType
      ( ..,
        HealthCheckType_HTTP,
        HealthCheckType_HTTPS,
        HealthCheckType_TCP
      ),
  )
where

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

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

pattern HealthCheckType_HTTP :: HealthCheckType
pattern $bHealthCheckType_HTTP :: HealthCheckType
$mHealthCheckType_HTTP :: forall r. HealthCheckType -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckType_HTTP = HealthCheckType' "HTTP"

pattern HealthCheckType_HTTPS :: HealthCheckType
pattern $bHealthCheckType_HTTPS :: HealthCheckType
$mHealthCheckType_HTTPS :: forall r. HealthCheckType -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckType_HTTPS = HealthCheckType' "HTTPS"

pattern HealthCheckType_TCP :: HealthCheckType
pattern $bHealthCheckType_TCP :: HealthCheckType
$mHealthCheckType_TCP :: forall r. HealthCheckType -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckType_TCP = HealthCheckType' "TCP"

{-# COMPLETE
  HealthCheckType_HTTP,
  HealthCheckType_HTTPS,
  HealthCheckType_TCP,
  HealthCheckType'
  #-}