Module Values.UpdateSource

Represents a request to perform an UpdateItem operation.

Sourcetype nonrec t = {
  1. key : Key.t;
    (*

    The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

    *)
  2. updateExpression : UpdateExpression.t;
    (*

    An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

    *)
  3. tableName : TableArn.t;
    (*

    Name of the table for the UpdateItem request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.

    *)
  4. conditionExpression : ConditionExpression.t option;
    (*

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

    *)
  5. expressionAttributeNames : ExpressionAttributeNameMap.t option;
    (*

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

    *)
  6. expressionAttributeValues : ExpressionAttributeValueMap.t option;
    (*

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

    *)
  7. returnValuesOnConditionCheckFailure : ReturnValuesOnConditionCheckFailure.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?conditionExpression:??? -> ?expressionAttributeNames:??? -> ?expressionAttributeValues:??? -> ?returnValuesOnConditionCheckFailure:??? -> key:Key.t -> updateExpression:UpdateExpression.t -> tableName:TableArn.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Map of ([> `String of AttributeName.t ] * Awso.Botodata.value) list | `String of UpdateExpression.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t