Class: Aws::DynamoDB::Types::AttributeDefinition
- Inherits:
-
Struct
- Object
- Struct
- Aws::DynamoDB::Types::AttributeDefinition
- 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.
Constant Summary collapse
- SENSITIVE =
[]
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.
75 76 77 78 79 80 |
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 75 class AttributeDefinition < Struct.new( :attribute_name, :attribute_type) SENSITIVE = [] include Aws::Structure end |
#attribute_type ⇒ String
The data type for the attribute, where:
S
- the attribute is of type StringN
- the attribute is of type NumberB
- the attribute is of type Binary
75 76 77 78 79 80 |
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 75 class AttributeDefinition < Struct.new( :attribute_name, :attribute_type) SENSITIVE = [] include Aws::Structure end |