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