{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.LookoutMetrics.Types.AnomalyDetectionTaskStatus
( AnomalyDetectionTaskStatus
( ..,
AnomalyDetectionTaskStatus_COMPLETED,
AnomalyDetectionTaskStatus_FAILED,
AnomalyDetectionTaskStatus_FAILED_TO_SCHEDULE,
AnomalyDetectionTaskStatus_IN_PROGRESS,
AnomalyDetectionTaskStatus_PENDING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AnomalyDetectionTaskStatus = AnomalyDetectionTaskStatus'
{ AnomalyDetectionTaskStatus -> Text
fromAnomalyDetectionTaskStatus ::
Core.Text
}
deriving stock
( Int -> AnomalyDetectionTaskStatus -> ShowS
[AnomalyDetectionTaskStatus] -> ShowS
AnomalyDetectionTaskStatus -> String
(Int -> AnomalyDetectionTaskStatus -> ShowS)
-> (AnomalyDetectionTaskStatus -> String)
-> ([AnomalyDetectionTaskStatus] -> ShowS)
-> Show AnomalyDetectionTaskStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AnomalyDetectionTaskStatus] -> ShowS
$cshowList :: [AnomalyDetectionTaskStatus] -> ShowS
show :: AnomalyDetectionTaskStatus -> String
$cshow :: AnomalyDetectionTaskStatus -> String
showsPrec :: Int -> AnomalyDetectionTaskStatus -> ShowS
$cshowsPrec :: Int -> AnomalyDetectionTaskStatus -> ShowS
Prelude.Show,
ReadPrec [AnomalyDetectionTaskStatus]
ReadPrec AnomalyDetectionTaskStatus
Int -> ReadS AnomalyDetectionTaskStatus
ReadS [AnomalyDetectionTaskStatus]
(Int -> ReadS AnomalyDetectionTaskStatus)
-> ReadS [AnomalyDetectionTaskStatus]
-> ReadPrec AnomalyDetectionTaskStatus
-> ReadPrec [AnomalyDetectionTaskStatus]
-> Read AnomalyDetectionTaskStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AnomalyDetectionTaskStatus]
$creadListPrec :: ReadPrec [AnomalyDetectionTaskStatus]
readPrec :: ReadPrec AnomalyDetectionTaskStatus
$creadPrec :: ReadPrec AnomalyDetectionTaskStatus
readList :: ReadS [AnomalyDetectionTaskStatus]
$creadList :: ReadS [AnomalyDetectionTaskStatus]
readsPrec :: Int -> ReadS AnomalyDetectionTaskStatus
$creadsPrec :: Int -> ReadS AnomalyDetectionTaskStatus
Prelude.Read,
AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
(AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool)
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Bool)
-> Eq AnomalyDetectionTaskStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
$c/= :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
== :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
$c== :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
Prelude.Eq,
Eq AnomalyDetectionTaskStatus
Eq AnomalyDetectionTaskStatus
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Ordering)
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Bool)
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Bool)
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Bool)
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Bool)
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus)
-> (AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus)
-> Ord AnomalyDetectionTaskStatus
AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Ordering
AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus
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 :: AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus
$cmin :: AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus
max :: AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus
$cmax :: AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus
>= :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
$c>= :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
> :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
$c> :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
<= :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
$c<= :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
< :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
$c< :: AnomalyDetectionTaskStatus -> AnomalyDetectionTaskStatus -> Bool
compare :: AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Ordering
$ccompare :: AnomalyDetectionTaskStatus
-> AnomalyDetectionTaskStatus -> Ordering
$cp1Ord :: Eq AnomalyDetectionTaskStatus
Prelude.Ord,
(forall x.
AnomalyDetectionTaskStatus -> Rep AnomalyDetectionTaskStatus x)
-> (forall x.
Rep AnomalyDetectionTaskStatus x -> AnomalyDetectionTaskStatus)
-> Generic AnomalyDetectionTaskStatus
forall x.
Rep AnomalyDetectionTaskStatus x -> AnomalyDetectionTaskStatus
forall x.
AnomalyDetectionTaskStatus -> Rep AnomalyDetectionTaskStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AnomalyDetectionTaskStatus x -> AnomalyDetectionTaskStatus
$cfrom :: forall x.
AnomalyDetectionTaskStatus -> Rep AnomalyDetectionTaskStatus x
Prelude.Generic
)
deriving newtype
( Int -> AnomalyDetectionTaskStatus -> Int
AnomalyDetectionTaskStatus -> Int
(Int -> AnomalyDetectionTaskStatus -> Int)
-> (AnomalyDetectionTaskStatus -> Int)
-> Hashable AnomalyDetectionTaskStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AnomalyDetectionTaskStatus -> Int
$chash :: AnomalyDetectionTaskStatus -> Int
hashWithSalt :: Int -> AnomalyDetectionTaskStatus -> Int
$chashWithSalt :: Int -> AnomalyDetectionTaskStatus -> Int
Prelude.Hashable,
AnomalyDetectionTaskStatus -> ()
(AnomalyDetectionTaskStatus -> ())
-> NFData AnomalyDetectionTaskStatus
forall a. (a -> ()) -> NFData a
rnf :: AnomalyDetectionTaskStatus -> ()
$crnf :: AnomalyDetectionTaskStatus -> ()
Prelude.NFData,
Text -> Either String AnomalyDetectionTaskStatus
(Text -> Either String AnomalyDetectionTaskStatus)
-> FromText AnomalyDetectionTaskStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AnomalyDetectionTaskStatus
$cfromText :: Text -> Either String AnomalyDetectionTaskStatus
Core.FromText,
AnomalyDetectionTaskStatus -> Text
(AnomalyDetectionTaskStatus -> Text)
-> ToText AnomalyDetectionTaskStatus
forall a. (a -> Text) -> ToText a
toText :: AnomalyDetectionTaskStatus -> Text
$ctoText :: AnomalyDetectionTaskStatus -> Text
Core.ToText,
AnomalyDetectionTaskStatus -> ByteString
(AnomalyDetectionTaskStatus -> ByteString)
-> ToByteString AnomalyDetectionTaskStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: AnomalyDetectionTaskStatus -> ByteString
$ctoBS :: AnomalyDetectionTaskStatus -> ByteString
Core.ToByteString,
AnomalyDetectionTaskStatus -> ByteStringBuilder
(AnomalyDetectionTaskStatus -> ByteStringBuilder)
-> ToLog AnomalyDetectionTaskStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AnomalyDetectionTaskStatus -> ByteStringBuilder
$cbuild :: AnomalyDetectionTaskStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> AnomalyDetectionTaskStatus -> [Header]
(HeaderName -> AnomalyDetectionTaskStatus -> [Header])
-> ToHeader AnomalyDetectionTaskStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AnomalyDetectionTaskStatus -> [Header]
$ctoHeader :: HeaderName -> AnomalyDetectionTaskStatus -> [Header]
Core.ToHeader,
AnomalyDetectionTaskStatus -> QueryString
(AnomalyDetectionTaskStatus -> QueryString)
-> ToQuery AnomalyDetectionTaskStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AnomalyDetectionTaskStatus -> QueryString
$ctoQuery :: AnomalyDetectionTaskStatus -> QueryString
Core.ToQuery,
Value -> Parser [AnomalyDetectionTaskStatus]
Value -> Parser AnomalyDetectionTaskStatus
(Value -> Parser AnomalyDetectionTaskStatus)
-> (Value -> Parser [AnomalyDetectionTaskStatus])
-> FromJSON AnomalyDetectionTaskStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AnomalyDetectionTaskStatus]
$cparseJSONList :: Value -> Parser [AnomalyDetectionTaskStatus]
parseJSON :: Value -> Parser AnomalyDetectionTaskStatus
$cparseJSON :: Value -> Parser AnomalyDetectionTaskStatus
Core.FromJSON,
FromJSONKeyFunction [AnomalyDetectionTaskStatus]
FromJSONKeyFunction AnomalyDetectionTaskStatus
FromJSONKeyFunction AnomalyDetectionTaskStatus
-> FromJSONKeyFunction [AnomalyDetectionTaskStatus]
-> FromJSONKey AnomalyDetectionTaskStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AnomalyDetectionTaskStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AnomalyDetectionTaskStatus]
fromJSONKey :: FromJSONKeyFunction AnomalyDetectionTaskStatus
$cfromJSONKey :: FromJSONKeyFunction AnomalyDetectionTaskStatus
Core.FromJSONKey,
[AnomalyDetectionTaskStatus] -> Encoding
[AnomalyDetectionTaskStatus] -> Value
AnomalyDetectionTaskStatus -> Encoding
AnomalyDetectionTaskStatus -> Value
(AnomalyDetectionTaskStatus -> Value)
-> (AnomalyDetectionTaskStatus -> Encoding)
-> ([AnomalyDetectionTaskStatus] -> Value)
-> ([AnomalyDetectionTaskStatus] -> Encoding)
-> ToJSON AnomalyDetectionTaskStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AnomalyDetectionTaskStatus] -> Encoding
$ctoEncodingList :: [AnomalyDetectionTaskStatus] -> Encoding
toJSONList :: [AnomalyDetectionTaskStatus] -> Value
$ctoJSONList :: [AnomalyDetectionTaskStatus] -> Value
toEncoding :: AnomalyDetectionTaskStatus -> Encoding
$ctoEncoding :: AnomalyDetectionTaskStatus -> Encoding
toJSON :: AnomalyDetectionTaskStatus -> Value
$ctoJSON :: AnomalyDetectionTaskStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [AnomalyDetectionTaskStatus]
ToJSONKeyFunction AnomalyDetectionTaskStatus
ToJSONKeyFunction AnomalyDetectionTaskStatus
-> ToJSONKeyFunction [AnomalyDetectionTaskStatus]
-> ToJSONKey AnomalyDetectionTaskStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AnomalyDetectionTaskStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AnomalyDetectionTaskStatus]
toJSONKey :: ToJSONKeyFunction AnomalyDetectionTaskStatus
$ctoJSONKey :: ToJSONKeyFunction AnomalyDetectionTaskStatus
Core.ToJSONKey,
[Node] -> Either String AnomalyDetectionTaskStatus
([Node] -> Either String AnomalyDetectionTaskStatus)
-> FromXML AnomalyDetectionTaskStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AnomalyDetectionTaskStatus
$cparseXML :: [Node] -> Either String AnomalyDetectionTaskStatus
Core.FromXML,
AnomalyDetectionTaskStatus -> XML
(AnomalyDetectionTaskStatus -> XML)
-> ToXML AnomalyDetectionTaskStatus
forall a. (a -> XML) -> ToXML a
toXML :: AnomalyDetectionTaskStatus -> XML
$ctoXML :: AnomalyDetectionTaskStatus -> XML
Core.ToXML
)
pattern AnomalyDetectionTaskStatus_COMPLETED :: AnomalyDetectionTaskStatus
pattern $bAnomalyDetectionTaskStatus_COMPLETED :: AnomalyDetectionTaskStatus
$mAnomalyDetectionTaskStatus_COMPLETED :: forall r.
AnomalyDetectionTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectionTaskStatus_COMPLETED = AnomalyDetectionTaskStatus' "COMPLETED"
pattern AnomalyDetectionTaskStatus_FAILED :: AnomalyDetectionTaskStatus
pattern $bAnomalyDetectionTaskStatus_FAILED :: AnomalyDetectionTaskStatus
$mAnomalyDetectionTaskStatus_FAILED :: forall r.
AnomalyDetectionTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectionTaskStatus_FAILED = AnomalyDetectionTaskStatus' "FAILED"
pattern AnomalyDetectionTaskStatus_FAILED_TO_SCHEDULE :: AnomalyDetectionTaskStatus
pattern $bAnomalyDetectionTaskStatus_FAILED_TO_SCHEDULE :: AnomalyDetectionTaskStatus
$mAnomalyDetectionTaskStatus_FAILED_TO_SCHEDULE :: forall r.
AnomalyDetectionTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectionTaskStatus_FAILED_TO_SCHEDULE = AnomalyDetectionTaskStatus' "FAILED_TO_SCHEDULE"
pattern AnomalyDetectionTaskStatus_IN_PROGRESS :: AnomalyDetectionTaskStatus
pattern $bAnomalyDetectionTaskStatus_IN_PROGRESS :: AnomalyDetectionTaskStatus
$mAnomalyDetectionTaskStatus_IN_PROGRESS :: forall r.
AnomalyDetectionTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectionTaskStatus_IN_PROGRESS = AnomalyDetectionTaskStatus' "IN_PROGRESS"
pattern AnomalyDetectionTaskStatus_PENDING :: AnomalyDetectionTaskStatus
pattern $bAnomalyDetectionTaskStatus_PENDING :: AnomalyDetectionTaskStatus
$mAnomalyDetectionTaskStatus_PENDING :: forall r.
AnomalyDetectionTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectionTaskStatus_PENDING = AnomalyDetectionTaskStatus' "PENDING"
{-# COMPLETE
AnomalyDetectionTaskStatus_COMPLETED,
AnomalyDetectionTaskStatus_FAILED,
AnomalyDetectionTaskStatus_FAILED_TO_SCHEDULE,
AnomalyDetectionTaskStatus_IN_PROGRESS,
AnomalyDetectionTaskStatus_PENDING,
AnomalyDetectionTaskStatus'
#-}