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