@aws-sdk/client-sagemaker-runtime 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/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/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/ts3.4/SageMakerRuntime.d.ts +15 -0
- package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +75 -0
- package/dist-types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/InvokeEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/SageMakerRuntimeServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +124 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -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) {
|
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
|
/**
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
|
|
3
|
+
import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
|
|
4
|
+
import { SageMakerRuntimeClient } from "./SageMakerRuntimeClient";
|
|
5
|
+
|
|
6
|
+
export declare class SageMakerRuntime extends SageMakerRuntimeClient {
|
|
7
|
+
|
|
8
|
+
invokeEndpoint(args: InvokeEndpointCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointCommandOutput>;
|
|
9
|
+
invokeEndpoint(args: InvokeEndpointCommandInput, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
|
|
10
|
+
invokeEndpoint(args: InvokeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
|
|
11
|
+
|
|
12
|
+
invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
|
|
13
|
+
invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
|
|
14
|
+
invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
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";
|
|
9
|
+
import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
|
|
10
|
+
import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
|
|
11
|
+
export declare type ServiceInputTypes = InvokeEndpointAsyncCommandInput | InvokeEndpointCommandInput;
|
|
12
|
+
export declare type ServiceOutputTypes = InvokeEndpointAsyncCommandOutput | InvokeEndpointCommandOutput;
|
|
13
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
14
|
+
|
|
15
|
+
requestHandler?: __HttpHandler;
|
|
16
|
+
|
|
17
|
+
sha256?: __HashConstructor;
|
|
18
|
+
|
|
19
|
+
urlParser?: __UrlParser;
|
|
20
|
+
|
|
21
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
22
|
+
|
|
23
|
+
streamCollector?: __StreamCollector;
|
|
24
|
+
|
|
25
|
+
base64Decoder?: __Decoder;
|
|
26
|
+
|
|
27
|
+
base64Encoder?: __Encoder;
|
|
28
|
+
|
|
29
|
+
utf8Decoder?: __Decoder;
|
|
30
|
+
|
|
31
|
+
utf8Encoder?: __Encoder;
|
|
32
|
+
|
|
33
|
+
runtime?: string;
|
|
34
|
+
|
|
35
|
+
disableHostPrefix?: boolean;
|
|
36
|
+
|
|
37
|
+
maxAttempts?: number | __Provider<number>;
|
|
38
|
+
|
|
39
|
+
retryMode?: string | __Provider<string>;
|
|
40
|
+
|
|
41
|
+
logger?: __Logger;
|
|
42
|
+
|
|
43
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
44
|
+
|
|
45
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
46
|
+
|
|
47
|
+
serviceId?: string;
|
|
48
|
+
|
|
49
|
+
region?: string | __Provider<string>;
|
|
50
|
+
|
|
51
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
52
|
+
|
|
53
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
54
|
+
|
|
55
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
56
|
+
|
|
57
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
58
|
+
}
|
|
59
|
+
declare type SageMakerRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
60
|
+
|
|
61
|
+
export interface SageMakerRuntimeClientConfig extends SageMakerRuntimeClientConfigType {
|
|
62
|
+
}
|
|
63
|
+
declare type SageMakerRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
64
|
+
|
|
65
|
+
export interface SageMakerRuntimeClientResolvedConfig extends SageMakerRuntimeClientResolvedConfigType {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare class SageMakerRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerRuntimeClientResolvedConfig> {
|
|
69
|
+
|
|
70
|
+
readonly config: SageMakerRuntimeClientResolvedConfig;
|
|
71
|
+
constructor(configuration: SageMakerRuntimeClientConfig);
|
|
72
|
+
|
|
73
|
+
destroy(): void;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { InvokeEndpointAsyncInput, InvokeEndpointAsyncOutput } from "../models/models_0";
|
|
4
|
+
import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
|
|
5
|
+
export interface InvokeEndpointAsyncCommandInput extends InvokeEndpointAsyncInput {
|
|
6
|
+
}
|
|
7
|
+
export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOutput, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class InvokeEndpointAsyncCommand extends $Command<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig> {
|
|
11
|
+
readonly input: InvokeEndpointAsyncCommandInput;
|
|
12
|
+
constructor(input: InvokeEndpointAsyncCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { InvokeEndpointInput, InvokeEndpointOutput } from "../models/models_0";
|
|
4
|
+
import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
|
|
5
|
+
export interface InvokeEndpointCommandInput extends InvokeEndpointInput {
|
|
6
|
+
}
|
|
7
|
+
export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class InvokeEndpointCommand extends $Command<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig> {
|
|
11
|
+
readonly input: InvokeEndpointCommandInput;
|
|
12
|
+
constructor(input: InvokeEndpointCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointCommandInput, InvokeEndpointCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|