{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName
  ( LambdaFunctionMemoryMetricName
      ( ..,
        LambdaFunctionMemoryMetricName_Duration
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype LambdaFunctionMemoryMetricName = LambdaFunctionMemoryMetricName'
  { LambdaFunctionMemoryMetricName -> Text
fromLambdaFunctionMemoryMetricName ::
      Core.Text
  }
  deriving stock
    ( Int -> LambdaFunctionMemoryMetricName -> ShowS
[LambdaFunctionMemoryMetricName] -> ShowS
LambdaFunctionMemoryMetricName -> String
(Int -> LambdaFunctionMemoryMetricName -> ShowS)
-> (LambdaFunctionMemoryMetricName -> String)
-> ([LambdaFunctionMemoryMetricName] -> ShowS)
-> Show LambdaFunctionMemoryMetricName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LambdaFunctionMemoryMetricName] -> ShowS
$cshowList :: [LambdaFunctionMemoryMetricName] -> ShowS
show :: LambdaFunctionMemoryMetricName -> String
$cshow :: LambdaFunctionMemoryMetricName -> String
showsPrec :: Int -> LambdaFunctionMemoryMetricName -> ShowS
$cshowsPrec :: Int -> LambdaFunctionMemoryMetricName -> ShowS
Prelude.Show,
      ReadPrec [LambdaFunctionMemoryMetricName]
ReadPrec LambdaFunctionMemoryMetricName
Int -> ReadS LambdaFunctionMemoryMetricName
ReadS [LambdaFunctionMemoryMetricName]
(Int -> ReadS LambdaFunctionMemoryMetricName)
-> ReadS [LambdaFunctionMemoryMetricName]
-> ReadPrec LambdaFunctionMemoryMetricName
-> ReadPrec [LambdaFunctionMemoryMetricName]
-> Read LambdaFunctionMemoryMetricName
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LambdaFunctionMemoryMetricName]
$creadListPrec :: ReadPrec [LambdaFunctionMemoryMetricName]
readPrec :: ReadPrec LambdaFunctionMemoryMetricName
$creadPrec :: ReadPrec LambdaFunctionMemoryMetricName
readList :: ReadS [LambdaFunctionMemoryMetricName]
$creadList :: ReadS [LambdaFunctionMemoryMetricName]
readsPrec :: Int -> ReadS LambdaFunctionMemoryMetricName
$creadsPrec :: Int -> ReadS LambdaFunctionMemoryMetricName
Prelude.Read,
      LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
(LambdaFunctionMemoryMetricName
 -> LambdaFunctionMemoryMetricName -> Bool)
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName -> Bool)
-> Eq LambdaFunctionMemoryMetricName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
$c/= :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
== :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
$c== :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
Prelude.Eq,
      Eq LambdaFunctionMemoryMetricName
Eq LambdaFunctionMemoryMetricName
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName -> Ordering)
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName -> Bool)
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName -> Bool)
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName -> Bool)
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName -> Bool)
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName)
-> (LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName
    -> LambdaFunctionMemoryMetricName)
-> Ord LambdaFunctionMemoryMetricName
LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Ordering
LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> LambdaFunctionMemoryMetricName
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 :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> LambdaFunctionMemoryMetricName
$cmin :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> LambdaFunctionMemoryMetricName
max :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> LambdaFunctionMemoryMetricName
$cmax :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> LambdaFunctionMemoryMetricName
>= :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
$c>= :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
> :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
$c> :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
<= :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
$c<= :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
< :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
$c< :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Bool
compare :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Ordering
$ccompare :: LambdaFunctionMemoryMetricName
-> LambdaFunctionMemoryMetricName -> Ordering
$cp1Ord :: Eq LambdaFunctionMemoryMetricName
Prelude.Ord,
      (forall x.
 LambdaFunctionMemoryMetricName
 -> Rep LambdaFunctionMemoryMetricName x)
-> (forall x.
    Rep LambdaFunctionMemoryMetricName x
    -> LambdaFunctionMemoryMetricName)
-> Generic LambdaFunctionMemoryMetricName
forall x.
Rep LambdaFunctionMemoryMetricName x
-> LambdaFunctionMemoryMetricName
forall x.
LambdaFunctionMemoryMetricName
-> Rep LambdaFunctionMemoryMetricName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LambdaFunctionMemoryMetricName x
-> LambdaFunctionMemoryMetricName
$cfrom :: forall x.
LambdaFunctionMemoryMetricName
-> Rep LambdaFunctionMemoryMetricName x
Prelude.Generic
    )
  deriving newtype
    ( Int -> LambdaFunctionMemoryMetricName -> Int
LambdaFunctionMemoryMetricName -> Int
(Int -> LambdaFunctionMemoryMetricName -> Int)
-> (LambdaFunctionMemoryMetricName -> Int)
-> Hashable LambdaFunctionMemoryMetricName
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LambdaFunctionMemoryMetricName -> Int
$chash :: LambdaFunctionMemoryMetricName -> Int
hashWithSalt :: Int -> LambdaFunctionMemoryMetricName -> Int
$chashWithSalt :: Int -> LambdaFunctionMemoryMetricName -> Int
Prelude.Hashable,
      LambdaFunctionMemoryMetricName -> ()
(LambdaFunctionMemoryMetricName -> ())
-> NFData LambdaFunctionMemoryMetricName
forall a. (a -> ()) -> NFData a
rnf :: LambdaFunctionMemoryMetricName -> ()
$crnf :: LambdaFunctionMemoryMetricName -> ()
Prelude.NFData,
      Text -> Either String LambdaFunctionMemoryMetricName
(Text -> Either String LambdaFunctionMemoryMetricName)
-> FromText LambdaFunctionMemoryMetricName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LambdaFunctionMemoryMetricName
$cfromText :: Text -> Either String LambdaFunctionMemoryMetricName
Core.FromText,
      LambdaFunctionMemoryMetricName -> Text
(LambdaFunctionMemoryMetricName -> Text)
-> ToText LambdaFunctionMemoryMetricName
forall a. (a -> Text) -> ToText a
toText :: LambdaFunctionMemoryMetricName -> Text
$ctoText :: LambdaFunctionMemoryMetricName -> Text
Core.ToText,
      LambdaFunctionMemoryMetricName -> ByteString
(LambdaFunctionMemoryMetricName -> ByteString)
-> ToByteString LambdaFunctionMemoryMetricName
forall a. (a -> ByteString) -> ToByteString a
toBS :: LambdaFunctionMemoryMetricName -> ByteString
$ctoBS :: LambdaFunctionMemoryMetricName -> ByteString
Core.ToByteString,
      LambdaFunctionMemoryMetricName -> ByteStringBuilder
(LambdaFunctionMemoryMetricName -> ByteStringBuilder)
-> ToLog LambdaFunctionMemoryMetricName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LambdaFunctionMemoryMetricName -> ByteStringBuilder
$cbuild :: LambdaFunctionMemoryMetricName -> ByteStringBuilder
Core.ToLog,
      HeaderName -> LambdaFunctionMemoryMetricName -> [Header]
(HeaderName -> LambdaFunctionMemoryMetricName -> [Header])
-> ToHeader LambdaFunctionMemoryMetricName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LambdaFunctionMemoryMetricName -> [Header]
$ctoHeader :: HeaderName -> LambdaFunctionMemoryMetricName -> [Header]
Core.ToHeader,
      LambdaFunctionMemoryMetricName -> QueryString
(LambdaFunctionMemoryMetricName -> QueryString)
-> ToQuery LambdaFunctionMemoryMetricName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LambdaFunctionMemoryMetricName -> QueryString
$ctoQuery :: LambdaFunctionMemoryMetricName -> QueryString
Core.ToQuery,
      Value -> Parser [LambdaFunctionMemoryMetricName]
Value -> Parser LambdaFunctionMemoryMetricName
(Value -> Parser LambdaFunctionMemoryMetricName)
-> (Value -> Parser [LambdaFunctionMemoryMetricName])
-> FromJSON LambdaFunctionMemoryMetricName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LambdaFunctionMemoryMetricName]
$cparseJSONList :: Value -> Parser [LambdaFunctionMemoryMetricName]
parseJSON :: Value -> Parser LambdaFunctionMemoryMetricName
$cparseJSON :: Value -> Parser LambdaFunctionMemoryMetricName
Core.FromJSON,
      FromJSONKeyFunction [LambdaFunctionMemoryMetricName]
FromJSONKeyFunction LambdaFunctionMemoryMetricName
FromJSONKeyFunction LambdaFunctionMemoryMetricName
-> FromJSONKeyFunction [LambdaFunctionMemoryMetricName]
-> FromJSONKey LambdaFunctionMemoryMetricName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LambdaFunctionMemoryMetricName]
$cfromJSONKeyList :: FromJSONKeyFunction [LambdaFunctionMemoryMetricName]
fromJSONKey :: FromJSONKeyFunction LambdaFunctionMemoryMetricName
$cfromJSONKey :: FromJSONKeyFunction LambdaFunctionMemoryMetricName
Core.FromJSONKey,
      [LambdaFunctionMemoryMetricName] -> Encoding
[LambdaFunctionMemoryMetricName] -> Value
LambdaFunctionMemoryMetricName -> Encoding
LambdaFunctionMemoryMetricName -> Value
(LambdaFunctionMemoryMetricName -> Value)
-> (LambdaFunctionMemoryMetricName -> Encoding)
-> ([LambdaFunctionMemoryMetricName] -> Value)
-> ([LambdaFunctionMemoryMetricName] -> Encoding)
-> ToJSON LambdaFunctionMemoryMetricName
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LambdaFunctionMemoryMetricName] -> Encoding
$ctoEncodingList :: [LambdaFunctionMemoryMetricName] -> Encoding
toJSONList :: [LambdaFunctionMemoryMetricName] -> Value
$ctoJSONList :: [LambdaFunctionMemoryMetricName] -> Value
toEncoding :: LambdaFunctionMemoryMetricName -> Encoding
$ctoEncoding :: LambdaFunctionMemoryMetricName -> Encoding
toJSON :: LambdaFunctionMemoryMetricName -> Value
$ctoJSON :: LambdaFunctionMemoryMetricName -> Value
Core.ToJSON,
      ToJSONKeyFunction [LambdaFunctionMemoryMetricName]
ToJSONKeyFunction LambdaFunctionMemoryMetricName
ToJSONKeyFunction LambdaFunctionMemoryMetricName
-> ToJSONKeyFunction [LambdaFunctionMemoryMetricName]
-> ToJSONKey LambdaFunctionMemoryMetricName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LambdaFunctionMemoryMetricName]
$ctoJSONKeyList :: ToJSONKeyFunction [LambdaFunctionMemoryMetricName]
toJSONKey :: ToJSONKeyFunction LambdaFunctionMemoryMetricName
$ctoJSONKey :: ToJSONKeyFunction LambdaFunctionMemoryMetricName
Core.ToJSONKey,
      [Node] -> Either String LambdaFunctionMemoryMetricName
([Node] -> Either String LambdaFunctionMemoryMetricName)
-> FromXML LambdaFunctionMemoryMetricName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LambdaFunctionMemoryMetricName
$cparseXML :: [Node] -> Either String LambdaFunctionMemoryMetricName
Core.FromXML,
      LambdaFunctionMemoryMetricName -> XML
(LambdaFunctionMemoryMetricName -> XML)
-> ToXML LambdaFunctionMemoryMetricName
forall a. (a -> XML) -> ToXML a
toXML :: LambdaFunctionMemoryMetricName -> XML
$ctoXML :: LambdaFunctionMemoryMetricName -> XML
Core.ToXML
    )

pattern LambdaFunctionMemoryMetricName_Duration :: LambdaFunctionMemoryMetricName
pattern $bLambdaFunctionMemoryMetricName_Duration :: LambdaFunctionMemoryMetricName
$mLambdaFunctionMemoryMetricName_Duration :: forall r.
LambdaFunctionMemoryMetricName -> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionMemoryMetricName_Duration = LambdaFunctionMemoryMetricName' "Duration"

{-# COMPLETE
  LambdaFunctionMemoryMetricName_Duration,
  LambdaFunctionMemoryMetricName'
  #-}