@aws-solutions-constructs/aws-apigateway-sagemakerendpoint 2.79.0 → 2.80.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.
@@ -0,0 +1,400 @@
1
+ {
2
+ "Description": "Integration Test for aws-apigateway-sagemakerendpoint",
3
+ "Resources": {
4
+ "testapigatewaysagemakerendpointdefaultApiAccessLogGroupAD5E1ADF": {
5
+ "Type": "AWS::Logs::LogGroup",
6
+ "UpdateReplacePolicy": "Retain",
7
+ "DeletionPolicy": "Retain",
8
+ "Metadata": {
9
+ "cfn_nag": {
10
+ "rules_to_suppress": [
11
+ {
12
+ "id": "W86",
13
+ "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
14
+ },
15
+ {
16
+ "id": "W84",
17
+ "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
18
+ }
19
+ ]
20
+ }
21
+ }
22
+ },
23
+ "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B": {
24
+ "Type": "AWS::ApiGateway::RestApi",
25
+ "Properties": {
26
+ "EndpointConfiguration": {
27
+ "Types": [
28
+ "EDGE"
29
+ ]
30
+ },
31
+ "Name": "RestApi"
32
+ }
33
+ },
34
+ "testapigatewaysagemakerendpointdefaultRestApiDeployment04BFEB63b4264c277dbe6aa60ff584ba21d5d060": {
35
+ "Type": "AWS::ApiGateway::Deployment",
36
+ "Properties": {
37
+ "Description": "Automatically created by the RestApi construct",
38
+ "RestApiId": {
39
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
40
+ }
41
+ },
42
+ "DependsOn": [
43
+ "testapigatewaysagemakerendpointdefaultRestApiuseridGETB3BB79AA",
44
+ "testapigatewaysagemakerendpointdefaultRestApiuserid9952BA11",
45
+ "testapigatewaysagemakerendpointdefaultRestApirequestvalidator1A23C251"
46
+ ],
47
+ "Metadata": {
48
+ "cfn_nag": {
49
+ "rules_to_suppress": [
50
+ {
51
+ "id": "W45",
52
+ "reason": "ApiGateway has AccessLogging enabled in AWS::ApiGateway::Stage resource, but cfn_nag checks for it in AWS::ApiGateway::Deployment resource"
53
+ }
54
+ ]
55
+ }
56
+ }
57
+ },
58
+ "testapigatewaysagemakerendpointdefaultRestApiDeploymentStageprodFD1743A7": {
59
+ "Type": "AWS::ApiGateway::Stage",
60
+ "Properties": {
61
+ "AccessLogSetting": {
62
+ "DestinationArn": {
63
+ "Fn::GetAtt": [
64
+ "testapigatewaysagemakerendpointdefaultApiAccessLogGroupAD5E1ADF",
65
+ "Arn"
66
+ ]
67
+ },
68
+ "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\"}"
69
+ },
70
+ "DeploymentId": {
71
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApiDeployment04BFEB63b4264c277dbe6aa60ff584ba21d5d060"
72
+ },
73
+ "MethodSettings": [
74
+ {
75
+ "DataTraceEnabled": false,
76
+ "HttpMethod": "*",
77
+ "LoggingLevel": "INFO",
78
+ "ResourcePath": "/*"
79
+ }
80
+ ],
81
+ "RestApiId": {
82
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
83
+ },
84
+ "StageName": "prod",
85
+ "TracingEnabled": true
86
+ },
87
+ "Metadata": {
88
+ "guard": {
89
+ "SuppressedRules": [
90
+ "API_GW_CACHE_ENABLED_AND_ENCRYPTED"
91
+ ]
92
+ }
93
+ }
94
+ },
95
+ "testapigatewaysagemakerendpointdefaultRestApiuserid9952BA11": {
96
+ "Type": "AWS::ApiGateway::Resource",
97
+ "Properties": {
98
+ "ParentId": {
99
+ "Fn::GetAtt": [
100
+ "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B",
101
+ "RootResourceId"
102
+ ]
103
+ },
104
+ "PathPart": "{user_id}",
105
+ "RestApiId": {
106
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
107
+ }
108
+ }
109
+ },
110
+ "testapigatewaysagemakerendpointdefaultRestApiuseridGETB3BB79AA": {
111
+ "Type": "AWS::ApiGateway::Method",
112
+ "Properties": {
113
+ "AuthorizationType": "AWS_IAM",
114
+ "HttpMethod": "GET",
115
+ "Integration": {
116
+ "Credentials": {
117
+ "Fn::GetAtt": [
118
+ "testapigatewaysagemakerendpointdefaultapigatewayrole8EA61BE4",
119
+ "Arn"
120
+ ]
121
+ },
122
+ "IntegrationHttpMethod": "POST",
123
+ "IntegrationResponses": [
124
+ {
125
+ "StatusCode": "200"
126
+ },
127
+ {
128
+ "SelectionPattern": "5\\d{2}",
129
+ "StatusCode": "500"
130
+ },
131
+ {
132
+ "SelectionPattern": "4\\d{2}",
133
+ "StatusCode": "400"
134
+ }
135
+ ],
136
+ "PassthroughBehavior": "NEVER",
137
+ "RequestParameters": {
138
+ "integration.request.header.Content-Type": "'application/json'"
139
+ },
140
+ "RequestTemplates": {
141
+ "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}"
142
+ },
143
+ "Type": "AWS",
144
+ "Uri": {
145
+ "Fn::Join": [
146
+ "",
147
+ [
148
+ "arn:",
149
+ {
150
+ "Ref": "AWS::Partition"
151
+ },
152
+ ":apigateway:",
153
+ {
154
+ "Ref": "AWS::Region"
155
+ },
156
+ ":runtime.sagemaker:path/endpoints/my-endpoint/invocations"
157
+ ]
158
+ ]
159
+ }
160
+ },
161
+ "MethodResponses": [
162
+ {
163
+ "StatusCode": "200"
164
+ },
165
+ {
166
+ "StatusCode": "500"
167
+ },
168
+ {
169
+ "StatusCode": "400"
170
+ }
171
+ ],
172
+ "RequestValidatorId": {
173
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApirequestvalidator1A23C251"
174
+ },
175
+ "ResourceId": {
176
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApiuserid9952BA11"
177
+ },
178
+ "RestApiId": {
179
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
180
+ }
181
+ }
182
+ },
183
+ "testapigatewaysagemakerendpointdefaultRestApirequestvalidator1A23C251": {
184
+ "Type": "AWS::ApiGateway::RequestValidator",
185
+ "Properties": {
186
+ "Name": "request-param-validator",
187
+ "RestApiId": {
188
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
189
+ },
190
+ "ValidateRequestParameters": true
191
+ }
192
+ },
193
+ "testapigatewaysagemakerendpointdefaultLambdaRestApiCloudWatchRole56EE67C8": {
194
+ "Type": "AWS::IAM::Role",
195
+ "Properties": {
196
+ "AssumeRolePolicyDocument": {
197
+ "Statement": [
198
+ {
199
+ "Action": "sts:AssumeRole",
200
+ "Effect": "Allow",
201
+ "Principal": {
202
+ "Service": "apigateway.amazonaws.com"
203
+ }
204
+ }
205
+ ],
206
+ "Version": "2012-10-17"
207
+ },
208
+ "Policies": [
209
+ {
210
+ "PolicyDocument": {
211
+ "Statement": [
212
+ {
213
+ "Action": [
214
+ "logs:CreateLogGroup",
215
+ "logs:CreateLogStream",
216
+ "logs:DescribeLogGroups",
217
+ "logs:DescribeLogStreams",
218
+ "logs:FilterLogEvents",
219
+ "logs:GetLogEvents",
220
+ "logs:PutLogEvents"
221
+ ],
222
+ "Effect": "Allow",
223
+ "Resource": {
224
+ "Fn::Join": [
225
+ "",
226
+ [
227
+ "arn:",
228
+ {
229
+ "Ref": "AWS::Partition"
230
+ },
231
+ ":logs:",
232
+ {
233
+ "Ref": "AWS::Region"
234
+ },
235
+ ":",
236
+ {
237
+ "Ref": "AWS::AccountId"
238
+ },
239
+ ":*"
240
+ ]
241
+ ]
242
+ }
243
+ }
244
+ ],
245
+ "Version": "2012-10-17"
246
+ },
247
+ "PolicyName": "LambdaRestApiCloudWatchRolePolicy"
248
+ }
249
+ ]
250
+ },
251
+ "Metadata": {
252
+ "guard": {
253
+ "SuppressedRules": [
254
+ "IAM_NO_INLINE_POLICY_CHECK"
255
+ ]
256
+ }
257
+ }
258
+ },
259
+ "testapigatewaysagemakerendpointdefaultLambdaRestApiAccount6B3C7FDD": {
260
+ "Type": "AWS::ApiGateway::Account",
261
+ "Properties": {
262
+ "CloudWatchRoleArn": {
263
+ "Fn::GetAtt": [
264
+ "testapigatewaysagemakerendpointdefaultLambdaRestApiCloudWatchRole56EE67C8",
265
+ "Arn"
266
+ ]
267
+ }
268
+ },
269
+ "DependsOn": [
270
+ "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
271
+ ]
272
+ },
273
+ "testapigatewaysagemakerendpointdefaultapigatewayrole8EA61BE4": {
274
+ "Type": "AWS::IAM::Role",
275
+ "Properties": {
276
+ "AssumeRolePolicyDocument": {
277
+ "Statement": [
278
+ {
279
+ "Action": "sts:AssumeRole",
280
+ "Effect": "Allow",
281
+ "Principal": {
282
+ "Service": "apigateway.amazonaws.com"
283
+ }
284
+ }
285
+ ],
286
+ "Version": "2012-10-17"
287
+ }
288
+ },
289
+ "Metadata": {
290
+ "guard": {
291
+ "SuppressedRules": [
292
+ "IAM_NO_INLINE_POLICY_CHECK"
293
+ ]
294
+ }
295
+ }
296
+ },
297
+ "testapigatewaysagemakerendpointdefaultInvokeEndpointPolicyB835D2B2": {
298
+ "Type": "AWS::IAM::Policy",
299
+ "Properties": {
300
+ "PolicyDocument": {
301
+ "Statement": [
302
+ {
303
+ "Action": "sagemaker:InvokeEndpoint",
304
+ "Effect": "Allow",
305
+ "Resource": {
306
+ "Fn::Join": [
307
+ "",
308
+ [
309
+ "arn:",
310
+ {
311
+ "Ref": "AWS::Partition"
312
+ },
313
+ ":sagemaker:",
314
+ {
315
+ "Ref": "AWS::Region"
316
+ },
317
+ ":",
318
+ {
319
+ "Ref": "AWS::AccountId"
320
+ },
321
+ ":endpoint/my-endpoint"
322
+ ]
323
+ ]
324
+ }
325
+ }
326
+ ],
327
+ "Version": "2012-10-17"
328
+ },
329
+ "PolicyName": "testapigatewaysagemakerendpointdefaultInvokeEndpointPolicyB835D2B2",
330
+ "Roles": [
331
+ {
332
+ "Ref": "testapigatewaysagemakerendpointdefaultapigatewayrole8EA61BE4"
333
+ }
334
+ ]
335
+ }
336
+ }
337
+ },
338
+ "Outputs": {
339
+ "testapigatewaysagemakerendpointdefaultRestApiEndpoint1EFF6760": {
340
+ "Value": {
341
+ "Fn::Join": [
342
+ "",
343
+ [
344
+ "https://",
345
+ {
346
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApi7D1DA11B"
347
+ },
348
+ ".execute-api.",
349
+ {
350
+ "Ref": "AWS::Region"
351
+ },
352
+ ".",
353
+ {
354
+ "Ref": "AWS::URLSuffix"
355
+ },
356
+ "/",
357
+ {
358
+ "Ref": "testapigatewaysagemakerendpointdefaultRestApiDeploymentStageprodFD1743A7"
359
+ },
360
+ "/"
361
+ ]
362
+ ]
363
+ }
364
+ }
365
+ },
366
+ "Parameters": {
367
+ "BootstrapVersion": {
368
+ "Type": "AWS::SSM::Parameter::Value<String>",
369
+ "Default": "/cdk-bootstrap/hnb659fds/version",
370
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
371
+ }
372
+ },
373
+ "Rules": {
374
+ "CheckBootstrapVersion": {
375
+ "Assertions": [
376
+ {
377
+ "Assert": {
378
+ "Fn::Not": [
379
+ {
380
+ "Fn::Contains": [
381
+ [
382
+ "1",
383
+ "2",
384
+ "3",
385
+ "4",
386
+ "5"
387
+ ],
388
+ {
389
+ "Ref": "BootstrapVersion"
390
+ }
391
+ ]
392
+ }
393
+ ]
394
+ },
395
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
396
+ }
397
+ ]
398
+ }
399
+ }
400
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "39.0.0",
3
+ "files": {
4
+ "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
+ "source": {
6
+ "path": "apisagnousageplanIntegDefaultTestDeployAssert454475DF.template.json",
7
+ "packaging": "file"
8
+ },
9
+ "destinations": {
10
+ "current_account-current_region": {
11
+ "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
+ "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
13
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
+ }
15
+ }
16
+ }
17
+ },
18
+ "dockerImages": {}
19
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "Parameters": {
3
+ "BootstrapVersion": {
4
+ "Type": "AWS::SSM::Parameter::Value<String>",
5
+ "Default": "/cdk-bootstrap/hnb659fds/version",
6
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
7
+ }
8
+ },
9
+ "Rules": {
10
+ "CheckBootstrapVersion": {
11
+ "Assertions": [
12
+ {
13
+ "Assert": {
14
+ "Fn::Not": [
15
+ {
16
+ "Fn::Contains": [
17
+ [
18
+ "1",
19
+ "2",
20
+ "3",
21
+ "4",
22
+ "5"
23
+ ],
24
+ {
25
+ "Ref": "BootstrapVersion"
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ },
31
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
32
+ }
33
+ ]
34
+ }
35
+ }
36
+ }
@@ -0,0 +1 @@
1
+ {"version":"39.0.0"}
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": "39.0.0",
3
+ "testCases": {
4
+ "apisag-no-usage-plan/Integ/DefaultTest": {
5
+ "stacks": [
6
+ "apisag-no-usage-plan"
7
+ ],
8
+ "assertionStack": "apisag-no-usage-plan/Integ/DefaultTest/DeployAssert",
9
+ "assertionStackName": "apisagnousageplanIntegDefaultTestDeployAssert454475DF"
10
+ }
11
+ }
12
+ }