Documentation ¶
Overview ¶
Support for the DynamoDB UpdateItem endpoint.
example use:
tests/item_operations-livestest.go
Index ¶
Constants ¶
View Source
const ( ENDPOINT_NAME = "UpdateItem" UPDATEITEM_ENDPOINT = aws_const.ENDPOINT_PREFIX + ENDPOINT_NAME // the permitted Action flags for this op ACTION_PUT = aws_strings.ACTION_PUT ACTION_DEL = aws_strings.ACTION_DEL ACTION_ADD = aws_strings.ACTION_ADD // the permitted ReturnValues flags for this op RETVAL_ALL_OLD = aws_strings.RETVAL_ALL_OLD RETVAL_ALL_NEW = aws_strings.RETVAL_ALL_NEW RETVAL_UPDATED_OLD = aws_strings.RETVAL_UPDATED_OLD RETVAL_UPDATED_NEW = aws_strings.RETVAL_UPDATED_NEW RETVAL_NONE = aws_strings.RETVAL_NONE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeUpdates ¶
type AttributeUpdates attributevalue.AttributeValueMap
type Request ¶
type Request UpdateItem
type Response ¶
type Response attributesresponse.AttributesResponse
func NewResponse ¶
func NewResponse() *Response
type UpdateItem ¶
type UpdateItem struct { AttributeUpdates attributevalue.AttributeValueUpdateMap `json:",omitempty"` ConditionExpression string `json:",omitempty"` ConditionalOperator string `json:",omitempty"` Expected expected.Expected `json:",omitempty"` ExpressionAttributeNames expressionattributenames.ExpressionAttributeNames `json:",omitempty"` ExpressionAttributeValues attributevalue.AttributeValueMap `json:",omitempty"` Key item.Key ReturnConsumedCapacity string `json:",omitempty"` ReturnValues string `json:",omitempty"` ReturnItemCollectionMetrics string `json:",omitempty"` TableName string UpdateExpression string `json:",omitempty"` }
func NewUpdateItem ¶
func NewUpdateItem() *UpdateItem
NewUpdate returns a pointer to an instantiation of the Update struct.
func (*UpdateItem) EndpointReq ¶
func (update_item *UpdateItem) EndpointReq() ([]byte, int, error)
Click to show internal directories.
Click to hide internal directories.