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