Class: Aws::DynamoDB::Types::AttributeDefinition
- Inherits:
-
Struct
- Object
- Struct
- Aws::DynamoDB::Types::AttributeDefinition
- 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
-
#attribute_name ⇒ String
A name for the attribute.
-
#attribute_type ⇒ String
The data type for the attribute, where:.
Instance Attribute Details
#attribute_name ⇒ String
A name for the attribute.
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_type ⇒ String
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
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 |