Put
public struct Put : 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]?
-
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
Swift
public let item: [String : AttributeValue]
-
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
Declaration
Swift
public let returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure?
-
Name of the table in which to write the item.
Declaration
Swift
public let tableName: String
-
init(conditionExpression:expressionAttributeNames:expressionAttributeValues:item:returnValuesOnConditionCheckFailure:tableName:)
Undocumented
Declaration
Swift
public init(conditionExpression: String? = nil, expressionAttributeNames: [String : String]? = nil, expressionAttributeValues: [String : AttributeValue]? = nil, item: [String : AttributeValue], returnValuesOnConditionCheckFailure: ReturnValuesOnConditionCheckFailure? = nil, tableName: String)
-
Declaration
Swift
public func validate(name: String) throws