{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoT.Types.DetectMitigationActionsTaskStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoT.Types.DetectMitigationActionsTaskStatus
  ( DetectMitigationActionsTaskStatus
      ( ..,
        DetectMitigationActionsTaskStatus_CANCELED,
        DetectMitigationActionsTaskStatus_FAILED,
        DetectMitigationActionsTaskStatus_IN_PROGRESS,
        DetectMitigationActionsTaskStatus_SUCCESSFUL
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern DetectMitigationActionsTaskStatus_CANCELED :: DetectMitigationActionsTaskStatus
pattern $bDetectMitigationActionsTaskStatus_CANCELED :: DetectMitigationActionsTaskStatus
$mDetectMitigationActionsTaskStatus_CANCELED :: forall r.
DetectMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
DetectMitigationActionsTaskStatus_CANCELED = DetectMitigationActionsTaskStatus' "CANCELED"

pattern DetectMitigationActionsTaskStatus_FAILED :: DetectMitigationActionsTaskStatus
pattern $bDetectMitigationActionsTaskStatus_FAILED :: DetectMitigationActionsTaskStatus
$mDetectMitigationActionsTaskStatus_FAILED :: forall r.
DetectMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
DetectMitigationActionsTaskStatus_FAILED = DetectMitigationActionsTaskStatus' "FAILED"

pattern DetectMitigationActionsTaskStatus_IN_PROGRESS :: DetectMitigationActionsTaskStatus
pattern $bDetectMitigationActionsTaskStatus_IN_PROGRESS :: DetectMitigationActionsTaskStatus
$mDetectMitigationActionsTaskStatus_IN_PROGRESS :: forall r.
DetectMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
DetectMitigationActionsTaskStatus_IN_PROGRESS = DetectMitigationActionsTaskStatus' "IN_PROGRESS"

pattern DetectMitigationActionsTaskStatus_SUCCESSFUL :: DetectMitigationActionsTaskStatus
pattern $bDetectMitigationActionsTaskStatus_SUCCESSFUL :: DetectMitigationActionsTaskStatus
$mDetectMitigationActionsTaskStatus_SUCCESSFUL :: forall r.
DetectMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
DetectMitigationActionsTaskStatus_SUCCESSFUL = DetectMitigationActionsTaskStatus' "SUCCESSFUL"

{-# COMPLETE
  DetectMitigationActionsTaskStatus_CANCELED,
  DetectMitigationActionsTaskStatus_FAILED,
  DetectMitigationActionsTaskStatus_IN_PROGRESS,
  DetectMitigationActionsTaskStatus_SUCCESSFUL,
  DetectMitigationActionsTaskStatus'
  #-}