{-# 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.RecommendationSourceType
( RecommendationSourceType
( ..,
RecommendationSourceType_AutoScalingGroup,
RecommendationSourceType_EbsVolume,
RecommendationSourceType_Ec2Instance,
RecommendationSourceType_LambdaFunction
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RecommendationSourceType = RecommendationSourceType'
{ RecommendationSourceType -> Text
fromRecommendationSourceType ::
Core.Text
}
deriving stock
( Int -> RecommendationSourceType -> ShowS
[RecommendationSourceType] -> ShowS
RecommendationSourceType -> String
(Int -> RecommendationSourceType -> ShowS)
-> (RecommendationSourceType -> String)
-> ([RecommendationSourceType] -> ShowS)
-> Show RecommendationSourceType
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]
(Int -> ReadS RecommendationSourceType)
-> ReadS [RecommendationSourceType]
-> ReadPrec RecommendationSourceType
-> ReadPrec [RecommendationSourceType]
-> Read 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
(RecommendationSourceType -> RecommendationSourceType -> Bool)
-> (RecommendationSourceType -> RecommendationSourceType -> Bool)
-> Eq RecommendationSourceType
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
Eq RecommendationSourceType
-> (RecommendationSourceType
-> RecommendationSourceType -> Ordering)
-> (RecommendationSourceType -> RecommendationSourceType -> Bool)
-> (RecommendationSourceType -> RecommendationSourceType -> Bool)
-> (RecommendationSourceType -> RecommendationSourceType -> Bool)
-> (RecommendationSourceType -> RecommendationSourceType -> Bool)
-> (RecommendationSourceType
-> RecommendationSourceType -> RecommendationSourceType)
-> (RecommendationSourceType
-> RecommendationSourceType -> RecommendationSourceType)
-> Ord 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
$cp1Ord :: Eq RecommendationSourceType
Prelude.Ord,
(forall x.
RecommendationSourceType -> Rep RecommendationSourceType x)
-> (forall x.
Rep RecommendationSourceType x -> RecommendationSourceType)
-> Generic RecommendationSourceType
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
( Int -> RecommendationSourceType -> Int
RecommendationSourceType -> Int
(Int -> RecommendationSourceType -> Int)
-> (RecommendationSourceType -> Int)
-> Hashable RecommendationSourceType
forall 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 -> ()
(RecommendationSourceType -> ()) -> NFData RecommendationSourceType
forall a. (a -> ()) -> NFData a
rnf :: RecommendationSourceType -> ()
$crnf :: RecommendationSourceType -> ()
Prelude.NFData,
Text -> Either String RecommendationSourceType
(Text -> Either String RecommendationSourceType)
-> FromText RecommendationSourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RecommendationSourceType
$cfromText :: Text -> Either String RecommendationSourceType
Core.FromText,
RecommendationSourceType -> Text
(RecommendationSourceType -> Text)
-> ToText RecommendationSourceType
forall a. (a -> Text) -> ToText a
toText :: RecommendationSourceType -> Text
$ctoText :: RecommendationSourceType -> Text
Core.ToText,
RecommendationSourceType -> ByteString
(RecommendationSourceType -> ByteString)
-> ToByteString RecommendationSourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: RecommendationSourceType -> ByteString
$ctoBS :: RecommendationSourceType -> ByteString
Core.ToByteString,
RecommendationSourceType -> ByteStringBuilder
(RecommendationSourceType -> ByteStringBuilder)
-> ToLog RecommendationSourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RecommendationSourceType -> ByteStringBuilder
$cbuild :: RecommendationSourceType -> ByteStringBuilder
Core.ToLog,
HeaderName -> RecommendationSourceType -> [Header]
(HeaderName -> RecommendationSourceType -> [Header])
-> ToHeader RecommendationSourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RecommendationSourceType -> [Header]
$ctoHeader :: HeaderName -> RecommendationSourceType -> [Header]
Core.ToHeader,
RecommendationSourceType -> QueryString
(RecommendationSourceType -> QueryString)
-> ToQuery RecommendationSourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RecommendationSourceType -> QueryString
$ctoQuery :: RecommendationSourceType -> QueryString
Core.ToQuery,
Value -> Parser [RecommendationSourceType]
Value -> Parser RecommendationSourceType
(Value -> Parser RecommendationSourceType)
-> (Value -> Parser [RecommendationSourceType])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [RecommendationSourceType]
FromJSONKeyFunction RecommendationSourceType
FromJSONKeyFunction RecommendationSourceType
-> FromJSONKeyFunction [RecommendationSourceType]
-> FromJSONKey RecommendationSourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RecommendationSourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [RecommendationSourceType]
fromJSONKey :: FromJSONKeyFunction RecommendationSourceType
$cfromJSONKey :: FromJSONKeyFunction RecommendationSourceType
Core.FromJSONKey,
[RecommendationSourceType] -> Encoding
[RecommendationSourceType] -> Value
RecommendationSourceType -> Encoding
RecommendationSourceType -> Value
(RecommendationSourceType -> Value)
-> (RecommendationSourceType -> Encoding)
-> ([RecommendationSourceType] -> Value)
-> ([RecommendationSourceType] -> Encoding)
-> ToJSON RecommendationSourceType
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
Core.ToJSON,
ToJSONKeyFunction [RecommendationSourceType]
ToJSONKeyFunction RecommendationSourceType
ToJSONKeyFunction RecommendationSourceType
-> ToJSONKeyFunction [RecommendationSourceType]
-> ToJSONKey RecommendationSourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RecommendationSourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [RecommendationSourceType]
toJSONKey :: ToJSONKeyFunction RecommendationSourceType
$ctoJSONKey :: ToJSONKeyFunction RecommendationSourceType
Core.ToJSONKey,
[Node] -> Either String RecommendationSourceType
([Node] -> Either String RecommendationSourceType)
-> FromXML RecommendationSourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RecommendationSourceType
$cparseXML :: [Node] -> Either String RecommendationSourceType
Core.FromXML,
RecommendationSourceType -> XML
(RecommendationSourceType -> XML) -> ToXML RecommendationSourceType
forall a. (a -> XML) -> ToXML a
toXML :: RecommendationSourceType -> XML
$ctoXML :: RecommendationSourceType -> XML
Core.ToXML
)
pattern RecommendationSourceType_AutoScalingGroup :: RecommendationSourceType
pattern $bRecommendationSourceType_AutoScalingGroup :: RecommendationSourceType
$mRecommendationSourceType_AutoScalingGroup :: forall r.
RecommendationSourceType -> (Void# -> r) -> (Void# -> r) -> r
RecommendationSourceType_AutoScalingGroup = RecommendationSourceType' "AutoScalingGroup"
pattern RecommendationSourceType_EbsVolume :: RecommendationSourceType
pattern $bRecommendationSourceType_EbsVolume :: RecommendationSourceType
$mRecommendationSourceType_EbsVolume :: forall r.
RecommendationSourceType -> (Void# -> r) -> (Void# -> r) -> r
RecommendationSourceType_EbsVolume = RecommendationSourceType' "EbsVolume"
pattern RecommendationSourceType_Ec2Instance :: RecommendationSourceType
pattern $bRecommendationSourceType_Ec2Instance :: RecommendationSourceType
$mRecommendationSourceType_Ec2Instance :: forall r.
RecommendationSourceType -> (Void# -> r) -> (Void# -> r) -> r
RecommendationSourceType_Ec2Instance = RecommendationSourceType' "Ec2Instance"
pattern RecommendationSourceType_LambdaFunction :: RecommendationSourceType
pattern $bRecommendationSourceType_LambdaFunction :: RecommendationSourceType
$mRecommendationSourceType_LambdaFunction :: forall r.
RecommendationSourceType -> (Void# -> r) -> (Void# -> r) -> r
RecommendationSourceType_LambdaFunction = RecommendationSourceType' "LambdaFunction"
{-# COMPLETE
RecommendationSourceType_AutoScalingGroup,
RecommendationSourceType_EbsVolume,
RecommendationSourceType_Ec2Instance,
RecommendationSourceType_LambdaFunction,
RecommendationSourceType'
#-}