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