class Aws::DynamoDB::Resource

def create_table(options = {})

Returns:
  • (Table) -

Options Hash: (**options)
  • :stream_specification (Types::StreamSpecification) --
  • :provisioned_throughput (required, Types::ProvisionedThroughput) --
  • :global_secondary_indexes (Array) --
  • :local_secondary_indexes (Array) --
  • :key_schema (required, Array) --
  • :table_name (required, String) --
  • :attribute_definitions (required, Array) --

Parameters:
  • options (Hash) -- ({})

Other tags:
    Example: Request syntax with placeholder values -
def create_table(options = {})
  resp = @client.create_table(options)
  Table.new(
    name: resp.data.table_description.table_name,
    data: resp.data.table_description,
    client: @client
  )
end