List of usage examples for com.amazonaws.services.dynamodbv2.document Item withJSON
public Item withJSON(String attrName, String json)
From source file:io.helixservice.feature.configuration.dynamo.DynamoConfigResourceLocator.java
License:Open Source License
private void createEmptyConfiguration(String environmentName) { try {/* ww w . j ava 2 s . co m*/ Item item = new Item(); item.withString("environment", environmentName); item.withString("service", serviceName); item.withJSON("config", "{}"); configTable.putItem(item); LOG.info("Created default configuration in DynamoDB for environment=" + environmentName); } catch (Throwable t) { LOG.error("Unable to create default configuration in DynamoDB for environment=" + environmentName, t); } }