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