lib/aws-record/record/secondary_indexes.rb
def local_secondary_index(name, opts)
          opts[:hash_key] = hash_key
          _validate_required_lsi_keys(opts)
          local_secondary_indexes[name] = opts
        end
# Creates a local secondary index for the model. Learn more about Local
# Secondary Indexes in the
# {http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LSI.html Amazon DynamoDB Developer Guide}.
#
# @param [Symbol] name index name for this local secondary index
# @param [Hash] opts
# @option opts [Symbol] :range_key the range key used by this local
#   secondary index. Note that the hash key MUST be the table's hash
#   key, and so that value will be filled in for you.
# @option opts [Hash] :projection a hash which defines which attributes
#   are copied from the table to the index. See shape details in the
#   {http://docs.aws.amazon.com/sdkforruby/api/Aws/DynamoDB/Types/Projection.html AWS SDK for Ruby V2 docs}.
Creates a local secondary index for the model.
Creates a local secondary index for the model .
def local_secondary_index(name, opts)
          opts[:hash_key] = hash_key
          _validate_required_lsi_keys(opts)
          local_secondary_indexes[name] = opts
        end
def local_secondary_index ( name , opts ) opts [ :hash_key ] = hash_key _validate_required_lsi_keys ( opts ) local_secondary_indexes [ name ] = opts end
Creates a local secondary index for the model.
Creates a local secondary index for the model .
name
opts
:projection a hash which defines which attributes are copied from the table to the index.
: projection a hash which defines which attributes are copied from the table to the index .
None