@aws-sdk/client-sagemaker-runtime 3.306.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 +28 -28
- package/dist-es/commands/InvokeEndpointAsyncCommand.js +3 -3
- package/dist-es/commands/InvokeEndpointCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +23 -23
- package/dist-types/protocols/Aws_restJson1.d.ts +16 -4
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +4 -4
- package/package.json +6 -6
|
@@ -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,9 +116,9 @@ 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),
|
|
@@ -131,8 +131,8 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommand = async (output, contex
|
|
|
131
131
|
}
|
|
132
132
|
return contents;
|
|
133
133
|
};
|
|
134
|
-
exports.
|
|
135
|
-
const
|
|
134
|
+
exports.de_InvokeEndpointAsyncCommand = de_InvokeEndpointAsyncCommand;
|
|
135
|
+
const de_InvokeEndpointAsyncCommandError = async (output, context) => {
|
|
136
136
|
const parsedOutput = {
|
|
137
137
|
...output,
|
|
138
138
|
body: await parseErrorBody(output.body, context),
|
|
@@ -141,13 +141,13 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
141
141
|
switch (errorCode) {
|
|
142
142
|
case "InternalFailure":
|
|
143
143
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
144
|
-
throw await
|
|
144
|
+
throw await de_InternalFailureRes(parsedOutput, context);
|
|
145
145
|
case "ServiceUnavailable":
|
|
146
146
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
147
|
-
throw await
|
|
147
|
+
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
148
148
|
case "ValidationError":
|
|
149
149
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
150
|
-
throw await
|
|
150
|
+
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
151
151
|
default:
|
|
152
152
|
const parsedBody = parsedOutput.body;
|
|
153
153
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -159,7 +159,7 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
const map = smithy_client_1.map;
|
|
162
|
-
const
|
|
162
|
+
const de_InternalDependencyExceptionRes = async (parsedOutput, context) => {
|
|
163
163
|
const contents = map({});
|
|
164
164
|
const data = parsedOutput.body;
|
|
165
165
|
if (data.Message != null) {
|
|
@@ -171,7 +171,7 @@ const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parse
|
|
|
171
171
|
});
|
|
172
172
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
173
173
|
};
|
|
174
|
-
const
|
|
174
|
+
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
175
175
|
const contents = map({});
|
|
176
176
|
const data = parsedOutput.body;
|
|
177
177
|
if (data.Message != null) {
|
|
@@ -183,7 +183,7 @@ const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, con
|
|
|
183
183
|
});
|
|
184
184
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
185
185
|
};
|
|
186
|
-
const
|
|
186
|
+
const de_ModelErrorRes = async (parsedOutput, context) => {
|
|
187
187
|
const contents = map({});
|
|
188
188
|
const data = parsedOutput.body;
|
|
189
189
|
if (data.LogStreamArn != null) {
|
|
@@ -204,7 +204,7 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
|
|
|
204
204
|
});
|
|
205
205
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
206
206
|
};
|
|
207
|
-
const
|
|
207
|
+
const de_ModelNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
208
208
|
const contents = map({});
|
|
209
209
|
const data = parsedOutput.body;
|
|
210
210
|
if (data.Message != null) {
|
|
@@ -216,7 +216,7 @@ const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutp
|
|
|
216
216
|
});
|
|
217
217
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
218
218
|
};
|
|
219
|
-
const
|
|
219
|
+
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
220
220
|
const contents = map({});
|
|
221
221
|
const data = parsedOutput.body;
|
|
222
222
|
if (data.Message != null) {
|
|
@@ -228,7 +228,7 @@ const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput,
|
|
|
228
228
|
});
|
|
229
229
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
230
230
|
};
|
|
231
|
-
const
|
|
231
|
+
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
232
232
|
const contents = map({});
|
|
233
233
|
const data = parsedOutput.body;
|
|
234
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,9 +110,9 @@ 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),
|
|
@@ -125,7 +125,7 @@ export const deserializeAws_restJson1InvokeEndpointAsyncCommand = async (output,
|
|
|
125
125
|
}
|
|
126
126
|
return contents;
|
|
127
127
|
};
|
|
128
|
-
const
|
|
128
|
+
const de_InvokeEndpointAsyncCommandError = async (output, context) => {
|
|
129
129
|
const parsedOutput = {
|
|
130
130
|
...output,
|
|
131
131
|
body: await parseErrorBody(output.body, context),
|
|
@@ -134,13 +134,13 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
134
134
|
switch (errorCode) {
|
|
135
135
|
case "InternalFailure":
|
|
136
136
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
137
|
-
throw await
|
|
137
|
+
throw await de_InternalFailureRes(parsedOutput, context);
|
|
138
138
|
case "ServiceUnavailable":
|
|
139
139
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
140
|
-
throw await
|
|
140
|
+
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
141
141
|
case "ValidationError":
|
|
142
142
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
143
|
-
throw await
|
|
143
|
+
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
144
144
|
default:
|
|
145
145
|
const parsedBody = parsedOutput.body;
|
|
146
146
|
throwDefaultError({
|
|
@@ -152,7 +152,7 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
|
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
const map = __map;
|
|
155
|
-
const
|
|
155
|
+
const de_InternalDependencyExceptionRes = async (parsedOutput, context) => {
|
|
156
156
|
const contents = map({});
|
|
157
157
|
const data = parsedOutput.body;
|
|
158
158
|
if (data.Message != null) {
|
|
@@ -164,7 +164,7 @@ const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parse
|
|
|
164
164
|
});
|
|
165
165
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
166
166
|
};
|
|
167
|
-
const
|
|
167
|
+
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
168
168
|
const contents = map({});
|
|
169
169
|
const data = parsedOutput.body;
|
|
170
170
|
if (data.Message != null) {
|
|
@@ -176,7 +176,7 @@ const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, con
|
|
|
176
176
|
});
|
|
177
177
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
178
178
|
};
|
|
179
|
-
const
|
|
179
|
+
const de_ModelErrorRes = async (parsedOutput, context) => {
|
|
180
180
|
const contents = map({});
|
|
181
181
|
const data = parsedOutput.body;
|
|
182
182
|
if (data.LogStreamArn != null) {
|
|
@@ -197,7 +197,7 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
|
|
|
197
197
|
});
|
|
198
198
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
199
199
|
};
|
|
200
|
-
const
|
|
200
|
+
const de_ModelNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
201
201
|
const contents = map({});
|
|
202
202
|
const data = parsedOutput.body;
|
|
203
203
|
if (data.Message != null) {
|
|
@@ -209,7 +209,7 @@ const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutp
|
|
|
209
209
|
});
|
|
210
210
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
211
211
|
};
|
|
212
|
-
const
|
|
212
|
+
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
213
213
|
const contents = map({});
|
|
214
214
|
const data = parsedOutput.body;
|
|
215
215
|
if (data.Message != null) {
|
|
@@ -221,7 +221,7 @@ const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput,
|
|
|
221
221
|
});
|
|
222
222
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
223
223
|
};
|
|
224
|
-
const
|
|
224
|
+
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
225
225
|
const contents = map({});
|
|
226
226
|
const data = parsedOutput.body;
|
|
227
227
|
if (data.Message != null) {
|
|
@@ -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>;
|
|
@@ -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,9 +21,9 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.309.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.309.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.306.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
44
44
|
"@aws-sdk/types": "3.306.0",
|
|
45
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.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.306.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.306.0",
|