{-# 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.Prelude as Prelude
newtype TracingMode = TracingMode'
{ TracingMode -> Text
fromTracingMode ::
Core.Text
}
deriving stock
( Int -> TracingMode -> ShowS
[TracingMode] -> ShowS
TracingMode -> String
(Int -> TracingMode -> ShowS)
-> (TracingMode -> String)
-> ([TracingMode] -> ShowS)
-> Show TracingMode
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]
(Int -> ReadS TracingMode)
-> ReadS [TracingMode]
-> ReadPrec TracingMode
-> ReadPrec [TracingMode]
-> Read 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
(TracingMode -> TracingMode -> Bool)
-> (TracingMode -> TracingMode -> Bool) -> Eq TracingMode
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
Eq TracingMode
-> (TracingMode -> TracingMode -> Ordering)
-> (TracingMode -> TracingMode -> Bool)
-> (TracingMode -> TracingMode -> Bool)
-> (TracingMode -> TracingMode -> Bool)
-> (TracingMode -> TracingMode -> Bool)
-> (TracingMode -> TracingMode -> TracingMode)
-> (TracingMode -> TracingMode -> TracingMode)
-> Ord 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
$cp1Ord :: Eq TracingMode
Prelude.Ord,
(forall x. TracingMode -> Rep TracingMode x)
-> (forall x. Rep TracingMode x -> TracingMode)
-> Generic TracingMode
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
( Int -> TracingMode -> Int
TracingMode -> Int
(Int -> TracingMode -> Int)
-> (TracingMode -> Int) -> Hashable TracingMode
forall 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 -> ()
(TracingMode -> ()) -> NFData TracingMode
forall a. (a -> ()) -> NFData a
rnf :: TracingMode -> ()
$crnf :: TracingMode -> ()
Prelude.NFData,
Text -> Either String TracingMode
(Text -> Either String TracingMode) -> FromText TracingMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TracingMode
$cfromText :: Text -> Either String TracingMode
Core.FromText,
TracingMode -> Text
(TracingMode -> Text) -> ToText TracingMode
forall a. (a -> Text) -> ToText a
toText :: TracingMode -> Text
$ctoText :: TracingMode -> Text
Core.ToText,
TracingMode -> ByteString
(TracingMode -> ByteString) -> ToByteString TracingMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: TracingMode -> ByteString
$ctoBS :: TracingMode -> ByteString
Core.ToByteString,
TracingMode -> ByteStringBuilder
(TracingMode -> ByteStringBuilder) -> ToLog TracingMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TracingMode -> ByteStringBuilder
$cbuild :: TracingMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> TracingMode -> [Header]
(HeaderName -> TracingMode -> [Header]) -> ToHeader TracingMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TracingMode -> [Header]
$ctoHeader :: HeaderName -> TracingMode -> [Header]
Core.ToHeader,
TracingMode -> QueryString
(TracingMode -> QueryString) -> ToQuery TracingMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TracingMode -> QueryString
$ctoQuery :: TracingMode -> QueryString
Core.ToQuery,
Value -> Parser [TracingMode]
Value -> Parser TracingMode
(Value -> Parser TracingMode)
-> (Value -> Parser [TracingMode]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [TracingMode]
FromJSONKeyFunction TracingMode
FromJSONKeyFunction TracingMode
-> FromJSONKeyFunction [TracingMode] -> FromJSONKey TracingMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TracingMode]
$cfromJSONKeyList :: FromJSONKeyFunction [TracingMode]
fromJSONKey :: FromJSONKeyFunction TracingMode
$cfromJSONKey :: FromJSONKeyFunction TracingMode
Core.FromJSONKey,
[TracingMode] -> Encoding
[TracingMode] -> Value
TracingMode -> Encoding
TracingMode -> Value
(TracingMode -> Value)
-> (TracingMode -> Encoding)
-> ([TracingMode] -> Value)
-> ([TracingMode] -> Encoding)
-> ToJSON TracingMode
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
Core.ToJSON,
ToJSONKeyFunction [TracingMode]
ToJSONKeyFunction TracingMode
ToJSONKeyFunction TracingMode
-> ToJSONKeyFunction [TracingMode] -> ToJSONKey TracingMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TracingMode]
$ctoJSONKeyList :: ToJSONKeyFunction [TracingMode]
toJSONKey :: ToJSONKeyFunction TracingMode
$ctoJSONKey :: ToJSONKeyFunction TracingMode
Core.ToJSONKey,
[Node] -> Either String TracingMode
([Node] -> Either String TracingMode) -> FromXML TracingMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TracingMode
$cparseXML :: [Node] -> Either String TracingMode
Core.FromXML,
TracingMode -> XML
(TracingMode -> XML) -> ToXML TracingMode
forall a. (a -> XML) -> ToXML a
toXML :: TracingMode -> XML
$ctoXML :: TracingMode -> XML
Core.ToXML
)
pattern TracingMode_Active :: TracingMode
pattern $bTracingMode_Active :: TracingMode
$mTracingMode_Active :: forall r. TracingMode -> (Void# -> r) -> (Void# -> r) -> r
TracingMode_Active = TracingMode' "Active"
pattern TracingMode_PassThrough :: TracingMode
pattern $bTracingMode_PassThrough :: TracingMode
$mTracingMode_PassThrough :: forall r. TracingMode -> (Void# -> r) -> (Void# -> r) -> r
TracingMode_PassThrough = TracingMode' "PassThrough"
{-# COMPLETE
TracingMode_Active,
TracingMode_PassThrough,
TracingMode'
#-}