{-# 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.AuditMitigationActionsExecutionStatus
-- 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.AuditMitigationActionsExecutionStatus
  ( AuditMitigationActionsExecutionStatus
      ( ..,
        AuditMitigationActionsExecutionStatus_CANCELED,
        AuditMitigationActionsExecutionStatus_COMPLETED,
        AuditMitigationActionsExecutionStatus_FAILED,
        AuditMitigationActionsExecutionStatus_IN_PROGRESS,
        AuditMitigationActionsExecutionStatus_PENDING,
        AuditMitigationActionsExecutionStatus_SKIPPED
      ),
  )
where

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

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

pattern AuditMitigationActionsExecutionStatus_CANCELED :: AuditMitigationActionsExecutionStatus
pattern $bAuditMitigationActionsExecutionStatus_CANCELED :: AuditMitigationActionsExecutionStatus
$mAuditMitigationActionsExecutionStatus_CANCELED :: forall r.
AuditMitigationActionsExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsExecutionStatus_CANCELED = AuditMitigationActionsExecutionStatus' "CANCELED"

pattern AuditMitigationActionsExecutionStatus_COMPLETED :: AuditMitigationActionsExecutionStatus
pattern $bAuditMitigationActionsExecutionStatus_COMPLETED :: AuditMitigationActionsExecutionStatus
$mAuditMitigationActionsExecutionStatus_COMPLETED :: forall r.
AuditMitigationActionsExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsExecutionStatus_COMPLETED = AuditMitigationActionsExecutionStatus' "COMPLETED"

pattern AuditMitigationActionsExecutionStatus_FAILED :: AuditMitigationActionsExecutionStatus
pattern $bAuditMitigationActionsExecutionStatus_FAILED :: AuditMitigationActionsExecutionStatus
$mAuditMitigationActionsExecutionStatus_FAILED :: forall r.
AuditMitigationActionsExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsExecutionStatus_FAILED = AuditMitigationActionsExecutionStatus' "FAILED"

pattern AuditMitigationActionsExecutionStatus_IN_PROGRESS :: AuditMitigationActionsExecutionStatus
pattern $bAuditMitigationActionsExecutionStatus_IN_PROGRESS :: AuditMitigationActionsExecutionStatus
$mAuditMitigationActionsExecutionStatus_IN_PROGRESS :: forall r.
AuditMitigationActionsExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsExecutionStatus_IN_PROGRESS = AuditMitigationActionsExecutionStatus' "IN_PROGRESS"

pattern AuditMitigationActionsExecutionStatus_PENDING :: AuditMitigationActionsExecutionStatus
pattern $bAuditMitigationActionsExecutionStatus_PENDING :: AuditMitigationActionsExecutionStatus
$mAuditMitigationActionsExecutionStatus_PENDING :: forall r.
AuditMitigationActionsExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsExecutionStatus_PENDING = AuditMitigationActionsExecutionStatus' "PENDING"

pattern AuditMitigationActionsExecutionStatus_SKIPPED :: AuditMitigationActionsExecutionStatus
pattern $bAuditMitigationActionsExecutionStatus_SKIPPED :: AuditMitigationActionsExecutionStatus
$mAuditMitigationActionsExecutionStatus_SKIPPED :: forall r.
AuditMitigationActionsExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
AuditMitigationActionsExecutionStatus_SKIPPED = AuditMitigationActionsExecutionStatus' "SKIPPED"

{-# COMPLETE
  AuditMitigationActionsExecutionStatus_CANCELED,
  AuditMitigationActionsExecutionStatus_COMPLETED,
  AuditMitigationActionsExecutionStatus_FAILED,
  AuditMitigationActionsExecutionStatus_IN_PROGRESS,
  AuditMitigationActionsExecutionStatus_PENDING,
  AuditMitigationActionsExecutionStatus_SKIPPED,
  AuditMitigationActionsExecutionStatus'
  #-}