{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Neptune.Types.SourceType
( SourceType
( ..,
SourceType_Db_cluster,
SourceType_Db_cluster_snapshot,
SourceType_Db_instance,
SourceType_Db_parameter_group,
SourceType_Db_security_group,
SourceType_Db_snapshot
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype SourceType = SourceType'
{ SourceType -> Text
fromSourceType ::
Data.Text
}
deriving stock
( Int -> SourceType -> ShowS
[SourceType] -> ShowS
SourceType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SourceType] -> ShowS
$cshowList :: [SourceType] -> ShowS
show :: SourceType -> String
$cshow :: SourceType -> String
showsPrec :: Int -> SourceType -> ShowS
$cshowsPrec :: Int -> SourceType -> ShowS
Prelude.Show,
ReadPrec [SourceType]
ReadPrec SourceType
Int -> ReadS SourceType
ReadS [SourceType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SourceType]
$creadListPrec :: ReadPrec [SourceType]
readPrec :: ReadPrec SourceType
$creadPrec :: ReadPrec SourceType
readList :: ReadS [SourceType]
$creadList :: ReadS [SourceType]
readsPrec :: Int -> ReadS SourceType
$creadsPrec :: Int -> ReadS SourceType
Prelude.Read,
SourceType -> SourceType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SourceType -> SourceType -> Bool
$c/= :: SourceType -> SourceType -> Bool
== :: SourceType -> SourceType -> Bool
$c== :: SourceType -> SourceType -> Bool
Prelude.Eq,
Eq SourceType
SourceType -> SourceType -> Bool
SourceType -> SourceType -> Ordering
SourceType -> SourceType -> SourceType
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 :: SourceType -> SourceType -> SourceType
$cmin :: SourceType -> SourceType -> SourceType
max :: SourceType -> SourceType -> SourceType
$cmax :: SourceType -> SourceType -> SourceType
>= :: SourceType -> SourceType -> Bool
$c>= :: SourceType -> SourceType -> Bool
> :: SourceType -> SourceType -> Bool
$c> :: SourceType -> SourceType -> Bool
<= :: SourceType -> SourceType -> Bool
$c<= :: SourceType -> SourceType -> Bool
< :: SourceType -> SourceType -> Bool
$c< :: SourceType -> SourceType -> Bool
compare :: SourceType -> SourceType -> Ordering
$ccompare :: SourceType -> SourceType -> Ordering
Prelude.Ord,
forall x. Rep SourceType x -> SourceType
forall x. SourceType -> Rep SourceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SourceType x -> SourceType
$cfrom :: forall x. SourceType -> Rep SourceType x
Prelude.Generic
)
deriving newtype
( Eq SourceType
Int -> SourceType -> Int
SourceType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SourceType -> Int
$chash :: SourceType -> Int
hashWithSalt :: Int -> SourceType -> Int
$chashWithSalt :: Int -> SourceType -> Int
Prelude.Hashable,
SourceType -> ()
forall a. (a -> ()) -> NFData a
rnf :: SourceType -> ()
$crnf :: SourceType -> ()
Prelude.NFData,
Text -> Either String SourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SourceType
$cfromText :: Text -> Either String SourceType
Data.FromText,
SourceType -> Text
forall a. (a -> Text) -> ToText a
toText :: SourceType -> Text
$ctoText :: SourceType -> Text
Data.ToText,
SourceType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SourceType -> ByteString
$ctoBS :: SourceType -> ByteString
Data.ToByteString,
SourceType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SourceType -> ByteStringBuilder
$cbuild :: SourceType -> ByteStringBuilder
Data.ToLog,
HeaderName -> SourceType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SourceType -> [Header]
$ctoHeader :: HeaderName -> SourceType -> [Header]
Data.ToHeader,
SourceType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SourceType -> QueryString
$ctoQuery :: SourceType -> QueryString
Data.ToQuery,
Value -> Parser [SourceType]
Value -> Parser SourceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SourceType]
$cparseJSONList :: Value -> Parser [SourceType]
parseJSON :: Value -> Parser SourceType
$cparseJSON :: Value -> Parser SourceType
Data.FromJSON,
FromJSONKeyFunction [SourceType]
FromJSONKeyFunction SourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [SourceType]
fromJSONKey :: FromJSONKeyFunction SourceType
$cfromJSONKey :: FromJSONKeyFunction SourceType
Data.FromJSONKey,
[SourceType] -> Encoding
[SourceType] -> Value
SourceType -> Encoding
SourceType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SourceType] -> Encoding
$ctoEncodingList :: [SourceType] -> Encoding
toJSONList :: [SourceType] -> Value
$ctoJSONList :: [SourceType] -> Value
toEncoding :: SourceType -> Encoding
$ctoEncoding :: SourceType -> Encoding
toJSON :: SourceType -> Value
$ctoJSON :: SourceType -> Value
Data.ToJSON,
ToJSONKeyFunction [SourceType]
ToJSONKeyFunction SourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [SourceType]
toJSONKey :: ToJSONKeyFunction SourceType
$ctoJSONKey :: ToJSONKeyFunction SourceType
Data.ToJSONKey,
[Node] -> Either String SourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SourceType
$cparseXML :: [Node] -> Either String SourceType
Data.FromXML,
SourceType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SourceType -> XML
$ctoXML :: SourceType -> XML
Data.ToXML
)
pattern SourceType_Db_cluster :: SourceType
pattern $bSourceType_Db_cluster :: SourceType
$mSourceType_Db_cluster :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_Db_cluster = SourceType' "db-cluster"
pattern SourceType_Db_cluster_snapshot :: SourceType
pattern $bSourceType_Db_cluster_snapshot :: SourceType
$mSourceType_Db_cluster_snapshot :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_Db_cluster_snapshot = SourceType' "db-cluster-snapshot"
pattern SourceType_Db_instance :: SourceType
pattern $bSourceType_Db_instance :: SourceType
$mSourceType_Db_instance :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_Db_instance = SourceType' "db-instance"
pattern SourceType_Db_parameter_group :: SourceType
pattern $bSourceType_Db_parameter_group :: SourceType
$mSourceType_Db_parameter_group :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_Db_parameter_group = SourceType' "db-parameter-group"
pattern SourceType_Db_security_group :: SourceType
pattern $bSourceType_Db_security_group :: SourceType
$mSourceType_Db_security_group :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_Db_security_group = SourceType' "db-security-group"
pattern SourceType_Db_snapshot :: SourceType
pattern $bSourceType_Db_snapshot :: SourceType
$mSourceType_Db_snapshot :: forall {r}. SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
SourceType_Db_snapshot = SourceType' "db-snapshot"
{-# COMPLETE
SourceType_Db_cluster,
SourceType_Db_cluster_snapshot,
SourceType_Db_instance,
SourceType_Db_parameter_group,
SourceType_Db_security_group,
SourceType_Db_snapshot,
SourceType'
#-}