@aws-solutions-constructs/aws-apigateway-dynamodb 2.51.0 → 2.52.1

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 +49 -4
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +9 -8
  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,676 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "apiddb-additional-request-templates": {
8
+ "id": "apiddb-additional-request-templates",
9
+ "path": "apiddb-additional-request-templates",
10
+ "children": {
11
+ "existing-table": {
12
+ "id": "existing-table",
13
+ "path": "apiddb-additional-request-templates/existing-table",
14
+ "children": {
15
+ "Resource": {
16
+ "id": "Resource",
17
+ "path": "apiddb-additional-request-templates/existing-table/Resource",
18
+ "attributes": {
19
+ "aws:cdk:cloudformation:type": "AWS::DynamoDB::Table",
20
+ "aws:cdk:cloudformation:props": {
21
+ "attributeDefinitions": [
22
+ {
23
+ "attributeName": "id",
24
+ "attributeType": "S"
25
+ }
26
+ ],
27
+ "billingMode": "PAY_PER_REQUEST",
28
+ "keySchema": [
29
+ {
30
+ "attributeName": "id",
31
+ "keyType": "HASH"
32
+ }
33
+ ],
34
+ "pointInTimeRecoverySpecification": {
35
+ "pointInTimeRecoveryEnabled": true
36
+ },
37
+ "sseSpecification": {
38
+ "sseEnabled": true
39
+ }
40
+ }
41
+ },
42
+ "constructInfo": {
43
+ "fqn": "aws-cdk-lib.aws_dynamodb.CfnTable",
44
+ "version": "2.118.0"
45
+ }
46
+ },
47
+ "ScalingRole": {
48
+ "id": "ScalingRole",
49
+ "path": "apiddb-additional-request-templates/existing-table/ScalingRole",
50
+ "constructInfo": {
51
+ "fqn": "aws-cdk-lib.Resource",
52
+ "version": "2.118.0"
53
+ }
54
+ }
55
+ },
56
+ "constructInfo": {
57
+ "fqn": "aws-cdk-lib.aws_dynamodb.Table",
58
+ "version": "2.118.0"
59
+ }
60
+ },
61
+ "test-api-gateway-dynamodb-additional-request-templates": {
62
+ "id": "test-api-gateway-dynamodb-additional-request-templates",
63
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates",
64
+ "children": {
65
+ "ApiAccessLogGroup": {
66
+ "id": "ApiAccessLogGroup",
67
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/ApiAccessLogGroup",
68
+ "children": {
69
+ "Resource": {
70
+ "id": "Resource",
71
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/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-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi",
90
+ "children": {
91
+ "Resource": {
92
+ "id": "Resource",
93
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/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-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi/Deployment",
113
+ "children": {
114
+ "Resource": {
115
+ "id": "Resource",
116
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/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": "testapigatewaydynamodbadditionalrequesttemplatesRestApi03F6484C"
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-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi/DeploymentStage.prod",
140
+ "children": {
141
+ "Resource": {
142
+ "id": "Resource",
143
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/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
+ "testapigatewaydynamodbadditionalrequesttemplatesApiAccessLogGroupAF75D750",
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": "testapigatewaydynamodbadditionalrequesttemplatesRestApiDeployment0AE7C47741477f52c0bb6da128d2999e75c543fc"
158
+ },
159
+ "methodSettings": [
160
+ {
161
+ "httpMethod": "*",
162
+ "resourcePath": "/*",
163
+ "dataTraceEnabled": false,
164
+ "loggingLevel": "INFO"
165
+ }
166
+ ],
167
+ "restApiId": {
168
+ "Ref": "testapigatewaydynamodbadditionalrequesttemplatesRestApi03F6484C"
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-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/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-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi/Default",
196
+ "children": {
197
+ "{id}": {
198
+ "id": "{id}",
199
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi/Default/{id}",
200
+ "children": {
201
+ "Resource": {
202
+ "id": "Resource",
203
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/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
+ "testapigatewaydynamodbadditionalrequesttemplatesRestApi03F6484C",
210
+ "RootResourceId"
211
+ ]
212
+ },
213
+ "pathPart": "{id}",
214
+ "restApiId": {
215
+ "Ref": "testapigatewaydynamodbadditionalrequesttemplatesRestApi03F6484C"
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-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi/Default/{id}/GET",
227
+ "children": {
228
+ "Resource": {
229
+ "id": "Resource",
230
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/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": "existingtableE51CCC93"
266
+ },
267
+ "\", \"KeyConditionExpression\": \"id = :v1\", \"ExpressionAttributeValues\": { \":v1\": { \"S\": \"$input.params('id')\" } } }"
268
+ ]
269
+ ]
270
+ },
271
+ "text/plain": {
272
+ "Fn::Join": [
273
+ "",
274
+ [
275
+ "{ \"TableName\": \"",
276
+ {
277
+ "Ref": "existingtableE51CCC93"
278
+ },
279
+ "\", \"KeyConditionExpression\": \"id = :v1\", \"ExpressionAttributeValues\": { \":v1\": { \"S\": \"$input.params('id')\" } } }"
280
+ ]
281
+ ]
282
+ }
283
+ },
284
+ "passthroughBehavior": "NEVER",
285
+ "integrationResponses": [
286
+ {
287
+ "statusCode": "200"
288
+ },
289
+ {
290
+ "statusCode": "500",
291
+ "responseTemplates": {
292
+ "text/html": "Error"
293
+ },
294
+ "selectionPattern": "500"
295
+ }
296
+ ],
297
+ "credentials": {
298
+ "Fn::GetAtt": [
299
+ "testapigatewaydynamodbadditionalrequesttemplatesapigatewayroleFDAECAC6",
300
+ "Arn"
301
+ ]
302
+ }
303
+ },
304
+ "methodResponses": [
305
+ {
306
+ "statusCode": "200",
307
+ "responseParameters": {
308
+ "method.response.header.Content-Type": true
309
+ }
310
+ },
311
+ {
312
+ "statusCode": "500",
313
+ "responseParameters": {
314
+ "method.response.header.Content-Type": true
315
+ }
316
+ }
317
+ ],
318
+ "resourceId": {
319
+ "Ref": "testapigatewaydynamodbadditionalrequesttemplatesRestApiidA77CCE90"
320
+ },
321
+ "restApiId": {
322
+ "Ref": "testapigatewaydynamodbadditionalrequesttemplatesRestApi03F6484C"
323
+ }
324
+ }
325
+ },
326
+ "constructInfo": {
327
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnMethod",
328
+ "version": "2.118.0"
329
+ }
330
+ }
331
+ },
332
+ "constructInfo": {
333
+ "fqn": "aws-cdk-lib.aws_apigateway.Method",
334
+ "version": "2.118.0"
335
+ }
336
+ }
337
+ },
338
+ "constructInfo": {
339
+ "fqn": "aws-cdk-lib.aws_apigateway.Resource",
340
+ "version": "2.118.0"
341
+ }
342
+ }
343
+ },
344
+ "constructInfo": {
345
+ "fqn": "aws-cdk-lib.aws_apigateway.ResourceBase",
346
+ "version": "2.118.0"
347
+ }
348
+ },
349
+ "UsagePlan": {
350
+ "id": "UsagePlan",
351
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi/UsagePlan",
352
+ "children": {
353
+ "Resource": {
354
+ "id": "Resource",
355
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/RestApi/UsagePlan/Resource",
356
+ "attributes": {
357
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::UsagePlan",
358
+ "aws:cdk:cloudformation:props": {
359
+ "apiStages": [
360
+ {
361
+ "apiId": {
362
+ "Ref": "testapigatewaydynamodbadditionalrequesttemplatesRestApi03F6484C"
363
+ },
364
+ "stage": {
365
+ "Ref": "testapigatewaydynamodbadditionalrequesttemplatesRestApiDeploymentStageprod33ED5D23"
366
+ },
367
+ "throttle": {}
368
+ }
369
+ ]
370
+ }
371
+ },
372
+ "constructInfo": {
373
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnUsagePlan",
374
+ "version": "2.118.0"
375
+ }
376
+ }
377
+ },
378
+ "constructInfo": {
379
+ "fqn": "aws-cdk-lib.aws_apigateway.UsagePlan",
380
+ "version": "2.118.0"
381
+ }
382
+ }
383
+ },
384
+ "constructInfo": {
385
+ "fqn": "aws-cdk-lib.aws_apigateway.RestApi",
386
+ "version": "2.118.0"
387
+ }
388
+ },
389
+ "LambdaRestApiCloudWatchRole": {
390
+ "id": "LambdaRestApiCloudWatchRole",
391
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/LambdaRestApiCloudWatchRole",
392
+ "children": {
393
+ "ImportLambdaRestApiCloudWatchRole": {
394
+ "id": "ImportLambdaRestApiCloudWatchRole",
395
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/LambdaRestApiCloudWatchRole/ImportLambdaRestApiCloudWatchRole",
396
+ "constructInfo": {
397
+ "fqn": "aws-cdk-lib.Resource",
398
+ "version": "2.118.0"
399
+ }
400
+ },
401
+ "Resource": {
402
+ "id": "Resource",
403
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/LambdaRestApiCloudWatchRole/Resource",
404
+ "attributes": {
405
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
406
+ "aws:cdk:cloudformation:props": {
407
+ "assumeRolePolicyDocument": {
408
+ "Statement": [
409
+ {
410
+ "Action": "sts:AssumeRole",
411
+ "Effect": "Allow",
412
+ "Principal": {
413
+ "Service": "apigateway.amazonaws.com"
414
+ }
415
+ }
416
+ ],
417
+ "Version": "2012-10-17"
418
+ },
419
+ "policies": [
420
+ {
421
+ "policyName": "LambdaRestApiCloudWatchRolePolicy",
422
+ "policyDocument": {
423
+ "Statement": [
424
+ {
425
+ "Action": [
426
+ "logs:CreateLogGroup",
427
+ "logs:CreateLogStream",
428
+ "logs:DescribeLogGroups",
429
+ "logs:DescribeLogStreams",
430
+ "logs:FilterLogEvents",
431
+ "logs:GetLogEvents",
432
+ "logs:PutLogEvents"
433
+ ],
434
+ "Effect": "Allow",
435
+ "Resource": {
436
+ "Fn::Join": [
437
+ "",
438
+ [
439
+ "arn:",
440
+ {
441
+ "Ref": "AWS::Partition"
442
+ },
443
+ ":logs:",
444
+ {
445
+ "Ref": "AWS::Region"
446
+ },
447
+ ":",
448
+ {
449
+ "Ref": "AWS::AccountId"
450
+ },
451
+ ":*"
452
+ ]
453
+ ]
454
+ }
455
+ }
456
+ ],
457
+ "Version": "2012-10-17"
458
+ }
459
+ }
460
+ ]
461
+ }
462
+ },
463
+ "constructInfo": {
464
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
465
+ "version": "2.118.0"
466
+ }
467
+ }
468
+ },
469
+ "constructInfo": {
470
+ "fqn": "aws-cdk-lib.aws_iam.Role",
471
+ "version": "2.118.0"
472
+ }
473
+ },
474
+ "LambdaRestApiAccount": {
475
+ "id": "LambdaRestApiAccount",
476
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/LambdaRestApiAccount",
477
+ "attributes": {
478
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Account",
479
+ "aws:cdk:cloudformation:props": {
480
+ "cloudWatchRoleArn": {
481
+ "Fn::GetAtt": [
482
+ "testapigatewaydynamodbadditionalrequesttemplatesLambdaRestApiCloudWatchRole51265771",
483
+ "Arn"
484
+ ]
485
+ }
486
+ }
487
+ },
488
+ "constructInfo": {
489
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnAccount",
490
+ "version": "2.118.0"
491
+ }
492
+ },
493
+ "api-gateway-role": {
494
+ "id": "api-gateway-role",
495
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/api-gateway-role",
496
+ "children": {
497
+ "Importapi-gateway-role": {
498
+ "id": "Importapi-gateway-role",
499
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/api-gateway-role/Importapi-gateway-role",
500
+ "constructInfo": {
501
+ "fqn": "aws-cdk-lib.Resource",
502
+ "version": "2.118.0"
503
+ }
504
+ },
505
+ "Resource": {
506
+ "id": "Resource",
507
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/api-gateway-role/Resource",
508
+ "attributes": {
509
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
510
+ "aws:cdk:cloudformation:props": {
511
+ "assumeRolePolicyDocument": {
512
+ "Statement": [
513
+ {
514
+ "Action": "sts:AssumeRole",
515
+ "Effect": "Allow",
516
+ "Principal": {
517
+ "Service": "apigateway.amazonaws.com"
518
+ }
519
+ }
520
+ ],
521
+ "Version": "2012-10-17"
522
+ }
523
+ }
524
+ },
525
+ "constructInfo": {
526
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
527
+ "version": "2.118.0"
528
+ }
529
+ },
530
+ "DefaultPolicy": {
531
+ "id": "DefaultPolicy",
532
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/api-gateway-role/DefaultPolicy",
533
+ "children": {
534
+ "Resource": {
535
+ "id": "Resource",
536
+ "path": "apiddb-additional-request-templates/test-api-gateway-dynamodb-additional-request-templates/api-gateway-role/DefaultPolicy/Resource",
537
+ "attributes": {
538
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
539
+ "aws:cdk:cloudformation:props": {
540
+ "policyDocument": {
541
+ "Statement": [
542
+ {
543
+ "Action": "dynamodb:Query",
544
+ "Effect": "Allow",
545
+ "Resource": {
546
+ "Fn::GetAtt": [
547
+ "existingtableE51CCC93",
548
+ "Arn"
549
+ ]
550
+ }
551
+ }
552
+ ],
553
+ "Version": "2012-10-17"
554
+ },
555
+ "policyName": "testapigatewaydynamodbadditionalrequesttemplatesapigatewayroleDefaultPolicy4C47B35E",
556
+ "roles": [
557
+ {
558
+ "Ref": "testapigatewaydynamodbadditionalrequesttemplatesapigatewayroleFDAECAC6"
559
+ }
560
+ ]
561
+ }
562
+ },
563
+ "constructInfo": {
564
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
565
+ "version": "2.118.0"
566
+ }
567
+ }
568
+ },
569
+ "constructInfo": {
570
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
571
+ "version": "2.118.0"
572
+ }
573
+ }
574
+ },
575
+ "constructInfo": {
576
+ "fqn": "aws-cdk-lib.aws_iam.Role",
577
+ "version": "2.118.0"
578
+ }
579
+ }
580
+ },
581
+ "constructInfo": {
582
+ "fqn": "@aws-solutions-constructs/aws-apigateway-dynamodb.ApiGatewayToDynamoDB",
583
+ "version": "2.50.0"
584
+ }
585
+ },
586
+ "Integ": {
587
+ "id": "Integ",
588
+ "path": "apiddb-additional-request-templates/Integ",
589
+ "children": {
590
+ "DefaultTest": {
591
+ "id": "DefaultTest",
592
+ "path": "apiddb-additional-request-templates/Integ/DefaultTest",
593
+ "children": {
594
+ "Default": {
595
+ "id": "Default",
596
+ "path": "apiddb-additional-request-templates/Integ/DefaultTest/Default",
597
+ "constructInfo": {
598
+ "fqn": "constructs.Construct",
599
+ "version": "10.0.0"
600
+ }
601
+ },
602
+ "DeployAssert": {
603
+ "id": "DeployAssert",
604
+ "path": "apiddb-additional-request-templates/Integ/DefaultTest/DeployAssert",
605
+ "children": {
606
+ "BootstrapVersion": {
607
+ "id": "BootstrapVersion",
608
+ "path": "apiddb-additional-request-templates/Integ/DefaultTest/DeployAssert/BootstrapVersion",
609
+ "constructInfo": {
610
+ "fqn": "aws-cdk-lib.CfnParameter",
611
+ "version": "2.118.0"
612
+ }
613
+ },
614
+ "CheckBootstrapVersion": {
615
+ "id": "CheckBootstrapVersion",
616
+ "path": "apiddb-additional-request-templates/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
617
+ "constructInfo": {
618
+ "fqn": "aws-cdk-lib.CfnRule",
619
+ "version": "2.118.0"
620
+ }
621
+ }
622
+ },
623
+ "constructInfo": {
624
+ "fqn": "aws-cdk-lib.Stack",
625
+ "version": "2.118.0"
626
+ }
627
+ }
628
+ },
629
+ "constructInfo": {
630
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
631
+ "version": "2.118.0-alpha.0"
632
+ }
633
+ }
634
+ },
635
+ "constructInfo": {
636
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
637
+ "version": "2.118.0-alpha.0"
638
+ }
639
+ },
640
+ "BootstrapVersion": {
641
+ "id": "BootstrapVersion",
642
+ "path": "apiddb-additional-request-templates/BootstrapVersion",
643
+ "constructInfo": {
644
+ "fqn": "aws-cdk-lib.CfnParameter",
645
+ "version": "2.118.0"
646
+ }
647
+ },
648
+ "CheckBootstrapVersion": {
649
+ "id": "CheckBootstrapVersion",
650
+ "path": "apiddb-additional-request-templates/CheckBootstrapVersion",
651
+ "constructInfo": {
652
+ "fqn": "aws-cdk-lib.CfnRule",
653
+ "version": "2.118.0"
654
+ }
655
+ }
656
+ },
657
+ "constructInfo": {
658
+ "fqn": "aws-cdk-lib.Stack",
659
+ "version": "2.118.0"
660
+ }
661
+ },
662
+ "Tree": {
663
+ "id": "Tree",
664
+ "path": "Tree",
665
+ "constructInfo": {
666
+ "fqn": "constructs.Construct",
667
+ "version": "10.0.0"
668
+ }
669
+ }
670
+ },
671
+ "constructInfo": {
672
+ "fqn": "aws-cdk-lib.App",
673
+ "version": "2.118.0"
674
+ }
675
+ }
676
+ }