module Stratosphere.Cassandra.Table.ProvisionedThroughputProperty (
ProvisionedThroughputProperty(..), mkProvisionedThroughputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProvisionedThroughputProperty
=
ProvisionedThroughputProperty {ProvisionedThroughputProperty -> ()
haddock_workaround_ :: (),
ProvisionedThroughputProperty -> Value Integer
readCapacityUnits :: (Value Prelude.Integer),
ProvisionedThroughputProperty -> Value Integer
writeCapacityUnits :: (Value Prelude.Integer)}
deriving stock (ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> Bool
(ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> Bool)
-> (ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> Bool)
-> Eq ProvisionedThroughputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> Bool
== :: ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> Bool
$c/= :: ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> Bool
/= :: ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> Bool
Prelude.Eq, Int -> ProvisionedThroughputProperty -> ShowS
[ProvisionedThroughputProperty] -> ShowS
ProvisionedThroughputProperty -> String
(Int -> ProvisionedThroughputProperty -> ShowS)
-> (ProvisionedThroughputProperty -> String)
-> ([ProvisionedThroughputProperty] -> ShowS)
-> Show ProvisionedThroughputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProvisionedThroughputProperty -> ShowS
showsPrec :: Int -> ProvisionedThroughputProperty -> ShowS
$cshow :: ProvisionedThroughputProperty -> String
show :: ProvisionedThroughputProperty -> String
$cshowList :: [ProvisionedThroughputProperty] -> ShowS
showList :: [ProvisionedThroughputProperty] -> ShowS
Prelude.Show)
mkProvisionedThroughputProperty ::
Value Prelude.Integer
-> Value Prelude.Integer -> ProvisionedThroughputProperty
mkProvisionedThroughputProperty :: Value Integer -> Value Integer -> ProvisionedThroughputProperty
mkProvisionedThroughputProperty
Value Integer
readCapacityUnits
Value Integer
writeCapacityUnits
= ProvisionedThroughputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), readCapacityUnits :: Value Integer
readCapacityUnits = Value Integer
readCapacityUnits,
writeCapacityUnits :: Value Integer
writeCapacityUnits = Value Integer
writeCapacityUnits}
instance ToResourceProperties ProvisionedThroughputProperty where
toResourceProperties :: ProvisionedThroughputProperty -> ResourceProperties
toResourceProperties ProvisionedThroughputProperty {()
Value Integer
haddock_workaround_ :: ProvisionedThroughputProperty -> ()
readCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
writeCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
haddock_workaround_ :: ()
readCapacityUnits :: Value Integer
writeCapacityUnits :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cassandra::Table.ProvisionedThroughput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ReadCapacityUnits" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
readCapacityUnits,
Key
"WriteCapacityUnits" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
writeCapacityUnits]}
instance JSON.ToJSON ProvisionedThroughputProperty where
toJSON :: ProvisionedThroughputProperty -> Value
toJSON ProvisionedThroughputProperty {()
Value Integer
haddock_workaround_ :: ProvisionedThroughputProperty -> ()
readCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
writeCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
haddock_workaround_ :: ()
readCapacityUnits :: Value Integer
writeCapacityUnits :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"ReadCapacityUnits" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
readCapacityUnits,
Key
"WriteCapacityUnits" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
writeCapacityUnits]
instance Property "ReadCapacityUnits" ProvisionedThroughputProperty where
type PropertyType "ReadCapacityUnits" ProvisionedThroughputProperty = Value Prelude.Integer
set :: PropertyType "ReadCapacityUnits" ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> ProvisionedThroughputProperty
set PropertyType "ReadCapacityUnits" ProvisionedThroughputProperty
newValue ProvisionedThroughputProperty {()
Value Integer
haddock_workaround_ :: ProvisionedThroughputProperty -> ()
readCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
writeCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
haddock_workaround_ :: ()
readCapacityUnits :: Value Integer
writeCapacityUnits :: Value Integer
..}
= ProvisionedThroughputProperty {readCapacityUnits :: Value Integer
readCapacityUnits = PropertyType "ReadCapacityUnits" ProvisionedThroughputProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
writeCapacityUnits :: Value Integer
haddock_workaround_ :: ()
writeCapacityUnits :: Value Integer
..}
instance Property "WriteCapacityUnits" ProvisionedThroughputProperty where
type PropertyType "WriteCapacityUnits" ProvisionedThroughputProperty = Value Prelude.Integer
set :: PropertyType "WriteCapacityUnits" ProvisionedThroughputProperty
-> ProvisionedThroughputProperty -> ProvisionedThroughputProperty
set PropertyType "WriteCapacityUnits" ProvisionedThroughputProperty
newValue ProvisionedThroughputProperty {()
Value Integer
haddock_workaround_ :: ProvisionedThroughputProperty -> ()
readCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
writeCapacityUnits :: ProvisionedThroughputProperty -> Value Integer
haddock_workaround_ :: ()
readCapacityUnits :: Value Integer
writeCapacityUnits :: Value Integer
..}
= ProvisionedThroughputProperty {writeCapacityUnits :: Value Integer
writeCapacityUnits = PropertyType "WriteCapacityUnits" ProvisionedThroughputProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
readCapacityUnits :: Value Integer
haddock_workaround_ :: ()
readCapacityUnits :: Value Integer
..}