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