@aws-sdk/client-sagemaker-runtime 3.42.0 → 3.46.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 +47 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/protocols/Aws_restJson1.js +42 -0
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +77 -29
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/SageMakerRuntime.d.ts +4 -4
- package/dist-types/commands/InvokeEndpointAsyncCommand.d.ts +2 -2
- package/dist-types/commands/InvokeEndpointCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +31 -3
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/package.json +36 -43
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
17
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/01 ([#3078](https://github.com/aws/aws-sdk-js-v3/issues/3078)) ([9c44188](https://github.com/aws/aws-sdk-js-v3/commit/9c44188265ea484d55c50848d7daae5571007ce0))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
54
|
|
|
8
55
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.ValidationError = exports.ServiceUnavailable = exports.ModelError = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = exports.InternalFailure = void 0;
|
|
3
|
+
exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.ValidationError = exports.ServiceUnavailable = exports.ModelNotReadyException = exports.ModelError = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = exports.InternalFailure = exports.InternalDependencyException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
var InternalDependencyException;
|
|
6
|
+
(function (InternalDependencyException) {
|
|
7
|
+
InternalDependencyException.filterSensitiveLog = (obj) => ({
|
|
8
|
+
...obj,
|
|
9
|
+
});
|
|
10
|
+
})(InternalDependencyException = exports.InternalDependencyException || (exports.InternalDependencyException = {}));
|
|
5
11
|
var InternalFailure;
|
|
6
12
|
(function (InternalFailure) {
|
|
7
13
|
InternalFailure.filterSensitiveLog = (obj) => ({
|
|
@@ -30,6 +36,12 @@ var ModelError;
|
|
|
30
36
|
...obj,
|
|
31
37
|
});
|
|
32
38
|
})(ModelError = exports.ModelError || (exports.ModelError = {}));
|
|
39
|
+
var ModelNotReadyException;
|
|
40
|
+
(function (ModelNotReadyException) {
|
|
41
|
+
ModelNotReadyException.filterSensitiveLog = (obj) => ({
|
|
42
|
+
...obj,
|
|
43
|
+
});
|
|
44
|
+
})(ModelNotReadyException = exports.ModelNotReadyException || (exports.ModelNotReadyException = {}));
|
|
33
45
|
var ServiceUnavailable;
|
|
34
46
|
(function (ServiceUnavailable) {
|
|
35
47
|
ServiceUnavailable.filterSensitiveLog = (obj) => ({
|
|
@@ -117,6 +117,14 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
|
|
|
117
117
|
let errorCode = "UnknownError";
|
|
118
118
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
119
119
|
switch (errorCode) {
|
|
120
|
+
case "InternalDependencyException":
|
|
121
|
+
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
122
|
+
response = {
|
|
123
|
+
...(await deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context)),
|
|
124
|
+
name: errorCode,
|
|
125
|
+
$metadata: deserializeMetadata(output),
|
|
126
|
+
};
|
|
127
|
+
break;
|
|
120
128
|
case "InternalFailure":
|
|
121
129
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
122
130
|
response = {
|
|
@@ -133,6 +141,14 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
|
|
|
133
141
|
$metadata: deserializeMetadata(output),
|
|
134
142
|
};
|
|
135
143
|
break;
|
|
144
|
+
case "ModelNotReadyException":
|
|
145
|
+
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
146
|
+
response = {
|
|
147
|
+
...(await deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)),
|
|
148
|
+
name: errorCode,
|
|
149
|
+
$metadata: deserializeMetadata(output),
|
|
150
|
+
};
|
|
151
|
+
break;
|
|
136
152
|
case "ServiceUnavailable":
|
|
137
153
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
138
154
|
response = {
|
|
@@ -233,6 +249,19 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
233
249
|
delete response.Message;
|
|
234
250
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
235
251
|
};
|
|
252
|
+
const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parsedOutput, context) => {
|
|
253
|
+
const contents = {
|
|
254
|
+
name: "InternalDependencyException",
|
|
255
|
+
$fault: "server",
|
|
256
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
257
|
+
Message: undefined,
|
|
258
|
+
};
|
|
259
|
+
const data = parsedOutput.body;
|
|
260
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
261
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
262
|
+
}
|
|
263
|
+
return contents;
|
|
264
|
+
};
|
|
236
265
|
const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, context) => {
|
|
237
266
|
const contents = {
|
|
238
267
|
name: "InternalFailure",
|
|
@@ -271,6 +300,19 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
|
|
|
271
300
|
}
|
|
272
301
|
return contents;
|
|
273
302
|
};
|
|
303
|
+
const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutput, context) => {
|
|
304
|
+
const contents = {
|
|
305
|
+
name: "ModelNotReadyException",
|
|
306
|
+
$fault: "client",
|
|
307
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
308
|
+
Message: undefined,
|
|
309
|
+
};
|
|
310
|
+
const data = parsedOutput.body;
|
|
311
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
312
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
313
|
+
}
|
|
314
|
+
return contents;
|
|
315
|
+
};
|
|
274
316
|
const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput, context) => {
|
|
275
317
|
const contents = {
|
|
276
318
|
name: "ServiceUnavailable",
|
|
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
export var InternalDependencyException;
|
|
4
|
+
(function (InternalDependencyException) {
|
|
5
|
+
InternalDependencyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
6
|
+
})(InternalDependencyException || (InternalDependencyException = {}));
|
|
3
7
|
export var InternalFailure;
|
|
4
8
|
(function (InternalFailure) {
|
|
5
9
|
InternalFailure.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -16,6 +20,10 @@ export var ModelError;
|
|
|
16
20
|
(function (ModelError) {
|
|
17
21
|
ModelError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
18
22
|
})(ModelError || (ModelError = {}));
|
|
23
|
+
export var ModelNotReadyException;
|
|
24
|
+
(function (ModelNotReadyException) {
|
|
25
|
+
ModelNotReadyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
26
|
+
})(ModelNotReadyException || (ModelNotReadyException = {}));
|
|
19
27
|
export var ServiceUnavailable;
|
|
20
28
|
(function (ServiceUnavailable) {
|
|
21
29
|
ServiceUnavailable.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -108,60 +108,76 @@ export var deserializeAws_restJson1InvokeEndpointCommand = function (output, con
|
|
|
108
108
|
});
|
|
109
109
|
}); };
|
|
110
110
|
var deserializeAws_restJson1InvokeEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
112
|
-
var
|
|
113
|
-
return __generator(this, function (
|
|
114
|
-
switch (
|
|
111
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
112
|
+
var _j;
|
|
113
|
+
return __generator(this, function (_k) {
|
|
114
|
+
switch (_k.label) {
|
|
115
115
|
case 0:
|
|
116
116
|
_a = [__assign({}, output)];
|
|
117
|
-
|
|
117
|
+
_j = {};
|
|
118
118
|
return [4, parseBody(output.body, context)];
|
|
119
119
|
case 1:
|
|
120
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
120
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
121
121
|
errorCode = "UnknownError";
|
|
122
122
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
123
123
|
_b = errorCode;
|
|
124
124
|
switch (_b) {
|
|
125
|
-
case "
|
|
126
|
-
case "com.amazonaws.sagemakerruntime#
|
|
127
|
-
case "
|
|
128
|
-
case "com.amazonaws.sagemakerruntime#
|
|
129
|
-
case "
|
|
130
|
-
case "com.amazonaws.sagemakerruntime#
|
|
131
|
-
case "
|
|
132
|
-
case "com.amazonaws.sagemakerruntime#
|
|
125
|
+
case "InternalDependencyException": return [3, 2];
|
|
126
|
+
case "com.amazonaws.sagemakerruntime#InternalDependencyException": return [3, 2];
|
|
127
|
+
case "InternalFailure": return [3, 4];
|
|
128
|
+
case "com.amazonaws.sagemakerruntime#InternalFailure": return [3, 4];
|
|
129
|
+
case "ModelError": return [3, 6];
|
|
130
|
+
case "com.amazonaws.sagemakerruntime#ModelError": return [3, 6];
|
|
131
|
+
case "ModelNotReadyException": return [3, 8];
|
|
132
|
+
case "com.amazonaws.sagemakerruntime#ModelNotReadyException": return [3, 8];
|
|
133
|
+
case "ServiceUnavailable": return [3, 10];
|
|
134
|
+
case "com.amazonaws.sagemakerruntime#ServiceUnavailable": return [3, 10];
|
|
135
|
+
case "ValidationError": return [3, 12];
|
|
136
|
+
case "com.amazonaws.sagemakerruntime#ValidationError": return [3, 12];
|
|
133
137
|
}
|
|
134
|
-
return [3,
|
|
138
|
+
return [3, 14];
|
|
135
139
|
case 2:
|
|
136
140
|
_c = [{}];
|
|
137
|
-
return [4,
|
|
141
|
+
return [4, deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context)];
|
|
138
142
|
case 3:
|
|
139
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
140
|
-
return [3,
|
|
143
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
144
|
+
return [3, 15];
|
|
141
145
|
case 4:
|
|
142
146
|
_d = [{}];
|
|
143
|
-
return [4,
|
|
147
|
+
return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
|
|
144
148
|
case 5:
|
|
145
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
146
|
-
return [3,
|
|
149
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
150
|
+
return [3, 15];
|
|
147
151
|
case 6:
|
|
148
152
|
_e = [{}];
|
|
149
|
-
return [4,
|
|
153
|
+
return [4, deserializeAws_restJson1ModelErrorResponse(parsedOutput, context)];
|
|
150
154
|
case 7:
|
|
151
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
152
|
-
return [3,
|
|
155
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
156
|
+
return [3, 15];
|
|
153
157
|
case 8:
|
|
154
158
|
_f = [{}];
|
|
155
|
-
return [4,
|
|
159
|
+
return [4, deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)];
|
|
156
160
|
case 9:
|
|
157
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
158
|
-
return [3,
|
|
161
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
162
|
+
return [3, 15];
|
|
159
163
|
case 10:
|
|
164
|
+
_g = [{}];
|
|
165
|
+
return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
166
|
+
case 11:
|
|
167
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
168
|
+
return [3, 15];
|
|
169
|
+
case 12:
|
|
170
|
+
_h = [{}];
|
|
171
|
+
return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
172
|
+
case 13:
|
|
173
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
174
|
+
return [3, 15];
|
|
175
|
+
case 14:
|
|
160
176
|
parsedBody = parsedOutput.body;
|
|
161
177
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
162
178
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
163
|
-
|
|
164
|
-
case
|
|
179
|
+
_k.label = 15;
|
|
180
|
+
case 15:
|
|
165
181
|
message = response.message || response.Message || errorCode;
|
|
166
182
|
response.message = message;
|
|
167
183
|
delete response.Message;
|
|
@@ -251,6 +267,22 @@ var deserializeAws_restJson1InvokeEndpointAsyncCommandError = function (output,
|
|
|
251
267
|
}
|
|
252
268
|
});
|
|
253
269
|
}); };
|
|
270
|
+
var deserializeAws_restJson1InternalDependencyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
271
|
+
var contents, data;
|
|
272
|
+
return __generator(this, function (_a) {
|
|
273
|
+
contents = {
|
|
274
|
+
name: "InternalDependencyException",
|
|
275
|
+
$fault: "server",
|
|
276
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
277
|
+
Message: undefined,
|
|
278
|
+
};
|
|
279
|
+
data = parsedOutput.body;
|
|
280
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
281
|
+
contents.Message = __expectString(data.Message);
|
|
282
|
+
}
|
|
283
|
+
return [2, contents];
|
|
284
|
+
});
|
|
285
|
+
}); };
|
|
254
286
|
var deserializeAws_restJson1InternalFailureResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
255
287
|
var contents, data;
|
|
256
288
|
return __generator(this, function (_a) {
|
|
@@ -295,6 +327,22 @@ var deserializeAws_restJson1ModelErrorResponse = function (parsedOutput, context
|
|
|
295
327
|
return [2, contents];
|
|
296
328
|
});
|
|
297
329
|
}); };
|
|
330
|
+
var deserializeAws_restJson1ModelNotReadyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
+
var contents, data;
|
|
332
|
+
return __generator(this, function (_a) {
|
|
333
|
+
contents = {
|
|
334
|
+
name: "ModelNotReadyException",
|
|
335
|
+
$fault: "client",
|
|
336
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
337
|
+
Message: undefined,
|
|
338
|
+
};
|
|
339
|
+
data = parsedOutput.body;
|
|
340
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
341
|
+
contents.Message = __expectString(data.Message);
|
|
342
|
+
}
|
|
343
|
+
return [2, contents];
|
|
344
|
+
});
|
|
345
|
+
}); };
|
|
298
346
|
var deserializeAws_restJson1ServiceUnavailableResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
299
347
|
var contents, data;
|
|
300
348
|
return __generator(this, function (_a) {
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
15
|
export var getRuntimeConfig = function (config) {
|
|
17
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
19
17
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
18
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
19
|
};
|
|
@@ -14,9 +14,9 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
|
|
|
14
14
|
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
|
|
15
15
|
* additional headers. You should not rely on the behavior of headers outside those
|
|
16
16
|
* enumerated in the request syntax. </p>
|
|
17
|
-
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using
|
|
17
|
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services Signature Version
|
|
18
18
|
* 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
19
|
-
* Requests (
|
|
19
|
+
* Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
|
|
20
20
|
* Reference</i>.</p>
|
|
21
21
|
* <p>A customer's model containers must respond to requests within 60 seconds. The model
|
|
22
22
|
* itself can have a maximum processing time of 60 seconds before responding to
|
|
@@ -46,8 +46,8 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
|
|
|
46
46
|
* Amazon SageMaker might add additional headers. You should not rely on the behavior
|
|
47
47
|
* of headers outside those enumerated in the request syntax.</p>
|
|
48
48
|
*
|
|
49
|
-
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using
|
|
50
|
-
* Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (
|
|
49
|
+
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
|
|
50
|
+
* Version 4. For information, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
|
|
51
51
|
* Reference</i>.</p>
|
|
52
52
|
*/
|
|
53
53
|
invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
|
|
@@ -21,8 +21,8 @@ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOut
|
|
|
21
21
|
* Amazon SageMaker might add additional headers. You should not rely on the behavior
|
|
22
22
|
* of headers outside those enumerated in the request syntax.</p>
|
|
23
23
|
*
|
|
24
|
-
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using
|
|
25
|
-
* Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (
|
|
24
|
+
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
|
|
25
|
+
* Version 4. For information, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
|
|
26
26
|
* Reference</i>.</p>
|
|
27
27
|
* @example
|
|
28
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -14,9 +14,9 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __Met
|
|
|
14
14
|
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
|
|
15
15
|
* additional headers. You should not rely on the behavior of headers outside those
|
|
16
16
|
* enumerated in the request syntax. </p>
|
|
17
|
-
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using
|
|
17
|
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services Signature Version
|
|
18
18
|
* 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
19
|
-
* Requests (
|
|
19
|
+
* Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
|
|
20
20
|
* Reference</i>.</p>
|
|
21
21
|
* <p>A customer's model containers must respond to requests within 60 seconds. The model
|
|
22
22
|
* itself can have a maximum processing time of 60 seconds before responding to
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
+
/**
|
|
3
|
+
* <p>Your request caused an exception with an internal dependency. Contact customer support. </p>
|
|
4
|
+
*/
|
|
5
|
+
export interface InternalDependencyException extends __SmithyException, $MetadataBearer {
|
|
6
|
+
name: "InternalDependencyException";
|
|
7
|
+
$fault: "server";
|
|
8
|
+
Message?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace InternalDependencyException {
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
const filterSensitiveLog: (obj: InternalDependencyException) => any;
|
|
15
|
+
}
|
|
2
16
|
/**
|
|
3
17
|
* <p> An internal failure occurred. </p>
|
|
4
18
|
*/
|
|
@@ -48,7 +62,7 @@ export interface InvokeEndpointInput {
|
|
|
48
62
|
* prepend the custom attribute with <code>Trace ID:</code> in your post-processing
|
|
49
63
|
* function.</p>
|
|
50
64
|
*
|
|
51
|
-
* <p>This feature is currently supported in the
|
|
65
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python
|
|
52
66
|
* SDK.</p>
|
|
53
67
|
*/
|
|
54
68
|
CustomAttributes?: string;
|
|
@@ -114,7 +128,7 @@ export interface InvokeEndpointOutput {
|
|
|
114
128
|
* returned. For example, if a custom attribute represents the trace ID, your model can
|
|
115
129
|
* prepend the custom attribute with <code>Trace ID:</code> in your post-processing
|
|
116
130
|
* function.</p>
|
|
117
|
-
* <p>This feature is currently supported in the
|
|
131
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python
|
|
118
132
|
* SDK.</p>
|
|
119
133
|
*/
|
|
120
134
|
CustomAttributes?: string;
|
|
@@ -152,6 +166,20 @@ export declare namespace ModelError {
|
|
|
152
166
|
*/
|
|
153
167
|
const filterSensitiveLog: (obj: ModelError) => any;
|
|
154
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* <p>Either a serverless endpoint variant's resources are still being provisioned, or a multi-model endpoint is still downloading or loading the target model. Wait and try your request again.</p>
|
|
171
|
+
*/
|
|
172
|
+
export interface ModelNotReadyException extends __SmithyException, $MetadataBearer {
|
|
173
|
+
name: "ModelNotReadyException";
|
|
174
|
+
$fault: "client";
|
|
175
|
+
Message?: string;
|
|
176
|
+
}
|
|
177
|
+
export declare namespace ModelNotReadyException {
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
const filterSensitiveLog: (obj: ModelNotReadyException) => any;
|
|
182
|
+
}
|
|
155
183
|
/**
|
|
156
184
|
* <p> The service is unavailable. Try your call again. </p>
|
|
157
185
|
*/
|
|
@@ -211,7 +239,7 @@ export interface InvokeEndpointAsyncInput {
|
|
|
211
239
|
* value is returned. For example, if a custom attribute represents the trace ID,
|
|
212
240
|
* your model can prepend the custom attribute with <code>Trace ID</code>: in your post-processing function. </p>
|
|
213
241
|
*
|
|
214
|
-
* <p>This feature is currently supported in the
|
|
242
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK. </p>
|
|
215
243
|
*/
|
|
216
244
|
CustomAttributes?: string;
|
|
217
245
|
/**
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
2
|
|
|
3
|
+
export interface InternalDependencyException extends __SmithyException, $MetadataBearer {
|
|
4
|
+
name: "InternalDependencyException";
|
|
5
|
+
$fault: "server";
|
|
6
|
+
Message?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace InternalDependencyException {
|
|
9
|
+
|
|
10
|
+
const filterSensitiveLog: (obj: InternalDependencyException) => any;
|
|
11
|
+
}
|
|
12
|
+
|
|
3
13
|
export interface InternalFailure extends __SmithyException, $MetadataBearer {
|
|
4
14
|
name: "InternalFailure";
|
|
5
15
|
$fault: "server";
|
|
@@ -64,6 +74,16 @@ export declare namespace ModelError {
|
|
|
64
74
|
const filterSensitiveLog: (obj: ModelError) => any;
|
|
65
75
|
}
|
|
66
76
|
|
|
77
|
+
export interface ModelNotReadyException extends __SmithyException, $MetadataBearer {
|
|
78
|
+
name: "ModelNotReadyException";
|
|
79
|
+
$fault: "client";
|
|
80
|
+
Message?: string;
|
|
81
|
+
}
|
|
82
|
+
export declare namespace ModelNotReadyException {
|
|
83
|
+
|
|
84
|
+
const filterSensitiveLog: (obj: ModelNotReadyException) => any;
|
|
85
|
+
}
|
|
86
|
+
|
|
67
87
|
export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
|
|
68
88
|
name: "ServiceUnavailable";
|
|
69
89
|
$fault: "server";
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.46.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
12
|
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
-
"clean:dist": "rimraf ./dist",
|
|
13
|
-
"clean:docs": "rimraf ./docs"
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
13
|
+
"clean:dist": "rimraf ./dist-*",
|
|
14
|
+
"clean:docs": "rimraf ./docs"
|
|
16
15
|
},
|
|
17
16
|
"main": "./dist-cjs/index.js",
|
|
18
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,48 +20,42 @@
|
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.46.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.46.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.46.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.46.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.46.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.46.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.46.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.46.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.46.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.46.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.46.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.46.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.46.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.46.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.46.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.46.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.46.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.46.0",
|
|
41
|
+
"@aws-sdk/types": "3.46.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.46.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.46.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.46.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.46.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.46.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.46.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.46.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.46.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.46.0",
|
|
52
51
|
"tslib": "^2.3.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
-
"@types/node": "^12.7.5"
|
|
57
|
-
"downlevel-dts": "0.7.0",
|
|
58
|
-
"jest": "^26.1.0",
|
|
59
|
-
"rimraf": "^3.0.0",
|
|
60
|
-
"ts-jest": "^26.4.1",
|
|
61
|
-
"typedoc": "^0.19.2",
|
|
62
|
-
"typescript": "~4.3.5"
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.46.0",
|
|
55
|
+
"@types/node": "^12.7.5"
|
|
63
56
|
},
|
|
64
57
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
58
|
+
"node": ">=12.0.0"
|
|
66
59
|
},
|
|
67
60
|
"typesVersions": {
|
|
68
61
|
"<4.0": {
|