Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ConditionCheck

import type { ConditionCheck } from "https://aws-api.deno.dev/v0.3/services/dynamodb.ts?docs=full";

Represents a request to perform a check that an item exists or to check the condition of specific attributes of the item.

interface ConditionCheck {
ConditionExpression: string;
ExpressionAttributeNames?: {
[key: string]: string | null | undefined;
}
| null;
ExpressionAttributeValues?: {
[key: string]: AttributeValue | null | undefined;
}
| null;
Key: {
[key: string]: AttributeValue | null | undefined;
}
;
ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure | null;
TableName: string;
}

§Properties

§
ConditionExpression: string
[src]

A condition that must be satisfied in order for a conditional update to succeed.

§
ExpressionAttributeNames?: {
[key: string]: string | null | undefined;
}
| null
[src]

One or more substitution tokens for attribute names in an expression.

§
ExpressionAttributeValues?: {
[key: string]: AttributeValue | null | undefined;
}
| null
[src]

One or more values that can be substituted in an expression.

§
Key: {
[key: string]: AttributeValue | null | undefined;
}
[src]

The primary key of the item to be checked. 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 ConditionCheck condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

§
TableName: string
[src]

Name of the table for the check item request.