@aws-solutions-constructs/aws-apigateway-dynamodb 2.50.0 → 2.52.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 (65) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +50 -5
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +12 -11
  6. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js +5 -2
  7. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/apiddb-additional-request-templates-custom-resource-name.assets.json +19 -0
  8. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/apiddb-additional-request-templates-custom-resource-name.template.json +426 -0
  9. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/apiddbadditionalrequesttemplatescustomresourcenameIntegDefaultTestDeployAssertABD5B2B6.assets.json +19 -0
  10. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/apiddbadditionalrequesttemplatescustomresourcenameIntegDefaultTestDeployAssertABD5B2B6.template.json +36 -0
  11. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/cdk.out +1 -0
  12. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/integ.json +12 -0
  13. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/manifest.json +185 -0
  14. package/test/integ.apiddb-additional-request-templates-custom-resource-name.js.snapshot/tree.json +684 -0
  15. package/test/integ.apiddb-additional-request-templates.js +5 -2
  16. package/test/integ.apiddb-additional-request-templates.js.snapshot/apiddb-additional-request-templates.assets.json +19 -0
  17. package/test/integ.apiddb-additional-request-templates.js.snapshot/apiddb-additional-request-templates.template.json +418 -0
  18. package/test/integ.apiddb-additional-request-templates.js.snapshot/apiddbadditionalrequesttemplatesIntegDefaultTestDeployAssert01278153.assets.json +19 -0
  19. package/test/integ.apiddb-additional-request-templates.js.snapshot/apiddbadditionalrequesttemplatesIntegDefaultTestDeployAssert01278153.template.json +36 -0
  20. package/test/integ.apiddb-additional-request-templates.js.snapshot/cdk.out +1 -0
  21. package/test/integ.apiddb-additional-request-templates.js.snapshot/integ.json +12 -0
  22. package/test/integ.apiddb-additional-request-templates.js.snapshot/manifest.json +185 -0
  23. package/test/integ.apiddb-additional-request-templates.js.snapshot/tree.json +676 -0
  24. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js +5 -2
  25. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/apiddb-apigateway-dynamodb-CRUD.assets.json +19 -0
  26. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/apiddb-apigateway-dynamodb-CRUD.template.json +666 -0
  27. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/apiddbapigatewaydynamodbCRUDIntegDefaultTestDeployAssert492DC8FE.assets.json +19 -0
  28. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/apiddbapigatewaydynamodbCRUDIntegDefaultTestDeployAssert492DC8FE.template.json +36 -0
  29. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/cdk.out +1 -0
  30. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/integ.json +12 -0
  31. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/manifest.json +203 -0
  32. package/test/integ.apiddb-apigateway-dynamodb-CRUD.js.snapshot/tree.json +975 -0
  33. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js +5 -2
  34. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/apiddb-apigateway-dynamodb-existing-table.assets.json +19 -0
  35. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/apiddb-apigateway-dynamodb-existing-table.template.json +406 -0
  36. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/apiddbapigatewaydynamodbexistingtableIntegDefaultTestDeployAssertD38D4AB2.assets.json +19 -0
  37. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/apiddbapigatewaydynamodbexistingtableIntegDefaultTestDeployAssertD38D4AB2.template.json +36 -0
  38. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/cdk.out +1 -0
  39. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/integ.json +12 -0
  40. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/manifest.json +185 -0
  41. package/test/integ.apiddb-apigateway-dynamodb-existing-table.js.snapshot/tree.json +664 -0
  42. package/test/integ.apiddb-custom-integration-responses.js +5 -2
  43. package/test/integ.apiddb-custom-integration-responses.js.snapshot/apiddb-custom-integration-responses.assets.json +19 -0
  44. package/test/integ.apiddb-custom-integration-responses.js.snapshot/apiddb-custom-integration-responses.template.json +406 -0
  45. package/test/integ.apiddb-custom-integration-responses.js.snapshot/apiddbcustomintegrationresponsesIntegDefaultTestDeployAssert9F4582C4.assets.json +19 -0
  46. package/test/integ.apiddb-custom-integration-responses.js.snapshot/apiddbcustomintegrationresponsesIntegDefaultTestDeployAssert9F4582C4.template.json +36 -0
  47. package/test/integ.apiddb-custom-integration-responses.js.snapshot/cdk.out +1 -0
  48. package/test/integ.apiddb-custom-integration-responses.js.snapshot/integ.json +12 -0
  49. package/test/integ.apiddb-custom-integration-responses.js.snapshot/manifest.json +185 -0
  50. package/test/integ.apiddb-custom-integration-responses.js.snapshot/tree.json +664 -0
  51. package/test/integ.apiddb-no-arguments.js +5 -2
  52. package/test/integ.apiddb-no-arguments.js.snapshot/apiddb-no-arguments.assets.json +19 -0
  53. package/test/integ.apiddb-no-arguments.js.snapshot/apiddb-no-arguments.template.json +406 -0
  54. package/test/integ.apiddb-no-arguments.js.snapshot/apiddbnoargumentsIntegDefaultTestDeployAssert79BAC49F.assets.json +19 -0
  55. package/test/integ.apiddb-no-arguments.js.snapshot/apiddbnoargumentsIntegDefaultTestDeployAssert79BAC49F.template.json +36 -0
  56. package/test/integ.apiddb-no-arguments.js.snapshot/cdk.out +1 -0
  57. package/test/integ.apiddb-no-arguments.js.snapshot/integ.json +12 -0
  58. package/test/integ.apiddb-no-arguments.js.snapshot/manifest.json +185 -0
  59. package/test/integ.apiddb-no-arguments.js.snapshot/tree.json +664 -0
  60. package/test/integ.apiddb-additional-request-templates-custom-resource-name.expected.json +0 -426
  61. package/test/integ.apiddb-additional-request-templates.expected.json +0 -418
  62. package/test/integ.apiddb-apigateway-dynamodb-CRUD.expected.json +0 -691
  63. package/test/integ.apiddb-apigateway-dynamodb-existing-table.expected.json +0 -406
  64. package/test/integ.apiddb-custom-integration-responses.expected.json +0 -406
  65. package/test/integ.apiddb-no-arguments.expected.json +0 -406
@@ -0,0 +1,664 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "apiddb-no-arguments": {
8
+ "id": "apiddb-no-arguments",
9
+ "path": "apiddb-no-arguments",
10
+ "children": {
11
+ "test-api-gateway-dynamodb-default": {
12
+ "id": "test-api-gateway-dynamodb-default",
13
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default",
14
+ "children": {
15
+ "DynamoTable": {
16
+ "id": "DynamoTable",
17
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/DynamoTable",
18
+ "children": {
19
+ "Resource": {
20
+ "id": "Resource",
21
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/DynamoTable/Resource",
22
+ "attributes": {
23
+ "aws:cdk:cloudformation:type": "AWS::DynamoDB::Table",
24
+ "aws:cdk:cloudformation:props": {
25
+ "attributeDefinitions": [
26
+ {
27
+ "attributeName": "id",
28
+ "attributeType": "S"
29
+ }
30
+ ],
31
+ "billingMode": "PAY_PER_REQUEST",
32
+ "keySchema": [
33
+ {
34
+ "attributeName": "id",
35
+ "keyType": "HASH"
36
+ }
37
+ ],
38
+ "pointInTimeRecoverySpecification": {
39
+ "pointInTimeRecoveryEnabled": true
40
+ },
41
+ "sseSpecification": {
42
+ "sseEnabled": true
43
+ }
44
+ }
45
+ },
46
+ "constructInfo": {
47
+ "fqn": "aws-cdk-lib.aws_dynamodb.CfnTable",
48
+ "version": "2.118.0"
49
+ }
50
+ },
51
+ "ScalingRole": {
52
+ "id": "ScalingRole",
53
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/DynamoTable/ScalingRole",
54
+ "constructInfo": {
55
+ "fqn": "aws-cdk-lib.Resource",
56
+ "version": "2.118.0"
57
+ }
58
+ }
59
+ },
60
+ "constructInfo": {
61
+ "fqn": "aws-cdk-lib.aws_dynamodb.Table",
62
+ "version": "2.118.0"
63
+ }
64
+ },
65
+ "ApiAccessLogGroup": {
66
+ "id": "ApiAccessLogGroup",
67
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/ApiAccessLogGroup",
68
+ "children": {
69
+ "Resource": {
70
+ "id": "Resource",
71
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/ApiAccessLogGroup/Resource",
72
+ "attributes": {
73
+ "aws:cdk:cloudformation:type": "AWS::Logs::LogGroup",
74
+ "aws:cdk:cloudformation:props": {}
75
+ },
76
+ "constructInfo": {
77
+ "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
78
+ "version": "2.118.0"
79
+ }
80
+ }
81
+ },
82
+ "constructInfo": {
83
+ "fqn": "aws-cdk-lib.aws_logs.LogGroup",
84
+ "version": "2.118.0"
85
+ }
86
+ },
87
+ "RestApi": {
88
+ "id": "RestApi",
89
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi",
90
+ "children": {
91
+ "Resource": {
92
+ "id": "Resource",
93
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Resource",
94
+ "attributes": {
95
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::RestApi",
96
+ "aws:cdk:cloudformation:props": {
97
+ "endpointConfiguration": {
98
+ "types": [
99
+ "EDGE"
100
+ ]
101
+ },
102
+ "name": "RestApi"
103
+ }
104
+ },
105
+ "constructInfo": {
106
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnRestApi",
107
+ "version": "2.118.0"
108
+ }
109
+ },
110
+ "Deployment": {
111
+ "id": "Deployment",
112
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Deployment",
113
+ "children": {
114
+ "Resource": {
115
+ "id": "Resource",
116
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Deployment/Resource",
117
+ "attributes": {
118
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Deployment",
119
+ "aws:cdk:cloudformation:props": {
120
+ "description": "Automatically created by the RestApi construct",
121
+ "restApiId": {
122
+ "Ref": "testapigatewaydynamodbdefaultRestApi9102FDF9"
123
+ }
124
+ }
125
+ },
126
+ "constructInfo": {
127
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnDeployment",
128
+ "version": "2.118.0"
129
+ }
130
+ }
131
+ },
132
+ "constructInfo": {
133
+ "fqn": "aws-cdk-lib.aws_apigateway.Deployment",
134
+ "version": "2.118.0"
135
+ }
136
+ },
137
+ "DeploymentStage.prod": {
138
+ "id": "DeploymentStage.prod",
139
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/DeploymentStage.prod",
140
+ "children": {
141
+ "Resource": {
142
+ "id": "Resource",
143
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/DeploymentStage.prod/Resource",
144
+ "attributes": {
145
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Stage",
146
+ "aws:cdk:cloudformation:props": {
147
+ "accessLogSetting": {
148
+ "destinationArn": {
149
+ "Fn::GetAtt": [
150
+ "testapigatewaydynamodbdefaultApiAccessLogGroup0192183A",
151
+ "Arn"
152
+ ]
153
+ },
154
+ "format": "{\"requestId\":\"$context.requestId\",\"ip\":\"$context.identity.sourceIp\",\"user\":\"$context.identity.user\",\"caller\":\"$context.identity.caller\",\"requestTime\":\"$context.requestTime\",\"httpMethod\":\"$context.httpMethod\",\"resourcePath\":\"$context.resourcePath\",\"status\":\"$context.status\",\"protocol\":\"$context.protocol\",\"responseLength\":\"$context.responseLength\"}"
155
+ },
156
+ "deploymentId": {
157
+ "Ref": "testapigatewaydynamodbdefaultRestApiDeploymentFAC726F3818e0ad130f9a49152a4afbd35ada7b6"
158
+ },
159
+ "methodSettings": [
160
+ {
161
+ "httpMethod": "*",
162
+ "resourcePath": "/*",
163
+ "dataTraceEnabled": false,
164
+ "loggingLevel": "INFO"
165
+ }
166
+ ],
167
+ "restApiId": {
168
+ "Ref": "testapigatewaydynamodbdefaultRestApi9102FDF9"
169
+ },
170
+ "stageName": "prod",
171
+ "tracingEnabled": true
172
+ }
173
+ },
174
+ "constructInfo": {
175
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnStage",
176
+ "version": "2.118.0"
177
+ }
178
+ }
179
+ },
180
+ "constructInfo": {
181
+ "fqn": "aws-cdk-lib.aws_apigateway.Stage",
182
+ "version": "2.118.0"
183
+ }
184
+ },
185
+ "Endpoint": {
186
+ "id": "Endpoint",
187
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Endpoint",
188
+ "constructInfo": {
189
+ "fqn": "aws-cdk-lib.CfnOutput",
190
+ "version": "2.118.0"
191
+ }
192
+ },
193
+ "Default": {
194
+ "id": "Default",
195
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Default",
196
+ "children": {
197
+ "{id}": {
198
+ "id": "{id}",
199
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Default/{id}",
200
+ "children": {
201
+ "Resource": {
202
+ "id": "Resource",
203
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Default/{id}/Resource",
204
+ "attributes": {
205
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Resource",
206
+ "aws:cdk:cloudformation:props": {
207
+ "parentId": {
208
+ "Fn::GetAtt": [
209
+ "testapigatewaydynamodbdefaultRestApi9102FDF9",
210
+ "RootResourceId"
211
+ ]
212
+ },
213
+ "pathPart": "{id}",
214
+ "restApiId": {
215
+ "Ref": "testapigatewaydynamodbdefaultRestApi9102FDF9"
216
+ }
217
+ }
218
+ },
219
+ "constructInfo": {
220
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnResource",
221
+ "version": "2.118.0"
222
+ }
223
+ },
224
+ "GET": {
225
+ "id": "GET",
226
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Default/{id}/GET",
227
+ "children": {
228
+ "Resource": {
229
+ "id": "Resource",
230
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/Default/{id}/GET/Resource",
231
+ "attributes": {
232
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Method",
233
+ "aws:cdk:cloudformation:props": {
234
+ "authorizationType": "AWS_IAM",
235
+ "httpMethod": "GET",
236
+ "integration": {
237
+ "type": "AWS",
238
+ "uri": {
239
+ "Fn::Join": [
240
+ "",
241
+ [
242
+ "arn:",
243
+ {
244
+ "Ref": "AWS::Partition"
245
+ },
246
+ ":apigateway:",
247
+ {
248
+ "Ref": "AWS::Region"
249
+ },
250
+ ":dynamodb:action/Query"
251
+ ]
252
+ ]
253
+ },
254
+ "integrationHttpMethod": "POST",
255
+ "requestParameters": {
256
+ "integration.request.header.Content-Type": "'application/json'"
257
+ },
258
+ "requestTemplates": {
259
+ "application/json": {
260
+ "Fn::Join": [
261
+ "",
262
+ [
263
+ "{ \"TableName\": \"",
264
+ {
265
+ "Ref": "testapigatewaydynamodbdefaultDynamoTable0720D92C"
266
+ },
267
+ "\", \"KeyConditionExpression\": \"id = :v1\", \"ExpressionAttributeValues\": { \":v1\": { \"S\": \"$input.params('id')\" } } }"
268
+ ]
269
+ ]
270
+ }
271
+ },
272
+ "passthroughBehavior": "NEVER",
273
+ "integrationResponses": [
274
+ {
275
+ "statusCode": "200"
276
+ },
277
+ {
278
+ "statusCode": "500",
279
+ "responseTemplates": {
280
+ "text/html": "Error"
281
+ },
282
+ "selectionPattern": "500"
283
+ }
284
+ ],
285
+ "credentials": {
286
+ "Fn::GetAtt": [
287
+ "testapigatewaydynamodbdefaultapigatewayrole0CDF008A",
288
+ "Arn"
289
+ ]
290
+ }
291
+ },
292
+ "methodResponses": [
293
+ {
294
+ "statusCode": "200",
295
+ "responseParameters": {
296
+ "method.response.header.Content-Type": true
297
+ }
298
+ },
299
+ {
300
+ "statusCode": "500",
301
+ "responseParameters": {
302
+ "method.response.header.Content-Type": true
303
+ }
304
+ }
305
+ ],
306
+ "resourceId": {
307
+ "Ref": "testapigatewaydynamodbdefaultRestApiidFD6A9E91"
308
+ },
309
+ "restApiId": {
310
+ "Ref": "testapigatewaydynamodbdefaultRestApi9102FDF9"
311
+ }
312
+ }
313
+ },
314
+ "constructInfo": {
315
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnMethod",
316
+ "version": "2.118.0"
317
+ }
318
+ }
319
+ },
320
+ "constructInfo": {
321
+ "fqn": "aws-cdk-lib.aws_apigateway.Method",
322
+ "version": "2.118.0"
323
+ }
324
+ }
325
+ },
326
+ "constructInfo": {
327
+ "fqn": "aws-cdk-lib.aws_apigateway.Resource",
328
+ "version": "2.118.0"
329
+ }
330
+ }
331
+ },
332
+ "constructInfo": {
333
+ "fqn": "aws-cdk-lib.aws_apigateway.ResourceBase",
334
+ "version": "2.118.0"
335
+ }
336
+ },
337
+ "UsagePlan": {
338
+ "id": "UsagePlan",
339
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/UsagePlan",
340
+ "children": {
341
+ "Resource": {
342
+ "id": "Resource",
343
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/RestApi/UsagePlan/Resource",
344
+ "attributes": {
345
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::UsagePlan",
346
+ "aws:cdk:cloudformation:props": {
347
+ "apiStages": [
348
+ {
349
+ "apiId": {
350
+ "Ref": "testapigatewaydynamodbdefaultRestApi9102FDF9"
351
+ },
352
+ "stage": {
353
+ "Ref": "testapigatewaydynamodbdefaultRestApiDeploymentStageprod7834D304"
354
+ },
355
+ "throttle": {}
356
+ }
357
+ ]
358
+ }
359
+ },
360
+ "constructInfo": {
361
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnUsagePlan",
362
+ "version": "2.118.0"
363
+ }
364
+ }
365
+ },
366
+ "constructInfo": {
367
+ "fqn": "aws-cdk-lib.aws_apigateway.UsagePlan",
368
+ "version": "2.118.0"
369
+ }
370
+ }
371
+ },
372
+ "constructInfo": {
373
+ "fqn": "aws-cdk-lib.aws_apigateway.RestApi",
374
+ "version": "2.118.0"
375
+ }
376
+ },
377
+ "LambdaRestApiCloudWatchRole": {
378
+ "id": "LambdaRestApiCloudWatchRole",
379
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/LambdaRestApiCloudWatchRole",
380
+ "children": {
381
+ "ImportLambdaRestApiCloudWatchRole": {
382
+ "id": "ImportLambdaRestApiCloudWatchRole",
383
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/LambdaRestApiCloudWatchRole/ImportLambdaRestApiCloudWatchRole",
384
+ "constructInfo": {
385
+ "fqn": "aws-cdk-lib.Resource",
386
+ "version": "2.118.0"
387
+ }
388
+ },
389
+ "Resource": {
390
+ "id": "Resource",
391
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/LambdaRestApiCloudWatchRole/Resource",
392
+ "attributes": {
393
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
394
+ "aws:cdk:cloudformation:props": {
395
+ "assumeRolePolicyDocument": {
396
+ "Statement": [
397
+ {
398
+ "Action": "sts:AssumeRole",
399
+ "Effect": "Allow",
400
+ "Principal": {
401
+ "Service": "apigateway.amazonaws.com"
402
+ }
403
+ }
404
+ ],
405
+ "Version": "2012-10-17"
406
+ },
407
+ "policies": [
408
+ {
409
+ "policyName": "LambdaRestApiCloudWatchRolePolicy",
410
+ "policyDocument": {
411
+ "Statement": [
412
+ {
413
+ "Action": [
414
+ "logs:CreateLogGroup",
415
+ "logs:CreateLogStream",
416
+ "logs:DescribeLogGroups",
417
+ "logs:DescribeLogStreams",
418
+ "logs:FilterLogEvents",
419
+ "logs:GetLogEvents",
420
+ "logs:PutLogEvents"
421
+ ],
422
+ "Effect": "Allow",
423
+ "Resource": {
424
+ "Fn::Join": [
425
+ "",
426
+ [
427
+ "arn:",
428
+ {
429
+ "Ref": "AWS::Partition"
430
+ },
431
+ ":logs:",
432
+ {
433
+ "Ref": "AWS::Region"
434
+ },
435
+ ":",
436
+ {
437
+ "Ref": "AWS::AccountId"
438
+ },
439
+ ":*"
440
+ ]
441
+ ]
442
+ }
443
+ }
444
+ ],
445
+ "Version": "2012-10-17"
446
+ }
447
+ }
448
+ ]
449
+ }
450
+ },
451
+ "constructInfo": {
452
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
453
+ "version": "2.118.0"
454
+ }
455
+ }
456
+ },
457
+ "constructInfo": {
458
+ "fqn": "aws-cdk-lib.aws_iam.Role",
459
+ "version": "2.118.0"
460
+ }
461
+ },
462
+ "LambdaRestApiAccount": {
463
+ "id": "LambdaRestApiAccount",
464
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/LambdaRestApiAccount",
465
+ "attributes": {
466
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Account",
467
+ "aws:cdk:cloudformation:props": {
468
+ "cloudWatchRoleArn": {
469
+ "Fn::GetAtt": [
470
+ "testapigatewaydynamodbdefaultLambdaRestApiCloudWatchRoleEF1FBFD7",
471
+ "Arn"
472
+ ]
473
+ }
474
+ }
475
+ },
476
+ "constructInfo": {
477
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnAccount",
478
+ "version": "2.118.0"
479
+ }
480
+ },
481
+ "api-gateway-role": {
482
+ "id": "api-gateway-role",
483
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/api-gateway-role",
484
+ "children": {
485
+ "Importapi-gateway-role": {
486
+ "id": "Importapi-gateway-role",
487
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/api-gateway-role/Importapi-gateway-role",
488
+ "constructInfo": {
489
+ "fqn": "aws-cdk-lib.Resource",
490
+ "version": "2.118.0"
491
+ }
492
+ },
493
+ "Resource": {
494
+ "id": "Resource",
495
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/api-gateway-role/Resource",
496
+ "attributes": {
497
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
498
+ "aws:cdk:cloudformation:props": {
499
+ "assumeRolePolicyDocument": {
500
+ "Statement": [
501
+ {
502
+ "Action": "sts:AssumeRole",
503
+ "Effect": "Allow",
504
+ "Principal": {
505
+ "Service": "apigateway.amazonaws.com"
506
+ }
507
+ }
508
+ ],
509
+ "Version": "2012-10-17"
510
+ }
511
+ }
512
+ },
513
+ "constructInfo": {
514
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
515
+ "version": "2.118.0"
516
+ }
517
+ },
518
+ "DefaultPolicy": {
519
+ "id": "DefaultPolicy",
520
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/api-gateway-role/DefaultPolicy",
521
+ "children": {
522
+ "Resource": {
523
+ "id": "Resource",
524
+ "path": "apiddb-no-arguments/test-api-gateway-dynamodb-default/api-gateway-role/DefaultPolicy/Resource",
525
+ "attributes": {
526
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
527
+ "aws:cdk:cloudformation:props": {
528
+ "policyDocument": {
529
+ "Statement": [
530
+ {
531
+ "Action": "dynamodb:Query",
532
+ "Effect": "Allow",
533
+ "Resource": {
534
+ "Fn::GetAtt": [
535
+ "testapigatewaydynamodbdefaultDynamoTable0720D92C",
536
+ "Arn"
537
+ ]
538
+ }
539
+ }
540
+ ],
541
+ "Version": "2012-10-17"
542
+ },
543
+ "policyName": "testapigatewaydynamodbdefaultapigatewayroleDefaultPolicyE0B5E59D",
544
+ "roles": [
545
+ {
546
+ "Ref": "testapigatewaydynamodbdefaultapigatewayrole0CDF008A"
547
+ }
548
+ ]
549
+ }
550
+ },
551
+ "constructInfo": {
552
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
553
+ "version": "2.118.0"
554
+ }
555
+ }
556
+ },
557
+ "constructInfo": {
558
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
559
+ "version": "2.118.0"
560
+ }
561
+ }
562
+ },
563
+ "constructInfo": {
564
+ "fqn": "aws-cdk-lib.aws_iam.Role",
565
+ "version": "2.118.0"
566
+ }
567
+ }
568
+ },
569
+ "constructInfo": {
570
+ "fqn": "@aws-solutions-constructs/aws-apigateway-dynamodb.ApiGatewayToDynamoDB",
571
+ "version": "2.50.0"
572
+ }
573
+ },
574
+ "Integ": {
575
+ "id": "Integ",
576
+ "path": "apiddb-no-arguments/Integ",
577
+ "children": {
578
+ "DefaultTest": {
579
+ "id": "DefaultTest",
580
+ "path": "apiddb-no-arguments/Integ/DefaultTest",
581
+ "children": {
582
+ "Default": {
583
+ "id": "Default",
584
+ "path": "apiddb-no-arguments/Integ/DefaultTest/Default",
585
+ "constructInfo": {
586
+ "fqn": "constructs.Construct",
587
+ "version": "10.0.0"
588
+ }
589
+ },
590
+ "DeployAssert": {
591
+ "id": "DeployAssert",
592
+ "path": "apiddb-no-arguments/Integ/DefaultTest/DeployAssert",
593
+ "children": {
594
+ "BootstrapVersion": {
595
+ "id": "BootstrapVersion",
596
+ "path": "apiddb-no-arguments/Integ/DefaultTest/DeployAssert/BootstrapVersion",
597
+ "constructInfo": {
598
+ "fqn": "aws-cdk-lib.CfnParameter",
599
+ "version": "2.118.0"
600
+ }
601
+ },
602
+ "CheckBootstrapVersion": {
603
+ "id": "CheckBootstrapVersion",
604
+ "path": "apiddb-no-arguments/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
605
+ "constructInfo": {
606
+ "fqn": "aws-cdk-lib.CfnRule",
607
+ "version": "2.118.0"
608
+ }
609
+ }
610
+ },
611
+ "constructInfo": {
612
+ "fqn": "aws-cdk-lib.Stack",
613
+ "version": "2.118.0"
614
+ }
615
+ }
616
+ },
617
+ "constructInfo": {
618
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
619
+ "version": "2.118.0-alpha.0"
620
+ }
621
+ }
622
+ },
623
+ "constructInfo": {
624
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
625
+ "version": "2.118.0-alpha.0"
626
+ }
627
+ },
628
+ "BootstrapVersion": {
629
+ "id": "BootstrapVersion",
630
+ "path": "apiddb-no-arguments/BootstrapVersion",
631
+ "constructInfo": {
632
+ "fqn": "aws-cdk-lib.CfnParameter",
633
+ "version": "2.118.0"
634
+ }
635
+ },
636
+ "CheckBootstrapVersion": {
637
+ "id": "CheckBootstrapVersion",
638
+ "path": "apiddb-no-arguments/CheckBootstrapVersion",
639
+ "constructInfo": {
640
+ "fqn": "aws-cdk-lib.CfnRule",
641
+ "version": "2.118.0"
642
+ }
643
+ }
644
+ },
645
+ "constructInfo": {
646
+ "fqn": "aws-cdk-lib.Stack",
647
+ "version": "2.118.0"
648
+ }
649
+ },
650
+ "Tree": {
651
+ "id": "Tree",
652
+ "path": "Tree",
653
+ "constructInfo": {
654
+ "fqn": "constructs.Construct",
655
+ "version": "10.0.0"
656
+ }
657
+ }
658
+ },
659
+ "constructInfo": {
660
+ "fqn": "aws-cdk-lib.App",
661
+ "version": "2.118.0"
662
+ }
663
+ }
664
+ }