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