{-# 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.Lambda.Types.EndPointType
-- 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.Lambda.Types.EndPointType
  ( EndPointType
      ( ..,
        EndPointType_KAFKA_BOOTSTRAP_SERVERS
      ),
  )
where

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

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

pattern EndPointType_KAFKA_BOOTSTRAP_SERVERS :: EndPointType
pattern $bEndPointType_KAFKA_BOOTSTRAP_SERVERS :: EndPointType
$mEndPointType_KAFKA_BOOTSTRAP_SERVERS :: forall r. EndPointType -> (Void# -> r) -> (Void# -> r) -> r
EndPointType_KAFKA_BOOTSTRAP_SERVERS = EndPointType' "KAFKA_BOOTSTRAP_SERVERS"

{-# COMPLETE
  EndPointType_KAFKA_BOOTSTRAP_SERVERS,
  EndPointType'
  #-}