Update
import type { Update } from "https://aws-api.deno.dev/v0.3/services/dynamodb.ts?docs=full";
Represents a request to perform an UpdateItem
operation.
interface Update {
ConditionExpression?: string | null;
ExpressionAttributeNames?: {} | null;
[key: string]: string | null | undefined;
ExpressionAttributeValues?: {} | null;
[key: string]: AttributeValue | null | undefined;
Key: {};
[key: string]: AttributeValue | null | undefined;
ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure | null;
TableName: string;
UpdateExpression: string;
}§Properties
§
ConditionExpression?: string | null
[src]A condition that must be satisfied in order for a conditional update to succeed.
§
ExpressionAttributeNames?: {} | null
[src][key: string]: string | null | undefined;
One or more substitution tokens for attribute names in an expression.
§
ExpressionAttributeValues?: {} | null
[src][key: string]: AttributeValue | null | undefined;
One or more values that can be substituted in an expression.
§
Key: {}
[src][key: string]: AttributeValue | null | undefined;
The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.
§
ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure | null
[src]Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails.
For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.