@aws-sdk/client-sagemaker-runtime 3.51.0 → 3.54.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/SageMakerRuntimeServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +89 -1
- package/dist-cjs/protocols/Aws_restJson1.js +55 -119
- package/dist-es/index.js +1 -0
- package/dist-es/models/SageMakerRuntimeServiceException.js +12 -0
- package/dist-es/models/models_0.js +83 -1
- package/dist-es/protocols/Aws_restJson1.js +69 -134
- package/dist-types/SageMakerRuntimeClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SageMakerRuntimeServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SageMakerRuntimeServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -19
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- 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.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-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.SageMakerRuntimeServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./SageMakerRuntime"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./SageMakerRuntimeClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var SageMakerRuntimeServiceException_1 = require("./models/SageMakerRuntimeServiceException");
|
|
10
|
+
Object.defineProperty(exports, "SageMakerRuntimeServiceException", { enumerable: true, get: function () { return SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SageMakerRuntimeServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class SageMakerRuntimeServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, SageMakerRuntimeServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SageMakerRuntimeServiceException = SageMakerRuntimeServiceException;
|
|
@@ -1,7 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = 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
|
+
const SageMakerRuntimeServiceException_1 = require("./SageMakerRuntimeServiceException");
|
|
6
|
+
class InternalDependencyException extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "InternalDependencyException",
|
|
10
|
+
$fault: "server",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "InternalDependencyException";
|
|
14
|
+
this.$fault = "server";
|
|
15
|
+
Object.setPrototypeOf(this, InternalDependencyException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.InternalDependencyException = InternalDependencyException;
|
|
20
|
+
class InternalFailure extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "InternalFailure",
|
|
24
|
+
$fault: "server",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
this.name = "InternalFailure";
|
|
28
|
+
this.$fault = "server";
|
|
29
|
+
Object.setPrototypeOf(this, InternalFailure.prototype);
|
|
30
|
+
this.Message = opts.Message;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.InternalFailure = InternalFailure;
|
|
5
34
|
var InvokeEndpointInput;
|
|
6
35
|
(function (InvokeEndpointInput) {
|
|
7
36
|
InvokeEndpointInput.filterSensitiveLog = (obj) => ({
|
|
@@ -18,6 +47,65 @@ var InvokeEndpointOutput;
|
|
|
18
47
|
...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
|
|
19
48
|
});
|
|
20
49
|
})(InvokeEndpointOutput = exports.InvokeEndpointOutput || (exports.InvokeEndpointOutput = {}));
|
|
50
|
+
class ModelError extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
|
|
51
|
+
constructor(opts) {
|
|
52
|
+
super({
|
|
53
|
+
name: "ModelError",
|
|
54
|
+
$fault: "client",
|
|
55
|
+
...opts,
|
|
56
|
+
});
|
|
57
|
+
this.name = "ModelError";
|
|
58
|
+
this.$fault = "client";
|
|
59
|
+
Object.setPrototypeOf(this, ModelError.prototype);
|
|
60
|
+
this.Message = opts.Message;
|
|
61
|
+
this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
62
|
+
this.OriginalMessage = opts.OriginalMessage;
|
|
63
|
+
this.LogStreamArn = opts.LogStreamArn;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.ModelError = ModelError;
|
|
67
|
+
class ModelNotReadyException extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ModelNotReadyException",
|
|
71
|
+
$fault: "client",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
this.name = "ModelNotReadyException";
|
|
75
|
+
this.$fault = "client";
|
|
76
|
+
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
77
|
+
this.Message = opts.Message;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ModelNotReadyException = ModelNotReadyException;
|
|
81
|
+
class ServiceUnavailable extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
|
|
82
|
+
constructor(opts) {
|
|
83
|
+
super({
|
|
84
|
+
name: "ServiceUnavailable",
|
|
85
|
+
$fault: "server",
|
|
86
|
+
...opts,
|
|
87
|
+
});
|
|
88
|
+
this.name = "ServiceUnavailable";
|
|
89
|
+
this.$fault = "server";
|
|
90
|
+
Object.setPrototypeOf(this, ServiceUnavailable.prototype);
|
|
91
|
+
this.Message = opts.Message;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ServiceUnavailable = ServiceUnavailable;
|
|
95
|
+
class ValidationError extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
|
|
96
|
+
constructor(opts) {
|
|
97
|
+
super({
|
|
98
|
+
name: "ValidationError",
|
|
99
|
+
$fault: "client",
|
|
100
|
+
...opts,
|
|
101
|
+
});
|
|
102
|
+
this.name = "ValidationError";
|
|
103
|
+
this.$fault = "client";
|
|
104
|
+
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
105
|
+
this.Message = opts.Message;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.ValidationError = ValidationError;
|
|
21
109
|
var InvokeEndpointAsyncInput;
|
|
22
110
|
(function (InvokeEndpointAsyncInput) {
|
|
23
111
|
InvokeEndpointAsyncInput.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1InvokeEndpointAsyncCommand = exports.deserializeAws_restJson1InvokeEndpointCommand = exports.serializeAws_restJson1InvokeEndpointAsyncCommand = exports.serializeAws_restJson1InvokeEndpointCommand = 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 SageMakerRuntimeServiceException_1 = require("../models/SageMakerRuntimeServiceException");
|
|
6
8
|
const serializeAws_restJson1InvokeEndpointCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -119,67 +121,31 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
|
|
|
119
121
|
switch (errorCode) {
|
|
120
122
|
case "InternalDependencyException":
|
|
121
123
|
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
122
|
-
|
|
123
|
-
...(await deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context)),
|
|
124
|
-
name: errorCode,
|
|
125
|
-
$metadata: deserializeMetadata(output),
|
|
126
|
-
};
|
|
127
|
-
break;
|
|
124
|
+
throw await deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context);
|
|
128
125
|
case "InternalFailure":
|
|
129
126
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
130
|
-
|
|
131
|
-
...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
|
|
132
|
-
name: errorCode,
|
|
133
|
-
$metadata: deserializeMetadata(output),
|
|
134
|
-
};
|
|
135
|
-
break;
|
|
127
|
+
throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
|
|
136
128
|
case "ModelError":
|
|
137
129
|
case "com.amazonaws.sagemakerruntime#ModelError":
|
|
138
|
-
|
|
139
|
-
...(await deserializeAws_restJson1ModelErrorResponse(parsedOutput, context)),
|
|
140
|
-
name: errorCode,
|
|
141
|
-
$metadata: deserializeMetadata(output),
|
|
142
|
-
};
|
|
143
|
-
break;
|
|
130
|
+
throw await deserializeAws_restJson1ModelErrorResponse(parsedOutput, context);
|
|
144
131
|
case "ModelNotReadyException":
|
|
145
132
|
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
146
|
-
|
|
147
|
-
...(await deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)),
|
|
148
|
-
name: errorCode,
|
|
149
|
-
$metadata: deserializeMetadata(output),
|
|
150
|
-
};
|
|
151
|
-
break;
|
|
133
|
+
throw await deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context);
|
|
152
134
|
case "ServiceUnavailable":
|
|
153
135
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
154
|
-
|
|
155
|
-
...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
|
|
156
|
-
name: errorCode,
|
|
157
|
-
$metadata: deserializeMetadata(output),
|
|
158
|
-
};
|
|
159
|
-
break;
|
|
136
|
+
throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
|
|
160
137
|
case "ValidationError":
|
|
161
138
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
162
|
-
|
|
163
|
-
...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
|
|
164
|
-
name: errorCode,
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
};
|
|
167
|
-
break;
|
|
139
|
+
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
168
140
|
default:
|
|
169
141
|
const parsedBody = parsedOutput.body;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
...parsedBody,
|
|
173
|
-
name: `${errorCode}`,
|
|
174
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
142
|
+
response = new SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException({
|
|
143
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
175
144
|
$fault: "client",
|
|
176
145
|
$metadata: deserializeMetadata(output),
|
|
177
|
-
};
|
|
146
|
+
});
|
|
147
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
178
148
|
}
|
|
179
|
-
const message = response.message || response.Message || errorCode;
|
|
180
|
-
response.message = message;
|
|
181
|
-
delete response.Message;
|
|
182
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
183
149
|
};
|
|
184
150
|
const deserializeAws_restJson1InvokeEndpointAsyncCommand = async (output, context) => {
|
|
185
151
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -211,80 +177,49 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
211
177
|
switch (errorCode) {
|
|
212
178
|
case "InternalFailure":
|
|
213
179
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
214
|
-
|
|
215
|
-
...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
|
|
216
|
-
name: errorCode,
|
|
217
|
-
$metadata: deserializeMetadata(output),
|
|
218
|
-
};
|
|
219
|
-
break;
|
|
180
|
+
throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
|
|
220
181
|
case "ServiceUnavailable":
|
|
221
182
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
222
|
-
|
|
223
|
-
...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
|
|
224
|
-
name: errorCode,
|
|
225
|
-
$metadata: deserializeMetadata(output),
|
|
226
|
-
};
|
|
227
|
-
break;
|
|
183
|
+
throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
|
|
228
184
|
case "ValidationError":
|
|
229
185
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
230
|
-
|
|
231
|
-
...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
|
|
232
|
-
name: errorCode,
|
|
233
|
-
$metadata: deserializeMetadata(output),
|
|
234
|
-
};
|
|
235
|
-
break;
|
|
186
|
+
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
236
187
|
default:
|
|
237
188
|
const parsedBody = parsedOutput.body;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
...parsedBody,
|
|
241
|
-
name: `${errorCode}`,
|
|
242
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
189
|
+
response = new SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException({
|
|
190
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
243
191
|
$fault: "client",
|
|
244
192
|
$metadata: deserializeMetadata(output),
|
|
245
|
-
};
|
|
193
|
+
});
|
|
194
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
246
195
|
}
|
|
247
|
-
const message = response.message || response.Message || errorCode;
|
|
248
|
-
response.message = message;
|
|
249
|
-
delete response.Message;
|
|
250
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
251
196
|
};
|
|
252
197
|
const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parsedOutput, context) => {
|
|
253
|
-
const contents = {
|
|
254
|
-
name: "InternalDependencyException",
|
|
255
|
-
$fault: "server",
|
|
256
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
257
|
-
Message: undefined,
|
|
258
|
-
};
|
|
198
|
+
const contents = {};
|
|
259
199
|
const data = parsedOutput.body;
|
|
260
200
|
if (data.Message !== undefined && data.Message !== null) {
|
|
261
201
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
262
202
|
}
|
|
263
|
-
|
|
203
|
+
const exception = new models_0_1.InternalDependencyException({
|
|
204
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
205
|
+
...contents,
|
|
206
|
+
});
|
|
207
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
264
208
|
};
|
|
265
209
|
const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, context) => {
|
|
266
|
-
const contents = {
|
|
267
|
-
name: "InternalFailure",
|
|
268
|
-
$fault: "server",
|
|
269
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
270
|
-
Message: undefined,
|
|
271
|
-
};
|
|
210
|
+
const contents = {};
|
|
272
211
|
const data = parsedOutput.body;
|
|
273
212
|
if (data.Message !== undefined && data.Message !== null) {
|
|
274
213
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
275
214
|
}
|
|
276
|
-
|
|
215
|
+
const exception = new models_0_1.InternalFailure({
|
|
216
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
217
|
+
...contents,
|
|
218
|
+
});
|
|
219
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
277
220
|
};
|
|
278
221
|
const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context) => {
|
|
279
|
-
const contents = {
|
|
280
|
-
name: "ModelError",
|
|
281
|
-
$fault: "client",
|
|
282
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
283
|
-
LogStreamArn: undefined,
|
|
284
|
-
Message: undefined,
|
|
285
|
-
OriginalMessage: undefined,
|
|
286
|
-
OriginalStatusCode: undefined,
|
|
287
|
-
};
|
|
222
|
+
const contents = {};
|
|
288
223
|
const data = parsedOutput.body;
|
|
289
224
|
if (data.LogStreamArn !== undefined && data.LogStreamArn !== null) {
|
|
290
225
|
contents.LogStreamArn = smithy_client_1.expectString(data.LogStreamArn);
|
|
@@ -298,46 +233,47 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
|
|
|
298
233
|
if (data.OriginalStatusCode !== undefined && data.OriginalStatusCode !== null) {
|
|
299
234
|
contents.OriginalStatusCode = smithy_client_1.expectInt32(data.OriginalStatusCode);
|
|
300
235
|
}
|
|
301
|
-
|
|
236
|
+
const exception = new models_0_1.ModelError({
|
|
237
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
238
|
+
...contents,
|
|
239
|
+
});
|
|
240
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
302
241
|
};
|
|
303
242
|
const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutput, context) => {
|
|
304
|
-
const contents = {
|
|
305
|
-
name: "ModelNotReadyException",
|
|
306
|
-
$fault: "client",
|
|
307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
308
|
-
Message: undefined,
|
|
309
|
-
};
|
|
243
|
+
const contents = {};
|
|
310
244
|
const data = parsedOutput.body;
|
|
311
245
|
if (data.Message !== undefined && data.Message !== null) {
|
|
312
246
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
313
247
|
}
|
|
314
|
-
|
|
248
|
+
const exception = new models_0_1.ModelNotReadyException({
|
|
249
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
250
|
+
...contents,
|
|
251
|
+
});
|
|
252
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
315
253
|
};
|
|
316
254
|
const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput, context) => {
|
|
317
|
-
const contents = {
|
|
318
|
-
name: "ServiceUnavailable",
|
|
319
|
-
$fault: "server",
|
|
320
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
321
|
-
Message: undefined,
|
|
322
|
-
};
|
|
255
|
+
const contents = {};
|
|
323
256
|
const data = parsedOutput.body;
|
|
324
257
|
if (data.Message !== undefined && data.Message !== null) {
|
|
325
258
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
326
259
|
}
|
|
327
|
-
|
|
260
|
+
const exception = new models_0_1.ServiceUnavailable({
|
|
261
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
262
|
+
...contents,
|
|
263
|
+
});
|
|
264
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
328
265
|
};
|
|
329
266
|
const deserializeAws_restJson1ValidationErrorResponse = async (parsedOutput, context) => {
|
|
330
|
-
const contents = {
|
|
331
|
-
name: "ValidationError",
|
|
332
|
-
$fault: "client",
|
|
333
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
334
|
-
Message: undefined,
|
|
335
|
-
};
|
|
267
|
+
const contents = {};
|
|
336
268
|
const data = parsedOutput.body;
|
|
337
269
|
if (data.Message !== undefined && data.Message !== null) {
|
|
338
270
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
339
271
|
}
|
|
340
|
-
|
|
272
|
+
const exception = new models_0_1.ValidationError({
|
|
273
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
274
|
+
...contents,
|
|
275
|
+
});
|
|
276
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
341
277
|
};
|
|
342
278
|
const deserializeMetadata = (output) => {
|
|
343
279
|
var _a;
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var SageMakerRuntimeServiceException = (function (_super) {
|
|
4
|
+
__extends(SageMakerRuntimeServiceException, _super);
|
|
5
|
+
function SageMakerRuntimeServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, SageMakerRuntimeServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return SageMakerRuntimeServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { SageMakerRuntimeServiceException };
|
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
4
|
+
var InternalDependencyException = (function (_super) {
|
|
5
|
+
__extends(InternalDependencyException, _super);
|
|
6
|
+
function InternalDependencyException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "InternalDependencyException", $fault: "server" }, opts)) || this;
|
|
8
|
+
_this.name = "InternalDependencyException";
|
|
9
|
+
_this.$fault = "server";
|
|
10
|
+
Object.setPrototypeOf(_this, InternalDependencyException.prototype);
|
|
11
|
+
_this.Message = opts.Message;
|
|
12
|
+
return _this;
|
|
13
|
+
}
|
|
14
|
+
return InternalDependencyException;
|
|
15
|
+
}(__BaseException));
|
|
16
|
+
export { InternalDependencyException };
|
|
17
|
+
var InternalFailure = (function (_super) {
|
|
18
|
+
__extends(InternalFailure, _super);
|
|
19
|
+
function InternalFailure(opts) {
|
|
20
|
+
var _this = _super.call(this, __assign({ name: "InternalFailure", $fault: "server" }, opts)) || this;
|
|
21
|
+
_this.name = "InternalFailure";
|
|
22
|
+
_this.$fault = "server";
|
|
23
|
+
Object.setPrototypeOf(_this, InternalFailure.prototype);
|
|
24
|
+
_this.Message = opts.Message;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
return InternalFailure;
|
|
28
|
+
}(__BaseException));
|
|
29
|
+
export { InternalFailure };
|
|
3
30
|
export var InvokeEndpointInput;
|
|
4
31
|
(function (InvokeEndpointInput) {
|
|
5
32
|
InvokeEndpointInput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
|
|
@@ -8,6 +35,61 @@ export var InvokeEndpointOutput;
|
|
|
8
35
|
(function (InvokeEndpointOutput) {
|
|
9
36
|
InvokeEndpointOutput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
|
|
10
37
|
})(InvokeEndpointOutput || (InvokeEndpointOutput = {}));
|
|
38
|
+
var ModelError = (function (_super) {
|
|
39
|
+
__extends(ModelError, _super);
|
|
40
|
+
function ModelError(opts) {
|
|
41
|
+
var _this = _super.call(this, __assign({ name: "ModelError", $fault: "client" }, opts)) || this;
|
|
42
|
+
_this.name = "ModelError";
|
|
43
|
+
_this.$fault = "client";
|
|
44
|
+
Object.setPrototypeOf(_this, ModelError.prototype);
|
|
45
|
+
_this.Message = opts.Message;
|
|
46
|
+
_this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
47
|
+
_this.OriginalMessage = opts.OriginalMessage;
|
|
48
|
+
_this.LogStreamArn = opts.LogStreamArn;
|
|
49
|
+
return _this;
|
|
50
|
+
}
|
|
51
|
+
return ModelError;
|
|
52
|
+
}(__BaseException));
|
|
53
|
+
export { ModelError };
|
|
54
|
+
var ModelNotReadyException = (function (_super) {
|
|
55
|
+
__extends(ModelNotReadyException, _super);
|
|
56
|
+
function ModelNotReadyException(opts) {
|
|
57
|
+
var _this = _super.call(this, __assign({ name: "ModelNotReadyException", $fault: "client" }, opts)) || this;
|
|
58
|
+
_this.name = "ModelNotReadyException";
|
|
59
|
+
_this.$fault = "client";
|
|
60
|
+
Object.setPrototypeOf(_this, ModelNotReadyException.prototype);
|
|
61
|
+
_this.Message = opts.Message;
|
|
62
|
+
return _this;
|
|
63
|
+
}
|
|
64
|
+
return ModelNotReadyException;
|
|
65
|
+
}(__BaseException));
|
|
66
|
+
export { ModelNotReadyException };
|
|
67
|
+
var ServiceUnavailable = (function (_super) {
|
|
68
|
+
__extends(ServiceUnavailable, _super);
|
|
69
|
+
function ServiceUnavailable(opts) {
|
|
70
|
+
var _this = _super.call(this, __assign({ name: "ServiceUnavailable", $fault: "server" }, opts)) || this;
|
|
71
|
+
_this.name = "ServiceUnavailable";
|
|
72
|
+
_this.$fault = "server";
|
|
73
|
+
Object.setPrototypeOf(_this, ServiceUnavailable.prototype);
|
|
74
|
+
_this.Message = opts.Message;
|
|
75
|
+
return _this;
|
|
76
|
+
}
|
|
77
|
+
return ServiceUnavailable;
|
|
78
|
+
}(__BaseException));
|
|
79
|
+
export { ServiceUnavailable };
|
|
80
|
+
var ValidationError = (function (_super) {
|
|
81
|
+
__extends(ValidationError, _super);
|
|
82
|
+
function ValidationError(opts) {
|
|
83
|
+
var _this = _super.call(this, __assign({ name: "ValidationError", $fault: "client" }, opts)) || this;
|
|
84
|
+
_this.name = "ValidationError";
|
|
85
|
+
_this.$fault = "client";
|
|
86
|
+
Object.setPrototypeOf(_this, ValidationError.prototype);
|
|
87
|
+
_this.Message = opts.Message;
|
|
88
|
+
return _this;
|
|
89
|
+
}
|
|
90
|
+
return ValidationError;
|
|
91
|
+
}(__BaseException));
|
|
92
|
+
export { ValidationError };
|
|
11
93
|
export var InvokeEndpointAsyncInput;
|
|
12
94
|
(function (InvokeEndpointAsyncInput) {
|
|
13
95
|
InvokeEndpointAsyncInput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { InternalDependencyException, InternalFailure, ModelError, ModelNotReadyException, ServiceUnavailable, ValidationError, } from "../models/models_0";
|
|
5
|
+
import { SageMakerRuntimeServiceException as __BaseException } from "../models/SageMakerRuntimeServiceException";
|
|
4
6
|
export var serializeAws_restJson1InvokeEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -108,16 +110,16 @@ export var deserializeAws_restJson1InvokeEndpointCommand = function (output, con
|
|
|
108
110
|
});
|
|
109
111
|
}); };
|
|
110
112
|
var deserializeAws_restJson1InvokeEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
112
|
-
var
|
|
113
|
-
return __generator(this, function (
|
|
114
|
-
switch (
|
|
113
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
114
|
+
var _c;
|
|
115
|
+
return __generator(this, function (_d) {
|
|
116
|
+
switch (_d.label) {
|
|
115
117
|
case 0:
|
|
116
118
|
_a = [__assign({}, output)];
|
|
117
|
-
|
|
119
|
+
_c = {};
|
|
118
120
|
return [4, parseBody(output.body, context)];
|
|
119
121
|
case 1:
|
|
120
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
122
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
121
123
|
errorCode = "UnknownError";
|
|
122
124
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
123
125
|
_b = errorCode;
|
|
@@ -136,52 +138,26 @@ var deserializeAws_restJson1InvokeEndpointCommandError = function (output, conte
|
|
|
136
138
|
case "com.amazonaws.sagemakerruntime#ValidationError": return [3, 12];
|
|
137
139
|
}
|
|
138
140
|
return [3, 14];
|
|
139
|
-
case 2:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
case
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
case 4
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
case
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
case 6:
|
|
152
|
-
_e = [{}];
|
|
153
|
-
return [4, deserializeAws_restJson1ModelErrorResponse(parsedOutput, context)];
|
|
154
|
-
case 7:
|
|
155
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
156
|
-
return [3, 15];
|
|
157
|
-
case 8:
|
|
158
|
-
_f = [{}];
|
|
159
|
-
return [4, deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)];
|
|
160
|
-
case 9:
|
|
161
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
162
|
-
return [3, 15];
|
|
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];
|
|
141
|
+
case 2: return [4, deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context)];
|
|
142
|
+
case 3: throw _d.sent();
|
|
143
|
+
case 4: return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
|
|
144
|
+
case 5: throw _d.sent();
|
|
145
|
+
case 6: return [4, deserializeAws_restJson1ModelErrorResponse(parsedOutput, context)];
|
|
146
|
+
case 7: throw _d.sent();
|
|
147
|
+
case 8: return [4, deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)];
|
|
148
|
+
case 9: throw _d.sent();
|
|
149
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
150
|
+
case 11: throw _d.sent();
|
|
151
|
+
case 12: return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
152
|
+
case 13: throw _d.sent();
|
|
175
153
|
case 14:
|
|
176
154
|
parsedBody = parsedOutput.body;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
response
|
|
183
|
-
delete response.Message;
|
|
184
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
155
|
+
response = new __BaseException({
|
|
156
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
157
|
+
$fault: "client",
|
|
158
|
+
$metadata: deserializeMetadata(output),
|
|
159
|
+
});
|
|
160
|
+
throw __decorateServiceException(response, parsedBody);
|
|
185
161
|
}
|
|
186
162
|
});
|
|
187
163
|
}); };
|
|
@@ -214,16 +190,16 @@ export var deserializeAws_restJson1InvokeEndpointAsyncCommand = function (output
|
|
|
214
190
|
});
|
|
215
191
|
}); };
|
|
216
192
|
var deserializeAws_restJson1InvokeEndpointAsyncCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
217
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
218
|
-
var
|
|
219
|
-
return __generator(this, function (
|
|
220
|
-
switch (
|
|
193
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
194
|
+
var _c;
|
|
195
|
+
return __generator(this, function (_d) {
|
|
196
|
+
switch (_d.label) {
|
|
221
197
|
case 0:
|
|
222
198
|
_a = [__assign({}, output)];
|
|
223
|
-
|
|
199
|
+
_c = {};
|
|
224
200
|
return [4, parseBody(output.body, context)];
|
|
225
201
|
case 1:
|
|
226
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
202
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
227
203
|
errorCode = "UnknownError";
|
|
228
204
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
229
205
|
_b = errorCode;
|
|
@@ -236,81 +212,51 @@ var deserializeAws_restJson1InvokeEndpointAsyncCommandError = function (output,
|
|
|
236
212
|
case "com.amazonaws.sagemakerruntime#ValidationError": return [3, 6];
|
|
237
213
|
}
|
|
238
214
|
return [3, 8];
|
|
239
|
-
case 2:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
case
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
case 4:
|
|
246
|
-
_d = [{}];
|
|
247
|
-
return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
248
|
-
case 5:
|
|
249
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
250
|
-
return [3, 9];
|
|
251
|
-
case 6:
|
|
252
|
-
_e = [{}];
|
|
253
|
-
return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
254
|
-
case 7:
|
|
255
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
256
|
-
return [3, 9];
|
|
215
|
+
case 2: return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
|
|
216
|
+
case 3: throw _d.sent();
|
|
217
|
+
case 4: return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
|
|
218
|
+
case 5: throw _d.sent();
|
|
219
|
+
case 6: return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
|
|
220
|
+
case 7: throw _d.sent();
|
|
257
221
|
case 8:
|
|
258
222
|
parsedBody = parsedOutput.body;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
response
|
|
265
|
-
delete response.Message;
|
|
266
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
223
|
+
response = new __BaseException({
|
|
224
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
225
|
+
$fault: "client",
|
|
226
|
+
$metadata: deserializeMetadata(output),
|
|
227
|
+
});
|
|
228
|
+
throw __decorateServiceException(response, parsedBody);
|
|
267
229
|
}
|
|
268
230
|
});
|
|
269
231
|
}); };
|
|
270
232
|
var deserializeAws_restJson1InternalDependencyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
271
|
-
var contents, data;
|
|
233
|
+
var contents, data, exception;
|
|
272
234
|
return __generator(this, function (_a) {
|
|
273
|
-
contents = {
|
|
274
|
-
name: "InternalDependencyException",
|
|
275
|
-
$fault: "server",
|
|
276
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
277
|
-
Message: undefined,
|
|
278
|
-
};
|
|
235
|
+
contents = {};
|
|
279
236
|
data = parsedOutput.body;
|
|
280
237
|
if (data.Message !== undefined && data.Message !== null) {
|
|
281
238
|
contents.Message = __expectString(data.Message);
|
|
282
239
|
}
|
|
283
|
-
|
|
240
|
+
exception = new InternalDependencyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
241
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
284
242
|
});
|
|
285
243
|
}); };
|
|
286
244
|
var deserializeAws_restJson1InternalFailureResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
287
|
-
var contents, data;
|
|
245
|
+
var contents, data, exception;
|
|
288
246
|
return __generator(this, function (_a) {
|
|
289
|
-
contents = {
|
|
290
|
-
name: "InternalFailure",
|
|
291
|
-
$fault: "server",
|
|
292
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
293
|
-
Message: undefined,
|
|
294
|
-
};
|
|
247
|
+
contents = {};
|
|
295
248
|
data = parsedOutput.body;
|
|
296
249
|
if (data.Message !== undefined && data.Message !== null) {
|
|
297
250
|
contents.Message = __expectString(data.Message);
|
|
298
251
|
}
|
|
299
|
-
|
|
252
|
+
exception = new InternalFailure(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
253
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
300
254
|
});
|
|
301
255
|
}); };
|
|
302
256
|
var deserializeAws_restJson1ModelErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
303
|
-
var contents, data;
|
|
257
|
+
var contents, data, exception;
|
|
304
258
|
return __generator(this, function (_a) {
|
|
305
|
-
contents = {
|
|
306
|
-
name: "ModelError",
|
|
307
|
-
$fault: "client",
|
|
308
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
309
|
-
LogStreamArn: undefined,
|
|
310
|
-
Message: undefined,
|
|
311
|
-
OriginalMessage: undefined,
|
|
312
|
-
OriginalStatusCode: undefined,
|
|
313
|
-
};
|
|
259
|
+
contents = {};
|
|
314
260
|
data = parsedOutput.body;
|
|
315
261
|
if (data.LogStreamArn !== undefined && data.LogStreamArn !== null) {
|
|
316
262
|
contents.LogStreamArn = __expectString(data.LogStreamArn);
|
|
@@ -324,55 +270,44 @@ var deserializeAws_restJson1ModelErrorResponse = function (parsedOutput, context
|
|
|
324
270
|
if (data.OriginalStatusCode !== undefined && data.OriginalStatusCode !== null) {
|
|
325
271
|
contents.OriginalStatusCode = __expectInt32(data.OriginalStatusCode);
|
|
326
272
|
}
|
|
327
|
-
|
|
273
|
+
exception = new ModelError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
274
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
328
275
|
});
|
|
329
276
|
}); };
|
|
330
277
|
var deserializeAws_restJson1ModelNotReadyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
-
var contents, data;
|
|
278
|
+
var contents, data, exception;
|
|
332
279
|
return __generator(this, function (_a) {
|
|
333
|
-
contents = {
|
|
334
|
-
name: "ModelNotReadyException",
|
|
335
|
-
$fault: "client",
|
|
336
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
337
|
-
Message: undefined,
|
|
338
|
-
};
|
|
280
|
+
contents = {};
|
|
339
281
|
data = parsedOutput.body;
|
|
340
282
|
if (data.Message !== undefined && data.Message !== null) {
|
|
341
283
|
contents.Message = __expectString(data.Message);
|
|
342
284
|
}
|
|
343
|
-
|
|
285
|
+
exception = new ModelNotReadyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
286
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
344
287
|
});
|
|
345
288
|
}); };
|
|
346
289
|
var deserializeAws_restJson1ServiceUnavailableResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
347
|
-
var contents, data;
|
|
290
|
+
var contents, data, exception;
|
|
348
291
|
return __generator(this, function (_a) {
|
|
349
|
-
contents = {
|
|
350
|
-
name: "ServiceUnavailable",
|
|
351
|
-
$fault: "server",
|
|
352
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
353
|
-
Message: undefined,
|
|
354
|
-
};
|
|
292
|
+
contents = {};
|
|
355
293
|
data = parsedOutput.body;
|
|
356
294
|
if (data.Message !== undefined && data.Message !== null) {
|
|
357
295
|
contents.Message = __expectString(data.Message);
|
|
358
296
|
}
|
|
359
|
-
|
|
297
|
+
exception = new ServiceUnavailable(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
298
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
360
299
|
});
|
|
361
300
|
}); };
|
|
362
301
|
var deserializeAws_restJson1ValidationErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
363
|
-
var contents, data;
|
|
302
|
+
var contents, data, exception;
|
|
364
303
|
return __generator(this, function (_a) {
|
|
365
|
-
contents = {
|
|
366
|
-
name: "ValidationError",
|
|
367
|
-
$fault: "client",
|
|
368
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
369
|
-
Message: undefined,
|
|
370
|
-
};
|
|
304
|
+
contents = {};
|
|
371
305
|
data = parsedOutput.body;
|
|
372
306
|
if (data.Message !== undefined && data.Message !== null) {
|
|
373
307
|
contents.Message = __expectString(data.Message);
|
|
374
308
|
}
|
|
375
|
-
|
|
309
|
+
exception = new ValidationError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
310
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
376
311
|
});
|
|
377
312
|
}); };
|
|
378
313
|
var deserializeMetadata = function (output) {
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
|
|
10
10
|
import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
|
|
11
11
|
export declare type ServiceInputTypes = InvokeEndpointAsyncCommandInput | InvokeEndpointCommandInput;
|
|
@@ -30,7 +30,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
30
30
|
* A function that can calculate the length of a request body.
|
|
31
31
|
* @internal
|
|
32
32
|
*/
|
|
33
|
-
bodyLengthChecker?:
|
|
33
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
34
34
|
/**
|
|
35
35
|
* A function that converts a stream into an array of bytes.
|
|
36
36
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from SageMakerRuntime service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SageMakerRuntimeServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>Your request caused an exception with an internal dependency. Contact customer support. </p>
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
name: "InternalDependencyException";
|
|
7
|
-
$fault: "server";
|
|
6
|
+
export declare class InternalDependencyException extends __BaseException {
|
|
7
|
+
readonly name: "InternalDependencyException";
|
|
8
|
+
readonly $fault: "server";
|
|
8
9
|
Message?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<InternalDependencyException, __BaseException>);
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
16
|
* <p> An internal failure occurred. </p>
|
|
12
17
|
*/
|
|
13
|
-
export
|
|
14
|
-
name: "InternalFailure";
|
|
15
|
-
$fault: "server";
|
|
18
|
+
export declare class InternalFailure extends __BaseException {
|
|
19
|
+
readonly name: "InternalFailure";
|
|
20
|
+
readonly $fault: "server";
|
|
16
21
|
Message?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
|
|
17
26
|
}
|
|
18
27
|
export interface InvokeEndpointInput {
|
|
19
28
|
/**
|
|
@@ -131,9 +140,9 @@ export declare namespace InvokeEndpointOutput {
|
|
|
131
140
|
* <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
|
|
132
141
|
* </p>
|
|
133
142
|
*/
|
|
134
|
-
export
|
|
135
|
-
name: "ModelError";
|
|
136
|
-
$fault: "client";
|
|
143
|
+
export declare class ModelError extends __BaseException {
|
|
144
|
+
readonly name: "ModelError";
|
|
145
|
+
readonly $fault: "client";
|
|
137
146
|
Message?: string;
|
|
138
147
|
/**
|
|
139
148
|
* <p> Original status code. </p>
|
|
@@ -147,30 +156,46 @@ export interface ModelError extends __SmithyException, $MetadataBearer {
|
|
|
147
156
|
* <p> The Amazon Resource Name (ARN) of the log stream. </p>
|
|
148
157
|
*/
|
|
149
158
|
LogStreamArn?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
|
|
150
163
|
}
|
|
151
164
|
/**
|
|
152
165
|
* <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>
|
|
153
166
|
*/
|
|
154
|
-
export
|
|
155
|
-
name: "ModelNotReadyException";
|
|
156
|
-
$fault: "client";
|
|
167
|
+
export declare class ModelNotReadyException extends __BaseException {
|
|
168
|
+
readonly name: "ModelNotReadyException";
|
|
169
|
+
readonly $fault: "client";
|
|
157
170
|
Message?: string;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
|
|
158
175
|
}
|
|
159
176
|
/**
|
|
160
177
|
* <p> The service is unavailable. Try your call again. </p>
|
|
161
178
|
*/
|
|
162
|
-
export
|
|
163
|
-
name: "ServiceUnavailable";
|
|
164
|
-
$fault: "server";
|
|
179
|
+
export declare class ServiceUnavailable extends __BaseException {
|
|
180
|
+
readonly name: "ServiceUnavailable";
|
|
181
|
+
readonly $fault: "server";
|
|
165
182
|
Message?: string;
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
|
|
166
187
|
}
|
|
167
188
|
/**
|
|
168
189
|
* <p> Inspect your request and try again. </p>
|
|
169
190
|
*/
|
|
170
|
-
export
|
|
171
|
-
name: "ValidationError";
|
|
172
|
-
$fault: "client";
|
|
191
|
+
export declare class ValidationError extends __BaseException {
|
|
192
|
+
readonly name: "ValidationError";
|
|
193
|
+
readonly $fault: "client";
|
|
173
194
|
Message?: string;
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
174
199
|
}
|
|
175
200
|
export interface InvokeEndpointAsyncInput {
|
|
176
201
|
/**
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
|
|
10
10
|
import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
|
|
11
11
|
export declare type ServiceInputTypes = InvokeEndpointAsyncCommandInput | InvokeEndpointCommandInput;
|
|
@@ -18,7 +18,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
18
18
|
|
|
19
19
|
urlParser?: __UrlParser;
|
|
20
20
|
|
|
21
|
-
bodyLengthChecker?:
|
|
21
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
22
22
|
|
|
23
23
|
streamCollector?: __StreamCollector;
|
|
24
24
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class SageMakerRuntimeServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
name: "InternalDependencyException";
|
|
5
|
-
$fault: "server";
|
|
4
|
+
export declare class InternalDependencyException extends __BaseException {
|
|
5
|
+
readonly name: "InternalDependencyException";
|
|
6
|
+
readonly $fault: "server";
|
|
6
7
|
Message?: string;
|
|
8
|
+
|
|
9
|
+
constructor(opts: __ExceptionOptionType<InternalDependencyException, __BaseException>);
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
export
|
|
10
|
-
name: "InternalFailure";
|
|
11
|
-
$fault: "server";
|
|
12
|
+
export declare class InternalFailure extends __BaseException {
|
|
13
|
+
readonly name: "InternalFailure";
|
|
14
|
+
readonly $fault: "server";
|
|
12
15
|
Message?: string;
|
|
16
|
+
|
|
17
|
+
constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
|
|
13
18
|
}
|
|
14
19
|
export interface InvokeEndpointInput {
|
|
15
20
|
|
|
@@ -50,9 +55,9 @@ export declare namespace InvokeEndpointOutput {
|
|
|
50
55
|
const filterSensitiveLog: (obj: InvokeEndpointOutput) => any;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
export
|
|
54
|
-
name: "ModelError";
|
|
55
|
-
$fault: "client";
|
|
58
|
+
export declare class ModelError extends __BaseException {
|
|
59
|
+
readonly name: "ModelError";
|
|
60
|
+
readonly $fault: "client";
|
|
56
61
|
Message?: string;
|
|
57
62
|
|
|
58
63
|
OriginalStatusCode?: number;
|
|
@@ -60,24 +65,32 @@ export interface ModelError extends __SmithyException, $MetadataBearer {
|
|
|
60
65
|
OriginalMessage?: string;
|
|
61
66
|
|
|
62
67
|
LogStreamArn?: string;
|
|
68
|
+
|
|
69
|
+
constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
|
|
63
70
|
}
|
|
64
71
|
|
|
65
|
-
export
|
|
66
|
-
name: "ModelNotReadyException";
|
|
67
|
-
$fault: "client";
|
|
72
|
+
export declare class ModelNotReadyException extends __BaseException {
|
|
73
|
+
readonly name: "ModelNotReadyException";
|
|
74
|
+
readonly $fault: "client";
|
|
68
75
|
Message?: string;
|
|
76
|
+
|
|
77
|
+
constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
|
|
69
78
|
}
|
|
70
79
|
|
|
71
|
-
export
|
|
72
|
-
name: "ServiceUnavailable";
|
|
73
|
-
$fault: "server";
|
|
80
|
+
export declare class ServiceUnavailable extends __BaseException {
|
|
81
|
+
readonly name: "ServiceUnavailable";
|
|
82
|
+
readonly $fault: "server";
|
|
74
83
|
Message?: string;
|
|
84
|
+
|
|
85
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
|
|
75
86
|
}
|
|
76
87
|
|
|
77
|
-
export
|
|
78
|
-
name: "ValidationError";
|
|
79
|
-
$fault: "client";
|
|
88
|
+
export declare class ValidationError extends __BaseException {
|
|
89
|
+
readonly name: "ValidationError";
|
|
90
|
+
readonly $fault: "client";
|
|
80
91
|
Message?: string;
|
|
92
|
+
|
|
93
|
+
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
81
94
|
}
|
|
82
95
|
export interface InvokeEndpointAsyncInput {
|
|
83
96
|
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.54.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",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "rimraf ./dist-*"
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist-cjs/index.js",
|
|
15
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -18,40 +18,40 @@
|
|
|
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-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.0",
|
|
39
|
+
"@aws-sdk/types": "3.54.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.52.0",
|
|
55
55
|
"@tsconfig/recommended": "1.0.1",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"concurrently": "7.0.0",
|