-
Notifications
You must be signed in to change notification settings - Fork 6
/
jest-dynalite-config.js
59 lines (58 loc) · 1.86 KB
/
jest-dynalite-config.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
module.exports = {
tables: [
{
TableName: 'general',
KeySchema: [
{ AttributeName: 'pk', KeyType: 'HASH' },
{ AttributeName: 'sk', KeyType: 'RANGE' },
],
AttributeDefinitions: [
{ AttributeName: 'pk', AttributeType: 'S' },
{ AttributeName: 'sk', AttributeType: 'S' },
{ AttributeName: 'gpk1', AttributeType: 'S' },
{ AttributeName: 'gsk1', AttributeType: 'S' },
{ AttributeName: 'gpk2', AttributeType: 'S' },
{ AttributeName: 'gsk2', AttributeType: 'S' },
{ AttributeName: 'gpk3', AttributeType: 'S' },
{ AttributeName: 'gsk3', AttributeType: 'S' },
{ AttributeName: 'gpk4', AttributeType: 'S' },
{ AttributeName: 'gsk4', AttributeType: 'S' },
],
GlobalSecondaryIndexes: [
{
IndexName: 'gsi1',
KeySchema: [
{ AttributeName: 'gpk1', KeyType: 'HASH' },
{ AttributeName: 'gsk1', KeyType: 'RANGE' },
],
Projection: { ProjectionType: 'ALL' },
},
{
IndexName: 'gsi2',
KeySchema: [
{ AttributeName: 'gpk2', KeyType: 'HASH' },
{ AttributeName: 'gsk2', KeyType: 'RANGE' },
],
Projection: { ProjectionType: 'ALL' },
},
{
IndexName: 'gsi3',
KeySchema: [
{ AttributeName: 'gpk3', KeyType: 'HASH' },
{ AttributeName: 'gsk3', KeyType: 'RANGE' },
],
Projection: { ProjectionType: 'ALL' },
},
{
IndexName: 'gsi4',
KeySchema: [
{ AttributeName: 'gpk4', KeyType: 'HASH' },
{ AttributeName: 'gsk4', KeyType: 'RANGE' },
],
Projection: { ProjectionType: 'ALL' },
},
],
ProvisionedThroughput: { ReadCapacityUnits: 1, WriteCapacityUnits: 1 },
},
],
};