@aws-sdk/client-sagemaker-featurestore-runtime 3.118.0 → 3.127.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +32 -36
- package/dist-es/protocols/Aws_restJson1.js +29 -33
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-featurestore-runtime
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-featurestore-runtime
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-featurestore-runtime
|
|
@@ -13,8 +13,7 @@ const serializeAws_restJson1BatchGetRecordCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetRecord";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.Identifiers
|
|
17
|
-
input.Identifiers !== null && {
|
|
16
|
+
...(input.Identifiers != null && {
|
|
18
17
|
Identifiers: serializeAws_restJson1BatchGetRecordIdentifiers(input.Identifiers, context),
|
|
19
18
|
}),
|
|
20
19
|
});
|
|
@@ -113,8 +112,7 @@ const serializeAws_restJson1PutRecordCommand = async (input, context) => {
|
|
|
113
112
|
}
|
|
114
113
|
let body;
|
|
115
114
|
body = JSON.stringify({
|
|
116
|
-
...(input.Record
|
|
117
|
-
input.Record !== null && { Record: serializeAws_restJson1Record(input.Record, context) }),
|
|
115
|
+
...(input.Record != null && { Record: serializeAws_restJson1Record(input.Record, context) }),
|
|
118
116
|
});
|
|
119
117
|
return new protocol_http_1.HttpRequest({
|
|
120
118
|
protocol,
|
|
@@ -156,8 +154,7 @@ const deserializeAws_restJson1BatchGetRecordCommandError = async (output, contex
|
|
|
156
154
|
body: await parseBody(output.body, context),
|
|
157
155
|
};
|
|
158
156
|
let response;
|
|
159
|
-
|
|
160
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
161
158
|
switch (errorCode) {
|
|
162
159
|
case "AccessForbidden":
|
|
163
160
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
@@ -173,10 +170,12 @@ const deserializeAws_restJson1BatchGetRecordCommandError = async (output, contex
|
|
|
173
170
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
174
171
|
default:
|
|
175
172
|
const parsedBody = parsedOutput.body;
|
|
173
|
+
const $metadata = deserializeMetadata(output);
|
|
174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
176
175
|
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
177
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
178
177
|
$fault: "client",
|
|
179
|
-
$metadata
|
|
178
|
+
$metadata,
|
|
180
179
|
});
|
|
181
180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
182
181
|
}
|
|
@@ -198,8 +197,7 @@ const deserializeAws_restJson1DeleteRecordCommandError = async (output, context)
|
|
|
198
197
|
body: await parseBody(output.body, context),
|
|
199
198
|
};
|
|
200
199
|
let response;
|
|
201
|
-
|
|
202
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
203
201
|
switch (errorCode) {
|
|
204
202
|
case "AccessForbidden":
|
|
205
203
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
@@ -215,10 +213,12 @@ const deserializeAws_restJson1DeleteRecordCommandError = async (output, context)
|
|
|
215
213
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
216
214
|
default:
|
|
217
215
|
const parsedBody = parsedOutput.body;
|
|
216
|
+
const $metadata = deserializeMetadata(output);
|
|
217
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
218
218
|
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
220
220
|
$fault: "client",
|
|
221
|
-
$metadata
|
|
221
|
+
$metadata,
|
|
222
222
|
});
|
|
223
223
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
224
224
|
}
|
|
@@ -244,8 +244,7 @@ const deserializeAws_restJson1GetRecordCommandError = async (output, context) =>
|
|
|
244
244
|
body: await parseBody(output.body, context),
|
|
245
245
|
};
|
|
246
246
|
let response;
|
|
247
|
-
|
|
248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
249
248
|
switch (errorCode) {
|
|
250
249
|
case "AccessForbidden":
|
|
251
250
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
@@ -264,10 +263,12 @@ const deserializeAws_restJson1GetRecordCommandError = async (output, context) =>
|
|
|
264
263
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
265
264
|
default:
|
|
266
265
|
const parsedBody = parsedOutput.body;
|
|
266
|
+
const $metadata = deserializeMetadata(output);
|
|
267
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
267
268
|
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
268
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
269
270
|
$fault: "client",
|
|
270
|
-
$metadata
|
|
271
|
+
$metadata,
|
|
271
272
|
});
|
|
272
273
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
273
274
|
}
|
|
@@ -289,8 +290,7 @@ const deserializeAws_restJson1PutRecordCommandError = async (output, context) =>
|
|
|
289
290
|
body: await parseBody(output.body, context),
|
|
290
291
|
};
|
|
291
292
|
let response;
|
|
292
|
-
|
|
293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
294
|
switch (errorCode) {
|
|
295
295
|
case "AccessForbidden":
|
|
296
296
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
@@ -306,10 +306,12 @@ const deserializeAws_restJson1PutRecordCommandError = async (output, context) =>
|
|
|
306
306
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
307
307
|
default:
|
|
308
308
|
const parsedBody = parsedOutput.body;
|
|
309
|
+
const $metadata = deserializeMetadata(output);
|
|
310
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
309
311
|
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
312
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
311
313
|
$fault: "client",
|
|
312
|
-
$metadata
|
|
314
|
+
$metadata,
|
|
313
315
|
});
|
|
314
316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
315
317
|
}
|
|
@@ -376,12 +378,11 @@ const deserializeAws_restJson1ValidationErrorResponse = async (parsedOutput, con
|
|
|
376
378
|
};
|
|
377
379
|
const serializeAws_restJson1BatchGetRecordIdentifier = (input, context) => {
|
|
378
380
|
return {
|
|
379
|
-
...(input.FeatureGroupName
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
...(input.RecordIdentifiersValueAsString
|
|
384
|
-
input.RecordIdentifiersValueAsString !== null && {
|
|
381
|
+
...(input.FeatureGroupName != null && { FeatureGroupName: input.FeatureGroupName }),
|
|
382
|
+
...(input.FeatureNames != null && {
|
|
383
|
+
FeatureNames: serializeAws_restJson1FeatureNames(input.FeatureNames, context),
|
|
384
|
+
}),
|
|
385
|
+
...(input.RecordIdentifiersValueAsString != null && {
|
|
385
386
|
RecordIdentifiersValueAsString: serializeAws_restJson1RecordIdentifiers(input.RecordIdentifiersValueAsString, context),
|
|
386
387
|
}),
|
|
387
388
|
};
|
|
@@ -408,8 +409,8 @@ const serializeAws_restJson1FeatureNames = (input, context) => {
|
|
|
408
409
|
};
|
|
409
410
|
const serializeAws_restJson1FeatureValue = (input, context) => {
|
|
410
411
|
return {
|
|
411
|
-
...(input.FeatureName
|
|
412
|
-
...(input.ValueAsString
|
|
412
|
+
...(input.FeatureName != null && { FeatureName: input.FeatureName }),
|
|
413
|
+
...(input.ValueAsString != null && { ValueAsString: input.ValueAsString }),
|
|
413
414
|
};
|
|
414
415
|
};
|
|
415
416
|
const serializeAws_restJson1Record = (input, context) => {
|
|
@@ -454,10 +455,8 @@ const deserializeAws_restJson1BatchGetRecordErrors = (output, context) => {
|
|
|
454
455
|
const deserializeAws_restJson1BatchGetRecordIdentifier = (output, context) => {
|
|
455
456
|
return {
|
|
456
457
|
FeatureGroupName: (0, smithy_client_1.expectString)(output.FeatureGroupName),
|
|
457
|
-
FeatureNames: output.FeatureNames
|
|
458
|
-
|
|
459
|
-
: undefined,
|
|
460
|
-
RecordIdentifiersValueAsString: output.RecordIdentifiersValueAsString !== undefined && output.RecordIdentifiersValueAsString !== null
|
|
458
|
+
FeatureNames: output.FeatureNames != null ? deserializeAws_restJson1FeatureNames(output.FeatureNames, context) : undefined,
|
|
459
|
+
RecordIdentifiersValueAsString: output.RecordIdentifiersValueAsString != null
|
|
461
460
|
? deserializeAws_restJson1RecordIdentifiers(output.RecordIdentifiersValueAsString, context)
|
|
462
461
|
: undefined,
|
|
463
462
|
};
|
|
@@ -465,9 +464,7 @@ const deserializeAws_restJson1BatchGetRecordIdentifier = (output, context) => {
|
|
|
465
464
|
const deserializeAws_restJson1BatchGetRecordResultDetail = (output, context) => {
|
|
466
465
|
return {
|
|
467
466
|
FeatureGroupName: (0, smithy_client_1.expectString)(output.FeatureGroupName),
|
|
468
|
-
Record: output.Record
|
|
469
|
-
? deserializeAws_restJson1Record(output.Record, context)
|
|
470
|
-
: undefined,
|
|
467
|
+
Record: output.Record != null ? deserializeAws_restJson1Record(output.Record, context) : undefined,
|
|
471
468
|
RecordIdentifierValueAsString: (0, smithy_client_1.expectString)(output.RecordIdentifierValueAsString),
|
|
472
469
|
};
|
|
473
470
|
};
|
|
@@ -581,5 +578,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
581
578
|
if (data["__type"] !== undefined) {
|
|
582
579
|
return sanitizeErrorCode(data["__type"]);
|
|
583
580
|
}
|
|
584
|
-
return "";
|
|
585
581
|
};
|
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1BatchGetRecordCommand = function (input, contex
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BatchGetRecord";
|
|
17
|
-
body = JSON.stringify(__assign({}, (input.Identifiers
|
|
18
|
-
input.Identifiers !== null && {
|
|
17
|
+
body = JSON.stringify(__assign({}, (input.Identifiers != null && {
|
|
19
18
|
Identifiers: serializeAws_restJson1BatchGetRecordIdentifiers(input.Identifiers, context),
|
|
20
19
|
})));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
@@ -121,8 +120,7 @@ export var serializeAws_restJson1PutRecordCommand = function (input, context) {
|
|
|
121
120
|
else {
|
|
122
121
|
throw new Error("No value provided for input HTTP label: FeatureGroupName.");
|
|
123
122
|
}
|
|
124
|
-
body = JSON.stringify(__assign({}, (input.Record
|
|
125
|
-
input.Record !== null && { Record: serializeAws_restJson1Record(input.Record, context) })));
|
|
123
|
+
body = JSON.stringify(__assign({}, (input.Record != null && { Record: serializeAws_restJson1Record(input.Record, context) })));
|
|
126
124
|
return [2, new __HttpRequest({
|
|
127
125
|
protocol: protocol,
|
|
128
126
|
hostname: hostname,
|
|
@@ -168,7 +166,7 @@ export var deserializeAws_restJson1BatchGetRecordCommand = function (output, con
|
|
|
168
166
|
});
|
|
169
167
|
}); };
|
|
170
168
|
var deserializeAws_restJson1BatchGetRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
171
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
169
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
172
170
|
var _c;
|
|
173
171
|
return __generator(this, function (_d) {
|
|
174
172
|
switch (_d.label) {
|
|
@@ -178,7 +176,6 @@ var deserializeAws_restJson1BatchGetRecordCommandError = function (output, conte
|
|
|
178
176
|
return [4, parseBody(output.body, context)];
|
|
179
177
|
case 1:
|
|
180
178
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
181
|
-
errorCode = "UnknownError";
|
|
182
179
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
183
180
|
_b = errorCode;
|
|
184
181
|
switch (_b) {
|
|
@@ -202,10 +199,12 @@ var deserializeAws_restJson1BatchGetRecordCommandError = function (output, conte
|
|
|
202
199
|
case 9: throw _d.sent();
|
|
203
200
|
case 10:
|
|
204
201
|
parsedBody = parsedOutput.body;
|
|
202
|
+
$metadata = deserializeMetadata(output);
|
|
203
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
205
204
|
response = new __BaseException({
|
|
206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
207
206
|
$fault: "client",
|
|
208
|
-
$metadata:
|
|
207
|
+
$metadata: $metadata,
|
|
209
208
|
});
|
|
210
209
|
throw __decorateServiceException(response, parsedBody);
|
|
211
210
|
}
|
|
@@ -230,7 +229,7 @@ export var deserializeAws_restJson1DeleteRecordCommand = function (output, conte
|
|
|
230
229
|
});
|
|
231
230
|
}); };
|
|
232
231
|
var deserializeAws_restJson1DeleteRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
233
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
232
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
234
233
|
var _c;
|
|
235
234
|
return __generator(this, function (_d) {
|
|
236
235
|
switch (_d.label) {
|
|
@@ -240,7 +239,6 @@ var deserializeAws_restJson1DeleteRecordCommandError = function (output, context
|
|
|
240
239
|
return [4, parseBody(output.body, context)];
|
|
241
240
|
case 1:
|
|
242
241
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
243
|
-
errorCode = "UnknownError";
|
|
244
242
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
245
243
|
_b = errorCode;
|
|
246
244
|
switch (_b) {
|
|
@@ -264,10 +262,12 @@ var deserializeAws_restJson1DeleteRecordCommandError = function (output, context
|
|
|
264
262
|
case 9: throw _d.sent();
|
|
265
263
|
case 10:
|
|
266
264
|
parsedBody = parsedOutput.body;
|
|
265
|
+
$metadata = deserializeMetadata(output);
|
|
266
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
267
267
|
response = new __BaseException({
|
|
268
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
268
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
269
269
|
$fault: "client",
|
|
270
|
-
$metadata:
|
|
270
|
+
$metadata: $metadata,
|
|
271
271
|
});
|
|
272
272
|
throw __decorateServiceException(response, parsedBody);
|
|
273
273
|
}
|
|
@@ -298,7 +298,7 @@ export var deserializeAws_restJson1GetRecordCommand = function (output, context)
|
|
|
298
298
|
});
|
|
299
299
|
}); };
|
|
300
300
|
var deserializeAws_restJson1GetRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
301
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
301
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
302
302
|
var _c;
|
|
303
303
|
return __generator(this, function (_d) {
|
|
304
304
|
switch (_d.label) {
|
|
@@ -308,7 +308,6 @@ var deserializeAws_restJson1GetRecordCommandError = function (output, context) {
|
|
|
308
308
|
return [4, parseBody(output.body, context)];
|
|
309
309
|
case 1:
|
|
310
310
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
311
|
-
errorCode = "UnknownError";
|
|
312
311
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
313
312
|
_b = errorCode;
|
|
314
313
|
switch (_b) {
|
|
@@ -336,10 +335,12 @@ var deserializeAws_restJson1GetRecordCommandError = function (output, context) {
|
|
|
336
335
|
case 11: throw _d.sent();
|
|
337
336
|
case 12:
|
|
338
337
|
parsedBody = parsedOutput.body;
|
|
338
|
+
$metadata = deserializeMetadata(output);
|
|
339
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
339
340
|
response = new __BaseException({
|
|
340
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
341
342
|
$fault: "client",
|
|
342
|
-
$metadata:
|
|
343
|
+
$metadata: $metadata,
|
|
343
344
|
});
|
|
344
345
|
throw __decorateServiceException(response, parsedBody);
|
|
345
346
|
}
|
|
@@ -364,7 +365,7 @@ export var deserializeAws_restJson1PutRecordCommand = function (output, context)
|
|
|
364
365
|
});
|
|
365
366
|
}); };
|
|
366
367
|
var deserializeAws_restJson1PutRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
367
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
368
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
368
369
|
var _c;
|
|
369
370
|
return __generator(this, function (_d) {
|
|
370
371
|
switch (_d.label) {
|
|
@@ -374,7 +375,6 @@ var deserializeAws_restJson1PutRecordCommandError = function (output, context) {
|
|
|
374
375
|
return [4, parseBody(output.body, context)];
|
|
375
376
|
case 1:
|
|
376
377
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
377
|
-
errorCode = "UnknownError";
|
|
378
378
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
379
|
_b = errorCode;
|
|
380
380
|
switch (_b) {
|
|
@@ -398,10 +398,12 @@ var deserializeAws_restJson1PutRecordCommandError = function (output, context) {
|
|
|
398
398
|
case 9: throw _d.sent();
|
|
399
399
|
case 10:
|
|
400
400
|
parsedBody = parsedOutput.body;
|
|
401
|
+
$metadata = deserializeMetadata(output);
|
|
402
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
401
403
|
response = new __BaseException({
|
|
402
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
403
405
|
$fault: "client",
|
|
404
|
-
$metadata:
|
|
406
|
+
$metadata: $metadata,
|
|
405
407
|
});
|
|
406
408
|
throw __decorateServiceException(response, parsedBody);
|
|
407
409
|
}
|
|
@@ -468,10 +470,9 @@ var deserializeAws_restJson1ValidationErrorResponse = function (parsedOutput, co
|
|
|
468
470
|
});
|
|
469
471
|
}); };
|
|
470
472
|
var serializeAws_restJson1BatchGetRecordIdentifier = function (input, context) {
|
|
471
|
-
return __assign(__assign(__assign({}, (input.FeatureGroupName
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
input.RecordIdentifiersValueAsString !== null && {
|
|
473
|
+
return __assign(__assign(__assign({}, (input.FeatureGroupName != null && { FeatureGroupName: input.FeatureGroupName })), (input.FeatureNames != null && {
|
|
474
|
+
FeatureNames: serializeAws_restJson1FeatureNames(input.FeatureNames, context),
|
|
475
|
+
})), (input.RecordIdentifiersValueAsString != null && {
|
|
475
476
|
RecordIdentifiersValueAsString: serializeAws_restJson1RecordIdentifiers(input.RecordIdentifiersValueAsString, context),
|
|
476
477
|
}));
|
|
477
478
|
};
|
|
@@ -496,7 +497,7 @@ var serializeAws_restJson1FeatureNames = function (input, context) {
|
|
|
496
497
|
});
|
|
497
498
|
};
|
|
498
499
|
var serializeAws_restJson1FeatureValue = function (input, context) {
|
|
499
|
-
return __assign(__assign({}, (input.FeatureName
|
|
500
|
+
return __assign(__assign({}, (input.FeatureName != null && { FeatureName: input.FeatureName })), (input.ValueAsString != null && { ValueAsString: input.ValueAsString }));
|
|
500
501
|
};
|
|
501
502
|
var serializeAws_restJson1Record = function (input, context) {
|
|
502
503
|
return input
|
|
@@ -540,10 +541,8 @@ var deserializeAws_restJson1BatchGetRecordErrors = function (output, context) {
|
|
|
540
541
|
var deserializeAws_restJson1BatchGetRecordIdentifier = function (output, context) {
|
|
541
542
|
return {
|
|
542
543
|
FeatureGroupName: __expectString(output.FeatureGroupName),
|
|
543
|
-
FeatureNames: output.FeatureNames
|
|
544
|
-
|
|
545
|
-
: undefined,
|
|
546
|
-
RecordIdentifiersValueAsString: output.RecordIdentifiersValueAsString !== undefined && output.RecordIdentifiersValueAsString !== null
|
|
544
|
+
FeatureNames: output.FeatureNames != null ? deserializeAws_restJson1FeatureNames(output.FeatureNames, context) : undefined,
|
|
545
|
+
RecordIdentifiersValueAsString: output.RecordIdentifiersValueAsString != null
|
|
547
546
|
? deserializeAws_restJson1RecordIdentifiers(output.RecordIdentifiersValueAsString, context)
|
|
548
547
|
: undefined,
|
|
549
548
|
};
|
|
@@ -551,9 +550,7 @@ var deserializeAws_restJson1BatchGetRecordIdentifier = function (output, context
|
|
|
551
550
|
var deserializeAws_restJson1BatchGetRecordResultDetail = function (output, context) {
|
|
552
551
|
return {
|
|
553
552
|
FeatureGroupName: __expectString(output.FeatureGroupName),
|
|
554
|
-
Record: output.Record
|
|
555
|
-
? deserializeAws_restJson1Record(output.Record, context)
|
|
556
|
-
: undefined,
|
|
553
|
+
Record: output.Record != null ? deserializeAws_restJson1Record(output.Record, context) : undefined,
|
|
557
554
|
RecordIdentifierValueAsString: __expectString(output.RecordIdentifierValueAsString),
|
|
558
555
|
};
|
|
559
556
|
};
|
|
@@ -674,5 +671,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
674
671
|
if (data["__type"] !== undefined) {
|
|
675
672
|
return sanitizeErrorCode(data["__type"]);
|
|
676
673
|
}
|
|
677
|
-
return "";
|
|
678
674
|
};
|
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.127.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|