@aws-solutions-constructs/aws-lambda-dynamodb 2.79.1 → 2.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/.jsii +43 -43
  2. package/lib/index.js +1 -1
  3. package/package.json +6 -6
  4. package/test/integ.lamddb-add-secondary-index.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  5. package/test/integ.lamddb-add-secondary-index.js.snapshot/cdk.out +1 -1
  6. package/test/integ.lamddb-add-secondary-index.js.snapshot/integ.json +1 -1
  7. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddb-add-secondary-index.assets.json +6 -6
  8. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddb-add-secondary-index.template.json +25 -19
  9. package/test/integ.lamddb-add-secondary-index.js.snapshot/lamddbaddsecondaryindexIntegDefaultTestDeployAssert3193B4D9.assets.json +1 -1
  10. package/test/integ.lamddb-add-secondary-index.js.snapshot/manifest.json +197 -3
  11. package/test/integ.lamddb-add-secondary-index.js.snapshot/tree.json +1 -415
  12. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/cdk.out +1 -1
  13. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/integ.json +1 -1
  14. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.assets.json +3 -3
  15. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.template.json +35 -7
  16. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddbdeployFunctionWithExistingVpcIntegDefaultTestDeployAssertEE08E38E.assets.json +1 -1
  17. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/manifest.json +476 -3
  18. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/tree.json +1 -1386
  19. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/cdk.out +1 -1
  20. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/integ.json +1 -1
  21. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.assets.json +3 -3
  22. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.template.json +33 -7
  23. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.assets.json +1 -1
  24. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/manifest.json +404 -3
  25. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/tree.json +1 -968
  26. package/test/integ.lamddb-no-arguments.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  27. package/test/integ.lamddb-no-arguments.js.snapshot/cdk.out +1 -1
  28. package/test/integ.lamddb-no-arguments.js.snapshot/integ.json +1 -1
  29. package/test/integ.lamddb-no-arguments.js.snapshot/lamddb-no-arguments.assets.json +6 -6
  30. package/test/integ.lamddb-no-arguments.js.snapshot/lamddb-no-arguments.template.json +25 -19
  31. package/test/integ.lamddb-no-arguments.js.snapshot/lamddbnoargumentsIntegDefaultTestDeployAssert248B75D0.assets.json +1 -1
  32. package/test/integ.lamddb-no-arguments.js.snapshot/manifest.json +183 -3
  33. package/test/integ.lamddb-no-arguments.js.snapshot/tree.json +1 -386
  34. package/test/integ.lamddb-set-billing-mode.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  35. package/test/integ.lamddb-set-billing-mode.js.snapshot/cdk.out +1 -1
  36. package/test/integ.lamddb-set-billing-mode.js.snapshot/integ.json +1 -1
  37. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddb-set-billing-mode.assets.json +6 -6
  38. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddb-set-billing-mode.template.json +25 -19
  39. package/test/integ.lamddb-set-billing-mode.js.snapshot/lamddbsetbillingmodeIntegDefaultTestDeployAssertDAE32272.assets.json +1 -1
  40. package/test/integ.lamddb-set-billing-mode.js.snapshot/manifest.json +185 -3
  41. package/test/integ.lamddb-set-billing-mode.js.snapshot/tree.json +1 -389
  42. package/test/integ.lamddb-use-existing-func.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  43. package/test/integ.lamddb-use-existing-func.js.snapshot/cdk.out +1 -1
  44. package/test/integ.lamddb-use-existing-func.js.snapshot/integ.json +1 -1
  45. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddb-use-existing-func.assets.json +6 -6
  46. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddb-use-existing-func.template.json +25 -19
  47. package/test/integ.lamddb-use-existing-func.js.snapshot/lamddbuseexistingfuncIntegDefaultTestDeployAssert48D284DD.assets.json +1 -1
  48. package/test/integ.lamddb-use-existing-func.js.snapshot/manifest.json +183 -3
  49. package/test/integ.lamddb-use-existing-func.js.snapshot/tree.json +1 -386
  50. package/test/integ.lamddb-add-secondary-index.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  51. package/test/integ.lamddb-no-arguments.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  52. package/test/integ.lamddb-set-billing-mode.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  53. package/test/integ.lamddb-use-existing-func.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "testCases": {
4
4
  "lamddb-use-existing-func/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,20 +1,20 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
- "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8": {
4
+ "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c": {
5
5
  "source": {
6
- "path": "asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8",
6
+ "path": "asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c",
7
7
  "packaging": "zip"
8
8
  },
9
9
  "destinations": {
10
10
  "current_account-current_region": {
11
11
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
- "objectKey": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip",
12
+ "objectKey": "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip",
13
13
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
14
  }
15
15
  }
16
16
  },
17
- "82e81672363db46fa959f566e588cba6536cbe85d49bd96181e85b0eb3d55a09": {
17
+ "534d74fb32bcb4ad6182b21fad4718422f839cb964c0ca21e3f1271a3bff52b6": {
18
18
  "source": {
19
19
  "path": "lamddb-use-existing-func.template.json",
20
20
  "packaging": "file"
@@ -22,7 +22,7 @@
22
22
  "destinations": {
23
23
  "current_account-current_region": {
24
24
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
- "objectKey": "82e81672363db46fa959f566e588cba6536cbe85d49bd96181e85b0eb3d55a09.json",
25
+ "objectKey": "534d74fb32bcb4ad6182b21fad4718422f839cb964c0ca21e3f1271a3bff52b6.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }
@@ -67,14 +67,6 @@
67
67
  "Properties": {
68
68
  "PolicyDocument": {
69
69
  "Statement": [
70
- {
71
- "Action": [
72
- "xray:PutTelemetryRecords",
73
- "xray:PutTraceSegments"
74
- ],
75
- "Effect": "Allow",
76
- "Resource": "*"
77
- },
78
70
  {
79
71
  "Action": [
80
72
  "dynamodb:BatchGetItem",
@@ -112,16 +104,6 @@
112
104
  "Ref": "LambdaFunctionServiceRole0C4CDE0B"
113
105
  }
114
106
  ]
115
- },
116
- "Metadata": {
117
- "cfn_nag": {
118
- "rules_to_suppress": [
119
- {
120
- "id": "W12",
121
- "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
122
- }
123
- ]
124
- }
125
107
  }
126
108
  },
127
109
  "LambdaFunctionBF21E41F": {
@@ -131,7 +113,7 @@
131
113
  "S3Bucket": {
132
114
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
133
115
  },
134
- "S3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
116
+ "S3Key": "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip"
135
117
  },
136
118
  "Environment": {
137
119
  "Variables": {
@@ -176,6 +158,30 @@
176
158
  }
177
159
  }
178
160
  },
161
+ "LambdaFunctioninlinePolicyAddedToExecutionRole007875684": {
162
+ "Type": "AWS::IAM::Policy",
163
+ "Properties": {
164
+ "PolicyDocument": {
165
+ "Statement": [
166
+ {
167
+ "Action": [
168
+ "xray:PutTelemetryRecords",
169
+ "xray:PutTraceSegments"
170
+ ],
171
+ "Effect": "Allow",
172
+ "Resource": "*"
173
+ }
174
+ ],
175
+ "Version": "2012-10-17"
176
+ },
177
+ "PolicyName": "LambdaFunctioninlinePolicyAddedToExecutionRole007875684",
178
+ "Roles": [
179
+ {
180
+ "Ref": "LambdaFunctionServiceRole0C4CDE0B"
181
+ }
182
+ ]
183
+ }
184
+ },
179
185
  "testlambdadynamodbstackDynamoTable8138E93B": {
180
186
  "Type": "AWS::DynamoDB::Table",
181
187
  "Properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "42.0.0",
3
3
  "artifacts": {
4
4
  "lamddbuseexistingfuncIntegDefaultTestDeployAssert48D284DD.assets": {
5
5
  "type": "cdk:asset-manifest",
@@ -66,7 +66,7 @@
66
66
  "validateOnSynth": false,
67
67
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
68
  "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
69
- "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/82e81672363db46fa959f566e588cba6536cbe85d49bd96181e85b0eb3d55a09.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/534d74fb32bcb4ad6182b21fad4718422f839cb964c0ca21e3f1271a3bff52b6.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -82,30 +82,209 @@
82
82
  "lamddb-use-existing-func.assets"
83
83
  ],
84
84
  "metadata": {
85
+ "/lamddb-use-existing-func/LambdaFunctionServiceRole": [
86
+ {
87
+ "type": "aws:cdk:analytics:construct",
88
+ "data": {
89
+ "assumedBy": {
90
+ "principalAccount": "*",
91
+ "assumeRoleAction": "*"
92
+ },
93
+ "inlinePolicies": "*"
94
+ }
95
+ },
96
+ {
97
+ "type": "aws:cdk:analytics:method",
98
+ "data": {
99
+ "attachInlinePolicy": [
100
+ "*"
101
+ ]
102
+ }
103
+ },
104
+ {
105
+ "type": "aws:cdk:analytics:method",
106
+ "data": {
107
+ "attachInlinePolicy": [
108
+ "*"
109
+ ]
110
+ }
111
+ },
112
+ {
113
+ "type": "aws:cdk:analytics:method",
114
+ "data": {
115
+ "addToPrincipalPolicy": [
116
+ {}
117
+ ]
118
+ }
119
+ },
120
+ {
121
+ "type": "aws:cdk:analytics:method",
122
+ "data": {
123
+ "attachInlinePolicy": [
124
+ "*"
125
+ ]
126
+ }
127
+ },
128
+ {
129
+ "type": "aws:cdk:analytics:method",
130
+ "data": {
131
+ "attachInlinePolicy": [
132
+ "*"
133
+ ]
134
+ }
135
+ }
136
+ ],
137
+ "/lamddb-use-existing-func/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole": [
138
+ {
139
+ "type": "aws:cdk:analytics:construct",
140
+ "data": "*"
141
+ }
142
+ ],
85
143
  "/lamddb-use-existing-func/LambdaFunctionServiceRole/Resource": [
86
144
  {
87
145
  "type": "aws:cdk:logicalId",
88
146
  "data": "LambdaFunctionServiceRole0C4CDE0B"
89
147
  }
90
148
  ],
149
+ "/lamddb-use-existing-func/LambdaFunctionServiceRole/DefaultPolicy": [
150
+ {
151
+ "type": "aws:cdk:analytics:construct",
152
+ "data": "*"
153
+ },
154
+ {
155
+ "type": "aws:cdk:analytics:method",
156
+ "data": {
157
+ "attachToRole": [
158
+ "*"
159
+ ]
160
+ }
161
+ },
162
+ {
163
+ "type": "aws:cdk:analytics:method",
164
+ "data": {
165
+ "attachToRole": [
166
+ "*"
167
+ ]
168
+ }
169
+ },
170
+ {
171
+ "type": "aws:cdk:analytics:method",
172
+ "data": {
173
+ "addStatements": [
174
+ {}
175
+ ]
176
+ }
177
+ }
178
+ ],
91
179
  "/lamddb-use-existing-func/LambdaFunctionServiceRole/DefaultPolicy/Resource": [
92
180
  {
93
181
  "type": "aws:cdk:logicalId",
94
182
  "data": "LambdaFunctionServiceRoleDefaultPolicy126C8897"
95
183
  }
96
184
  ],
185
+ "/lamddb-use-existing-func/LambdaFunction": [
186
+ {
187
+ "type": "aws:cdk:analytics:construct",
188
+ "data": {
189
+ "role": "*",
190
+ "tracing": "Active",
191
+ "runtime": "*",
192
+ "handler": "*",
193
+ "code": "*"
194
+ }
195
+ },
196
+ {
197
+ "type": "aws:cdk:analytics:method",
198
+ "data": {
199
+ "addEnvironment": [
200
+ "*",
201
+ "*",
202
+ {
203
+ "removeInEdge": true
204
+ }
205
+ ]
206
+ }
207
+ },
208
+ {
209
+ "type": "aws:cdk:analytics:method",
210
+ "data": {
211
+ "addEnvironment": [
212
+ "*",
213
+ "*"
214
+ ]
215
+ }
216
+ }
217
+ ],
97
218
  "/lamddb-use-existing-func/LambdaFunction/Resource": [
98
219
  {
99
220
  "type": "aws:cdk:logicalId",
100
221
  "data": "LambdaFunctionBF21E41F"
101
222
  }
102
223
  ],
224
+ "/lamddb-use-existing-func/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
225
+ {
226
+ "type": "aws:cdk:analytics:construct",
227
+ "data": {
228
+ "statements": "*"
229
+ }
230
+ },
231
+ {
232
+ "type": "aws:cdk:analytics:method",
233
+ "data": {
234
+ "addStatements": [
235
+ {}
236
+ ]
237
+ }
238
+ },
239
+ {
240
+ "type": "aws:cdk:analytics:method",
241
+ "data": {
242
+ "attachToRole": [
243
+ "*"
244
+ ]
245
+ }
246
+ },
247
+ {
248
+ "type": "aws:cdk:analytics:method",
249
+ "data": {
250
+ "attachToRole": [
251
+ "*"
252
+ ]
253
+ }
254
+ }
255
+ ],
256
+ "/lamddb-use-existing-func/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
257
+ {
258
+ "type": "aws:cdk:logicalId",
259
+ "data": "LambdaFunctioninlinePolicyAddedToExecutionRole007875684"
260
+ }
261
+ ],
262
+ "/lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable": [
263
+ {
264
+ "type": "aws:cdk:analytics:construct",
265
+ "data": {
266
+ "billingMode": "PAY_PER_REQUEST",
267
+ "encryption": "AWS_MANAGED",
268
+ "pointInTimeRecovery": true,
269
+ "partitionKey": {
270
+ "name": "*",
271
+ "type": "S"
272
+ }
273
+ }
274
+ }
275
+ ],
103
276
  "/lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable/Resource": [
104
277
  {
105
278
  "type": "aws:cdk:logicalId",
106
279
  "data": "testlambdadynamodbstackDynamoTable8138E93B"
107
280
  }
108
281
  ],
282
+ "/lamddb-use-existing-func/test-lambda-dynamodb-stack/DynamoTable/ScalingRole": [
283
+ {
284
+ "type": "aws:cdk:analytics:construct",
285
+ "data": "*"
286
+ }
287
+ ],
109
288
  "/lamddb-use-existing-func/BootstrapVersion": [
110
289
  {
111
290
  "type": "aws:cdk:logicalId",
@@ -127,5 +306,6 @@
127
306
  "file": "tree.json"
128
307
  }
129
308
  }
130
- }
309
+ },
310
+ "minimumCliVersion": "2.1006.0"
131
311
  }