module Stratosphere.Neptune.DBCluster.ServerlessScalingConfigurationProperty (
ServerlessScalingConfigurationProperty(..),
mkServerlessScalingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServerlessScalingConfigurationProperty
=
ServerlessScalingConfigurationProperty {ServerlessScalingConfigurationProperty -> ()
haddock_workaround_ :: (),
ServerlessScalingConfigurationProperty -> Value Double
maxCapacity :: (Value Prelude.Double),
ServerlessScalingConfigurationProperty -> Value Double
minCapacity :: (Value Prelude.Double)}
deriving stock (ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty -> Bool
(ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty -> Bool)
-> (ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty -> Bool)
-> Eq ServerlessScalingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty -> Bool
== :: ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty -> Bool
$c/= :: ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty -> Bool
/= :: ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty -> Bool
Prelude.Eq, Int -> ServerlessScalingConfigurationProperty -> ShowS
[ServerlessScalingConfigurationProperty] -> ShowS
ServerlessScalingConfigurationProperty -> String
(Int -> ServerlessScalingConfigurationProperty -> ShowS)
-> (ServerlessScalingConfigurationProperty -> String)
-> ([ServerlessScalingConfigurationProperty] -> ShowS)
-> Show ServerlessScalingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServerlessScalingConfigurationProperty -> ShowS
showsPrec :: Int -> ServerlessScalingConfigurationProperty -> ShowS
$cshow :: ServerlessScalingConfigurationProperty -> String
show :: ServerlessScalingConfigurationProperty -> String
$cshowList :: [ServerlessScalingConfigurationProperty] -> ShowS
showList :: [ServerlessScalingConfigurationProperty] -> ShowS
Prelude.Show)
mkServerlessScalingConfigurationProperty ::
Value Prelude.Double
-> Value Prelude.Double -> ServerlessScalingConfigurationProperty
mkServerlessScalingConfigurationProperty :: Value Double
-> Value Double -> ServerlessScalingConfigurationProperty
mkServerlessScalingConfigurationProperty Value Double
maxCapacity Value Double
minCapacity
= ServerlessScalingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), maxCapacity :: Value Double
maxCapacity = Value Double
maxCapacity,
minCapacity :: Value Double
minCapacity = Value Double
minCapacity}
instance ToResourceProperties ServerlessScalingConfigurationProperty where
toResourceProperties :: ServerlessScalingConfigurationProperty -> ResourceProperties
toResourceProperties ServerlessScalingConfigurationProperty {()
Value Double
haddock_workaround_ :: ServerlessScalingConfigurationProperty -> ()
maxCapacity :: ServerlessScalingConfigurationProperty -> Value Double
minCapacity :: ServerlessScalingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
maxCapacity :: Value Double
minCapacity :: Value Double
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Neptune::DBCluster.ServerlessScalingConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"MaxCapacity" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
maxCapacity,
Key
"MinCapacity" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
minCapacity]}
instance JSON.ToJSON ServerlessScalingConfigurationProperty where
toJSON :: ServerlessScalingConfigurationProperty -> Value
toJSON ServerlessScalingConfigurationProperty {()
Value Double
haddock_workaround_ :: ServerlessScalingConfigurationProperty -> ()
maxCapacity :: ServerlessScalingConfigurationProperty -> Value Double
minCapacity :: ServerlessScalingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
maxCapacity :: Value Double
minCapacity :: Value Double
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"MaxCapacity" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
maxCapacity,
Key
"MinCapacity" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
minCapacity]
instance Property "MaxCapacity" ServerlessScalingConfigurationProperty where
type PropertyType "MaxCapacity" ServerlessScalingConfigurationProperty = Value Prelude.Double
set :: PropertyType "MaxCapacity" ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty
set PropertyType "MaxCapacity" ServerlessScalingConfigurationProperty
newValue ServerlessScalingConfigurationProperty {()
Value Double
haddock_workaround_ :: ServerlessScalingConfigurationProperty -> ()
maxCapacity :: ServerlessScalingConfigurationProperty -> Value Double
minCapacity :: ServerlessScalingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
maxCapacity :: Value Double
minCapacity :: Value Double
..}
= ServerlessScalingConfigurationProperty
{maxCapacity :: Value Double
maxCapacity = PropertyType "MaxCapacity" ServerlessScalingConfigurationProperty
Value Double
newValue, ()
Value Double
haddock_workaround_ :: ()
minCapacity :: Value Double
haddock_workaround_ :: ()
minCapacity :: Value Double
..}
instance Property "MinCapacity" ServerlessScalingConfigurationProperty where
type PropertyType "MinCapacity" ServerlessScalingConfigurationProperty = Value Prelude.Double
set :: PropertyType "MinCapacity" ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty
-> ServerlessScalingConfigurationProperty
set PropertyType "MinCapacity" ServerlessScalingConfigurationProperty
newValue ServerlessScalingConfigurationProperty {()
Value Double
haddock_workaround_ :: ServerlessScalingConfigurationProperty -> ()
maxCapacity :: ServerlessScalingConfigurationProperty -> Value Double
minCapacity :: ServerlessScalingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
maxCapacity :: Value Double
minCapacity :: Value Double
..}
= ServerlessScalingConfigurationProperty
{minCapacity :: Value Double
minCapacity = PropertyType "MinCapacity" ServerlessScalingConfigurationProperty
Value Double
newValue, ()
Value Double
haddock_workaround_ :: ()
maxCapacity :: Value Double
haddock_workaround_ :: ()
maxCapacity :: Value Double
..}