You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-dynamodb/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 'gems/aws-sdk-dynamodb/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 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 38

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