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