Example #1
0
// NewPutJSON will return a pointer to an initialized PutItemJSON struct.
func NewPutItemJSON() *PutItemJSON {
	p := new(PutItemJSON)
	p.Expected = expected.NewExpected()
	p.ExpressionAttributeNames = expressionattributenames.NewExpressionAttributeNames()
	p.ExpressionAttributeValues = attributevalue.NewAttributeValueMap()
	return p
}
func NewAttributesResponse() *AttributesResponse {
	a := new(AttributesResponse)
	a.Attributes = attributevalue.NewAttributeValueMap()
	a.ConsumedCapacity = capacity.NewConsumedCapacity()
	a.ItemCollectionMetrics = itemcollectionmetrics.NewItemCollectionMetrics()
	return a
}
func NewItemCollectionMetrics() *ItemCollectionMetrics {
	i := new(ItemCollectionMetrics)
	i.ItemCollectionKey = attributevalue.NewAttributeValueMap()
	return i
}
Example #4
0
func NewKey() Key {
	a := attributevalue.NewAttributeValueMap()
	return Key(a)
}
Example #5
0
// Item is already a reference type
func NewItem() Item {
	a := attributevalue.NewAttributeValueMap()
	return Item(a)
}