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