@aws-sdk/client-resource-groups-tagging-api 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 +19 -206
- package/dist-es/protocols/Aws_json1_1.js +18 -205
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -336,7 +336,7 @@ var se_UntagResourcesCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
336
336
|
}, "se_UntagResourcesCommand");
|
|
337
337
|
var de_DescribeReportCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
338
338
|
if (output.statusCode >= 300) {
|
|
339
|
-
return
|
|
339
|
+
return de_CommandError(output, context);
|
|
340
340
|
}
|
|
341
341
|
const data = await parseBody(output.body, context);
|
|
342
342
|
let contents = {};
|
|
@@ -347,37 +347,9 @@ var de_DescribeReportCreationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
347
347
|
};
|
|
348
348
|
return response;
|
|
349
349
|
}, "de_DescribeReportCreationCommand");
|
|
350
|
-
var de_DescribeReportCreationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
351
|
-
const parsedOutput = {
|
|
352
|
-
...output,
|
|
353
|
-
body: await parseErrorBody(output.body, context)
|
|
354
|
-
};
|
|
355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
|
-
switch (errorCode) {
|
|
357
|
-
case "ConstraintViolationException":
|
|
358
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
359
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
360
|
-
case "InternalServiceException":
|
|
361
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
362
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
363
|
-
case "InvalidParameterException":
|
|
364
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
365
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ThrottledException":
|
|
367
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
368
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
369
|
-
default:
|
|
370
|
-
const parsedBody = parsedOutput.body;
|
|
371
|
-
return throwDefaultError({
|
|
372
|
-
output,
|
|
373
|
-
parsedBody,
|
|
374
|
-
errorCode
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
}, "de_DescribeReportCreationCommandError");
|
|
378
350
|
var de_GetComplianceSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
379
351
|
if (output.statusCode >= 300) {
|
|
380
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
381
353
|
}
|
|
382
354
|
const data = await parseBody(output.body, context);
|
|
383
355
|
let contents = {};
|
|
@@ -388,37 +360,9 @@ var de_GetComplianceSummaryCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
388
360
|
};
|
|
389
361
|
return response;
|
|
390
362
|
}, "de_GetComplianceSummaryCommand");
|
|
391
|
-
var de_GetComplianceSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
392
|
-
const parsedOutput = {
|
|
393
|
-
...output,
|
|
394
|
-
body: await parseErrorBody(output.body, context)
|
|
395
|
-
};
|
|
396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
|
-
switch (errorCode) {
|
|
398
|
-
case "ConstraintViolationException":
|
|
399
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
400
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
401
|
-
case "InternalServiceException":
|
|
402
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
403
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
404
|
-
case "InvalidParameterException":
|
|
405
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
406
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ThrottledException":
|
|
408
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
409
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
410
|
-
default:
|
|
411
|
-
const parsedBody = parsedOutput.body;
|
|
412
|
-
return throwDefaultError({
|
|
413
|
-
output,
|
|
414
|
-
parsedBody,
|
|
415
|
-
errorCode
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}, "de_GetComplianceSummaryCommandError");
|
|
419
363
|
var de_GetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
420
364
|
if (output.statusCode >= 300) {
|
|
421
|
-
return
|
|
365
|
+
return de_CommandError(output, context);
|
|
422
366
|
}
|
|
423
367
|
const data = await parseBody(output.body, context);
|
|
424
368
|
let contents = {};
|
|
@@ -429,37 +373,9 @@ var de_GetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
429
373
|
};
|
|
430
374
|
return response;
|
|
431
375
|
}, "de_GetResourcesCommand");
|
|
432
|
-
var de_GetResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
433
|
-
const parsedOutput = {
|
|
434
|
-
...output,
|
|
435
|
-
body: await parseErrorBody(output.body, context)
|
|
436
|
-
};
|
|
437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
-
switch (errorCode) {
|
|
439
|
-
case "InternalServiceException":
|
|
440
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
441
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
442
|
-
case "InvalidParameterException":
|
|
443
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
444
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
445
|
-
case "PaginationTokenExpiredException":
|
|
446
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
447
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ThrottledException":
|
|
449
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
450
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
451
|
-
default:
|
|
452
|
-
const parsedBody = parsedOutput.body;
|
|
453
|
-
return throwDefaultError({
|
|
454
|
-
output,
|
|
455
|
-
parsedBody,
|
|
456
|
-
errorCode
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
}, "de_GetResourcesCommandError");
|
|
460
376
|
var de_GetTagKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
461
377
|
if (output.statusCode >= 300) {
|
|
462
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
463
379
|
}
|
|
464
380
|
const data = await parseBody(output.body, context);
|
|
465
381
|
let contents = {};
|
|
@@ -470,37 +386,9 @@ var de_GetTagKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
470
386
|
};
|
|
471
387
|
return response;
|
|
472
388
|
}, "de_GetTagKeysCommand");
|
|
473
|
-
var de_GetTagKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
474
|
-
const parsedOutput = {
|
|
475
|
-
...output,
|
|
476
|
-
body: await parseErrorBody(output.body, context)
|
|
477
|
-
};
|
|
478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
|
-
switch (errorCode) {
|
|
480
|
-
case "InternalServiceException":
|
|
481
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
482
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
483
|
-
case "InvalidParameterException":
|
|
484
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
485
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
486
|
-
case "PaginationTokenExpiredException":
|
|
487
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
488
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ThrottledException":
|
|
490
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
491
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
}, "de_GetTagKeysCommandError");
|
|
501
389
|
var de_GetTagValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
502
390
|
if (output.statusCode >= 300) {
|
|
503
|
-
return
|
|
391
|
+
return de_CommandError(output, context);
|
|
504
392
|
}
|
|
505
393
|
const data = await parseBody(output.body, context);
|
|
506
394
|
let contents = {};
|
|
@@ -511,37 +399,9 @@ var de_GetTagValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
511
399
|
};
|
|
512
400
|
return response;
|
|
513
401
|
}, "de_GetTagValuesCommand");
|
|
514
|
-
var de_GetTagValuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
515
|
-
const parsedOutput = {
|
|
516
|
-
...output,
|
|
517
|
-
body: await parseErrorBody(output.body, context)
|
|
518
|
-
};
|
|
519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
-
switch (errorCode) {
|
|
521
|
-
case "InternalServiceException":
|
|
522
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
523
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
524
|
-
case "InvalidParameterException":
|
|
525
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
526
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
527
|
-
case "PaginationTokenExpiredException":
|
|
528
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
529
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ThrottledException":
|
|
531
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
532
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
533
|
-
default:
|
|
534
|
-
const parsedBody = parsedOutput.body;
|
|
535
|
-
return throwDefaultError({
|
|
536
|
-
output,
|
|
537
|
-
parsedBody,
|
|
538
|
-
errorCode
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
}, "de_GetTagValuesCommandError");
|
|
542
402
|
var de_StartReportCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
543
403
|
if (output.statusCode >= 300) {
|
|
544
|
-
return
|
|
404
|
+
return de_CommandError(output, context);
|
|
545
405
|
}
|
|
546
406
|
const data = await parseBody(output.body, context);
|
|
547
407
|
let contents = {};
|
|
@@ -552,40 +412,9 @@ var de_StartReportCreationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
552
412
|
};
|
|
553
413
|
return response;
|
|
554
414
|
}, "de_StartReportCreationCommand");
|
|
555
|
-
var de_StartReportCreationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
556
|
-
const parsedOutput = {
|
|
557
|
-
...output,
|
|
558
|
-
body: await parseErrorBody(output.body, context)
|
|
559
|
-
};
|
|
560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
|
-
switch (errorCode) {
|
|
562
|
-
case "ConcurrentModificationException":
|
|
563
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
564
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
565
|
-
case "ConstraintViolationException":
|
|
566
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
567
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
568
|
-
case "InternalServiceException":
|
|
569
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
570
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
571
|
-
case "InvalidParameterException":
|
|
572
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
573
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ThrottledException":
|
|
575
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
576
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
577
|
-
default:
|
|
578
|
-
const parsedBody = parsedOutput.body;
|
|
579
|
-
return throwDefaultError({
|
|
580
|
-
output,
|
|
581
|
-
parsedBody,
|
|
582
|
-
errorCode
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
}, "de_StartReportCreationCommandError");
|
|
586
415
|
var de_TagResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
587
416
|
if (output.statusCode >= 300) {
|
|
588
|
-
return
|
|
417
|
+
return de_CommandError(output, context);
|
|
589
418
|
}
|
|
590
419
|
const data = await parseBody(output.body, context);
|
|
591
420
|
let contents = {};
|
|
@@ -596,34 +425,9 @@ var de_TagResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
596
425
|
};
|
|
597
426
|
return response;
|
|
598
427
|
}, "de_TagResourcesCommand");
|
|
599
|
-
var de_TagResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
|
-
const parsedOutput = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await parseErrorBody(output.body, context)
|
|
603
|
-
};
|
|
604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
switch (errorCode) {
|
|
606
|
-
case "InternalServiceException":
|
|
607
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
608
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
609
|
-
case "InvalidParameterException":
|
|
610
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
611
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ThrottledException":
|
|
613
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
614
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
615
|
-
default:
|
|
616
|
-
const parsedBody = parsedOutput.body;
|
|
617
|
-
return throwDefaultError({
|
|
618
|
-
output,
|
|
619
|
-
parsedBody,
|
|
620
|
-
errorCode
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
}, "de_TagResourcesCommandError");
|
|
624
428
|
var de_UntagResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
625
429
|
if (output.statusCode >= 300) {
|
|
626
|
-
return
|
|
430
|
+
return de_CommandError(output, context);
|
|
627
431
|
}
|
|
628
432
|
const data = await parseBody(output.body, context);
|
|
629
433
|
let contents = {};
|
|
@@ -634,13 +438,16 @@ var de_UntagResourcesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
634
438
|
};
|
|
635
439
|
return response;
|
|
636
440
|
}, "de_UntagResourcesCommand");
|
|
637
|
-
var
|
|
441
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
638
442
|
const parsedOutput = {
|
|
639
443
|
...output,
|
|
640
444
|
body: await parseErrorBody(output.body, context)
|
|
641
445
|
};
|
|
642
446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
447
|
switch (errorCode) {
|
|
448
|
+
case "ConstraintViolationException":
|
|
449
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
450
|
+
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
644
451
|
case "InternalServiceException":
|
|
645
452
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
646
453
|
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
@@ -650,6 +457,12 @@ var de_UntagResourcesCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
650
457
|
case "ThrottledException":
|
|
651
458
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
652
459
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
460
|
+
case "PaginationTokenExpiredException":
|
|
461
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
462
|
+
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
463
|
+
case "ConcurrentModificationException":
|
|
464
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
465
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
653
466
|
default:
|
|
654
467
|
const parsedBody = parsedOutput.body;
|
|
655
468
|
return throwDefaultError({
|
|
@@ -658,7 +471,7 @@ var de_UntagResourcesCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
658
471
|
errorCode
|
|
659
472
|
});
|
|
660
473
|
}
|
|
661
|
-
}, "
|
|
474
|
+
}, "de_CommandError");
|
|
662
475
|
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
663
476
|
const body = parsedOutput.body;
|
|
664
477
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -52,7 +52,7 @@ export const se_UntagResourcesCommand = async (input, context) => {
|
|
|
52
52
|
};
|
|
53
53
|
export const de_DescribeReportCreationCommand = async (output, context) => {
|
|
54
54
|
if (output.statusCode >= 300) {
|
|
55
|
-
return
|
|
55
|
+
return de_CommandError(output, context);
|
|
56
56
|
}
|
|
57
57
|
const data = await parseBody(output.body, context);
|
|
58
58
|
let contents = {};
|
|
@@ -63,37 +63,9 @@ export const de_DescribeReportCreationCommand = async (output, context) => {
|
|
|
63
63
|
};
|
|
64
64
|
return response;
|
|
65
65
|
};
|
|
66
|
-
const de_DescribeReportCreationCommandError = async (output, context) => {
|
|
67
|
-
const parsedOutput = {
|
|
68
|
-
...output,
|
|
69
|
-
body: await parseErrorBody(output.body, context),
|
|
70
|
-
};
|
|
71
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
72
|
-
switch (errorCode) {
|
|
73
|
-
case "ConstraintViolationException":
|
|
74
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
75
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
76
|
-
case "InternalServiceException":
|
|
77
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
78
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
79
|
-
case "InvalidParameterException":
|
|
80
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
81
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
82
|
-
case "ThrottledException":
|
|
83
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
84
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
85
|
-
default:
|
|
86
|
-
const parsedBody = parsedOutput.body;
|
|
87
|
-
return throwDefaultError({
|
|
88
|
-
output,
|
|
89
|
-
parsedBody,
|
|
90
|
-
errorCode,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
66
|
export const de_GetComplianceSummaryCommand = async (output, context) => {
|
|
95
67
|
if (output.statusCode >= 300) {
|
|
96
|
-
return
|
|
68
|
+
return de_CommandError(output, context);
|
|
97
69
|
}
|
|
98
70
|
const data = await parseBody(output.body, context);
|
|
99
71
|
let contents = {};
|
|
@@ -104,37 +76,9 @@ export const de_GetComplianceSummaryCommand = async (output, context) => {
|
|
|
104
76
|
};
|
|
105
77
|
return response;
|
|
106
78
|
};
|
|
107
|
-
const de_GetComplianceSummaryCommandError = async (output, context) => {
|
|
108
|
-
const parsedOutput = {
|
|
109
|
-
...output,
|
|
110
|
-
body: await parseErrorBody(output.body, context),
|
|
111
|
-
};
|
|
112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
113
|
-
switch (errorCode) {
|
|
114
|
-
case "ConstraintViolationException":
|
|
115
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
116
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
117
|
-
case "InternalServiceException":
|
|
118
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
119
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
120
|
-
case "InvalidParameterException":
|
|
121
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
122
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
123
|
-
case "ThrottledException":
|
|
124
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
125
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
126
|
-
default:
|
|
127
|
-
const parsedBody = parsedOutput.body;
|
|
128
|
-
return throwDefaultError({
|
|
129
|
-
output,
|
|
130
|
-
parsedBody,
|
|
131
|
-
errorCode,
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
79
|
export const de_GetResourcesCommand = async (output, context) => {
|
|
136
80
|
if (output.statusCode >= 300) {
|
|
137
|
-
return
|
|
81
|
+
return de_CommandError(output, context);
|
|
138
82
|
}
|
|
139
83
|
const data = await parseBody(output.body, context);
|
|
140
84
|
let contents = {};
|
|
@@ -145,37 +89,9 @@ export const de_GetResourcesCommand = async (output, context) => {
|
|
|
145
89
|
};
|
|
146
90
|
return response;
|
|
147
91
|
};
|
|
148
|
-
const de_GetResourcesCommandError = async (output, context) => {
|
|
149
|
-
const parsedOutput = {
|
|
150
|
-
...output,
|
|
151
|
-
body: await parseErrorBody(output.body, context),
|
|
152
|
-
};
|
|
153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
154
|
-
switch (errorCode) {
|
|
155
|
-
case "InternalServiceException":
|
|
156
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
157
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
158
|
-
case "InvalidParameterException":
|
|
159
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
160
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
161
|
-
case "PaginationTokenExpiredException":
|
|
162
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
163
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
164
|
-
case "ThrottledException":
|
|
165
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
166
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
167
|
-
default:
|
|
168
|
-
const parsedBody = parsedOutput.body;
|
|
169
|
-
return throwDefaultError({
|
|
170
|
-
output,
|
|
171
|
-
parsedBody,
|
|
172
|
-
errorCode,
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
92
|
export const de_GetTagKeysCommand = async (output, context) => {
|
|
177
93
|
if (output.statusCode >= 300) {
|
|
178
|
-
return
|
|
94
|
+
return de_CommandError(output, context);
|
|
179
95
|
}
|
|
180
96
|
const data = await parseBody(output.body, context);
|
|
181
97
|
let contents = {};
|
|
@@ -186,37 +102,9 @@ export const de_GetTagKeysCommand = async (output, context) => {
|
|
|
186
102
|
};
|
|
187
103
|
return response;
|
|
188
104
|
};
|
|
189
|
-
const de_GetTagKeysCommandError = async (output, context) => {
|
|
190
|
-
const parsedOutput = {
|
|
191
|
-
...output,
|
|
192
|
-
body: await parseErrorBody(output.body, context),
|
|
193
|
-
};
|
|
194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
195
|
-
switch (errorCode) {
|
|
196
|
-
case "InternalServiceException":
|
|
197
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
198
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
199
|
-
case "InvalidParameterException":
|
|
200
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
201
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
202
|
-
case "PaginationTokenExpiredException":
|
|
203
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
204
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
205
|
-
case "ThrottledException":
|
|
206
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
207
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
208
|
-
default:
|
|
209
|
-
const parsedBody = parsedOutput.body;
|
|
210
|
-
return throwDefaultError({
|
|
211
|
-
output,
|
|
212
|
-
parsedBody,
|
|
213
|
-
errorCode,
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
105
|
export const de_GetTagValuesCommand = async (output, context) => {
|
|
218
106
|
if (output.statusCode >= 300) {
|
|
219
|
-
return
|
|
107
|
+
return de_CommandError(output, context);
|
|
220
108
|
}
|
|
221
109
|
const data = await parseBody(output.body, context);
|
|
222
110
|
let contents = {};
|
|
@@ -227,37 +115,9 @@ export const de_GetTagValuesCommand = async (output, context) => {
|
|
|
227
115
|
};
|
|
228
116
|
return response;
|
|
229
117
|
};
|
|
230
|
-
const de_GetTagValuesCommandError = async (output, context) => {
|
|
231
|
-
const parsedOutput = {
|
|
232
|
-
...output,
|
|
233
|
-
body: await parseErrorBody(output.body, context),
|
|
234
|
-
};
|
|
235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
236
|
-
switch (errorCode) {
|
|
237
|
-
case "InternalServiceException":
|
|
238
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
239
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
240
|
-
case "InvalidParameterException":
|
|
241
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
242
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
243
|
-
case "PaginationTokenExpiredException":
|
|
244
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
245
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
246
|
-
case "ThrottledException":
|
|
247
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
248
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
249
|
-
default:
|
|
250
|
-
const parsedBody = parsedOutput.body;
|
|
251
|
-
return throwDefaultError({
|
|
252
|
-
output,
|
|
253
|
-
parsedBody,
|
|
254
|
-
errorCode,
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
118
|
export const de_StartReportCreationCommand = async (output, context) => {
|
|
259
119
|
if (output.statusCode >= 300) {
|
|
260
|
-
return
|
|
120
|
+
return de_CommandError(output, context);
|
|
261
121
|
}
|
|
262
122
|
const data = await parseBody(output.body, context);
|
|
263
123
|
let contents = {};
|
|
@@ -268,40 +128,9 @@ export const de_StartReportCreationCommand = async (output, context) => {
|
|
|
268
128
|
};
|
|
269
129
|
return response;
|
|
270
130
|
};
|
|
271
|
-
const de_StartReportCreationCommandError = async (output, context) => {
|
|
272
|
-
const parsedOutput = {
|
|
273
|
-
...output,
|
|
274
|
-
body: await parseErrorBody(output.body, context),
|
|
275
|
-
};
|
|
276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
|
-
switch (errorCode) {
|
|
278
|
-
case "ConcurrentModificationException":
|
|
279
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
280
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
281
|
-
case "ConstraintViolationException":
|
|
282
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
283
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
284
|
-
case "InternalServiceException":
|
|
285
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
286
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
287
|
-
case "InvalidParameterException":
|
|
288
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
289
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
290
|
-
case "ThrottledException":
|
|
291
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
292
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
293
|
-
default:
|
|
294
|
-
const parsedBody = parsedOutput.body;
|
|
295
|
-
return throwDefaultError({
|
|
296
|
-
output,
|
|
297
|
-
parsedBody,
|
|
298
|
-
errorCode,
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
131
|
export const de_TagResourcesCommand = async (output, context) => {
|
|
303
132
|
if (output.statusCode >= 300) {
|
|
304
|
-
return
|
|
133
|
+
return de_CommandError(output, context);
|
|
305
134
|
}
|
|
306
135
|
const data = await parseBody(output.body, context);
|
|
307
136
|
let contents = {};
|
|
@@ -312,34 +141,9 @@ export const de_TagResourcesCommand = async (output, context) => {
|
|
|
312
141
|
};
|
|
313
142
|
return response;
|
|
314
143
|
};
|
|
315
|
-
const de_TagResourcesCommandError = async (output, context) => {
|
|
316
|
-
const parsedOutput = {
|
|
317
|
-
...output,
|
|
318
|
-
body: await parseErrorBody(output.body, context),
|
|
319
|
-
};
|
|
320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
321
|
-
switch (errorCode) {
|
|
322
|
-
case "InternalServiceException":
|
|
323
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
324
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
325
|
-
case "InvalidParameterException":
|
|
326
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
327
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
328
|
-
case "ThrottledException":
|
|
329
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
330
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
331
|
-
default:
|
|
332
|
-
const parsedBody = parsedOutput.body;
|
|
333
|
-
return throwDefaultError({
|
|
334
|
-
output,
|
|
335
|
-
parsedBody,
|
|
336
|
-
errorCode,
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
144
|
export const de_UntagResourcesCommand = async (output, context) => {
|
|
341
145
|
if (output.statusCode >= 300) {
|
|
342
|
-
return
|
|
146
|
+
return de_CommandError(output, context);
|
|
343
147
|
}
|
|
344
148
|
const data = await parseBody(output.body, context);
|
|
345
149
|
let contents = {};
|
|
@@ -350,13 +154,16 @@ export const de_UntagResourcesCommand = async (output, context) => {
|
|
|
350
154
|
};
|
|
351
155
|
return response;
|
|
352
156
|
};
|
|
353
|
-
const
|
|
157
|
+
const de_CommandError = async (output, context) => {
|
|
354
158
|
const parsedOutput = {
|
|
355
159
|
...output,
|
|
356
160
|
body: await parseErrorBody(output.body, context),
|
|
357
161
|
};
|
|
358
162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
163
|
switch (errorCode) {
|
|
164
|
+
case "ConstraintViolationException":
|
|
165
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
166
|
+
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
360
167
|
case "InternalServiceException":
|
|
361
168
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
362
169
|
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
@@ -366,6 +173,12 @@ const de_UntagResourcesCommandError = async (output, context) => {
|
|
|
366
173
|
case "ThrottledException":
|
|
367
174
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
368
175
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
176
|
+
case "PaginationTokenExpiredException":
|
|
177
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
178
|
+
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
179
|
+
case "ConcurrentModificationException":
|
|
180
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
181
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
369
182
|
default:
|
|
370
183
|
const parsedBody = parsedOutput.body;
|
|
371
184
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-resource-groups-tagging-api",
|
|
3
3
|
"description": "AWS SDK for JavaScript Resource Groups Tagging Api 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-resource-groups-tagging-api",
|
|
@@ -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",
|