@aws-sdk/client-sagemaker 3.234.0 → 3.236.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.
@@ -1,378 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- exports.ruleSet = {
5
- version: "1.0",
6
- parameters: {
7
- Region: {
8
- builtIn: "AWS::Region",
9
- required: true,
10
- documentation: "The AWS region used to dispatch the request.",
11
- type: "String",
12
- },
13
- UseDualStack: {
14
- builtIn: "AWS::UseDualStack",
15
- required: true,
16
- default: false,
17
- documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
18
- type: "Boolean",
19
- },
20
- UseFIPS: {
21
- builtIn: "AWS::UseFIPS",
22
- required: true,
23
- default: false,
24
- documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
25
- type: "Boolean",
26
- },
27
- Endpoint: {
28
- builtIn: "SDK::Endpoint",
29
- required: false,
30
- documentation: "Override the endpoint used to send this request",
31
- type: "String",
32
- },
33
- },
34
- rules: [
35
- {
36
- conditions: [
37
- {
38
- fn: "aws.partition",
39
- argv: [
40
- {
41
- ref: "Region",
42
- },
43
- ],
44
- assign: "PartitionResult",
45
- },
46
- ],
47
- type: "tree",
48
- rules: [
49
- {
50
- conditions: [
51
- {
52
- fn: "isSet",
53
- argv: [
54
- {
55
- ref: "Endpoint",
56
- },
57
- ],
58
- },
59
- ],
60
- type: "tree",
61
- rules: [
62
- {
63
- conditions: [
64
- {
65
- fn: "booleanEquals",
66
- argv: [
67
- {
68
- ref: "UseFIPS",
69
- },
70
- true,
71
- ],
72
- },
73
- ],
74
- error: "Invalid Configuration: FIPS and custom endpoint are not supported",
75
- type: "error",
76
- },
77
- {
78
- conditions: [],
79
- type: "tree",
80
- rules: [
81
- {
82
- conditions: [
83
- {
84
- fn: "booleanEquals",
85
- argv: [
86
- {
87
- ref: "UseDualStack",
88
- },
89
- true,
90
- ],
91
- },
92
- ],
93
- error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
94
- type: "error",
95
- },
96
- {
97
- conditions: [],
98
- endpoint: {
99
- url: {
100
- ref: "Endpoint",
101
- },
102
- properties: {},
103
- headers: {},
104
- },
105
- type: "endpoint",
106
- },
107
- ],
108
- },
109
- ],
110
- },
111
- {
112
- conditions: [
113
- {
114
- fn: "booleanEquals",
115
- argv: [
116
- {
117
- ref: "UseFIPS",
118
- },
119
- true,
120
- ],
121
- },
122
- {
123
- fn: "booleanEquals",
124
- argv: [
125
- {
126
- ref: "UseDualStack",
127
- },
128
- true,
129
- ],
130
- },
131
- ],
132
- type: "tree",
133
- rules: [
134
- {
135
- conditions: [
136
- {
137
- fn: "booleanEquals",
138
- argv: [
139
- true,
140
- {
141
- fn: "getAttr",
142
- argv: [
143
- {
144
- ref: "PartitionResult",
145
- },
146
- "supportsFIPS",
147
- ],
148
- },
149
- ],
150
- },
151
- {
152
- fn: "booleanEquals",
153
- argv: [
154
- true,
155
- {
156
- fn: "getAttr",
157
- argv: [
158
- {
159
- ref: "PartitionResult",
160
- },
161
- "supportsDualStack",
162
- ],
163
- },
164
- ],
165
- },
166
- ],
167
- type: "tree",
168
- rules: [
169
- {
170
- conditions: [],
171
- endpoint: {
172
- url: "https://api.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
173
- properties: {},
174
- headers: {},
175
- },
176
- type: "endpoint",
177
- },
178
- ],
179
- },
180
- {
181
- conditions: [],
182
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
183
- type: "error",
184
- },
185
- ],
186
- },
187
- {
188
- conditions: [
189
- {
190
- fn: "booleanEquals",
191
- argv: [
192
- {
193
- ref: "UseFIPS",
194
- },
195
- true,
196
- ],
197
- },
198
- ],
199
- type: "tree",
200
- rules: [
201
- {
202
- conditions: [
203
- {
204
- fn: "booleanEquals",
205
- argv: [
206
- true,
207
- {
208
- fn: "getAttr",
209
- argv: [
210
- {
211
- ref: "PartitionResult",
212
- },
213
- "supportsFIPS",
214
- ],
215
- },
216
- ],
217
- },
218
- ],
219
- type: "tree",
220
- rules: [
221
- {
222
- conditions: [],
223
- type: "tree",
224
- rules: [
225
- {
226
- conditions: [
227
- {
228
- fn: "stringEquals",
229
- argv: [
230
- "aws",
231
- {
232
- fn: "getAttr",
233
- argv: [
234
- {
235
- ref: "PartitionResult",
236
- },
237
- "name",
238
- ],
239
- },
240
- ],
241
- },
242
- ],
243
- endpoint: {
244
- url: "https://api-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}",
245
- properties: {},
246
- headers: {},
247
- },
248
- type: "endpoint",
249
- },
250
- {
251
- conditions: [
252
- {
253
- fn: "stringEquals",
254
- argv: [
255
- {
256
- ref: "Region",
257
- },
258
- "us-gov-west-1-secondary",
259
- ],
260
- },
261
- ],
262
- endpoint: {
263
- url: "https://api.sagemaker.us-gov-west-1.amazonaws.com",
264
- properties: {},
265
- headers: {},
266
- },
267
- type: "endpoint",
268
- },
269
- {
270
- conditions: [
271
- {
272
- fn: "stringEquals",
273
- argv: [
274
- "aws-us-gov",
275
- {
276
- fn: "getAttr",
277
- argv: [
278
- {
279
- ref: "PartitionResult",
280
- },
281
- "name",
282
- ],
283
- },
284
- ],
285
- },
286
- ],
287
- endpoint: {
288
- url: "https://api-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}",
289
- properties: {},
290
- headers: {},
291
- },
292
- type: "endpoint",
293
- },
294
- {
295
- conditions: [],
296
- endpoint: {
297
- url: "https://api.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",
298
- properties: {},
299
- headers: {},
300
- },
301
- type: "endpoint",
302
- },
303
- ],
304
- },
305
- ],
306
- },
307
- {
308
- conditions: [],
309
- error: "FIPS is enabled but this partition does not support FIPS",
310
- type: "error",
311
- },
312
- ],
313
- },
314
- {
315
- conditions: [
316
- {
317
- fn: "booleanEquals",
318
- argv: [
319
- {
320
- ref: "UseDualStack",
321
- },
322
- true,
323
- ],
324
- },
325
- ],
326
- type: "tree",
327
- rules: [
328
- {
329
- conditions: [
330
- {
331
- fn: "booleanEquals",
332
- argv: [
333
- true,
334
- {
335
- fn: "getAttr",
336
- argv: [
337
- {
338
- ref: "PartitionResult",
339
- },
340
- "supportsDualStack",
341
- ],
342
- },
343
- ],
344
- },
345
- ],
346
- type: "tree",
347
- rules: [
348
- {
349
- conditions: [],
350
- endpoint: {
351
- url: "https://api.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",
352
- properties: {},
353
- headers: {},
354
- },
355
- type: "endpoint",
356
- },
357
- ],
358
- },
359
- {
360
- conditions: [],
361
- error: "DualStack is enabled but this partition does not support DualStack",
362
- type: "error",
363
- },
364
- ],
365
- },
366
- {
367
- conditions: [],
368
- endpoint: {
369
- url: "https://api.sagemaker.{Region}.{PartitionResult#dnsSuffix}",
370
- properties: {},
371
- headers: {},
372
- },
373
- type: "endpoint",
374
- },
375
- ],
376
- },
377
- ],
378
- };
4
+ const u = "fn", v = "argv", w = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "stringEquals", i = { "required": true, "default": false, "type": "Boolean" }, j = { [w]: "Region" }, k = { [w]: "Endpoint" }, l = { [u]: "booleanEquals", [v]: [{ [w]: "UseFIPS" }, true] }, m = { [u]: "booleanEquals", [v]: [{ [w]: "UseDualStack" }, true] }, n = {}, o = { [u]: "booleanEquals", [v]: [true, { [u]: "getAttr", [v]: [{ [w]: d }, "supportsFIPS"] }] }, p = { [u]: "booleanEquals", [v]: [true, { [u]: "getAttr", [v]: [{ [w]: d }, "supportsDualStack"] }] }, q = { [u]: "getAttr", [v]: [{ [w]: d }, "name"] }, r = { "url": "https://api-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, s = [l], t = [m];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [u]: "aws.partition", [v]: [j], assign: d }], type: e, rules: [{ conditions: [{ [u]: "isSet", [v]: [k] }], type: e, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: k, properties: n, headers: n }, type: g }] }] }, { conditions: [l, m], type: e, rules: [{ conditions: [o, p], type: e, rules: [{ endpoint: { url: "https://api.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: s, type: e, rules: [{ conditions: [o], type: e, rules: [{ type: e, rules: [{ conditions: [{ [u]: h, [v]: ["aws", q] }], endpoint: r, type: g }, { conditions: [{ [u]: h, [v]: [j, "us-gov-west-1-secondary"] }], endpoint: { url: "https://api.sagemaker.us-gov-west-1.amazonaws.com", properties: n, headers: n }, type: g }, { conditions: [{ [u]: h, [v]: ["aws-us-gov", q] }], endpoint: r, type: g }, { endpoint: { url: "https://api.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: t, type: e, rules: [{ conditions: [p], type: e, rules: [{ endpoint: { url: "https://api.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://api.sagemaker.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: g }] }] };
7
+ exports.ruleSet = _data;
@@ -481,9 +481,17 @@ var AutoMLMetricEnum;
481
481
  (function (AutoMLMetricEnum) {
482
482
  AutoMLMetricEnum["ACCURACY"] = "Accuracy";
483
483
  AutoMLMetricEnum["AUC"] = "AUC";
484
+ AutoMLMetricEnum["BALANCED_ACCURACY"] = "BalancedAccuracy";
484
485
  AutoMLMetricEnum["F1"] = "F1";
485
486
  AutoMLMetricEnum["F1_MACRO"] = "F1macro";
487
+ AutoMLMetricEnum["MAE"] = "MAE";
486
488
  AutoMLMetricEnum["MSE"] = "MSE";
489
+ AutoMLMetricEnum["PRECISION"] = "Precision";
490
+ AutoMLMetricEnum["PRECISION_MACRO"] = "PrecisionMacro";
491
+ AutoMLMetricEnum["R2"] = "R2";
492
+ AutoMLMetricEnum["RECALL"] = "Recall";
493
+ AutoMLMetricEnum["RECALL_MACRO"] = "RecallMacro";
494
+ AutoMLMetricEnum["RMSE"] = "RMSE";
487
495
  })(AutoMLMetricEnum = exports.AutoMLMetricEnum || (exports.AutoMLMetricEnum = {}));
488
496
  var MetricSetSource;
489
497
  (function (MetricSetSource) {
@@ -15189,6 +15189,9 @@ const serializeAws_json1_1DomainSettingsForUpdate = (input, context) => {
15189
15189
  ...(input.RStudioServerProDomainSettingsForUpdate != null && {
15190
15190
  RStudioServerProDomainSettingsForUpdate: serializeAws_json1_1RStudioServerProDomainSettingsForUpdate(input.RStudioServerProDomainSettingsForUpdate, context),
15191
15191
  }),
15192
+ ...(input.SecurityGroupIds != null && {
15193
+ SecurityGroupIds: serializeAws_json1_1DomainSecurityGroupIds(input.SecurityGroupIds, context),
15194
+ }),
15192
15195
  };
15193
15196
  };
15194
15197
  const serializeAws_json1_1DriftCheckBaselines = (input, context) => {
@@ -18335,6 +18338,8 @@ const serializeAws_json1_1RStudioServerProDomainSettingsForUpdate = (input, cont
18335
18338
  DefaultResourceSpec: serializeAws_json1_1ResourceSpec(input.DefaultResourceSpec, context),
18336
18339
  }),
18337
18340
  ...(input.DomainExecutionRoleArn != null && { DomainExecutionRoleArn: input.DomainExecutionRoleArn }),
18341
+ ...(input.RStudioConnectUrl != null && { RStudioConnectUrl: input.RStudioConnectUrl }),
18342
+ ...(input.RStudioPackageManagerUrl != null && { RStudioPackageManagerUrl: input.RStudioPackageManagerUrl }),
18338
18343
  };
18339
18344
  };
18340
18345
  const serializeAws_json1_1RuleParameters = (input, context) => {
@@ -18998,6 +19003,7 @@ const serializeAws_json1_1UpdateDevicesRequest = (input, context) => {
18998
19003
  };
18999
19004
  const serializeAws_json1_1UpdateDomainRequest = (input, context) => {
19000
19005
  return {
19006
+ ...(input.AppSecurityGroupManagement != null && { AppSecurityGroupManagement: input.AppSecurityGroupManagement }),
19001
19007
  ...(input.DefaultSpaceSettings != null && {
19002
19008
  DefaultSpaceSettings: serializeAws_json1_1DefaultSpaceSettings(input.DefaultSpaceSettings, context),
19003
19009
  }),