Table of Contents

Class AttributeDefinition

Namespace
Amazon.DynamoDBv2.Model
Assembly
AWSSDK.DynamoDBv2.dll

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

public class AttributeDefinition
Inheritance
AttributeDefinition
Inherited Members

Constructors

AttributeDefinition()

Empty constructor used to set properties independently even when a simple constructor is available

public AttributeDefinition()

AttributeDefinition(string, ScalarAttributeType)

Instantiates AttributeDefinition with the parameterized properties

public AttributeDefinition(string attributeName, ScalarAttributeType attributeType)

Parameters

attributeName string

A name for the attribute.

attributeType 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

Properties

AttributeName

Gets and sets the property AttributeName.

A name for the attribute.

public string AttributeName { get; set; }

Property Value

string

AttributeType

Gets and sets the property AttributeType.

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
public ScalarAttributeType AttributeType { get; set; }

Property Value

ScalarAttributeType