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