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