@aws-sdk/client-sagemaker-featurestore-runtime 3.504.0 → 3.507.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 +9 -93
- package/dist-es/protocols/Aws_restJson1.js +8 -92
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -330,7 +330,7 @@ var se_PutRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
330
330
|
}, "se_PutRecordCommand");
|
|
331
331
|
var de_BatchGetRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
332
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
334
334
|
}
|
|
335
335
|
const contents = (0, import_smithy_client.map)({
|
|
336
336
|
$metadata: deserializeMetadata(output)
|
|
@@ -344,37 +344,9 @@ var de_BatchGetRecordCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
344
344
|
Object.assign(contents, doc);
|
|
345
345
|
return contents;
|
|
346
346
|
}, "de_BatchGetRecordCommand");
|
|
347
|
-
var de_BatchGetRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
348
|
-
const parsedOutput = {
|
|
349
|
-
...output,
|
|
350
|
-
body: await parseErrorBody(output.body, context)
|
|
351
|
-
};
|
|
352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "AccessForbidden":
|
|
355
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
356
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
357
|
-
case "InternalFailure":
|
|
358
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
359
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
360
|
-
case "ServiceUnavailable":
|
|
361
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
362
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
363
|
-
case "ValidationError":
|
|
364
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
365
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
366
|
-
default:
|
|
367
|
-
const parsedBody = parsedOutput.body;
|
|
368
|
-
return throwDefaultError({
|
|
369
|
-
output,
|
|
370
|
-
parsedBody,
|
|
371
|
-
errorCode
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
}, "de_BatchGetRecordCommandError");
|
|
375
347
|
var de_DeleteRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
376
348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
377
|
-
return
|
|
349
|
+
return de_CommandError(output, context);
|
|
378
350
|
}
|
|
379
351
|
const contents = (0, import_smithy_client.map)({
|
|
380
352
|
$metadata: deserializeMetadata(output)
|
|
@@ -382,37 +354,9 @@ var de_DeleteRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
382
354
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
383
355
|
return contents;
|
|
384
356
|
}, "de_DeleteRecordCommand");
|
|
385
|
-
var de_DeleteRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
386
|
-
const parsedOutput = {
|
|
387
|
-
...output,
|
|
388
|
-
body: await parseErrorBody(output.body, context)
|
|
389
|
-
};
|
|
390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
391
|
-
switch (errorCode) {
|
|
392
|
-
case "AccessForbidden":
|
|
393
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
394
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
395
|
-
case "InternalFailure":
|
|
396
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
397
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
398
|
-
case "ServiceUnavailable":
|
|
399
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
400
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
401
|
-
case "ValidationError":
|
|
402
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
403
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
404
|
-
default:
|
|
405
|
-
const parsedBody = parsedOutput.body;
|
|
406
|
-
return throwDefaultError({
|
|
407
|
-
output,
|
|
408
|
-
parsedBody,
|
|
409
|
-
errorCode
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
}, "de_DeleteRecordCommandError");
|
|
413
357
|
var de_GetRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
414
358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
415
|
-
return
|
|
359
|
+
return de_CommandError(output, context);
|
|
416
360
|
}
|
|
417
361
|
const contents = (0, import_smithy_client.map)({
|
|
418
362
|
$metadata: deserializeMetadata(output)
|
|
@@ -425,40 +369,9 @@ var de_GetRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
425
369
|
Object.assign(contents, doc);
|
|
426
370
|
return contents;
|
|
427
371
|
}, "de_GetRecordCommand");
|
|
428
|
-
var de_GetRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
429
|
-
const parsedOutput = {
|
|
430
|
-
...output,
|
|
431
|
-
body: await parseErrorBody(output.body, context)
|
|
432
|
-
};
|
|
433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
|
-
switch (errorCode) {
|
|
435
|
-
case "AccessForbidden":
|
|
436
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
437
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
438
|
-
case "InternalFailure":
|
|
439
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
440
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
441
|
-
case "ResourceNotFound":
|
|
442
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
443
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
444
|
-
case "ServiceUnavailable":
|
|
445
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
446
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
447
|
-
case "ValidationError":
|
|
448
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
449
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
450
|
-
default:
|
|
451
|
-
const parsedBody = parsedOutput.body;
|
|
452
|
-
return throwDefaultError({
|
|
453
|
-
output,
|
|
454
|
-
parsedBody,
|
|
455
|
-
errorCode
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
}, "de_GetRecordCommandError");
|
|
459
372
|
var de_PutRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
460
373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
461
|
-
return
|
|
374
|
+
return de_CommandError(output, context);
|
|
462
375
|
}
|
|
463
376
|
const contents = (0, import_smithy_client.map)({
|
|
464
377
|
$metadata: deserializeMetadata(output)
|
|
@@ -466,7 +379,7 @@ var de_PutRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
466
379
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
467
380
|
return contents;
|
|
468
381
|
}, "de_PutRecordCommand");
|
|
469
|
-
var
|
|
382
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
470
383
|
const parsedOutput = {
|
|
471
384
|
...output,
|
|
472
385
|
body: await parseErrorBody(output.body, context)
|
|
@@ -485,6 +398,9 @@ var de_PutRecordCommandError = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
485
398
|
case "ValidationError":
|
|
486
399
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
487
400
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
401
|
+
case "ResourceNotFound":
|
|
402
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
403
|
+
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
488
404
|
default:
|
|
489
405
|
const parsedBody = parsedOutput.body;
|
|
490
406
|
return throwDefaultError({
|
|
@@ -493,7 +409,7 @@ var de_PutRecordCommandError = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
493
409
|
errorCode
|
|
494
410
|
});
|
|
495
411
|
}
|
|
496
|
-
}, "
|
|
412
|
+
}, "de_CommandError");
|
|
497
413
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SageMakerFeatureStoreRuntimeServiceException);
|
|
498
414
|
var de_AccessForbiddenRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
499
415
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -63,7 +63,7 @@ export const se_PutRecordCommand = async (input, context) => {
|
|
|
63
63
|
};
|
|
64
64
|
export const de_BatchGetRecordCommand = 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),
|
|
@@ -77,37 +77,9 @@ export const de_BatchGetRecordCommand = async (output, context) => {
|
|
|
77
77
|
Object.assign(contents, doc);
|
|
78
78
|
return contents;
|
|
79
79
|
};
|
|
80
|
-
const de_BatchGetRecordCommandError = async (output, context) => {
|
|
81
|
-
const parsedOutput = {
|
|
82
|
-
...output,
|
|
83
|
-
body: await parseErrorBody(output.body, context),
|
|
84
|
-
};
|
|
85
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
86
|
-
switch (errorCode) {
|
|
87
|
-
case "AccessForbidden":
|
|
88
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
89
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
90
|
-
case "InternalFailure":
|
|
91
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
92
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
93
|
-
case "ServiceUnavailable":
|
|
94
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
95
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
96
|
-
case "ValidationError":
|
|
97
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
98
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
99
|
-
default:
|
|
100
|
-
const parsedBody = parsedOutput.body;
|
|
101
|
-
return throwDefaultError({
|
|
102
|
-
output,
|
|
103
|
-
parsedBody,
|
|
104
|
-
errorCode,
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
80
|
export const de_DeleteRecordCommand = async (output, context) => {
|
|
109
81
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
110
|
-
return
|
|
82
|
+
return de_CommandError(output, context);
|
|
111
83
|
}
|
|
112
84
|
const contents = map({
|
|
113
85
|
$metadata: deserializeMetadata(output),
|
|
@@ -115,37 +87,9 @@ export const de_DeleteRecordCommand = async (output, context) => {
|
|
|
115
87
|
await collectBody(output.body, context);
|
|
116
88
|
return contents;
|
|
117
89
|
};
|
|
118
|
-
const de_DeleteRecordCommandError = async (output, context) => {
|
|
119
|
-
const parsedOutput = {
|
|
120
|
-
...output,
|
|
121
|
-
body: await parseErrorBody(output.body, context),
|
|
122
|
-
};
|
|
123
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
124
|
-
switch (errorCode) {
|
|
125
|
-
case "AccessForbidden":
|
|
126
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
127
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
128
|
-
case "InternalFailure":
|
|
129
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
130
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
131
|
-
case "ServiceUnavailable":
|
|
132
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
133
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
134
|
-
case "ValidationError":
|
|
135
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
136
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
137
|
-
default:
|
|
138
|
-
const parsedBody = parsedOutput.body;
|
|
139
|
-
return throwDefaultError({
|
|
140
|
-
output,
|
|
141
|
-
parsedBody,
|
|
142
|
-
errorCode,
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
90
|
export const de_GetRecordCommand = async (output, context) => {
|
|
147
91
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
148
|
-
return
|
|
92
|
+
return de_CommandError(output, context);
|
|
149
93
|
}
|
|
150
94
|
const contents = map({
|
|
151
95
|
$metadata: deserializeMetadata(output),
|
|
@@ -158,40 +102,9 @@ export const de_GetRecordCommand = async (output, context) => {
|
|
|
158
102
|
Object.assign(contents, doc);
|
|
159
103
|
return contents;
|
|
160
104
|
};
|
|
161
|
-
const de_GetRecordCommandError = async (output, context) => {
|
|
162
|
-
const parsedOutput = {
|
|
163
|
-
...output,
|
|
164
|
-
body: await parseErrorBody(output.body, context),
|
|
165
|
-
};
|
|
166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
167
|
-
switch (errorCode) {
|
|
168
|
-
case "AccessForbidden":
|
|
169
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
170
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
171
|
-
case "InternalFailure":
|
|
172
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
173
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
174
|
-
case "ResourceNotFound":
|
|
175
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
176
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
177
|
-
case "ServiceUnavailable":
|
|
178
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
179
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
180
|
-
case "ValidationError":
|
|
181
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
182
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
183
|
-
default:
|
|
184
|
-
const parsedBody = parsedOutput.body;
|
|
185
|
-
return throwDefaultError({
|
|
186
|
-
output,
|
|
187
|
-
parsedBody,
|
|
188
|
-
errorCode,
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
105
|
export const de_PutRecordCommand = async (output, context) => {
|
|
193
106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
194
|
-
return
|
|
107
|
+
return de_CommandError(output, context);
|
|
195
108
|
}
|
|
196
109
|
const contents = map({
|
|
197
110
|
$metadata: deserializeMetadata(output),
|
|
@@ -199,7 +112,7 @@ export const de_PutRecordCommand = async (output, context) => {
|
|
|
199
112
|
await collectBody(output.body, context);
|
|
200
113
|
return contents;
|
|
201
114
|
};
|
|
202
|
-
const
|
|
115
|
+
const de_CommandError = async (output, context) => {
|
|
203
116
|
const parsedOutput = {
|
|
204
117
|
...output,
|
|
205
118
|
body: await parseErrorBody(output.body, context),
|
|
@@ -218,6 +131,9 @@ const de_PutRecordCommandError = async (output, context) => {
|
|
|
218
131
|
case "ValidationError":
|
|
219
132
|
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
220
133
|
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
134
|
+
case "ResourceNotFound":
|
|
135
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
136
|
+
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
221
137
|
default:
|
|
222
138
|
const parsedBody = parsedOutput.body;
|
|
223
139
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-featurestore-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Featurestore Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.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-featurestore-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.507.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",
|