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
package samples.dynamodb; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.nio.ByteBuffer; | |
import java.util.HashMap; | |
import java.util.Map; | |
import samples.dynamodb.model.Employee; |
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
package workshop.glacier; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.text.SimpleDateFormat; | |
import java.util.Arrays; | |
import java.util.Date; |
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
var AWS = require('aws-sdk'); | |
AWS.config.region = 'ap-northeast-1'; | |
var db = new AWS.DynamoDB(); | |
exports.handler = function(event, context) { | |
console.log(event); | |
var ddbRequest = null; | |
var formatOutput = function(data) { |
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
console.log('Loading CreateTask function'); | |
var AWS = require('aws-sdk'); | |
AWS.config.region = 'ap-northeast-1'; | |
var db = new AWS.DynamoDB(); | |
exports.handler = function(event, context) { | |
if (event.id === null || | |
event.title === null || | |
event.title.length === 0 || |
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
console.log('Loading function'); | |
var AWS = require('aws-sdk'); | |
AWS.config.region = 'ap-northeast-1'; | |
var db = new AWS.DynamoDB(); | |
exports.handler = function(event, context) { | |
console.log(event); | |
var ddbRequest = null; | |
var formatOutput = function(data) { |
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
console.log('Loading function'); | |
var AWS = require('aws-sdk'); | |
AWS.config.region = 'ap-northeast-1'; | |
var dynamodb = new AWS.DynamoDB(); | |
exports.handler = function(event, context) { | |
console.log(event); | |
if(event.id === null) { | |
context.fail("no such id"); | |
return; |