Class: AWSCDK::DynamoDB::WarmThroughput

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

Overview

Reference to WarmThroughput for a DynamoDB table.

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) ⇒ WarmThroughput

Returns a new instance of WarmThroughput.

Parameters:

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

    Configures the number of read units per second a table will be able to handle instantly.

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

    Configures the number of write units per second a table will be able to handle instantly.



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

Note:

Default: - no readUnitsPerSecond configured

Configures the number of read units per second a table will be able to handle instantly.

Returns:

  • (Numeric, nil)


20
21
22
# File 'dynamo_db/warm_throughput.rb', line 20

def read_units_per_second
  @read_units_per_second
end

#write_units_per_secondNumeric? (readonly)

Note:

Default: - no writeUnitsPerSecond configured

Configures the number of write units per second a table will be able to handle instantly.

Returns:

  • (Numeric, nil)


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_propertiesObject



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_jsiiObject



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