@aws-sdk/client-servicediscovery 3.503.1 → 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 +72 -710
- package/dist-es/protocols/Aws_json1_1.js +62 -700
- package/package.json +3 -3
|
@@ -181,7 +181,7 @@ export const se_UpdateServiceCommand = async (input, context) => {
|
|
|
181
181
|
};
|
|
182
182
|
export const de_CreateHttpNamespaceCommand = async (output, context) => {
|
|
183
183
|
if (output.statusCode >= 300) {
|
|
184
|
-
return
|
|
184
|
+
return de_CommandError(output, context);
|
|
185
185
|
}
|
|
186
186
|
const data = await parseBody(output.body, context);
|
|
187
187
|
let contents = {};
|
|
@@ -192,40 +192,9 @@ export const de_CreateHttpNamespaceCommand = async (output, context) => {
|
|
|
192
192
|
};
|
|
193
193
|
return response;
|
|
194
194
|
};
|
|
195
|
-
const de_CreateHttpNamespaceCommandError = async (output, context) => {
|
|
196
|
-
const parsedOutput = {
|
|
197
|
-
...output,
|
|
198
|
-
body: await parseErrorBody(output.body, context),
|
|
199
|
-
};
|
|
200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
|
-
switch (errorCode) {
|
|
202
|
-
case "DuplicateRequest":
|
|
203
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
204
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
205
|
-
case "InvalidInput":
|
|
206
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
207
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
208
|
-
case "NamespaceAlreadyExists":
|
|
209
|
-
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
210
|
-
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
211
|
-
case "ResourceLimitExceeded":
|
|
212
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
213
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
214
|
-
case "TooManyTagsException":
|
|
215
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
216
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
217
|
-
default:
|
|
218
|
-
const parsedBody = parsedOutput.body;
|
|
219
|
-
return throwDefaultError({
|
|
220
|
-
output,
|
|
221
|
-
parsedBody,
|
|
222
|
-
errorCode,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
195
|
export const de_CreatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
227
196
|
if (output.statusCode >= 300) {
|
|
228
|
-
return
|
|
197
|
+
return de_CommandError(output, context);
|
|
229
198
|
}
|
|
230
199
|
const data = await parseBody(output.body, context);
|
|
231
200
|
let contents = {};
|
|
@@ -236,40 +205,9 @@ export const de_CreatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
|
236
205
|
};
|
|
237
206
|
return response;
|
|
238
207
|
};
|
|
239
|
-
const de_CreatePrivateDnsNamespaceCommandError = async (output, context) => {
|
|
240
|
-
const parsedOutput = {
|
|
241
|
-
...output,
|
|
242
|
-
body: await parseErrorBody(output.body, context),
|
|
243
|
-
};
|
|
244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
245
|
-
switch (errorCode) {
|
|
246
|
-
case "DuplicateRequest":
|
|
247
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
248
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
249
|
-
case "InvalidInput":
|
|
250
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
251
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
252
|
-
case "NamespaceAlreadyExists":
|
|
253
|
-
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
254
|
-
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
255
|
-
case "ResourceLimitExceeded":
|
|
256
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
257
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
258
|
-
case "TooManyTagsException":
|
|
259
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
260
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
261
|
-
default:
|
|
262
|
-
const parsedBody = parsedOutput.body;
|
|
263
|
-
return throwDefaultError({
|
|
264
|
-
output,
|
|
265
|
-
parsedBody,
|
|
266
|
-
errorCode,
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
208
|
export const de_CreatePublicDnsNamespaceCommand = async (output, context) => {
|
|
271
209
|
if (output.statusCode >= 300) {
|
|
272
|
-
return
|
|
210
|
+
return de_CommandError(output, context);
|
|
273
211
|
}
|
|
274
212
|
const data = await parseBody(output.body, context);
|
|
275
213
|
let contents = {};
|
|
@@ -280,40 +218,9 @@ export const de_CreatePublicDnsNamespaceCommand = async (output, context) => {
|
|
|
280
218
|
};
|
|
281
219
|
return response;
|
|
282
220
|
};
|
|
283
|
-
const de_CreatePublicDnsNamespaceCommandError = async (output, context) => {
|
|
284
|
-
const parsedOutput = {
|
|
285
|
-
...output,
|
|
286
|
-
body: await parseErrorBody(output.body, context),
|
|
287
|
-
};
|
|
288
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
|
-
switch (errorCode) {
|
|
290
|
-
case "DuplicateRequest":
|
|
291
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
292
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
293
|
-
case "InvalidInput":
|
|
294
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
295
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
296
|
-
case "NamespaceAlreadyExists":
|
|
297
|
-
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
298
|
-
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
299
|
-
case "ResourceLimitExceeded":
|
|
300
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
301
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
302
|
-
case "TooManyTagsException":
|
|
303
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
304
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
305
|
-
default:
|
|
306
|
-
const parsedBody = parsedOutput.body;
|
|
307
|
-
return throwDefaultError({
|
|
308
|
-
output,
|
|
309
|
-
parsedBody,
|
|
310
|
-
errorCode,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
221
|
export const de_CreateServiceCommand = async (output, context) => {
|
|
315
222
|
if (output.statusCode >= 300) {
|
|
316
|
-
return
|
|
223
|
+
return de_CommandError(output, context);
|
|
317
224
|
}
|
|
318
225
|
const data = await parseBody(output.body, context);
|
|
319
226
|
let contents = {};
|
|
@@ -324,40 +231,9 @@ export const de_CreateServiceCommand = async (output, context) => {
|
|
|
324
231
|
};
|
|
325
232
|
return response;
|
|
326
233
|
};
|
|
327
|
-
const de_CreateServiceCommandError = async (output, context) => {
|
|
328
|
-
const parsedOutput = {
|
|
329
|
-
...output,
|
|
330
|
-
body: await parseErrorBody(output.body, context),
|
|
331
|
-
};
|
|
332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
|
-
switch (errorCode) {
|
|
334
|
-
case "InvalidInput":
|
|
335
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
336
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
337
|
-
case "NamespaceNotFound":
|
|
338
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
339
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
340
|
-
case "ResourceLimitExceeded":
|
|
341
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
342
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
343
|
-
case "ServiceAlreadyExists":
|
|
344
|
-
case "com.amazonaws.servicediscovery#ServiceAlreadyExists":
|
|
345
|
-
throw await de_ServiceAlreadyExistsRes(parsedOutput, context);
|
|
346
|
-
case "TooManyTagsException":
|
|
347
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
348
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
349
|
-
default:
|
|
350
|
-
const parsedBody = parsedOutput.body;
|
|
351
|
-
return throwDefaultError({
|
|
352
|
-
output,
|
|
353
|
-
parsedBody,
|
|
354
|
-
errorCode,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
234
|
export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
359
235
|
if (output.statusCode >= 300) {
|
|
360
|
-
return
|
|
236
|
+
return de_CommandError(output, context);
|
|
361
237
|
}
|
|
362
238
|
const data = await parseBody(output.body, context);
|
|
363
239
|
let contents = {};
|
|
@@ -368,37 +244,9 @@ export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
|
368
244
|
};
|
|
369
245
|
return response;
|
|
370
246
|
};
|
|
371
|
-
const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
372
|
-
const parsedOutput = {
|
|
373
|
-
...output,
|
|
374
|
-
body: await parseErrorBody(output.body, context),
|
|
375
|
-
};
|
|
376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
377
|
-
switch (errorCode) {
|
|
378
|
-
case "DuplicateRequest":
|
|
379
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
380
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
381
|
-
case "InvalidInput":
|
|
382
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
383
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
384
|
-
case "NamespaceNotFound":
|
|
385
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
386
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
387
|
-
case "ResourceInUse":
|
|
388
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
389
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
390
|
-
default:
|
|
391
|
-
const parsedBody = parsedOutput.body;
|
|
392
|
-
return throwDefaultError({
|
|
393
|
-
output,
|
|
394
|
-
parsedBody,
|
|
395
|
-
errorCode,
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
247
|
export const de_DeleteServiceCommand = async (output, context) => {
|
|
400
248
|
if (output.statusCode >= 300) {
|
|
401
|
-
return
|
|
249
|
+
return de_CommandError(output, context);
|
|
402
250
|
}
|
|
403
251
|
const data = await parseBody(output.body, context);
|
|
404
252
|
let contents = {};
|
|
@@ -409,34 +257,9 @@ export const de_DeleteServiceCommand = async (output, context) => {
|
|
|
409
257
|
};
|
|
410
258
|
return response;
|
|
411
259
|
};
|
|
412
|
-
const de_DeleteServiceCommandError = async (output, context) => {
|
|
413
|
-
const parsedOutput = {
|
|
414
|
-
...output,
|
|
415
|
-
body: await parseErrorBody(output.body, context),
|
|
416
|
-
};
|
|
417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
418
|
-
switch (errorCode) {
|
|
419
|
-
case "InvalidInput":
|
|
420
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
421
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
422
|
-
case "ResourceInUse":
|
|
423
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
424
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
425
|
-
case "ServiceNotFound":
|
|
426
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
427
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
428
|
-
default:
|
|
429
|
-
const parsedBody = parsedOutput.body;
|
|
430
|
-
return throwDefaultError({
|
|
431
|
-
output,
|
|
432
|
-
parsedBody,
|
|
433
|
-
errorCode,
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
260
|
export const de_DeregisterInstanceCommand = async (output, context) => {
|
|
438
261
|
if (output.statusCode >= 300) {
|
|
439
|
-
return
|
|
262
|
+
return de_CommandError(output, context);
|
|
440
263
|
}
|
|
441
264
|
const data = await parseBody(output.body, context);
|
|
442
265
|
let contents = {};
|
|
@@ -447,40 +270,9 @@ export const de_DeregisterInstanceCommand = async (output, context) => {
|
|
|
447
270
|
};
|
|
448
271
|
return response;
|
|
449
272
|
};
|
|
450
|
-
const de_DeregisterInstanceCommandError = async (output, context) => {
|
|
451
|
-
const parsedOutput = {
|
|
452
|
-
...output,
|
|
453
|
-
body: await parseErrorBody(output.body, context),
|
|
454
|
-
};
|
|
455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
-
switch (errorCode) {
|
|
457
|
-
case "DuplicateRequest":
|
|
458
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
459
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
460
|
-
case "InstanceNotFound":
|
|
461
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
462
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
463
|
-
case "InvalidInput":
|
|
464
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
465
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
466
|
-
case "ResourceInUse":
|
|
467
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
468
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
469
|
-
case "ServiceNotFound":
|
|
470
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
471
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
472
|
-
default:
|
|
473
|
-
const parsedBody = parsedOutput.body;
|
|
474
|
-
return throwDefaultError({
|
|
475
|
-
output,
|
|
476
|
-
parsedBody,
|
|
477
|
-
errorCode,
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
};
|
|
481
273
|
export const de_DiscoverInstancesCommand = async (output, context) => {
|
|
482
274
|
if (output.statusCode >= 300) {
|
|
483
|
-
return
|
|
275
|
+
return de_CommandError(output, context);
|
|
484
276
|
}
|
|
485
277
|
const data = await parseBody(output.body, context);
|
|
486
278
|
let contents = {};
|
|
@@ -491,37 +283,9 @@ export const de_DiscoverInstancesCommand = async (output, context) => {
|
|
|
491
283
|
};
|
|
492
284
|
return response;
|
|
493
285
|
};
|
|
494
|
-
const de_DiscoverInstancesCommandError = async (output, context) => {
|
|
495
|
-
const parsedOutput = {
|
|
496
|
-
...output,
|
|
497
|
-
body: await parseErrorBody(output.body, context),
|
|
498
|
-
};
|
|
499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
|
-
switch (errorCode) {
|
|
501
|
-
case "InvalidInput":
|
|
502
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
503
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
504
|
-
case "NamespaceNotFound":
|
|
505
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
506
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
507
|
-
case "RequestLimitExceeded":
|
|
508
|
-
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
509
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
510
|
-
case "ServiceNotFound":
|
|
511
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
512
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
return throwDefaultError({
|
|
516
|
-
output,
|
|
517
|
-
parsedBody,
|
|
518
|
-
errorCode,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
286
|
export const de_DiscoverInstancesRevisionCommand = async (output, context) => {
|
|
523
287
|
if (output.statusCode >= 300) {
|
|
524
|
-
return
|
|
288
|
+
return de_CommandError(output, context);
|
|
525
289
|
}
|
|
526
290
|
const data = await parseBody(output.body, context);
|
|
527
291
|
let contents = {};
|
|
@@ -532,37 +296,9 @@ export const de_DiscoverInstancesRevisionCommand = async (output, context) => {
|
|
|
532
296
|
};
|
|
533
297
|
return response;
|
|
534
298
|
};
|
|
535
|
-
const de_DiscoverInstancesRevisionCommandError = async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context),
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "InvalidInput":
|
|
543
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
544
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
545
|
-
case "NamespaceNotFound":
|
|
546
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
547
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
548
|
-
case "RequestLimitExceeded":
|
|
549
|
-
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
550
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
551
|
-
case "ServiceNotFound":
|
|
552
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
553
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
554
|
-
default:
|
|
555
|
-
const parsedBody = parsedOutput.body;
|
|
556
|
-
return throwDefaultError({
|
|
557
|
-
output,
|
|
558
|
-
parsedBody,
|
|
559
|
-
errorCode,
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
299
|
export const de_GetInstanceCommand = async (output, context) => {
|
|
564
300
|
if (output.statusCode >= 300) {
|
|
565
|
-
return
|
|
301
|
+
return de_CommandError(output, context);
|
|
566
302
|
}
|
|
567
303
|
const data = await parseBody(output.body, context);
|
|
568
304
|
let contents = {};
|
|
@@ -573,34 +309,9 @@ export const de_GetInstanceCommand = async (output, context) => {
|
|
|
573
309
|
};
|
|
574
310
|
return response;
|
|
575
311
|
};
|
|
576
|
-
const de_GetInstanceCommandError = async (output, context) => {
|
|
577
|
-
const parsedOutput = {
|
|
578
|
-
...output,
|
|
579
|
-
body: await parseErrorBody(output.body, context),
|
|
580
|
-
};
|
|
581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
|
-
switch (errorCode) {
|
|
583
|
-
case "InstanceNotFound":
|
|
584
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
585
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
586
|
-
case "InvalidInput":
|
|
587
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
588
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
589
|
-
case "ServiceNotFound":
|
|
590
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
591
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
592
|
-
default:
|
|
593
|
-
const parsedBody = parsedOutput.body;
|
|
594
|
-
return throwDefaultError({
|
|
595
|
-
output,
|
|
596
|
-
parsedBody,
|
|
597
|
-
errorCode,
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
312
|
export const de_GetInstancesHealthStatusCommand = async (output, context) => {
|
|
602
313
|
if (output.statusCode >= 300) {
|
|
603
|
-
return
|
|
314
|
+
return de_CommandError(output, context);
|
|
604
315
|
}
|
|
605
316
|
const data = await parseBody(output.body, context);
|
|
606
317
|
let contents = {};
|
|
@@ -611,34 +322,9 @@ export const de_GetInstancesHealthStatusCommand = async (output, context) => {
|
|
|
611
322
|
};
|
|
612
323
|
return response;
|
|
613
324
|
};
|
|
614
|
-
const de_GetInstancesHealthStatusCommandError = async (output, context) => {
|
|
615
|
-
const parsedOutput = {
|
|
616
|
-
...output,
|
|
617
|
-
body: await parseErrorBody(output.body, context),
|
|
618
|
-
};
|
|
619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
-
switch (errorCode) {
|
|
621
|
-
case "InstanceNotFound":
|
|
622
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
623
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
624
|
-
case "InvalidInput":
|
|
625
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
626
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
627
|
-
case "ServiceNotFound":
|
|
628
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
629
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
630
|
-
default:
|
|
631
|
-
const parsedBody = parsedOutput.body;
|
|
632
|
-
return throwDefaultError({
|
|
633
|
-
output,
|
|
634
|
-
parsedBody,
|
|
635
|
-
errorCode,
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
325
|
export const de_GetNamespaceCommand = async (output, context) => {
|
|
640
326
|
if (output.statusCode >= 300) {
|
|
641
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
642
328
|
}
|
|
643
329
|
const data = await parseBody(output.body, context);
|
|
644
330
|
let contents = {};
|
|
@@ -649,31 +335,9 @@ export const de_GetNamespaceCommand = async (output, context) => {
|
|
|
649
335
|
};
|
|
650
336
|
return response;
|
|
651
337
|
};
|
|
652
|
-
const de_GetNamespaceCommandError = async (output, context) => {
|
|
653
|
-
const parsedOutput = {
|
|
654
|
-
...output,
|
|
655
|
-
body: await parseErrorBody(output.body, context),
|
|
656
|
-
};
|
|
657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
-
switch (errorCode) {
|
|
659
|
-
case "InvalidInput":
|
|
660
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
661
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
662
|
-
case "NamespaceNotFound":
|
|
663
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
664
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
665
|
-
default:
|
|
666
|
-
const parsedBody = parsedOutput.body;
|
|
667
|
-
return throwDefaultError({
|
|
668
|
-
output,
|
|
669
|
-
parsedBody,
|
|
670
|
-
errorCode,
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
338
|
export const de_GetOperationCommand = async (output, context) => {
|
|
675
339
|
if (output.statusCode >= 300) {
|
|
676
|
-
return
|
|
340
|
+
return de_CommandError(output, context);
|
|
677
341
|
}
|
|
678
342
|
const data = await parseBody(output.body, context);
|
|
679
343
|
let contents = {};
|
|
@@ -684,31 +348,9 @@ export const de_GetOperationCommand = async (output, context) => {
|
|
|
684
348
|
};
|
|
685
349
|
return response;
|
|
686
350
|
};
|
|
687
|
-
const de_GetOperationCommandError = async (output, context) => {
|
|
688
|
-
const parsedOutput = {
|
|
689
|
-
...output,
|
|
690
|
-
body: await parseErrorBody(output.body, context),
|
|
691
|
-
};
|
|
692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
|
-
switch (errorCode) {
|
|
694
|
-
case "InvalidInput":
|
|
695
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
696
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
697
|
-
case "OperationNotFound":
|
|
698
|
-
case "com.amazonaws.servicediscovery#OperationNotFound":
|
|
699
|
-
throw await de_OperationNotFoundRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
351
|
export const de_GetServiceCommand = async (output, context) => {
|
|
710
352
|
if (output.statusCode >= 300) {
|
|
711
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
712
354
|
}
|
|
713
355
|
const data = await parseBody(output.body, context);
|
|
714
356
|
let contents = {};
|
|
@@ -719,31 +361,9 @@ export const de_GetServiceCommand = async (output, context) => {
|
|
|
719
361
|
};
|
|
720
362
|
return response;
|
|
721
363
|
};
|
|
722
|
-
const de_GetServiceCommandError = async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context),
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "InvalidInput":
|
|
730
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
731
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
732
|
-
case "ServiceNotFound":
|
|
733
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
734
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
735
|
-
default:
|
|
736
|
-
const parsedBody = parsedOutput.body;
|
|
737
|
-
return throwDefaultError({
|
|
738
|
-
output,
|
|
739
|
-
parsedBody,
|
|
740
|
-
errorCode,
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
364
|
export const de_ListInstancesCommand = async (output, context) => {
|
|
745
365
|
if (output.statusCode >= 300) {
|
|
746
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
747
367
|
}
|
|
748
368
|
const data = await parseBody(output.body, context);
|
|
749
369
|
let contents = {};
|
|
@@ -754,31 +374,9 @@ export const de_ListInstancesCommand = async (output, context) => {
|
|
|
754
374
|
};
|
|
755
375
|
return response;
|
|
756
376
|
};
|
|
757
|
-
const de_ListInstancesCommandError = async (output, context) => {
|
|
758
|
-
const parsedOutput = {
|
|
759
|
-
...output,
|
|
760
|
-
body: await parseErrorBody(output.body, context),
|
|
761
|
-
};
|
|
762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
-
switch (errorCode) {
|
|
764
|
-
case "InvalidInput":
|
|
765
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
766
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
767
|
-
case "ServiceNotFound":
|
|
768
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
769
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
770
|
-
default:
|
|
771
|
-
const parsedBody = parsedOutput.body;
|
|
772
|
-
return throwDefaultError({
|
|
773
|
-
output,
|
|
774
|
-
parsedBody,
|
|
775
|
-
errorCode,
|
|
776
|
-
});
|
|
777
|
-
}
|
|
778
|
-
};
|
|
779
377
|
export const de_ListNamespacesCommand = async (output, context) => {
|
|
780
378
|
if (output.statusCode >= 300) {
|
|
781
|
-
return
|
|
379
|
+
return de_CommandError(output, context);
|
|
782
380
|
}
|
|
783
381
|
const data = await parseBody(output.body, context);
|
|
784
382
|
let contents = {};
|
|
@@ -789,28 +387,9 @@ export const de_ListNamespacesCommand = async (output, context) => {
|
|
|
789
387
|
};
|
|
790
388
|
return response;
|
|
791
389
|
};
|
|
792
|
-
const de_ListNamespacesCommandError = async (output, context) => {
|
|
793
|
-
const parsedOutput = {
|
|
794
|
-
...output,
|
|
795
|
-
body: await parseErrorBody(output.body, context),
|
|
796
|
-
};
|
|
797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
-
switch (errorCode) {
|
|
799
|
-
case "InvalidInput":
|
|
800
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
801
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
802
|
-
default:
|
|
803
|
-
const parsedBody = parsedOutput.body;
|
|
804
|
-
return throwDefaultError({
|
|
805
|
-
output,
|
|
806
|
-
parsedBody,
|
|
807
|
-
errorCode,
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
390
|
export const de_ListOperationsCommand = async (output, context) => {
|
|
812
391
|
if (output.statusCode >= 300) {
|
|
813
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
814
393
|
}
|
|
815
394
|
const data = await parseBody(output.body, context);
|
|
816
395
|
let contents = {};
|
|
@@ -819,30 +398,11 @@ export const de_ListOperationsCommand = async (output, context) => {
|
|
|
819
398
|
$metadata: deserializeMetadata(output),
|
|
820
399
|
...contents,
|
|
821
400
|
};
|
|
822
|
-
return response;
|
|
823
|
-
};
|
|
824
|
-
const de_ListOperationsCommandError = async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context),
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "InvalidInput":
|
|
832
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
833
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
834
|
-
default:
|
|
835
|
-
const parsedBody = parsedOutput.body;
|
|
836
|
-
return throwDefaultError({
|
|
837
|
-
output,
|
|
838
|
-
parsedBody,
|
|
839
|
-
errorCode,
|
|
840
|
-
});
|
|
841
|
-
}
|
|
401
|
+
return response;
|
|
842
402
|
};
|
|
843
403
|
export const de_ListServicesCommand = async (output, context) => {
|
|
844
404
|
if (output.statusCode >= 300) {
|
|
845
|
-
return
|
|
405
|
+
return de_CommandError(output, context);
|
|
846
406
|
}
|
|
847
407
|
const data = await parseBody(output.body, context);
|
|
848
408
|
let contents = {};
|
|
@@ -853,28 +413,9 @@ export const de_ListServicesCommand = async (output, context) => {
|
|
|
853
413
|
};
|
|
854
414
|
return response;
|
|
855
415
|
};
|
|
856
|
-
const de_ListServicesCommandError = async (output, context) => {
|
|
857
|
-
const parsedOutput = {
|
|
858
|
-
...output,
|
|
859
|
-
body: await parseErrorBody(output.body, context),
|
|
860
|
-
};
|
|
861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
-
switch (errorCode) {
|
|
863
|
-
case "InvalidInput":
|
|
864
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
865
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
866
|
-
default:
|
|
867
|
-
const parsedBody = parsedOutput.body;
|
|
868
|
-
return throwDefaultError({
|
|
869
|
-
output,
|
|
870
|
-
parsedBody,
|
|
871
|
-
errorCode,
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
416
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
876
417
|
if (output.statusCode >= 300) {
|
|
877
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
878
419
|
}
|
|
879
420
|
const data = await parseBody(output.body, context);
|
|
880
421
|
let contents = {};
|
|
@@ -885,31 +426,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
885
426
|
};
|
|
886
427
|
return response;
|
|
887
428
|
};
|
|
888
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "InvalidInput":
|
|
896
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
897
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
898
|
-
case "ResourceNotFoundException":
|
|
899
|
-
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
900
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
901
|
-
default:
|
|
902
|
-
const parsedBody = parsedOutput.body;
|
|
903
|
-
return throwDefaultError({
|
|
904
|
-
output,
|
|
905
|
-
parsedBody,
|
|
906
|
-
errorCode,
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
429
|
export const de_RegisterInstanceCommand = async (output, context) => {
|
|
911
430
|
if (output.statusCode >= 300) {
|
|
912
|
-
return
|
|
431
|
+
return de_CommandError(output, context);
|
|
913
432
|
}
|
|
914
433
|
const data = await parseBody(output.body, context);
|
|
915
434
|
let contents = {};
|
|
@@ -920,40 +439,9 @@ export const de_RegisterInstanceCommand = async (output, context) => {
|
|
|
920
439
|
};
|
|
921
440
|
return response;
|
|
922
441
|
};
|
|
923
|
-
const de_RegisterInstanceCommandError = async (output, context) => {
|
|
924
|
-
const parsedOutput = {
|
|
925
|
-
...output,
|
|
926
|
-
body: await parseErrorBody(output.body, context),
|
|
927
|
-
};
|
|
928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
-
switch (errorCode) {
|
|
930
|
-
case "DuplicateRequest":
|
|
931
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
932
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
933
|
-
case "InvalidInput":
|
|
934
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
935
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
936
|
-
case "ResourceInUse":
|
|
937
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
938
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
939
|
-
case "ResourceLimitExceeded":
|
|
940
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
941
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
942
|
-
case "ServiceNotFound":
|
|
943
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
944
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
945
|
-
default:
|
|
946
|
-
const parsedBody = parsedOutput.body;
|
|
947
|
-
return throwDefaultError({
|
|
948
|
-
output,
|
|
949
|
-
parsedBody,
|
|
950
|
-
errorCode,
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
};
|
|
954
442
|
export const de_TagResourceCommand = async (output, context) => {
|
|
955
443
|
if (output.statusCode >= 300) {
|
|
956
|
-
return
|
|
444
|
+
return de_CommandError(output, context);
|
|
957
445
|
}
|
|
958
446
|
const data = await parseBody(output.body, context);
|
|
959
447
|
let contents = {};
|
|
@@ -964,34 +452,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
964
452
|
};
|
|
965
453
|
return response;
|
|
966
454
|
};
|
|
967
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context),
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "InvalidInput":
|
|
975
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
976
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
977
|
-
case "ResourceNotFoundException":
|
|
978
|
-
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
979
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
980
|
-
case "TooManyTagsException":
|
|
981
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
982
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
983
|
-
default:
|
|
984
|
-
const parsedBody = parsedOutput.body;
|
|
985
|
-
return throwDefaultError({
|
|
986
|
-
output,
|
|
987
|
-
parsedBody,
|
|
988
|
-
errorCode,
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
};
|
|
992
455
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
993
456
|
if (output.statusCode >= 300) {
|
|
994
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
995
458
|
}
|
|
996
459
|
const data = await parseBody(output.body, context);
|
|
997
460
|
let contents = {};
|
|
@@ -1002,31 +465,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1002
465
|
};
|
|
1003
466
|
return response;
|
|
1004
467
|
};
|
|
1005
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1006
|
-
const parsedOutput = {
|
|
1007
|
-
...output,
|
|
1008
|
-
body: await parseErrorBody(output.body, context),
|
|
1009
|
-
};
|
|
1010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
|
-
switch (errorCode) {
|
|
1012
|
-
case "InvalidInput":
|
|
1013
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1014
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1015
|
-
case "ResourceNotFoundException":
|
|
1016
|
-
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1017
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1018
|
-
default:
|
|
1019
|
-
const parsedBody = parsedOutput.body;
|
|
1020
|
-
return throwDefaultError({
|
|
1021
|
-
output,
|
|
1022
|
-
parsedBody,
|
|
1023
|
-
errorCode,
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
468
|
export const de_UpdateHttpNamespaceCommand = async (output, context) => {
|
|
1028
469
|
if (output.statusCode >= 300) {
|
|
1029
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
1030
471
|
}
|
|
1031
472
|
const data = await parseBody(output.body, context);
|
|
1032
473
|
let contents = {};
|
|
@@ -1037,37 +478,9 @@ export const de_UpdateHttpNamespaceCommand = async (output, context) => {
|
|
|
1037
478
|
};
|
|
1038
479
|
return response;
|
|
1039
480
|
};
|
|
1040
|
-
const de_UpdateHttpNamespaceCommandError = async (output, context) => {
|
|
1041
|
-
const parsedOutput = {
|
|
1042
|
-
...output,
|
|
1043
|
-
body: await parseErrorBody(output.body, context),
|
|
1044
|
-
};
|
|
1045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
-
switch (errorCode) {
|
|
1047
|
-
case "DuplicateRequest":
|
|
1048
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1049
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1050
|
-
case "InvalidInput":
|
|
1051
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1052
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1053
|
-
case "NamespaceNotFound":
|
|
1054
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1055
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1056
|
-
case "ResourceInUse":
|
|
1057
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1058
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1059
|
-
default:
|
|
1060
|
-
const parsedBody = parsedOutput.body;
|
|
1061
|
-
return throwDefaultError({
|
|
1062
|
-
output,
|
|
1063
|
-
parsedBody,
|
|
1064
|
-
errorCode,
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
};
|
|
1068
481
|
export const de_UpdateInstanceCustomHealthStatusCommand = async (output, context) => {
|
|
1069
482
|
if (output.statusCode >= 300) {
|
|
1070
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
1071
484
|
}
|
|
1072
485
|
await collectBody(output.body, context);
|
|
1073
486
|
const response = {
|
|
@@ -1075,37 +488,9 @@ export const de_UpdateInstanceCustomHealthStatusCommand = async (output, context
|
|
|
1075
488
|
};
|
|
1076
489
|
return response;
|
|
1077
490
|
};
|
|
1078
|
-
const de_UpdateInstanceCustomHealthStatusCommandError = async (output, context) => {
|
|
1079
|
-
const parsedOutput = {
|
|
1080
|
-
...output,
|
|
1081
|
-
body: await parseErrorBody(output.body, context),
|
|
1082
|
-
};
|
|
1083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
-
switch (errorCode) {
|
|
1085
|
-
case "CustomHealthNotFound":
|
|
1086
|
-
case "com.amazonaws.servicediscovery#CustomHealthNotFound":
|
|
1087
|
-
throw await de_CustomHealthNotFoundRes(parsedOutput, context);
|
|
1088
|
-
case "InstanceNotFound":
|
|
1089
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
1090
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
1091
|
-
case "InvalidInput":
|
|
1092
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1093
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1094
|
-
case "ServiceNotFound":
|
|
1095
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1096
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
return throwDefaultError({
|
|
1100
|
-
output,
|
|
1101
|
-
parsedBody,
|
|
1102
|
-
errorCode,
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
};
|
|
1106
491
|
export const de_UpdatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
1107
492
|
if (output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
1109
494
|
}
|
|
1110
495
|
const data = await parseBody(output.body, context);
|
|
1111
496
|
let contents = {};
|
|
@@ -1116,37 +501,9 @@ export const de_UpdatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
|
1116
501
|
};
|
|
1117
502
|
return response;
|
|
1118
503
|
};
|
|
1119
|
-
const de_UpdatePrivateDnsNamespaceCommandError = async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context),
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "DuplicateRequest":
|
|
1127
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1128
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1129
|
-
case "InvalidInput":
|
|
1130
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1131
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1132
|
-
case "NamespaceNotFound":
|
|
1133
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1134
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1135
|
-
case "ResourceInUse":
|
|
1136
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1137
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1138
|
-
default:
|
|
1139
|
-
const parsedBody = parsedOutput.body;
|
|
1140
|
-
return throwDefaultError({
|
|
1141
|
-
output,
|
|
1142
|
-
parsedBody,
|
|
1143
|
-
errorCode,
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
504
|
export const de_UpdatePublicDnsNamespaceCommand = async (output, context) => {
|
|
1148
505
|
if (output.statusCode >= 300) {
|
|
1149
|
-
return
|
|
506
|
+
return de_CommandError(output, context);
|
|
1150
507
|
}
|
|
1151
508
|
const data = await parseBody(output.body, context);
|
|
1152
509
|
let contents = {};
|
|
@@ -1157,37 +514,9 @@ export const de_UpdatePublicDnsNamespaceCommand = async (output, context) => {
|
|
|
1157
514
|
};
|
|
1158
515
|
return response;
|
|
1159
516
|
};
|
|
1160
|
-
const de_UpdatePublicDnsNamespaceCommandError = async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "DuplicateRequest":
|
|
1168
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1169
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1170
|
-
case "InvalidInput":
|
|
1171
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1172
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1173
|
-
case "NamespaceNotFound":
|
|
1174
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1175
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceInUse":
|
|
1177
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1178
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1179
|
-
default:
|
|
1180
|
-
const parsedBody = parsedOutput.body;
|
|
1181
|
-
return throwDefaultError({
|
|
1182
|
-
output,
|
|
1183
|
-
parsedBody,
|
|
1184
|
-
errorCode,
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
517
|
export const de_UpdateServiceCommand = async (output, context) => {
|
|
1189
518
|
if (output.statusCode >= 300) {
|
|
1190
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
1191
520
|
}
|
|
1192
521
|
const data = await parseBody(output.body, context);
|
|
1193
522
|
let contents = {};
|
|
@@ -1198,7 +527,7 @@ export const de_UpdateServiceCommand = async (output, context) => {
|
|
|
1198
527
|
};
|
|
1199
528
|
return response;
|
|
1200
529
|
};
|
|
1201
|
-
const
|
|
530
|
+
const de_CommandError = async (output, context) => {
|
|
1202
531
|
const parsedOutput = {
|
|
1203
532
|
...output,
|
|
1204
533
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1211,9 +540,42 @@ const de_UpdateServiceCommandError = async (output, context) => {
|
|
|
1211
540
|
case "InvalidInput":
|
|
1212
541
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1213
542
|
throw await de_InvalidInputRes(parsedOutput, context);
|
|
543
|
+
case "NamespaceAlreadyExists":
|
|
544
|
+
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
545
|
+
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
546
|
+
case "ResourceLimitExceeded":
|
|
547
|
+
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
548
|
+
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
549
|
+
case "TooManyTagsException":
|
|
550
|
+
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
551
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
552
|
+
case "NamespaceNotFound":
|
|
553
|
+
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
554
|
+
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
555
|
+
case "ServiceAlreadyExists":
|
|
556
|
+
case "com.amazonaws.servicediscovery#ServiceAlreadyExists":
|
|
557
|
+
throw await de_ServiceAlreadyExistsRes(parsedOutput, context);
|
|
558
|
+
case "ResourceInUse":
|
|
559
|
+
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
560
|
+
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1214
561
|
case "ServiceNotFound":
|
|
1215
562
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1216
563
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
564
|
+
case "InstanceNotFound":
|
|
565
|
+
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
566
|
+
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
567
|
+
case "RequestLimitExceeded":
|
|
568
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
569
|
+
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
570
|
+
case "OperationNotFound":
|
|
571
|
+
case "com.amazonaws.servicediscovery#OperationNotFound":
|
|
572
|
+
throw await de_OperationNotFoundRes(parsedOutput, context);
|
|
573
|
+
case "ResourceNotFoundException":
|
|
574
|
+
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
575
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
+
case "CustomHealthNotFound":
|
|
577
|
+
case "com.amazonaws.servicediscovery#CustomHealthNotFound":
|
|
578
|
+
throw await de_CustomHealthNotFoundRes(parsedOutput, context);
|
|
1217
579
|
default:
|
|
1218
580
|
const parsedBody = parsedOutput.body;
|
|
1219
581
|
return throwDefaultError({
|