Skip to content

Instantly share code, notes, and snippets.

@xtianus79
Last active October 23, 2015 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xtianus79/25d7bdb55fa73ec3765b to your computer and use it in GitHub Desktop.
Save xtianus79/25d7bdb55fa73ec3765b to your computer and use it in GitHub Desktop.
if (action === 'aws_qa') {
var params = {};
params.RequestItems = {};
params['RequestItems'][variable_here] =
[ // a list of Put or Delete requests for that table
{ // An example DeleteRequest
DeleteRequest: {
Key: { // a map of attribute name to AttributeValue
ScId: {'S': '...'},
Id: {'S': '...'}, // optional if table is hash-only
// attribute_value (string | number | boolean | null | Uint8Array | dynamodb.Set | Array | Object)
// ... more attributes ...
}
}
}
]
console.log(params[0] + ' this is the log of params 2222');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment