{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DataSync.Types.TaskExecutionStatus
( TaskExecutionStatus
( ..,
TaskExecutionStatus_ERROR,
TaskExecutionStatus_LAUNCHING,
TaskExecutionStatus_PREPARING,
TaskExecutionStatus_QUEUED,
TaskExecutionStatus_SUCCESS,
TaskExecutionStatus_TRANSFERRING,
TaskExecutionStatus_VERIFYING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TaskExecutionStatus = TaskExecutionStatus'
{ TaskExecutionStatus -> Text
fromTaskExecutionStatus ::
Core.Text
}
deriving stock
( Int -> TaskExecutionStatus -> ShowS
[TaskExecutionStatus] -> ShowS
TaskExecutionStatus -> String
(Int -> TaskExecutionStatus -> ShowS)
-> (TaskExecutionStatus -> String)
-> ([TaskExecutionStatus] -> ShowS)
-> Show TaskExecutionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TaskExecutionStatus] -> ShowS
$cshowList :: [TaskExecutionStatus] -> ShowS
show :: TaskExecutionStatus -> String
$cshow :: TaskExecutionStatus -> String
showsPrec :: Int -> TaskExecutionStatus -> ShowS
$cshowsPrec :: Int -> TaskExecutionStatus -> ShowS
Prelude.Show,
ReadPrec [TaskExecutionStatus]
ReadPrec TaskExecutionStatus
Int -> ReadS TaskExecutionStatus
ReadS [TaskExecutionStatus]
(Int -> ReadS TaskExecutionStatus)
-> ReadS [TaskExecutionStatus]
-> ReadPrec TaskExecutionStatus
-> ReadPrec [TaskExecutionStatus]
-> Read TaskExecutionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TaskExecutionStatus]
$creadListPrec :: ReadPrec [TaskExecutionStatus]
readPrec :: ReadPrec TaskExecutionStatus
$creadPrec :: ReadPrec TaskExecutionStatus
readList :: ReadS [TaskExecutionStatus]
$creadList :: ReadS [TaskExecutionStatus]
readsPrec :: Int -> ReadS TaskExecutionStatus
$creadsPrec :: Int -> ReadS TaskExecutionStatus
Prelude.Read,
TaskExecutionStatus -> TaskExecutionStatus -> Bool
(TaskExecutionStatus -> TaskExecutionStatus -> Bool)
-> (TaskExecutionStatus -> TaskExecutionStatus -> Bool)
-> Eq TaskExecutionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
$c/= :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
== :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
$c== :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
Prelude.Eq,
Eq TaskExecutionStatus
Eq TaskExecutionStatus
-> (TaskExecutionStatus -> TaskExecutionStatus -> Ordering)
-> (TaskExecutionStatus -> TaskExecutionStatus -> Bool)
-> (TaskExecutionStatus -> TaskExecutionStatus -> Bool)
-> (TaskExecutionStatus -> TaskExecutionStatus -> Bool)
-> (TaskExecutionStatus -> TaskExecutionStatus -> Bool)
-> (TaskExecutionStatus
-> TaskExecutionStatus -> TaskExecutionStatus)
-> (TaskExecutionStatus
-> TaskExecutionStatus -> TaskExecutionStatus)
-> Ord TaskExecutionStatus
TaskExecutionStatus -> TaskExecutionStatus -> Bool
TaskExecutionStatus -> TaskExecutionStatus -> Ordering
TaskExecutionStatus -> TaskExecutionStatus -> TaskExecutionStatus
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 :: TaskExecutionStatus -> TaskExecutionStatus -> TaskExecutionStatus
$cmin :: TaskExecutionStatus -> TaskExecutionStatus -> TaskExecutionStatus
max :: TaskExecutionStatus -> TaskExecutionStatus -> TaskExecutionStatus
$cmax :: TaskExecutionStatus -> TaskExecutionStatus -> TaskExecutionStatus
>= :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
$c>= :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
> :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
$c> :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
<= :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
$c<= :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
< :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
$c< :: TaskExecutionStatus -> TaskExecutionStatus -> Bool
compare :: TaskExecutionStatus -> TaskExecutionStatus -> Ordering
$ccompare :: TaskExecutionStatus -> TaskExecutionStatus -> Ordering
$cp1Ord :: Eq TaskExecutionStatus
Prelude.Ord,
(forall x. TaskExecutionStatus -> Rep TaskExecutionStatus x)
-> (forall x. Rep TaskExecutionStatus x -> TaskExecutionStatus)
-> Generic TaskExecutionStatus
forall x. Rep TaskExecutionStatus x -> TaskExecutionStatus
forall x. TaskExecutionStatus -> Rep TaskExecutionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TaskExecutionStatus x -> TaskExecutionStatus
$cfrom :: forall x. TaskExecutionStatus -> Rep TaskExecutionStatus x
Prelude.Generic
)
deriving newtype
( Int -> TaskExecutionStatus -> Int
TaskExecutionStatus -> Int
(Int -> TaskExecutionStatus -> Int)
-> (TaskExecutionStatus -> Int) -> Hashable TaskExecutionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TaskExecutionStatus -> Int
$chash :: TaskExecutionStatus -> Int
hashWithSalt :: Int -> TaskExecutionStatus -> Int
$chashWithSalt :: Int -> TaskExecutionStatus -> Int
Prelude.Hashable,
TaskExecutionStatus -> ()
(TaskExecutionStatus -> ()) -> NFData TaskExecutionStatus
forall a. (a -> ()) -> NFData a
rnf :: TaskExecutionStatus -> ()
$crnf :: TaskExecutionStatus -> ()
Prelude.NFData,
Text -> Either String TaskExecutionStatus
(Text -> Either String TaskExecutionStatus)
-> FromText TaskExecutionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TaskExecutionStatus
$cfromText :: Text -> Either String TaskExecutionStatus
Core.FromText,
TaskExecutionStatus -> Text
(TaskExecutionStatus -> Text) -> ToText TaskExecutionStatus
forall a. (a -> Text) -> ToText a
toText :: TaskExecutionStatus -> Text
$ctoText :: TaskExecutionStatus -> Text
Core.ToText,
TaskExecutionStatus -> ByteString
(TaskExecutionStatus -> ByteString)
-> ToByteString TaskExecutionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: TaskExecutionStatus -> ByteString
$ctoBS :: TaskExecutionStatus -> ByteString
Core.ToByteString,
TaskExecutionStatus -> ByteStringBuilder
(TaskExecutionStatus -> ByteStringBuilder)
-> ToLog TaskExecutionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TaskExecutionStatus -> ByteStringBuilder
$cbuild :: TaskExecutionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> TaskExecutionStatus -> [Header]
(HeaderName -> TaskExecutionStatus -> [Header])
-> ToHeader TaskExecutionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TaskExecutionStatus -> [Header]
$ctoHeader :: HeaderName -> TaskExecutionStatus -> [Header]
Core.ToHeader,
TaskExecutionStatus -> QueryString
(TaskExecutionStatus -> QueryString) -> ToQuery TaskExecutionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TaskExecutionStatus -> QueryString
$ctoQuery :: TaskExecutionStatus -> QueryString
Core.ToQuery,
Value -> Parser [TaskExecutionStatus]
Value -> Parser TaskExecutionStatus
(Value -> Parser TaskExecutionStatus)
-> (Value -> Parser [TaskExecutionStatus])
-> FromJSON TaskExecutionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TaskExecutionStatus]
$cparseJSONList :: Value -> Parser [TaskExecutionStatus]
parseJSON :: Value -> Parser TaskExecutionStatus
$cparseJSON :: Value -> Parser TaskExecutionStatus
Core.FromJSON,
FromJSONKeyFunction [TaskExecutionStatus]
FromJSONKeyFunction TaskExecutionStatus
FromJSONKeyFunction TaskExecutionStatus
-> FromJSONKeyFunction [TaskExecutionStatus]
-> FromJSONKey TaskExecutionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TaskExecutionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [TaskExecutionStatus]
fromJSONKey :: FromJSONKeyFunction TaskExecutionStatus
$cfromJSONKey :: FromJSONKeyFunction TaskExecutionStatus
Core.FromJSONKey,
[TaskExecutionStatus] -> Encoding
[TaskExecutionStatus] -> Value
TaskExecutionStatus -> Encoding
TaskExecutionStatus -> Value
(TaskExecutionStatus -> Value)
-> (TaskExecutionStatus -> Encoding)
-> ([TaskExecutionStatus] -> Value)
-> ([TaskExecutionStatus] -> Encoding)
-> ToJSON TaskExecutionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TaskExecutionStatus] -> Encoding
$ctoEncodingList :: [TaskExecutionStatus] -> Encoding
toJSONList :: [TaskExecutionStatus] -> Value
$ctoJSONList :: [TaskExecutionStatus] -> Value
toEncoding :: TaskExecutionStatus -> Encoding
$ctoEncoding :: TaskExecutionStatus -> Encoding
toJSON :: TaskExecutionStatus -> Value
$ctoJSON :: TaskExecutionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [TaskExecutionStatus]
ToJSONKeyFunction TaskExecutionStatus
ToJSONKeyFunction TaskExecutionStatus
-> ToJSONKeyFunction [TaskExecutionStatus]
-> ToJSONKey TaskExecutionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TaskExecutionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [TaskExecutionStatus]
toJSONKey :: ToJSONKeyFunction TaskExecutionStatus
$ctoJSONKey :: ToJSONKeyFunction TaskExecutionStatus
Core.ToJSONKey,
[Node] -> Either String TaskExecutionStatus
([Node] -> Either String TaskExecutionStatus)
-> FromXML TaskExecutionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TaskExecutionStatus
$cparseXML :: [Node] -> Either String TaskExecutionStatus
Core.FromXML,
TaskExecutionStatus -> XML
(TaskExecutionStatus -> XML) -> ToXML TaskExecutionStatus
forall a. (a -> XML) -> ToXML a
toXML :: TaskExecutionStatus -> XML
$ctoXML :: TaskExecutionStatus -> XML
Core.ToXML
)
pattern TaskExecutionStatus_ERROR :: TaskExecutionStatus
pattern $bTaskExecutionStatus_ERROR :: TaskExecutionStatus
$mTaskExecutionStatus_ERROR :: forall r. TaskExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskExecutionStatus_ERROR = TaskExecutionStatus' "ERROR"
pattern TaskExecutionStatus_LAUNCHING :: TaskExecutionStatus
pattern $bTaskExecutionStatus_LAUNCHING :: TaskExecutionStatus
$mTaskExecutionStatus_LAUNCHING :: forall r. TaskExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskExecutionStatus_LAUNCHING = TaskExecutionStatus' "LAUNCHING"
pattern TaskExecutionStatus_PREPARING :: TaskExecutionStatus
pattern $bTaskExecutionStatus_PREPARING :: TaskExecutionStatus
$mTaskExecutionStatus_PREPARING :: forall r. TaskExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskExecutionStatus_PREPARING = TaskExecutionStatus' "PREPARING"
pattern TaskExecutionStatus_QUEUED :: TaskExecutionStatus
pattern $bTaskExecutionStatus_QUEUED :: TaskExecutionStatus
$mTaskExecutionStatus_QUEUED :: forall r. TaskExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskExecutionStatus_QUEUED = TaskExecutionStatus' "QUEUED"
pattern TaskExecutionStatus_SUCCESS :: TaskExecutionStatus
pattern $bTaskExecutionStatus_SUCCESS :: TaskExecutionStatus
$mTaskExecutionStatus_SUCCESS :: forall r. TaskExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskExecutionStatus_SUCCESS = TaskExecutionStatus' "SUCCESS"
pattern TaskExecutionStatus_TRANSFERRING :: TaskExecutionStatus
pattern $bTaskExecutionStatus_TRANSFERRING :: TaskExecutionStatus
$mTaskExecutionStatus_TRANSFERRING :: forall r. TaskExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskExecutionStatus_TRANSFERRING = TaskExecutionStatus' "TRANSFERRING"
pattern TaskExecutionStatus_VERIFYING :: TaskExecutionStatus
pattern $bTaskExecutionStatus_VERIFYING :: TaskExecutionStatus
$mTaskExecutionStatus_VERIFYING :: forall r. TaskExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskExecutionStatus_VERIFYING = TaskExecutionStatus' "VERIFYING"
{-# COMPLETE
TaskExecutionStatus_ERROR,
TaskExecutionStatus_LAUNCHING,
TaskExecutionStatus_PREPARING,
TaskExecutionStatus_QUEUED,
TaskExecutionStatus_SUCCESS,
TaskExecutionStatus_TRANSFERRING,
TaskExecutionStatus_VERIFYING,
TaskExecutionStatus'
#-}