Class: Dynamoid::CDK::Schema::Descriptor

Inherits:
Data
  • Object
show all
Defined in:
lib/dynamoid/cdk/schema/descriptor.rb

Overview

A model's table shape as plain data — readable and buildable with no AWS CDK present. sort_key is nil for a hash-only table.

Instance Attribute Summary collapse

Instance Attribute Details

#global_secondary_indexesObject (readonly)

Returns the value of attribute global_secondary_indexes

Returns:

  • (Object)

    the current value of global_secondary_indexes



18
19
20
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 18

def global_secondary_indexes
  @global_secondary_indexes
end

#local_secondary_indexesObject (readonly)

Returns the value of attribute local_secondary_indexes

Returns:

  • (Object)

    the current value of local_secondary_indexes



18
19
20
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 18

def local_secondary_indexes
  @local_secondary_indexes
end

#partition_keyObject (readonly)

Returns the value of attribute partition_key

Returns:

  • (Object)

    the current value of partition_key



18
19
20
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 18

def partition_key
  @partition_key
end

#sort_keyObject (readonly)

Returns the value of attribute sort_key

Returns:

  • (Object)

    the current value of sort_key



18
19
20
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 18

def sort_key
  @sort_key
end