{-# 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.AuditMitigationActionsTaskStatus
-- 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.AuditMitigationActionsTaskStatus
  ( AuditMitigationActionsTaskStatus
      ( ..,
        AuditMitigationActionsTaskStatus_CANCELED,
        AuditMitigationActionsTaskStatus_COMPLETED,
        AuditMitigationActionsTaskStatus_FAILED,
        AuditMitigationActionsTaskStatus_IN_PROGRESS
      ),
  )
where

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

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

pattern AuditMitigationActionsTaskStatus_CANCELED :: AuditMitigationActionsTaskStatus
pattern $bAuditMitigationActionsTaskStatus_CANCELED :: AuditMitigationActionsTaskStatus
$mAuditMitigationActionsTaskStatus_CANCELED :: forall r.
AuditMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsTaskStatus_CANCELED = AuditMitigationActionsTaskStatus' "CANCELED"

pattern AuditMitigationActionsTaskStatus_COMPLETED :: AuditMitigationActionsTaskStatus
pattern $bAuditMitigationActionsTaskStatus_COMPLETED :: AuditMitigationActionsTaskStatus
$mAuditMitigationActionsTaskStatus_COMPLETED :: forall r.
AuditMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsTaskStatus_COMPLETED = AuditMitigationActionsTaskStatus' "COMPLETED"

pattern AuditMitigationActionsTaskStatus_FAILED :: AuditMitigationActionsTaskStatus
pattern $bAuditMitigationActionsTaskStatus_FAILED :: AuditMitigationActionsTaskStatus
$mAuditMitigationActionsTaskStatus_FAILED :: forall r.
AuditMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsTaskStatus_FAILED = AuditMitigationActionsTaskStatus' "FAILED"

pattern AuditMitigationActionsTaskStatus_IN_PROGRESS :: AuditMitigationActionsTaskStatus
pattern $bAuditMitigationActionsTaskStatus_IN_PROGRESS :: AuditMitigationActionsTaskStatus
$mAuditMitigationActionsTaskStatus_IN_PROGRESS :: forall r.
AuditMitigationActionsTaskStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsTaskStatus_IN_PROGRESS = AuditMitigationActionsTaskStatus' "IN_PROGRESS"

{-# COMPLETE
  AuditMitigationActionsTaskStatus_CANCELED,
  AuditMitigationActionsTaskStatus_COMPLETED,
  AuditMitigationActionsTaskStatus_FAILED,
  AuditMitigationActionsTaskStatus_IN_PROGRESS,
  AuditMitigationActionsTaskStatus'
  #-}