{-# 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.KafkaClusterClientAuthenticationType
-- 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.KafkaClusterClientAuthenticationType
  ( KafkaClusterClientAuthenticationType
      ( ..,
        KafkaClusterClientAuthenticationType_IAM,
        KafkaClusterClientAuthenticationType_NONE
      ),
  )
where

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

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

pattern KafkaClusterClientAuthenticationType_IAM :: KafkaClusterClientAuthenticationType
pattern $bKafkaClusterClientAuthenticationType_IAM :: KafkaClusterClientAuthenticationType
$mKafkaClusterClientAuthenticationType_IAM :: forall r.
KafkaClusterClientAuthenticationType
-> (Void# -> r) -> (Void# -> r) -> r
KafkaClusterClientAuthenticationType_IAM = KafkaClusterClientAuthenticationType' "IAM"

pattern KafkaClusterClientAuthenticationType_NONE :: KafkaClusterClientAuthenticationType
pattern $bKafkaClusterClientAuthenticationType_NONE :: KafkaClusterClientAuthenticationType
$mKafkaClusterClientAuthenticationType_NONE :: forall r.
KafkaClusterClientAuthenticationType
-> (Void# -> r) -> (Void# -> r) -> r
KafkaClusterClientAuthenticationType_NONE = KafkaClusterClientAuthenticationType' "NONE"

{-# COMPLETE
  KafkaClusterClientAuthenticationType_IAM,
  KafkaClusterClientAuthenticationType_NONE,
  KafkaClusterClientAuthenticationType'
  #-}