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