{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EC2.Types.LogDestinationType
( LogDestinationType
( ..,
LogDestinationType_Cloud_watch_logs,
LogDestinationType_Kinesis_data_firehose,
LogDestinationType_S3
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype LogDestinationType = LogDestinationType'
{ LogDestinationType -> Text
fromLogDestinationType ::
Data.Text
}
deriving stock
( Int -> LogDestinationType -> ShowS
[LogDestinationType] -> ShowS
LogDestinationType -> String
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]
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
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
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
Prelude.Ord,
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
( Eq LogDestinationType
Int -> LogDestinationType -> Int
LogDestinationType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: LogDestinationType -> ()
$crnf :: LogDestinationType -> ()
Prelude.NFData,
Text -> Either String LogDestinationType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LogDestinationType
$cfromText :: Text -> Either String LogDestinationType
Data.FromText,
LogDestinationType -> Text
forall a. (a -> Text) -> ToText a
toText :: LogDestinationType -> Text
$ctoText :: LogDestinationType -> Text
Data.ToText,
LogDestinationType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LogDestinationType -> ByteString
$ctoBS :: LogDestinationType -> ByteString
Data.ToByteString,
LogDestinationType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LogDestinationType -> ByteStringBuilder
$cbuild :: LogDestinationType -> ByteStringBuilder
Data.ToLog,
HeaderName -> LogDestinationType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LogDestinationType -> [Header]
$ctoHeader :: HeaderName -> LogDestinationType -> [Header]
Data.ToHeader,
LogDestinationType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LogDestinationType -> QueryString
$ctoQuery :: LogDestinationType -> QueryString
Data.ToQuery,
Value -> Parser [LogDestinationType]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [LogDestinationType]
FromJSONKeyFunction LogDestinationType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LogDestinationType]
$cfromJSONKeyList :: FromJSONKeyFunction [LogDestinationType]
fromJSONKey :: FromJSONKeyFunction LogDestinationType
$cfromJSONKey :: FromJSONKeyFunction LogDestinationType
Data.FromJSONKey,
[LogDestinationType] -> Encoding
[LogDestinationType] -> Value
LogDestinationType -> Encoding
LogDestinationType -> Value
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
Data.ToJSON,
ToJSONKeyFunction [LogDestinationType]
ToJSONKeyFunction LogDestinationType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LogDestinationType]
$ctoJSONKeyList :: ToJSONKeyFunction [LogDestinationType]
toJSONKey :: ToJSONKeyFunction LogDestinationType
$ctoJSONKey :: ToJSONKeyFunction LogDestinationType
Data.ToJSONKey,
[Node] -> Either String LogDestinationType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LogDestinationType
$cparseXML :: [Node] -> Either String LogDestinationType
Data.FromXML,
LogDestinationType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LogDestinationType -> XML
$ctoXML :: LogDestinationType -> XML
Data.ToXML
)
pattern LogDestinationType_Cloud_watch_logs :: LogDestinationType
pattern $bLogDestinationType_Cloud_watch_logs :: LogDestinationType
$mLogDestinationType_Cloud_watch_logs :: forall {r}. LogDestinationType -> ((# #) -> r) -> ((# #) -> r) -> r
LogDestinationType_Cloud_watch_logs = LogDestinationType' "cloud-watch-logs"
pattern LogDestinationType_Kinesis_data_firehose :: LogDestinationType
pattern $bLogDestinationType_Kinesis_data_firehose :: LogDestinationType
$mLogDestinationType_Kinesis_data_firehose :: forall {r}. LogDestinationType -> ((# #) -> r) -> ((# #) -> r) -> r
LogDestinationType_Kinesis_data_firehose = LogDestinationType' "kinesis-data-firehose"
pattern LogDestinationType_S3 :: LogDestinationType
pattern $bLogDestinationType_S3 :: LogDestinationType
$mLogDestinationType_S3 :: forall {r}. LogDestinationType -> ((# #) -> r) -> ((# #) -> r) -> r
LogDestinationType_S3 = LogDestinationType' "s3"
{-# COMPLETE
LogDestinationType_Cloud_watch_logs,
LogDestinationType_Kinesis_data_firehose,
LogDestinationType_S3,
LogDestinationType'
#-}