AWSDynamoDBPut

Objective-C

@interface AWSDynamoDBPut

Swift

class AWSDynamoDBPut

Represents a request to perform a PutItem operation.

Required parameters: [Item, 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 }
  • A map of attribute name to attribute values, representing the primary key of the item to be written by PutItem. All of the table’s primary key attributes must be specified, and their data types must match those of the table’s key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.

    Declaration

    Objective-C

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

    Swift

    var item: [String : AWSDynamoDBAttributeValue]? { get set }
  • Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put 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 in which to write the item. 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 }