{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudWatchLogs.Types.ExportTaskStatusCode
( ExportTaskStatusCode
( ..,
ExportTaskStatusCode_CANCELLED,
ExportTaskStatusCode_COMPLETED,
ExportTaskStatusCode_FAILED,
ExportTaskStatusCode_PENDING,
ExportTaskStatusCode_PENDING_CANCEL,
ExportTaskStatusCode_RUNNING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ExportTaskStatusCode = ExportTaskStatusCode'
{ ExportTaskStatusCode -> Text
fromExportTaskStatusCode ::
Core.Text
}
deriving stock
( Int -> ExportTaskStatusCode -> ShowS
[ExportTaskStatusCode] -> ShowS
ExportTaskStatusCode -> String
(Int -> ExportTaskStatusCode -> ShowS)
-> (ExportTaskStatusCode -> String)
-> ([ExportTaskStatusCode] -> ShowS)
-> Show ExportTaskStatusCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportTaskStatusCode] -> ShowS
$cshowList :: [ExportTaskStatusCode] -> ShowS
show :: ExportTaskStatusCode -> String
$cshow :: ExportTaskStatusCode -> String
showsPrec :: Int -> ExportTaskStatusCode -> ShowS
$cshowsPrec :: Int -> ExportTaskStatusCode -> ShowS
Prelude.Show,
ReadPrec [ExportTaskStatusCode]
ReadPrec ExportTaskStatusCode
Int -> ReadS ExportTaskStatusCode
ReadS [ExportTaskStatusCode]
(Int -> ReadS ExportTaskStatusCode)
-> ReadS [ExportTaskStatusCode]
-> ReadPrec ExportTaskStatusCode
-> ReadPrec [ExportTaskStatusCode]
-> Read ExportTaskStatusCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportTaskStatusCode]
$creadListPrec :: ReadPrec [ExportTaskStatusCode]
readPrec :: ReadPrec ExportTaskStatusCode
$creadPrec :: ReadPrec ExportTaskStatusCode
readList :: ReadS [ExportTaskStatusCode]
$creadList :: ReadS [ExportTaskStatusCode]
readsPrec :: Int -> ReadS ExportTaskStatusCode
$creadsPrec :: Int -> ReadS ExportTaskStatusCode
Prelude.Read,
ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
(ExportTaskStatusCode -> ExportTaskStatusCode -> Bool)
-> (ExportTaskStatusCode -> ExportTaskStatusCode -> Bool)
-> Eq ExportTaskStatusCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
$c/= :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
== :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
$c== :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
Prelude.Eq,
Eq ExportTaskStatusCode
Eq ExportTaskStatusCode
-> (ExportTaskStatusCode -> ExportTaskStatusCode -> Ordering)
-> (ExportTaskStatusCode -> ExportTaskStatusCode -> Bool)
-> (ExportTaskStatusCode -> ExportTaskStatusCode -> Bool)
-> (ExportTaskStatusCode -> ExportTaskStatusCode -> Bool)
-> (ExportTaskStatusCode -> ExportTaskStatusCode -> Bool)
-> (ExportTaskStatusCode
-> ExportTaskStatusCode -> ExportTaskStatusCode)
-> (ExportTaskStatusCode
-> ExportTaskStatusCode -> ExportTaskStatusCode)
-> Ord ExportTaskStatusCode
ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
ExportTaskStatusCode -> ExportTaskStatusCode -> Ordering
ExportTaskStatusCode
-> ExportTaskStatusCode -> ExportTaskStatusCode
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 :: ExportTaskStatusCode
-> ExportTaskStatusCode -> ExportTaskStatusCode
$cmin :: ExportTaskStatusCode
-> ExportTaskStatusCode -> ExportTaskStatusCode
max :: ExportTaskStatusCode
-> ExportTaskStatusCode -> ExportTaskStatusCode
$cmax :: ExportTaskStatusCode
-> ExportTaskStatusCode -> ExportTaskStatusCode
>= :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
$c>= :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
> :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
$c> :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
<= :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
$c<= :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
< :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
$c< :: ExportTaskStatusCode -> ExportTaskStatusCode -> Bool
compare :: ExportTaskStatusCode -> ExportTaskStatusCode -> Ordering
$ccompare :: ExportTaskStatusCode -> ExportTaskStatusCode -> Ordering
$cp1Ord :: Eq ExportTaskStatusCode
Prelude.Ord,
(forall x. ExportTaskStatusCode -> Rep ExportTaskStatusCode x)
-> (forall x. Rep ExportTaskStatusCode x -> ExportTaskStatusCode)
-> Generic ExportTaskStatusCode
forall x. Rep ExportTaskStatusCode x -> ExportTaskStatusCode
forall x. ExportTaskStatusCode -> Rep ExportTaskStatusCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExportTaskStatusCode x -> ExportTaskStatusCode
$cfrom :: forall x. ExportTaskStatusCode -> Rep ExportTaskStatusCode x
Prelude.Generic
)
deriving newtype
( Int -> ExportTaskStatusCode -> Int
ExportTaskStatusCode -> Int
(Int -> ExportTaskStatusCode -> Int)
-> (ExportTaskStatusCode -> Int) -> Hashable ExportTaskStatusCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExportTaskStatusCode -> Int
$chash :: ExportTaskStatusCode -> Int
hashWithSalt :: Int -> ExportTaskStatusCode -> Int
$chashWithSalt :: Int -> ExportTaskStatusCode -> Int
Prelude.Hashable,
ExportTaskStatusCode -> ()
(ExportTaskStatusCode -> ()) -> NFData ExportTaskStatusCode
forall a. (a -> ()) -> NFData a
rnf :: ExportTaskStatusCode -> ()
$crnf :: ExportTaskStatusCode -> ()
Prelude.NFData,
Text -> Either String ExportTaskStatusCode
(Text -> Either String ExportTaskStatusCode)
-> FromText ExportTaskStatusCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExportTaskStatusCode
$cfromText :: Text -> Either String ExportTaskStatusCode
Core.FromText,
ExportTaskStatusCode -> Text
(ExportTaskStatusCode -> Text) -> ToText ExportTaskStatusCode
forall a. (a -> Text) -> ToText a
toText :: ExportTaskStatusCode -> Text
$ctoText :: ExportTaskStatusCode -> Text
Core.ToText,
ExportTaskStatusCode -> ByteString
(ExportTaskStatusCode -> ByteString)
-> ToByteString ExportTaskStatusCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExportTaskStatusCode -> ByteString
$ctoBS :: ExportTaskStatusCode -> ByteString
Core.ToByteString,
ExportTaskStatusCode -> ByteStringBuilder
(ExportTaskStatusCode -> ByteStringBuilder)
-> ToLog ExportTaskStatusCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExportTaskStatusCode -> ByteStringBuilder
$cbuild :: ExportTaskStatusCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> ExportTaskStatusCode -> [Header]
(HeaderName -> ExportTaskStatusCode -> [Header])
-> ToHeader ExportTaskStatusCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExportTaskStatusCode -> [Header]
$ctoHeader :: HeaderName -> ExportTaskStatusCode -> [Header]
Core.ToHeader,
ExportTaskStatusCode -> QueryString
(ExportTaskStatusCode -> QueryString)
-> ToQuery ExportTaskStatusCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExportTaskStatusCode -> QueryString
$ctoQuery :: ExportTaskStatusCode -> QueryString
Core.ToQuery,
Value -> Parser [ExportTaskStatusCode]
Value -> Parser ExportTaskStatusCode
(Value -> Parser ExportTaskStatusCode)
-> (Value -> Parser [ExportTaskStatusCode])
-> FromJSON ExportTaskStatusCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExportTaskStatusCode]
$cparseJSONList :: Value -> Parser [ExportTaskStatusCode]
parseJSON :: Value -> Parser ExportTaskStatusCode
$cparseJSON :: Value -> Parser ExportTaskStatusCode
Core.FromJSON,
FromJSONKeyFunction [ExportTaskStatusCode]
FromJSONKeyFunction ExportTaskStatusCode
FromJSONKeyFunction ExportTaskStatusCode
-> FromJSONKeyFunction [ExportTaskStatusCode]
-> FromJSONKey ExportTaskStatusCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExportTaskStatusCode]
$cfromJSONKeyList :: FromJSONKeyFunction [ExportTaskStatusCode]
fromJSONKey :: FromJSONKeyFunction ExportTaskStatusCode
$cfromJSONKey :: FromJSONKeyFunction ExportTaskStatusCode
Core.FromJSONKey,
[ExportTaskStatusCode] -> Encoding
[ExportTaskStatusCode] -> Value
ExportTaskStatusCode -> Encoding
ExportTaskStatusCode -> Value
(ExportTaskStatusCode -> Value)
-> (ExportTaskStatusCode -> Encoding)
-> ([ExportTaskStatusCode] -> Value)
-> ([ExportTaskStatusCode] -> Encoding)
-> ToJSON ExportTaskStatusCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExportTaskStatusCode] -> Encoding
$ctoEncodingList :: [ExportTaskStatusCode] -> Encoding
toJSONList :: [ExportTaskStatusCode] -> Value
$ctoJSONList :: [ExportTaskStatusCode] -> Value
toEncoding :: ExportTaskStatusCode -> Encoding
$ctoEncoding :: ExportTaskStatusCode -> Encoding
toJSON :: ExportTaskStatusCode -> Value
$ctoJSON :: ExportTaskStatusCode -> Value
Core.ToJSON,
ToJSONKeyFunction [ExportTaskStatusCode]
ToJSONKeyFunction ExportTaskStatusCode
ToJSONKeyFunction ExportTaskStatusCode
-> ToJSONKeyFunction [ExportTaskStatusCode]
-> ToJSONKey ExportTaskStatusCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExportTaskStatusCode]
$ctoJSONKeyList :: ToJSONKeyFunction [ExportTaskStatusCode]
toJSONKey :: ToJSONKeyFunction ExportTaskStatusCode
$ctoJSONKey :: ToJSONKeyFunction ExportTaskStatusCode
Core.ToJSONKey,
[Node] -> Either String ExportTaskStatusCode
([Node] -> Either String ExportTaskStatusCode)
-> FromXML ExportTaskStatusCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExportTaskStatusCode
$cparseXML :: [Node] -> Either String ExportTaskStatusCode
Core.FromXML,
ExportTaskStatusCode -> XML
(ExportTaskStatusCode -> XML) -> ToXML ExportTaskStatusCode
forall a. (a -> XML) -> ToXML a
toXML :: ExportTaskStatusCode -> XML
$ctoXML :: ExportTaskStatusCode -> XML
Core.ToXML
)
pattern ExportTaskStatusCode_CANCELLED :: ExportTaskStatusCode
pattern $bExportTaskStatusCode_CANCELLED :: ExportTaskStatusCode
$mExportTaskStatusCode_CANCELLED :: forall r. ExportTaskStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ExportTaskStatusCode_CANCELLED = ExportTaskStatusCode' "CANCELLED"
pattern ExportTaskStatusCode_COMPLETED :: ExportTaskStatusCode
pattern $bExportTaskStatusCode_COMPLETED :: ExportTaskStatusCode
$mExportTaskStatusCode_COMPLETED :: forall r. ExportTaskStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ExportTaskStatusCode_COMPLETED = ExportTaskStatusCode' "COMPLETED"
pattern ExportTaskStatusCode_FAILED :: ExportTaskStatusCode
pattern $bExportTaskStatusCode_FAILED :: ExportTaskStatusCode
$mExportTaskStatusCode_FAILED :: forall r. ExportTaskStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ExportTaskStatusCode_FAILED = ExportTaskStatusCode' "FAILED"
pattern ExportTaskStatusCode_PENDING :: ExportTaskStatusCode
pattern $bExportTaskStatusCode_PENDING :: ExportTaskStatusCode
$mExportTaskStatusCode_PENDING :: forall r. ExportTaskStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ExportTaskStatusCode_PENDING = ExportTaskStatusCode' "PENDING"
pattern ExportTaskStatusCode_PENDING_CANCEL :: ExportTaskStatusCode
pattern $bExportTaskStatusCode_PENDING_CANCEL :: ExportTaskStatusCode
$mExportTaskStatusCode_PENDING_CANCEL :: forall r. ExportTaskStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ExportTaskStatusCode_PENDING_CANCEL = ExportTaskStatusCode' "PENDING_CANCEL"
pattern ExportTaskStatusCode_RUNNING :: ExportTaskStatusCode
pattern $bExportTaskStatusCode_RUNNING :: ExportTaskStatusCode
$mExportTaskStatusCode_RUNNING :: forall r. ExportTaskStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ExportTaskStatusCode_RUNNING = ExportTaskStatusCode' "RUNNING"
{-# COMPLETE
ExportTaskStatusCode_CANCELLED,
ExportTaskStatusCode_COMPLETED,
ExportTaskStatusCode_FAILED,
ExportTaskStatusCode_PENDING,
ExportTaskStatusCode_PENDING_CANCEL,
ExportTaskStatusCode_RUNNING,
ExportTaskStatusCode'
#-}