{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DataBrew.Types.Source
( Source
( ..,
Source_DATABASE,
Source_DATA_CATALOG,
Source_S3
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Source = Source' {Source -> Text
fromSource :: Core.Text}
deriving stock
( Int -> Source -> ShowS
[Source] -> ShowS
Source -> String
(Int -> Source -> ShowS)
-> (Source -> String) -> ([Source] -> ShowS) -> Show Source
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Source] -> ShowS
$cshowList :: [Source] -> ShowS
show :: Source -> String
$cshow :: Source -> String
showsPrec :: Int -> Source -> ShowS
$cshowsPrec :: Int -> Source -> ShowS
Prelude.Show,
ReadPrec [Source]
ReadPrec Source
Int -> ReadS Source
ReadS [Source]
(Int -> ReadS Source)
-> ReadS [Source]
-> ReadPrec Source
-> ReadPrec [Source]
-> Read Source
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Source]
$creadListPrec :: ReadPrec [Source]
readPrec :: ReadPrec Source
$creadPrec :: ReadPrec Source
readList :: ReadS [Source]
$creadList :: ReadS [Source]
readsPrec :: Int -> ReadS Source
$creadsPrec :: Int -> ReadS Source
Prelude.Read,
Source -> Source -> Bool
(Source -> Source -> Bool)
-> (Source -> Source -> Bool) -> Eq Source
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Source -> Source -> Bool
$c/= :: Source -> Source -> Bool
== :: Source -> Source -> Bool
$c== :: Source -> Source -> Bool
Prelude.Eq,
Eq Source
Eq Source
-> (Source -> Source -> Ordering)
-> (Source -> Source -> Bool)
-> (Source -> Source -> Bool)
-> (Source -> Source -> Bool)
-> (Source -> Source -> Bool)
-> (Source -> Source -> Source)
-> (Source -> Source -> Source)
-> Ord Source
Source -> Source -> Bool
Source -> Source -> Ordering
Source -> Source -> Source
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 :: Source -> Source -> Source
$cmin :: Source -> Source -> Source
max :: Source -> Source -> Source
$cmax :: Source -> Source -> Source
>= :: Source -> Source -> Bool
$c>= :: Source -> Source -> Bool
> :: Source -> Source -> Bool
$c> :: Source -> Source -> Bool
<= :: Source -> Source -> Bool
$c<= :: Source -> Source -> Bool
< :: Source -> Source -> Bool
$c< :: Source -> Source -> Bool
compare :: Source -> Source -> Ordering
$ccompare :: Source -> Source -> Ordering
$cp1Ord :: Eq Source
Prelude.Ord,
(forall x. Source -> Rep Source x)
-> (forall x. Rep Source x -> Source) -> Generic Source
forall x. Rep Source x -> Source
forall x. Source -> Rep Source x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Source x -> Source
$cfrom :: forall x. Source -> Rep Source x
Prelude.Generic
)
deriving newtype
( Int -> Source -> Int
Source -> Int
(Int -> Source -> Int) -> (Source -> Int) -> Hashable Source
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Source -> Int
$chash :: Source -> Int
hashWithSalt :: Int -> Source -> Int
$chashWithSalt :: Int -> Source -> Int
Prelude.Hashable,
Source -> ()
(Source -> ()) -> NFData Source
forall a. (a -> ()) -> NFData a
rnf :: Source -> ()
$crnf :: Source -> ()
Prelude.NFData,
Text -> Either String Source
(Text -> Either String Source) -> FromText Source
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Source
$cfromText :: Text -> Either String Source
Core.FromText,
Source -> Text
(Source -> Text) -> ToText Source
forall a. (a -> Text) -> ToText a
toText :: Source -> Text
$ctoText :: Source -> Text
Core.ToText,
Source -> ByteString
(Source -> ByteString) -> ToByteString Source
forall a. (a -> ByteString) -> ToByteString a
toBS :: Source -> ByteString
$ctoBS :: Source -> ByteString
Core.ToByteString,
Source -> ByteStringBuilder
(Source -> ByteStringBuilder) -> ToLog Source
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Source -> ByteStringBuilder
$cbuild :: Source -> ByteStringBuilder
Core.ToLog,
HeaderName -> Source -> [Header]
(HeaderName -> Source -> [Header]) -> ToHeader Source
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Source -> [Header]
$ctoHeader :: HeaderName -> Source -> [Header]
Core.ToHeader,
Source -> QueryString
(Source -> QueryString) -> ToQuery Source
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Source -> QueryString
$ctoQuery :: Source -> QueryString
Core.ToQuery,
Value -> Parser [Source]
Value -> Parser Source
(Value -> Parser Source)
-> (Value -> Parser [Source]) -> FromJSON Source
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Source]
$cparseJSONList :: Value -> Parser [Source]
parseJSON :: Value -> Parser Source
$cparseJSON :: Value -> Parser Source
Core.FromJSON,
FromJSONKeyFunction [Source]
FromJSONKeyFunction Source
FromJSONKeyFunction Source
-> FromJSONKeyFunction [Source] -> FromJSONKey Source
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Source]
$cfromJSONKeyList :: FromJSONKeyFunction [Source]
fromJSONKey :: FromJSONKeyFunction Source
$cfromJSONKey :: FromJSONKeyFunction Source
Core.FromJSONKey,
[Source] -> Encoding
[Source] -> Value
Source -> Encoding
Source -> Value
(Source -> Value)
-> (Source -> Encoding)
-> ([Source] -> Value)
-> ([Source] -> Encoding)
-> ToJSON Source
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Source] -> Encoding
$ctoEncodingList :: [Source] -> Encoding
toJSONList :: [Source] -> Value
$ctoJSONList :: [Source] -> Value
toEncoding :: Source -> Encoding
$ctoEncoding :: Source -> Encoding
toJSON :: Source -> Value
$ctoJSON :: Source -> Value
Core.ToJSON,
ToJSONKeyFunction [Source]
ToJSONKeyFunction Source
ToJSONKeyFunction Source
-> ToJSONKeyFunction [Source] -> ToJSONKey Source
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Source]
$ctoJSONKeyList :: ToJSONKeyFunction [Source]
toJSONKey :: ToJSONKeyFunction Source
$ctoJSONKey :: ToJSONKeyFunction Source
Core.ToJSONKey,
[Node] -> Either String Source
([Node] -> Either String Source) -> FromXML Source
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Source
$cparseXML :: [Node] -> Either String Source
Core.FromXML,
Source -> XML
(Source -> XML) -> ToXML Source
forall a. (a -> XML) -> ToXML a
toXML :: Source -> XML
$ctoXML :: Source -> XML
Core.ToXML
)
pattern Source_DATABASE :: Source
pattern $bSource_DATABASE :: Source
$mSource_DATABASE :: forall r. Source -> (Void# -> r) -> (Void# -> r) -> r
Source_DATABASE = Source' "DATABASE"
pattern Source_DATA_CATALOG :: Source
pattern $bSource_DATA_CATALOG :: Source
$mSource_DATA_CATALOG :: forall r. Source -> (Void# -> r) -> (Void# -> r) -> r
Source_DATA_CATALOG = Source' "DATA-CATALOG"
pattern Source_S3 :: Source
pattern $bSource_S3 :: Source
$mSource_S3 :: forall r. Source -> (Void# -> r) -> (Void# -> r) -> r
Source_S3 = Source' "S3"
{-# COMPLETE
Source_DATABASE,
Source_DATA_CATALOG,
Source_S3,
Source'
#-}