{-# 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.Severity
( Severity
( ..,
Severity_High,
Severity_Informational,
Severity_Low,
Severity_Medium,
Severity_Undefined
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Severity = Severity'
{ Severity -> Text
fromSeverity ::
Core.Text
}
deriving stock
( Int -> Severity -> ShowS
[Severity] -> ShowS
Severity -> String
(Int -> Severity -> ShowS)
-> (Severity -> String) -> ([Severity] -> ShowS) -> Show Severity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Severity] -> ShowS
$cshowList :: [Severity] -> ShowS
show :: Severity -> String
$cshow :: Severity -> String
showsPrec :: Int -> Severity -> ShowS
$cshowsPrec :: Int -> Severity -> ShowS
Prelude.Show,
ReadPrec [Severity]
ReadPrec Severity
Int -> ReadS Severity
ReadS [Severity]
(Int -> ReadS Severity)
-> ReadS [Severity]
-> ReadPrec Severity
-> ReadPrec [Severity]
-> Read Severity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Severity]
$creadListPrec :: ReadPrec [Severity]
readPrec :: ReadPrec Severity
$creadPrec :: ReadPrec Severity
readList :: ReadS [Severity]
$creadList :: ReadS [Severity]
readsPrec :: Int -> ReadS Severity
$creadsPrec :: Int -> ReadS Severity
Prelude.Read,
Severity -> Severity -> Bool
(Severity -> Severity -> Bool)
-> (Severity -> Severity -> Bool) -> Eq Severity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Severity -> Severity -> Bool
$c/= :: Severity -> Severity -> Bool
== :: Severity -> Severity -> Bool
$c== :: Severity -> Severity -> Bool
Prelude.Eq,
Eq Severity
Eq Severity
-> (Severity -> Severity -> Ordering)
-> (Severity -> Severity -> Bool)
-> (Severity -> Severity -> Bool)
-> (Severity -> Severity -> Bool)
-> (Severity -> Severity -> Bool)
-> (Severity -> Severity -> Severity)
-> (Severity -> Severity -> Severity)
-> Ord Severity
Severity -> Severity -> Bool
Severity -> Severity -> Ordering
Severity -> Severity -> Severity
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 :: Severity -> Severity -> Severity
$cmin :: Severity -> Severity -> Severity
max :: Severity -> Severity -> Severity
$cmax :: Severity -> Severity -> Severity
>= :: Severity -> Severity -> Bool
$c>= :: Severity -> Severity -> Bool
> :: Severity -> Severity -> Bool
$c> :: Severity -> Severity -> Bool
<= :: Severity -> Severity -> Bool
$c<= :: Severity -> Severity -> Bool
< :: Severity -> Severity -> Bool
$c< :: Severity -> Severity -> Bool
compare :: Severity -> Severity -> Ordering
$ccompare :: Severity -> Severity -> Ordering
$cp1Ord :: Eq Severity
Prelude.Ord,
(forall x. Severity -> Rep Severity x)
-> (forall x. Rep Severity x -> Severity) -> Generic Severity
forall x. Rep Severity x -> Severity
forall x. Severity -> Rep Severity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Severity x -> Severity
$cfrom :: forall x. Severity -> Rep Severity x
Prelude.Generic
)
deriving newtype
( Int -> Severity -> Int
Severity -> Int
(Int -> Severity -> Int) -> (Severity -> Int) -> Hashable Severity
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Severity -> Int
$chash :: Severity -> Int
hashWithSalt :: Int -> Severity -> Int
$chashWithSalt :: Int -> Severity -> Int
Prelude.Hashable,
Severity -> ()
(Severity -> ()) -> NFData Severity
forall a. (a -> ()) -> NFData a
rnf :: Severity -> ()
$crnf :: Severity -> ()
Prelude.NFData,
Text -> Either String Severity
(Text -> Either String Severity) -> FromText Severity
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Severity
$cfromText :: Text -> Either String Severity
Core.FromText,
Severity -> Text
(Severity -> Text) -> ToText Severity
forall a. (a -> Text) -> ToText a
toText :: Severity -> Text
$ctoText :: Severity -> Text
Core.ToText,
Severity -> ByteString
(Severity -> ByteString) -> ToByteString Severity
forall a. (a -> ByteString) -> ToByteString a
toBS :: Severity -> ByteString
$ctoBS :: Severity -> ByteString
Core.ToByteString,
Severity -> ByteStringBuilder
(Severity -> ByteStringBuilder) -> ToLog Severity
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Severity -> ByteStringBuilder
$cbuild :: Severity -> ByteStringBuilder
Core.ToLog,
HeaderName -> Severity -> [Header]
(HeaderName -> Severity -> [Header]) -> ToHeader Severity
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Severity -> [Header]
$ctoHeader :: HeaderName -> Severity -> [Header]
Core.ToHeader,
Severity -> QueryString
(Severity -> QueryString) -> ToQuery Severity
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Severity -> QueryString
$ctoQuery :: Severity -> QueryString
Core.ToQuery,
Value -> Parser [Severity]
Value -> Parser Severity
(Value -> Parser Severity)
-> (Value -> Parser [Severity]) -> FromJSON Severity
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Severity]
$cparseJSONList :: Value -> Parser [Severity]
parseJSON :: Value -> Parser Severity
$cparseJSON :: Value -> Parser Severity
Core.FromJSON,
FromJSONKeyFunction [Severity]
FromJSONKeyFunction Severity
FromJSONKeyFunction Severity
-> FromJSONKeyFunction [Severity] -> FromJSONKey Severity
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Severity]
$cfromJSONKeyList :: FromJSONKeyFunction [Severity]
fromJSONKey :: FromJSONKeyFunction Severity
$cfromJSONKey :: FromJSONKeyFunction Severity
Core.FromJSONKey,
[Severity] -> Encoding
[Severity] -> Value
Severity -> Encoding
Severity -> Value
(Severity -> Value)
-> (Severity -> Encoding)
-> ([Severity] -> Value)
-> ([Severity] -> Encoding)
-> ToJSON Severity
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Severity] -> Encoding
$ctoEncodingList :: [Severity] -> Encoding
toJSONList :: [Severity] -> Value
$ctoJSONList :: [Severity] -> Value
toEncoding :: Severity -> Encoding
$ctoEncoding :: Severity -> Encoding
toJSON :: Severity -> Value
$ctoJSON :: Severity -> Value
Core.ToJSON,
ToJSONKeyFunction [Severity]
ToJSONKeyFunction Severity
ToJSONKeyFunction Severity
-> ToJSONKeyFunction [Severity] -> ToJSONKey Severity
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Severity]
$ctoJSONKeyList :: ToJSONKeyFunction [Severity]
toJSONKey :: ToJSONKeyFunction Severity
$ctoJSONKey :: ToJSONKeyFunction Severity
Core.ToJSONKey,
[Node] -> Either String Severity
([Node] -> Either String Severity) -> FromXML Severity
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Severity
$cparseXML :: [Node] -> Either String Severity
Core.FromXML,
Severity -> XML
(Severity -> XML) -> ToXML Severity
forall a. (a -> XML) -> ToXML a
toXML :: Severity -> XML
$ctoXML :: Severity -> XML
Core.ToXML
)
pattern Severity_High :: Severity
pattern $bSeverity_High :: Severity
$mSeverity_High :: forall r. Severity -> (Void# -> r) -> (Void# -> r) -> r
Severity_High = Severity' "High"
pattern Severity_Informational :: Severity
pattern $bSeverity_Informational :: Severity
$mSeverity_Informational :: forall r. Severity -> (Void# -> r) -> (Void# -> r) -> r
Severity_Informational = Severity' "Informational"
pattern Severity_Low :: Severity
pattern $bSeverity_Low :: Severity
$mSeverity_Low :: forall r. Severity -> (Void# -> r) -> (Void# -> r) -> r
Severity_Low = Severity' "Low"
pattern Severity_Medium :: Severity
pattern $bSeverity_Medium :: Severity
$mSeverity_Medium :: forall r. Severity -> (Void# -> r) -> (Void# -> r) -> r
Severity_Medium = Severity' "Medium"
pattern Severity_Undefined :: Severity
pattern $bSeverity_Undefined :: Severity
$mSeverity_Undefined :: forall r. Severity -> (Void# -> r) -> (Void# -> r) -> r
Severity_Undefined = Severity' "Undefined"
{-# COMPLETE
Severity_High,
Severity_Informational,
Severity_Low,
Severity_Medium,
Severity_Undefined,
Severity'
#-}