Class: Aws::DynamoDB::Types::AttributeDefinition

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-dynamodb/types.rb

Overview

Note:

When making an API call, you may pass AttributeDefinition data as a hash:

{
  attribute_name: "KeySchemaAttributeName", # required
  attribute_type: "S", # required, accepts S, N, B
}

Represents an attribute for describing the key schema for the table and indexes.

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_nameString

A name for the attribute.

Returns:

  • (String)


38
39
40
41
42
# File 'lib/aws-sdk-dynamodb/types.rb', line 38

class AttributeDefinition < Struct.new(
  :attribute_name,
  :attribute_type)
  include Aws::Structure
end

#attribute_typeString

The data type for the attribute, where:

  • ‘S` - the attribute is of type String

  • ‘N` - the attribute is of type Number

  • ‘B` - the attribute is of type Binary

Returns:

  • (String)


38
39
40
41
42
# File 'lib/aws-sdk-dynamodb/types.rb', line 38

class AttributeDefinition < Struct.new(
  :attribute_name,
  :attribute_type)
  include Aws::Structure
end