{-# 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.ImportStatus
( ImportStatus
( ..,
ImportStatus_CANCELLED,
ImportStatus_CANCELLING,
ImportStatus_COMPLETED,
ImportStatus_FAILED,
ImportStatus_IN_PROGRESS
),
)
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 ImportStatus = ImportStatus'
{ ImportStatus -> Text
fromImportStatus ::
Data.Text
}
deriving stock
( Int -> ImportStatus -> ShowS
[ImportStatus] -> ShowS
ImportStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportStatus] -> ShowS
$cshowList :: [ImportStatus] -> ShowS
show :: ImportStatus -> String
$cshow :: ImportStatus -> String
showsPrec :: Int -> ImportStatus -> ShowS
$cshowsPrec :: Int -> ImportStatus -> ShowS
Prelude.Show,
ReadPrec [ImportStatus]
ReadPrec ImportStatus
Int -> ReadS ImportStatus
ReadS [ImportStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportStatus]
$creadListPrec :: ReadPrec [ImportStatus]
readPrec :: ReadPrec ImportStatus
$creadPrec :: ReadPrec ImportStatus
readList :: ReadS [ImportStatus]
$creadList :: ReadS [ImportStatus]
readsPrec :: Int -> ReadS ImportStatus
$creadsPrec :: Int -> ReadS ImportStatus
Prelude.Read,
ImportStatus -> ImportStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportStatus -> ImportStatus -> Bool
$c/= :: ImportStatus -> ImportStatus -> Bool
== :: ImportStatus -> ImportStatus -> Bool
$c== :: ImportStatus -> ImportStatus -> Bool
Prelude.Eq,
Eq ImportStatus
ImportStatus -> ImportStatus -> Bool
ImportStatus -> ImportStatus -> Ordering
ImportStatus -> ImportStatus -> ImportStatus
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 :: ImportStatus -> ImportStatus -> ImportStatus
$cmin :: ImportStatus -> ImportStatus -> ImportStatus
max :: ImportStatus -> ImportStatus -> ImportStatus
$cmax :: ImportStatus -> ImportStatus -> ImportStatus
>= :: ImportStatus -> ImportStatus -> Bool
$c>= :: ImportStatus -> ImportStatus -> Bool
> :: ImportStatus -> ImportStatus -> Bool
$c> :: ImportStatus -> ImportStatus -> Bool
<= :: ImportStatus -> ImportStatus -> Bool
$c<= :: ImportStatus -> ImportStatus -> Bool
< :: ImportStatus -> ImportStatus -> Bool
$c< :: ImportStatus -> ImportStatus -> Bool
compare :: ImportStatus -> ImportStatus -> Ordering
$ccompare :: ImportStatus -> ImportStatus -> Ordering
Prelude.Ord,
forall x. Rep ImportStatus x -> ImportStatus
forall x. ImportStatus -> Rep ImportStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImportStatus x -> ImportStatus
$cfrom :: forall x. ImportStatus -> Rep ImportStatus x
Prelude.Generic
)
deriving newtype
( Eq ImportStatus
Int -> ImportStatus -> Int
ImportStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ImportStatus -> Int
$chash :: ImportStatus -> Int
hashWithSalt :: Int -> ImportStatus -> Int
$chashWithSalt :: Int -> ImportStatus -> Int
Prelude.Hashable,
ImportStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: ImportStatus -> ()
$crnf :: ImportStatus -> ()
Prelude.NFData,
Text -> Either String ImportStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ImportStatus
$cfromText :: Text -> Either String ImportStatus
Data.FromText,
ImportStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: ImportStatus -> Text
$ctoText :: ImportStatus -> Text
Data.ToText,
ImportStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ImportStatus -> ByteString
$ctoBS :: ImportStatus -> ByteString
Data.ToByteString,
ImportStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ImportStatus -> ByteStringBuilder
$cbuild :: ImportStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> ImportStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ImportStatus -> [Header]
$ctoHeader :: HeaderName -> ImportStatus -> [Header]
Data.ToHeader,
ImportStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ImportStatus -> QueryString
$ctoQuery :: ImportStatus -> QueryString
Data.ToQuery,
Value -> Parser [ImportStatus]
Value -> Parser ImportStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ImportStatus]
$cparseJSONList :: Value -> Parser [ImportStatus]
parseJSON :: Value -> Parser ImportStatus
$cparseJSON :: Value -> Parser ImportStatus
Data.FromJSON,
FromJSONKeyFunction [ImportStatus]
FromJSONKeyFunction ImportStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ImportStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ImportStatus]
fromJSONKey :: FromJSONKeyFunction ImportStatus
$cfromJSONKey :: FromJSONKeyFunction ImportStatus
Data.FromJSONKey,
[ImportStatus] -> Encoding
[ImportStatus] -> Value
ImportStatus -> Encoding
ImportStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ImportStatus] -> Encoding
$ctoEncodingList :: [ImportStatus] -> Encoding
toJSONList :: [ImportStatus] -> Value
$ctoJSONList :: [ImportStatus] -> Value
toEncoding :: ImportStatus -> Encoding
$ctoEncoding :: ImportStatus -> Encoding
toJSON :: ImportStatus -> Value
$ctoJSON :: ImportStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [ImportStatus]
ToJSONKeyFunction ImportStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ImportStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ImportStatus]
toJSONKey :: ToJSONKeyFunction ImportStatus
$ctoJSONKey :: ToJSONKeyFunction ImportStatus
Data.ToJSONKey,
[Node] -> Either String ImportStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ImportStatus
$cparseXML :: [Node] -> Either String ImportStatus
Data.FromXML,
ImportStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ImportStatus -> XML
$ctoXML :: ImportStatus -> XML
Data.ToXML
)
pattern ImportStatus_CANCELLED :: ImportStatus
pattern $bImportStatus_CANCELLED :: ImportStatus
$mImportStatus_CANCELLED :: forall {r}. ImportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ImportStatus_CANCELLED = ImportStatus' "CANCELLED"
pattern ImportStatus_CANCELLING :: ImportStatus
pattern $bImportStatus_CANCELLING :: ImportStatus
$mImportStatus_CANCELLING :: forall {r}. ImportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ImportStatus_CANCELLING = ImportStatus' "CANCELLING"
pattern ImportStatus_COMPLETED :: ImportStatus
pattern $bImportStatus_COMPLETED :: ImportStatus
$mImportStatus_COMPLETED :: forall {r}. ImportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ImportStatus_COMPLETED = ImportStatus' "COMPLETED"
pattern ImportStatus_FAILED :: ImportStatus
pattern $bImportStatus_FAILED :: ImportStatus
$mImportStatus_FAILED :: forall {r}. ImportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ImportStatus_FAILED = ImportStatus' "FAILED"
pattern ImportStatus_IN_PROGRESS :: ImportStatus
pattern $bImportStatus_IN_PROGRESS :: ImportStatus
$mImportStatus_IN_PROGRESS :: forall {r}. ImportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ImportStatus_IN_PROGRESS = ImportStatus' "IN_PROGRESS"
{-# COMPLETE
ImportStatus_CANCELLED,
ImportStatus_CANCELLING,
ImportStatus_COMPLETED,
ImportStatus_FAILED,
ImportStatus_IN_PROGRESS,
ImportStatus'
#-}