@aws-sdk/client-resource-groups 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +182 -315
- package/dist-es/protocols/Aws_restJson1.js +234 -316
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { BadRequestException, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
5
5
|
import { ResourceGroupsServiceException as __BaseException } from "../models/ResourceGroupsServiceException";
|
|
6
6
|
export var serializeAws_restJson1CreateGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -128,7 +128,7 @@ export var serializeAws_restJson1GetGroupQueryCommand = function (input, context
|
|
|
128
128
|
});
|
|
129
129
|
}); };
|
|
130
130
|
export var serializeAws_restJson1GetTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
131
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
131
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
132
132
|
return __generator(this, function (_c) {
|
|
133
133
|
switch (_c.label) {
|
|
134
134
|
case 0: return [4, context.endpoint()];
|
|
@@ -136,16 +136,7 @@ export var serializeAws_restJson1GetTagsCommand = function (input, context) { re
|
|
|
136
136
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
137
137
|
headers = {};
|
|
138
138
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
|
|
139
|
-
|
|
140
|
-
labelValue = input.Arn;
|
|
141
|
-
if (labelValue.length <= 0) {
|
|
142
|
-
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
143
|
-
}
|
|
144
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
148
|
-
}
|
|
139
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
149
140
|
return [2, new __HttpRequest({
|
|
150
141
|
protocol: protocol,
|
|
151
142
|
hostname: hostname,
|
|
@@ -219,7 +210,10 @@ export var serializeAws_restJson1ListGroupsCommand = function (input, context) {
|
|
|
219
210
|
"content-type": "application/json",
|
|
220
211
|
};
|
|
221
212
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/groups-list";
|
|
222
|
-
query =
|
|
213
|
+
query = map({
|
|
214
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
215
|
+
nextToken: [, input.NextToken],
|
|
216
|
+
});
|
|
223
217
|
body = JSON.stringify(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1GroupFilterList(input.Filters, context) })));
|
|
224
218
|
return [2, new __HttpRequest({
|
|
225
219
|
protocol: protocol,
|
|
@@ -287,7 +281,7 @@ export var serializeAws_restJson1SearchResourcesCommand = function (input, conte
|
|
|
287
281
|
});
|
|
288
282
|
}); };
|
|
289
283
|
export var serializeAws_restJson1TagCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
290
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
284
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
291
285
|
return __generator(this, function (_c) {
|
|
292
286
|
switch (_c.label) {
|
|
293
287
|
case 0: return [4, context.endpoint()];
|
|
@@ -297,16 +291,7 @@ export var serializeAws_restJson1TagCommand = function (input, context) { return
|
|
|
297
291
|
"content-type": "application/json",
|
|
298
292
|
};
|
|
299
293
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
|
|
300
|
-
|
|
301
|
-
labelValue = input.Arn;
|
|
302
|
-
if (labelValue.length <= 0) {
|
|
303
|
-
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
304
|
-
}
|
|
305
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
308
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
309
|
-
}
|
|
294
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
310
295
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
311
296
|
return [2, new __HttpRequest({
|
|
312
297
|
protocol: protocol,
|
|
@@ -347,7 +332,7 @@ export var serializeAws_restJson1UngroupResourcesCommand = function (input, cont
|
|
|
347
332
|
});
|
|
348
333
|
}); };
|
|
349
334
|
export var serializeAws_restJson1UntagCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
350
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
335
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
351
336
|
return __generator(this, function (_c) {
|
|
352
337
|
switch (_c.label) {
|
|
353
338
|
case 0: return [4, context.endpoint()];
|
|
@@ -357,16 +342,7 @@ export var serializeAws_restJson1UntagCommand = function (input, context) { retu
|
|
|
357
342
|
"content-type": "application/json",
|
|
358
343
|
};
|
|
359
344
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
|
|
360
|
-
|
|
361
|
-
labelValue = input.Arn;
|
|
362
|
-
if (labelValue.length <= 0) {
|
|
363
|
-
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
364
|
-
}
|
|
365
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
369
|
-
}
|
|
345
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
370
346
|
body = JSON.stringify(__assign({}, (input.Keys != null && { Keys: serializeAws_restJson1TagKeyList(input.Keys, context) })));
|
|
371
347
|
return [2, new __HttpRequest({
|
|
372
348
|
protocol: protocol,
|
|
@@ -438,36 +414,32 @@ export var deserializeAws_restJson1CreateGroupCommand = function (output, contex
|
|
|
438
414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
439
415
|
return [2, deserializeAws_restJson1CreateGroupCommandError(output, context)];
|
|
440
416
|
}
|
|
441
|
-
contents = {
|
|
417
|
+
contents = map({
|
|
442
418
|
$metadata: deserializeMetadata(output),
|
|
443
|
-
|
|
444
|
-
GroupConfiguration: undefined,
|
|
445
|
-
ResourceQuery: undefined,
|
|
446
|
-
Tags: undefined,
|
|
447
|
-
};
|
|
419
|
+
});
|
|
448
420
|
_a = __expectNonNull;
|
|
449
421
|
_b = __expectObject;
|
|
450
422
|
return [4, parseBody(output.body, context)];
|
|
451
423
|
case 1:
|
|
452
424
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
453
|
-
if (data.Group
|
|
425
|
+
if (data.Group != null) {
|
|
454
426
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
455
427
|
}
|
|
456
|
-
if (data.GroupConfiguration
|
|
428
|
+
if (data.GroupConfiguration != null) {
|
|
457
429
|
contents.GroupConfiguration = deserializeAws_restJson1GroupConfiguration(data.GroupConfiguration, context);
|
|
458
430
|
}
|
|
459
|
-
if (data.ResourceQuery
|
|
431
|
+
if (data.ResourceQuery != null) {
|
|
460
432
|
contents.ResourceQuery = deserializeAws_restJson1ResourceQuery(data.ResourceQuery, context);
|
|
461
433
|
}
|
|
462
|
-
if (data.Tags
|
|
434
|
+
if (data.Tags != null) {
|
|
463
435
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
464
436
|
}
|
|
465
|
-
return [2,
|
|
437
|
+
return [2, contents];
|
|
466
438
|
}
|
|
467
439
|
});
|
|
468
440
|
}); };
|
|
469
441
|
var deserializeAws_restJson1CreateGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
470
|
-
var parsedOutput, _a,
|
|
442
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
471
443
|
var _c;
|
|
472
444
|
return __generator(this, function (_d) {
|
|
473
445
|
switch (_d.label) {
|
|
@@ -504,14 +476,14 @@ var deserializeAws_restJson1CreateGroupCommandError = function (output, context)
|
|
|
504
476
|
case 11: throw _d.sent();
|
|
505
477
|
case 12:
|
|
506
478
|
parsedBody = parsedOutput.body;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
$metadata: $metadata,
|
|
479
|
+
throwDefaultError({
|
|
480
|
+
output: output,
|
|
481
|
+
parsedBody: parsedBody,
|
|
482
|
+
exceptionCtor: __BaseException,
|
|
483
|
+
errorCode: errorCode,
|
|
513
484
|
});
|
|
514
|
-
|
|
485
|
+
_d.label = 13;
|
|
486
|
+
case 13: return [2];
|
|
515
487
|
}
|
|
516
488
|
});
|
|
517
489
|
}); };
|
|
@@ -523,24 +495,23 @@ export var deserializeAws_restJson1DeleteGroupCommand = function (output, contex
|
|
|
523
495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
496
|
return [2, deserializeAws_restJson1DeleteGroupCommandError(output, context)];
|
|
525
497
|
}
|
|
526
|
-
contents = {
|
|
498
|
+
contents = map({
|
|
527
499
|
$metadata: deserializeMetadata(output),
|
|
528
|
-
|
|
529
|
-
};
|
|
500
|
+
});
|
|
530
501
|
_a = __expectNonNull;
|
|
531
502
|
_b = __expectObject;
|
|
532
503
|
return [4, parseBody(output.body, context)];
|
|
533
504
|
case 1:
|
|
534
505
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
535
|
-
if (data.Group
|
|
506
|
+
if (data.Group != null) {
|
|
536
507
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
537
508
|
}
|
|
538
|
-
return [2,
|
|
509
|
+
return [2, contents];
|
|
539
510
|
}
|
|
540
511
|
});
|
|
541
512
|
}); };
|
|
542
513
|
var deserializeAws_restJson1DeleteGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
543
|
-
var parsedOutput, _a,
|
|
514
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
544
515
|
var _c;
|
|
545
516
|
return __generator(this, function (_d) {
|
|
546
517
|
switch (_d.label) {
|
|
@@ -581,14 +552,14 @@ var deserializeAws_restJson1DeleteGroupCommandError = function (output, context)
|
|
|
581
552
|
case 13: throw _d.sent();
|
|
582
553
|
case 14:
|
|
583
554
|
parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
$metadata: $metadata,
|
|
555
|
+
throwDefaultError({
|
|
556
|
+
output: output,
|
|
557
|
+
parsedBody: parsedBody,
|
|
558
|
+
exceptionCtor: __BaseException,
|
|
559
|
+
errorCode: errorCode,
|
|
590
560
|
});
|
|
591
|
-
|
|
561
|
+
_d.label = 15;
|
|
562
|
+
case 15: return [2];
|
|
592
563
|
}
|
|
593
564
|
});
|
|
594
565
|
}); };
|
|
@@ -600,24 +571,23 @@ export var deserializeAws_restJson1GetGroupCommand = function (output, context)
|
|
|
600
571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
572
|
return [2, deserializeAws_restJson1GetGroupCommandError(output, context)];
|
|
602
573
|
}
|
|
603
|
-
contents = {
|
|
574
|
+
contents = map({
|
|
604
575
|
$metadata: deserializeMetadata(output),
|
|
605
|
-
|
|
606
|
-
};
|
|
576
|
+
});
|
|
607
577
|
_a = __expectNonNull;
|
|
608
578
|
_b = __expectObject;
|
|
609
579
|
return [4, parseBody(output.body, context)];
|
|
610
580
|
case 1:
|
|
611
581
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
612
|
-
if (data.Group
|
|
582
|
+
if (data.Group != null) {
|
|
613
583
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
614
584
|
}
|
|
615
|
-
return [2,
|
|
585
|
+
return [2, contents];
|
|
616
586
|
}
|
|
617
587
|
});
|
|
618
588
|
}); };
|
|
619
589
|
var deserializeAws_restJson1GetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
620
|
-
var parsedOutput, _a,
|
|
590
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
621
591
|
var _c;
|
|
622
592
|
return __generator(this, function (_d) {
|
|
623
593
|
switch (_d.label) {
|
|
@@ -658,14 +628,14 @@ var deserializeAws_restJson1GetGroupCommandError = function (output, context) {
|
|
|
658
628
|
case 13: throw _d.sent();
|
|
659
629
|
case 14:
|
|
660
630
|
parsedBody = parsedOutput.body;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
$metadata: $metadata,
|
|
631
|
+
throwDefaultError({
|
|
632
|
+
output: output,
|
|
633
|
+
parsedBody: parsedBody,
|
|
634
|
+
exceptionCtor: __BaseException,
|
|
635
|
+
errorCode: errorCode,
|
|
667
636
|
});
|
|
668
|
-
|
|
637
|
+
_d.label = 15;
|
|
638
|
+
case 15: return [2];
|
|
669
639
|
}
|
|
670
640
|
});
|
|
671
641
|
}); };
|
|
@@ -677,24 +647,23 @@ export var deserializeAws_restJson1GetGroupConfigurationCommand = function (outp
|
|
|
677
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
648
|
return [2, deserializeAws_restJson1GetGroupConfigurationCommandError(output, context)];
|
|
679
649
|
}
|
|
680
|
-
contents = {
|
|
650
|
+
contents = map({
|
|
681
651
|
$metadata: deserializeMetadata(output),
|
|
682
|
-
|
|
683
|
-
};
|
|
652
|
+
});
|
|
684
653
|
_a = __expectNonNull;
|
|
685
654
|
_b = __expectObject;
|
|
686
655
|
return [4, parseBody(output.body, context)];
|
|
687
656
|
case 1:
|
|
688
657
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
689
|
-
if (data.GroupConfiguration
|
|
658
|
+
if (data.GroupConfiguration != null) {
|
|
690
659
|
contents.GroupConfiguration = deserializeAws_restJson1GroupConfiguration(data.GroupConfiguration, context);
|
|
691
660
|
}
|
|
692
|
-
return [2,
|
|
661
|
+
return [2, contents];
|
|
693
662
|
}
|
|
694
663
|
});
|
|
695
664
|
}); };
|
|
696
665
|
var deserializeAws_restJson1GetGroupConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
697
|
-
var parsedOutput, _a,
|
|
666
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
698
667
|
var _c;
|
|
699
668
|
return __generator(this, function (_d) {
|
|
700
669
|
switch (_d.label) {
|
|
@@ -735,14 +704,14 @@ var deserializeAws_restJson1GetGroupConfigurationCommandError = function (output
|
|
|
735
704
|
case 13: throw _d.sent();
|
|
736
705
|
case 14:
|
|
737
706
|
parsedBody = parsedOutput.body;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
$metadata: $metadata,
|
|
707
|
+
throwDefaultError({
|
|
708
|
+
output: output,
|
|
709
|
+
parsedBody: parsedBody,
|
|
710
|
+
exceptionCtor: __BaseException,
|
|
711
|
+
errorCode: errorCode,
|
|
744
712
|
});
|
|
745
|
-
|
|
713
|
+
_d.label = 15;
|
|
714
|
+
case 15: return [2];
|
|
746
715
|
}
|
|
747
716
|
});
|
|
748
717
|
}); };
|
|
@@ -754,24 +723,23 @@ export var deserializeAws_restJson1GetGroupQueryCommand = function (output, cont
|
|
|
754
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
724
|
return [2, deserializeAws_restJson1GetGroupQueryCommandError(output, context)];
|
|
756
725
|
}
|
|
757
|
-
contents = {
|
|
726
|
+
contents = map({
|
|
758
727
|
$metadata: deserializeMetadata(output),
|
|
759
|
-
|
|
760
|
-
};
|
|
728
|
+
});
|
|
761
729
|
_a = __expectNonNull;
|
|
762
730
|
_b = __expectObject;
|
|
763
731
|
return [4, parseBody(output.body, context)];
|
|
764
732
|
case 1:
|
|
765
733
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
766
|
-
if (data.GroupQuery
|
|
734
|
+
if (data.GroupQuery != null) {
|
|
767
735
|
contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
|
|
768
736
|
}
|
|
769
|
-
return [2,
|
|
737
|
+
return [2, contents];
|
|
770
738
|
}
|
|
771
739
|
});
|
|
772
740
|
}); };
|
|
773
741
|
var deserializeAws_restJson1GetGroupQueryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
774
|
-
var parsedOutput, _a,
|
|
742
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
775
743
|
var _c;
|
|
776
744
|
return __generator(this, function (_d) {
|
|
777
745
|
switch (_d.label) {
|
|
@@ -812,14 +780,14 @@ var deserializeAws_restJson1GetGroupQueryCommandError = function (output, contex
|
|
|
812
780
|
case 13: throw _d.sent();
|
|
813
781
|
case 14:
|
|
814
782
|
parsedBody = parsedOutput.body;
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
$metadata: $metadata,
|
|
783
|
+
throwDefaultError({
|
|
784
|
+
output: output,
|
|
785
|
+
parsedBody: parsedBody,
|
|
786
|
+
exceptionCtor: __BaseException,
|
|
787
|
+
errorCode: errorCode,
|
|
821
788
|
});
|
|
822
|
-
|
|
789
|
+
_d.label = 15;
|
|
790
|
+
case 15: return [2];
|
|
823
791
|
}
|
|
824
792
|
});
|
|
825
793
|
}); };
|
|
@@ -831,28 +799,26 @@ export var deserializeAws_restJson1GetTagsCommand = function (output, context) {
|
|
|
831
799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
800
|
return [2, deserializeAws_restJson1GetTagsCommandError(output, context)];
|
|
833
801
|
}
|
|
834
|
-
contents = {
|
|
802
|
+
contents = map({
|
|
835
803
|
$metadata: deserializeMetadata(output),
|
|
836
|
-
|
|
837
|
-
Tags: undefined,
|
|
838
|
-
};
|
|
804
|
+
});
|
|
839
805
|
_a = __expectNonNull;
|
|
840
806
|
_b = __expectObject;
|
|
841
807
|
return [4, parseBody(output.body, context)];
|
|
842
808
|
case 1:
|
|
843
809
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
844
|
-
if (data.Arn
|
|
810
|
+
if (data.Arn != null) {
|
|
845
811
|
contents.Arn = __expectString(data.Arn);
|
|
846
812
|
}
|
|
847
|
-
if (data.Tags
|
|
813
|
+
if (data.Tags != null) {
|
|
848
814
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
849
815
|
}
|
|
850
|
-
return [2,
|
|
816
|
+
return [2, contents];
|
|
851
817
|
}
|
|
852
818
|
});
|
|
853
819
|
}); };
|
|
854
820
|
var deserializeAws_restJson1GetTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
855
|
-
var parsedOutput, _a,
|
|
821
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
856
822
|
var _c;
|
|
857
823
|
return __generator(this, function (_d) {
|
|
858
824
|
switch (_d.label) {
|
|
@@ -893,14 +859,14 @@ var deserializeAws_restJson1GetTagsCommandError = function (output, context) { r
|
|
|
893
859
|
case 13: throw _d.sent();
|
|
894
860
|
case 14:
|
|
895
861
|
parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
$metadata: $metadata,
|
|
862
|
+
throwDefaultError({
|
|
863
|
+
output: output,
|
|
864
|
+
parsedBody: parsedBody,
|
|
865
|
+
exceptionCtor: __BaseException,
|
|
866
|
+
errorCode: errorCode,
|
|
902
867
|
});
|
|
903
|
-
|
|
868
|
+
_d.label = 15;
|
|
869
|
+
case 15: return [2];
|
|
904
870
|
}
|
|
905
871
|
});
|
|
906
872
|
}); };
|
|
@@ -912,32 +878,29 @@ export var deserializeAws_restJson1GroupResourcesCommand = function (output, con
|
|
|
912
878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
879
|
return [2, deserializeAws_restJson1GroupResourcesCommandError(output, context)];
|
|
914
880
|
}
|
|
915
|
-
contents = {
|
|
881
|
+
contents = map({
|
|
916
882
|
$metadata: deserializeMetadata(output),
|
|
917
|
-
|
|
918
|
-
Pending: undefined,
|
|
919
|
-
Succeeded: undefined,
|
|
920
|
-
};
|
|
883
|
+
});
|
|
921
884
|
_a = __expectNonNull;
|
|
922
885
|
_b = __expectObject;
|
|
923
886
|
return [4, parseBody(output.body, context)];
|
|
924
887
|
case 1:
|
|
925
888
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
926
|
-
if (data.Failed
|
|
889
|
+
if (data.Failed != null) {
|
|
927
890
|
contents.Failed = deserializeAws_restJson1FailedResourceList(data.Failed, context);
|
|
928
891
|
}
|
|
929
|
-
if (data.Pending
|
|
892
|
+
if (data.Pending != null) {
|
|
930
893
|
contents.Pending = deserializeAws_restJson1PendingResourceList(data.Pending, context);
|
|
931
894
|
}
|
|
932
|
-
if (data.Succeeded
|
|
895
|
+
if (data.Succeeded != null) {
|
|
933
896
|
contents.Succeeded = deserializeAws_restJson1ResourceArnList(data.Succeeded, context);
|
|
934
897
|
}
|
|
935
|
-
return [2,
|
|
898
|
+
return [2, contents];
|
|
936
899
|
}
|
|
937
900
|
});
|
|
938
901
|
}); };
|
|
939
902
|
var deserializeAws_restJson1GroupResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
940
|
-
var parsedOutput, _a,
|
|
903
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
941
904
|
var _c;
|
|
942
905
|
return __generator(this, function (_d) {
|
|
943
906
|
switch (_d.label) {
|
|
@@ -978,14 +941,14 @@ var deserializeAws_restJson1GroupResourcesCommandError = function (output, conte
|
|
|
978
941
|
case 13: throw _d.sent();
|
|
979
942
|
case 14:
|
|
980
943
|
parsedBody = parsedOutput.body;
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
$metadata: $metadata,
|
|
944
|
+
throwDefaultError({
|
|
945
|
+
output: output,
|
|
946
|
+
parsedBody: parsedBody,
|
|
947
|
+
exceptionCtor: __BaseException,
|
|
948
|
+
errorCode: errorCode,
|
|
987
949
|
});
|
|
988
|
-
|
|
950
|
+
_d.label = 15;
|
|
951
|
+
case 15: return [2];
|
|
989
952
|
}
|
|
990
953
|
});
|
|
991
954
|
}); };
|
|
@@ -997,36 +960,32 @@ export var deserializeAws_restJson1ListGroupResourcesCommand = function (output,
|
|
|
997
960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
998
961
|
return [2, deserializeAws_restJson1ListGroupResourcesCommandError(output, context)];
|
|
999
962
|
}
|
|
1000
|
-
contents = {
|
|
963
|
+
contents = map({
|
|
1001
964
|
$metadata: deserializeMetadata(output),
|
|
1002
|
-
|
|
1003
|
-
QueryErrors: undefined,
|
|
1004
|
-
ResourceIdentifiers: undefined,
|
|
1005
|
-
Resources: undefined,
|
|
1006
|
-
};
|
|
965
|
+
});
|
|
1007
966
|
_a = __expectNonNull;
|
|
1008
967
|
_b = __expectObject;
|
|
1009
968
|
return [4, parseBody(output.body, context)];
|
|
1010
969
|
case 1:
|
|
1011
970
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1012
|
-
if (data.NextToken
|
|
971
|
+
if (data.NextToken != null) {
|
|
1013
972
|
contents.NextToken = __expectString(data.NextToken);
|
|
1014
973
|
}
|
|
1015
|
-
if (data.QueryErrors
|
|
974
|
+
if (data.QueryErrors != null) {
|
|
1016
975
|
contents.QueryErrors = deserializeAws_restJson1QueryErrorList(data.QueryErrors, context);
|
|
1017
976
|
}
|
|
1018
|
-
if (data.ResourceIdentifiers
|
|
977
|
+
if (data.ResourceIdentifiers != null) {
|
|
1019
978
|
contents.ResourceIdentifiers = deserializeAws_restJson1ResourceIdentifierList(data.ResourceIdentifiers, context);
|
|
1020
979
|
}
|
|
1021
|
-
if (data.Resources
|
|
980
|
+
if (data.Resources != null) {
|
|
1022
981
|
contents.Resources = deserializeAws_restJson1ListGroupResourcesItemList(data.Resources, context);
|
|
1023
982
|
}
|
|
1024
|
-
return [2,
|
|
983
|
+
return [2, contents];
|
|
1025
984
|
}
|
|
1026
985
|
});
|
|
1027
986
|
}); };
|
|
1028
987
|
var deserializeAws_restJson1ListGroupResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1029
|
-
var parsedOutput, _a,
|
|
988
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1030
989
|
var _c;
|
|
1031
990
|
return __generator(this, function (_d) {
|
|
1032
991
|
switch (_d.label) {
|
|
@@ -1071,14 +1030,14 @@ var deserializeAws_restJson1ListGroupResourcesCommandError = function (output, c
|
|
|
1071
1030
|
case 15: throw _d.sent();
|
|
1072
1031
|
case 16:
|
|
1073
1032
|
parsedBody = parsedOutput.body;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
$metadata: $metadata,
|
|
1033
|
+
throwDefaultError({
|
|
1034
|
+
output: output,
|
|
1035
|
+
parsedBody: parsedBody,
|
|
1036
|
+
exceptionCtor: __BaseException,
|
|
1037
|
+
errorCode: errorCode,
|
|
1080
1038
|
});
|
|
1081
|
-
|
|
1039
|
+
_d.label = 17;
|
|
1040
|
+
case 17: return [2];
|
|
1082
1041
|
}
|
|
1083
1042
|
});
|
|
1084
1043
|
}); };
|
|
@@ -1090,32 +1049,29 @@ export var deserializeAws_restJson1ListGroupsCommand = function (output, context
|
|
|
1090
1049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
1050
|
return [2, deserializeAws_restJson1ListGroupsCommandError(output, context)];
|
|
1092
1051
|
}
|
|
1093
|
-
contents = {
|
|
1052
|
+
contents = map({
|
|
1094
1053
|
$metadata: deserializeMetadata(output),
|
|
1095
|
-
|
|
1096
|
-
Groups: undefined,
|
|
1097
|
-
NextToken: undefined,
|
|
1098
|
-
};
|
|
1054
|
+
});
|
|
1099
1055
|
_a = __expectNonNull;
|
|
1100
1056
|
_b = __expectObject;
|
|
1101
1057
|
return [4, parseBody(output.body, context)];
|
|
1102
1058
|
case 1:
|
|
1103
1059
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1104
|
-
if (data.GroupIdentifiers
|
|
1060
|
+
if (data.GroupIdentifiers != null) {
|
|
1105
1061
|
contents.GroupIdentifiers = deserializeAws_restJson1GroupIdentifierList(data.GroupIdentifiers, context);
|
|
1106
1062
|
}
|
|
1107
|
-
if (data.Groups
|
|
1063
|
+
if (data.Groups != null) {
|
|
1108
1064
|
contents.Groups = deserializeAws_restJson1GroupList(data.Groups, context);
|
|
1109
1065
|
}
|
|
1110
|
-
if (data.NextToken
|
|
1066
|
+
if (data.NextToken != null) {
|
|
1111
1067
|
contents.NextToken = __expectString(data.NextToken);
|
|
1112
1068
|
}
|
|
1113
|
-
return [2,
|
|
1069
|
+
return [2, contents];
|
|
1114
1070
|
}
|
|
1115
1071
|
});
|
|
1116
1072
|
}); };
|
|
1117
1073
|
var deserializeAws_restJson1ListGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1118
|
-
var parsedOutput, _a,
|
|
1074
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1119
1075
|
var _c;
|
|
1120
1076
|
return __generator(this, function (_d) {
|
|
1121
1077
|
switch (_d.label) {
|
|
@@ -1152,14 +1108,14 @@ var deserializeAws_restJson1ListGroupsCommandError = function (output, context)
|
|
|
1152
1108
|
case 11: throw _d.sent();
|
|
1153
1109
|
case 12:
|
|
1154
1110
|
parsedBody = parsedOutput.body;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
$metadata: $metadata,
|
|
1111
|
+
throwDefaultError({
|
|
1112
|
+
output: output,
|
|
1113
|
+
parsedBody: parsedBody,
|
|
1114
|
+
exceptionCtor: __BaseException,
|
|
1115
|
+
errorCode: errorCode,
|
|
1161
1116
|
});
|
|
1162
|
-
|
|
1117
|
+
_d.label = 13;
|
|
1118
|
+
case 13: return [2];
|
|
1163
1119
|
}
|
|
1164
1120
|
});
|
|
1165
1121
|
}); };
|
|
@@ -1171,18 +1127,18 @@ export var deserializeAws_restJson1PutGroupConfigurationCommand = function (outp
|
|
|
1171
1127
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1172
1128
|
return [2, deserializeAws_restJson1PutGroupConfigurationCommandError(output, context)];
|
|
1173
1129
|
}
|
|
1174
|
-
contents = {
|
|
1130
|
+
contents = map({
|
|
1175
1131
|
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
1132
|
+
});
|
|
1177
1133
|
return [4, collectBody(output.body, context)];
|
|
1178
1134
|
case 1:
|
|
1179
1135
|
_a.sent();
|
|
1180
|
-
return [2,
|
|
1136
|
+
return [2, contents];
|
|
1181
1137
|
}
|
|
1182
1138
|
});
|
|
1183
1139
|
}); };
|
|
1184
1140
|
var deserializeAws_restJson1PutGroupConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1185
|
-
var parsedOutput, _a,
|
|
1141
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1186
1142
|
var _c;
|
|
1187
1143
|
return __generator(this, function (_d) {
|
|
1188
1144
|
switch (_d.label) {
|
|
@@ -1223,14 +1179,14 @@ var deserializeAws_restJson1PutGroupConfigurationCommandError = function (output
|
|
|
1223
1179
|
case 13: throw _d.sent();
|
|
1224
1180
|
case 14:
|
|
1225
1181
|
parsedBody = parsedOutput.body;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
$metadata: $metadata,
|
|
1182
|
+
throwDefaultError({
|
|
1183
|
+
output: output,
|
|
1184
|
+
parsedBody: parsedBody,
|
|
1185
|
+
exceptionCtor: __BaseException,
|
|
1186
|
+
errorCode: errorCode,
|
|
1232
1187
|
});
|
|
1233
|
-
|
|
1188
|
+
_d.label = 15;
|
|
1189
|
+
case 15: return [2];
|
|
1234
1190
|
}
|
|
1235
1191
|
});
|
|
1236
1192
|
}); };
|
|
@@ -1242,32 +1198,29 @@ export var deserializeAws_restJson1SearchResourcesCommand = function (output, co
|
|
|
1242
1198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1243
1199
|
return [2, deserializeAws_restJson1SearchResourcesCommandError(output, context)];
|
|
1244
1200
|
}
|
|
1245
|
-
contents = {
|
|
1201
|
+
contents = map({
|
|
1246
1202
|
$metadata: deserializeMetadata(output),
|
|
1247
|
-
|
|
1248
|
-
QueryErrors: undefined,
|
|
1249
|
-
ResourceIdentifiers: undefined,
|
|
1250
|
-
};
|
|
1203
|
+
});
|
|
1251
1204
|
_a = __expectNonNull;
|
|
1252
1205
|
_b = __expectObject;
|
|
1253
1206
|
return [4, parseBody(output.body, context)];
|
|
1254
1207
|
case 1:
|
|
1255
1208
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1256
|
-
if (data.NextToken
|
|
1209
|
+
if (data.NextToken != null) {
|
|
1257
1210
|
contents.NextToken = __expectString(data.NextToken);
|
|
1258
1211
|
}
|
|
1259
|
-
if (data.QueryErrors
|
|
1212
|
+
if (data.QueryErrors != null) {
|
|
1260
1213
|
contents.QueryErrors = deserializeAws_restJson1QueryErrorList(data.QueryErrors, context);
|
|
1261
1214
|
}
|
|
1262
|
-
if (data.ResourceIdentifiers
|
|
1215
|
+
if (data.ResourceIdentifiers != null) {
|
|
1263
1216
|
contents.ResourceIdentifiers = deserializeAws_restJson1ResourceIdentifierList(data.ResourceIdentifiers, context);
|
|
1264
1217
|
}
|
|
1265
|
-
return [2,
|
|
1218
|
+
return [2, contents];
|
|
1266
1219
|
}
|
|
1267
1220
|
});
|
|
1268
1221
|
}); };
|
|
1269
1222
|
var deserializeAws_restJson1SearchResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1270
|
-
var parsedOutput, _a,
|
|
1223
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1271
1224
|
var _c;
|
|
1272
1225
|
return __generator(this, function (_d) {
|
|
1273
1226
|
switch (_d.label) {
|
|
@@ -1308,14 +1261,14 @@ var deserializeAws_restJson1SearchResourcesCommandError = function (output, cont
|
|
|
1308
1261
|
case 13: throw _d.sent();
|
|
1309
1262
|
case 14:
|
|
1310
1263
|
parsedBody = parsedOutput.body;
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
$metadata: $metadata,
|
|
1264
|
+
throwDefaultError({
|
|
1265
|
+
output: output,
|
|
1266
|
+
parsedBody: parsedBody,
|
|
1267
|
+
exceptionCtor: __BaseException,
|
|
1268
|
+
errorCode: errorCode,
|
|
1317
1269
|
});
|
|
1318
|
-
|
|
1270
|
+
_d.label = 15;
|
|
1271
|
+
case 15: return [2];
|
|
1319
1272
|
}
|
|
1320
1273
|
});
|
|
1321
1274
|
}); };
|
|
@@ -1327,28 +1280,26 @@ export var deserializeAws_restJson1TagCommand = function (output, context) { ret
|
|
|
1327
1280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1328
1281
|
return [2, deserializeAws_restJson1TagCommandError(output, context)];
|
|
1329
1282
|
}
|
|
1330
|
-
contents = {
|
|
1283
|
+
contents = map({
|
|
1331
1284
|
$metadata: deserializeMetadata(output),
|
|
1332
|
-
|
|
1333
|
-
Tags: undefined,
|
|
1334
|
-
};
|
|
1285
|
+
});
|
|
1335
1286
|
_a = __expectNonNull;
|
|
1336
1287
|
_b = __expectObject;
|
|
1337
1288
|
return [4, parseBody(output.body, context)];
|
|
1338
1289
|
case 1:
|
|
1339
1290
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1340
|
-
if (data.Arn
|
|
1291
|
+
if (data.Arn != null) {
|
|
1341
1292
|
contents.Arn = __expectString(data.Arn);
|
|
1342
1293
|
}
|
|
1343
|
-
if (data.Tags
|
|
1294
|
+
if (data.Tags != null) {
|
|
1344
1295
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
1345
1296
|
}
|
|
1346
|
-
return [2,
|
|
1297
|
+
return [2, contents];
|
|
1347
1298
|
}
|
|
1348
1299
|
});
|
|
1349
1300
|
}); };
|
|
1350
1301
|
var deserializeAws_restJson1TagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1351
|
-
var parsedOutput, _a,
|
|
1302
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1352
1303
|
var _c;
|
|
1353
1304
|
return __generator(this, function (_d) {
|
|
1354
1305
|
switch (_d.label) {
|
|
@@ -1389,14 +1340,14 @@ var deserializeAws_restJson1TagCommandError = function (output, context) { retur
|
|
|
1389
1340
|
case 13: throw _d.sent();
|
|
1390
1341
|
case 14:
|
|
1391
1342
|
parsedBody = parsedOutput.body;
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
$metadata: $metadata,
|
|
1343
|
+
throwDefaultError({
|
|
1344
|
+
output: output,
|
|
1345
|
+
parsedBody: parsedBody,
|
|
1346
|
+
exceptionCtor: __BaseException,
|
|
1347
|
+
errorCode: errorCode,
|
|
1398
1348
|
});
|
|
1399
|
-
|
|
1349
|
+
_d.label = 15;
|
|
1350
|
+
case 15: return [2];
|
|
1400
1351
|
}
|
|
1401
1352
|
});
|
|
1402
1353
|
}); };
|
|
@@ -1408,32 +1359,29 @@ export var deserializeAws_restJson1UngroupResourcesCommand = function (output, c
|
|
|
1408
1359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
1360
|
return [2, deserializeAws_restJson1UngroupResourcesCommandError(output, context)];
|
|
1410
1361
|
}
|
|
1411
|
-
contents = {
|
|
1362
|
+
contents = map({
|
|
1412
1363
|
$metadata: deserializeMetadata(output),
|
|
1413
|
-
|
|
1414
|
-
Pending: undefined,
|
|
1415
|
-
Succeeded: undefined,
|
|
1416
|
-
};
|
|
1364
|
+
});
|
|
1417
1365
|
_a = __expectNonNull;
|
|
1418
1366
|
_b = __expectObject;
|
|
1419
1367
|
return [4, parseBody(output.body, context)];
|
|
1420
1368
|
case 1:
|
|
1421
1369
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1422
|
-
if (data.Failed
|
|
1370
|
+
if (data.Failed != null) {
|
|
1423
1371
|
contents.Failed = deserializeAws_restJson1FailedResourceList(data.Failed, context);
|
|
1424
1372
|
}
|
|
1425
|
-
if (data.Pending
|
|
1373
|
+
if (data.Pending != null) {
|
|
1426
1374
|
contents.Pending = deserializeAws_restJson1PendingResourceList(data.Pending, context);
|
|
1427
1375
|
}
|
|
1428
|
-
if (data.Succeeded
|
|
1376
|
+
if (data.Succeeded != null) {
|
|
1429
1377
|
contents.Succeeded = deserializeAws_restJson1ResourceArnList(data.Succeeded, context);
|
|
1430
1378
|
}
|
|
1431
|
-
return [2,
|
|
1379
|
+
return [2, contents];
|
|
1432
1380
|
}
|
|
1433
1381
|
});
|
|
1434
1382
|
}); };
|
|
1435
1383
|
var deserializeAws_restJson1UngroupResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1436
|
-
var parsedOutput, _a,
|
|
1384
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1437
1385
|
var _c;
|
|
1438
1386
|
return __generator(this, function (_d) {
|
|
1439
1387
|
switch (_d.label) {
|
|
@@ -1474,14 +1422,14 @@ var deserializeAws_restJson1UngroupResourcesCommandError = function (output, con
|
|
|
1474
1422
|
case 13: throw _d.sent();
|
|
1475
1423
|
case 14:
|
|
1476
1424
|
parsedBody = parsedOutput.body;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
$metadata: $metadata,
|
|
1425
|
+
throwDefaultError({
|
|
1426
|
+
output: output,
|
|
1427
|
+
parsedBody: parsedBody,
|
|
1428
|
+
exceptionCtor: __BaseException,
|
|
1429
|
+
errorCode: errorCode,
|
|
1483
1430
|
});
|
|
1484
|
-
|
|
1431
|
+
_d.label = 15;
|
|
1432
|
+
case 15: return [2];
|
|
1485
1433
|
}
|
|
1486
1434
|
});
|
|
1487
1435
|
}); };
|
|
@@ -1493,28 +1441,26 @@ export var deserializeAws_restJson1UntagCommand = function (output, context) { r
|
|
|
1493
1441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1494
1442
|
return [2, deserializeAws_restJson1UntagCommandError(output, context)];
|
|
1495
1443
|
}
|
|
1496
|
-
contents = {
|
|
1444
|
+
contents = map({
|
|
1497
1445
|
$metadata: deserializeMetadata(output),
|
|
1498
|
-
|
|
1499
|
-
Keys: undefined,
|
|
1500
|
-
};
|
|
1446
|
+
});
|
|
1501
1447
|
_a = __expectNonNull;
|
|
1502
1448
|
_b = __expectObject;
|
|
1503
1449
|
return [4, parseBody(output.body, context)];
|
|
1504
1450
|
case 1:
|
|
1505
1451
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1506
|
-
if (data.Arn
|
|
1452
|
+
if (data.Arn != null) {
|
|
1507
1453
|
contents.Arn = __expectString(data.Arn);
|
|
1508
1454
|
}
|
|
1509
|
-
if (data.Keys
|
|
1455
|
+
if (data.Keys != null) {
|
|
1510
1456
|
contents.Keys = deserializeAws_restJson1TagKeyList(data.Keys, context);
|
|
1511
1457
|
}
|
|
1512
|
-
return [2,
|
|
1458
|
+
return [2, contents];
|
|
1513
1459
|
}
|
|
1514
1460
|
});
|
|
1515
1461
|
}); };
|
|
1516
1462
|
var deserializeAws_restJson1UntagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1517
|
-
var parsedOutput, _a,
|
|
1463
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1518
1464
|
var _c;
|
|
1519
1465
|
return __generator(this, function (_d) {
|
|
1520
1466
|
switch (_d.label) {
|
|
@@ -1555,14 +1501,14 @@ var deserializeAws_restJson1UntagCommandError = function (output, context) { ret
|
|
|
1555
1501
|
case 13: throw _d.sent();
|
|
1556
1502
|
case 14:
|
|
1557
1503
|
parsedBody = parsedOutput.body;
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
$metadata: $metadata,
|
|
1504
|
+
throwDefaultError({
|
|
1505
|
+
output: output,
|
|
1506
|
+
parsedBody: parsedBody,
|
|
1507
|
+
exceptionCtor: __BaseException,
|
|
1508
|
+
errorCode: errorCode,
|
|
1564
1509
|
});
|
|
1565
|
-
|
|
1510
|
+
_d.label = 15;
|
|
1511
|
+
case 15: return [2];
|
|
1566
1512
|
}
|
|
1567
1513
|
});
|
|
1568
1514
|
}); };
|
|
@@ -1574,24 +1520,23 @@ export var deserializeAws_restJson1UpdateGroupCommand = function (output, contex
|
|
|
1574
1520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1575
1521
|
return [2, deserializeAws_restJson1UpdateGroupCommandError(output, context)];
|
|
1576
1522
|
}
|
|
1577
|
-
contents = {
|
|
1523
|
+
contents = map({
|
|
1578
1524
|
$metadata: deserializeMetadata(output),
|
|
1579
|
-
|
|
1580
|
-
};
|
|
1525
|
+
});
|
|
1581
1526
|
_a = __expectNonNull;
|
|
1582
1527
|
_b = __expectObject;
|
|
1583
1528
|
return [4, parseBody(output.body, context)];
|
|
1584
1529
|
case 1:
|
|
1585
1530
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1586
|
-
if (data.Group
|
|
1531
|
+
if (data.Group != null) {
|
|
1587
1532
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
1588
1533
|
}
|
|
1589
|
-
return [2,
|
|
1534
|
+
return [2, contents];
|
|
1590
1535
|
}
|
|
1591
1536
|
});
|
|
1592
1537
|
}); };
|
|
1593
1538
|
var deserializeAws_restJson1UpdateGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1594
|
-
var parsedOutput, _a,
|
|
1539
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1595
1540
|
var _c;
|
|
1596
1541
|
return __generator(this, function (_d) {
|
|
1597
1542
|
switch (_d.label) {
|
|
@@ -1632,14 +1577,14 @@ var deserializeAws_restJson1UpdateGroupCommandError = function (output, context)
|
|
|
1632
1577
|
case 13: throw _d.sent();
|
|
1633
1578
|
case 14:
|
|
1634
1579
|
parsedBody = parsedOutput.body;
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
$metadata: $metadata,
|
|
1580
|
+
throwDefaultError({
|
|
1581
|
+
output: output,
|
|
1582
|
+
parsedBody: parsedBody,
|
|
1583
|
+
exceptionCtor: __BaseException,
|
|
1584
|
+
errorCode: errorCode,
|
|
1641
1585
|
});
|
|
1642
|
-
|
|
1586
|
+
_d.label = 15;
|
|
1587
|
+
case 15: return [2];
|
|
1643
1588
|
}
|
|
1644
1589
|
});
|
|
1645
1590
|
}); };
|
|
@@ -1651,24 +1596,23 @@ export var deserializeAws_restJson1UpdateGroupQueryCommand = function (output, c
|
|
|
1651
1596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
1597
|
return [2, deserializeAws_restJson1UpdateGroupQueryCommandError(output, context)];
|
|
1653
1598
|
}
|
|
1654
|
-
contents = {
|
|
1599
|
+
contents = map({
|
|
1655
1600
|
$metadata: deserializeMetadata(output),
|
|
1656
|
-
|
|
1657
|
-
};
|
|
1601
|
+
});
|
|
1658
1602
|
_a = __expectNonNull;
|
|
1659
1603
|
_b = __expectObject;
|
|
1660
1604
|
return [4, parseBody(output.body, context)];
|
|
1661
1605
|
case 1:
|
|
1662
1606
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1663
|
-
if (data.GroupQuery
|
|
1607
|
+
if (data.GroupQuery != null) {
|
|
1664
1608
|
contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
|
|
1665
1609
|
}
|
|
1666
|
-
return [2,
|
|
1610
|
+
return [2, contents];
|
|
1667
1611
|
}
|
|
1668
1612
|
});
|
|
1669
1613
|
}); };
|
|
1670
1614
|
var deserializeAws_restJson1UpdateGroupQueryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1671
|
-
var parsedOutput, _a,
|
|
1615
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1672
1616
|
var _c;
|
|
1673
1617
|
return __generator(this, function (_d) {
|
|
1674
1618
|
switch (_d.label) {
|
|
@@ -1709,23 +1653,24 @@ var deserializeAws_restJson1UpdateGroupQueryCommandError = function (output, con
|
|
|
1709
1653
|
case 13: throw _d.sent();
|
|
1710
1654
|
case 14:
|
|
1711
1655
|
parsedBody = parsedOutput.body;
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
$metadata: $metadata,
|
|
1656
|
+
throwDefaultError({
|
|
1657
|
+
output: output,
|
|
1658
|
+
parsedBody: parsedBody,
|
|
1659
|
+
exceptionCtor: __BaseException,
|
|
1660
|
+
errorCode: errorCode,
|
|
1718
1661
|
});
|
|
1719
|
-
|
|
1662
|
+
_d.label = 15;
|
|
1663
|
+
case 15: return [2];
|
|
1720
1664
|
}
|
|
1721
1665
|
});
|
|
1722
1666
|
}); };
|
|
1667
|
+
var map = __map;
|
|
1723
1668
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1724
1669
|
var contents, data, exception;
|
|
1725
1670
|
return __generator(this, function (_a) {
|
|
1726
|
-
contents = {};
|
|
1671
|
+
contents = map({});
|
|
1727
1672
|
data = parsedOutput.body;
|
|
1728
|
-
if (data.Message
|
|
1673
|
+
if (data.Message != null) {
|
|
1729
1674
|
contents.Message = __expectString(data.Message);
|
|
1730
1675
|
}
|
|
1731
1676
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1735,9 +1680,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
1735
1680
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1736
1681
|
var contents, data, exception;
|
|
1737
1682
|
return __generator(this, function (_a) {
|
|
1738
|
-
contents = {};
|
|
1683
|
+
contents = map({});
|
|
1739
1684
|
data = parsedOutput.body;
|
|
1740
|
-
if (data.Message
|
|
1685
|
+
if (data.Message != null) {
|
|
1741
1686
|
contents.Message = __expectString(data.Message);
|
|
1742
1687
|
}
|
|
1743
1688
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1747,9 +1692,9 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
1747
1692
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
1693
|
var contents, data, exception;
|
|
1749
1694
|
return __generator(this, function (_a) {
|
|
1750
|
-
contents = {};
|
|
1695
|
+
contents = map({});
|
|
1751
1696
|
data = parsedOutput.body;
|
|
1752
|
-
if (data.Message
|
|
1697
|
+
if (data.Message != null) {
|
|
1753
1698
|
contents.Message = __expectString(data.Message);
|
|
1754
1699
|
}
|
|
1755
1700
|
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1759,9 +1704,9 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
1759
1704
|
var deserializeAws_restJson1MethodNotAllowedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1760
1705
|
var contents, data, exception;
|
|
1761
1706
|
return __generator(this, function (_a) {
|
|
1762
|
-
contents = {};
|
|
1707
|
+
contents = map({});
|
|
1763
1708
|
data = parsedOutput.body;
|
|
1764
|
-
if (data.Message
|
|
1709
|
+
if (data.Message != null) {
|
|
1765
1710
|
contents.Message = __expectString(data.Message);
|
|
1766
1711
|
}
|
|
1767
1712
|
exception = new MethodNotAllowedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1771,9 +1716,9 @@ var deserializeAws_restJson1MethodNotAllowedExceptionResponse = function (parsed
|
|
|
1771
1716
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1772
1717
|
var contents, data, exception;
|
|
1773
1718
|
return __generator(this, function (_a) {
|
|
1774
|
-
contents = {};
|
|
1719
|
+
contents = map({});
|
|
1775
1720
|
data = parsedOutput.body;
|
|
1776
|
-
if (data.Message
|
|
1721
|
+
if (data.Message != null) {
|
|
1777
1722
|
contents.Message = __expectString(data.Message);
|
|
1778
1723
|
}
|
|
1779
1724
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1783,9 +1728,9 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
1783
1728
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1784
1729
|
var contents, data, exception;
|
|
1785
1730
|
return __generator(this, function (_a) {
|
|
1786
|
-
contents = {};
|
|
1731
|
+
contents = map({});
|
|
1787
1732
|
data = parsedOutput.body;
|
|
1788
|
-
if (data.Message
|
|
1733
|
+
if (data.Message != null) {
|
|
1789
1734
|
contents.Message = __expectString(data.Message);
|
|
1790
1735
|
}
|
|
1791
1736
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1795,9 +1740,9 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
1795
1740
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1796
1741
|
var contents, data, exception;
|
|
1797
1742
|
return __generator(this, function (_a) {
|
|
1798
|
-
contents = {};
|
|
1743
|
+
contents = map({});
|
|
1799
1744
|
data = parsedOutput.body;
|
|
1800
|
-
if (data.Message
|
|
1745
|
+
if (data.Message != null) {
|
|
1801
1746
|
contents.Message = __expectString(data.Message);
|
|
1802
1747
|
}
|
|
1803
1748
|
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1813,9 +1758,6 @@ var serializeAws_restJson1GroupConfigurationList = function (input, context) {
|
|
|
1813
1758
|
return input
|
|
1814
1759
|
.filter(function (e) { return e != null; })
|
|
1815
1760
|
.map(function (entry) {
|
|
1816
|
-
if (entry === null) {
|
|
1817
|
-
return null;
|
|
1818
|
-
}
|
|
1819
1761
|
return serializeAws_restJson1GroupConfigurationItem(entry, context);
|
|
1820
1762
|
});
|
|
1821
1763
|
};
|
|
@@ -1828,9 +1770,6 @@ var serializeAws_restJson1GroupConfigurationParameterValueList = function (input
|
|
|
1828
1770
|
return input
|
|
1829
1771
|
.filter(function (e) { return e != null; })
|
|
1830
1772
|
.map(function (entry) {
|
|
1831
|
-
if (entry === null) {
|
|
1832
|
-
return null;
|
|
1833
|
-
}
|
|
1834
1773
|
return entry;
|
|
1835
1774
|
});
|
|
1836
1775
|
};
|
|
@@ -1841,9 +1780,6 @@ var serializeAws_restJson1GroupFilterList = function (input, context) {
|
|
|
1841
1780
|
return input
|
|
1842
1781
|
.filter(function (e) { return e != null; })
|
|
1843
1782
|
.map(function (entry) {
|
|
1844
|
-
if (entry === null) {
|
|
1845
|
-
return null;
|
|
1846
|
-
}
|
|
1847
1783
|
return serializeAws_restJson1GroupFilter(entry, context);
|
|
1848
1784
|
});
|
|
1849
1785
|
};
|
|
@@ -1851,9 +1787,6 @@ var serializeAws_restJson1GroupFilterValues = function (input, context) {
|
|
|
1851
1787
|
return input
|
|
1852
1788
|
.filter(function (e) { return e != null; })
|
|
1853
1789
|
.map(function (entry) {
|
|
1854
|
-
if (entry === null) {
|
|
1855
|
-
return null;
|
|
1856
|
-
}
|
|
1857
1790
|
return entry;
|
|
1858
1791
|
});
|
|
1859
1792
|
};
|
|
@@ -1861,9 +1794,6 @@ var serializeAws_restJson1GroupParameterList = function (input, context) {
|
|
|
1861
1794
|
return input
|
|
1862
1795
|
.filter(function (e) { return e != null; })
|
|
1863
1796
|
.map(function (entry) {
|
|
1864
|
-
if (entry === null) {
|
|
1865
|
-
return null;
|
|
1866
|
-
}
|
|
1867
1797
|
return serializeAws_restJson1GroupConfigurationParameter(entry, context);
|
|
1868
1798
|
});
|
|
1869
1799
|
};
|
|
@@ -1871,9 +1801,6 @@ var serializeAws_restJson1ResourceArnList = function (input, context) {
|
|
|
1871
1801
|
return input
|
|
1872
1802
|
.filter(function (e) { return e != null; })
|
|
1873
1803
|
.map(function (entry) {
|
|
1874
|
-
if (entry === null) {
|
|
1875
|
-
return null;
|
|
1876
|
-
}
|
|
1877
1804
|
return entry;
|
|
1878
1805
|
});
|
|
1879
1806
|
};
|
|
@@ -1884,9 +1811,6 @@ var serializeAws_restJson1ResourceFilterList = function (input, context) {
|
|
|
1884
1811
|
return input
|
|
1885
1812
|
.filter(function (e) { return e != null; })
|
|
1886
1813
|
.map(function (entry) {
|
|
1887
|
-
if (entry === null) {
|
|
1888
|
-
return null;
|
|
1889
|
-
}
|
|
1890
1814
|
return serializeAws_restJson1ResourceFilter(entry, context);
|
|
1891
1815
|
});
|
|
1892
1816
|
};
|
|
@@ -1894,9 +1818,6 @@ var serializeAws_restJson1ResourceFilterValues = function (input, context) {
|
|
|
1894
1818
|
return input
|
|
1895
1819
|
.filter(function (e) { return e != null; })
|
|
1896
1820
|
.map(function (entry) {
|
|
1897
|
-
if (entry === null) {
|
|
1898
|
-
return null;
|
|
1899
|
-
}
|
|
1900
1821
|
return entry;
|
|
1901
1822
|
});
|
|
1902
1823
|
};
|
|
@@ -1907,9 +1828,6 @@ var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
|
1907
1828
|
return input
|
|
1908
1829
|
.filter(function (e) { return e != null; })
|
|
1909
1830
|
.map(function (entry) {
|
|
1910
|
-
if (entry === null) {
|
|
1911
|
-
return null;
|
|
1912
|
-
}
|
|
1913
1831
|
return entry;
|
|
1914
1832
|
});
|
|
1915
1833
|
};
|