@aws-solutions-constructs/aws-apigateway-sagemakerendpoint 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 (35) hide show
  1. package/.eslintignore +3 -1
  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.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,646 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "apisag-no-overwrite": {
8
+ "id": "apisag-no-overwrite",
9
+ "path": "apisag-no-overwrite",
10
+ "children": {
11
+ "test-apigateway-sagemakerendpoint-default": {
12
+ "id": "test-apigateway-sagemakerendpoint-default",
13
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default",
14
+ "children": {
15
+ "ApiAccessLogGroup": {
16
+ "id": "ApiAccessLogGroup",
17
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/ApiAccessLogGroup",
18
+ "children": {
19
+ "Resource": {
20
+ "id": "Resource",
21
+ "path": "apisag-no-overwrite/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-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi",
40
+ "children": {
41
+ "Resource": {
42
+ "id": "Resource",
43
+ "path": "apisag-no-overwrite/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-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/Deployment",
63
+ "children": {
64
+ "Resource": {
65
+ "id": "Resource",
66
+ "path": "apisag-no-overwrite/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-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/DeploymentStage.prod",
90
+ "children": {
91
+ "Resource": {
92
+ "id": "Resource",
93
+ "path": "apisag-no-overwrite/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": "testapigatewaysagemakerendpointdefaultRestApiDeployment04BFEB63b4264c277dbe6aa60ff584ba21d5d060"
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-no-overwrite/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-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/Default",
146
+ "children": {
147
+ "{user_id}": {
148
+ "id": "{user_id}",
149
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/Default/{user_id}",
150
+ "children": {
151
+ "Resource": {
152
+ "id": "Resource",
153
+ "path": "apisag-no-overwrite/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-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/Default/{user_id}/GET",
177
+ "children": {
178
+ "Resource": {
179
+ "id": "Resource",
180
+ "path": "apisag-no-overwrite/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
+ },
211
+ "passthroughBehavior": "NEVER",
212
+ "integrationResponses": [
213
+ {
214
+ "statusCode": "200"
215
+ },
216
+ {
217
+ "statusCode": "500",
218
+ "selectionPattern": "5\\d{2}"
219
+ },
220
+ {
221
+ "statusCode": "400",
222
+ "selectionPattern": "4\\d{2}"
223
+ }
224
+ ],
225
+ "credentials": {
226
+ "Fn::GetAtt": [
227
+ "testapigatewaysagemakerendpointdefaultapigatewayrole8EA61BE4",
228
+ "Arn"
229
+ ]
230
+ }
231
+ },
232
+ "methodResponses": [
233
+ {
234
+ "statusCode": "200"
235
+ },
236
+ {
237
+ "statusCode": "500"
238
+ },
239
+ {
240
+ "statusCode": "400"
241
+ }
242
+ ],
243
+ "requestValidatorId": {
244
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApirequestvalidator1A23C251"
245
+ },
246
+ "resourceId": {
247
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApiuserid9952BA11"
248
+ },
249
+ "restApiId": {
250
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
251
+ }
252
+ }
253
+ },
254
+ "constructInfo": {
255
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnMethod",
256
+ "version": "2.118.0"
257
+ }
258
+ }
259
+ },
260
+ "constructInfo": {
261
+ "fqn": "aws-cdk-lib.aws_apigateway.Method",
262
+ "version": "2.118.0"
263
+ }
264
+ }
265
+ },
266
+ "constructInfo": {
267
+ "fqn": "aws-cdk-lib.aws_apigateway.Resource",
268
+ "version": "2.118.0"
269
+ }
270
+ }
271
+ },
272
+ "constructInfo": {
273
+ "fqn": "aws-cdk-lib.aws_apigateway.ResourceBase",
274
+ "version": "2.118.0"
275
+ }
276
+ },
277
+ "UsagePlan": {
278
+ "id": "UsagePlan",
279
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/UsagePlan",
280
+ "children": {
281
+ "Resource": {
282
+ "id": "Resource",
283
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/UsagePlan/Resource",
284
+ "attributes": {
285
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::UsagePlan",
286
+ "aws:cdk:cloudformation:props": {
287
+ "apiStages": [
288
+ {
289
+ "apiId": {
290
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
291
+ },
292
+ "stage": {
293
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApiDeploymentStageprodFD1743A7"
294
+ },
295
+ "throttle": {}
296
+ }
297
+ ]
298
+ }
299
+ },
300
+ "constructInfo": {
301
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnUsagePlan",
302
+ "version": "2.118.0"
303
+ }
304
+ }
305
+ },
306
+ "constructInfo": {
307
+ "fqn": "aws-cdk-lib.aws_apigateway.UsagePlan",
308
+ "version": "2.118.0"
309
+ }
310
+ },
311
+ "request-validator": {
312
+ "id": "request-validator",
313
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/request-validator",
314
+ "children": {
315
+ "Resource": {
316
+ "id": "Resource",
317
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/RestApi/request-validator/Resource",
318
+ "attributes": {
319
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::RequestValidator",
320
+ "aws:cdk:cloudformation:props": {
321
+ "name": "request-param-validator",
322
+ "restApiId": {
323
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
324
+ },
325
+ "validateRequestParameters": true
326
+ }
327
+ },
328
+ "constructInfo": {
329
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnRequestValidator",
330
+ "version": "2.118.0"
331
+ }
332
+ }
333
+ },
334
+ "constructInfo": {
335
+ "fqn": "aws-cdk-lib.aws_apigateway.RequestValidator",
336
+ "version": "2.118.0"
337
+ }
338
+ }
339
+ },
340
+ "constructInfo": {
341
+ "fqn": "aws-cdk-lib.aws_apigateway.RestApi",
342
+ "version": "2.118.0"
343
+ }
344
+ },
345
+ "LambdaRestApiCloudWatchRole": {
346
+ "id": "LambdaRestApiCloudWatchRole",
347
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/LambdaRestApiCloudWatchRole",
348
+ "children": {
349
+ "ImportLambdaRestApiCloudWatchRole": {
350
+ "id": "ImportLambdaRestApiCloudWatchRole",
351
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/LambdaRestApiCloudWatchRole/ImportLambdaRestApiCloudWatchRole",
352
+ "constructInfo": {
353
+ "fqn": "aws-cdk-lib.Resource",
354
+ "version": "2.118.0"
355
+ }
356
+ },
357
+ "Resource": {
358
+ "id": "Resource",
359
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/LambdaRestApiCloudWatchRole/Resource",
360
+ "attributes": {
361
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
362
+ "aws:cdk:cloudformation:props": {
363
+ "assumeRolePolicyDocument": {
364
+ "Statement": [
365
+ {
366
+ "Action": "sts:AssumeRole",
367
+ "Effect": "Allow",
368
+ "Principal": {
369
+ "Service": "apigateway.amazonaws.com"
370
+ }
371
+ }
372
+ ],
373
+ "Version": "2012-10-17"
374
+ },
375
+ "policies": [
376
+ {
377
+ "policyName": "LambdaRestApiCloudWatchRolePolicy",
378
+ "policyDocument": {
379
+ "Statement": [
380
+ {
381
+ "Action": [
382
+ "logs:CreateLogGroup",
383
+ "logs:CreateLogStream",
384
+ "logs:DescribeLogGroups",
385
+ "logs:DescribeLogStreams",
386
+ "logs:FilterLogEvents",
387
+ "logs:GetLogEvents",
388
+ "logs:PutLogEvents"
389
+ ],
390
+ "Effect": "Allow",
391
+ "Resource": {
392
+ "Fn::Join": [
393
+ "",
394
+ [
395
+ "arn:",
396
+ {
397
+ "Ref": "AWS::Partition"
398
+ },
399
+ ":logs:",
400
+ {
401
+ "Ref": "AWS::Region"
402
+ },
403
+ ":",
404
+ {
405
+ "Ref": "AWS::AccountId"
406
+ },
407
+ ":*"
408
+ ]
409
+ ]
410
+ }
411
+ }
412
+ ],
413
+ "Version": "2012-10-17"
414
+ }
415
+ }
416
+ ]
417
+ }
418
+ },
419
+ "constructInfo": {
420
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
421
+ "version": "2.118.0"
422
+ }
423
+ }
424
+ },
425
+ "constructInfo": {
426
+ "fqn": "aws-cdk-lib.aws_iam.Role",
427
+ "version": "2.118.0"
428
+ }
429
+ },
430
+ "LambdaRestApiAccount": {
431
+ "id": "LambdaRestApiAccount",
432
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/LambdaRestApiAccount",
433
+ "attributes": {
434
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Account",
435
+ "aws:cdk:cloudformation:props": {
436
+ "cloudWatchRoleArn": {
437
+ "Fn::GetAtt": [
438
+ "testapigatewaysagemakerendpointdefaultLambdaRestApiCloudWatchRole56EE67C8",
439
+ "Arn"
440
+ ]
441
+ }
442
+ }
443
+ },
444
+ "constructInfo": {
445
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnAccount",
446
+ "version": "2.118.0"
447
+ }
448
+ },
449
+ "api-gateway-role": {
450
+ "id": "api-gateway-role",
451
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/api-gateway-role",
452
+ "children": {
453
+ "Importapi-gateway-role": {
454
+ "id": "Importapi-gateway-role",
455
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/api-gateway-role/Importapi-gateway-role",
456
+ "constructInfo": {
457
+ "fqn": "aws-cdk-lib.Resource",
458
+ "version": "2.118.0"
459
+ }
460
+ },
461
+ "Resource": {
462
+ "id": "Resource",
463
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/api-gateway-role/Resource",
464
+ "attributes": {
465
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
466
+ "aws:cdk:cloudformation:props": {
467
+ "assumeRolePolicyDocument": {
468
+ "Statement": [
469
+ {
470
+ "Action": "sts:AssumeRole",
471
+ "Effect": "Allow",
472
+ "Principal": {
473
+ "Service": "apigateway.amazonaws.com"
474
+ }
475
+ }
476
+ ],
477
+ "Version": "2012-10-17"
478
+ }
479
+ }
480
+ },
481
+ "constructInfo": {
482
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
483
+ "version": "2.118.0"
484
+ }
485
+ }
486
+ },
487
+ "constructInfo": {
488
+ "fqn": "aws-cdk-lib.aws_iam.Role",
489
+ "version": "2.118.0"
490
+ }
491
+ },
492
+ "InvokeEndpointPolicy": {
493
+ "id": "InvokeEndpointPolicy",
494
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/InvokeEndpointPolicy",
495
+ "children": {
496
+ "Resource": {
497
+ "id": "Resource",
498
+ "path": "apisag-no-overwrite/test-apigateway-sagemakerendpoint-default/InvokeEndpointPolicy/Resource",
499
+ "attributes": {
500
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
501
+ "aws:cdk:cloudformation:props": {
502
+ "policyDocument": {
503
+ "Statement": [
504
+ {
505
+ "Action": "sagemaker:InvokeEndpoint",
506
+ "Effect": "Allow",
507
+ "Resource": {
508
+ "Fn::Join": [
509
+ "",
510
+ [
511
+ "arn:",
512
+ {
513
+ "Ref": "AWS::Partition"
514
+ },
515
+ ":sagemaker:",
516
+ {
517
+ "Ref": "AWS::Region"
518
+ },
519
+ ":",
520
+ {
521
+ "Ref": "AWS::AccountId"
522
+ },
523
+ ":endpoint/my-endpoint"
524
+ ]
525
+ ]
526
+ }
527
+ }
528
+ ],
529
+ "Version": "2012-10-17"
530
+ },
531
+ "policyName": "testapigatewaysagemakerendpointdefaultInvokeEndpointPolicyB835D2B2",
532
+ "roles": [
533
+ {
534
+ "Ref": "testapigatewaysagemakerendpointdefaultapigatewayrole8EA61BE4"
535
+ }
536
+ ]
537
+ }
538
+ },
539
+ "constructInfo": {
540
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
541
+ "version": "2.118.0"
542
+ }
543
+ }
544
+ },
545
+ "constructInfo": {
546
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
547
+ "version": "2.118.0"
548
+ }
549
+ }
550
+ },
551
+ "constructInfo": {
552
+ "fqn": "@aws-solutions-constructs/aws-apigateway-sagemakerendpoint.ApiGatewayToSageMakerEndpoint",
553
+ "version": "2.50.0"
554
+ }
555
+ },
556
+ "Integ": {
557
+ "id": "Integ",
558
+ "path": "apisag-no-overwrite/Integ",
559
+ "children": {
560
+ "DefaultTest": {
561
+ "id": "DefaultTest",
562
+ "path": "apisag-no-overwrite/Integ/DefaultTest",
563
+ "children": {
564
+ "Default": {
565
+ "id": "Default",
566
+ "path": "apisag-no-overwrite/Integ/DefaultTest/Default",
567
+ "constructInfo": {
568
+ "fqn": "constructs.Construct",
569
+ "version": "10.0.0"
570
+ }
571
+ },
572
+ "DeployAssert": {
573
+ "id": "DeployAssert",
574
+ "path": "apisag-no-overwrite/Integ/DefaultTest/DeployAssert",
575
+ "children": {
576
+ "BootstrapVersion": {
577
+ "id": "BootstrapVersion",
578
+ "path": "apisag-no-overwrite/Integ/DefaultTest/DeployAssert/BootstrapVersion",
579
+ "constructInfo": {
580
+ "fqn": "aws-cdk-lib.CfnParameter",
581
+ "version": "2.118.0"
582
+ }
583
+ },
584
+ "CheckBootstrapVersion": {
585
+ "id": "CheckBootstrapVersion",
586
+ "path": "apisag-no-overwrite/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
587
+ "constructInfo": {
588
+ "fqn": "aws-cdk-lib.CfnRule",
589
+ "version": "2.118.0"
590
+ }
591
+ }
592
+ },
593
+ "constructInfo": {
594
+ "fqn": "aws-cdk-lib.Stack",
595
+ "version": "2.118.0"
596
+ }
597
+ }
598
+ },
599
+ "constructInfo": {
600
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
601
+ "version": "2.118.0-alpha.0"
602
+ }
603
+ }
604
+ },
605
+ "constructInfo": {
606
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
607
+ "version": "2.118.0-alpha.0"
608
+ }
609
+ },
610
+ "BootstrapVersion": {
611
+ "id": "BootstrapVersion",
612
+ "path": "apisag-no-overwrite/BootstrapVersion",
613
+ "constructInfo": {
614
+ "fqn": "aws-cdk-lib.CfnParameter",
615
+ "version": "2.118.0"
616
+ }
617
+ },
618
+ "CheckBootstrapVersion": {
619
+ "id": "CheckBootstrapVersion",
620
+ "path": "apisag-no-overwrite/CheckBootstrapVersion",
621
+ "constructInfo": {
622
+ "fqn": "aws-cdk-lib.CfnRule",
623
+ "version": "2.118.0"
624
+ }
625
+ }
626
+ },
627
+ "constructInfo": {
628
+ "fqn": "aws-cdk-lib.Stack",
629
+ "version": "2.118.0"
630
+ }
631
+ },
632
+ "Tree": {
633
+ "id": "Tree",
634
+ "path": "Tree",
635
+ "constructInfo": {
636
+ "fqn": "constructs.Construct",
637
+ "version": "10.0.0"
638
+ }
639
+ }
640
+ },
641
+ "constructInfo": {
642
+ "fqn": "aws-cdk-lib.App",
643
+ "version": "2.118.0"
644
+ }
645
+ }
646
+ }