AWSDynamoDBUpdate

Objective-C

@interface AWSDynamoDBUpdate

Swift

class AWSDynamoDBUpdate

Represents a request to perform an UpdateItem operation.

Required parameters: [Key, UpdateExpression, TableName]

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

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable conditionExpression;

    Swift

    var conditionExpression: String? { get set }
  • One or more substitution tokens for attribute names in an expression.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nullable expressionAttributeNames;

    Swift

    var expressionAttributeNames: [String : String]? { get set }
  • One or more values that can be substituted in an expression.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, AWSDynamoDBAttributeValue *> *_Nullable expressionAttributeValues;

    Swift

    var expressionAttributeValues: [String : AWSDynamoDBAttributeValue]? { get set }
  • key

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

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, AWSDynamoDBAttributeValue *> *_Nullable key;

    Swift

    var key: [String : AWSDynamoDBAttributeValue]? { get set }
  • Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

    Declaration

    Objective-C

    @property (nonatomic) AWSDynamoDBReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure;

    Swift

    var returnValuesOnConditionCheckFailure: AWSDynamoDBReturnValuesOnConditionCheckFailure { get set }
  • Name of the table for the UpdateItem request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable tableName;

    Swift

    var tableName: String? { get set }
  • An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable updateExpression;

    Swift

    var updateExpression: String? { get set }