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