{-# 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.RecommendationSourceType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ComputeOptimizer.Types.RecommendationSourceType
  ( RecommendationSourceType
      ( ..,
        RecommendationSourceType_AutoScalingGroup,
        RecommendationSourceType_EbsVolume,
        RecommendationSourceType_Ec2Instance,
        RecommendationSourceType_EcsService,
        RecommendationSourceType_LambdaFunction
      ),
  )
where

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

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

pattern RecommendationSourceType_AutoScalingGroup :: RecommendationSourceType
pattern $bRecommendationSourceType_AutoScalingGroup :: RecommendationSourceType
$mRecommendationSourceType_AutoScalingGroup :: forall {r}.
RecommendationSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationSourceType_AutoScalingGroup = RecommendationSourceType' "AutoScalingGroup"

pattern RecommendationSourceType_EbsVolume :: RecommendationSourceType
pattern $bRecommendationSourceType_EbsVolume :: RecommendationSourceType
$mRecommendationSourceType_EbsVolume :: forall {r}.
RecommendationSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationSourceType_EbsVolume = RecommendationSourceType' "EbsVolume"

pattern RecommendationSourceType_Ec2Instance :: RecommendationSourceType
pattern $bRecommendationSourceType_Ec2Instance :: RecommendationSourceType
$mRecommendationSourceType_Ec2Instance :: forall {r}.
RecommendationSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationSourceType_Ec2Instance = RecommendationSourceType' "Ec2Instance"

pattern RecommendationSourceType_EcsService :: RecommendationSourceType
pattern $bRecommendationSourceType_EcsService :: RecommendationSourceType
$mRecommendationSourceType_EcsService :: forall {r}.
RecommendationSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationSourceType_EcsService = RecommendationSourceType' "EcsService"

pattern RecommendationSourceType_LambdaFunction :: RecommendationSourceType
pattern $bRecommendationSourceType_LambdaFunction :: RecommendationSourceType
$mRecommendationSourceType_LambdaFunction :: forall {r}.
RecommendationSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationSourceType_LambdaFunction = RecommendationSourceType' "LambdaFunction"

{-# COMPLETE
  RecommendationSourceType_AutoScalingGroup,
  RecommendationSourceType_EbsVolume,
  RecommendationSourceType_Ec2Instance,
  RecommendationSourceType_EcsService,
  RecommendationSourceType_LambdaFunction,
  RecommendationSourceType'
  #-}