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
stringA name for the attribute.
attributeType
ScalarAttributeTypeThe data type for the attribute, where:
-
- the attribute is of type StringS
-
- the attribute is of type NumberN
-
- the attribute is of type BinaryB
-
Properties
AttributeName
Gets and sets the property AttributeName.
A name for the attribute.
public string AttributeName { get; set; }
Property Value
AttributeType
Gets and sets the property AttributeType.
The data type for the attribute, where:
- the attribute is of type StringS
- the attribute is of type NumberN
- the attribute is of type BinaryB
public ScalarAttributeType AttributeType { get; set; }