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