@aws-sdk/client-sagemaker-featurestore-runtime 3.50.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/SageMakerFeatureStoreRuntimeServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +72 -1
- package/dist-cjs/protocols/Aws_restJson1.js +77 -183
- package/dist-es/index.js +1 -0
- package/dist-es/models/SageMakerFeatureStoreRuntimeServiceException.js +12 -0
- package/dist-es/models/models_0.js +67 -1
- package/dist-es/protocols/Aws_restJson1.js +117 -205
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SageMakerFeatureStoreRuntimeServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/ts3.4/SageMakerFeatureStoreRuntime.d.ts +25 -0
- package/dist-types/ts3.4/SageMakerFeatureStoreRuntimeClient.d.ts +77 -0
- package/dist-types/ts3.4/commands/BatchGetRecordCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRecordCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecordCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRecordCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/SageMakerFeatureStoreRuntimeServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +156 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +14 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-featurestore-runtime
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-featurestore-runtime
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-featurestore-runtime
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SageMakerFeatureStoreRuntimeServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./SageMakerFeatureStoreRuntime"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./SageMakerFeatureStoreRuntimeClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var SageMakerFeatureStoreRuntimeServiceException_1 = require("./models/SageMakerFeatureStoreRuntimeServiceException");
|
|
10
|
+
Object.defineProperty(exports, "SageMakerFeatureStoreRuntimeServiceException", { enumerable: true, get: function () { return SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SageMakerFeatureStoreRuntimeServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class SageMakerFeatureStoreRuntimeServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, SageMakerFeatureStoreRuntimeServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SageMakerFeatureStoreRuntimeServiceException = SageMakerFeatureStoreRuntimeServiceException;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutRecordRequest = exports.GetRecordResponse = exports.GetRecordRequest = exports.DeleteRecordRequest = exports.BatchGetRecordResponse = exports.BatchGetRecordResultDetail = exports.FeatureValue = exports.BatchGetRecordError = exports.BatchGetRecordRequest = exports.BatchGetRecordIdentifier = void 0;
|
|
3
|
+
exports.PutRecordRequest = exports.ResourceNotFound = exports.GetRecordResponse = exports.GetRecordRequest = exports.DeleteRecordRequest = exports.ValidationError = exports.ServiceUnavailable = exports.InternalFailure = exports.BatchGetRecordResponse = exports.BatchGetRecordResultDetail = exports.FeatureValue = exports.BatchGetRecordError = exports.BatchGetRecordRequest = exports.BatchGetRecordIdentifier = exports.AccessForbidden = void 0;
|
|
4
|
+
const SageMakerFeatureStoreRuntimeServiceException_1 = require("./SageMakerFeatureStoreRuntimeServiceException");
|
|
5
|
+
class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessForbidden",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "AccessForbidden";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, AccessForbidden.prototype);
|
|
15
|
+
this.Message = opts.Message;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessForbidden = AccessForbidden;
|
|
4
19
|
var BatchGetRecordIdentifier;
|
|
5
20
|
(function (BatchGetRecordIdentifier) {
|
|
6
21
|
BatchGetRecordIdentifier.filterSensitiveLog = (obj) => ({
|
|
@@ -37,6 +52,48 @@ var BatchGetRecordResponse;
|
|
|
37
52
|
...obj,
|
|
38
53
|
});
|
|
39
54
|
})(BatchGetRecordResponse = exports.BatchGetRecordResponse || (exports.BatchGetRecordResponse = {}));
|
|
55
|
+
class InternalFailure extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
56
|
+
constructor(opts) {
|
|
57
|
+
super({
|
|
58
|
+
name: "InternalFailure",
|
|
59
|
+
$fault: "server",
|
|
60
|
+
...opts,
|
|
61
|
+
});
|
|
62
|
+
this.name = "InternalFailure";
|
|
63
|
+
this.$fault = "server";
|
|
64
|
+
Object.setPrototypeOf(this, InternalFailure.prototype);
|
|
65
|
+
this.Message = opts.Message;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.InternalFailure = InternalFailure;
|
|
69
|
+
class ServiceUnavailable extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: "ServiceUnavailable",
|
|
73
|
+
$fault: "server",
|
|
74
|
+
...opts,
|
|
75
|
+
});
|
|
76
|
+
this.name = "ServiceUnavailable";
|
|
77
|
+
this.$fault = "server";
|
|
78
|
+
Object.setPrototypeOf(this, ServiceUnavailable.prototype);
|
|
79
|
+
this.Message = opts.Message;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ServiceUnavailable = ServiceUnavailable;
|
|
83
|
+
class ValidationError extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ValidationError",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
this.name = "ValidationError";
|
|
91
|
+
this.$fault = "client";
|
|
92
|
+
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
93
|
+
this.Message = opts.Message;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.ValidationError = ValidationError;
|
|
40
97
|
var DeleteRecordRequest;
|
|
41
98
|
(function (DeleteRecordRequest) {
|
|
42
99
|
DeleteRecordRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -55,6 +112,20 @@ var GetRecordResponse;
|
|
|
55
112
|
...obj,
|
|
56
113
|
});
|
|
57
114
|
})(GetRecordResponse = exports.GetRecordResponse || (exports.GetRecordResponse = {}));
|
|
115
|
+
class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
116
|
+
constructor(opts) {
|
|
117
|
+
super({
|
|
118
|
+
name: "ResourceNotFound",
|
|
119
|
+
$fault: "client",
|
|
120
|
+
...opts,
|
|
121
|
+
});
|
|
122
|
+
this.name = "ResourceNotFound";
|
|
123
|
+
this.$fault = "client";
|
|
124
|
+
Object.setPrototypeOf(this, ResourceNotFound.prototype);
|
|
125
|
+
this.Message = opts.Message;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.ResourceNotFound = ResourceNotFound;
|
|
58
129
|
var PutRecordRequest;
|
|
59
130
|
(function (PutRecordRequest) {
|
|
60
131
|
PutRecordRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1PutRecordCommand = exports.deserializeAws_restJson1GetRecordCommand = exports.deserializeAws_restJson1DeleteRecordCommand = exports.deserializeAws_restJson1BatchGetRecordCommand = exports.serializeAws_restJson1PutRecordCommand = exports.serializeAws_restJson1GetRecordCommand = exports.serializeAws_restJson1DeleteRecordCommand = exports.serializeAws_restJson1BatchGetRecordCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const SageMakerFeatureStoreRuntimeServiceException_1 = require("../models/SageMakerFeatureStoreRuntimeServiceException");
|
|
6
8
|
const serializeAws_restJson1BatchGetRecordCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -159,51 +161,25 @@ const deserializeAws_restJson1BatchGetRecordCommandError = async (output, contex
|
|
|
159
161
|
switch (errorCode) {
|
|
160
162
|
case "AccessForbidden":
|
|
161
163
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
162
|
-
|
|
163
|
-
...(await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)),
|
|
164
|
-
name: errorCode,
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
};
|
|
167
|
-
break;
|
|
164
|
+
throw await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context);
|
|
168
165
|
case "InternalFailure":
|
|
169
166
|
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
170
|
-
|
|
171
|
-
...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
|
|
172
|
-
name: errorCode,
|
|
173
|
-
$metadata: deserializeMetadata(output),
|
|
174
|
-
};
|
|
175
|
-
break;
|
|
167
|
+
throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
|
|
176
168
|
case "ServiceUnavailable":
|
|
177
169
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
178
|
-
|
|
179
|
-
...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
|
|
180
|
-
name: errorCode,
|
|
181
|
-
$metadata: deserializeMetadata(output),
|
|
182
|
-
};
|
|
183
|
-
break;
|
|
170
|
+
throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
|
|
184
171
|
case "ValidationError":
|
|
185
172
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
186
|
-
|
|
187
|
-
...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
|
|
188
|
-
name: errorCode,
|
|
189
|
-
$metadata: deserializeMetadata(output),
|
|
190
|
-
};
|
|
191
|
-
break;
|
|
173
|
+
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
192
174
|
default:
|
|
193
175
|
const parsedBody = parsedOutput.body;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
...parsedBody,
|
|
197
|
-
name: `${errorCode}`,
|
|
198
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
176
|
+
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
177
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
199
178
|
$fault: "client",
|
|
200
179
|
$metadata: deserializeMetadata(output),
|
|
201
|
-
};
|
|
180
|
+
});
|
|
181
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
202
182
|
}
|
|
203
|
-
const message = response.message || response.Message || errorCode;
|
|
204
|
-
response.message = message;
|
|
205
|
-
delete response.Message;
|
|
206
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
207
183
|
};
|
|
208
184
|
const deserializeAws_restJson1DeleteRecordCommand = async (output, context) => {
|
|
209
185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -227,51 +203,25 @@ const deserializeAws_restJson1DeleteRecordCommandError = async (output, context)
|
|
|
227
203
|
switch (errorCode) {
|
|
228
204
|
case "AccessForbidden":
|
|
229
205
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
230
|
-
|
|
231
|
-
...(await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)),
|
|
232
|
-
name: errorCode,
|
|
233
|
-
$metadata: deserializeMetadata(output),
|
|
234
|
-
};
|
|
235
|
-
break;
|
|
206
|
+
throw await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context);
|
|
236
207
|
case "InternalFailure":
|
|
237
208
|
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
238
|
-
|
|
239
|
-
...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
|
|
240
|
-
name: errorCode,
|
|
241
|
-
$metadata: deserializeMetadata(output),
|
|
242
|
-
};
|
|
243
|
-
break;
|
|
209
|
+
throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
|
|
244
210
|
case "ServiceUnavailable":
|
|
245
211
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
246
|
-
|
|
247
|
-
...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
|
|
248
|
-
name: errorCode,
|
|
249
|
-
$metadata: deserializeMetadata(output),
|
|
250
|
-
};
|
|
251
|
-
break;
|
|
212
|
+
throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
|
|
252
213
|
case "ValidationError":
|
|
253
214
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
254
|
-
|
|
255
|
-
...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
|
|
256
|
-
name: errorCode,
|
|
257
|
-
$metadata: deserializeMetadata(output),
|
|
258
|
-
};
|
|
259
|
-
break;
|
|
215
|
+
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
260
216
|
default:
|
|
261
217
|
const parsedBody = parsedOutput.body;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
...parsedBody,
|
|
265
|
-
name: `${errorCode}`,
|
|
266
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
218
|
+
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
219
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
267
220
|
$fault: "client",
|
|
268
221
|
$metadata: deserializeMetadata(output),
|
|
269
|
-
};
|
|
222
|
+
});
|
|
223
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
270
224
|
}
|
|
271
|
-
const message = response.message || response.Message || errorCode;
|
|
272
|
-
response.message = message;
|
|
273
|
-
delete response.Message;
|
|
274
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
275
225
|
};
|
|
276
226
|
const deserializeAws_restJson1GetRecordCommand = async (output, context) => {
|
|
277
227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -299,59 +249,28 @@ const deserializeAws_restJson1GetRecordCommandError = async (output, context) =>
|
|
|
299
249
|
switch (errorCode) {
|
|
300
250
|
case "AccessForbidden":
|
|
301
251
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
302
|
-
|
|
303
|
-
...(await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)),
|
|
304
|
-
name: errorCode,
|
|
305
|
-
$metadata: deserializeMetadata(output),
|
|
306
|
-
};
|
|
307
|
-
break;
|
|
252
|
+
throw await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context);
|
|
308
253
|
case "InternalFailure":
|
|
309
254
|
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
310
|
-
|
|
311
|
-
...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
|
|
312
|
-
name: errorCode,
|
|
313
|
-
$metadata: deserializeMetadata(output),
|
|
314
|
-
};
|
|
315
|
-
break;
|
|
255
|
+
throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
|
|
316
256
|
case "ResourceNotFound":
|
|
317
257
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
318
|
-
|
|
319
|
-
...(await deserializeAws_restJson1ResourceNotFoundResponse(parsedOutput, context)),
|
|
320
|
-
name: errorCode,
|
|
321
|
-
$metadata: deserializeMetadata(output),
|
|
322
|
-
};
|
|
323
|
-
break;
|
|
258
|
+
throw await deserializeAws_restJson1ResourceNotFoundResponse(parsedOutput, context);
|
|
324
259
|
case "ServiceUnavailable":
|
|
325
260
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
326
|
-
|
|
327
|
-
...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
|
|
328
|
-
name: errorCode,
|
|
329
|
-
$metadata: deserializeMetadata(output),
|
|
330
|
-
};
|
|
331
|
-
break;
|
|
261
|
+
throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
|
|
332
262
|
case "ValidationError":
|
|
333
263
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
334
|
-
|
|
335
|
-
...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
|
|
336
|
-
name: errorCode,
|
|
337
|
-
$metadata: deserializeMetadata(output),
|
|
338
|
-
};
|
|
339
|
-
break;
|
|
264
|
+
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
340
265
|
default:
|
|
341
266
|
const parsedBody = parsedOutput.body;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
...parsedBody,
|
|
345
|
-
name: `${errorCode}`,
|
|
346
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
267
|
+
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
268
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
347
269
|
$fault: "client",
|
|
348
270
|
$metadata: deserializeMetadata(output),
|
|
349
|
-
};
|
|
271
|
+
});
|
|
272
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
350
273
|
}
|
|
351
|
-
const message = response.message || response.Message || errorCode;
|
|
352
|
-
response.message = message;
|
|
353
|
-
delete response.Message;
|
|
354
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
355
274
|
};
|
|
356
275
|
const deserializeAws_restJson1PutRecordCommand = async (output, context) => {
|
|
357
276
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -375,116 +294,85 @@ const deserializeAws_restJson1PutRecordCommandError = async (output, context) =>
|
|
|
375
294
|
switch (errorCode) {
|
|
376
295
|
case "AccessForbidden":
|
|
377
296
|
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
378
|
-
|
|
379
|
-
...(await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context)),
|
|
380
|
-
name: errorCode,
|
|
381
|
-
$metadata: deserializeMetadata(output),
|
|
382
|
-
};
|
|
383
|
-
break;
|
|
297
|
+
throw await deserializeAws_restJson1AccessForbiddenResponse(parsedOutput, context);
|
|
384
298
|
case "InternalFailure":
|
|
385
299
|
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
386
|
-
|
|
387
|
-
...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
|
|
388
|
-
name: errorCode,
|
|
389
|
-
$metadata: deserializeMetadata(output),
|
|
390
|
-
};
|
|
391
|
-
break;
|
|
300
|
+
throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
|
|
392
301
|
case "ServiceUnavailable":
|
|
393
302
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
394
|
-
|
|
395
|
-
...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
|
|
396
|
-
name: errorCode,
|
|
397
|
-
$metadata: deserializeMetadata(output),
|
|
398
|
-
};
|
|
399
|
-
break;
|
|
303
|
+
throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
|
|
400
304
|
case "ValidationError":
|
|
401
305
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
402
|
-
|
|
403
|
-
...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
|
|
404
|
-
name: errorCode,
|
|
405
|
-
$metadata: deserializeMetadata(output),
|
|
406
|
-
};
|
|
407
|
-
break;
|
|
306
|
+
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
408
307
|
default:
|
|
409
308
|
const parsedBody = parsedOutput.body;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
...parsedBody,
|
|
413
|
-
name: `${errorCode}`,
|
|
414
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
309
|
+
response = new SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException({
|
|
310
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
415
311
|
$fault: "client",
|
|
416
312
|
$metadata: deserializeMetadata(output),
|
|
417
|
-
};
|
|
313
|
+
});
|
|
314
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
418
315
|
}
|
|
419
|
-
const message = response.message || response.Message || errorCode;
|
|
420
|
-
response.message = message;
|
|
421
|
-
delete response.Message;
|
|
422
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
423
316
|
};
|
|
424
317
|
const deserializeAws_restJson1AccessForbiddenResponse = async (parsedOutput, context) => {
|
|
425
|
-
const contents = {
|
|
426
|
-
name: "AccessForbidden",
|
|
427
|
-
$fault: "client",
|
|
428
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
429
|
-
Message: undefined,
|
|
430
|
-
};
|
|
318
|
+
const contents = {};
|
|
431
319
|
const data = parsedOutput.body;
|
|
432
320
|
if (data.Message !== undefined && data.Message !== null) {
|
|
433
321
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
434
322
|
}
|
|
435
|
-
|
|
323
|
+
const exception = new models_0_1.AccessForbidden({
|
|
324
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
325
|
+
...contents,
|
|
326
|
+
});
|
|
327
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
436
328
|
};
|
|
437
329
|
const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, context) => {
|
|
438
|
-
const contents = {
|
|
439
|
-
name: "InternalFailure",
|
|
440
|
-
$fault: "server",
|
|
441
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
442
|
-
Message: undefined,
|
|
443
|
-
};
|
|
330
|
+
const contents = {};
|
|
444
331
|
const data = parsedOutput.body;
|
|
445
332
|
if (data.Message !== undefined && data.Message !== null) {
|
|
446
333
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
447
334
|
}
|
|
448
|
-
|
|
335
|
+
const exception = new models_0_1.InternalFailure({
|
|
336
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
337
|
+
...contents,
|
|
338
|
+
});
|
|
339
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
449
340
|
};
|
|
450
341
|
const deserializeAws_restJson1ResourceNotFoundResponse = async (parsedOutput, context) => {
|
|
451
|
-
const contents = {
|
|
452
|
-
name: "ResourceNotFound",
|
|
453
|
-
$fault: "client",
|
|
454
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
455
|
-
Message: undefined,
|
|
456
|
-
};
|
|
342
|
+
const contents = {};
|
|
457
343
|
const data = parsedOutput.body;
|
|
458
344
|
if (data.Message !== undefined && data.Message !== null) {
|
|
459
345
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
460
346
|
}
|
|
461
|
-
|
|
347
|
+
const exception = new models_0_1.ResourceNotFound({
|
|
348
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
349
|
+
...contents,
|
|
350
|
+
});
|
|
351
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
462
352
|
};
|
|
463
353
|
const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput, context) => {
|
|
464
|
-
const contents = {
|
|
465
|
-
name: "ServiceUnavailable",
|
|
466
|
-
$fault: "server",
|
|
467
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
468
|
-
Message: undefined,
|
|
469
|
-
};
|
|
354
|
+
const contents = {};
|
|
470
355
|
const data = parsedOutput.body;
|
|
471
356
|
if (data.Message !== undefined && data.Message !== null) {
|
|
472
357
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
473
358
|
}
|
|
474
|
-
|
|
359
|
+
const exception = new models_0_1.ServiceUnavailable({
|
|
360
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
361
|
+
...contents,
|
|
362
|
+
});
|
|
363
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
475
364
|
};
|
|
476
365
|
const deserializeAws_restJson1ValidationErrorResponse = async (parsedOutput, context) => {
|
|
477
|
-
const contents = {
|
|
478
|
-
name: "ValidationError",
|
|
479
|
-
$fault: "client",
|
|
480
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
481
|
-
Message: undefined,
|
|
482
|
-
};
|
|
366
|
+
const contents = {};
|
|
483
367
|
const data = parsedOutput.body;
|
|
484
368
|
if (data.Message !== undefined && data.Message !== null) {
|
|
485
369
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
486
370
|
}
|
|
487
|
-
|
|
371
|
+
const exception = new models_0_1.ValidationError({
|
|
372
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
373
|
+
...contents,
|
|
374
|
+
});
|
|
375
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
488
376
|
};
|
|
489
377
|
const serializeAws_restJson1BatchGetRecordIdentifier = (input, context) => {
|
|
490
378
|
return {
|
|
@@ -553,7 +441,7 @@ const deserializeAws_restJson1BatchGetRecordError = (output, context) => {
|
|
|
553
441
|
};
|
|
554
442
|
};
|
|
555
443
|
const deserializeAws_restJson1BatchGetRecordErrors = (output, context) => {
|
|
556
|
-
|
|
444
|
+
const retVal = (output || [])
|
|
557
445
|
.filter((e) => e != null)
|
|
558
446
|
.map((entry) => {
|
|
559
447
|
if (entry === null) {
|
|
@@ -561,6 +449,7 @@ const deserializeAws_restJson1BatchGetRecordErrors = (output, context) => {
|
|
|
561
449
|
}
|
|
562
450
|
return deserializeAws_restJson1BatchGetRecordError(entry, context);
|
|
563
451
|
});
|
|
452
|
+
return retVal;
|
|
564
453
|
};
|
|
565
454
|
const deserializeAws_restJson1BatchGetRecordIdentifier = (output, context) => {
|
|
566
455
|
return {
|
|
@@ -583,7 +472,7 @@ const deserializeAws_restJson1BatchGetRecordResultDetail = (output, context) =>
|
|
|
583
472
|
};
|
|
584
473
|
};
|
|
585
474
|
const deserializeAws_restJson1BatchGetRecordResultDetails = (output, context) => {
|
|
586
|
-
|
|
475
|
+
const retVal = (output || [])
|
|
587
476
|
.filter((e) => e != null)
|
|
588
477
|
.map((entry) => {
|
|
589
478
|
if (entry === null) {
|
|
@@ -591,9 +480,10 @@ const deserializeAws_restJson1BatchGetRecordResultDetails = (output, context) =>
|
|
|
591
480
|
}
|
|
592
481
|
return deserializeAws_restJson1BatchGetRecordResultDetail(entry, context);
|
|
593
482
|
});
|
|
483
|
+
return retVal;
|
|
594
484
|
};
|
|
595
485
|
const deserializeAws_restJson1FeatureNames = (output, context) => {
|
|
596
|
-
|
|
486
|
+
const retVal = (output || [])
|
|
597
487
|
.filter((e) => e != null)
|
|
598
488
|
.map((entry) => {
|
|
599
489
|
if (entry === null) {
|
|
@@ -601,6 +491,7 @@ const deserializeAws_restJson1FeatureNames = (output, context) => {
|
|
|
601
491
|
}
|
|
602
492
|
return smithy_client_1.expectString(entry);
|
|
603
493
|
});
|
|
494
|
+
return retVal;
|
|
604
495
|
};
|
|
605
496
|
const deserializeAws_restJson1FeatureValue = (output, context) => {
|
|
606
497
|
return {
|
|
@@ -609,7 +500,7 @@ const deserializeAws_restJson1FeatureValue = (output, context) => {
|
|
|
609
500
|
};
|
|
610
501
|
};
|
|
611
502
|
const deserializeAws_restJson1Record = (output, context) => {
|
|
612
|
-
|
|
503
|
+
const retVal = (output || [])
|
|
613
504
|
.filter((e) => e != null)
|
|
614
505
|
.map((entry) => {
|
|
615
506
|
if (entry === null) {
|
|
@@ -617,9 +508,10 @@ const deserializeAws_restJson1Record = (output, context) => {
|
|
|
617
508
|
}
|
|
618
509
|
return deserializeAws_restJson1FeatureValue(entry, context);
|
|
619
510
|
});
|
|
511
|
+
return retVal;
|
|
620
512
|
};
|
|
621
513
|
const deserializeAws_restJson1RecordIdentifiers = (output, context) => {
|
|
622
|
-
|
|
514
|
+
const retVal = (output || [])
|
|
623
515
|
.filter((e) => e != null)
|
|
624
516
|
.map((entry) => {
|
|
625
517
|
if (entry === null) {
|
|
@@ -627,9 +519,10 @@ const deserializeAws_restJson1RecordIdentifiers = (output, context) => {
|
|
|
627
519
|
}
|
|
628
520
|
return smithy_client_1.expectString(entry);
|
|
629
521
|
});
|
|
522
|
+
return retVal;
|
|
630
523
|
};
|
|
631
524
|
const deserializeAws_restJson1UnprocessedIdentifiers = (output, context) => {
|
|
632
|
-
|
|
525
|
+
const retVal = (output || [])
|
|
633
526
|
.filter((e) => e != null)
|
|
634
527
|
.map((entry) => {
|
|
635
528
|
if (entry === null) {
|
|
@@ -637,6 +530,7 @@ const deserializeAws_restJson1UnprocessedIdentifiers = (output, context) => {
|
|
|
637
530
|
}
|
|
638
531
|
return deserializeAws_restJson1BatchGetRecordIdentifier(entry, context);
|
|
639
532
|
});
|
|
533
|
+
return retVal;
|
|
640
534
|
};
|
|
641
535
|
const deserializeMetadata = (output) => {
|
|
642
536
|
var _a;
|
package/dist-es/index.js
CHANGED
|
@@ -2,3 +2,4 @@ export * from "./SageMakerFeatureStoreRuntime";
|
|
|
2
2
|
export * from "./SageMakerFeatureStoreRuntimeClient";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./models";
|
|
5
|
+
export { SageMakerFeatureStoreRuntimeServiceException } from "./models/SageMakerFeatureStoreRuntimeServiceException";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var SageMakerFeatureStoreRuntimeServiceException = (function (_super) {
|
|
4
|
+
__extends(SageMakerFeatureStoreRuntimeServiceException, _super);
|
|
5
|
+
function SageMakerFeatureStoreRuntimeServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, SageMakerFeatureStoreRuntimeServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return SageMakerFeatureStoreRuntimeServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { SageMakerFeatureStoreRuntimeServiceException };
|