• Edits an existing item's attributes, or adds a new item to the table if it does not already exist by delegating to DocumentClient.update.

    Returns

    The same response returned by update().promise()

    Parameters

    • tableName: string

      The name of the table containing the item to update

    • key: Key

      The primary key of the item to be updated

    • updatedValues: AttributeMap

      A map of attribute name/value pairs with the attributes that must be modified

    • Optional options: Partial<FacadeUpdateItemInput>

      The options accepted by the original update method, plus an optional condition field that generates ConditionExpression

    Returns Promise<PromiseResult<UpdateItemOutput, AWSError>>

Generated using TypeDoc