Open hassankhan opened 6 years ago
You can do this today by using the @attribute
annotation on a property whose type is a Date
. Dates are persisted as an epoch timestamp and can be used a TTL field.
Does it also set the TimeToLiveSpecification
when creating the table via createTable()
?
It doesn’t. The TTL specification for a table can’t be specified for a CreateTable operation but requires a separate call to UpdateTimeToLive. There’s no reason createTable
couldn’t call both operations, though.
Bump
@adrianpanicek @jeskew any. update on this?
It would be super useful if we could take advantage of DynamoDB's TTL functionality with a
@ttl
decorator: