update_item

package
v0.0.0-...-b6c570c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2015 License: BSD-2-Clause Imports: 9 Imported by: 0

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 Request

type Request UpdateItem

func (*Request) EndpointReq

func (req *Request) EndpointReq() ([]byte, int, error)

type Response

func NewResponse

func NewResponse() *Response

type Update

type Update UpdateItem

Update is an alias for backwards compatibility

func NewUpdate

func NewUpdate() *Update

func (*Update) EndpointReq

func (update *Update) EndpointReq() ([]byte, int, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL