Created
November 29, 2018 00:09
-
-
Save adrianhall/116c1452770ec4db8e18ab9d1838e971 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($id = $ctx.stash.get("locationId")+"-"+$context.stash.get("owner")) | |
{ | |
"operation": "PutItem", | |
"key": { | |
"id": $util.dynamodb.toDynamoDBJson($id), | |
"typeName": $util.dynamodb.toDynamoDBJson("FAVORITE") | |
}, | |
"attributeValues": { | |
"owner": $util.dynamodb.toDynamoDBJson($context.stash.get("owner")), | |
"locationId": $util.dynamodb.toDynamoDBJson($context.stash.get("locationId")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment