putItem

Spec

async putItem<TSource>(
    tnmInput: TynamoPutItemInput<TSource>
): Promise<TynamoPutItemOutput<TSource>>;

Input

export interface TynamoPutItemInput<TSource> {
    Item: TSource;
    ExpressionAttributeValues?: any;
    
    // Dervied from DynamoDB
    ReturnValues?: ReturnValue;
    ReturnConsumedCapacity?: ReturnConsumedCapacity;
    ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
    ExpressionAttributeNames?: ExpressionAttributeNameMap;
    ConditionExpression?: ConditionExpression;
}

Name

Type

Info

Item

@DynamoEntity

Item to insert into the table.

ExpressionAttributeValues

@DynamoEntity

Value used for expression.

Unlisted param is derived from DynamoDB.

Check here for more information.

Output

Name

Type

Info

Attributes

@DynamoEntity

The attribute values as they appeared before the PutItem operation, but only if ReturnValues is specified as ALL_OLD in the request.

Unlisted param is derived from DynamoDB.

Check here for more information.

Example

Last updated

Was this helpful?