{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Glue.Types.ConnectionType
( ConnectionType
( ..,
ConnectionType_CUSTOM,
ConnectionType_JDBC,
ConnectionType_KAFKA,
ConnectionType_MARKETPLACE,
ConnectionType_MONGODB,
ConnectionType_NETWORK,
ConnectionType_SFTP
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ConnectionType = ConnectionType'
{ ConnectionType -> Text
fromConnectionType ::
Core.Text
}
deriving stock
( Int -> ConnectionType -> ShowS
[ConnectionType] -> ShowS
ConnectionType -> String
(Int -> ConnectionType -> ShowS)
-> (ConnectionType -> String)
-> ([ConnectionType] -> ShowS)
-> Show ConnectionType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConnectionType] -> ShowS
$cshowList :: [ConnectionType] -> ShowS
show :: ConnectionType -> String
$cshow :: ConnectionType -> String
showsPrec :: Int -> ConnectionType -> ShowS
$cshowsPrec :: Int -> ConnectionType -> ShowS
Prelude.Show,
ReadPrec [ConnectionType]
ReadPrec ConnectionType
Int -> ReadS ConnectionType
ReadS [ConnectionType]
(Int -> ReadS ConnectionType)
-> ReadS [ConnectionType]
-> ReadPrec ConnectionType
-> ReadPrec [ConnectionType]
-> Read ConnectionType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConnectionType]
$creadListPrec :: ReadPrec [ConnectionType]
readPrec :: ReadPrec ConnectionType
$creadPrec :: ReadPrec ConnectionType
readList :: ReadS [ConnectionType]
$creadList :: ReadS [ConnectionType]
readsPrec :: Int -> ReadS ConnectionType
$creadsPrec :: Int -> ReadS ConnectionType
Prelude.Read,
ConnectionType -> ConnectionType -> Bool
(ConnectionType -> ConnectionType -> Bool)
-> (ConnectionType -> ConnectionType -> Bool) -> Eq ConnectionType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConnectionType -> ConnectionType -> Bool
$c/= :: ConnectionType -> ConnectionType -> Bool
== :: ConnectionType -> ConnectionType -> Bool
$c== :: ConnectionType -> ConnectionType -> Bool
Prelude.Eq,
Eq ConnectionType
Eq ConnectionType
-> (ConnectionType -> ConnectionType -> Ordering)
-> (ConnectionType -> ConnectionType -> Bool)
-> (ConnectionType -> ConnectionType -> Bool)
-> (ConnectionType -> ConnectionType -> Bool)
-> (ConnectionType -> ConnectionType -> Bool)
-> (ConnectionType -> ConnectionType -> ConnectionType)
-> (ConnectionType -> ConnectionType -> ConnectionType)
-> Ord ConnectionType
ConnectionType -> ConnectionType -> Bool
ConnectionType -> ConnectionType -> Ordering
ConnectionType -> ConnectionType -> ConnectionType
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 :: ConnectionType -> ConnectionType -> ConnectionType
$cmin :: ConnectionType -> ConnectionType -> ConnectionType
max :: ConnectionType -> ConnectionType -> ConnectionType
$cmax :: ConnectionType -> ConnectionType -> ConnectionType
>= :: ConnectionType -> ConnectionType -> Bool
$c>= :: ConnectionType -> ConnectionType -> Bool
> :: ConnectionType -> ConnectionType -> Bool
$c> :: ConnectionType -> ConnectionType -> Bool
<= :: ConnectionType -> ConnectionType -> Bool
$c<= :: ConnectionType -> ConnectionType -> Bool
< :: ConnectionType -> ConnectionType -> Bool
$c< :: ConnectionType -> ConnectionType -> Bool
compare :: ConnectionType -> ConnectionType -> Ordering
$ccompare :: ConnectionType -> ConnectionType -> Ordering
$cp1Ord :: Eq ConnectionType
Prelude.Ord,
(forall x. ConnectionType -> Rep ConnectionType x)
-> (forall x. Rep ConnectionType x -> ConnectionType)
-> Generic ConnectionType
forall x. Rep ConnectionType x -> ConnectionType
forall x. ConnectionType -> Rep ConnectionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ConnectionType x -> ConnectionType
$cfrom :: forall x. ConnectionType -> Rep ConnectionType x
Prelude.Generic
)
deriving newtype
( Int -> ConnectionType -> Int
ConnectionType -> Int
(Int -> ConnectionType -> Int)
-> (ConnectionType -> Int) -> Hashable ConnectionType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ConnectionType -> Int
$chash :: ConnectionType -> Int
hashWithSalt :: Int -> ConnectionType -> Int
$chashWithSalt :: Int -> ConnectionType -> Int
Prelude.Hashable,
ConnectionType -> ()
(ConnectionType -> ()) -> NFData ConnectionType
forall a. (a -> ()) -> NFData a
rnf :: ConnectionType -> ()
$crnf :: ConnectionType -> ()
Prelude.NFData,
Text -> Either String ConnectionType
(Text -> Either String ConnectionType) -> FromText ConnectionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConnectionType
$cfromText :: Text -> Either String ConnectionType
Core.FromText,
ConnectionType -> Text
(ConnectionType -> Text) -> ToText ConnectionType
forall a. (a -> Text) -> ToText a
toText :: ConnectionType -> Text
$ctoText :: ConnectionType -> Text
Core.ToText,
ConnectionType -> ByteString
(ConnectionType -> ByteString) -> ToByteString ConnectionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConnectionType -> ByteString
$ctoBS :: ConnectionType -> ByteString
Core.ToByteString,
ConnectionType -> ByteStringBuilder
(ConnectionType -> ByteStringBuilder) -> ToLog ConnectionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConnectionType -> ByteStringBuilder
$cbuild :: ConnectionType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ConnectionType -> [Header]
(HeaderName -> ConnectionType -> [Header])
-> ToHeader ConnectionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConnectionType -> [Header]
$ctoHeader :: HeaderName -> ConnectionType -> [Header]
Core.ToHeader,
ConnectionType -> QueryString
(ConnectionType -> QueryString) -> ToQuery ConnectionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConnectionType -> QueryString
$ctoQuery :: ConnectionType -> QueryString
Core.ToQuery,
Value -> Parser [ConnectionType]
Value -> Parser ConnectionType
(Value -> Parser ConnectionType)
-> (Value -> Parser [ConnectionType]) -> FromJSON ConnectionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ConnectionType]
$cparseJSONList :: Value -> Parser [ConnectionType]
parseJSON :: Value -> Parser ConnectionType
$cparseJSON :: Value -> Parser ConnectionType
Core.FromJSON,
FromJSONKeyFunction [ConnectionType]
FromJSONKeyFunction ConnectionType
FromJSONKeyFunction ConnectionType
-> FromJSONKeyFunction [ConnectionType]
-> FromJSONKey ConnectionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConnectionType]
$cfromJSONKeyList :: FromJSONKeyFunction [ConnectionType]
fromJSONKey :: FromJSONKeyFunction ConnectionType
$cfromJSONKey :: FromJSONKeyFunction ConnectionType
Core.FromJSONKey,
[ConnectionType] -> Encoding
[ConnectionType] -> Value
ConnectionType -> Encoding
ConnectionType -> Value
(ConnectionType -> Value)
-> (ConnectionType -> Encoding)
-> ([ConnectionType] -> Value)
-> ([ConnectionType] -> Encoding)
-> ToJSON ConnectionType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ConnectionType] -> Encoding
$ctoEncodingList :: [ConnectionType] -> Encoding
toJSONList :: [ConnectionType] -> Value
$ctoJSONList :: [ConnectionType] -> Value
toEncoding :: ConnectionType -> Encoding
$ctoEncoding :: ConnectionType -> Encoding
toJSON :: ConnectionType -> Value
$ctoJSON :: ConnectionType -> Value
Core.ToJSON,
ToJSONKeyFunction [ConnectionType]
ToJSONKeyFunction ConnectionType
ToJSONKeyFunction ConnectionType
-> ToJSONKeyFunction [ConnectionType] -> ToJSONKey ConnectionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConnectionType]
$ctoJSONKeyList :: ToJSONKeyFunction [ConnectionType]
toJSONKey :: ToJSONKeyFunction ConnectionType
$ctoJSONKey :: ToJSONKeyFunction ConnectionType
Core.ToJSONKey,
[Node] -> Either String ConnectionType
([Node] -> Either String ConnectionType) -> FromXML ConnectionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConnectionType
$cparseXML :: [Node] -> Either String ConnectionType
Core.FromXML,
ConnectionType -> XML
(ConnectionType -> XML) -> ToXML ConnectionType
forall a. (a -> XML) -> ToXML a
toXML :: ConnectionType -> XML
$ctoXML :: ConnectionType -> XML
Core.ToXML
)
pattern ConnectionType_CUSTOM :: ConnectionType
pattern $bConnectionType_CUSTOM :: ConnectionType
$mConnectionType_CUSTOM :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_CUSTOM = ConnectionType' "CUSTOM"
pattern ConnectionType_JDBC :: ConnectionType
pattern $bConnectionType_JDBC :: ConnectionType
$mConnectionType_JDBC :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_JDBC = ConnectionType' "JDBC"
pattern ConnectionType_KAFKA :: ConnectionType
pattern $bConnectionType_KAFKA :: ConnectionType
$mConnectionType_KAFKA :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_KAFKA = ConnectionType' "KAFKA"
pattern ConnectionType_MARKETPLACE :: ConnectionType
pattern $bConnectionType_MARKETPLACE :: ConnectionType
$mConnectionType_MARKETPLACE :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_MARKETPLACE = ConnectionType' "MARKETPLACE"
pattern ConnectionType_MONGODB :: ConnectionType
pattern $bConnectionType_MONGODB :: ConnectionType
$mConnectionType_MONGODB :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_MONGODB = ConnectionType' "MONGODB"
pattern ConnectionType_NETWORK :: ConnectionType
pattern $bConnectionType_NETWORK :: ConnectionType
$mConnectionType_NETWORK :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_NETWORK = ConnectionType' "NETWORK"
pattern ConnectionType_SFTP :: ConnectionType
pattern $bConnectionType_SFTP :: ConnectionType
$mConnectionType_SFTP :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_SFTP = ConnectionType' "SFTP"
{-# COMPLETE
ConnectionType_CUSTOM,
ConnectionType_JDBC,
ConnectionType_KAFKA,
ConnectionType_MARKETPLACE,
ConnectionType_MONGODB,
ConnectionType_NETWORK,
ConnectionType_SFTP,
ConnectionType'
#-}