@aws-sdk/client-sagemaker-runtime 3.303.0 → 3.309.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/dist-cjs/commands/InvokeEndpointAsyncCommand.js +2 -2
- package/dist-cjs/commands/InvokeEndpointCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +29 -28
- package/dist-es/commands/InvokeEndpointAsyncCommand.js +3 -3
- package/dist-es/commands/InvokeEndpointCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +24 -23
- package/dist-types/models/models_0.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +16 -4
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +4 -4
- package/package.json +29 -29
|
@@ -37,10 +37,10 @@ class InvokeEndpointAsyncCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_InvokeEndpointAsyncCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_InvokeEndpointAsyncCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.InvokeEndpointAsyncCommand = InvokeEndpointAsyncCommand;
|
|
@@ -37,10 +37,10 @@ class InvokeEndpointCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_InvokeEndpointCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_InvokeEndpointCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.InvokeEndpointCommand = InvokeEndpointCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_InvokeEndpointAsyncCommand = exports.de_InvokeEndpointCommand = exports.se_InvokeEndpointAsyncCommand = exports.se_InvokeEndpointCommand = 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
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SageMakerRuntimeServiceException_1 = require("../models/SageMakerRuntimeServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_InvokeEndpointCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = map({}, isSerializableHeaderValue, {
|
|
11
11
|
"content-type": input.ContentType || "application/octet-stream",
|
|
@@ -33,8 +33,8 @@ const serializeAws_restJson1InvokeEndpointCommand = async (input, context) => {
|
|
|
33
33
|
body,
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
37
|
-
const
|
|
36
|
+
exports.se_InvokeEndpointCommand = se_InvokeEndpointCommand;
|
|
37
|
+
const se_InvokeEndpointAsyncCommand = async (input, context) => {
|
|
38
38
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
39
|
const headers = map({}, isSerializableHeaderValue, {
|
|
40
40
|
"x-amzn-sagemaker-content-type": input.ContentType,
|
|
@@ -65,10 +65,10 @@ const serializeAws_restJson1InvokeEndpointAsyncCommand = async (input, context)
|
|
|
65
65
|
body,
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_InvokeEndpointAsyncCommand = se_InvokeEndpointAsyncCommand;
|
|
69
|
+
const de_InvokeEndpointCommand = async (output, context) => {
|
|
70
70
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
71
|
-
return
|
|
71
|
+
return de_InvokeEndpointCommandError(output, context);
|
|
72
72
|
}
|
|
73
73
|
const contents = map({
|
|
74
74
|
$metadata: deserializeMetadata(output),
|
|
@@ -80,8 +80,8 @@ const deserializeAws_restJson1InvokeEndpointCommand = async (output, context) =>
|
|
|
80
80
|
contents.Body = data;
|
|
81
81
|
return contents;
|
|
82
82
|
};
|
|
83
|
-
exports.
|
|
84
|
-
const
|
|
83
|
+
exports.de_InvokeEndpointCommand = de_InvokeEndpointCommand;
|
|
84
|
+
const de_InvokeEndpointCommandError = async (output, context) => {
|
|
85
85
|
const parsedOutput = {
|
|
86
86
|
...output,
|
|
87
87
|
body: await parseErrorBody(output.body, context),
|
|
@@ -90,22 +90,22 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
|
|
|
90
90
|
switch (errorCode) {
|
|
91
91
|
case "InternalDependencyException":
|
|
92
92
|
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
93
|
-
throw await
|
|
93
|
+
throw await de_InternalDependencyExceptionRes(parsedOutput, context);
|
|
94
94
|
case "InternalFailure":
|
|
95
95
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
96
|
-
throw await
|
|
96
|
+
throw await de_InternalFailureRes(parsedOutput, context);
|
|
97
97
|
case "ModelError":
|
|
98
98
|
case "com.amazonaws.sagemakerruntime#ModelError":
|
|
99
|
-
throw await
|
|
99
|
+
throw await de_ModelErrorRes(parsedOutput, context);
|
|
100
100
|
case "ModelNotReadyException":
|
|
101
101
|
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
102
|
-
throw await
|
|
102
|
+
throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
|
|
103
103
|
case "ServiceUnavailable":
|
|
104
104
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
105
|
-
throw await
|
|
105
|
+
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
106
106
|
case "ValidationError":
|
|
107
107
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
108
|
-
throw await
|
|
108
|
+
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
109
109
|
default:
|
|
110
110
|
const parsedBody = parsedOutput.body;
|
|
111
111
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -116,13 +116,14 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
const
|
|
119
|
+
const de_InvokeEndpointAsyncCommand = async (output, context) => {
|
|
120
120
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
121
|
-
return
|
|
121
|
+
return de_InvokeEndpointAsyncCommandError(output, context);
|
|
122
122
|
}
|
|
123
123
|
const contents = map({
|
|
124
124
|
$metadata: deserializeMetadata(output),
|
|
125
125
|
OutputLocation: [, output.headers["x-amzn-sagemaker-outputlocation"]],
|
|
126
|
+
FailureLocation: [, output.headers["x-amzn-sagemaker-failurelocation"]],
|
|
126
127
|
});
|
|
127
128
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
128
129
|
if (data.InferenceId != null) {
|
|
@@ -130,8 +131,8 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommand = async (output, contex
|
|
|
130
131
|
}
|
|
131
132
|
return contents;
|
|
132
133
|
};
|
|
133
|
-
exports.
|
|
134
|
-
const
|
|
134
|
+
exports.de_InvokeEndpointAsyncCommand = de_InvokeEndpointAsyncCommand;
|
|
135
|
+
const de_InvokeEndpointAsyncCommandError = async (output, context) => {
|
|
135
136
|
const parsedOutput = {
|
|
136
137
|
...output,
|
|
137
138
|
body: await parseErrorBody(output.body, context),
|
|
@@ -140,13 +141,13 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
140
141
|
switch (errorCode) {
|
|
141
142
|
case "InternalFailure":
|
|
142
143
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
143
|
-
throw await
|
|
144
|
+
throw await de_InternalFailureRes(parsedOutput, context);
|
|
144
145
|
case "ServiceUnavailable":
|
|
145
146
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
146
|
-
throw await
|
|
147
|
+
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
147
148
|
case "ValidationError":
|
|
148
149
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
149
|
-
throw await
|
|
150
|
+
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
150
151
|
default:
|
|
151
152
|
const parsedBody = parsedOutput.body;
|
|
152
153
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -158,7 +159,7 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
158
159
|
}
|
|
159
160
|
};
|
|
160
161
|
const map = smithy_client_1.map;
|
|
161
|
-
const
|
|
162
|
+
const de_InternalDependencyExceptionRes = async (parsedOutput, context) => {
|
|
162
163
|
const contents = map({});
|
|
163
164
|
const data = parsedOutput.body;
|
|
164
165
|
if (data.Message != null) {
|
|
@@ -170,7 +171,7 @@ const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parse
|
|
|
170
171
|
});
|
|
171
172
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
172
173
|
};
|
|
173
|
-
const
|
|
174
|
+
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
174
175
|
const contents = map({});
|
|
175
176
|
const data = parsedOutput.body;
|
|
176
177
|
if (data.Message != null) {
|
|
@@ -182,7 +183,7 @@ const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, con
|
|
|
182
183
|
});
|
|
183
184
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
184
185
|
};
|
|
185
|
-
const
|
|
186
|
+
const de_ModelErrorRes = async (parsedOutput, context) => {
|
|
186
187
|
const contents = map({});
|
|
187
188
|
const data = parsedOutput.body;
|
|
188
189
|
if (data.LogStreamArn != null) {
|
|
@@ -203,7 +204,7 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
|
|
|
203
204
|
});
|
|
204
205
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
205
206
|
};
|
|
206
|
-
const
|
|
207
|
+
const de_ModelNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
207
208
|
const contents = map({});
|
|
208
209
|
const data = parsedOutput.body;
|
|
209
210
|
if (data.Message != null) {
|
|
@@ -215,7 +216,7 @@ const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutp
|
|
|
215
216
|
});
|
|
216
217
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
217
218
|
};
|
|
218
|
-
const
|
|
219
|
+
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
219
220
|
const contents = map({});
|
|
220
221
|
const data = parsedOutput.body;
|
|
221
222
|
if (data.Message != null) {
|
|
@@ -227,7 +228,7 @@ const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput,
|
|
|
227
228
|
});
|
|
228
229
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
229
230
|
};
|
|
230
|
-
const
|
|
231
|
+
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
231
232
|
const contents = map({});
|
|
232
233
|
const data = parsedOutput.body;
|
|
233
234
|
if (data.Message != null) {
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { InvokeEndpointAsyncInputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_InvokeEndpointAsyncCommand, se_InvokeEndpointAsyncCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class InvokeEndpointAsyncCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class InvokeEndpointAsyncCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_InvokeEndpointAsyncCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_InvokeEndpointAsyncCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { InvokeEndpointInputFilterSensitiveLog, InvokeEndpointOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_InvokeEndpointCommand, se_InvokeEndpointCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class InvokeEndpointCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class InvokeEndpointCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_InvokeEndpointCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_InvokeEndpointCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { InternalDependencyException, InternalFailure, ModelError, ModelNotReadyException, ServiceUnavailable, ValidationError, } from "../models/models_0";
|
|
4
4
|
import { SageMakerRuntimeServiceException as __BaseException } from "../models/SageMakerRuntimeServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_InvokeEndpointCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = map({}, isSerializableHeaderValue, {
|
|
8
8
|
"content-type": input.ContentType || "application/octet-stream",
|
|
@@ -30,7 +30,7 @@ export const serializeAws_restJson1InvokeEndpointCommand = async (input, context
|
|
|
30
30
|
body,
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_InvokeEndpointAsyncCommand = async (input, context) => {
|
|
34
34
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
35
|
const headers = map({}, isSerializableHeaderValue, {
|
|
36
36
|
"x-amzn-sagemaker-content-type": input.ContentType,
|
|
@@ -61,9 +61,9 @@ export const serializeAws_restJson1InvokeEndpointAsyncCommand = async (input, co
|
|
|
61
61
|
body,
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
export const
|
|
64
|
+
export const de_InvokeEndpointCommand = async (output, context) => {
|
|
65
65
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
66
|
-
return
|
|
66
|
+
return de_InvokeEndpointCommandError(output, context);
|
|
67
67
|
}
|
|
68
68
|
const contents = map({
|
|
69
69
|
$metadata: deserializeMetadata(output),
|
|
@@ -75,7 +75,7 @@ export const deserializeAws_restJson1InvokeEndpointCommand = async (output, cont
|
|
|
75
75
|
contents.Body = data;
|
|
76
76
|
return contents;
|
|
77
77
|
};
|
|
78
|
-
const
|
|
78
|
+
const de_InvokeEndpointCommandError = async (output, context) => {
|
|
79
79
|
const parsedOutput = {
|
|
80
80
|
...output,
|
|
81
81
|
body: await parseErrorBody(output.body, context),
|
|
@@ -84,22 +84,22 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
|
|
|
84
84
|
switch (errorCode) {
|
|
85
85
|
case "InternalDependencyException":
|
|
86
86
|
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
87
|
-
throw await
|
|
87
|
+
throw await de_InternalDependencyExceptionRes(parsedOutput, context);
|
|
88
88
|
case "InternalFailure":
|
|
89
89
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
90
|
-
throw await
|
|
90
|
+
throw await de_InternalFailureRes(parsedOutput, context);
|
|
91
91
|
case "ModelError":
|
|
92
92
|
case "com.amazonaws.sagemakerruntime#ModelError":
|
|
93
|
-
throw await
|
|
93
|
+
throw await de_ModelErrorRes(parsedOutput, context);
|
|
94
94
|
case "ModelNotReadyException":
|
|
95
95
|
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
96
|
-
throw await
|
|
96
|
+
throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
|
|
97
97
|
case "ServiceUnavailable":
|
|
98
98
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
99
|
-
throw await
|
|
99
|
+
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
100
100
|
case "ValidationError":
|
|
101
101
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
102
|
-
throw await
|
|
102
|
+
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
103
103
|
default:
|
|
104
104
|
const parsedBody = parsedOutput.body;
|
|
105
105
|
throwDefaultError({
|
|
@@ -110,13 +110,14 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const de_InvokeEndpointAsyncCommand = async (output, context) => {
|
|
114
114
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
115
|
-
return
|
|
115
|
+
return de_InvokeEndpointAsyncCommandError(output, context);
|
|
116
116
|
}
|
|
117
117
|
const contents = map({
|
|
118
118
|
$metadata: deserializeMetadata(output),
|
|
119
119
|
OutputLocation: [, output.headers["x-amzn-sagemaker-outputlocation"]],
|
|
120
|
+
FailureLocation: [, output.headers["x-amzn-sagemaker-failurelocation"]],
|
|
120
121
|
});
|
|
121
122
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
122
123
|
if (data.InferenceId != null) {
|
|
@@ -124,7 +125,7 @@ export const deserializeAws_restJson1InvokeEndpointAsyncCommand = async (output,
|
|
|
124
125
|
}
|
|
125
126
|
return contents;
|
|
126
127
|
};
|
|
127
|
-
const
|
|
128
|
+
const de_InvokeEndpointAsyncCommandError = async (output, context) => {
|
|
128
129
|
const parsedOutput = {
|
|
129
130
|
...output,
|
|
130
131
|
body: await parseErrorBody(output.body, context),
|
|
@@ -133,13 +134,13 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
133
134
|
switch (errorCode) {
|
|
134
135
|
case "InternalFailure":
|
|
135
136
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
136
|
-
throw await
|
|
137
|
+
throw await de_InternalFailureRes(parsedOutput, context);
|
|
137
138
|
case "ServiceUnavailable":
|
|
138
139
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
139
|
-
throw await
|
|
140
|
+
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
140
141
|
case "ValidationError":
|
|
141
142
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
142
|
-
throw await
|
|
143
|
+
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
143
144
|
default:
|
|
144
145
|
const parsedBody = parsedOutput.body;
|
|
145
146
|
throwDefaultError({
|
|
@@ -151,7 +152,7 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
151
152
|
}
|
|
152
153
|
};
|
|
153
154
|
const map = __map;
|
|
154
|
-
const
|
|
155
|
+
const de_InternalDependencyExceptionRes = async (parsedOutput, context) => {
|
|
155
156
|
const contents = map({});
|
|
156
157
|
const data = parsedOutput.body;
|
|
157
158
|
if (data.Message != null) {
|
|
@@ -163,7 +164,7 @@ const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parse
|
|
|
163
164
|
});
|
|
164
165
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
165
166
|
};
|
|
166
|
-
const
|
|
167
|
+
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
167
168
|
const contents = map({});
|
|
168
169
|
const data = parsedOutput.body;
|
|
169
170
|
if (data.Message != null) {
|
|
@@ -175,7 +176,7 @@ const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, con
|
|
|
175
176
|
});
|
|
176
177
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
177
178
|
};
|
|
178
|
-
const
|
|
179
|
+
const de_ModelErrorRes = async (parsedOutput, context) => {
|
|
179
180
|
const contents = map({});
|
|
180
181
|
const data = parsedOutput.body;
|
|
181
182
|
if (data.LogStreamArn != null) {
|
|
@@ -196,7 +197,7 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
|
|
|
196
197
|
});
|
|
197
198
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
198
199
|
};
|
|
199
|
-
const
|
|
200
|
+
const de_ModelNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
200
201
|
const contents = map({});
|
|
201
202
|
const data = parsedOutput.body;
|
|
202
203
|
if (data.Message != null) {
|
|
@@ -208,7 +209,7 @@ const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutp
|
|
|
208
209
|
});
|
|
209
210
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
210
211
|
};
|
|
211
|
-
const
|
|
212
|
+
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
212
213
|
const contents = map({});
|
|
213
214
|
const data = parsedOutput.body;
|
|
214
215
|
if (data.Message != null) {
|
|
@@ -220,7 +221,7 @@ const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput,
|
|
|
220
221
|
});
|
|
221
222
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
222
223
|
};
|
|
223
|
-
const
|
|
224
|
+
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
224
225
|
const contents = map({});
|
|
225
226
|
const data = parsedOutput.body;
|
|
226
227
|
if (data.Message != null) {
|
|
@@ -277,6 +277,10 @@ export interface InvokeEndpointAsyncOutput {
|
|
|
277
277
|
* <p>The Amazon S3 URI where the inference response payload is stored.</p>
|
|
278
278
|
*/
|
|
279
279
|
OutputLocation?: string;
|
|
280
|
+
/**
|
|
281
|
+
* <p>The Amazon S3 URI where the inference failure response payload is stored.</p>
|
|
282
|
+
*/
|
|
283
|
+
FailureLocation?: string;
|
|
280
284
|
}
|
|
281
285
|
/**
|
|
282
286
|
* @internal
|
|
@@ -2,7 +2,19 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
|
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "../commands/InvokeEndpointAsyncCommand";
|
|
4
4
|
import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "../commands/InvokeEndpointCommand";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
5
|
+
/**
|
|
6
|
+
* serializeAws_restJson1InvokeEndpointCommand
|
|
7
|
+
*/
|
|
8
|
+
export declare const se_InvokeEndpointCommand: (input: InvokeEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
|
+
/**
|
|
10
|
+
* serializeAws_restJson1InvokeEndpointAsyncCommand
|
|
11
|
+
*/
|
|
12
|
+
export declare const se_InvokeEndpointAsyncCommand: (input: InvokeEndpointAsyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
+
/**
|
|
14
|
+
* deserializeAws_restJson1InvokeEndpointCommand
|
|
15
|
+
*/
|
|
16
|
+
export declare const de_InvokeEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeEndpointCommandOutput>;
|
|
17
|
+
/**
|
|
18
|
+
* deserializeAws_restJson1InvokeEndpointAsyncCommand
|
|
19
|
+
*/
|
|
20
|
+
export declare const de_InvokeEndpointAsyncCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeEndpointAsyncCommandOutput>;
|
|
@@ -74,6 +74,7 @@ export interface InvokeEndpointAsyncInput {
|
|
|
74
74
|
export interface InvokeEndpointAsyncOutput {
|
|
75
75
|
InferenceId?: string;
|
|
76
76
|
OutputLocation?: string;
|
|
77
|
+
FailureLocation?: string;
|
|
77
78
|
}
|
|
78
79
|
export declare const InvokeEndpointInputFilterSensitiveLog: (
|
|
79
80
|
obj: InvokeEndpointInput
|
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
InvokeEndpointCommandInput,
|
|
12
12
|
InvokeEndpointCommandOutput,
|
|
13
13
|
} from "../commands/InvokeEndpointCommand";
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const se_InvokeEndpointCommand: (
|
|
15
15
|
input: InvokeEndpointCommandInput,
|
|
16
16
|
context: __SerdeContext
|
|
17
17
|
) => Promise<__HttpRequest>;
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const se_InvokeEndpointAsyncCommand: (
|
|
19
19
|
input: InvokeEndpointAsyncCommandInput,
|
|
20
20
|
context: __SerdeContext
|
|
21
21
|
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const de_InvokeEndpointCommand: (
|
|
23
23
|
output: __HttpResponse,
|
|
24
24
|
context: __SerdeContext
|
|
25
25
|
) => Promise<InvokeEndpointCommandOutput>;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const de_InvokeEndpointAsyncCommand: (
|
|
27
27
|
output: __HttpResponse,
|
|
28
28
|
context: __SerdeContext
|
|
29
29
|
) => Promise<InvokeEndpointAsyncCommandOutput>;
|
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.309.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",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.309.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.309.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
44
|
+
"@aws-sdk/types": "3.306.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.303.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|