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