# AttributeDefinitionProperty

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

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const attributeDefinitionProperty: dynamodb.CfnTable.AttributeDefinitionProperty = {
  attributeName: 'attributeName',
  attributeType: 'attributeType',
};
```

## Properties

- `attributeName`: string (required) — A name for the attribute.

- `attributeType`: string (required) — 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
