Documentation ¶
Overview ¶
Support for the DynamoDB PutItem endpoint.
example use:
tests/put_item-livestest.go
Index ¶
Constants ¶
View Source
const ( ENDPOINT_NAME = "PutItem" JSON_ENDPOINT_NAME = ENDPOINT_NAME + "JSON" PUTITEM_ENDPOINT = aws_const.ENDPOINT_PREFIX + ENDPOINT_NAME // the permitted ReturnValues flags for this op RETVAL_ALL_OLD = aws_strings.RETVAL_ALL_OLD RETVAL_NONE = aws_strings.RETVAL_NONE )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PutItem ¶
type PutItem struct { ConditionExpression string `json:",omitempty"` ConditionalOperator string `json:",omitempty"` Expected expected.Expected `json:",omitempty"` ExpressionAttributeNames expressionattributenames.ExpressionAttributeNames `json:",omitempty"` ExpressionAttributeValues attributevalue.AttributeValueMap `json:",omitempty"` Item item.Item ReturnConsumedCapacity string `json:",omitempty"` ReturnItemCollectionMetrics string `json:",omitempty"` ReturnValues string `json:",omitempty"` TableName string }
func NewPutItem ¶
func NewPutItem() *PutItem
NewPut will return a pointer to an initialized PutItem struct.
type PutItemJSON ¶
type PutItemJSON struct { ConditionExpression string `json:",omitempty"` ConditionalOperator string `json:",omitempty"` Expected expected.Expected `json:",omitempty"` ExpressionAttributeNames expressionattributenames.ExpressionAttributeNames `json:",omitempty"` ExpressionAttributeValues attributevalue.AttributeValueMap `json:",omitempty"` Item interface{} ReturnConsumedCapacity string `json:",omitempty"` ReturnItemCollectionMetrics string `json:",omitempty"` ReturnValues string `json:",omitempty"` TableName string }
PutItemJSON differs from PutItem in that JSON is a string, which allows you to use a basic JSON document as the Item
func NewPutItemJSON ¶
func NewPutItemJSON() *PutItemJSON
NewPutJSON will return a pointer to an initialized PutItemJSON struct.
func (*PutItemJSON) ToPutItem ¶
func (put_item_json *PutItemJSON) ToPutItem() (*PutItem, error)
ToPutItem will attempt to convert a PutItemJSON to PutItem
type Response ¶
type Response attributesresponse.AttributesResponse
func NewResponse ¶
func NewResponse() *Response
Click to show internal directories.
Click to hide internal directories.