@aws-sdk/client-resource-groups 3.118.1 → 3.128.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 +134 -139
- package/dist-es/protocols/Aws_restJson1.js +112 -117
- package/package.json +26 -26
|
@@ -13,17 +13,15 @@ const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/groups";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.Configuration
|
|
17
|
-
input.Configuration !== null && {
|
|
16
|
+
...(input.Configuration != null && {
|
|
18
17
|
Configuration: serializeAws_restJson1GroupConfigurationList(input.Configuration, context),
|
|
19
18
|
}),
|
|
20
|
-
...(input.Description
|
|
21
|
-
...(input.Name
|
|
22
|
-
...(input.ResourceQuery
|
|
23
|
-
input.ResourceQuery !== null && {
|
|
19
|
+
...(input.Description != null && { Description: input.Description }),
|
|
20
|
+
...(input.Name != null && { Name: input.Name }),
|
|
21
|
+
...(input.ResourceQuery != null && {
|
|
24
22
|
ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
|
|
25
23
|
}),
|
|
26
|
-
...(input.Tags
|
|
24
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
27
25
|
});
|
|
28
26
|
return new protocol_http_1.HttpRequest({
|
|
29
27
|
protocol,
|
|
@@ -44,8 +42,8 @@ const serializeAws_restJson1DeleteGroupCommand = async (input, context) => {
|
|
|
44
42
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-group";
|
|
45
43
|
let body;
|
|
46
44
|
body = JSON.stringify({
|
|
47
|
-
...(input.Group
|
|
48
|
-
...(input.GroupName
|
|
45
|
+
...(input.Group != null && { Group: input.Group }),
|
|
46
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
49
47
|
});
|
|
50
48
|
return new protocol_http_1.HttpRequest({
|
|
51
49
|
protocol,
|
|
@@ -66,8 +64,8 @@ const serializeAws_restJson1GetGroupCommand = async (input, context) => {
|
|
|
66
64
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/get-group";
|
|
67
65
|
let body;
|
|
68
66
|
body = JSON.stringify({
|
|
69
|
-
...(input.Group
|
|
70
|
-
...(input.GroupName
|
|
67
|
+
...(input.Group != null && { Group: input.Group }),
|
|
68
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
71
69
|
});
|
|
72
70
|
return new protocol_http_1.HttpRequest({
|
|
73
71
|
protocol,
|
|
@@ -88,7 +86,7 @@ const serializeAws_restJson1GetGroupConfigurationCommand = async (input, context
|
|
|
88
86
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/get-group-configuration";
|
|
89
87
|
let body;
|
|
90
88
|
body = JSON.stringify({
|
|
91
|
-
...(input.Group
|
|
89
|
+
...(input.Group != null && { Group: input.Group }),
|
|
92
90
|
});
|
|
93
91
|
return new protocol_http_1.HttpRequest({
|
|
94
92
|
protocol,
|
|
@@ -109,8 +107,8 @@ const serializeAws_restJson1GetGroupQueryCommand = async (input, context) => {
|
|
|
109
107
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/get-group-query";
|
|
110
108
|
let body;
|
|
111
109
|
body = JSON.stringify({
|
|
112
|
-
...(input.Group
|
|
113
|
-
...(input.GroupName
|
|
110
|
+
...(input.Group != null && { Group: input.Group }),
|
|
111
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
114
112
|
});
|
|
115
113
|
return new protocol_http_1.HttpRequest({
|
|
116
114
|
protocol,
|
|
@@ -157,9 +155,8 @@ const serializeAws_restJson1GroupResourcesCommand = async (input, context) => {
|
|
|
157
155
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group-resources";
|
|
158
156
|
let body;
|
|
159
157
|
body = JSON.stringify({
|
|
160
|
-
...(input.Group
|
|
161
|
-
...(input.ResourceArns
|
|
162
|
-
input.ResourceArns !== null && {
|
|
158
|
+
...(input.Group != null && { Group: input.Group }),
|
|
159
|
+
...(input.ResourceArns != null && {
|
|
163
160
|
ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
|
|
164
161
|
}),
|
|
165
162
|
});
|
|
@@ -182,12 +179,11 @@ const serializeAws_restJson1ListGroupResourcesCommand = async (input, context) =
|
|
|
182
179
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-group-resources";
|
|
183
180
|
let body;
|
|
184
181
|
body = JSON.stringify({
|
|
185
|
-
...(input.Filters
|
|
186
|
-
|
|
187
|
-
...(input.
|
|
188
|
-
...(input.
|
|
189
|
-
...(input.
|
|
190
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
182
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1ResourceFilterList(input.Filters, context) }),
|
|
183
|
+
...(input.Group != null && { Group: input.Group }),
|
|
184
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
185
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
186
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
191
187
|
});
|
|
192
188
|
return new protocol_http_1.HttpRequest({
|
|
193
189
|
protocol,
|
|
@@ -212,8 +208,7 @@ const serializeAws_restJson1ListGroupsCommand = async (input, context) => {
|
|
|
212
208
|
};
|
|
213
209
|
let body;
|
|
214
210
|
body = JSON.stringify({
|
|
215
|
-
...(input.Filters
|
|
216
|
-
input.Filters !== null && { Filters: serializeAws_restJson1GroupFilterList(input.Filters, context) }),
|
|
211
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1GroupFilterList(input.Filters, context) }),
|
|
217
212
|
});
|
|
218
213
|
return new protocol_http_1.HttpRequest({
|
|
219
214
|
protocol,
|
|
@@ -235,11 +230,10 @@ const serializeAws_restJson1PutGroupConfigurationCommand = async (input, context
|
|
|
235
230
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/put-group-configuration";
|
|
236
231
|
let body;
|
|
237
232
|
body = JSON.stringify({
|
|
238
|
-
...(input.Configuration
|
|
239
|
-
input.Configuration !== null && {
|
|
233
|
+
...(input.Configuration != null && {
|
|
240
234
|
Configuration: serializeAws_restJson1GroupConfigurationList(input.Configuration, context),
|
|
241
235
|
}),
|
|
242
|
-
...(input.Group
|
|
236
|
+
...(input.Group != null && { Group: input.Group }),
|
|
243
237
|
});
|
|
244
238
|
return new protocol_http_1.HttpRequest({
|
|
245
239
|
protocol,
|
|
@@ -260,10 +254,9 @@ const serializeAws_restJson1SearchResourcesCommand = async (input, context) => {
|
|
|
260
254
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/resources/search";
|
|
261
255
|
let body;
|
|
262
256
|
body = JSON.stringify({
|
|
263
|
-
...(input.MaxResults
|
|
264
|
-
...(input.NextToken
|
|
265
|
-
...(input.ResourceQuery
|
|
266
|
-
input.ResourceQuery !== null && {
|
|
257
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
258
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
259
|
+
...(input.ResourceQuery != null && {
|
|
267
260
|
ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
|
|
268
261
|
}),
|
|
269
262
|
});
|
|
@@ -296,7 +289,7 @@ const serializeAws_restJson1TagCommand = async (input, context) => {
|
|
|
296
289
|
}
|
|
297
290
|
let body;
|
|
298
291
|
body = JSON.stringify({
|
|
299
|
-
...(input.Tags
|
|
292
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
300
293
|
});
|
|
301
294
|
return new protocol_http_1.HttpRequest({
|
|
302
295
|
protocol,
|
|
@@ -317,9 +310,8 @@ const serializeAws_restJson1UngroupResourcesCommand = async (input, context) =>
|
|
|
317
310
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ungroup-resources";
|
|
318
311
|
let body;
|
|
319
312
|
body = JSON.stringify({
|
|
320
|
-
...(input.Group
|
|
321
|
-
...(input.ResourceArns
|
|
322
|
-
input.ResourceArns !== null && {
|
|
313
|
+
...(input.Group != null && { Group: input.Group }),
|
|
314
|
+
...(input.ResourceArns != null && {
|
|
323
315
|
ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
|
|
324
316
|
}),
|
|
325
317
|
});
|
|
@@ -352,8 +344,7 @@ const serializeAws_restJson1UntagCommand = async (input, context) => {
|
|
|
352
344
|
}
|
|
353
345
|
let body;
|
|
354
346
|
body = JSON.stringify({
|
|
355
|
-
...(input.Keys
|
|
356
|
-
input.Keys !== null && { Keys: serializeAws_restJson1TagKeyList(input.Keys, context) }),
|
|
347
|
+
...(input.Keys != null && { Keys: serializeAws_restJson1TagKeyList(input.Keys, context) }),
|
|
357
348
|
});
|
|
358
349
|
return new protocol_http_1.HttpRequest({
|
|
359
350
|
protocol,
|
|
@@ -374,9 +365,9 @@ const serializeAws_restJson1UpdateGroupCommand = async (input, context) => {
|
|
|
374
365
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-group";
|
|
375
366
|
let body;
|
|
376
367
|
body = JSON.stringify({
|
|
377
|
-
...(input.Description
|
|
378
|
-
...(input.Group
|
|
379
|
-
...(input.GroupName
|
|
368
|
+
...(input.Description != null && { Description: input.Description }),
|
|
369
|
+
...(input.Group != null && { Group: input.Group }),
|
|
370
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
380
371
|
});
|
|
381
372
|
return new protocol_http_1.HttpRequest({
|
|
382
373
|
protocol,
|
|
@@ -397,10 +388,9 @@ const serializeAws_restJson1UpdateGroupQueryCommand = async (input, context) =>
|
|
|
397
388
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-group-query";
|
|
398
389
|
let body;
|
|
399
390
|
body = JSON.stringify({
|
|
400
|
-
...(input.Group
|
|
401
|
-
...(input.GroupName
|
|
402
|
-
...(input.ResourceQuery
|
|
403
|
-
input.ResourceQuery !== null && {
|
|
391
|
+
...(input.Group != null && { Group: input.Group }),
|
|
392
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
393
|
+
...(input.ResourceQuery != null && {
|
|
404
394
|
ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
|
|
405
395
|
}),
|
|
406
396
|
});
|
|
@@ -448,8 +438,7 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
|
|
|
448
438
|
body: await parseBody(output.body, context),
|
|
449
439
|
};
|
|
450
440
|
let response;
|
|
451
|
-
|
|
452
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
442
|
switch (errorCode) {
|
|
454
443
|
case "BadRequestException":
|
|
455
444
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -468,10 +457,12 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
|
|
|
468
457
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
469
458
|
default:
|
|
470
459
|
const parsedBody = parsedOutput.body;
|
|
460
|
+
const $metadata = deserializeMetadata(output);
|
|
461
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
471
462
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
472
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
463
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
473
464
|
$fault: "client",
|
|
474
|
-
$metadata
|
|
465
|
+
$metadata,
|
|
475
466
|
});
|
|
476
467
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
477
468
|
}
|
|
@@ -497,8 +488,7 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
|
|
|
497
488
|
body: await parseBody(output.body, context),
|
|
498
489
|
};
|
|
499
490
|
let response;
|
|
500
|
-
|
|
501
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
492
|
switch (errorCode) {
|
|
503
493
|
case "BadRequestException":
|
|
504
494
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -520,10 +510,12 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
|
|
|
520
510
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
521
511
|
default:
|
|
522
512
|
const parsedBody = parsedOutput.body;
|
|
513
|
+
const $metadata = deserializeMetadata(output);
|
|
514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
523
515
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
524
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
525
517
|
$fault: "client",
|
|
526
|
-
$metadata
|
|
518
|
+
$metadata,
|
|
527
519
|
});
|
|
528
520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
529
521
|
}
|
|
@@ -549,8 +541,7 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
|
|
|
549
541
|
body: await parseBody(output.body, context),
|
|
550
542
|
};
|
|
551
543
|
let response;
|
|
552
|
-
|
|
553
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
545
|
switch (errorCode) {
|
|
555
546
|
case "BadRequestException":
|
|
556
547
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -572,10 +563,12 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
|
|
|
572
563
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
573
564
|
default:
|
|
574
565
|
const parsedBody = parsedOutput.body;
|
|
566
|
+
const $metadata = deserializeMetadata(output);
|
|
567
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
575
568
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
576
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
569
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
577
570
|
$fault: "client",
|
|
578
|
-
$metadata
|
|
571
|
+
$metadata,
|
|
579
572
|
});
|
|
580
573
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
581
574
|
}
|
|
@@ -601,8 +594,7 @@ const deserializeAws_restJson1GetGroupConfigurationCommandError = async (output,
|
|
|
601
594
|
body: await parseBody(output.body, context),
|
|
602
595
|
};
|
|
603
596
|
let response;
|
|
604
|
-
|
|
605
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
598
|
switch (errorCode) {
|
|
607
599
|
case "BadRequestException":
|
|
608
600
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -624,10 +616,12 @@ const deserializeAws_restJson1GetGroupConfigurationCommandError = async (output,
|
|
|
624
616
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
625
617
|
default:
|
|
626
618
|
const parsedBody = parsedOutput.body;
|
|
619
|
+
const $metadata = deserializeMetadata(output);
|
|
620
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
627
621
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
628
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
629
623
|
$fault: "client",
|
|
630
|
-
$metadata
|
|
624
|
+
$metadata,
|
|
631
625
|
});
|
|
632
626
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
627
|
}
|
|
@@ -653,8 +647,7 @@ const deserializeAws_restJson1GetGroupQueryCommandError = async (output, context
|
|
|
653
647
|
body: await parseBody(output.body, context),
|
|
654
648
|
};
|
|
655
649
|
let response;
|
|
656
|
-
|
|
657
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
651
|
switch (errorCode) {
|
|
659
652
|
case "BadRequestException":
|
|
660
653
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -676,10 +669,12 @@ const deserializeAws_restJson1GetGroupQueryCommandError = async (output, context
|
|
|
676
669
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
677
670
|
default:
|
|
678
671
|
const parsedBody = parsedOutput.body;
|
|
672
|
+
const $metadata = deserializeMetadata(output);
|
|
673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
679
674
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
680
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
681
676
|
$fault: "client",
|
|
682
|
-
$metadata
|
|
677
|
+
$metadata,
|
|
683
678
|
});
|
|
684
679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
685
680
|
}
|
|
@@ -709,8 +704,7 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
709
704
|
body: await parseBody(output.body, context),
|
|
710
705
|
};
|
|
711
706
|
let response;
|
|
712
|
-
|
|
713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
708
|
switch (errorCode) {
|
|
715
709
|
case "BadRequestException":
|
|
716
710
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -732,10 +726,12 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
732
726
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
733
727
|
default:
|
|
734
728
|
const parsedBody = parsedOutput.body;
|
|
729
|
+
const $metadata = deserializeMetadata(output);
|
|
730
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
735
731
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
736
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
732
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
737
733
|
$fault: "client",
|
|
738
|
-
$metadata
|
|
734
|
+
$metadata,
|
|
739
735
|
});
|
|
740
736
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
741
737
|
}
|
|
@@ -769,8 +765,7 @@ const deserializeAws_restJson1GroupResourcesCommandError = async (output, contex
|
|
|
769
765
|
body: await parseBody(output.body, context),
|
|
770
766
|
};
|
|
771
767
|
let response;
|
|
772
|
-
|
|
773
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
769
|
switch (errorCode) {
|
|
775
770
|
case "BadRequestException":
|
|
776
771
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -792,10 +787,12 @@ const deserializeAws_restJson1GroupResourcesCommandError = async (output, contex
|
|
|
792
787
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
793
788
|
default:
|
|
794
789
|
const parsedBody = parsedOutput.body;
|
|
790
|
+
const $metadata = deserializeMetadata(output);
|
|
791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
795
792
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
797
794
|
$fault: "client",
|
|
798
|
-
$metadata
|
|
795
|
+
$metadata,
|
|
799
796
|
});
|
|
800
797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
801
798
|
}
|
|
@@ -833,8 +830,7 @@ const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, co
|
|
|
833
830
|
body: await parseBody(output.body, context),
|
|
834
831
|
};
|
|
835
832
|
let response;
|
|
836
|
-
|
|
837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
834
|
switch (errorCode) {
|
|
839
835
|
case "BadRequestException":
|
|
840
836
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -859,10 +855,12 @@ const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, co
|
|
|
859
855
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
860
856
|
default:
|
|
861
857
|
const parsedBody = parsedOutput.body;
|
|
858
|
+
const $metadata = deserializeMetadata(output);
|
|
859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
862
860
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
864
862
|
$fault: "client",
|
|
865
|
-
$metadata
|
|
863
|
+
$metadata,
|
|
866
864
|
});
|
|
867
865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
868
866
|
}
|
|
@@ -896,8 +894,7 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
|
|
|
896
894
|
body: await parseBody(output.body, context),
|
|
897
895
|
};
|
|
898
896
|
let response;
|
|
899
|
-
|
|
900
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
898
|
switch (errorCode) {
|
|
902
899
|
case "BadRequestException":
|
|
903
900
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -916,10 +913,12 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
|
|
|
916
913
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
917
914
|
default:
|
|
918
915
|
const parsedBody = parsedOutput.body;
|
|
916
|
+
const $metadata = deserializeMetadata(output);
|
|
917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
919
918
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
920
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
921
920
|
$fault: "client",
|
|
922
|
-
$metadata
|
|
921
|
+
$metadata,
|
|
923
922
|
});
|
|
924
923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
925
924
|
}
|
|
@@ -941,8 +940,7 @@ const deserializeAws_restJson1PutGroupConfigurationCommandError = async (output,
|
|
|
941
940
|
body: await parseBody(output.body, context),
|
|
942
941
|
};
|
|
943
942
|
let response;
|
|
944
|
-
|
|
945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
944
|
switch (errorCode) {
|
|
947
945
|
case "BadRequestException":
|
|
948
946
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -964,10 +962,12 @@ const deserializeAws_restJson1PutGroupConfigurationCommandError = async (output,
|
|
|
964
962
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
965
963
|
default:
|
|
966
964
|
const parsedBody = parsedOutput.body;
|
|
965
|
+
const $metadata = deserializeMetadata(output);
|
|
966
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
967
967
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
968
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
968
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
969
969
|
$fault: "client",
|
|
970
|
-
$metadata
|
|
970
|
+
$metadata,
|
|
971
971
|
});
|
|
972
972
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
973
973
|
}
|
|
@@ -1001,8 +1001,7 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
1001
1001
|
body: await parseBody(output.body, context),
|
|
1002
1002
|
};
|
|
1003
1003
|
let response;
|
|
1004
|
-
|
|
1005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
1005
|
switch (errorCode) {
|
|
1007
1006
|
case "BadRequestException":
|
|
1008
1007
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -1024,10 +1023,12 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
1024
1023
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1025
1024
|
default:
|
|
1026
1025
|
const parsedBody = parsedOutput.body;
|
|
1026
|
+
const $metadata = deserializeMetadata(output);
|
|
1027
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1027
1028
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1028
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1029
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1029
1030
|
$fault: "client",
|
|
1030
|
-
$metadata
|
|
1031
|
+
$metadata,
|
|
1031
1032
|
});
|
|
1032
1033
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1033
1034
|
}
|
|
@@ -1057,8 +1058,7 @@ const deserializeAws_restJson1TagCommandError = async (output, context) => {
|
|
|
1057
1058
|
body: await parseBody(output.body, context),
|
|
1058
1059
|
};
|
|
1059
1060
|
let response;
|
|
1060
|
-
|
|
1061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1062
|
switch (errorCode) {
|
|
1063
1063
|
case "BadRequestException":
|
|
1064
1064
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -1080,10 +1080,12 @@ const deserializeAws_restJson1TagCommandError = async (output, context) => {
|
|
|
1080
1080
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1081
1081
|
default:
|
|
1082
1082
|
const parsedBody = parsedOutput.body;
|
|
1083
|
+
const $metadata = deserializeMetadata(output);
|
|
1084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1083
1085
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1084
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1085
1087
|
$fault: "client",
|
|
1086
|
-
$metadata
|
|
1088
|
+
$metadata,
|
|
1087
1089
|
});
|
|
1088
1090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1089
1091
|
}
|
|
@@ -1117,8 +1119,7 @@ const deserializeAws_restJson1UngroupResourcesCommandError = async (output, cont
|
|
|
1117
1119
|
body: await parseBody(output.body, context),
|
|
1118
1120
|
};
|
|
1119
1121
|
let response;
|
|
1120
|
-
|
|
1121
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
1123
|
switch (errorCode) {
|
|
1123
1124
|
case "BadRequestException":
|
|
1124
1125
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -1140,10 +1141,12 @@ const deserializeAws_restJson1UngroupResourcesCommandError = async (output, cont
|
|
|
1140
1141
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1141
1142
|
default:
|
|
1142
1143
|
const parsedBody = parsedOutput.body;
|
|
1144
|
+
const $metadata = deserializeMetadata(output);
|
|
1145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1143
1146
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1144
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1145
1148
|
$fault: "client",
|
|
1146
|
-
$metadata
|
|
1149
|
+
$metadata,
|
|
1147
1150
|
});
|
|
1148
1151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1149
1152
|
}
|
|
@@ -1173,8 +1176,7 @@ const deserializeAws_restJson1UntagCommandError = async (output, context) => {
|
|
|
1173
1176
|
body: await parseBody(output.body, context),
|
|
1174
1177
|
};
|
|
1175
1178
|
let response;
|
|
1176
|
-
|
|
1177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
1180
|
switch (errorCode) {
|
|
1179
1181
|
case "BadRequestException":
|
|
1180
1182
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -1196,10 +1198,12 @@ const deserializeAws_restJson1UntagCommandError = async (output, context) => {
|
|
|
1196
1198
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1197
1199
|
default:
|
|
1198
1200
|
const parsedBody = parsedOutput.body;
|
|
1201
|
+
const $metadata = deserializeMetadata(output);
|
|
1202
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1199
1203
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1204
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1201
1205
|
$fault: "client",
|
|
1202
|
-
$metadata
|
|
1206
|
+
$metadata,
|
|
1203
1207
|
});
|
|
1204
1208
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1205
1209
|
}
|
|
@@ -1225,8 +1229,7 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
|
|
|
1225
1229
|
body: await parseBody(output.body, context),
|
|
1226
1230
|
};
|
|
1227
1231
|
let response;
|
|
1228
|
-
|
|
1229
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
1233
|
switch (errorCode) {
|
|
1231
1234
|
case "BadRequestException":
|
|
1232
1235
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -1248,10 +1251,12 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
|
|
|
1248
1251
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1249
1252
|
default:
|
|
1250
1253
|
const parsedBody = parsedOutput.body;
|
|
1254
|
+
const $metadata = deserializeMetadata(output);
|
|
1255
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1251
1256
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1257
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1253
1258
|
$fault: "client",
|
|
1254
|
-
$metadata
|
|
1259
|
+
$metadata,
|
|
1255
1260
|
});
|
|
1256
1261
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1257
1262
|
}
|
|
@@ -1277,8 +1282,7 @@ const deserializeAws_restJson1UpdateGroupQueryCommandError = async (output, cont
|
|
|
1277
1282
|
body: await parseBody(output.body, context),
|
|
1278
1283
|
};
|
|
1279
1284
|
let response;
|
|
1280
|
-
|
|
1281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
1286
|
switch (errorCode) {
|
|
1283
1287
|
case "BadRequestException":
|
|
1284
1288
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
@@ -1300,10 +1304,12 @@ const deserializeAws_restJson1UpdateGroupQueryCommandError = async (output, cont
|
|
|
1300
1304
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1301
1305
|
default:
|
|
1302
1306
|
const parsedBody = parsedOutput.body;
|
|
1307
|
+
const $metadata = deserializeMetadata(output);
|
|
1308
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1303
1309
|
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1310
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1305
1311
|
$fault: "client",
|
|
1306
|
-
$metadata
|
|
1312
|
+
$metadata,
|
|
1307
1313
|
});
|
|
1308
1314
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1309
1315
|
}
|
|
@@ -1394,9 +1400,10 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1394
1400
|
};
|
|
1395
1401
|
const serializeAws_restJson1GroupConfigurationItem = (input, context) => {
|
|
1396
1402
|
return {
|
|
1397
|
-
...(input.Parameters
|
|
1398
|
-
|
|
1399
|
-
|
|
1403
|
+
...(input.Parameters != null && {
|
|
1404
|
+
Parameters: serializeAws_restJson1GroupParameterList(input.Parameters, context),
|
|
1405
|
+
}),
|
|
1406
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1400
1407
|
};
|
|
1401
1408
|
};
|
|
1402
1409
|
const serializeAws_restJson1GroupConfigurationList = (input, context) => {
|
|
@@ -1411,9 +1418,8 @@ const serializeAws_restJson1GroupConfigurationList = (input, context) => {
|
|
|
1411
1418
|
};
|
|
1412
1419
|
const serializeAws_restJson1GroupConfigurationParameter = (input, context) => {
|
|
1413
1420
|
return {
|
|
1414
|
-
...(input.Name
|
|
1415
|
-
...(input.Values
|
|
1416
|
-
input.Values !== null && {
|
|
1421
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1422
|
+
...(input.Values != null && {
|
|
1417
1423
|
Values: serializeAws_restJson1GroupConfigurationParameterValueList(input.Values, context),
|
|
1418
1424
|
}),
|
|
1419
1425
|
};
|
|
@@ -1430,9 +1436,8 @@ const serializeAws_restJson1GroupConfigurationParameterValueList = (input, conte
|
|
|
1430
1436
|
};
|
|
1431
1437
|
const serializeAws_restJson1GroupFilter = (input, context) => {
|
|
1432
1438
|
return {
|
|
1433
|
-
...(input.Name
|
|
1434
|
-
...(input.Values
|
|
1435
|
-
input.Values !== null && { Values: serializeAws_restJson1GroupFilterValues(input.Values, context) }),
|
|
1439
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1440
|
+
...(input.Values != null && { Values: serializeAws_restJson1GroupFilterValues(input.Values, context) }),
|
|
1436
1441
|
};
|
|
1437
1442
|
};
|
|
1438
1443
|
const serializeAws_restJson1GroupFilterList = (input, context) => {
|
|
@@ -1477,9 +1482,8 @@ const serializeAws_restJson1ResourceArnList = (input, context) => {
|
|
|
1477
1482
|
};
|
|
1478
1483
|
const serializeAws_restJson1ResourceFilter = (input, context) => {
|
|
1479
1484
|
return {
|
|
1480
|
-
...(input.Name
|
|
1481
|
-
...(input.Values
|
|
1482
|
-
input.Values !== null && { Values: serializeAws_restJson1ResourceFilterValues(input.Values, context) }),
|
|
1485
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1486
|
+
...(input.Values != null && { Values: serializeAws_restJson1ResourceFilterValues(input.Values, context) }),
|
|
1483
1487
|
};
|
|
1484
1488
|
};
|
|
1485
1489
|
const serializeAws_restJson1ResourceFilterList = (input, context) => {
|
|
@@ -1504,8 +1508,8 @@ const serializeAws_restJson1ResourceFilterValues = (input, context) => {
|
|
|
1504
1508
|
};
|
|
1505
1509
|
const serializeAws_restJson1ResourceQuery = (input, context) => {
|
|
1506
1510
|
return {
|
|
1507
|
-
...(input.Query
|
|
1508
|
-
...(input.Type
|
|
1511
|
+
...(input.Query != null && { Query: input.Query }),
|
|
1512
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1509
1513
|
};
|
|
1510
1514
|
};
|
|
1511
1515
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -1556,11 +1560,11 @@ const deserializeAws_restJson1Group = (output, context) => {
|
|
|
1556
1560
|
};
|
|
1557
1561
|
const deserializeAws_restJson1GroupConfiguration = (output, context) => {
|
|
1558
1562
|
return {
|
|
1559
|
-
Configuration: output.Configuration
|
|
1563
|
+
Configuration: output.Configuration != null
|
|
1560
1564
|
? deserializeAws_restJson1GroupConfigurationList(output.Configuration, context)
|
|
1561
1565
|
: undefined,
|
|
1562
1566
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
1563
|
-
ProposedConfiguration: output.ProposedConfiguration
|
|
1567
|
+
ProposedConfiguration: output.ProposedConfiguration != null
|
|
1564
1568
|
? deserializeAws_restJson1GroupConfigurationList(output.ProposedConfiguration, context)
|
|
1565
1569
|
: undefined,
|
|
1566
1570
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -1568,9 +1572,7 @@ const deserializeAws_restJson1GroupConfiguration = (output, context) => {
|
|
|
1568
1572
|
};
|
|
1569
1573
|
const deserializeAws_restJson1GroupConfigurationItem = (output, context) => {
|
|
1570
1574
|
return {
|
|
1571
|
-
Parameters: output.Parameters
|
|
1572
|
-
? deserializeAws_restJson1GroupParameterList(output.Parameters, context)
|
|
1573
|
-
: undefined,
|
|
1575
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1GroupParameterList(output.Parameters, context) : undefined,
|
|
1574
1576
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1575
1577
|
};
|
|
1576
1578
|
};
|
|
@@ -1588,7 +1590,7 @@ const deserializeAws_restJson1GroupConfigurationList = (output, context) => {
|
|
|
1588
1590
|
const deserializeAws_restJson1GroupConfigurationParameter = (output, context) => {
|
|
1589
1591
|
return {
|
|
1590
1592
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1591
|
-
Values: output.Values
|
|
1593
|
+
Values: output.Values != null
|
|
1592
1594
|
? deserializeAws_restJson1GroupConfigurationParameterValueList(output.Values, context)
|
|
1593
1595
|
: undefined,
|
|
1594
1596
|
};
|
|
@@ -1646,19 +1648,13 @@ const deserializeAws_restJson1GroupParameterList = (output, context) => {
|
|
|
1646
1648
|
const deserializeAws_restJson1GroupQuery = (output, context) => {
|
|
1647
1649
|
return {
|
|
1648
1650
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
1649
|
-
ResourceQuery: output.ResourceQuery
|
|
1650
|
-
? deserializeAws_restJson1ResourceQuery(output.ResourceQuery, context)
|
|
1651
|
-
: undefined,
|
|
1651
|
+
ResourceQuery: output.ResourceQuery != null ? deserializeAws_restJson1ResourceQuery(output.ResourceQuery, context) : undefined,
|
|
1652
1652
|
};
|
|
1653
1653
|
};
|
|
1654
1654
|
const deserializeAws_restJson1ListGroupResourcesItem = (output, context) => {
|
|
1655
1655
|
return {
|
|
1656
|
-
Identifier: output.Identifier
|
|
1657
|
-
|
|
1658
|
-
: undefined,
|
|
1659
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
1660
|
-
? deserializeAws_restJson1ResourceStatus(output.Status, context)
|
|
1661
|
-
: undefined,
|
|
1656
|
+
Identifier: output.Identifier != null ? deserializeAws_restJson1ResourceIdentifier(output.Identifier, context) : undefined,
|
|
1657
|
+
Status: output.Status != null ? deserializeAws_restJson1ResourceStatus(output.Status, context) : undefined,
|
|
1662
1658
|
};
|
|
1663
1659
|
};
|
|
1664
1660
|
const deserializeAws_restJson1ListGroupResourcesItemList = (output, context) => {
|
|
@@ -1815,5 +1811,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1815
1811
|
if (data["__type"] !== undefined) {
|
|
1816
1812
|
return sanitizeErrorCode(data["__type"]);
|
|
1817
1813
|
}
|
|
1818
|
-
return "";
|
|
1819
1814
|
};
|