Update
public struct Update : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
A condition that must be satisfied in order for a conditional update to succeed.
Declaration
Swift
public let conditionExpression: String?
-
One or more substitution tokens for attribute names in an expression.
Declaration
Swift
public let expressionAttributeNames: [String : String]?
-
One or more values that can be substituted in an expression.
Declaration
Swift
public let expressionAttributeValues: [String : AttributeValue]?
-
The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.
Declaration
Swift
public let key: [String : AttributeValue]
-
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.
Declaration
Swift
public let returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure?
-
Name of the table for the UpdateItem request.
Declaration
Swift
public let tableName: String
-
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
Swift
public let updateExpression: String
-
init(conditionExpression:expressionAttributeNames:expressionAttributeValues:key:returnValuesOnConditionCheckFailure:tableName:updateExpression:)
Undocumented
Declaration
Swift
public init(conditionExpression: String? = nil, expressionAttributeNames: [String : String]? = nil, expressionAttributeValues: [String : AttributeValue]? = nil, key: [String : AttributeValue], returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, tableName: String, updateExpression: String)
-
Declaration
Swift
public func validate(name: String) throws