{-# 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.IAM.Types.DeletionTaskStatusType
-- 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.IAM.Types.DeletionTaskStatusType
  ( DeletionTaskStatusType
      ( ..,
        DeletionTaskStatusType_FAILED,
        DeletionTaskStatusType_IN_PROGRESS,
        DeletionTaskStatusType_NOT_STARTED,
        DeletionTaskStatusType_SUCCEEDED
      ),
  )
where

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

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

pattern DeletionTaskStatusType_FAILED :: DeletionTaskStatusType
pattern $bDeletionTaskStatusType_FAILED :: DeletionTaskStatusType
$mDeletionTaskStatusType_FAILED :: forall r.
DeletionTaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
DeletionTaskStatusType_FAILED = DeletionTaskStatusType' "FAILED"

pattern DeletionTaskStatusType_IN_PROGRESS :: DeletionTaskStatusType
pattern $bDeletionTaskStatusType_IN_PROGRESS :: DeletionTaskStatusType
$mDeletionTaskStatusType_IN_PROGRESS :: forall r.
DeletionTaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
DeletionTaskStatusType_IN_PROGRESS = DeletionTaskStatusType' "IN_PROGRESS"

pattern DeletionTaskStatusType_NOT_STARTED :: DeletionTaskStatusType
pattern $bDeletionTaskStatusType_NOT_STARTED :: DeletionTaskStatusType
$mDeletionTaskStatusType_NOT_STARTED :: forall r.
DeletionTaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
DeletionTaskStatusType_NOT_STARTED = DeletionTaskStatusType' "NOT_STARTED"

pattern DeletionTaskStatusType_SUCCEEDED :: DeletionTaskStatusType
pattern $bDeletionTaskStatusType_SUCCEEDED :: DeletionTaskStatusType
$mDeletionTaskStatusType_SUCCEEDED :: forall r.
DeletionTaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
DeletionTaskStatusType_SUCCEEDED = DeletionTaskStatusType' "SUCCEEDED"

{-# COMPLETE
  DeletionTaskStatusType_FAILED,
  DeletionTaskStatusType_IN_PROGRESS,
  DeletionTaskStatusType_NOT_STARTED,
  DeletionTaskStatusType_SUCCEEDED,
  DeletionTaskStatusType'
  #-}