@aws-sdk/client-sagemaker-featurestore-runtime 3.310.0 → 3.315.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.
|
@@ -12,9 +12,9 @@ const se_BatchGetRecordCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetRecord";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
Identifiers: (_) => (0, smithy_client_1._json)(_),
|
|
17
|
+
}));
|
|
18
18
|
return new protocol_http_1.HttpRequest({
|
|
19
19
|
protocol,
|
|
20
20
|
hostname,
|
|
@@ -31,7 +31,7 @@ const se_DeleteRecordCommand = async (input, context) => {
|
|
|
31
31
|
const headers = {};
|
|
32
32
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}";
|
|
33
33
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
34
|
-
const query = map({
|
|
34
|
+
const query = (0, smithy_client_1.map)({
|
|
35
35
|
RecordIdentifierValueAsString: [
|
|
36
36
|
,
|
|
37
37
|
(0, smithy_client_1.expectNonNull)(input.RecordIdentifierValueAsString, `RecordIdentifierValueAsString`),
|
|
@@ -61,7 +61,7 @@ const se_GetRecordCommand = async (input, context) => {
|
|
|
61
61
|
const headers = {};
|
|
62
62
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}";
|
|
63
63
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
64
|
-
const query = map({
|
|
64
|
+
const query = (0, smithy_client_1.map)({
|
|
65
65
|
RecordIdentifierValueAsString: [
|
|
66
66
|
,
|
|
67
67
|
(0, smithy_client_1.expectNonNull)(input.RecordIdentifierValueAsString, `RecordIdentifierValueAsString`),
|
|
@@ -92,10 +92,10 @@ const se_PutRecordCommand = async (input, context) => {
|
|
|
92
92
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}";
|
|
93
93
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify({
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
});
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
96
|
+
Record: (_) => (0, smithy_client_1._json)(_),
|
|
97
|
+
TargetStores: (_) => (0, smithy_client_1._json)(_),
|
|
98
|
+
}));
|
|
99
99
|
return new protocol_http_1.HttpRequest({
|
|
100
100
|
protocol,
|
|
101
101
|
hostname,
|
|
@@ -111,19 +111,16 @@ const de_BatchGetRecordCommand = async (output, context) => {
|
|
|
111
111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
112
112
|
return de_BatchGetRecordCommandError(output, context);
|
|
113
113
|
}
|
|
114
|
-
const contents = map({
|
|
114
|
+
const contents = (0, smithy_client_1.map)({
|
|
115
115
|
$metadata: deserializeMetadata(output),
|
|
116
116
|
});
|
|
117
117
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (data.UnprocessedIdentifiers != null) {
|
|
125
|
-
contents.UnprocessedIdentifiers = de_UnprocessedIdentifiers(data.UnprocessedIdentifiers, context);
|
|
126
|
-
}
|
|
118
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
119
|
+
Errors: smithy_client_1._json,
|
|
120
|
+
Records: smithy_client_1._json,
|
|
121
|
+
UnprocessedIdentifiers: smithy_client_1._json,
|
|
122
|
+
});
|
|
123
|
+
Object.assign(contents, doc);
|
|
127
124
|
return contents;
|
|
128
125
|
};
|
|
129
126
|
exports.de_BatchGetRecordCommand = de_BatchGetRecordCommand;
|
|
@@ -148,10 +145,9 @@ const de_BatchGetRecordCommandError = async (output, context) => {
|
|
|
148
145
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
149
146
|
default:
|
|
150
147
|
const parsedBody = parsedOutput.body;
|
|
151
|
-
|
|
148
|
+
return throwDefaultError({
|
|
152
149
|
output,
|
|
153
150
|
parsedBody,
|
|
154
|
-
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
155
151
|
errorCode,
|
|
156
152
|
});
|
|
157
153
|
}
|
|
@@ -160,7 +156,7 @@ const de_DeleteRecordCommand = async (output, context) => {
|
|
|
160
156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
161
157
|
return de_DeleteRecordCommandError(output, context);
|
|
162
158
|
}
|
|
163
|
-
const contents = map({
|
|
159
|
+
const contents = (0, smithy_client_1.map)({
|
|
164
160
|
$metadata: deserializeMetadata(output),
|
|
165
161
|
});
|
|
166
162
|
await collectBody(output.body, context);
|
|
@@ -188,10 +184,9 @@ const de_DeleteRecordCommandError = async (output, context) => {
|
|
|
188
184
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
189
185
|
default:
|
|
190
186
|
const parsedBody = parsedOutput.body;
|
|
191
|
-
|
|
187
|
+
return throwDefaultError({
|
|
192
188
|
output,
|
|
193
189
|
parsedBody,
|
|
194
|
-
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
195
190
|
errorCode,
|
|
196
191
|
});
|
|
197
192
|
}
|
|
@@ -200,13 +195,14 @@ const de_GetRecordCommand = async (output, context) => {
|
|
|
200
195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
201
196
|
return de_GetRecordCommandError(output, context);
|
|
202
197
|
}
|
|
203
|
-
const contents = map({
|
|
198
|
+
const contents = (0, smithy_client_1.map)({
|
|
204
199
|
$metadata: deserializeMetadata(output),
|
|
205
200
|
});
|
|
206
201
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
202
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
203
|
+
Record: smithy_client_1._json,
|
|
204
|
+
});
|
|
205
|
+
Object.assign(contents, doc);
|
|
210
206
|
return contents;
|
|
211
207
|
};
|
|
212
208
|
exports.de_GetRecordCommand = de_GetRecordCommand;
|
|
@@ -234,10 +230,9 @@ const de_GetRecordCommandError = async (output, context) => {
|
|
|
234
230
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
235
231
|
default:
|
|
236
232
|
const parsedBody = parsedOutput.body;
|
|
237
|
-
|
|
233
|
+
return throwDefaultError({
|
|
238
234
|
output,
|
|
239
235
|
parsedBody,
|
|
240
|
-
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
241
236
|
errorCode,
|
|
242
237
|
});
|
|
243
238
|
}
|
|
@@ -246,7 +241,7 @@ const de_PutRecordCommand = async (output, context) => {
|
|
|
246
241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
247
242
|
return de_PutRecordCommandError(output, context);
|
|
248
243
|
}
|
|
249
|
-
const contents = map({
|
|
244
|
+
const contents = (0, smithy_client_1.map)({
|
|
250
245
|
$metadata: deserializeMetadata(output),
|
|
251
246
|
});
|
|
252
247
|
await collectBody(output.body, context);
|
|
@@ -274,21 +269,21 @@ const de_PutRecordCommandError = async (output, context) => {
|
|
|
274
269
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
275
270
|
default:
|
|
276
271
|
const parsedBody = parsedOutput.body;
|
|
277
|
-
|
|
272
|
+
return throwDefaultError({
|
|
278
273
|
output,
|
|
279
274
|
parsedBody,
|
|
280
|
-
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
281
275
|
errorCode,
|
|
282
276
|
});
|
|
283
277
|
}
|
|
284
278
|
};
|
|
285
|
-
const
|
|
279
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException);
|
|
286
280
|
const de_AccessForbiddenRes = async (parsedOutput, context) => {
|
|
287
|
-
const contents = map({});
|
|
281
|
+
const contents = (0, smithy_client_1.map)({});
|
|
288
282
|
const data = parsedOutput.body;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
283
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
284
|
+
Message: smithy_client_1.expectString,
|
|
285
|
+
});
|
|
286
|
+
Object.assign(contents, doc);
|
|
292
287
|
const exception = new models_0_1.AccessForbidden({
|
|
293
288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
294
289
|
...contents,
|
|
@@ -296,11 +291,12 @@ const de_AccessForbiddenRes = async (parsedOutput, context) => {
|
|
|
296
291
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
297
292
|
};
|
|
298
293
|
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
299
|
-
const contents = map({});
|
|
294
|
+
const contents = (0, smithy_client_1.map)({});
|
|
300
295
|
const data = parsedOutput.body;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
296
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
297
|
+
Message: smithy_client_1.expectString,
|
|
298
|
+
});
|
|
299
|
+
Object.assign(contents, doc);
|
|
304
300
|
const exception = new models_0_1.InternalFailure({
|
|
305
301
|
$metadata: deserializeMetadata(parsedOutput),
|
|
306
302
|
...contents,
|
|
@@ -308,11 +304,12 @@ const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
|
308
304
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
309
305
|
};
|
|
310
306
|
const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
311
|
-
const contents = map({});
|
|
307
|
+
const contents = (0, smithy_client_1.map)({});
|
|
312
308
|
const data = parsedOutput.body;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
309
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
310
|
+
Message: smithy_client_1.expectString,
|
|
311
|
+
});
|
|
312
|
+
Object.assign(contents, doc);
|
|
316
313
|
const exception = new models_0_1.ResourceNotFound({
|
|
317
314
|
$metadata: deserializeMetadata(parsedOutput),
|
|
318
315
|
...contents,
|
|
@@ -320,11 +317,12 @@ const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
|
320
317
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
321
318
|
};
|
|
322
319
|
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
323
|
-
const contents = map({});
|
|
320
|
+
const contents = (0, smithy_client_1.map)({});
|
|
324
321
|
const data = parsedOutput.body;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
}
|
|
322
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
323
|
+
Message: smithy_client_1.expectString,
|
|
324
|
+
});
|
|
325
|
+
Object.assign(contents, doc);
|
|
328
326
|
const exception = new models_0_1.ServiceUnavailable({
|
|
329
327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
330
328
|
...contents,
|
|
@@ -332,163 +330,18 @@ const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
|
332
330
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
333
331
|
};
|
|
334
332
|
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
335
|
-
const contents = map({});
|
|
333
|
+
const contents = (0, smithy_client_1.map)({});
|
|
336
334
|
const data = parsedOutput.body;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
335
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
336
|
+
Message: smithy_client_1.expectString,
|
|
337
|
+
});
|
|
338
|
+
Object.assign(contents, doc);
|
|
340
339
|
const exception = new models_0_1.ValidationError({
|
|
341
340
|
$metadata: deserializeMetadata(parsedOutput),
|
|
342
341
|
...contents,
|
|
343
342
|
});
|
|
344
343
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
345
344
|
};
|
|
346
|
-
const se_BatchGetRecordIdentifier = (input, context) => {
|
|
347
|
-
return {
|
|
348
|
-
...(input.FeatureGroupName != null && { FeatureGroupName: input.FeatureGroupName }),
|
|
349
|
-
...(input.FeatureNames != null && { FeatureNames: se_FeatureNames(input.FeatureNames, context) }),
|
|
350
|
-
...(input.RecordIdentifiersValueAsString != null && {
|
|
351
|
-
RecordIdentifiersValueAsString: se_RecordIdentifiers(input.RecordIdentifiersValueAsString, context),
|
|
352
|
-
}),
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
|
-
const se_BatchGetRecordIdentifiers = (input, context) => {
|
|
356
|
-
return input
|
|
357
|
-
.filter((e) => e != null)
|
|
358
|
-
.map((entry) => {
|
|
359
|
-
return se_BatchGetRecordIdentifier(entry, context);
|
|
360
|
-
});
|
|
361
|
-
};
|
|
362
|
-
const se_FeatureNames = (input, context) => {
|
|
363
|
-
return input
|
|
364
|
-
.filter((e) => e != null)
|
|
365
|
-
.map((entry) => {
|
|
366
|
-
return entry;
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
const se_FeatureValue = (input, context) => {
|
|
370
|
-
return {
|
|
371
|
-
...(input.FeatureName != null && { FeatureName: input.FeatureName }),
|
|
372
|
-
...(input.ValueAsString != null && { ValueAsString: input.ValueAsString }),
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
const se_Record = (input, context) => {
|
|
376
|
-
return input
|
|
377
|
-
.filter((e) => e != null)
|
|
378
|
-
.map((entry) => {
|
|
379
|
-
return se_FeatureValue(entry, context);
|
|
380
|
-
});
|
|
381
|
-
};
|
|
382
|
-
const se_RecordIdentifiers = (input, context) => {
|
|
383
|
-
return input
|
|
384
|
-
.filter((e) => e != null)
|
|
385
|
-
.map((entry) => {
|
|
386
|
-
return entry;
|
|
387
|
-
});
|
|
388
|
-
};
|
|
389
|
-
const se_TargetStores = (input, context) => {
|
|
390
|
-
return input
|
|
391
|
-
.filter((e) => e != null)
|
|
392
|
-
.map((entry) => {
|
|
393
|
-
return entry;
|
|
394
|
-
});
|
|
395
|
-
};
|
|
396
|
-
const de_BatchGetRecordError = (output, context) => {
|
|
397
|
-
return {
|
|
398
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
399
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
400
|
-
FeatureGroupName: (0, smithy_client_1.expectString)(output.FeatureGroupName),
|
|
401
|
-
RecordIdentifierValueAsString: (0, smithy_client_1.expectString)(output.RecordIdentifierValueAsString),
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
const de_BatchGetRecordErrors = (output, context) => {
|
|
405
|
-
const retVal = (output || [])
|
|
406
|
-
.filter((e) => e != null)
|
|
407
|
-
.map((entry) => {
|
|
408
|
-
if (entry === null) {
|
|
409
|
-
return null;
|
|
410
|
-
}
|
|
411
|
-
return de_BatchGetRecordError(entry, context);
|
|
412
|
-
});
|
|
413
|
-
return retVal;
|
|
414
|
-
};
|
|
415
|
-
const de_BatchGetRecordIdentifier = (output, context) => {
|
|
416
|
-
return {
|
|
417
|
-
FeatureGroupName: (0, smithy_client_1.expectString)(output.FeatureGroupName),
|
|
418
|
-
FeatureNames: output.FeatureNames != null ? de_FeatureNames(output.FeatureNames, context) : undefined,
|
|
419
|
-
RecordIdentifiersValueAsString: output.RecordIdentifiersValueAsString != null
|
|
420
|
-
? de_RecordIdentifiers(output.RecordIdentifiersValueAsString, context)
|
|
421
|
-
: undefined,
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
const de_BatchGetRecordResultDetail = (output, context) => {
|
|
425
|
-
return {
|
|
426
|
-
FeatureGroupName: (0, smithy_client_1.expectString)(output.FeatureGroupName),
|
|
427
|
-
Record: output.Record != null ? de_Record(output.Record, context) : undefined,
|
|
428
|
-
RecordIdentifierValueAsString: (0, smithy_client_1.expectString)(output.RecordIdentifierValueAsString),
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
const de_BatchGetRecordResultDetails = (output, context) => {
|
|
432
|
-
const retVal = (output || [])
|
|
433
|
-
.filter((e) => e != null)
|
|
434
|
-
.map((entry) => {
|
|
435
|
-
if (entry === null) {
|
|
436
|
-
return null;
|
|
437
|
-
}
|
|
438
|
-
return de_BatchGetRecordResultDetail(entry, context);
|
|
439
|
-
});
|
|
440
|
-
return retVal;
|
|
441
|
-
};
|
|
442
|
-
const de_FeatureNames = (output, context) => {
|
|
443
|
-
const retVal = (output || [])
|
|
444
|
-
.filter((e) => e != null)
|
|
445
|
-
.map((entry) => {
|
|
446
|
-
if (entry === null) {
|
|
447
|
-
return null;
|
|
448
|
-
}
|
|
449
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
450
|
-
});
|
|
451
|
-
return retVal;
|
|
452
|
-
};
|
|
453
|
-
const de_FeatureValue = (output, context) => {
|
|
454
|
-
return {
|
|
455
|
-
FeatureName: (0, smithy_client_1.expectString)(output.FeatureName),
|
|
456
|
-
ValueAsString: (0, smithy_client_1.expectString)(output.ValueAsString),
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
const de_Record = (output, context) => {
|
|
460
|
-
const retVal = (output || [])
|
|
461
|
-
.filter((e) => e != null)
|
|
462
|
-
.map((entry) => {
|
|
463
|
-
if (entry === null) {
|
|
464
|
-
return null;
|
|
465
|
-
}
|
|
466
|
-
return de_FeatureValue(entry, context);
|
|
467
|
-
});
|
|
468
|
-
return retVal;
|
|
469
|
-
};
|
|
470
|
-
const de_RecordIdentifiers = (output, context) => {
|
|
471
|
-
const retVal = (output || [])
|
|
472
|
-
.filter((e) => e != null)
|
|
473
|
-
.map((entry) => {
|
|
474
|
-
if (entry === null) {
|
|
475
|
-
return null;
|
|
476
|
-
}
|
|
477
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
478
|
-
});
|
|
479
|
-
return retVal;
|
|
480
|
-
};
|
|
481
|
-
const de_UnprocessedIdentifiers = (output, context) => {
|
|
482
|
-
const retVal = (output || [])
|
|
483
|
-
.filter((e) => e != null)
|
|
484
|
-
.map((entry) => {
|
|
485
|
-
if (entry === null) {
|
|
486
|
-
return null;
|
|
487
|
-
}
|
|
488
|
-
return de_BatchGetRecordIdentifier(entry, context);
|
|
489
|
-
});
|
|
490
|
-
return retVal;
|
|
491
|
-
};
|
|
492
345
|
const deserializeMetadata = (output) => ({
|
|
493
346
|
httpStatusCode: output.statusCode,
|
|
494
347
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessForbidden, InternalFailure, ResourceNotFound, ServiceUnavailable, ValidationError, } from "../models/models_0";
|
|
4
4
|
import { SageMakerFeatureStoreRuntimeServiceException as __BaseException } from "../models/SageMakerFeatureStoreRuntimeServiceException";
|
|
5
5
|
export const se_BatchGetRecordCommand = async (input, context) => {
|
|
@@ -9,9 +9,9 @@ export const se_BatchGetRecordCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetRecord";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
Identifiers: (_) => _json(_),
|
|
14
|
+
}));
|
|
15
15
|
return new __HttpRequest({
|
|
16
16
|
protocol,
|
|
17
17
|
hostname,
|
|
@@ -86,10 +86,10 @@ export const se_PutRecordCommand = async (input, context) => {
|
|
|
86
86
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}";
|
|
87
87
|
resolvedPath = __resolvedPath(resolvedPath, input, "FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify({
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
});
|
|
89
|
+
body = JSON.stringify(take(input, {
|
|
90
|
+
Record: (_) => _json(_),
|
|
91
|
+
TargetStores: (_) => _json(_),
|
|
92
|
+
}));
|
|
93
93
|
return new __HttpRequest({
|
|
94
94
|
protocol,
|
|
95
95
|
hostname,
|
|
@@ -108,15 +108,12 @@ export const de_BatchGetRecordCommand = async (output, context) => {
|
|
|
108
108
|
$metadata: deserializeMetadata(output),
|
|
109
109
|
});
|
|
110
110
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (data.UnprocessedIdentifiers != null) {
|
|
118
|
-
contents.UnprocessedIdentifiers = de_UnprocessedIdentifiers(data.UnprocessedIdentifiers, context);
|
|
119
|
-
}
|
|
111
|
+
const doc = take(data, {
|
|
112
|
+
Errors: _json,
|
|
113
|
+
Records: _json,
|
|
114
|
+
UnprocessedIdentifiers: _json,
|
|
115
|
+
});
|
|
116
|
+
Object.assign(contents, doc);
|
|
120
117
|
return contents;
|
|
121
118
|
};
|
|
122
119
|
const de_BatchGetRecordCommandError = async (output, context) => {
|
|
@@ -140,10 +137,9 @@ const de_BatchGetRecordCommandError = async (output, context) => {
|
|
|
140
137
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
141
138
|
default:
|
|
142
139
|
const parsedBody = parsedOutput.body;
|
|
143
|
-
throwDefaultError({
|
|
140
|
+
return throwDefaultError({
|
|
144
141
|
output,
|
|
145
142
|
parsedBody,
|
|
146
|
-
exceptionCtor: __BaseException,
|
|
147
143
|
errorCode,
|
|
148
144
|
});
|
|
149
145
|
}
|
|
@@ -179,10 +175,9 @@ const de_DeleteRecordCommandError = async (output, context) => {
|
|
|
179
175
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
180
176
|
default:
|
|
181
177
|
const parsedBody = parsedOutput.body;
|
|
182
|
-
throwDefaultError({
|
|
178
|
+
return throwDefaultError({
|
|
183
179
|
output,
|
|
184
180
|
parsedBody,
|
|
185
|
-
exceptionCtor: __BaseException,
|
|
186
181
|
errorCode,
|
|
187
182
|
});
|
|
188
183
|
}
|
|
@@ -195,9 +190,10 @@ export const de_GetRecordCommand = async (output, context) => {
|
|
|
195
190
|
$metadata: deserializeMetadata(output),
|
|
196
191
|
});
|
|
197
192
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
193
|
+
const doc = take(data, {
|
|
194
|
+
Record: _json,
|
|
195
|
+
});
|
|
196
|
+
Object.assign(contents, doc);
|
|
201
197
|
return contents;
|
|
202
198
|
};
|
|
203
199
|
const de_GetRecordCommandError = async (output, context) => {
|
|
@@ -224,10 +220,9 @@ const de_GetRecordCommandError = async (output, context) => {
|
|
|
224
220
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
225
221
|
default:
|
|
226
222
|
const parsedBody = parsedOutput.body;
|
|
227
|
-
throwDefaultError({
|
|
223
|
+
return throwDefaultError({
|
|
228
224
|
output,
|
|
229
225
|
parsedBody,
|
|
230
|
-
exceptionCtor: __BaseException,
|
|
231
226
|
errorCode,
|
|
232
227
|
});
|
|
233
228
|
}
|
|
@@ -263,21 +258,21 @@ const de_PutRecordCommandError = async (output, context) => {
|
|
|
263
258
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
264
259
|
default:
|
|
265
260
|
const parsedBody = parsedOutput.body;
|
|
266
|
-
throwDefaultError({
|
|
261
|
+
return throwDefaultError({
|
|
267
262
|
output,
|
|
268
263
|
parsedBody,
|
|
269
|
-
exceptionCtor: __BaseException,
|
|
270
264
|
errorCode,
|
|
271
265
|
});
|
|
272
266
|
}
|
|
273
267
|
};
|
|
274
|
-
const
|
|
268
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
275
269
|
const de_AccessForbiddenRes = async (parsedOutput, context) => {
|
|
276
270
|
const contents = map({});
|
|
277
271
|
const data = parsedOutput.body;
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
272
|
+
const doc = take(data, {
|
|
273
|
+
Message: __expectString,
|
|
274
|
+
});
|
|
275
|
+
Object.assign(contents, doc);
|
|
281
276
|
const exception = new AccessForbidden({
|
|
282
277
|
$metadata: deserializeMetadata(parsedOutput),
|
|
283
278
|
...contents,
|
|
@@ -287,9 +282,10 @@ const de_AccessForbiddenRes = async (parsedOutput, context) => {
|
|
|
287
282
|
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
288
283
|
const contents = map({});
|
|
289
284
|
const data = parsedOutput.body;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}
|
|
285
|
+
const doc = take(data, {
|
|
286
|
+
Message: __expectString,
|
|
287
|
+
});
|
|
288
|
+
Object.assign(contents, doc);
|
|
293
289
|
const exception = new InternalFailure({
|
|
294
290
|
$metadata: deserializeMetadata(parsedOutput),
|
|
295
291
|
...contents,
|
|
@@ -299,9 +295,10 @@ const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
|
299
295
|
const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
300
296
|
const contents = map({});
|
|
301
297
|
const data = parsedOutput.body;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
298
|
+
const doc = take(data, {
|
|
299
|
+
Message: __expectString,
|
|
300
|
+
});
|
|
301
|
+
Object.assign(contents, doc);
|
|
305
302
|
const exception = new ResourceNotFound({
|
|
306
303
|
$metadata: deserializeMetadata(parsedOutput),
|
|
307
304
|
...contents,
|
|
@@ -311,9 +308,10 @@ const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
|
311
308
|
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
312
309
|
const contents = map({});
|
|
313
310
|
const data = parsedOutput.body;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
311
|
+
const doc = take(data, {
|
|
312
|
+
Message: __expectString,
|
|
313
|
+
});
|
|
314
|
+
Object.assign(contents, doc);
|
|
317
315
|
const exception = new ServiceUnavailable({
|
|
318
316
|
$metadata: deserializeMetadata(parsedOutput),
|
|
319
317
|
...contents,
|
|
@@ -323,161 +321,16 @@ const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
|
323
321
|
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
324
322
|
const contents = map({});
|
|
325
323
|
const data = parsedOutput.body;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
324
|
+
const doc = take(data, {
|
|
325
|
+
Message: __expectString,
|
|
326
|
+
});
|
|
327
|
+
Object.assign(contents, doc);
|
|
329
328
|
const exception = new ValidationError({
|
|
330
329
|
$metadata: deserializeMetadata(parsedOutput),
|
|
331
330
|
...contents,
|
|
332
331
|
});
|
|
333
332
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
334
333
|
};
|
|
335
|
-
const se_BatchGetRecordIdentifier = (input, context) => {
|
|
336
|
-
return {
|
|
337
|
-
...(input.FeatureGroupName != null && { FeatureGroupName: input.FeatureGroupName }),
|
|
338
|
-
...(input.FeatureNames != null && { FeatureNames: se_FeatureNames(input.FeatureNames, context) }),
|
|
339
|
-
...(input.RecordIdentifiersValueAsString != null && {
|
|
340
|
-
RecordIdentifiersValueAsString: se_RecordIdentifiers(input.RecordIdentifiersValueAsString, context),
|
|
341
|
-
}),
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
const se_BatchGetRecordIdentifiers = (input, context) => {
|
|
345
|
-
return input
|
|
346
|
-
.filter((e) => e != null)
|
|
347
|
-
.map((entry) => {
|
|
348
|
-
return se_BatchGetRecordIdentifier(entry, context);
|
|
349
|
-
});
|
|
350
|
-
};
|
|
351
|
-
const se_FeatureNames = (input, context) => {
|
|
352
|
-
return input
|
|
353
|
-
.filter((e) => e != null)
|
|
354
|
-
.map((entry) => {
|
|
355
|
-
return entry;
|
|
356
|
-
});
|
|
357
|
-
};
|
|
358
|
-
const se_FeatureValue = (input, context) => {
|
|
359
|
-
return {
|
|
360
|
-
...(input.FeatureName != null && { FeatureName: input.FeatureName }),
|
|
361
|
-
...(input.ValueAsString != null && { ValueAsString: input.ValueAsString }),
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
const se_Record = (input, context) => {
|
|
365
|
-
return input
|
|
366
|
-
.filter((e) => e != null)
|
|
367
|
-
.map((entry) => {
|
|
368
|
-
return se_FeatureValue(entry, context);
|
|
369
|
-
});
|
|
370
|
-
};
|
|
371
|
-
const se_RecordIdentifiers = (input, context) => {
|
|
372
|
-
return input
|
|
373
|
-
.filter((e) => e != null)
|
|
374
|
-
.map((entry) => {
|
|
375
|
-
return entry;
|
|
376
|
-
});
|
|
377
|
-
};
|
|
378
|
-
const se_TargetStores = (input, context) => {
|
|
379
|
-
return input
|
|
380
|
-
.filter((e) => e != null)
|
|
381
|
-
.map((entry) => {
|
|
382
|
-
return entry;
|
|
383
|
-
});
|
|
384
|
-
};
|
|
385
|
-
const de_BatchGetRecordError = (output, context) => {
|
|
386
|
-
return {
|
|
387
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
388
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
389
|
-
FeatureGroupName: __expectString(output.FeatureGroupName),
|
|
390
|
-
RecordIdentifierValueAsString: __expectString(output.RecordIdentifierValueAsString),
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
const de_BatchGetRecordErrors = (output, context) => {
|
|
394
|
-
const retVal = (output || [])
|
|
395
|
-
.filter((e) => e != null)
|
|
396
|
-
.map((entry) => {
|
|
397
|
-
if (entry === null) {
|
|
398
|
-
return null;
|
|
399
|
-
}
|
|
400
|
-
return de_BatchGetRecordError(entry, context);
|
|
401
|
-
});
|
|
402
|
-
return retVal;
|
|
403
|
-
};
|
|
404
|
-
const de_BatchGetRecordIdentifier = (output, context) => {
|
|
405
|
-
return {
|
|
406
|
-
FeatureGroupName: __expectString(output.FeatureGroupName),
|
|
407
|
-
FeatureNames: output.FeatureNames != null ? de_FeatureNames(output.FeatureNames, context) : undefined,
|
|
408
|
-
RecordIdentifiersValueAsString: output.RecordIdentifiersValueAsString != null
|
|
409
|
-
? de_RecordIdentifiers(output.RecordIdentifiersValueAsString, context)
|
|
410
|
-
: undefined,
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
const de_BatchGetRecordResultDetail = (output, context) => {
|
|
414
|
-
return {
|
|
415
|
-
FeatureGroupName: __expectString(output.FeatureGroupName),
|
|
416
|
-
Record: output.Record != null ? de_Record(output.Record, context) : undefined,
|
|
417
|
-
RecordIdentifierValueAsString: __expectString(output.RecordIdentifierValueAsString),
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
const de_BatchGetRecordResultDetails = (output, context) => {
|
|
421
|
-
const retVal = (output || [])
|
|
422
|
-
.filter((e) => e != null)
|
|
423
|
-
.map((entry) => {
|
|
424
|
-
if (entry === null) {
|
|
425
|
-
return null;
|
|
426
|
-
}
|
|
427
|
-
return de_BatchGetRecordResultDetail(entry, context);
|
|
428
|
-
});
|
|
429
|
-
return retVal;
|
|
430
|
-
};
|
|
431
|
-
const de_FeatureNames = (output, context) => {
|
|
432
|
-
const retVal = (output || [])
|
|
433
|
-
.filter((e) => e != null)
|
|
434
|
-
.map((entry) => {
|
|
435
|
-
if (entry === null) {
|
|
436
|
-
return null;
|
|
437
|
-
}
|
|
438
|
-
return __expectString(entry);
|
|
439
|
-
});
|
|
440
|
-
return retVal;
|
|
441
|
-
};
|
|
442
|
-
const de_FeatureValue = (output, context) => {
|
|
443
|
-
return {
|
|
444
|
-
FeatureName: __expectString(output.FeatureName),
|
|
445
|
-
ValueAsString: __expectString(output.ValueAsString),
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
const de_Record = (output, context) => {
|
|
449
|
-
const retVal = (output || [])
|
|
450
|
-
.filter((e) => e != null)
|
|
451
|
-
.map((entry) => {
|
|
452
|
-
if (entry === null) {
|
|
453
|
-
return null;
|
|
454
|
-
}
|
|
455
|
-
return de_FeatureValue(entry, context);
|
|
456
|
-
});
|
|
457
|
-
return retVal;
|
|
458
|
-
};
|
|
459
|
-
const de_RecordIdentifiers = (output, context) => {
|
|
460
|
-
const retVal = (output || [])
|
|
461
|
-
.filter((e) => e != null)
|
|
462
|
-
.map((entry) => {
|
|
463
|
-
if (entry === null) {
|
|
464
|
-
return null;
|
|
465
|
-
}
|
|
466
|
-
return __expectString(entry);
|
|
467
|
-
});
|
|
468
|
-
return retVal;
|
|
469
|
-
};
|
|
470
|
-
const de_UnprocessedIdentifiers = (output, context) => {
|
|
471
|
-
const retVal = (output || [])
|
|
472
|
-
.filter((e) => e != null)
|
|
473
|
-
.map((entry) => {
|
|
474
|
-
if (entry === null) {
|
|
475
|
-
return null;
|
|
476
|
-
}
|
|
477
|
-
return de_BatchGetRecordIdentifier(entry, context);
|
|
478
|
-
});
|
|
479
|
-
return retVal;
|
|
480
|
-
};
|
|
481
334
|
const deserializeMetadata = (output) => ({
|
|
482
335
|
httpStatusCode: output.statusCode,
|
|
483
336
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-featurestore-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Featurestore Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.315.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|