pub struct UpdateItemInput {Show 13 fields
pub table_name: String,
pub key: HashMap<String, AttributeValue>,
pub update_expression: Option<String>,
pub condition_expression: Option<String>,
pub expression_attribute_names: HashMap<String, String>,
pub expression_attribute_values: HashMap<String, AttributeValue>,
pub return_values: Option<ReturnValue>,
pub return_consumed_capacity: Option<ReturnConsumedCapacity>,
pub return_item_collection_metrics: Option<ReturnItemCollectionMetrics>,
pub attribute_updates: HashMap<String, AttributeValueUpdate>,
pub expected: HashMap<String, ExpectedAttributeValue>,
pub conditional_operator: Option<ConditionalOperator>,
pub return_values_on_condition_check_failure: Option<String>,
}Expand description
Input for the UpdateItem operation.
Fields§
§table_name: StringThe name of the table containing the item to update.
key: HashMap<String, AttributeValue>The primary key of the item to be updated.
update_expression: Option<String>An expression that defines one or more attributes to be updated.
condition_expression: Option<String>A condition that must be satisfied for the update to succeed.
expression_attribute_names: HashMap<String, String>Substitution tokens for attribute names in an expression.
expression_attribute_values: HashMap<String, AttributeValue>Substitution tokens for attribute values in an expression.
return_values: Option<ReturnValue>Determines the attributes to return after the operation.
return_consumed_capacity: Option<ReturnConsumedCapacity>Determines the level of detail about provisioned throughput consumption.
return_item_collection_metrics: Option<ReturnItemCollectionMetrics>Determines whether item collection metrics are returned.
attribute_updates: HashMap<String, AttributeValueUpdate>Legacy: attribute updates map (use update_expression instead).
expected: HashMap<String, ExpectedAttributeValue>Legacy: expected conditions for conditional writes.
conditional_operator: Option<ConditionalOperator>Legacy: logical operator for combining multiple expected conditions.
return_values_on_condition_check_failure: Option<String>Determines whether to return the item attributes on a failed condition check.
Valid values: NONE, ALL_OLD.
Trait Implementations§
Source§impl Clone for UpdateItemInput
impl Clone for UpdateItemInput
Source§fn clone(&self) -> UpdateItemInput
fn clone(&self) -> UpdateItemInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more