@aws-sdk/client-sagemaker-runtime 3.504.0 → 3.509.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/index.js +17 -70
- package/dist-es/protocols/Aws_restJson1.js +16 -69
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -424,7 +424,7 @@ var se_InvokeEndpointWithResponseStreamCommand = /* @__PURE__ */ __name(async (i
|
|
|
424
424
|
}, "se_InvokeEndpointWithResponseStreamCommand");
|
|
425
425
|
var de_InvokeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
426
426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
427
|
-
return
|
|
427
|
+
return de_CommandError(output, context);
|
|
428
428
|
}
|
|
429
429
|
const contents = (0, import_smithy_client.map)({
|
|
430
430
|
$metadata: deserializeMetadata(output),
|
|
@@ -436,43 +436,9 @@ var de_InvokeEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
436
436
|
contents.Body = data;
|
|
437
437
|
return contents;
|
|
438
438
|
}, "de_InvokeEndpointCommand");
|
|
439
|
-
var de_InvokeEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
440
|
-
const parsedOutput = {
|
|
441
|
-
...output,
|
|
442
|
-
body: await parseErrorBody(output.body, context)
|
|
443
|
-
};
|
|
444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
445
|
-
switch (errorCode) {
|
|
446
|
-
case "InternalDependencyException":
|
|
447
|
-
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
448
|
-
throw await de_InternalDependencyExceptionRes(parsedOutput, context);
|
|
449
|
-
case "InternalFailure":
|
|
450
|
-
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
451
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
452
|
-
case "ModelError":
|
|
453
|
-
case "com.amazonaws.sagemakerruntime#ModelError":
|
|
454
|
-
throw await de_ModelErrorRes(parsedOutput, context);
|
|
455
|
-
case "ModelNotReadyException":
|
|
456
|
-
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
457
|
-
throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
|
|
458
|
-
case "ServiceUnavailable":
|
|
459
|
-
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
460
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
461
|
-
case "ValidationError":
|
|
462
|
-
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
463
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
464
|
-
default:
|
|
465
|
-
const parsedBody = parsedOutput.body;
|
|
466
|
-
return throwDefaultError({
|
|
467
|
-
output,
|
|
468
|
-
parsedBody,
|
|
469
|
-
errorCode
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
}, "de_InvokeEndpointCommandError");
|
|
473
439
|
var de_InvokeEndpointAsyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
474
440
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
475
|
-
return
|
|
441
|
+
return de_CommandError(output, context);
|
|
476
442
|
}
|
|
477
443
|
const contents = (0, import_smithy_client.map)({
|
|
478
444
|
$metadata: deserializeMetadata(output),
|
|
@@ -486,34 +452,9 @@ var de_InvokeEndpointAsyncCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
486
452
|
Object.assign(contents, doc);
|
|
487
453
|
return contents;
|
|
488
454
|
}, "de_InvokeEndpointAsyncCommand");
|
|
489
|
-
var de_InvokeEndpointAsyncCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
490
|
-
const parsedOutput = {
|
|
491
|
-
...output,
|
|
492
|
-
body: await parseErrorBody(output.body, context)
|
|
493
|
-
};
|
|
494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
|
-
switch (errorCode) {
|
|
496
|
-
case "InternalFailure":
|
|
497
|
-
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
498
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
499
|
-
case "ServiceUnavailable":
|
|
500
|
-
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
501
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
502
|
-
case "ValidationError":
|
|
503
|
-
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
504
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
505
|
-
default:
|
|
506
|
-
const parsedBody = parsedOutput.body;
|
|
507
|
-
return throwDefaultError({
|
|
508
|
-
output,
|
|
509
|
-
parsedBody,
|
|
510
|
-
errorCode
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
}, "de_InvokeEndpointAsyncCommandError");
|
|
514
455
|
var de_InvokeEndpointWithResponseStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
515
456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
516
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
517
458
|
}
|
|
518
459
|
const contents = (0, import_smithy_client.map)({
|
|
519
460
|
$metadata: deserializeMetadata(output),
|
|
@@ -525,31 +466,37 @@ var de_InvokeEndpointWithResponseStreamCommand = /* @__PURE__ */ __name(async (o
|
|
|
525
466
|
contents.Body = de_ResponseStream(data, context);
|
|
526
467
|
return contents;
|
|
527
468
|
}, "de_InvokeEndpointWithResponseStreamCommand");
|
|
528
|
-
var
|
|
469
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
529
470
|
const parsedOutput = {
|
|
530
471
|
...output,
|
|
531
472
|
body: await parseErrorBody(output.body, context)
|
|
532
473
|
};
|
|
533
474
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
475
|
switch (errorCode) {
|
|
476
|
+
case "InternalDependencyException":
|
|
477
|
+
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
478
|
+
throw await de_InternalDependencyExceptionRes(parsedOutput, context);
|
|
535
479
|
case "InternalFailure":
|
|
536
480
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
537
481
|
throw await de_InternalFailureRes(parsedOutput, context);
|
|
538
|
-
case "InternalStreamFailure":
|
|
539
|
-
case "com.amazonaws.sagemakerruntime#InternalStreamFailure":
|
|
540
|
-
throw await de_InternalStreamFailureRes(parsedOutput, context);
|
|
541
482
|
case "ModelError":
|
|
542
483
|
case "com.amazonaws.sagemakerruntime#ModelError":
|
|
543
484
|
throw await de_ModelErrorRes(parsedOutput, context);
|
|
544
|
-
case "
|
|
545
|
-
case "com.amazonaws.sagemakerruntime#
|
|
546
|
-
throw await
|
|
485
|
+
case "ModelNotReadyException":
|
|
486
|
+
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
487
|
+
throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
|
|
547
488
|
case "ServiceUnavailable":
|
|
548
489
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
549
490
|
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
550
491
|
case "ValidationError":
|
|
551
492
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
552
493
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
494
|
+
case "InternalStreamFailure":
|
|
495
|
+
case "com.amazonaws.sagemakerruntime#InternalStreamFailure":
|
|
496
|
+
throw await de_InternalStreamFailureRes(parsedOutput, context);
|
|
497
|
+
case "ModelStreamError":
|
|
498
|
+
case "com.amazonaws.sagemakerruntime#ModelStreamError":
|
|
499
|
+
throw await de_ModelStreamErrorRes(parsedOutput, context);
|
|
553
500
|
default:
|
|
554
501
|
const parsedBody = parsedOutput.body;
|
|
555
502
|
return throwDefaultError({
|
|
@@ -558,7 +505,7 @@ var de_InvokeEndpointWithResponseStreamCommandError = /* @__PURE__ */ __name(asy
|
|
|
558
505
|
errorCode
|
|
559
506
|
});
|
|
560
507
|
}
|
|
561
|
-
}, "
|
|
508
|
+
}, "de_CommandError");
|
|
562
509
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SageMakerRuntimeServiceException);
|
|
563
510
|
var de_InternalDependencyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
564
511
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -63,7 +63,7 @@ export const se_InvokeEndpointWithResponseStreamCommand = async (input, context)
|
|
|
63
63
|
};
|
|
64
64
|
export const de_InvokeEndpointCommand = async (output, context) => {
|
|
65
65
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
66
|
-
return
|
|
66
|
+
return de_CommandError(output, context);
|
|
67
67
|
}
|
|
68
68
|
const contents = map({
|
|
69
69
|
$metadata: deserializeMetadata(output),
|
|
@@ -75,43 +75,9 @@ export const de_InvokeEndpointCommand = async (output, context) => {
|
|
|
75
75
|
contents.Body = data;
|
|
76
76
|
return contents;
|
|
77
77
|
};
|
|
78
|
-
const de_InvokeEndpointCommandError = async (output, context) => {
|
|
79
|
-
const parsedOutput = {
|
|
80
|
-
...output,
|
|
81
|
-
body: await parseErrorBody(output.body, context),
|
|
82
|
-
};
|
|
83
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
84
|
-
switch (errorCode) {
|
|
85
|
-
case "InternalDependencyException":
|
|
86
|
-
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
87
|
-
throw await de_InternalDependencyExceptionRes(parsedOutput, context);
|
|
88
|
-
case "InternalFailure":
|
|
89
|
-
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
90
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
91
|
-
case "ModelError":
|
|
92
|
-
case "com.amazonaws.sagemakerruntime#ModelError":
|
|
93
|
-
throw await de_ModelErrorRes(parsedOutput, context);
|
|
94
|
-
case "ModelNotReadyException":
|
|
95
|
-
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
96
|
-
throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
|
|
97
|
-
case "ServiceUnavailable":
|
|
98
|
-
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
99
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
100
|
-
case "ValidationError":
|
|
101
|
-
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
102
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
103
|
-
default:
|
|
104
|
-
const parsedBody = parsedOutput.body;
|
|
105
|
-
return throwDefaultError({
|
|
106
|
-
output,
|
|
107
|
-
parsedBody,
|
|
108
|
-
errorCode,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
78
|
export const de_InvokeEndpointAsyncCommand = async (output, context) => {
|
|
113
79
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
114
|
-
return
|
|
80
|
+
return de_CommandError(output, context);
|
|
115
81
|
}
|
|
116
82
|
const contents = map({
|
|
117
83
|
$metadata: deserializeMetadata(output),
|
|
@@ -125,34 +91,9 @@ export const de_InvokeEndpointAsyncCommand = async (output, context) => {
|
|
|
125
91
|
Object.assign(contents, doc);
|
|
126
92
|
return contents;
|
|
127
93
|
};
|
|
128
|
-
const de_InvokeEndpointAsyncCommandError = async (output, context) => {
|
|
129
|
-
const parsedOutput = {
|
|
130
|
-
...output,
|
|
131
|
-
body: await parseErrorBody(output.body, context),
|
|
132
|
-
};
|
|
133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
134
|
-
switch (errorCode) {
|
|
135
|
-
case "InternalFailure":
|
|
136
|
-
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
137
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
138
|
-
case "ServiceUnavailable":
|
|
139
|
-
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
140
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
141
|
-
case "ValidationError":
|
|
142
|
-
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
143
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
144
|
-
default:
|
|
145
|
-
const parsedBody = parsedOutput.body;
|
|
146
|
-
return throwDefaultError({
|
|
147
|
-
output,
|
|
148
|
-
parsedBody,
|
|
149
|
-
errorCode,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
94
|
export const de_InvokeEndpointWithResponseStreamCommand = async (output, context) => {
|
|
154
95
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
155
|
-
return
|
|
96
|
+
return de_CommandError(output, context);
|
|
156
97
|
}
|
|
157
98
|
const contents = map({
|
|
158
99
|
$metadata: deserializeMetadata(output),
|
|
@@ -164,31 +105,37 @@ export const de_InvokeEndpointWithResponseStreamCommand = async (output, context
|
|
|
164
105
|
contents.Body = de_ResponseStream(data, context);
|
|
165
106
|
return contents;
|
|
166
107
|
};
|
|
167
|
-
const
|
|
108
|
+
const de_CommandError = async (output, context) => {
|
|
168
109
|
const parsedOutput = {
|
|
169
110
|
...output,
|
|
170
111
|
body: await parseErrorBody(output.body, context),
|
|
171
112
|
};
|
|
172
113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
173
114
|
switch (errorCode) {
|
|
115
|
+
case "InternalDependencyException":
|
|
116
|
+
case "com.amazonaws.sagemakerruntime#InternalDependencyException":
|
|
117
|
+
throw await de_InternalDependencyExceptionRes(parsedOutput, context);
|
|
174
118
|
case "InternalFailure":
|
|
175
119
|
case "com.amazonaws.sagemakerruntime#InternalFailure":
|
|
176
120
|
throw await de_InternalFailureRes(parsedOutput, context);
|
|
177
|
-
case "InternalStreamFailure":
|
|
178
|
-
case "com.amazonaws.sagemakerruntime#InternalStreamFailure":
|
|
179
|
-
throw await de_InternalStreamFailureRes(parsedOutput, context);
|
|
180
121
|
case "ModelError":
|
|
181
122
|
case "com.amazonaws.sagemakerruntime#ModelError":
|
|
182
123
|
throw await de_ModelErrorRes(parsedOutput, context);
|
|
183
|
-
case "
|
|
184
|
-
case "com.amazonaws.sagemakerruntime#
|
|
185
|
-
throw await
|
|
124
|
+
case "ModelNotReadyException":
|
|
125
|
+
case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
|
|
126
|
+
throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
|
|
186
127
|
case "ServiceUnavailable":
|
|
187
128
|
case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
|
|
188
129
|
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
189
130
|
case "ValidationError":
|
|
190
131
|
case "com.amazonaws.sagemakerruntime#ValidationError":
|
|
191
132
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
133
|
+
case "InternalStreamFailure":
|
|
134
|
+
case "com.amazonaws.sagemakerruntime#InternalStreamFailure":
|
|
135
|
+
throw await de_InternalStreamFailureRes(parsedOutput, context);
|
|
136
|
+
case "ModelStreamError":
|
|
137
|
+
case "com.amazonaws.sagemakerruntime#ModelStreamError":
|
|
138
|
+
throw await de_ModelStreamErrorRes(parsedOutput, context);
|
|
192
139
|
default:
|
|
193
140
|
const parsedBody = parsedOutput.body;
|
|
194
141
|
return throwDefaultError({
|
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.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sagemaker-runtime",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|