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