Class: Dynamoid::CDK::Schema::Index
- Inherits:
-
Data
- Object
- Data
- Dynamoid::CDK::Schema::Index
- Defined in:
- lib/dynamoid/cdk/schema/descriptor.rb
Overview
A secondary index. For a GSI partition_key is set; for an LSI it is nil
(an LSI shares the table's partition key). projection_type is :all,
:keys_only or :include; non_key_attributes is the projected list
when :include, otherwise nil.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#non_key_attributes ⇒ Object
readonly
Returns the value of attribute non_key_attributes.
-
#partition_key ⇒ Object
readonly
Returns the value of attribute partition_key.
-
#projection_type ⇒ Object
readonly
Returns the value of attribute projection_type.
-
#sort_key ⇒ Object
readonly
Returns the value of attribute sort_key.
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
14 15 16 |
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 14 def name @name end |
#non_key_attributes ⇒ Object (readonly)
Returns the value of attribute non_key_attributes
14 15 16 |
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 14 def non_key_attributes @non_key_attributes end |
#partition_key ⇒ Object (readonly)
Returns the value of attribute partition_key
14 15 16 |
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 14 def partition_key @partition_key end |
#projection_type ⇒ Object (readonly)
Returns the value of attribute projection_type
14 15 16 |
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 14 def projection_type @projection_type end |
#sort_key ⇒ Object (readonly)
Returns the value of attribute sort_key
14 15 16 |
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 14 def sort_key @sort_key end |