in lib/aws-record/record/table_config.rb [491:506]
def _throughput_equal(resp)
if @billing_mode == 'PAY_PER_REQUEST'
!resp.table.billing_mode_summary.nil? &&
resp.table.billing_mode_summary.billing_mode == 'PAY_PER_REQUEST'
else
expected = resp.table.provisioned_throughput.to_h
actual = {
read_capacity_units: @read_capacity_units,
write_capacity_units: @write_capacity_units
}
actual.all? do |k, v|
expected[k] == v
end
end
end