{-# 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.LambdaFunctionRecommendationFindingReasonCode
-- 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.LambdaFunctionRecommendationFindingReasonCode
  ( LambdaFunctionRecommendationFindingReasonCode
      ( ..,
        LambdaFunctionRecommendationFindingReasonCode_Inconclusive,
        LambdaFunctionRecommendationFindingReasonCode_InsufficientData,
        LambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned,
        LambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned
      ),
  )
where

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

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

pattern LambdaFunctionRecommendationFindingReasonCode_Inconclusive :: LambdaFunctionRecommendationFindingReasonCode
pattern $bLambdaFunctionRecommendationFindingReasonCode_Inconclusive :: LambdaFunctionRecommendationFindingReasonCode
$mLambdaFunctionRecommendationFindingReasonCode_Inconclusive :: forall r.
LambdaFunctionRecommendationFindingReasonCode
-> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionRecommendationFindingReasonCode_Inconclusive = LambdaFunctionRecommendationFindingReasonCode' "Inconclusive"

pattern LambdaFunctionRecommendationFindingReasonCode_InsufficientData :: LambdaFunctionRecommendationFindingReasonCode
pattern $bLambdaFunctionRecommendationFindingReasonCode_InsufficientData :: LambdaFunctionRecommendationFindingReasonCode
$mLambdaFunctionRecommendationFindingReasonCode_InsufficientData :: forall r.
LambdaFunctionRecommendationFindingReasonCode
-> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionRecommendationFindingReasonCode_InsufficientData = LambdaFunctionRecommendationFindingReasonCode' "InsufficientData"

pattern LambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned :: LambdaFunctionRecommendationFindingReasonCode
pattern $bLambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned :: LambdaFunctionRecommendationFindingReasonCode
$mLambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned :: forall r.
LambdaFunctionRecommendationFindingReasonCode
-> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned = LambdaFunctionRecommendationFindingReasonCode' "MemoryOverprovisioned"

pattern LambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned :: LambdaFunctionRecommendationFindingReasonCode
pattern $bLambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned :: LambdaFunctionRecommendationFindingReasonCode
$mLambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned :: forall r.
LambdaFunctionRecommendationFindingReasonCode
-> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned = LambdaFunctionRecommendationFindingReasonCode' "MemoryUnderprovisioned"

{-# COMPLETE
  LambdaFunctionRecommendationFindingReasonCode_Inconclusive,
  LambdaFunctionRecommendationFindingReasonCode_InsufficientData,
  LambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned,
  LambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned,
  LambdaFunctionRecommendationFindingReasonCode'
  #-}