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