-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.js
More file actions
30 lines (30 loc) · 942 Bytes
/
table.js
File metadata and controls
30 lines (30 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
TableName : "Tempreture",
KeySchema: [
{ AttributeName: "Thermometr", KeyType: "HASH" }, //Partition key
{ AttributeName: "GetDate", KeyType: "RANGE" } //Sort key
],
AttributeDefinitions: [
{ AttributeName: "Thermometr", AttributeType: "S" },
{ AttributeName: "GetDate", AttributeType: "N" },
],
ProvisionedThroughput: {
ReadCapacityUnits: 10,
WriteCapacityUnits: 10
}
};
{
TableName : "Commands",
KeySchema: [
{ AttributeName: "Thermometr", KeyType: "HASH" }, //Partition key
{ AttributeName: "Boiler", KeyType: "RANGE" } //Sort key
],
AttributeDefinitions: [
{ AttributeName: "Thermometr", AttributeType: "S" },
{ AttributeName: "Boiler", AttributeType: "S" },
],
ProvisionedThroughput: {
ReadCapacityUnits: 5,
WriteCapacityUnits: 5
}
};