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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AttributeDefinition as input to an Aws::Client method, you can use a vanilla 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)

    A name for the attribute.

#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

    Possible values:

    • S
    • N
    • B

Returns:

  • (String)

    The data type for the attribute, where:.