Class: AWSCDK::Cassandra::CfnTable::ProvisionedThroughputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cassandra::CfnTable::ProvisionedThroughputProperty
- Defined in:
- cassandra/cfn_table.rb
Overview
The provisioned throughput for the table, which consists of ReadCapacityUnits and WriteCapacityUnits .
Instance Attribute Summary collapse
-
#read_capacity_units ⇒ Numeric
readonly
The amount of read capacity that's provisioned for the table.
-
#write_capacity_units ⇒ Numeric
readonly
The amount of write capacity that's provisioned for the table.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(read_capacity_units:, write_capacity_units:) ⇒ ProvisionedThroughputProperty
constructor
A new instance of ProvisionedThroughputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(read_capacity_units:, write_capacity_units:) ⇒ ProvisionedThroughputProperty
Returns a new instance of ProvisionedThroughputProperty.
1085 1086 1087 1088 1089 1090 |
# File 'cassandra/cfn_table.rb', line 1085 def initialize(read_capacity_units:, write_capacity_units:) @read_capacity_units = read_capacity_units Jsii::Type.check_type(@read_capacity_units, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "readCapacityUnits") @write_capacity_units = write_capacity_units Jsii::Type.check_type(@write_capacity_units, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "writeCapacityUnits") end |
Instance Attribute Details
#read_capacity_units ⇒ Numeric (readonly)
The amount of read capacity that's provisioned for the table.
For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .
1098 1099 1100 |
# File 'cassandra/cfn_table.rb', line 1098 def read_capacity_units @read_capacity_units end |
#write_capacity_units ⇒ Numeric (readonly)
The amount of write capacity that's provisioned for the table.
For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .
1105 1106 1107 |
# File 'cassandra/cfn_table.rb', line 1105 def write_capacity_units @write_capacity_units end |
Class Method Details
.jsii_properties ⇒ Object
1107 1108 1109 1110 1111 1112 |
# File 'cassandra/cfn_table.rb', line 1107 def self.jsii_properties { :read_capacity_units => "readCapacityUnits", :write_capacity_units => "writeCapacityUnits", } end |
Instance Method Details
#to_jsii ⇒ Object
1114 1115 1116 1117 1118 1119 1120 1121 |
# File 'cassandra/cfn_table.rb', line 1114 def to_jsii result = {} result.merge!({ "readCapacityUnits" => @read_capacity_units, "writeCapacityUnits" => @write_capacity_units, }) result.compact end |