interface UpdateOptions {
    conditionExpression?: string;
    expressionAttributeNames?: Record<string, string>;
    expressionAttributeValues?: DynamoDBValues;
    ttl?: number;
    ttlInFutureDays?: number;
    update?: {
        add?: string;
        delete?: string;
        remove?: string;
        set?: string;
    };
}

Properties

conditionExpression?: string

DynamoDB Condition Expression

expressionAttributeNames?: Record<string, string>

DynamoDB Expression Attribute Names for Update and/or Condition Expression

expressionAttributeValues?: DynamoDBValues

DynamoDB Expression Attribute Values for Update and/or Condition Expression

ttl?: number

Absolute TTL value on record, if TTL attribute configured for table

ttlInFutureDays?: number

Sets TTL value on record with a relative value - now + number of days in the future If the ttl attribute is set then this value is ignored DynamoDB only guarantees TTL cleanup precision within a few days, so more precision here is unnecessary

update?: {
    add?: string;
    delete?: string;
    remove?: string;
    set?: string;
}

Update Expression, with each of the 4 possible clauses broken out

No update expression set. This is only valid if the update is only used for updating the TTL value