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