@aws-solutions-constructs/aws-lambda-dynamodb 2.80.0 → 2.82.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 -4
  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 +31 -3
  16. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddbdeployFunctionWithExistingVpcIntegDefaultTestDeployAssertEE08E38E.assets.json +1 -1
  17. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/manifest.json +52 -13
  18. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/tree.json +1 -1675
  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 +29 -3
  23. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.assets.json +1 -1
  24. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/manifest.json +52 -13
  25. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/tree.json +1 -1213
  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 +1 @@
1
- {"version":"39.0.0"}
1
+ {"version":"40.0.0"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "39.0.0",
2
+ "version": "40.0.0",
3
3
  "testCases": {
4
4
  "lamddb-deployFunctionWithVpc/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "39.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200": {
5
5
  "source": {
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
  },
30
- "c0b4f76a86eb3b554f97c12724c7021b6cd2f2fd365bc772c7d1b1e8a2ef38a7": {
30
+ "cfe051f8115fcfe30ad558e8c8794cf1c7a0f1f8dd1e1d39c25ec8b7e040a1fe": {
31
31
  "source": {
32
32
  "path": "lamddb-deployFunctionWithVpc.template.json",
33
33
  "packaging": "file"
@@ -35,7 +35,7 @@
35
35
  "destinations": {
36
36
  "current_account-current_region": {
37
37
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
38
- "objectKey": "c0b4f76a86eb3b554f97c12724c7021b6cd2f2fd365bc772c7d1b1e8a2ef38a7.json",
38
+ "objectKey": "cfe051f8115fcfe30ad558e8c8794cf1c7a0f1f8dd1e1d39c25ec8b7e040a1fe.json",
39
39
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
40
40
  }
41
41
  }
@@ -74,9 +74,7 @@
74
74
  "ec2:CreateNetworkInterface",
75
75
  "ec2:DeleteNetworkInterface",
76
76
  "ec2:DescribeNetworkInterfaces",
77
- "ec2:UnassignPrivateIpAddresses",
78
- "xray:PutTelemetryRecords",
79
- "xray:PutTraceSegments"
77
+ "ec2:UnassignPrivateIpAddresses"
80
78
  ],
81
79
  "Effect": "Allow",
82
80
  "Resource": "*"
@@ -232,6 +230,34 @@
232
230
  }
233
231
  }
234
232
  },
233
+ "testlambdadynamodbstackLambdaFunctioninlinePolicyAddedToExecutionRole019E2DE85": {
234
+ "Type": "AWS::IAM::Policy",
235
+ "Properties": {
236
+ "PolicyDocument": {
237
+ "Statement": [
238
+ {
239
+ "Action": [
240
+ "xray:PutTelemetryRecords",
241
+ "xray:PutTraceSegments"
242
+ ],
243
+ "Effect": "Allow",
244
+ "Resource": "*"
245
+ }
246
+ ],
247
+ "Version": "2012-10-17"
248
+ },
249
+ "PolicyName": "testlambdadynamodbstackLambdaFunctioninlinePolicyAddedToExecutionRole019E2DE85",
250
+ "Roles": [
251
+ {
252
+ "Ref": "testlambdadynamodbstackLambdaFunctionServiceRole758347A1"
253
+ }
254
+ ]
255
+ },
256
+ "DependsOn": [
257
+ "VpcisolatedSubnet1RouteTableAssociationD259E31A",
258
+ "VpcisolatedSubnet2RouteTableAssociation25A4716F"
259
+ ]
260
+ },
235
261
  "testlambdadynamodbstackDynamoTable8138E93B": {
236
262
  "Type": "AWS::DynamoDB::Table",
237
263
  "Properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "39.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "40.0.0",
2
+ "version": "42.0.0",
3
3
  "artifacts": {
4
4
  "lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.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}/c0b4f76a86eb3b554f97c12724c7021b6cd2f2fd365bc772c7d1b1e8a2ef38a7.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cfe051f8115fcfe30ad558e8c8794cf1c7a0f1f8dd1e1d39c25ec8b7e040a1fe.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -128,8 +128,16 @@
128
128
  {
129
129
  "type": "aws:cdk:analytics:method",
130
130
  "data": {
131
- "addToPrincipalPolicy": [
132
- {}
131
+ "attachInlinePolicy": [
132
+ "*"
133
+ ]
134
+ }
135
+ },
136
+ {
137
+ "type": "aws:cdk:analytics:method",
138
+ "data": {
139
+ "attachInlinePolicy": [
140
+ "*"
133
141
  ]
134
142
  }
135
143
  },
@@ -183,14 +191,6 @@
183
191
  ]
184
192
  }
185
193
  },
186
- {
187
- "type": "aws:cdk:analytics:method",
188
- "data": {
189
- "addStatements": [
190
- {}
191
- ]
192
- }
193
- },
194
194
  {
195
195
  "type": "aws:cdk:analytics:method",
196
196
  "data": {
@@ -264,6 +264,44 @@
264
264
  "data": "testlambdadynamodbstackLambdaFunction5DDB3E8D"
265
265
  }
266
266
  ],
267
+ "/lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
268
+ {
269
+ "type": "aws:cdk:analytics:construct",
270
+ "data": {
271
+ "statements": "*"
272
+ }
273
+ },
274
+ {
275
+ "type": "aws:cdk:analytics:method",
276
+ "data": {
277
+ "addStatements": [
278
+ {}
279
+ ]
280
+ }
281
+ },
282
+ {
283
+ "type": "aws:cdk:analytics:method",
284
+ "data": {
285
+ "attachToRole": [
286
+ "*"
287
+ ]
288
+ }
289
+ },
290
+ {
291
+ "type": "aws:cdk:analytics:method",
292
+ "data": {
293
+ "attachToRole": [
294
+ "*"
295
+ ]
296
+ }
297
+ }
298
+ ],
299
+ "/lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
300
+ {
301
+ "type": "aws:cdk:logicalId",
302
+ "data": "testlambdadynamodbstackLambdaFunctioninlinePolicyAddedToExecutionRole019E2DE85"
303
+ }
304
+ ],
267
305
  "/lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/DynamoTable": [
268
306
  {
269
307
  "type": "aws:cdk:analytics:construct",
@@ -597,5 +635,6 @@
597
635
  "file": "tree.json"
598
636
  }
599
637
  }
600
- }
638
+ },
639
+ "minimumCliVersion": "2.1006.0"
601
640
  }