AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Specifies that the decorated property or field should have its value automatically set to the current timestamp during persistence operations.

Inheritance Hierarchy

System.Object
  System.Attribute
    Amazon.DynamoDBv2.DataModel.DynamoDBAttribute
      Amazon.DynamoDBv2.DataModel.DynamoDBRenamableAttribute
        Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute
          Amazon.DynamoDBv2.DataModel.DynamoDBAutoGeneratedTimestampAttribute

Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public sealed class DynamoDBAutoGeneratedTimestampAttribute : DynamoDBPropertyAttribute

The DynamoDBAutoGeneratedTimestampAttribute type exposes the following members

Constructors

NameDescription
Public Method DynamoDBAutoGeneratedTimestampAttribute()

Default constructor. Timestamp is set on both create and update.

Public Method DynamoDBAutoGeneratedTimestampAttribute(string)

Constructor that specifies an alternate attribute name.

Public Method DynamoDBAutoGeneratedTimestampAttribute(Type)

Constructor that specifies a custom converter.

Public Method DynamoDBAutoGeneratedTimestampAttribute(string, Type)

Constructor that specifies an alternate attribute name and a custom converter.

Properties

NameTypeDescription
Public Property AttributeName System.String Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBRenamableAttribute.
Public Property Converter System.Type Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute.
Public Property StoreAsEpoch System.Boolean Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute.
Public Property StoreAsEpochLong System.Boolean Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute.
Public Property TypeId System.Object Inherited from System.Attribute.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer