{-# 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.KafkaConnect.Types.KafkaClusterEncryptionInTransitType
-- 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.KafkaConnect.Types.KafkaClusterEncryptionInTransitType
  ( KafkaClusterEncryptionInTransitType
      ( ..,
        KafkaClusterEncryptionInTransitType_PLAINTEXT,
        KafkaClusterEncryptionInTransitType_TLS
      ),
  )
where

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

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

pattern KafkaClusterEncryptionInTransitType_PLAINTEXT :: KafkaClusterEncryptionInTransitType
pattern $bKafkaClusterEncryptionInTransitType_PLAINTEXT :: KafkaClusterEncryptionInTransitType
$mKafkaClusterEncryptionInTransitType_PLAINTEXT :: forall r.
KafkaClusterEncryptionInTransitType
-> (Void# -> r) -> (Void# -> r) -> r
KafkaClusterEncryptionInTransitType_PLAINTEXT = KafkaClusterEncryptionInTransitType' "PLAINTEXT"

pattern KafkaClusterEncryptionInTransitType_TLS :: KafkaClusterEncryptionInTransitType
pattern $bKafkaClusterEncryptionInTransitType_TLS :: KafkaClusterEncryptionInTransitType
$mKafkaClusterEncryptionInTransitType_TLS :: forall r.
KafkaClusterEncryptionInTransitType
-> (Void# -> r) -> (Void# -> r) -> r
KafkaClusterEncryptionInTransitType_TLS = KafkaClusterEncryptionInTransitType' "TLS"

{-# COMPLETE
  KafkaClusterEncryptionInTransitType_PLAINTEXT,
  KafkaClusterEncryptionInTransitType_TLS,
  KafkaClusterEncryptionInTransitType'
  #-}