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

Put

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

Represents a request to perform a PutItem operation.

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

§Properties

§
ConditionExpression?: string | null
[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.

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

A map of attribute name to attribute values, representing the primary key of the item to be written by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.

§
ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure | null
[src]

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

§
TableName: string
[src]

Name of the table in which to write the item.