Method: Aws::DynamoDB::Types::UpdateTableInput#billing_mode

Defined in:
lib/aws-sdk-dynamodb/types.rb

#billing_modeString

Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.

  • ‘PROVISIONED` - We recommend using `PROVISIONED` for predictable workloads. `PROVISIONED` sets the billing mode to [Provisioned capacity mode].

  • ‘PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for unpredictable workloads. `PAY_PER_REQUEST` sets the billing mode to [On-demand capacity mode].

[1]: docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html [2]: docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html

Returns:

  • (String)


10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
# File 'lib/aws-sdk-dynamodb/types.rb', line 10594

class UpdateTableInput < Struct.new(
  :attribute_definitions,
  :table_name,
  :billing_mode,
  :provisioned_throughput,
  :global_secondary_index_updates,
  :stream_specification,
  :sse_specification,
  :replica_updates,
  :table_class,
  :deletion_protection_enabled,
  :multi_region_consistency,
  :on_demand_throughput,
  :warm_throughput)
  SENSITIVE = []
  include Aws::Structure
end