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