{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MacieV2.Types.LastRunErrorStatusCode
( LastRunErrorStatusCode
( ..,
LastRunErrorStatusCode_ERROR,
LastRunErrorStatusCode_NONE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LastRunErrorStatusCode = LastRunErrorStatusCode'
{ LastRunErrorStatusCode -> Text
fromLastRunErrorStatusCode ::
Core.Text
}
deriving stock
( Int -> LastRunErrorStatusCode -> ShowS
[LastRunErrorStatusCode] -> ShowS
LastRunErrorStatusCode -> String
(Int -> LastRunErrorStatusCode -> ShowS)
-> (LastRunErrorStatusCode -> String)
-> ([LastRunErrorStatusCode] -> ShowS)
-> Show LastRunErrorStatusCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LastRunErrorStatusCode] -> ShowS
$cshowList :: [LastRunErrorStatusCode] -> ShowS
show :: LastRunErrorStatusCode -> String
$cshow :: LastRunErrorStatusCode -> String
showsPrec :: Int -> LastRunErrorStatusCode -> ShowS
$cshowsPrec :: Int -> LastRunErrorStatusCode -> ShowS
Prelude.Show,
ReadPrec [LastRunErrorStatusCode]
ReadPrec LastRunErrorStatusCode
Int -> ReadS LastRunErrorStatusCode
ReadS [LastRunErrorStatusCode]
(Int -> ReadS LastRunErrorStatusCode)
-> ReadS [LastRunErrorStatusCode]
-> ReadPrec LastRunErrorStatusCode
-> ReadPrec [LastRunErrorStatusCode]
-> Read LastRunErrorStatusCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LastRunErrorStatusCode]
$creadListPrec :: ReadPrec [LastRunErrorStatusCode]
readPrec :: ReadPrec LastRunErrorStatusCode
$creadPrec :: ReadPrec LastRunErrorStatusCode
readList :: ReadS [LastRunErrorStatusCode]
$creadList :: ReadS [LastRunErrorStatusCode]
readsPrec :: Int -> ReadS LastRunErrorStatusCode
$creadsPrec :: Int -> ReadS LastRunErrorStatusCode
Prelude.Read,
LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
(LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool)
-> (LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool)
-> Eq LastRunErrorStatusCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
$c/= :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
== :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
$c== :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
Prelude.Eq,
Eq LastRunErrorStatusCode
Eq LastRunErrorStatusCode
-> (LastRunErrorStatusCode -> LastRunErrorStatusCode -> Ordering)
-> (LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool)
-> (LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool)
-> (LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool)
-> (LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool)
-> (LastRunErrorStatusCode
-> LastRunErrorStatusCode -> LastRunErrorStatusCode)
-> (LastRunErrorStatusCode
-> LastRunErrorStatusCode -> LastRunErrorStatusCode)
-> Ord LastRunErrorStatusCode
LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
LastRunErrorStatusCode -> LastRunErrorStatusCode -> Ordering
LastRunErrorStatusCode
-> LastRunErrorStatusCode -> LastRunErrorStatusCode
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 :: LastRunErrorStatusCode
-> LastRunErrorStatusCode -> LastRunErrorStatusCode
$cmin :: LastRunErrorStatusCode
-> LastRunErrorStatusCode -> LastRunErrorStatusCode
max :: LastRunErrorStatusCode
-> LastRunErrorStatusCode -> LastRunErrorStatusCode
$cmax :: LastRunErrorStatusCode
-> LastRunErrorStatusCode -> LastRunErrorStatusCode
>= :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
$c>= :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
> :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
$c> :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
<= :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
$c<= :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
< :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
$c< :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Bool
compare :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Ordering
$ccompare :: LastRunErrorStatusCode -> LastRunErrorStatusCode -> Ordering
$cp1Ord :: Eq LastRunErrorStatusCode
Prelude.Ord,
(forall x. LastRunErrorStatusCode -> Rep LastRunErrorStatusCode x)
-> (forall x.
Rep LastRunErrorStatusCode x -> LastRunErrorStatusCode)
-> Generic LastRunErrorStatusCode
forall x. Rep LastRunErrorStatusCode x -> LastRunErrorStatusCode
forall x. LastRunErrorStatusCode -> Rep LastRunErrorStatusCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LastRunErrorStatusCode x -> LastRunErrorStatusCode
$cfrom :: forall x. LastRunErrorStatusCode -> Rep LastRunErrorStatusCode x
Prelude.Generic
)
deriving newtype
( Int -> LastRunErrorStatusCode -> Int
LastRunErrorStatusCode -> Int
(Int -> LastRunErrorStatusCode -> Int)
-> (LastRunErrorStatusCode -> Int)
-> Hashable LastRunErrorStatusCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LastRunErrorStatusCode -> Int
$chash :: LastRunErrorStatusCode -> Int
hashWithSalt :: Int -> LastRunErrorStatusCode -> Int
$chashWithSalt :: Int -> LastRunErrorStatusCode -> Int
Prelude.Hashable,
LastRunErrorStatusCode -> ()
(LastRunErrorStatusCode -> ()) -> NFData LastRunErrorStatusCode
forall a. (a -> ()) -> NFData a
rnf :: LastRunErrorStatusCode -> ()
$crnf :: LastRunErrorStatusCode -> ()
Prelude.NFData,
Text -> Either String LastRunErrorStatusCode
(Text -> Either String LastRunErrorStatusCode)
-> FromText LastRunErrorStatusCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LastRunErrorStatusCode
$cfromText :: Text -> Either String LastRunErrorStatusCode
Core.FromText,
LastRunErrorStatusCode -> Text
(LastRunErrorStatusCode -> Text) -> ToText LastRunErrorStatusCode
forall a. (a -> Text) -> ToText a
toText :: LastRunErrorStatusCode -> Text
$ctoText :: LastRunErrorStatusCode -> Text
Core.ToText,
LastRunErrorStatusCode -> ByteString
(LastRunErrorStatusCode -> ByteString)
-> ToByteString LastRunErrorStatusCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: LastRunErrorStatusCode -> ByteString
$ctoBS :: LastRunErrorStatusCode -> ByteString
Core.ToByteString,
LastRunErrorStatusCode -> ByteStringBuilder
(LastRunErrorStatusCode -> ByteStringBuilder)
-> ToLog LastRunErrorStatusCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LastRunErrorStatusCode -> ByteStringBuilder
$cbuild :: LastRunErrorStatusCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> LastRunErrorStatusCode -> [Header]
(HeaderName -> LastRunErrorStatusCode -> [Header])
-> ToHeader LastRunErrorStatusCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LastRunErrorStatusCode -> [Header]
$ctoHeader :: HeaderName -> LastRunErrorStatusCode -> [Header]
Core.ToHeader,
LastRunErrorStatusCode -> QueryString
(LastRunErrorStatusCode -> QueryString)
-> ToQuery LastRunErrorStatusCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LastRunErrorStatusCode -> QueryString
$ctoQuery :: LastRunErrorStatusCode -> QueryString
Core.ToQuery,
Value -> Parser [LastRunErrorStatusCode]
Value -> Parser LastRunErrorStatusCode
(Value -> Parser LastRunErrorStatusCode)
-> (Value -> Parser [LastRunErrorStatusCode])
-> FromJSON LastRunErrorStatusCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LastRunErrorStatusCode]
$cparseJSONList :: Value -> Parser [LastRunErrorStatusCode]
parseJSON :: Value -> Parser LastRunErrorStatusCode
$cparseJSON :: Value -> Parser LastRunErrorStatusCode
Core.FromJSON,
FromJSONKeyFunction [LastRunErrorStatusCode]
FromJSONKeyFunction LastRunErrorStatusCode
FromJSONKeyFunction LastRunErrorStatusCode
-> FromJSONKeyFunction [LastRunErrorStatusCode]
-> FromJSONKey LastRunErrorStatusCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LastRunErrorStatusCode]
$cfromJSONKeyList :: FromJSONKeyFunction [LastRunErrorStatusCode]
fromJSONKey :: FromJSONKeyFunction LastRunErrorStatusCode
$cfromJSONKey :: FromJSONKeyFunction LastRunErrorStatusCode
Core.FromJSONKey,
[LastRunErrorStatusCode] -> Encoding
[LastRunErrorStatusCode] -> Value
LastRunErrorStatusCode -> Encoding
LastRunErrorStatusCode -> Value
(LastRunErrorStatusCode -> Value)
-> (LastRunErrorStatusCode -> Encoding)
-> ([LastRunErrorStatusCode] -> Value)
-> ([LastRunErrorStatusCode] -> Encoding)
-> ToJSON LastRunErrorStatusCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LastRunErrorStatusCode] -> Encoding
$ctoEncodingList :: [LastRunErrorStatusCode] -> Encoding
toJSONList :: [LastRunErrorStatusCode] -> Value
$ctoJSONList :: [LastRunErrorStatusCode] -> Value
toEncoding :: LastRunErrorStatusCode -> Encoding
$ctoEncoding :: LastRunErrorStatusCode -> Encoding
toJSON :: LastRunErrorStatusCode -> Value
$ctoJSON :: LastRunErrorStatusCode -> Value
Core.ToJSON,
ToJSONKeyFunction [LastRunErrorStatusCode]
ToJSONKeyFunction LastRunErrorStatusCode
ToJSONKeyFunction LastRunErrorStatusCode
-> ToJSONKeyFunction [LastRunErrorStatusCode]
-> ToJSONKey LastRunErrorStatusCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LastRunErrorStatusCode]
$ctoJSONKeyList :: ToJSONKeyFunction [LastRunErrorStatusCode]
toJSONKey :: ToJSONKeyFunction LastRunErrorStatusCode
$ctoJSONKey :: ToJSONKeyFunction LastRunErrorStatusCode
Core.ToJSONKey,
[Node] -> Either String LastRunErrorStatusCode
([Node] -> Either String LastRunErrorStatusCode)
-> FromXML LastRunErrorStatusCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LastRunErrorStatusCode
$cparseXML :: [Node] -> Either String LastRunErrorStatusCode
Core.FromXML,
LastRunErrorStatusCode -> XML
(LastRunErrorStatusCode -> XML) -> ToXML LastRunErrorStatusCode
forall a. (a -> XML) -> ToXML a
toXML :: LastRunErrorStatusCode -> XML
$ctoXML :: LastRunErrorStatusCode -> XML
Core.ToXML
)
pattern LastRunErrorStatusCode_ERROR :: LastRunErrorStatusCode
pattern $bLastRunErrorStatusCode_ERROR :: LastRunErrorStatusCode
$mLastRunErrorStatusCode_ERROR :: forall r.
LastRunErrorStatusCode -> (Void# -> r) -> (Void# -> r) -> r
LastRunErrorStatusCode_ERROR = LastRunErrorStatusCode' "ERROR"
pattern LastRunErrorStatusCode_NONE :: LastRunErrorStatusCode
pattern $bLastRunErrorStatusCode_NONE :: LastRunErrorStatusCode
$mLastRunErrorStatusCode_NONE :: forall r.
LastRunErrorStatusCode -> (Void# -> r) -> (Void# -> r) -> r
LastRunErrorStatusCode_NONE = LastRunErrorStatusCode' "NONE"
{-# COMPLETE
LastRunErrorStatusCode_ERROR,
LastRunErrorStatusCode_NONE,
LastRunErrorStatusCode'
#-}