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