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