Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon DynamoDB Table AttributeDefinition

The AttributeDefinition property type represents an attribute for describing the key schema for a DynamoDB table and indexes.

Note

AWS CloudFormation uses these attributes to provision the keys for the table. They don't represent the full schema of the table.

The AttributeDefinition property of the AWS::DynamoDB::Table resource contains a list of AttributeDefinition property types.

Syntax

JSON

Copy
{ "AttributeName" : String, "AttributeType" : String }

YAML

Copy
AttributeName: String AttributeType: String

Properties

AttributeName

The name of an attribute. Attribute names can be 1 – 255 characters long and have no character restrictions.

Required: Yes

Type: String

AttributeType

The data type for the attribute. You can specify S for string data, N for numeric data, or B for binary data.

Required: Yes

Type: String

On this page: