Class: AWSCDK::DynamoDB::WarmThroughput
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::WarmThroughput
- Defined in:
- dynamo_db/warm_throughput.rb
Overview
Reference to WarmThroughput for a DynamoDB table.
Instance Attribute Summary collapse
-
#read_units_per_second ⇒ Numeric?
readonly
Configures the number of read units per second a table will be able to handle instantly.
-
#write_units_per_second ⇒ Numeric?
readonly
Configures the number of write units per second a table will be able to handle instantly.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(read_units_per_second: nil, write_units_per_second: nil) ⇒ WarmThroughput
constructor
A new instance of WarmThroughput.
- #to_jsii ⇒ Object
Constructor Details
#initialize(read_units_per_second: nil, write_units_per_second: nil) ⇒ WarmThroughput
Returns a new instance of WarmThroughput.
9 10 11 12 13 14 |
# File 'dynamo_db/warm_throughput.rb', line 9 def initialize(read_units_per_second: nil, write_units_per_second: nil) @read_units_per_second = read_units_per_second Jsii::Type.check_type(@read_units_per_second, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "readUnitsPerSecond") unless @read_units_per_second.nil? @write_units_per_second = write_units_per_second Jsii::Type.check_type(@write_units_per_second, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "writeUnitsPerSecond") unless @write_units_per_second.nil? end |
Instance Attribute Details
#read_units_per_second ⇒ Numeric? (readonly)
Note:
Default: - no readUnitsPerSecond configured
Configures the number of read units per second a table will be able to handle instantly.
20 21 22 |
# File 'dynamo_db/warm_throughput.rb', line 20 def read_units_per_second @read_units_per_second end |
#write_units_per_second ⇒ Numeric? (readonly)
Note:
Default: - no writeUnitsPerSecond configured
Configures the number of write units per second a table will be able to handle instantly.
25 26 27 |
# File 'dynamo_db/warm_throughput.rb', line 25 def write_units_per_second @write_units_per_second end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'dynamo_db/warm_throughput.rb', line 27 def self.jsii_properties { :read_units_per_second => "readUnitsPerSecond", :write_units_per_second => "writeUnitsPerSecond", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'dynamo_db/warm_throughput.rb', line 34 def to_jsii result = {} result.merge!({ "readUnitsPerSecond" => @read_units_per_second, "writeUnitsPerSecond" => @write_units_per_second, }) result.compact end |