Skip to content

DynamoDB  >  Structures  >  AttributeDefinition

AttributeDefinition

Structure Class

AttributeDefinition dataclass

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

Attributes

attribute_name instance-attribute
attribute_name: str

A name for the attribute.

attribute_type instance-attribute
attribute_type: ScalarAttributeType

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