Class: AWSCDK::DynamoDB::CfnTable::WarmThroughputProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dynamo_db/cfn_table.rb

Overview

Provides visibility into the number of read and write operations your table or secondary index can instantaneously support.

The settings can be modified using the UpdateTable operation to meet the throughput requirements of an upcoming peak event.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(read_units_per_second: nil, write_units_per_second: nil) ⇒ WarmThroughputProperty

Returns a new instance of WarmThroughputProperty.

Parameters:

  • read_units_per_second (Numeric, nil) (defaults to: nil)

    Represents the number of read operations your base table can instantaneously support.

  • write_units_per_second (Numeric, nil) (defaults to: nil)

    Represents the number of write operations your base table can instantaneously support.



1803
1804
1805
1806
1807
1808
# File 'dynamo_db/cfn_table.rb', line 1803

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_secondNumeric? (readonly)

Represents the number of read operations your base table can instantaneously support.



1814
1815
1816
# File 'dynamo_db/cfn_table.rb', line 1814

def read_units_per_second
  @read_units_per_second
end

#write_units_per_secondNumeric? (readonly)

Represents the number of write operations your base table can instantaneously support.



1819
1820
1821
# File 'dynamo_db/cfn_table.rb', line 1819

def write_units_per_second
  @write_units_per_second
end

Class Method Details

.jsii_propertiesObject



1821
1822
1823
1824
1825
1826
# File 'dynamo_db/cfn_table.rb', line 1821

def self.jsii_properties
  {
    :read_units_per_second => "readUnitsPerSecond",
    :write_units_per_second => "writeUnitsPerSecond",
  }
end

Instance Method Details

#to_jsiiObject



1828
1829
1830
1831
1832
1833
1834
1835
# File 'dynamo_db/cfn_table.rb', line 1828

def to_jsii
  result = {}
  result.merge!({
    "readUnitsPerSecond" => @read_units_per_second,
    "writeUnitsPerSecond" => @write_units_per_second,
  })
  result.compact
end