By,
Ranjith and Divakar
Green ticks are used in Cloudbio
Go to the IAM console.
From the navigation menu, click Users.
Select your IAM user name.
Click User Actions, and then click Manage Access Keys.
Click Create Access Key.
Your keys will look something like this:
Access key ID example: AKIAIOSFODNN7EXAMPLE
Secret access key example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Go to the IAM console.
From the navigation menu, click Users.
Select your IAM user name.
Click User Actions, and then click Manage Access Keys.
Click Create Access Key.
Your keys will look something like this:
Access key ID example: AKIAIOSFODNN7EXAMPLE
Secret access key example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Click Download Credentials, and store the keys in a secure location.
- Store and retrieve any amount of data.
- Serve any level of request traffic.
- Without any operational burden
- Sacrifice strong consistency for availability
- Conflict resolution is executed during read instead of write,
i.e. “always writeable”.
- Incremental scalability.
- Consistent, predictable performance
- Single digit millisecond latencies
- Backed on solid-state drives
- Application can deliver its functionality in abounded time: Every dependency in the platform needs to deliver its functionality with even tighter bounds.
Go to the IAM console.
From the navigation menu, click Users.
Select your IAM user name.
Click User Actions, and then click Manage Access Keys.
Click Create Access Key.
Your keys will look something like this:
Access key ID example: AKIAIOSFODNN7EXAMPLE
Secret access key example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Click Download Credentials, and store the keys in a secure location.
static AmazonDynamoDBClient client; AWSCredentials credentials = new PropertiesCredentials( Some.class.getResourceAsStream("AwsCredentials.properties") ); client = new AmazonDynamoDBClient(credentials);
accessKey = AKIAIWLBWNSATT3HUZGQ secretKey = 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
Map<String, AttributeValue> item1 = new HashMap<String, AttributeValue>();
item1.put("Id", new AttributeValue().withN("120"));
item1.put("Title", new AttributeValue().withS("Book 120 Title"));
item1.put("ISBN", new AttributeValue().withS("120-1111111111"));
item1.put("Authors", new AttributeValue()
.withSS(Arrays.asList("Author12", "Author22")));
item1.put("Price", new AttributeValue().withN("20.00"));
item1.put("Category", new AttributeValue().withS("Book"));
item1.put("Dimensions", new AttributeValue().withS("8.5x11.0x.75"));
item1.put("InPublication", new AttributeValue().withN("0")); // false
PutItemRequest putItemRequest1 = new PutItemRequest()
.withTableName(tableName)
.withItem(item1);
PutItemResult result1 = client.putItem(putItemRequest1);
HashMap<String, AttributeValue> key = new HashMap<String, AttributeValue>();
key.put("Id", new AttributeValue().withN("120"));
GetItemRequest getItemRequest = new GetItemRequest()
.withTableName(tableName)
.withKey(key)
.withAttributesToGet(Arrays.asList("Id", "ISBN", "Title", "Authors"));
GetItemResult result = client.getItem(getItemRequest);
// Check the response.
System.out.println("Printing item after retrieving it....");
printItem(result.getItem());
HashMap<String, AttributeValue> key = new HashMap<String, AttributeValue> (); key.put("Id", new AttributeValue().withN("101")); DeleteItemRequest deleteItemRequest = new DeleteItemRequest() .withTableName(tableName) .withKey(key); DeleteItemResult deleteItemResult = client.deleteItem(deleteItemRequest);
Operations Performed to get data from table
Queries.?