@aws-sdk/client-sagemaker-a2i-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 CHANGED
@@ -356,7 +356,7 @@ var se_StopHumanLoopCommand = /* @__PURE__ */ __name(async (input, context) => {
356
356
  }, "se_StopHumanLoopCommand");
357
357
  var de_DeleteHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) => {
358
358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
359
- return de_DeleteHumanLoopCommandError(output, context);
359
+ return de_CommandError(output, context);
360
360
  }
361
361
  const contents = (0, import_smithy_client.map)({
362
362
  $metadata: deserializeMetadata(output)
@@ -364,37 +364,9 @@ var de_DeleteHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) =
364
364
  await (0, import_smithy_client.collectBody)(output.body, context);
365
365
  return contents;
366
366
  }, "de_DeleteHumanLoopCommand");
367
- var de_DeleteHumanLoopCommandError = /* @__PURE__ */ __name(async (output, context) => {
368
- const parsedOutput = {
369
- ...output,
370
- body: await parseErrorBody(output.body, context)
371
- };
372
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
373
- switch (errorCode) {
374
- case "InternalServerException":
375
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
376
- throw await de_InternalServerExceptionRes(parsedOutput, context);
377
- case "ResourceNotFoundException":
378
- case "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException":
379
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
380
- case "ThrottlingException":
381
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
382
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
383
- case "ValidationException":
384
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
385
- throw await de_ValidationExceptionRes(parsedOutput, context);
386
- default:
387
- const parsedBody = parsedOutput.body;
388
- return throwDefaultError({
389
- output,
390
- parsedBody,
391
- errorCode
392
- });
393
- }
394
- }, "de_DeleteHumanLoopCommandError");
395
367
  var de_DescribeHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) => {
396
368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
397
- return de_DescribeHumanLoopCommandError(output, context);
369
+ return de_CommandError(output, context);
398
370
  }
399
371
  const contents = (0, import_smithy_client.map)({
400
372
  $metadata: deserializeMetadata(output)
@@ -413,37 +385,9 @@ var de_DescribeHumanLoopCommand = /* @__PURE__ */ __name(async (output, context)
413
385
  Object.assign(contents, doc);
414
386
  return contents;
415
387
  }, "de_DescribeHumanLoopCommand");
416
- var de_DescribeHumanLoopCommandError = /* @__PURE__ */ __name(async (output, context) => {
417
- const parsedOutput = {
418
- ...output,
419
- body: await parseErrorBody(output.body, context)
420
- };
421
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
422
- switch (errorCode) {
423
- case "InternalServerException":
424
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
425
- throw await de_InternalServerExceptionRes(parsedOutput, context);
426
- case "ResourceNotFoundException":
427
- case "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException":
428
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
429
- case "ThrottlingException":
430
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
431
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
432
- case "ValidationException":
433
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
434
- throw await de_ValidationExceptionRes(parsedOutput, context);
435
- default:
436
- const parsedBody = parsedOutput.body;
437
- return throwDefaultError({
438
- output,
439
- parsedBody,
440
- errorCode
441
- });
442
- }
443
- }, "de_DescribeHumanLoopCommandError");
444
388
  var de_ListHumanLoopsCommand = /* @__PURE__ */ __name(async (output, context) => {
445
389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
446
- return de_ListHumanLoopsCommandError(output, context);
390
+ return de_CommandError(output, context);
447
391
  }
448
392
  const contents = (0, import_smithy_client.map)({
449
393
  $metadata: deserializeMetadata(output)
@@ -456,37 +400,9 @@ var de_ListHumanLoopsCommand = /* @__PURE__ */ __name(async (output, context) =>
456
400
  Object.assign(contents, doc);
457
401
  return contents;
458
402
  }, "de_ListHumanLoopsCommand");
459
- var de_ListHumanLoopsCommandError = /* @__PURE__ */ __name(async (output, context) => {
460
- const parsedOutput = {
461
- ...output,
462
- body: await parseErrorBody(output.body, context)
463
- };
464
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
465
- switch (errorCode) {
466
- case "InternalServerException":
467
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
468
- throw await de_InternalServerExceptionRes(parsedOutput, context);
469
- case "ResourceNotFoundException":
470
- case "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException":
471
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
472
- case "ThrottlingException":
473
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
474
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
475
- case "ValidationException":
476
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
477
- throw await de_ValidationExceptionRes(parsedOutput, context);
478
- default:
479
- const parsedBody = parsedOutput.body;
480
- return throwDefaultError({
481
- output,
482
- parsedBody,
483
- errorCode
484
- });
485
- }
486
- }, "de_ListHumanLoopsCommandError");
487
403
  var de_StartHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) => {
488
404
  if (output.statusCode !== 200 && output.statusCode >= 300) {
489
- return de_StartHumanLoopCommandError(output, context);
405
+ return de_CommandError(output, context);
490
406
  }
491
407
  const contents = (0, import_smithy_client.map)({
492
408
  $metadata: deserializeMetadata(output)
@@ -498,40 +414,9 @@ var de_StartHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) =>
498
414
  Object.assign(contents, doc);
499
415
  return contents;
500
416
  }, "de_StartHumanLoopCommand");
501
- var de_StartHumanLoopCommandError = /* @__PURE__ */ __name(async (output, context) => {
502
- const parsedOutput = {
503
- ...output,
504
- body: await parseErrorBody(output.body, context)
505
- };
506
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
507
- switch (errorCode) {
508
- case "ConflictException":
509
- case "com.amazonaws.sagemakera2iruntime#ConflictException":
510
- throw await de_ConflictExceptionRes(parsedOutput, context);
511
- case "InternalServerException":
512
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
513
- throw await de_InternalServerExceptionRes(parsedOutput, context);
514
- case "ServiceQuotaExceededException":
515
- case "com.amazonaws.sagemakera2iruntime#ServiceQuotaExceededException":
516
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
517
- case "ThrottlingException":
518
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
519
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
520
- case "ValidationException":
521
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
522
- throw await de_ValidationExceptionRes(parsedOutput, context);
523
- default:
524
- const parsedBody = parsedOutput.body;
525
- return throwDefaultError({
526
- output,
527
- parsedBody,
528
- errorCode
529
- });
530
- }
531
- }, "de_StartHumanLoopCommandError");
532
417
  var de_StopHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) => {
533
418
  if (output.statusCode !== 200 && output.statusCode >= 300) {
534
- return de_StopHumanLoopCommandError(output, context);
419
+ return de_CommandError(output, context);
535
420
  }
536
421
  const contents = (0, import_smithy_client.map)({
537
422
  $metadata: deserializeMetadata(output)
@@ -539,7 +424,7 @@ var de_StopHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) =>
539
424
  await (0, import_smithy_client.collectBody)(output.body, context);
540
425
  return contents;
541
426
  }, "de_StopHumanLoopCommand");
542
- var de_StopHumanLoopCommandError = /* @__PURE__ */ __name(async (output, context) => {
427
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
543
428
  const parsedOutput = {
544
429
  ...output,
545
430
  body: await parseErrorBody(output.body, context)
@@ -558,6 +443,12 @@ var de_StopHumanLoopCommandError = /* @__PURE__ */ __name(async (output, context
558
443
  case "ValidationException":
559
444
  case "com.amazonaws.sagemakera2iruntime#ValidationException":
560
445
  throw await de_ValidationExceptionRes(parsedOutput, context);
446
+ case "ConflictException":
447
+ case "com.amazonaws.sagemakera2iruntime#ConflictException":
448
+ throw await de_ConflictExceptionRes(parsedOutput, context);
449
+ case "ServiceQuotaExceededException":
450
+ case "com.amazonaws.sagemakera2iruntime#ServiceQuotaExceededException":
451
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
561
452
  default:
562
453
  const parsedBody = parsedOutput.body;
563
454
  return throwDefaultError({
@@ -566,7 +457,7 @@ var de_StopHumanLoopCommandError = /* @__PURE__ */ __name(async (output, context
566
457
  errorCode
567
458
  });
568
459
  }
569
- }, "de_StopHumanLoopCommandError");
460
+ }, "de_CommandError");
570
461
  var throwDefaultError = (0, import_smithy_client.withBaseException)(SageMakerA2IRuntimeServiceException);
571
462
  var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
572
463
  const contents = (0, import_smithy_client.map)({});
@@ -73,7 +73,7 @@ export const se_StopHumanLoopCommand = async (input, context) => {
73
73
  };
74
74
  export const de_DeleteHumanLoopCommand = async (output, context) => {
75
75
  if (output.statusCode !== 200 && output.statusCode >= 300) {
76
- return de_DeleteHumanLoopCommandError(output, context);
76
+ return de_CommandError(output, context);
77
77
  }
78
78
  const contents = map({
79
79
  $metadata: deserializeMetadata(output),
@@ -81,37 +81,9 @@ export const de_DeleteHumanLoopCommand = async (output, context) => {
81
81
  await collectBody(output.body, context);
82
82
  return contents;
83
83
  };
84
- const de_DeleteHumanLoopCommandError = async (output, context) => {
85
- const parsedOutput = {
86
- ...output,
87
- body: await parseErrorBody(output.body, context),
88
- };
89
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
90
- switch (errorCode) {
91
- case "InternalServerException":
92
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
93
- throw await de_InternalServerExceptionRes(parsedOutput, context);
94
- case "ResourceNotFoundException":
95
- case "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException":
96
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
97
- case "ThrottlingException":
98
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
99
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
100
- case "ValidationException":
101
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
102
- throw await de_ValidationExceptionRes(parsedOutput, context);
103
- default:
104
- const parsedBody = parsedOutput.body;
105
- return throwDefaultError({
106
- output,
107
- parsedBody,
108
- errorCode,
109
- });
110
- }
111
- };
112
84
  export const de_DescribeHumanLoopCommand = async (output, context) => {
113
85
  if (output.statusCode !== 200 && output.statusCode >= 300) {
114
- return de_DescribeHumanLoopCommandError(output, context);
86
+ return de_CommandError(output, context);
115
87
  }
116
88
  const contents = map({
117
89
  $metadata: deserializeMetadata(output),
@@ -130,37 +102,9 @@ export const de_DescribeHumanLoopCommand = async (output, context) => {
130
102
  Object.assign(contents, doc);
131
103
  return contents;
132
104
  };
133
- const de_DescribeHumanLoopCommandError = async (output, context) => {
134
- const parsedOutput = {
135
- ...output,
136
- body: await parseErrorBody(output.body, context),
137
- };
138
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
139
- switch (errorCode) {
140
- case "InternalServerException":
141
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
142
- throw await de_InternalServerExceptionRes(parsedOutput, context);
143
- case "ResourceNotFoundException":
144
- case "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException":
145
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
146
- case "ThrottlingException":
147
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
148
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
149
- case "ValidationException":
150
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
151
- throw await de_ValidationExceptionRes(parsedOutput, context);
152
- default:
153
- const parsedBody = parsedOutput.body;
154
- return throwDefaultError({
155
- output,
156
- parsedBody,
157
- errorCode,
158
- });
159
- }
160
- };
161
105
  export const de_ListHumanLoopsCommand = async (output, context) => {
162
106
  if (output.statusCode !== 200 && output.statusCode >= 300) {
163
- return de_ListHumanLoopsCommandError(output, context);
107
+ return de_CommandError(output, context);
164
108
  }
165
109
  const contents = map({
166
110
  $metadata: deserializeMetadata(output),
@@ -173,37 +117,9 @@ export const de_ListHumanLoopsCommand = async (output, context) => {
173
117
  Object.assign(contents, doc);
174
118
  return contents;
175
119
  };
176
- const de_ListHumanLoopsCommandError = async (output, context) => {
177
- const parsedOutput = {
178
- ...output,
179
- body: await parseErrorBody(output.body, context),
180
- };
181
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
182
- switch (errorCode) {
183
- case "InternalServerException":
184
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
185
- throw await de_InternalServerExceptionRes(parsedOutput, context);
186
- case "ResourceNotFoundException":
187
- case "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException":
188
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
189
- case "ThrottlingException":
190
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
191
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
192
- case "ValidationException":
193
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
194
- throw await de_ValidationExceptionRes(parsedOutput, context);
195
- default:
196
- const parsedBody = parsedOutput.body;
197
- return throwDefaultError({
198
- output,
199
- parsedBody,
200
- errorCode,
201
- });
202
- }
203
- };
204
120
  export const de_StartHumanLoopCommand = async (output, context) => {
205
121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
206
- return de_StartHumanLoopCommandError(output, context);
122
+ return de_CommandError(output, context);
207
123
  }
208
124
  const contents = map({
209
125
  $metadata: deserializeMetadata(output),
@@ -215,40 +131,9 @@ export const de_StartHumanLoopCommand = async (output, context) => {
215
131
  Object.assign(contents, doc);
216
132
  return contents;
217
133
  };
218
- const de_StartHumanLoopCommandError = async (output, context) => {
219
- const parsedOutput = {
220
- ...output,
221
- body: await parseErrorBody(output.body, context),
222
- };
223
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
224
- switch (errorCode) {
225
- case "ConflictException":
226
- case "com.amazonaws.sagemakera2iruntime#ConflictException":
227
- throw await de_ConflictExceptionRes(parsedOutput, context);
228
- case "InternalServerException":
229
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
230
- throw await de_InternalServerExceptionRes(parsedOutput, context);
231
- case "ServiceQuotaExceededException":
232
- case "com.amazonaws.sagemakera2iruntime#ServiceQuotaExceededException":
233
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
234
- case "ThrottlingException":
235
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
236
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
237
- case "ValidationException":
238
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
239
- throw await de_ValidationExceptionRes(parsedOutput, context);
240
- default:
241
- const parsedBody = parsedOutput.body;
242
- return throwDefaultError({
243
- output,
244
- parsedBody,
245
- errorCode,
246
- });
247
- }
248
- };
249
134
  export const de_StopHumanLoopCommand = async (output, context) => {
250
135
  if (output.statusCode !== 200 && output.statusCode >= 300) {
251
- return de_StopHumanLoopCommandError(output, context);
136
+ return de_CommandError(output, context);
252
137
  }
253
138
  const contents = map({
254
139
  $metadata: deserializeMetadata(output),
@@ -256,7 +141,7 @@ export const de_StopHumanLoopCommand = async (output, context) => {
256
141
  await collectBody(output.body, context);
257
142
  return contents;
258
143
  };
259
- const de_StopHumanLoopCommandError = async (output, context) => {
144
+ const de_CommandError = async (output, context) => {
260
145
  const parsedOutput = {
261
146
  ...output,
262
147
  body: await parseErrorBody(output.body, context),
@@ -275,6 +160,12 @@ const de_StopHumanLoopCommandError = async (output, context) => {
275
160
  case "ValidationException":
276
161
  case "com.amazonaws.sagemakera2iruntime#ValidationException":
277
162
  throw await de_ValidationExceptionRes(parsedOutput, context);
163
+ case "ConflictException":
164
+ case "com.amazonaws.sagemakera2iruntime#ConflictException":
165
+ throw await de_ConflictExceptionRes(parsedOutput, context);
166
+ case "ServiceQuotaExceededException":
167
+ case "com.amazonaws.sagemakera2iruntime#ServiceQuotaExceededException":
168
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
278
169
  default:
279
170
  const parsedBody = parsedOutput.body;
280
171
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-a2i-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker A2i Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
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-a2i-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.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
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",