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