{-# 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.ThreatIntelSetFormat
( ThreatIntelSetFormat
( ..,
ThreatIntelSetFormat_ALIEN_VAULT,
ThreatIntelSetFormat_FIRE_EYE,
ThreatIntelSetFormat_OTX_CSV,
ThreatIntelSetFormat_PROOF_POINT,
ThreatIntelSetFormat_STIX,
ThreatIntelSetFormat_TXT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ThreatIntelSetFormat = ThreatIntelSetFormat'
{ ThreatIntelSetFormat -> Text
fromThreatIntelSetFormat ::
Core.Text
}
deriving stock
( Int -> ThreatIntelSetFormat -> ShowS
[ThreatIntelSetFormat] -> ShowS
ThreatIntelSetFormat -> String
(Int -> ThreatIntelSetFormat -> ShowS)
-> (ThreatIntelSetFormat -> String)
-> ([ThreatIntelSetFormat] -> ShowS)
-> Show ThreatIntelSetFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ThreatIntelSetFormat] -> ShowS
$cshowList :: [ThreatIntelSetFormat] -> ShowS
show :: ThreatIntelSetFormat -> String
$cshow :: ThreatIntelSetFormat -> String
showsPrec :: Int -> ThreatIntelSetFormat -> ShowS
$cshowsPrec :: Int -> ThreatIntelSetFormat -> ShowS
Prelude.Show,
ReadPrec [ThreatIntelSetFormat]
ReadPrec ThreatIntelSetFormat
Int -> ReadS ThreatIntelSetFormat
ReadS [ThreatIntelSetFormat]
(Int -> ReadS ThreatIntelSetFormat)
-> ReadS [ThreatIntelSetFormat]
-> ReadPrec ThreatIntelSetFormat
-> ReadPrec [ThreatIntelSetFormat]
-> Read ThreatIntelSetFormat
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ThreatIntelSetFormat]
$creadListPrec :: ReadPrec [ThreatIntelSetFormat]
readPrec :: ReadPrec ThreatIntelSetFormat
$creadPrec :: ReadPrec ThreatIntelSetFormat
readList :: ReadS [ThreatIntelSetFormat]
$creadList :: ReadS [ThreatIntelSetFormat]
readsPrec :: Int -> ReadS ThreatIntelSetFormat
$creadsPrec :: Int -> ReadS ThreatIntelSetFormat
Prelude.Read,
ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
(ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool)
-> (ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool)
-> Eq ThreatIntelSetFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
$c/= :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
== :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
$c== :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
Prelude.Eq,
Eq ThreatIntelSetFormat
Eq ThreatIntelSetFormat
-> (ThreatIntelSetFormat -> ThreatIntelSetFormat -> Ordering)
-> (ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool)
-> (ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool)
-> (ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool)
-> (ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool)
-> (ThreatIntelSetFormat
-> ThreatIntelSetFormat -> ThreatIntelSetFormat)
-> (ThreatIntelSetFormat
-> ThreatIntelSetFormat -> ThreatIntelSetFormat)
-> Ord ThreatIntelSetFormat
ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
ThreatIntelSetFormat -> ThreatIntelSetFormat -> Ordering
ThreatIntelSetFormat
-> ThreatIntelSetFormat -> ThreatIntelSetFormat
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 :: ThreatIntelSetFormat
-> ThreatIntelSetFormat -> ThreatIntelSetFormat
$cmin :: ThreatIntelSetFormat
-> ThreatIntelSetFormat -> ThreatIntelSetFormat
max :: ThreatIntelSetFormat
-> ThreatIntelSetFormat -> ThreatIntelSetFormat
$cmax :: ThreatIntelSetFormat
-> ThreatIntelSetFormat -> ThreatIntelSetFormat
>= :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
$c>= :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
> :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
$c> :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
<= :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
$c<= :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
< :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
$c< :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Bool
compare :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Ordering
$ccompare :: ThreatIntelSetFormat -> ThreatIntelSetFormat -> Ordering
$cp1Ord :: Eq ThreatIntelSetFormat
Prelude.Ord,
(forall x. ThreatIntelSetFormat -> Rep ThreatIntelSetFormat x)
-> (forall x. Rep ThreatIntelSetFormat x -> ThreatIntelSetFormat)
-> Generic ThreatIntelSetFormat
forall x. Rep ThreatIntelSetFormat x -> ThreatIntelSetFormat
forall x. ThreatIntelSetFormat -> Rep ThreatIntelSetFormat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ThreatIntelSetFormat x -> ThreatIntelSetFormat
$cfrom :: forall x. ThreatIntelSetFormat -> Rep ThreatIntelSetFormat x
Prelude.Generic
)
deriving newtype
( Int -> ThreatIntelSetFormat -> Int
ThreatIntelSetFormat -> Int
(Int -> ThreatIntelSetFormat -> Int)
-> (ThreatIntelSetFormat -> Int) -> Hashable ThreatIntelSetFormat
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ThreatIntelSetFormat -> Int
$chash :: ThreatIntelSetFormat -> Int
hashWithSalt :: Int -> ThreatIntelSetFormat -> Int
$chashWithSalt :: Int -> ThreatIntelSetFormat -> Int
Prelude.Hashable,
ThreatIntelSetFormat -> ()
(ThreatIntelSetFormat -> ()) -> NFData ThreatIntelSetFormat
forall a. (a -> ()) -> NFData a
rnf :: ThreatIntelSetFormat -> ()
$crnf :: ThreatIntelSetFormat -> ()
Prelude.NFData,
Text -> Either String ThreatIntelSetFormat
(Text -> Either String ThreatIntelSetFormat)
-> FromText ThreatIntelSetFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ThreatIntelSetFormat
$cfromText :: Text -> Either String ThreatIntelSetFormat
Core.FromText,
ThreatIntelSetFormat -> Text
(ThreatIntelSetFormat -> Text) -> ToText ThreatIntelSetFormat
forall a. (a -> Text) -> ToText a
toText :: ThreatIntelSetFormat -> Text
$ctoText :: ThreatIntelSetFormat -> Text
Core.ToText,
ThreatIntelSetFormat -> ByteString
(ThreatIntelSetFormat -> ByteString)
-> ToByteString ThreatIntelSetFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: ThreatIntelSetFormat -> ByteString
$ctoBS :: ThreatIntelSetFormat -> ByteString
Core.ToByteString,
ThreatIntelSetFormat -> ByteStringBuilder
(ThreatIntelSetFormat -> ByteStringBuilder)
-> ToLog ThreatIntelSetFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ThreatIntelSetFormat -> ByteStringBuilder
$cbuild :: ThreatIntelSetFormat -> ByteStringBuilder
Core.ToLog,
HeaderName -> ThreatIntelSetFormat -> [Header]
(HeaderName -> ThreatIntelSetFormat -> [Header])
-> ToHeader ThreatIntelSetFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ThreatIntelSetFormat -> [Header]
$ctoHeader :: HeaderName -> ThreatIntelSetFormat -> [Header]
Core.ToHeader,
ThreatIntelSetFormat -> QueryString
(ThreatIntelSetFormat -> QueryString)
-> ToQuery ThreatIntelSetFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ThreatIntelSetFormat -> QueryString
$ctoQuery :: ThreatIntelSetFormat -> QueryString
Core.ToQuery,
Value -> Parser [ThreatIntelSetFormat]
Value -> Parser ThreatIntelSetFormat
(Value -> Parser ThreatIntelSetFormat)
-> (Value -> Parser [ThreatIntelSetFormat])
-> FromJSON ThreatIntelSetFormat
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ThreatIntelSetFormat]
$cparseJSONList :: Value -> Parser [ThreatIntelSetFormat]
parseJSON :: Value -> Parser ThreatIntelSetFormat
$cparseJSON :: Value -> Parser ThreatIntelSetFormat
Core.FromJSON,
FromJSONKeyFunction [ThreatIntelSetFormat]
FromJSONKeyFunction ThreatIntelSetFormat
FromJSONKeyFunction ThreatIntelSetFormat
-> FromJSONKeyFunction [ThreatIntelSetFormat]
-> FromJSONKey ThreatIntelSetFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ThreatIntelSetFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [ThreatIntelSetFormat]
fromJSONKey :: FromJSONKeyFunction ThreatIntelSetFormat
$cfromJSONKey :: FromJSONKeyFunction ThreatIntelSetFormat
Core.FromJSONKey,
[ThreatIntelSetFormat] -> Encoding
[ThreatIntelSetFormat] -> Value
ThreatIntelSetFormat -> Encoding
ThreatIntelSetFormat -> Value
(ThreatIntelSetFormat -> Value)
-> (ThreatIntelSetFormat -> Encoding)
-> ([ThreatIntelSetFormat] -> Value)
-> ([ThreatIntelSetFormat] -> Encoding)
-> ToJSON ThreatIntelSetFormat
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ThreatIntelSetFormat] -> Encoding
$ctoEncodingList :: [ThreatIntelSetFormat] -> Encoding
toJSONList :: [ThreatIntelSetFormat] -> Value
$ctoJSONList :: [ThreatIntelSetFormat] -> Value
toEncoding :: ThreatIntelSetFormat -> Encoding
$ctoEncoding :: ThreatIntelSetFormat -> Encoding
toJSON :: ThreatIntelSetFormat -> Value
$ctoJSON :: ThreatIntelSetFormat -> Value
Core.ToJSON,
ToJSONKeyFunction [ThreatIntelSetFormat]
ToJSONKeyFunction ThreatIntelSetFormat
ToJSONKeyFunction ThreatIntelSetFormat
-> ToJSONKeyFunction [ThreatIntelSetFormat]
-> ToJSONKey ThreatIntelSetFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ThreatIntelSetFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [ThreatIntelSetFormat]
toJSONKey :: ToJSONKeyFunction ThreatIntelSetFormat
$ctoJSONKey :: ToJSONKeyFunction ThreatIntelSetFormat
Core.ToJSONKey,
[Node] -> Either String ThreatIntelSetFormat
([Node] -> Either String ThreatIntelSetFormat)
-> FromXML ThreatIntelSetFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ThreatIntelSetFormat
$cparseXML :: [Node] -> Either String ThreatIntelSetFormat
Core.FromXML,
ThreatIntelSetFormat -> XML
(ThreatIntelSetFormat -> XML) -> ToXML ThreatIntelSetFormat
forall a. (a -> XML) -> ToXML a
toXML :: ThreatIntelSetFormat -> XML
$ctoXML :: ThreatIntelSetFormat -> XML
Core.ToXML
)
pattern ThreatIntelSetFormat_ALIEN_VAULT :: ThreatIntelSetFormat
pattern $bThreatIntelSetFormat_ALIEN_VAULT :: ThreatIntelSetFormat
$mThreatIntelSetFormat_ALIEN_VAULT :: forall r. ThreatIntelSetFormat -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetFormat_ALIEN_VAULT = ThreatIntelSetFormat' "ALIEN_VAULT"
pattern ThreatIntelSetFormat_FIRE_EYE :: ThreatIntelSetFormat
pattern $bThreatIntelSetFormat_FIRE_EYE :: ThreatIntelSetFormat
$mThreatIntelSetFormat_FIRE_EYE :: forall r. ThreatIntelSetFormat -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetFormat_FIRE_EYE = ThreatIntelSetFormat' "FIRE_EYE"
pattern ThreatIntelSetFormat_OTX_CSV :: ThreatIntelSetFormat
pattern $bThreatIntelSetFormat_OTX_CSV :: ThreatIntelSetFormat
$mThreatIntelSetFormat_OTX_CSV :: forall r. ThreatIntelSetFormat -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetFormat_OTX_CSV = ThreatIntelSetFormat' "OTX_CSV"
pattern ThreatIntelSetFormat_PROOF_POINT :: ThreatIntelSetFormat
pattern $bThreatIntelSetFormat_PROOF_POINT :: ThreatIntelSetFormat
$mThreatIntelSetFormat_PROOF_POINT :: forall r. ThreatIntelSetFormat -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetFormat_PROOF_POINT = ThreatIntelSetFormat' "PROOF_POINT"
pattern ThreatIntelSetFormat_STIX :: ThreatIntelSetFormat
pattern $bThreatIntelSetFormat_STIX :: ThreatIntelSetFormat
$mThreatIntelSetFormat_STIX :: forall r. ThreatIntelSetFormat -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetFormat_STIX = ThreatIntelSetFormat' "STIX"
pattern ThreatIntelSetFormat_TXT :: ThreatIntelSetFormat
pattern $bThreatIntelSetFormat_TXT :: ThreatIntelSetFormat
$mThreatIntelSetFormat_TXT :: forall r. ThreatIntelSetFormat -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetFormat_TXT = ThreatIntelSetFormat' "TXT"
{-# COMPLETE
ThreatIntelSetFormat_ALIEN_VAULT,
ThreatIntelSetFormat_FIRE_EYE,
ThreatIntelSetFormat_OTX_CSV,
ThreatIntelSetFormat_PROOF_POINT,
ThreatIntelSetFormat_STIX,
ThreatIntelSetFormat_TXT,
ThreatIntelSetFormat'
#-}