Class: Mara::Model::GlobalSecondaryIndex

Inherits:
Struct
  • Object
show all
Defined in:
lib/mara/model/dsl.rb

Overview

Represents a DynamoDB Global Secondary Index.

See Also:

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the index.

Returns:

  • (String)


49
# File 'lib/mara/model/dsl.rb', line 49

GlobalSecondaryIndex = Struct.new(:name, :partition_key, :sort_key)

#partition_keyString

The name of the GSI partion key.

Returns:

  • (String)


49
# File 'lib/mara/model/dsl.rb', line 49

GlobalSecondaryIndex = Struct.new(:name, :partition_key, :sort_key)

#sort_keyString?

The name of the GSI sort_key.

Returns:

  • (String, nil)


49
# File 'lib/mara/model/dsl.rb', line 49

GlobalSecondaryIndex = Struct.new(:name, :partition_key, :sort_key)