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