@aws-sdk/client-resource-groups 3.306.0 → 3.310.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.
Files changed (41) hide show
  1. package/dist-cjs/commands/CreateGroupCommand.js +2 -2
  2. package/dist-cjs/commands/DeleteGroupCommand.js +2 -2
  3. package/dist-cjs/commands/GetAccountSettingsCommand.js +2 -2
  4. package/dist-cjs/commands/GetGroupCommand.js +2 -2
  5. package/dist-cjs/commands/GetGroupConfigurationCommand.js +2 -2
  6. package/dist-cjs/commands/GetGroupQueryCommand.js +2 -2
  7. package/dist-cjs/commands/GetTagsCommand.js +2 -2
  8. package/dist-cjs/commands/GroupResourcesCommand.js +2 -2
  9. package/dist-cjs/commands/ListGroupResourcesCommand.js +2 -2
  10. package/dist-cjs/commands/ListGroupsCommand.js +2 -2
  11. package/dist-cjs/commands/PutGroupConfigurationCommand.js +2 -2
  12. package/dist-cjs/commands/SearchResourcesCommand.js +2 -2
  13. package/dist-cjs/commands/TagCommand.js +2 -2
  14. package/dist-cjs/commands/UngroupResourcesCommand.js +2 -2
  15. package/dist-cjs/commands/UntagCommand.js +2 -2
  16. package/dist-cjs/commands/UpdateAccountSettingsCommand.js +2 -2
  17. package/dist-cjs/commands/UpdateGroupCommand.js +2 -2
  18. package/dist-cjs/commands/UpdateGroupQueryCommand.js +2 -2
  19. package/dist-cjs/protocols/Aws_restJson1.js +327 -349
  20. package/dist-es/commands/CreateGroupCommand.js +3 -3
  21. package/dist-es/commands/DeleteGroupCommand.js +3 -3
  22. package/dist-es/commands/GetAccountSettingsCommand.js +3 -3
  23. package/dist-es/commands/GetGroupCommand.js +3 -3
  24. package/dist-es/commands/GetGroupConfigurationCommand.js +3 -3
  25. package/dist-es/commands/GetGroupQueryCommand.js +3 -3
  26. package/dist-es/commands/GetTagsCommand.js +3 -3
  27. package/dist-es/commands/GroupResourcesCommand.js +3 -3
  28. package/dist-es/commands/ListGroupResourcesCommand.js +3 -3
  29. package/dist-es/commands/ListGroupsCommand.js +3 -3
  30. package/dist-es/commands/PutGroupConfigurationCommand.js +3 -3
  31. package/dist-es/commands/SearchResourcesCommand.js +3 -3
  32. package/dist-es/commands/TagCommand.js +3 -3
  33. package/dist-es/commands/UngroupResourcesCommand.js +3 -3
  34. package/dist-es/commands/UntagCommand.js +3 -3
  35. package/dist-es/commands/UpdateAccountSettingsCommand.js +3 -3
  36. package/dist-es/commands/UpdateGroupCommand.js +3 -3
  37. package/dist-es/commands/UpdateGroupQueryCommand.js +3 -3
  38. package/dist-es/protocols/Aws_restJson1.js +290 -312
  39. package/dist-types/protocols/Aws_restJson1.d.ts +144 -36
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -36
  41. package/package.json +35 -35
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateGroupQueryCommand = exports.deserializeAws_restJson1UpdateGroupCommand = exports.deserializeAws_restJson1UpdateAccountSettingsCommand = exports.deserializeAws_restJson1UntagCommand = exports.deserializeAws_restJson1UngroupResourcesCommand = exports.deserializeAws_restJson1TagCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutGroupConfigurationCommand = exports.deserializeAws_restJson1ListGroupsCommand = exports.deserializeAws_restJson1ListGroupResourcesCommand = exports.deserializeAws_restJson1GroupResourcesCommand = exports.deserializeAws_restJson1GetTagsCommand = exports.deserializeAws_restJson1GetGroupQueryCommand = exports.deserializeAws_restJson1GetGroupConfigurationCommand = exports.deserializeAws_restJson1GetGroupCommand = exports.deserializeAws_restJson1GetAccountSettingsCommand = exports.deserializeAws_restJson1DeleteGroupCommand = exports.deserializeAws_restJson1CreateGroupCommand = exports.serializeAws_restJson1UpdateGroupQueryCommand = exports.serializeAws_restJson1UpdateGroupCommand = exports.serializeAws_restJson1UpdateAccountSettingsCommand = exports.serializeAws_restJson1UntagCommand = exports.serializeAws_restJson1UngroupResourcesCommand = exports.serializeAws_restJson1TagCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutGroupConfigurationCommand = exports.serializeAws_restJson1ListGroupsCommand = exports.serializeAws_restJson1ListGroupResourcesCommand = exports.serializeAws_restJson1GroupResourcesCommand = exports.serializeAws_restJson1GetTagsCommand = exports.serializeAws_restJson1GetGroupQueryCommand = exports.serializeAws_restJson1GetGroupConfigurationCommand = exports.serializeAws_restJson1GetGroupCommand = exports.serializeAws_restJson1GetAccountSettingsCommand = exports.serializeAws_restJson1DeleteGroupCommand = exports.serializeAws_restJson1CreateGroupCommand = void 0;
3
+ exports.de_UpdateGroupQueryCommand = exports.de_UpdateGroupCommand = exports.de_UpdateAccountSettingsCommand = exports.de_UntagCommand = exports.de_UngroupResourcesCommand = exports.de_TagCommand = exports.de_SearchResourcesCommand = exports.de_PutGroupConfigurationCommand = exports.de_ListGroupsCommand = exports.de_ListGroupResourcesCommand = exports.de_GroupResourcesCommand = exports.de_GetTagsCommand = exports.de_GetGroupQueryCommand = exports.de_GetGroupConfigurationCommand = exports.de_GetGroupCommand = exports.de_GetAccountSettingsCommand = exports.de_DeleteGroupCommand = exports.de_CreateGroupCommand = exports.se_UpdateGroupQueryCommand = exports.se_UpdateGroupCommand = exports.se_UpdateAccountSettingsCommand = exports.se_UntagCommand = exports.se_UngroupResourcesCommand = exports.se_TagCommand = exports.se_SearchResourcesCommand = exports.se_PutGroupConfigurationCommand = exports.se_ListGroupsCommand = exports.se_ListGroupResourcesCommand = exports.se_GroupResourcesCommand = exports.se_GetTagsCommand = exports.se_GetGroupQueryCommand = exports.se_GetGroupConfigurationCommand = exports.se_GetGroupCommand = exports.se_GetAccountSettingsCommand = exports.se_DeleteGroupCommand = exports.se_CreateGroupCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const ResourceGroupsServiceException_1 = require("../models/ResourceGroupsServiceException");
8
- const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
8
+ const se_CreateGroupCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -13,15 +13,11 @@ const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
13
13
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groups";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.Configuration != null && {
17
- Configuration: serializeAws_restJson1GroupConfigurationList(input.Configuration, context),
18
- }),
16
+ ...(input.Configuration != null && { Configuration: se_GroupConfigurationList(input.Configuration, context) }),
19
17
  ...(input.Description != null && { Description: input.Description }),
20
18
  ...(input.Name != null && { Name: input.Name }),
21
- ...(input.ResourceQuery != null && {
22
- ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
23
- }),
24
- ...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
19
+ ...(input.ResourceQuery != null && { ResourceQuery: se_ResourceQuery(input.ResourceQuery, context) }),
20
+ ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
25
21
  });
26
22
  return new protocol_http_1.HttpRequest({
27
23
  protocol,
@@ -33,8 +29,8 @@ const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
33
29
  body,
34
30
  });
35
31
  };
36
- exports.serializeAws_restJson1CreateGroupCommand = serializeAws_restJson1CreateGroupCommand;
37
- const serializeAws_restJson1DeleteGroupCommand = async (input, context) => {
32
+ exports.se_CreateGroupCommand = se_CreateGroupCommand;
33
+ const se_DeleteGroupCommand = async (input, context) => {
38
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
35
  const headers = {
40
36
  "content-type": "application/json",
@@ -55,8 +51,8 @@ const serializeAws_restJson1DeleteGroupCommand = async (input, context) => {
55
51
  body,
56
52
  });
57
53
  };
58
- exports.serializeAws_restJson1DeleteGroupCommand = serializeAws_restJson1DeleteGroupCommand;
59
- const serializeAws_restJson1GetAccountSettingsCommand = async (input, context) => {
54
+ exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
55
+ const se_GetAccountSettingsCommand = async (input, context) => {
60
56
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
57
  const headers = {
62
58
  "content-type": "application/json",
@@ -74,8 +70,8 @@ const serializeAws_restJson1GetAccountSettingsCommand = async (input, context) =
74
70
  body,
75
71
  });
76
72
  };
77
- exports.serializeAws_restJson1GetAccountSettingsCommand = serializeAws_restJson1GetAccountSettingsCommand;
78
- const serializeAws_restJson1GetGroupCommand = async (input, context) => {
73
+ exports.se_GetAccountSettingsCommand = se_GetAccountSettingsCommand;
74
+ const se_GetGroupCommand = async (input, context) => {
79
75
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
76
  const headers = {
81
77
  "content-type": "application/json",
@@ -96,8 +92,8 @@ const serializeAws_restJson1GetGroupCommand = async (input, context) => {
96
92
  body,
97
93
  });
98
94
  };
99
- exports.serializeAws_restJson1GetGroupCommand = serializeAws_restJson1GetGroupCommand;
100
- const serializeAws_restJson1GetGroupConfigurationCommand = async (input, context) => {
95
+ exports.se_GetGroupCommand = se_GetGroupCommand;
96
+ const se_GetGroupConfigurationCommand = async (input, context) => {
101
97
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
98
  const headers = {
103
99
  "content-type": "application/json",
@@ -117,8 +113,8 @@ const serializeAws_restJson1GetGroupConfigurationCommand = async (input, context
117
113
  body,
118
114
  });
119
115
  };
120
- exports.serializeAws_restJson1GetGroupConfigurationCommand = serializeAws_restJson1GetGroupConfigurationCommand;
121
- const serializeAws_restJson1GetGroupQueryCommand = async (input, context) => {
116
+ exports.se_GetGroupConfigurationCommand = se_GetGroupConfigurationCommand;
117
+ const se_GetGroupQueryCommand = async (input, context) => {
122
118
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
119
  const headers = {
124
120
  "content-type": "application/json",
@@ -139,8 +135,8 @@ const serializeAws_restJson1GetGroupQueryCommand = async (input, context) => {
139
135
  body,
140
136
  });
141
137
  };
142
- exports.serializeAws_restJson1GetGroupQueryCommand = serializeAws_restJson1GetGroupQueryCommand;
143
- const serializeAws_restJson1GetTagsCommand = async (input, context) => {
138
+ exports.se_GetGroupQueryCommand = se_GetGroupQueryCommand;
139
+ const se_GetTagsCommand = async (input, context) => {
144
140
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
145
141
  const headers = {};
146
142
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{Arn}/tags";
@@ -156,8 +152,8 @@ const serializeAws_restJson1GetTagsCommand = async (input, context) => {
156
152
  body,
157
153
  });
158
154
  };
159
- exports.serializeAws_restJson1GetTagsCommand = serializeAws_restJson1GetTagsCommand;
160
- const serializeAws_restJson1GroupResourcesCommand = async (input, context) => {
155
+ exports.se_GetTagsCommand = se_GetTagsCommand;
156
+ const se_GroupResourcesCommand = async (input, context) => {
161
157
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
158
  const headers = {
163
159
  "content-type": "application/json",
@@ -166,9 +162,7 @@ const serializeAws_restJson1GroupResourcesCommand = async (input, context) => {
166
162
  let body;
167
163
  body = JSON.stringify({
168
164
  ...(input.Group != null && { Group: input.Group }),
169
- ...(input.ResourceArns != null && {
170
- ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
171
- }),
165
+ ...(input.ResourceArns != null && { ResourceArns: se_ResourceArnList(input.ResourceArns, context) }),
172
166
  });
173
167
  return new protocol_http_1.HttpRequest({
174
168
  protocol,
@@ -180,8 +174,8 @@ const serializeAws_restJson1GroupResourcesCommand = async (input, context) => {
180
174
  body,
181
175
  });
182
176
  };
183
- exports.serializeAws_restJson1GroupResourcesCommand = serializeAws_restJson1GroupResourcesCommand;
184
- const serializeAws_restJson1ListGroupResourcesCommand = async (input, context) => {
177
+ exports.se_GroupResourcesCommand = se_GroupResourcesCommand;
178
+ const se_ListGroupResourcesCommand = async (input, context) => {
185
179
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
180
  const headers = {
187
181
  "content-type": "application/json",
@@ -189,7 +183,7 @@ const serializeAws_restJson1ListGroupResourcesCommand = async (input, context) =
189
183
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-group-resources";
190
184
  let body;
191
185
  body = JSON.stringify({
192
- ...(input.Filters != null && { Filters: serializeAws_restJson1ResourceFilterList(input.Filters, context) }),
186
+ ...(input.Filters != null && { Filters: se_ResourceFilterList(input.Filters, context) }),
193
187
  ...(input.Group != null && { Group: input.Group }),
194
188
  ...(input.GroupName != null && { GroupName: input.GroupName }),
195
189
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -205,8 +199,8 @@ const serializeAws_restJson1ListGroupResourcesCommand = async (input, context) =
205
199
  body,
206
200
  });
207
201
  };
208
- exports.serializeAws_restJson1ListGroupResourcesCommand = serializeAws_restJson1ListGroupResourcesCommand;
209
- const serializeAws_restJson1ListGroupsCommand = async (input, context) => {
202
+ exports.se_ListGroupResourcesCommand = se_ListGroupResourcesCommand;
203
+ const se_ListGroupsCommand = async (input, context) => {
210
204
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
205
  const headers = {
212
206
  "content-type": "application/json",
@@ -218,7 +212,7 @@ const serializeAws_restJson1ListGroupsCommand = async (input, context) => {
218
212
  });
219
213
  let body;
220
214
  body = JSON.stringify({
221
- ...(input.Filters != null && { Filters: serializeAws_restJson1GroupFilterList(input.Filters, context) }),
215
+ ...(input.Filters != null && { Filters: se_GroupFilterList(input.Filters, context) }),
222
216
  });
223
217
  return new protocol_http_1.HttpRequest({
224
218
  protocol,
@@ -231,8 +225,8 @@ const serializeAws_restJson1ListGroupsCommand = async (input, context) => {
231
225
  body,
232
226
  });
233
227
  };
234
- exports.serializeAws_restJson1ListGroupsCommand = serializeAws_restJson1ListGroupsCommand;
235
- const serializeAws_restJson1PutGroupConfigurationCommand = async (input, context) => {
228
+ exports.se_ListGroupsCommand = se_ListGroupsCommand;
229
+ const se_PutGroupConfigurationCommand = async (input, context) => {
236
230
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
231
  const headers = {
238
232
  "content-type": "application/json",
@@ -240,9 +234,7 @@ const serializeAws_restJson1PutGroupConfigurationCommand = async (input, context
240
234
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-group-configuration";
241
235
  let body;
242
236
  body = JSON.stringify({
243
- ...(input.Configuration != null && {
244
- Configuration: serializeAws_restJson1GroupConfigurationList(input.Configuration, context),
245
- }),
237
+ ...(input.Configuration != null && { Configuration: se_GroupConfigurationList(input.Configuration, context) }),
246
238
  ...(input.Group != null && { Group: input.Group }),
247
239
  });
248
240
  return new protocol_http_1.HttpRequest({
@@ -255,8 +247,8 @@ const serializeAws_restJson1PutGroupConfigurationCommand = async (input, context
255
247
  body,
256
248
  });
257
249
  };
258
- exports.serializeAws_restJson1PutGroupConfigurationCommand = serializeAws_restJson1PutGroupConfigurationCommand;
259
- const serializeAws_restJson1SearchResourcesCommand = async (input, context) => {
250
+ exports.se_PutGroupConfigurationCommand = se_PutGroupConfigurationCommand;
251
+ const se_SearchResourcesCommand = async (input, context) => {
260
252
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
253
  const headers = {
262
254
  "content-type": "application/json",
@@ -266,9 +258,7 @@ const serializeAws_restJson1SearchResourcesCommand = async (input, context) => {
266
258
  body = JSON.stringify({
267
259
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
268
260
  ...(input.NextToken != null && { NextToken: input.NextToken }),
269
- ...(input.ResourceQuery != null && {
270
- ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
271
- }),
261
+ ...(input.ResourceQuery != null && { ResourceQuery: se_ResourceQuery(input.ResourceQuery, context) }),
272
262
  });
273
263
  return new protocol_http_1.HttpRequest({
274
264
  protocol,
@@ -280,8 +270,8 @@ const serializeAws_restJson1SearchResourcesCommand = async (input, context) => {
280
270
  body,
281
271
  });
282
272
  };
283
- exports.serializeAws_restJson1SearchResourcesCommand = serializeAws_restJson1SearchResourcesCommand;
284
- const serializeAws_restJson1TagCommand = async (input, context) => {
273
+ exports.se_SearchResourcesCommand = se_SearchResourcesCommand;
274
+ const se_TagCommand = async (input, context) => {
285
275
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
286
276
  const headers = {
287
277
  "content-type": "application/json",
@@ -290,7 +280,7 @@ const serializeAws_restJson1TagCommand = async (input, context) => {
290
280
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
291
281
  let body;
292
282
  body = JSON.stringify({
293
- ...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
283
+ ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
294
284
  });
295
285
  return new protocol_http_1.HttpRequest({
296
286
  protocol,
@@ -302,8 +292,8 @@ const serializeAws_restJson1TagCommand = async (input, context) => {
302
292
  body,
303
293
  });
304
294
  };
305
- exports.serializeAws_restJson1TagCommand = serializeAws_restJson1TagCommand;
306
- const serializeAws_restJson1UngroupResourcesCommand = async (input, context) => {
295
+ exports.se_TagCommand = se_TagCommand;
296
+ const se_UngroupResourcesCommand = async (input, context) => {
307
297
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
308
298
  const headers = {
309
299
  "content-type": "application/json",
@@ -312,9 +302,7 @@ const serializeAws_restJson1UngroupResourcesCommand = async (input, context) =>
312
302
  let body;
313
303
  body = JSON.stringify({
314
304
  ...(input.Group != null && { Group: input.Group }),
315
- ...(input.ResourceArns != null && {
316
- ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
317
- }),
305
+ ...(input.ResourceArns != null && { ResourceArns: se_ResourceArnList(input.ResourceArns, context) }),
318
306
  });
319
307
  return new protocol_http_1.HttpRequest({
320
308
  protocol,
@@ -326,8 +314,8 @@ const serializeAws_restJson1UngroupResourcesCommand = async (input, context) =>
326
314
  body,
327
315
  });
328
316
  };
329
- exports.serializeAws_restJson1UngroupResourcesCommand = serializeAws_restJson1UngroupResourcesCommand;
330
- const serializeAws_restJson1UntagCommand = async (input, context) => {
317
+ exports.se_UngroupResourcesCommand = se_UngroupResourcesCommand;
318
+ const se_UntagCommand = async (input, context) => {
331
319
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
320
  const headers = {
333
321
  "content-type": "application/json",
@@ -336,7 +324,7 @@ const serializeAws_restJson1UntagCommand = async (input, context) => {
336
324
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
337
325
  let body;
338
326
  body = JSON.stringify({
339
- ...(input.Keys != null && { Keys: serializeAws_restJson1TagKeyList(input.Keys, context) }),
327
+ ...(input.Keys != null && { Keys: se_TagKeyList(input.Keys, context) }),
340
328
  });
341
329
  return new protocol_http_1.HttpRequest({
342
330
  protocol,
@@ -348,8 +336,8 @@ const serializeAws_restJson1UntagCommand = async (input, context) => {
348
336
  body,
349
337
  });
350
338
  };
351
- exports.serializeAws_restJson1UntagCommand = serializeAws_restJson1UntagCommand;
352
- const serializeAws_restJson1UpdateAccountSettingsCommand = async (input, context) => {
339
+ exports.se_UntagCommand = se_UntagCommand;
340
+ const se_UpdateAccountSettingsCommand = async (input, context) => {
353
341
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
342
  const headers = {
355
343
  "content-type": "application/json",
@@ -371,8 +359,8 @@ const serializeAws_restJson1UpdateAccountSettingsCommand = async (input, context
371
359
  body,
372
360
  });
373
361
  };
374
- exports.serializeAws_restJson1UpdateAccountSettingsCommand = serializeAws_restJson1UpdateAccountSettingsCommand;
375
- const serializeAws_restJson1UpdateGroupCommand = async (input, context) => {
362
+ exports.se_UpdateAccountSettingsCommand = se_UpdateAccountSettingsCommand;
363
+ const se_UpdateGroupCommand = async (input, context) => {
376
364
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
377
365
  const headers = {
378
366
  "content-type": "application/json",
@@ -394,8 +382,8 @@ const serializeAws_restJson1UpdateGroupCommand = async (input, context) => {
394
382
  body,
395
383
  });
396
384
  };
397
- exports.serializeAws_restJson1UpdateGroupCommand = serializeAws_restJson1UpdateGroupCommand;
398
- const serializeAws_restJson1UpdateGroupQueryCommand = async (input, context) => {
385
+ exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
386
+ const se_UpdateGroupQueryCommand = async (input, context) => {
399
387
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
400
388
  const headers = {
401
389
  "content-type": "application/json",
@@ -405,9 +393,7 @@ const serializeAws_restJson1UpdateGroupQueryCommand = async (input, context) =>
405
393
  body = JSON.stringify({
406
394
  ...(input.Group != null && { Group: input.Group }),
407
395
  ...(input.GroupName != null && { GroupName: input.GroupName }),
408
- ...(input.ResourceQuery != null && {
409
- ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
410
- }),
396
+ ...(input.ResourceQuery != null && { ResourceQuery: se_ResourceQuery(input.ResourceQuery, context) }),
411
397
  });
412
398
  return new protocol_http_1.HttpRequest({
413
399
  protocol,
@@ -419,31 +405,31 @@ const serializeAws_restJson1UpdateGroupQueryCommand = async (input, context) =>
419
405
  body,
420
406
  });
421
407
  };
422
- exports.serializeAws_restJson1UpdateGroupQueryCommand = serializeAws_restJson1UpdateGroupQueryCommand;
423
- const deserializeAws_restJson1CreateGroupCommand = async (output, context) => {
408
+ exports.se_UpdateGroupQueryCommand = se_UpdateGroupQueryCommand;
409
+ const de_CreateGroupCommand = async (output, context) => {
424
410
  if (output.statusCode !== 200 && output.statusCode >= 300) {
425
- return deserializeAws_restJson1CreateGroupCommandError(output, context);
411
+ return de_CreateGroupCommandError(output, context);
426
412
  }
427
413
  const contents = map({
428
414
  $metadata: deserializeMetadata(output),
429
415
  });
430
416
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
431
417
  if (data.Group != null) {
432
- contents.Group = deserializeAws_restJson1Group(data.Group, context);
418
+ contents.Group = de_Group(data.Group, context);
433
419
  }
434
420
  if (data.GroupConfiguration != null) {
435
- contents.GroupConfiguration = deserializeAws_restJson1GroupConfiguration(data.GroupConfiguration, context);
421
+ contents.GroupConfiguration = de_GroupConfiguration(data.GroupConfiguration, context);
436
422
  }
437
423
  if (data.ResourceQuery != null) {
438
- contents.ResourceQuery = deserializeAws_restJson1ResourceQuery(data.ResourceQuery, context);
424
+ contents.ResourceQuery = de_ResourceQuery(data.ResourceQuery, context);
439
425
  }
440
426
  if (data.Tags != null) {
441
- contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
427
+ contents.Tags = de_Tags(data.Tags, context);
442
428
  }
443
429
  return contents;
444
430
  };
445
- exports.deserializeAws_restJson1CreateGroupCommand = deserializeAws_restJson1CreateGroupCommand;
446
- const deserializeAws_restJson1CreateGroupCommandError = async (output, context) => {
431
+ exports.de_CreateGroupCommand = de_CreateGroupCommand;
432
+ const de_CreateGroupCommandError = async (output, context) => {
447
433
  const parsedOutput = {
448
434
  ...output,
449
435
  body: await parseErrorBody(output.body, context),
@@ -452,19 +438,19 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
452
438
  switch (errorCode) {
453
439
  case "BadRequestException":
454
440
  case "com.amazonaws.resourcegroups#BadRequestException":
455
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
441
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
456
442
  case "ForbiddenException":
457
443
  case "com.amazonaws.resourcegroups#ForbiddenException":
458
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
444
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
459
445
  case "InternalServerErrorException":
460
446
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
461
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
447
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
462
448
  case "MethodNotAllowedException":
463
449
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
464
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
450
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
465
451
  case "TooManyRequestsException":
466
452
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
467
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
453
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
468
454
  default:
469
455
  const parsedBody = parsedOutput.body;
470
456
  (0, smithy_client_1.throwDefaultError)({
@@ -475,21 +461,21 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
475
461
  });
476
462
  }
477
463
  };
478
- const deserializeAws_restJson1DeleteGroupCommand = async (output, context) => {
464
+ const de_DeleteGroupCommand = async (output, context) => {
479
465
  if (output.statusCode !== 200 && output.statusCode >= 300) {
480
- return deserializeAws_restJson1DeleteGroupCommandError(output, context);
466
+ return de_DeleteGroupCommandError(output, context);
481
467
  }
482
468
  const contents = map({
483
469
  $metadata: deserializeMetadata(output),
484
470
  });
485
471
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
486
472
  if (data.Group != null) {
487
- contents.Group = deserializeAws_restJson1Group(data.Group, context);
473
+ contents.Group = de_Group(data.Group, context);
488
474
  }
489
475
  return contents;
490
476
  };
491
- exports.deserializeAws_restJson1DeleteGroupCommand = deserializeAws_restJson1DeleteGroupCommand;
492
- const deserializeAws_restJson1DeleteGroupCommandError = async (output, context) => {
477
+ exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
478
+ const de_DeleteGroupCommandError = async (output, context) => {
493
479
  const parsedOutput = {
494
480
  ...output,
495
481
  body: await parseErrorBody(output.body, context),
@@ -498,22 +484,22 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
498
484
  switch (errorCode) {
499
485
  case "BadRequestException":
500
486
  case "com.amazonaws.resourcegroups#BadRequestException":
501
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
487
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
502
488
  case "ForbiddenException":
503
489
  case "com.amazonaws.resourcegroups#ForbiddenException":
504
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
490
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
505
491
  case "InternalServerErrorException":
506
492
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
507
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
493
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
508
494
  case "MethodNotAllowedException":
509
495
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
510
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
496
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
511
497
  case "NotFoundException":
512
498
  case "com.amazonaws.resourcegroups#NotFoundException":
513
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
499
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
514
500
  case "TooManyRequestsException":
515
501
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
516
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
502
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
517
503
  default:
518
504
  const parsedBody = parsedOutput.body;
519
505
  (0, smithy_client_1.throwDefaultError)({
@@ -524,21 +510,21 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
524
510
  });
525
511
  }
526
512
  };
527
- const deserializeAws_restJson1GetAccountSettingsCommand = async (output, context) => {
513
+ const de_GetAccountSettingsCommand = async (output, context) => {
528
514
  if (output.statusCode !== 200 && output.statusCode >= 300) {
529
- return deserializeAws_restJson1GetAccountSettingsCommandError(output, context);
515
+ return de_GetAccountSettingsCommandError(output, context);
530
516
  }
531
517
  const contents = map({
532
518
  $metadata: deserializeMetadata(output),
533
519
  });
534
520
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
535
521
  if (data.AccountSettings != null) {
536
- contents.AccountSettings = deserializeAws_restJson1AccountSettings(data.AccountSettings, context);
522
+ contents.AccountSettings = de_AccountSettings(data.AccountSettings, context);
537
523
  }
538
524
  return contents;
539
525
  };
540
- exports.deserializeAws_restJson1GetAccountSettingsCommand = deserializeAws_restJson1GetAccountSettingsCommand;
541
- const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, context) => {
526
+ exports.de_GetAccountSettingsCommand = de_GetAccountSettingsCommand;
527
+ const de_GetAccountSettingsCommandError = async (output, context) => {
542
528
  const parsedOutput = {
543
529
  ...output,
544
530
  body: await parseErrorBody(output.body, context),
@@ -547,19 +533,19 @@ const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, co
547
533
  switch (errorCode) {
548
534
  case "BadRequestException":
549
535
  case "com.amazonaws.resourcegroups#BadRequestException":
550
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
536
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
551
537
  case "ForbiddenException":
552
538
  case "com.amazonaws.resourcegroups#ForbiddenException":
553
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
539
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
554
540
  case "InternalServerErrorException":
555
541
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
556
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
542
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
557
543
  case "MethodNotAllowedException":
558
544
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
559
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
545
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
560
546
  case "TooManyRequestsException":
561
547
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
562
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
548
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
563
549
  default:
564
550
  const parsedBody = parsedOutput.body;
565
551
  (0, smithy_client_1.throwDefaultError)({
@@ -570,21 +556,21 @@ const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, co
570
556
  });
571
557
  }
572
558
  };
573
- const deserializeAws_restJson1GetGroupCommand = async (output, context) => {
559
+ const de_GetGroupCommand = async (output, context) => {
574
560
  if (output.statusCode !== 200 && output.statusCode >= 300) {
575
- return deserializeAws_restJson1GetGroupCommandError(output, context);
561
+ return de_GetGroupCommandError(output, context);
576
562
  }
577
563
  const contents = map({
578
564
  $metadata: deserializeMetadata(output),
579
565
  });
580
566
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
581
567
  if (data.Group != null) {
582
- contents.Group = deserializeAws_restJson1Group(data.Group, context);
568
+ contents.Group = de_Group(data.Group, context);
583
569
  }
584
570
  return contents;
585
571
  };
586
- exports.deserializeAws_restJson1GetGroupCommand = deserializeAws_restJson1GetGroupCommand;
587
- const deserializeAws_restJson1GetGroupCommandError = async (output, context) => {
572
+ exports.de_GetGroupCommand = de_GetGroupCommand;
573
+ const de_GetGroupCommandError = async (output, context) => {
588
574
  const parsedOutput = {
589
575
  ...output,
590
576
  body: await parseErrorBody(output.body, context),
@@ -593,22 +579,22 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
593
579
  switch (errorCode) {
594
580
  case "BadRequestException":
595
581
  case "com.amazonaws.resourcegroups#BadRequestException":
596
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
582
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
597
583
  case "ForbiddenException":
598
584
  case "com.amazonaws.resourcegroups#ForbiddenException":
599
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
585
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
600
586
  case "InternalServerErrorException":
601
587
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
602
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
588
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
603
589
  case "MethodNotAllowedException":
604
590
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
605
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
591
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
606
592
  case "NotFoundException":
607
593
  case "com.amazonaws.resourcegroups#NotFoundException":
608
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
594
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
609
595
  case "TooManyRequestsException":
610
596
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
611
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
597
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
612
598
  default:
613
599
  const parsedBody = parsedOutput.body;
614
600
  (0, smithy_client_1.throwDefaultError)({
@@ -619,21 +605,21 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
619
605
  });
620
606
  }
621
607
  };
622
- const deserializeAws_restJson1GetGroupConfigurationCommand = async (output, context) => {
608
+ const de_GetGroupConfigurationCommand = async (output, context) => {
623
609
  if (output.statusCode !== 200 && output.statusCode >= 300) {
624
- return deserializeAws_restJson1GetGroupConfigurationCommandError(output, context);
610
+ return de_GetGroupConfigurationCommandError(output, context);
625
611
  }
626
612
  const contents = map({
627
613
  $metadata: deserializeMetadata(output),
628
614
  });
629
615
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
630
616
  if (data.GroupConfiguration != null) {
631
- contents.GroupConfiguration = deserializeAws_restJson1GroupConfiguration(data.GroupConfiguration, context);
617
+ contents.GroupConfiguration = de_GroupConfiguration(data.GroupConfiguration, context);
632
618
  }
633
619
  return contents;
634
620
  };
635
- exports.deserializeAws_restJson1GetGroupConfigurationCommand = deserializeAws_restJson1GetGroupConfigurationCommand;
636
- const deserializeAws_restJson1GetGroupConfigurationCommandError = async (output, context) => {
621
+ exports.de_GetGroupConfigurationCommand = de_GetGroupConfigurationCommand;
622
+ const de_GetGroupConfigurationCommandError = async (output, context) => {
637
623
  const parsedOutput = {
638
624
  ...output,
639
625
  body: await parseErrorBody(output.body, context),
@@ -642,22 +628,22 @@ const deserializeAws_restJson1GetGroupConfigurationCommandError = async (output,
642
628
  switch (errorCode) {
643
629
  case "BadRequestException":
644
630
  case "com.amazonaws.resourcegroups#BadRequestException":
645
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
631
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
646
632
  case "ForbiddenException":
647
633
  case "com.amazonaws.resourcegroups#ForbiddenException":
648
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
634
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
649
635
  case "InternalServerErrorException":
650
636
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
651
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
637
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
652
638
  case "MethodNotAllowedException":
653
639
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
654
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
640
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
655
641
  case "NotFoundException":
656
642
  case "com.amazonaws.resourcegroups#NotFoundException":
657
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
643
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
658
644
  case "TooManyRequestsException":
659
645
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
660
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
646
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
661
647
  default:
662
648
  const parsedBody = parsedOutput.body;
663
649
  (0, smithy_client_1.throwDefaultError)({
@@ -668,21 +654,21 @@ const deserializeAws_restJson1GetGroupConfigurationCommandError = async (output,
668
654
  });
669
655
  }
670
656
  };
671
- const deserializeAws_restJson1GetGroupQueryCommand = async (output, context) => {
657
+ const de_GetGroupQueryCommand = async (output, context) => {
672
658
  if (output.statusCode !== 200 && output.statusCode >= 300) {
673
- return deserializeAws_restJson1GetGroupQueryCommandError(output, context);
659
+ return de_GetGroupQueryCommandError(output, context);
674
660
  }
675
661
  const contents = map({
676
662
  $metadata: deserializeMetadata(output),
677
663
  });
678
664
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
679
665
  if (data.GroupQuery != null) {
680
- contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
666
+ contents.GroupQuery = de_GroupQuery(data.GroupQuery, context);
681
667
  }
682
668
  return contents;
683
669
  };
684
- exports.deserializeAws_restJson1GetGroupQueryCommand = deserializeAws_restJson1GetGroupQueryCommand;
685
- const deserializeAws_restJson1GetGroupQueryCommandError = async (output, context) => {
670
+ exports.de_GetGroupQueryCommand = de_GetGroupQueryCommand;
671
+ const de_GetGroupQueryCommandError = async (output, context) => {
686
672
  const parsedOutput = {
687
673
  ...output,
688
674
  body: await parseErrorBody(output.body, context),
@@ -691,22 +677,22 @@ const deserializeAws_restJson1GetGroupQueryCommandError = async (output, context
691
677
  switch (errorCode) {
692
678
  case "BadRequestException":
693
679
  case "com.amazonaws.resourcegroups#BadRequestException":
694
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
680
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
695
681
  case "ForbiddenException":
696
682
  case "com.amazonaws.resourcegroups#ForbiddenException":
697
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
683
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
698
684
  case "InternalServerErrorException":
699
685
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
700
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
686
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
701
687
  case "MethodNotAllowedException":
702
688
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
703
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
689
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
704
690
  case "NotFoundException":
705
691
  case "com.amazonaws.resourcegroups#NotFoundException":
706
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
692
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
707
693
  case "TooManyRequestsException":
708
694
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
709
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
695
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
710
696
  default:
711
697
  const parsedBody = parsedOutput.body;
712
698
  (0, smithy_client_1.throwDefaultError)({
@@ -717,9 +703,9 @@ const deserializeAws_restJson1GetGroupQueryCommandError = async (output, context
717
703
  });
718
704
  }
719
705
  };
720
- const deserializeAws_restJson1GetTagsCommand = async (output, context) => {
706
+ const de_GetTagsCommand = async (output, context) => {
721
707
  if (output.statusCode !== 200 && output.statusCode >= 300) {
722
- return deserializeAws_restJson1GetTagsCommandError(output, context);
708
+ return de_GetTagsCommandError(output, context);
723
709
  }
724
710
  const contents = map({
725
711
  $metadata: deserializeMetadata(output),
@@ -729,12 +715,12 @@ const deserializeAws_restJson1GetTagsCommand = async (output, context) => {
729
715
  contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
730
716
  }
731
717
  if (data.Tags != null) {
732
- contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
718
+ contents.Tags = de_Tags(data.Tags, context);
733
719
  }
734
720
  return contents;
735
721
  };
736
- exports.deserializeAws_restJson1GetTagsCommand = deserializeAws_restJson1GetTagsCommand;
737
- const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
722
+ exports.de_GetTagsCommand = de_GetTagsCommand;
723
+ const de_GetTagsCommandError = async (output, context) => {
738
724
  const parsedOutput = {
739
725
  ...output,
740
726
  body: await parseErrorBody(output.body, context),
@@ -743,22 +729,22 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
743
729
  switch (errorCode) {
744
730
  case "BadRequestException":
745
731
  case "com.amazonaws.resourcegroups#BadRequestException":
746
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
732
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
747
733
  case "ForbiddenException":
748
734
  case "com.amazonaws.resourcegroups#ForbiddenException":
749
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
735
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
750
736
  case "InternalServerErrorException":
751
737
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
752
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
738
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
753
739
  case "MethodNotAllowedException":
754
740
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
755
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
741
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
756
742
  case "NotFoundException":
757
743
  case "com.amazonaws.resourcegroups#NotFoundException":
758
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
744
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
759
745
  case "TooManyRequestsException":
760
746
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
761
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
747
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
762
748
  default:
763
749
  const parsedBody = parsedOutput.body;
764
750
  (0, smithy_client_1.throwDefaultError)({
@@ -769,27 +755,27 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
769
755
  });
770
756
  }
771
757
  };
772
- const deserializeAws_restJson1GroupResourcesCommand = async (output, context) => {
758
+ const de_GroupResourcesCommand = async (output, context) => {
773
759
  if (output.statusCode !== 200 && output.statusCode >= 300) {
774
- return deserializeAws_restJson1GroupResourcesCommandError(output, context);
760
+ return de_GroupResourcesCommandError(output, context);
775
761
  }
776
762
  const contents = map({
777
763
  $metadata: deserializeMetadata(output),
778
764
  });
779
765
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
780
766
  if (data.Failed != null) {
781
- contents.Failed = deserializeAws_restJson1FailedResourceList(data.Failed, context);
767
+ contents.Failed = de_FailedResourceList(data.Failed, context);
782
768
  }
783
769
  if (data.Pending != null) {
784
- contents.Pending = deserializeAws_restJson1PendingResourceList(data.Pending, context);
770
+ contents.Pending = de_PendingResourceList(data.Pending, context);
785
771
  }
786
772
  if (data.Succeeded != null) {
787
- contents.Succeeded = deserializeAws_restJson1ResourceArnList(data.Succeeded, context);
773
+ contents.Succeeded = de_ResourceArnList(data.Succeeded, context);
788
774
  }
789
775
  return contents;
790
776
  };
791
- exports.deserializeAws_restJson1GroupResourcesCommand = deserializeAws_restJson1GroupResourcesCommand;
792
- const deserializeAws_restJson1GroupResourcesCommandError = async (output, context) => {
777
+ exports.de_GroupResourcesCommand = de_GroupResourcesCommand;
778
+ const de_GroupResourcesCommandError = async (output, context) => {
793
779
  const parsedOutput = {
794
780
  ...output,
795
781
  body: await parseErrorBody(output.body, context),
@@ -798,22 +784,22 @@ const deserializeAws_restJson1GroupResourcesCommandError = async (output, contex
798
784
  switch (errorCode) {
799
785
  case "BadRequestException":
800
786
  case "com.amazonaws.resourcegroups#BadRequestException":
801
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
787
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
802
788
  case "ForbiddenException":
803
789
  case "com.amazonaws.resourcegroups#ForbiddenException":
804
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
790
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
805
791
  case "InternalServerErrorException":
806
792
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
807
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
793
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
808
794
  case "MethodNotAllowedException":
809
795
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
810
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
796
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
811
797
  case "NotFoundException":
812
798
  case "com.amazonaws.resourcegroups#NotFoundException":
813
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
799
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
814
800
  case "TooManyRequestsException":
815
801
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
816
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
802
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
817
803
  default:
818
804
  const parsedBody = parsedOutput.body;
819
805
  (0, smithy_client_1.throwDefaultError)({
@@ -824,9 +810,9 @@ const deserializeAws_restJson1GroupResourcesCommandError = async (output, contex
824
810
  });
825
811
  }
826
812
  };
827
- const deserializeAws_restJson1ListGroupResourcesCommand = async (output, context) => {
813
+ const de_ListGroupResourcesCommand = async (output, context) => {
828
814
  if (output.statusCode !== 200 && output.statusCode >= 300) {
829
- return deserializeAws_restJson1ListGroupResourcesCommandError(output, context);
815
+ return de_ListGroupResourcesCommandError(output, context);
830
816
  }
831
817
  const contents = map({
832
818
  $metadata: deserializeMetadata(output),
@@ -836,18 +822,18 @@ const deserializeAws_restJson1ListGroupResourcesCommand = async (output, context
836
822
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
837
823
  }
838
824
  if (data.QueryErrors != null) {
839
- contents.QueryErrors = deserializeAws_restJson1QueryErrorList(data.QueryErrors, context);
825
+ contents.QueryErrors = de_QueryErrorList(data.QueryErrors, context);
840
826
  }
841
827
  if (data.ResourceIdentifiers != null) {
842
- contents.ResourceIdentifiers = deserializeAws_restJson1ResourceIdentifierList(data.ResourceIdentifiers, context);
828
+ contents.ResourceIdentifiers = de_ResourceIdentifierList(data.ResourceIdentifiers, context);
843
829
  }
844
830
  if (data.Resources != null) {
845
- contents.Resources = deserializeAws_restJson1ListGroupResourcesItemList(data.Resources, context);
831
+ contents.Resources = de_ListGroupResourcesItemList(data.Resources, context);
846
832
  }
847
833
  return contents;
848
834
  };
849
- exports.deserializeAws_restJson1ListGroupResourcesCommand = deserializeAws_restJson1ListGroupResourcesCommand;
850
- const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, context) => {
835
+ exports.de_ListGroupResourcesCommand = de_ListGroupResourcesCommand;
836
+ const de_ListGroupResourcesCommandError = async (output, context) => {
851
837
  const parsedOutput = {
852
838
  ...output,
853
839
  body: await parseErrorBody(output.body, context),
@@ -856,25 +842,25 @@ const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, co
856
842
  switch (errorCode) {
857
843
  case "BadRequestException":
858
844
  case "com.amazonaws.resourcegroups#BadRequestException":
859
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
845
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
860
846
  case "ForbiddenException":
861
847
  case "com.amazonaws.resourcegroups#ForbiddenException":
862
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
848
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
863
849
  case "InternalServerErrorException":
864
850
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
865
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
851
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
866
852
  case "MethodNotAllowedException":
867
853
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
868
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
854
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
869
855
  case "NotFoundException":
870
856
  case "com.amazonaws.resourcegroups#NotFoundException":
871
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
857
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
872
858
  case "TooManyRequestsException":
873
859
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
874
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
860
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
875
861
  case "UnauthorizedException":
876
862
  case "com.amazonaws.resourcegroups#UnauthorizedException":
877
- throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
863
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
878
864
  default:
879
865
  const parsedBody = parsedOutput.body;
880
866
  (0, smithy_client_1.throwDefaultError)({
@@ -885,27 +871,27 @@ const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, co
885
871
  });
886
872
  }
887
873
  };
888
- const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
874
+ const de_ListGroupsCommand = async (output, context) => {
889
875
  if (output.statusCode !== 200 && output.statusCode >= 300) {
890
- return deserializeAws_restJson1ListGroupsCommandError(output, context);
876
+ return de_ListGroupsCommandError(output, context);
891
877
  }
892
878
  const contents = map({
893
879
  $metadata: deserializeMetadata(output),
894
880
  });
895
881
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
896
882
  if (data.GroupIdentifiers != null) {
897
- contents.GroupIdentifiers = deserializeAws_restJson1GroupIdentifierList(data.GroupIdentifiers, context);
883
+ contents.GroupIdentifiers = de_GroupIdentifierList(data.GroupIdentifiers, context);
898
884
  }
899
885
  if (data.Groups != null) {
900
- contents.Groups = deserializeAws_restJson1GroupList(data.Groups, context);
886
+ contents.Groups = de_GroupList(data.Groups, context);
901
887
  }
902
888
  if (data.NextToken != null) {
903
889
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
904
890
  }
905
891
  return contents;
906
892
  };
907
- exports.deserializeAws_restJson1ListGroupsCommand = deserializeAws_restJson1ListGroupsCommand;
908
- const deserializeAws_restJson1ListGroupsCommandError = async (output, context) => {
893
+ exports.de_ListGroupsCommand = de_ListGroupsCommand;
894
+ const de_ListGroupsCommandError = async (output, context) => {
909
895
  const parsedOutput = {
910
896
  ...output,
911
897
  body: await parseErrorBody(output.body, context),
@@ -914,19 +900,19 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
914
900
  switch (errorCode) {
915
901
  case "BadRequestException":
916
902
  case "com.amazonaws.resourcegroups#BadRequestException":
917
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
903
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
918
904
  case "ForbiddenException":
919
905
  case "com.amazonaws.resourcegroups#ForbiddenException":
920
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
906
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
921
907
  case "InternalServerErrorException":
922
908
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
923
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
909
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
924
910
  case "MethodNotAllowedException":
925
911
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
926
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
912
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
927
913
  case "TooManyRequestsException":
928
914
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
929
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
915
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
930
916
  default:
931
917
  const parsedBody = parsedOutput.body;
932
918
  (0, smithy_client_1.throwDefaultError)({
@@ -937,9 +923,9 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
937
923
  });
938
924
  }
939
925
  };
940
- const deserializeAws_restJson1PutGroupConfigurationCommand = async (output, context) => {
926
+ const de_PutGroupConfigurationCommand = async (output, context) => {
941
927
  if (output.statusCode !== 202 && output.statusCode >= 300) {
942
- return deserializeAws_restJson1PutGroupConfigurationCommandError(output, context);
928
+ return de_PutGroupConfigurationCommandError(output, context);
943
929
  }
944
930
  const contents = map({
945
931
  $metadata: deserializeMetadata(output),
@@ -947,8 +933,8 @@ const deserializeAws_restJson1PutGroupConfigurationCommand = async (output, cont
947
933
  await collectBody(output.body, context);
948
934
  return contents;
949
935
  };
950
- exports.deserializeAws_restJson1PutGroupConfigurationCommand = deserializeAws_restJson1PutGroupConfigurationCommand;
951
- const deserializeAws_restJson1PutGroupConfigurationCommandError = async (output, context) => {
936
+ exports.de_PutGroupConfigurationCommand = de_PutGroupConfigurationCommand;
937
+ const de_PutGroupConfigurationCommandError = async (output, context) => {
952
938
  const parsedOutput = {
953
939
  ...output,
954
940
  body: await parseErrorBody(output.body, context),
@@ -957,22 +943,22 @@ const deserializeAws_restJson1PutGroupConfigurationCommandError = async (output,
957
943
  switch (errorCode) {
958
944
  case "BadRequestException":
959
945
  case "com.amazonaws.resourcegroups#BadRequestException":
960
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
946
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
961
947
  case "ForbiddenException":
962
948
  case "com.amazonaws.resourcegroups#ForbiddenException":
963
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
949
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
964
950
  case "InternalServerErrorException":
965
951
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
966
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
952
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
967
953
  case "MethodNotAllowedException":
968
954
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
969
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
955
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
970
956
  case "NotFoundException":
971
957
  case "com.amazonaws.resourcegroups#NotFoundException":
972
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
958
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
973
959
  case "TooManyRequestsException":
974
960
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
975
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
961
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
976
962
  default:
977
963
  const parsedBody = parsedOutput.body;
978
964
  (0, smithy_client_1.throwDefaultError)({
@@ -983,9 +969,9 @@ const deserializeAws_restJson1PutGroupConfigurationCommandError = async (output,
983
969
  });
984
970
  }
985
971
  };
986
- const deserializeAws_restJson1SearchResourcesCommand = async (output, context) => {
972
+ const de_SearchResourcesCommand = async (output, context) => {
987
973
  if (output.statusCode !== 200 && output.statusCode >= 300) {
988
- return deserializeAws_restJson1SearchResourcesCommandError(output, context);
974
+ return de_SearchResourcesCommandError(output, context);
989
975
  }
990
976
  const contents = map({
991
977
  $metadata: deserializeMetadata(output),
@@ -995,15 +981,15 @@ const deserializeAws_restJson1SearchResourcesCommand = async (output, context) =
995
981
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
996
982
  }
997
983
  if (data.QueryErrors != null) {
998
- contents.QueryErrors = deserializeAws_restJson1QueryErrorList(data.QueryErrors, context);
984
+ contents.QueryErrors = de_QueryErrorList(data.QueryErrors, context);
999
985
  }
1000
986
  if (data.ResourceIdentifiers != null) {
1001
- contents.ResourceIdentifiers = deserializeAws_restJson1ResourceIdentifierList(data.ResourceIdentifiers, context);
987
+ contents.ResourceIdentifiers = de_ResourceIdentifierList(data.ResourceIdentifiers, context);
1002
988
  }
1003
989
  return contents;
1004
990
  };
1005
- exports.deserializeAws_restJson1SearchResourcesCommand = deserializeAws_restJson1SearchResourcesCommand;
1006
- const deserializeAws_restJson1SearchResourcesCommandError = async (output, context) => {
991
+ exports.de_SearchResourcesCommand = de_SearchResourcesCommand;
992
+ const de_SearchResourcesCommandError = async (output, context) => {
1007
993
  const parsedOutput = {
1008
994
  ...output,
1009
995
  body: await parseErrorBody(output.body, context),
@@ -1012,22 +998,22 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
1012
998
  switch (errorCode) {
1013
999
  case "BadRequestException":
1014
1000
  case "com.amazonaws.resourcegroups#BadRequestException":
1015
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1001
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1016
1002
  case "ForbiddenException":
1017
1003
  case "com.amazonaws.resourcegroups#ForbiddenException":
1018
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1004
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1019
1005
  case "InternalServerErrorException":
1020
1006
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
1021
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1007
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1022
1008
  case "MethodNotAllowedException":
1023
1009
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
1024
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
1010
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
1025
1011
  case "TooManyRequestsException":
1026
1012
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
1027
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1013
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1028
1014
  case "UnauthorizedException":
1029
1015
  case "com.amazonaws.resourcegroups#UnauthorizedException":
1030
- throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1016
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1031
1017
  default:
1032
1018
  const parsedBody = parsedOutput.body;
1033
1019
  (0, smithy_client_1.throwDefaultError)({
@@ -1038,9 +1024,9 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
1038
1024
  });
1039
1025
  }
1040
1026
  };
1041
- const deserializeAws_restJson1TagCommand = async (output, context) => {
1027
+ const de_TagCommand = async (output, context) => {
1042
1028
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1043
- return deserializeAws_restJson1TagCommandError(output, context);
1029
+ return de_TagCommandError(output, context);
1044
1030
  }
1045
1031
  const contents = map({
1046
1032
  $metadata: deserializeMetadata(output),
@@ -1050,12 +1036,12 @@ const deserializeAws_restJson1TagCommand = async (output, context) => {
1050
1036
  contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1051
1037
  }
1052
1038
  if (data.Tags != null) {
1053
- contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
1039
+ contents.Tags = de_Tags(data.Tags, context);
1054
1040
  }
1055
1041
  return contents;
1056
1042
  };
1057
- exports.deserializeAws_restJson1TagCommand = deserializeAws_restJson1TagCommand;
1058
- const deserializeAws_restJson1TagCommandError = async (output, context) => {
1043
+ exports.de_TagCommand = de_TagCommand;
1044
+ const de_TagCommandError = async (output, context) => {
1059
1045
  const parsedOutput = {
1060
1046
  ...output,
1061
1047
  body: await parseErrorBody(output.body, context),
@@ -1064,22 +1050,22 @@ const deserializeAws_restJson1TagCommandError = async (output, context) => {
1064
1050
  switch (errorCode) {
1065
1051
  case "BadRequestException":
1066
1052
  case "com.amazonaws.resourcegroups#BadRequestException":
1067
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1053
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1068
1054
  case "ForbiddenException":
1069
1055
  case "com.amazonaws.resourcegroups#ForbiddenException":
1070
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1056
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1071
1057
  case "InternalServerErrorException":
1072
1058
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
1073
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1059
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1074
1060
  case "MethodNotAllowedException":
1075
1061
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
1076
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
1062
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
1077
1063
  case "NotFoundException":
1078
1064
  case "com.amazonaws.resourcegroups#NotFoundException":
1079
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1065
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1080
1066
  case "TooManyRequestsException":
1081
1067
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
1082
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1068
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1083
1069
  default:
1084
1070
  const parsedBody = parsedOutput.body;
1085
1071
  (0, smithy_client_1.throwDefaultError)({
@@ -1090,27 +1076,27 @@ const deserializeAws_restJson1TagCommandError = async (output, context) => {
1090
1076
  });
1091
1077
  }
1092
1078
  };
1093
- const deserializeAws_restJson1UngroupResourcesCommand = async (output, context) => {
1079
+ const de_UngroupResourcesCommand = async (output, context) => {
1094
1080
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
- return deserializeAws_restJson1UngroupResourcesCommandError(output, context);
1081
+ return de_UngroupResourcesCommandError(output, context);
1096
1082
  }
1097
1083
  const contents = map({
1098
1084
  $metadata: deserializeMetadata(output),
1099
1085
  });
1100
1086
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1101
1087
  if (data.Failed != null) {
1102
- contents.Failed = deserializeAws_restJson1FailedResourceList(data.Failed, context);
1088
+ contents.Failed = de_FailedResourceList(data.Failed, context);
1103
1089
  }
1104
1090
  if (data.Pending != null) {
1105
- contents.Pending = deserializeAws_restJson1PendingResourceList(data.Pending, context);
1091
+ contents.Pending = de_PendingResourceList(data.Pending, context);
1106
1092
  }
1107
1093
  if (data.Succeeded != null) {
1108
- contents.Succeeded = deserializeAws_restJson1ResourceArnList(data.Succeeded, context);
1094
+ contents.Succeeded = de_ResourceArnList(data.Succeeded, context);
1109
1095
  }
1110
1096
  return contents;
1111
1097
  };
1112
- exports.deserializeAws_restJson1UngroupResourcesCommand = deserializeAws_restJson1UngroupResourcesCommand;
1113
- const deserializeAws_restJson1UngroupResourcesCommandError = async (output, context) => {
1098
+ exports.de_UngroupResourcesCommand = de_UngroupResourcesCommand;
1099
+ const de_UngroupResourcesCommandError = async (output, context) => {
1114
1100
  const parsedOutput = {
1115
1101
  ...output,
1116
1102
  body: await parseErrorBody(output.body, context),
@@ -1119,22 +1105,22 @@ const deserializeAws_restJson1UngroupResourcesCommandError = async (output, cont
1119
1105
  switch (errorCode) {
1120
1106
  case "BadRequestException":
1121
1107
  case "com.amazonaws.resourcegroups#BadRequestException":
1122
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1108
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1123
1109
  case "ForbiddenException":
1124
1110
  case "com.amazonaws.resourcegroups#ForbiddenException":
1125
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1111
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1126
1112
  case "InternalServerErrorException":
1127
1113
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
1128
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1114
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1129
1115
  case "MethodNotAllowedException":
1130
1116
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
1131
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
1117
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
1132
1118
  case "NotFoundException":
1133
1119
  case "com.amazonaws.resourcegroups#NotFoundException":
1134
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1120
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1135
1121
  case "TooManyRequestsException":
1136
1122
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
1137
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1123
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1138
1124
  default:
1139
1125
  const parsedBody = parsedOutput.body;
1140
1126
  (0, smithy_client_1.throwDefaultError)({
@@ -1145,9 +1131,9 @@ const deserializeAws_restJson1UngroupResourcesCommandError = async (output, cont
1145
1131
  });
1146
1132
  }
1147
1133
  };
1148
- const deserializeAws_restJson1UntagCommand = async (output, context) => {
1134
+ const de_UntagCommand = async (output, context) => {
1149
1135
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1150
- return deserializeAws_restJson1UntagCommandError(output, context);
1136
+ return de_UntagCommandError(output, context);
1151
1137
  }
1152
1138
  const contents = map({
1153
1139
  $metadata: deserializeMetadata(output),
@@ -1157,12 +1143,12 @@ const deserializeAws_restJson1UntagCommand = async (output, context) => {
1157
1143
  contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1158
1144
  }
1159
1145
  if (data.Keys != null) {
1160
- contents.Keys = deserializeAws_restJson1TagKeyList(data.Keys, context);
1146
+ contents.Keys = de_TagKeyList(data.Keys, context);
1161
1147
  }
1162
1148
  return contents;
1163
1149
  };
1164
- exports.deserializeAws_restJson1UntagCommand = deserializeAws_restJson1UntagCommand;
1165
- const deserializeAws_restJson1UntagCommandError = async (output, context) => {
1150
+ exports.de_UntagCommand = de_UntagCommand;
1151
+ const de_UntagCommandError = async (output, context) => {
1166
1152
  const parsedOutput = {
1167
1153
  ...output,
1168
1154
  body: await parseErrorBody(output.body, context),
@@ -1171,22 +1157,22 @@ const deserializeAws_restJson1UntagCommandError = async (output, context) => {
1171
1157
  switch (errorCode) {
1172
1158
  case "BadRequestException":
1173
1159
  case "com.amazonaws.resourcegroups#BadRequestException":
1174
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1160
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1175
1161
  case "ForbiddenException":
1176
1162
  case "com.amazonaws.resourcegroups#ForbiddenException":
1177
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1163
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1178
1164
  case "InternalServerErrorException":
1179
1165
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
1180
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1166
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1181
1167
  case "MethodNotAllowedException":
1182
1168
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
1183
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
1169
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
1184
1170
  case "NotFoundException":
1185
1171
  case "com.amazonaws.resourcegroups#NotFoundException":
1186
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1172
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1187
1173
  case "TooManyRequestsException":
1188
1174
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
1189
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1175
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1190
1176
  default:
1191
1177
  const parsedBody = parsedOutput.body;
1192
1178
  (0, smithy_client_1.throwDefaultError)({
@@ -1197,21 +1183,21 @@ const deserializeAws_restJson1UntagCommandError = async (output, context) => {
1197
1183
  });
1198
1184
  }
1199
1185
  };
1200
- const deserializeAws_restJson1UpdateAccountSettingsCommand = async (output, context) => {
1186
+ const de_UpdateAccountSettingsCommand = async (output, context) => {
1201
1187
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1202
- return deserializeAws_restJson1UpdateAccountSettingsCommandError(output, context);
1188
+ return de_UpdateAccountSettingsCommandError(output, context);
1203
1189
  }
1204
1190
  const contents = map({
1205
1191
  $metadata: deserializeMetadata(output),
1206
1192
  });
1207
1193
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1208
1194
  if (data.AccountSettings != null) {
1209
- contents.AccountSettings = deserializeAws_restJson1AccountSettings(data.AccountSettings, context);
1195
+ contents.AccountSettings = de_AccountSettings(data.AccountSettings, context);
1210
1196
  }
1211
1197
  return contents;
1212
1198
  };
1213
- exports.deserializeAws_restJson1UpdateAccountSettingsCommand = deserializeAws_restJson1UpdateAccountSettingsCommand;
1214
- const deserializeAws_restJson1UpdateAccountSettingsCommandError = async (output, context) => {
1199
+ exports.de_UpdateAccountSettingsCommand = de_UpdateAccountSettingsCommand;
1200
+ const de_UpdateAccountSettingsCommandError = async (output, context) => {
1215
1201
  const parsedOutput = {
1216
1202
  ...output,
1217
1203
  body: await parseErrorBody(output.body, context),
@@ -1220,19 +1206,19 @@ const deserializeAws_restJson1UpdateAccountSettingsCommandError = async (output,
1220
1206
  switch (errorCode) {
1221
1207
  case "BadRequestException":
1222
1208
  case "com.amazonaws.resourcegroups#BadRequestException":
1223
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1209
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1224
1210
  case "ForbiddenException":
1225
1211
  case "com.amazonaws.resourcegroups#ForbiddenException":
1226
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1212
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1227
1213
  case "InternalServerErrorException":
1228
1214
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
1229
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1215
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1230
1216
  case "MethodNotAllowedException":
1231
1217
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
1232
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
1218
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
1233
1219
  case "TooManyRequestsException":
1234
1220
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
1235
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1221
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1236
1222
  default:
1237
1223
  const parsedBody = parsedOutput.body;
1238
1224
  (0, smithy_client_1.throwDefaultError)({
@@ -1243,21 +1229,21 @@ const deserializeAws_restJson1UpdateAccountSettingsCommandError = async (output,
1243
1229
  });
1244
1230
  }
1245
1231
  };
1246
- const deserializeAws_restJson1UpdateGroupCommand = async (output, context) => {
1232
+ const de_UpdateGroupCommand = async (output, context) => {
1247
1233
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1248
- return deserializeAws_restJson1UpdateGroupCommandError(output, context);
1234
+ return de_UpdateGroupCommandError(output, context);
1249
1235
  }
1250
1236
  const contents = map({
1251
1237
  $metadata: deserializeMetadata(output),
1252
1238
  });
1253
1239
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1254
1240
  if (data.Group != null) {
1255
- contents.Group = deserializeAws_restJson1Group(data.Group, context);
1241
+ contents.Group = de_Group(data.Group, context);
1256
1242
  }
1257
1243
  return contents;
1258
1244
  };
1259
- exports.deserializeAws_restJson1UpdateGroupCommand = deserializeAws_restJson1UpdateGroupCommand;
1260
- const deserializeAws_restJson1UpdateGroupCommandError = async (output, context) => {
1245
+ exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
1246
+ const de_UpdateGroupCommandError = async (output, context) => {
1261
1247
  const parsedOutput = {
1262
1248
  ...output,
1263
1249
  body: await parseErrorBody(output.body, context),
@@ -1266,22 +1252,22 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
1266
1252
  switch (errorCode) {
1267
1253
  case "BadRequestException":
1268
1254
  case "com.amazonaws.resourcegroups#BadRequestException":
1269
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1255
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1270
1256
  case "ForbiddenException":
1271
1257
  case "com.amazonaws.resourcegroups#ForbiddenException":
1272
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1258
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1273
1259
  case "InternalServerErrorException":
1274
1260
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
1275
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1261
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1276
1262
  case "MethodNotAllowedException":
1277
1263
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
1278
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
1264
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
1279
1265
  case "NotFoundException":
1280
1266
  case "com.amazonaws.resourcegroups#NotFoundException":
1281
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1267
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1282
1268
  case "TooManyRequestsException":
1283
1269
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
1284
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1270
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1285
1271
  default:
1286
1272
  const parsedBody = parsedOutput.body;
1287
1273
  (0, smithy_client_1.throwDefaultError)({
@@ -1292,21 +1278,21 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
1292
1278
  });
1293
1279
  }
1294
1280
  };
1295
- const deserializeAws_restJson1UpdateGroupQueryCommand = async (output, context) => {
1281
+ const de_UpdateGroupQueryCommand = async (output, context) => {
1296
1282
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1297
- return deserializeAws_restJson1UpdateGroupQueryCommandError(output, context);
1283
+ return de_UpdateGroupQueryCommandError(output, context);
1298
1284
  }
1299
1285
  const contents = map({
1300
1286
  $metadata: deserializeMetadata(output),
1301
1287
  });
1302
1288
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1303
1289
  if (data.GroupQuery != null) {
1304
- contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
1290
+ contents.GroupQuery = de_GroupQuery(data.GroupQuery, context);
1305
1291
  }
1306
1292
  return contents;
1307
1293
  };
1308
- exports.deserializeAws_restJson1UpdateGroupQueryCommand = deserializeAws_restJson1UpdateGroupQueryCommand;
1309
- const deserializeAws_restJson1UpdateGroupQueryCommandError = async (output, context) => {
1294
+ exports.de_UpdateGroupQueryCommand = de_UpdateGroupQueryCommand;
1295
+ const de_UpdateGroupQueryCommandError = async (output, context) => {
1310
1296
  const parsedOutput = {
1311
1297
  ...output,
1312
1298
  body: await parseErrorBody(output.body, context),
@@ -1315,22 +1301,22 @@ const deserializeAws_restJson1UpdateGroupQueryCommandError = async (output, cont
1315
1301
  switch (errorCode) {
1316
1302
  case "BadRequestException":
1317
1303
  case "com.amazonaws.resourcegroups#BadRequestException":
1318
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1304
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1319
1305
  case "ForbiddenException":
1320
1306
  case "com.amazonaws.resourcegroups#ForbiddenException":
1321
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1307
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1322
1308
  case "InternalServerErrorException":
1323
1309
  case "com.amazonaws.resourcegroups#InternalServerErrorException":
1324
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
1310
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1325
1311
  case "MethodNotAllowedException":
1326
1312
  case "com.amazonaws.resourcegroups#MethodNotAllowedException":
1327
- throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
1313
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
1328
1314
  case "NotFoundException":
1329
1315
  case "com.amazonaws.resourcegroups#NotFoundException":
1330
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1316
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1331
1317
  case "TooManyRequestsException":
1332
1318
  case "com.amazonaws.resourcegroups#TooManyRequestsException":
1333
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1319
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1334
1320
  default:
1335
1321
  const parsedBody = parsedOutput.body;
1336
1322
  (0, smithy_client_1.throwDefaultError)({
@@ -1342,7 +1328,7 @@ const deserializeAws_restJson1UpdateGroupQueryCommandError = async (output, cont
1342
1328
  }
1343
1329
  };
1344
1330
  const map = smithy_client_1.map;
1345
- const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
1331
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1346
1332
  const contents = map({});
1347
1333
  const data = parsedOutput.body;
1348
1334
  if (data.Message != null) {
@@ -1354,7 +1340,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
1354
1340
  });
1355
1341
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1356
1342
  };
1357
- const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
1343
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1358
1344
  const contents = map({});
1359
1345
  const data = parsedOutput.body;
1360
1346
  if (data.Message != null) {
@@ -1366,7 +1352,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
1366
1352
  });
1367
1353
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1368
1354
  };
1369
- const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
1355
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
1370
1356
  const contents = map({});
1371
1357
  const data = parsedOutput.body;
1372
1358
  if (data.Message != null) {
@@ -1378,7 +1364,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
1378
1364
  });
1379
1365
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1380
1366
  };
1381
- const deserializeAws_restJson1MethodNotAllowedExceptionResponse = async (parsedOutput, context) => {
1367
+ const de_MethodNotAllowedExceptionRes = async (parsedOutput, context) => {
1382
1368
  const contents = map({});
1383
1369
  const data = parsedOutput.body;
1384
1370
  if (data.Message != null) {
@@ -1390,7 +1376,7 @@ const deserializeAws_restJson1MethodNotAllowedExceptionResponse = async (parsedO
1390
1376
  });
1391
1377
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1392
1378
  };
1393
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
1379
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1394
1380
  const contents = map({});
1395
1381
  const data = parsedOutput.body;
1396
1382
  if (data.Message != null) {
@@ -1402,7 +1388,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
1402
1388
  });
1403
1389
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1404
1390
  };
1405
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1391
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1406
1392
  const contents = map({});
1407
1393
  const data = parsedOutput.body;
1408
1394
  if (data.Message != null) {
@@ -1414,7 +1400,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
1414
1400
  });
1415
1401
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1416
1402
  };
1417
- const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
1403
+ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
1418
1404
  const contents = map({});
1419
1405
  const data = parsedOutput.body;
1420
1406
  if (data.Message != null) {
@@ -1426,104 +1412,100 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
1426
1412
  });
1427
1413
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1428
1414
  };
1429
- const serializeAws_restJson1GroupConfigurationItem = (input, context) => {
1415
+ const se_GroupConfigurationItem = (input, context) => {
1430
1416
  return {
1431
- ...(input.Parameters != null && {
1432
- Parameters: serializeAws_restJson1GroupParameterList(input.Parameters, context),
1433
- }),
1417
+ ...(input.Parameters != null && { Parameters: se_GroupParameterList(input.Parameters, context) }),
1434
1418
  ...(input.Type != null && { Type: input.Type }),
1435
1419
  };
1436
1420
  };
1437
- const serializeAws_restJson1GroupConfigurationList = (input, context) => {
1421
+ const se_GroupConfigurationList = (input, context) => {
1438
1422
  return input
1439
1423
  .filter((e) => e != null)
1440
1424
  .map((entry) => {
1441
- return serializeAws_restJson1GroupConfigurationItem(entry, context);
1425
+ return se_GroupConfigurationItem(entry, context);
1442
1426
  });
1443
1427
  };
1444
- const serializeAws_restJson1GroupConfigurationParameter = (input, context) => {
1428
+ const se_GroupConfigurationParameter = (input, context) => {
1445
1429
  return {
1446
1430
  ...(input.Name != null && { Name: input.Name }),
1447
- ...(input.Values != null && {
1448
- Values: serializeAws_restJson1GroupConfigurationParameterValueList(input.Values, context),
1449
- }),
1431
+ ...(input.Values != null && { Values: se_GroupConfigurationParameterValueList(input.Values, context) }),
1450
1432
  };
1451
1433
  };
1452
- const serializeAws_restJson1GroupConfigurationParameterValueList = (input, context) => {
1434
+ const se_GroupConfigurationParameterValueList = (input, context) => {
1453
1435
  return input
1454
1436
  .filter((e) => e != null)
1455
1437
  .map((entry) => {
1456
1438
  return entry;
1457
1439
  });
1458
1440
  };
1459
- const serializeAws_restJson1GroupFilter = (input, context) => {
1441
+ const se_GroupFilter = (input, context) => {
1460
1442
  return {
1461
1443
  ...(input.Name != null && { Name: input.Name }),
1462
- ...(input.Values != null && { Values: serializeAws_restJson1GroupFilterValues(input.Values, context) }),
1444
+ ...(input.Values != null && { Values: se_GroupFilterValues(input.Values, context) }),
1463
1445
  };
1464
1446
  };
1465
- const serializeAws_restJson1GroupFilterList = (input, context) => {
1447
+ const se_GroupFilterList = (input, context) => {
1466
1448
  return input
1467
1449
  .filter((e) => e != null)
1468
1450
  .map((entry) => {
1469
- return serializeAws_restJson1GroupFilter(entry, context);
1451
+ return se_GroupFilter(entry, context);
1470
1452
  });
1471
1453
  };
1472
- const serializeAws_restJson1GroupFilterValues = (input, context) => {
1454
+ const se_GroupFilterValues = (input, context) => {
1473
1455
  return input
1474
1456
  .filter((e) => e != null)
1475
1457
  .map((entry) => {
1476
1458
  return entry;
1477
1459
  });
1478
1460
  };
1479
- const serializeAws_restJson1GroupParameterList = (input, context) => {
1461
+ const se_GroupParameterList = (input, context) => {
1480
1462
  return input
1481
1463
  .filter((e) => e != null)
1482
1464
  .map((entry) => {
1483
- return serializeAws_restJson1GroupConfigurationParameter(entry, context);
1465
+ return se_GroupConfigurationParameter(entry, context);
1484
1466
  });
1485
1467
  };
1486
- const serializeAws_restJson1ResourceArnList = (input, context) => {
1468
+ const se_ResourceArnList = (input, context) => {
1487
1469
  return input
1488
1470
  .filter((e) => e != null)
1489
1471
  .map((entry) => {
1490
1472
  return entry;
1491
1473
  });
1492
1474
  };
1493
- const serializeAws_restJson1ResourceFilter = (input, context) => {
1475
+ const se_ResourceFilter = (input, context) => {
1494
1476
  return {
1495
1477
  ...(input.Name != null && { Name: input.Name }),
1496
- ...(input.Values != null && { Values: serializeAws_restJson1ResourceFilterValues(input.Values, context) }),
1478
+ ...(input.Values != null && { Values: se_ResourceFilterValues(input.Values, context) }),
1497
1479
  };
1498
1480
  };
1499
- const serializeAws_restJson1ResourceFilterList = (input, context) => {
1481
+ const se_ResourceFilterList = (input, context) => {
1500
1482
  return input
1501
1483
  .filter((e) => e != null)
1502
1484
  .map((entry) => {
1503
- return serializeAws_restJson1ResourceFilter(entry, context);
1485
+ return se_ResourceFilter(entry, context);
1504
1486
  });
1505
1487
  };
1506
- const serializeAws_restJson1ResourceFilterValues = (input, context) => {
1488
+ const se_ResourceFilterValues = (input, context) => {
1507
1489
  return input
1508
1490
  .filter((e) => e != null)
1509
1491
  .map((entry) => {
1510
1492
  return entry;
1511
1493
  });
1512
1494
  };
1513
- const serializeAws_restJson1ResourceQuery = (input, context) => {
1495
+ const se_ResourceQuery = (input, context) => {
1514
1496
  return {
1515
1497
  ...(input.Query != null && { Query: input.Query }),
1516
1498
  ...(input.Type != null && { Type: input.Type }),
1517
1499
  };
1518
1500
  };
1519
- const serializeAws_restJson1TagKeyList = (input, context) => {
1501
+ const se_TagKeyList = (input, context) => {
1520
1502
  return input
1521
1503
  .filter((e) => e != null)
1522
1504
  .map((entry) => {
1523
1505
  return entry;
1524
1506
  });
1525
1507
  };
1526
- const serializeAws_restJson1Tags = (input, context) => {
1508
+ const se_Tags = (input, context) => {
1527
1509
  return Object.entries(input).reduce((acc, [key, value]) => {
1528
1510
  if (value === null) {
1529
1511
  return acc;
@@ -1532,76 +1514,72 @@ const serializeAws_restJson1Tags = (input, context) => {
1532
1514
  return acc;
1533
1515
  }, {});
1534
1516
  };
1535
- const deserializeAws_restJson1AccountSettings = (output, context) => {
1517
+ const de_AccountSettings = (output, context) => {
1536
1518
  return {
1537
1519
  GroupLifecycleEventsDesiredStatus: (0, smithy_client_1.expectString)(output.GroupLifecycleEventsDesiredStatus),
1538
1520
  GroupLifecycleEventsStatus: (0, smithy_client_1.expectString)(output.GroupLifecycleEventsStatus),
1539
1521
  GroupLifecycleEventsStatusMessage: (0, smithy_client_1.expectString)(output.GroupLifecycleEventsStatusMessage),
1540
1522
  };
1541
1523
  };
1542
- const deserializeAws_restJson1FailedResource = (output, context) => {
1524
+ const de_FailedResource = (output, context) => {
1543
1525
  return {
1544
1526
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
1545
1527
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
1546
1528
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
1547
1529
  };
1548
1530
  };
1549
- const deserializeAws_restJson1FailedResourceList = (output, context) => {
1531
+ const de_FailedResourceList = (output, context) => {
1550
1532
  const retVal = (output || [])
1551
1533
  .filter((e) => e != null)
1552
1534
  .map((entry) => {
1553
1535
  if (entry === null) {
1554
1536
  return null;
1555
1537
  }
1556
- return deserializeAws_restJson1FailedResource(entry, context);
1538
+ return de_FailedResource(entry, context);
1557
1539
  });
1558
1540
  return retVal;
1559
1541
  };
1560
- const deserializeAws_restJson1Group = (output, context) => {
1542
+ const de_Group = (output, context) => {
1561
1543
  return {
1562
1544
  Description: (0, smithy_client_1.expectString)(output.Description),
1563
1545
  GroupArn: (0, smithy_client_1.expectString)(output.GroupArn),
1564
1546
  Name: (0, smithy_client_1.expectString)(output.Name),
1565
1547
  };
1566
1548
  };
1567
- const deserializeAws_restJson1GroupConfiguration = (output, context) => {
1549
+ const de_GroupConfiguration = (output, context) => {
1568
1550
  return {
1569
- Configuration: output.Configuration != null
1570
- ? deserializeAws_restJson1GroupConfigurationList(output.Configuration, context)
1571
- : undefined,
1551
+ Configuration: output.Configuration != null ? de_GroupConfigurationList(output.Configuration, context) : undefined,
1572
1552
  FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
1573
1553
  ProposedConfiguration: output.ProposedConfiguration != null
1574
- ? deserializeAws_restJson1GroupConfigurationList(output.ProposedConfiguration, context)
1554
+ ? de_GroupConfigurationList(output.ProposedConfiguration, context)
1575
1555
  : undefined,
1576
1556
  Status: (0, smithy_client_1.expectString)(output.Status),
1577
1557
  };
1578
1558
  };
1579
- const deserializeAws_restJson1GroupConfigurationItem = (output, context) => {
1559
+ const de_GroupConfigurationItem = (output, context) => {
1580
1560
  return {
1581
- Parameters: output.Parameters != null ? deserializeAws_restJson1GroupParameterList(output.Parameters, context) : undefined,
1561
+ Parameters: output.Parameters != null ? de_GroupParameterList(output.Parameters, context) : undefined,
1582
1562
  Type: (0, smithy_client_1.expectString)(output.Type),
1583
1563
  };
1584
1564
  };
1585
- const deserializeAws_restJson1GroupConfigurationList = (output, context) => {
1565
+ const de_GroupConfigurationList = (output, context) => {
1586
1566
  const retVal = (output || [])
1587
1567
  .filter((e) => e != null)
1588
1568
  .map((entry) => {
1589
1569
  if (entry === null) {
1590
1570
  return null;
1591
1571
  }
1592
- return deserializeAws_restJson1GroupConfigurationItem(entry, context);
1572
+ return de_GroupConfigurationItem(entry, context);
1593
1573
  });
1594
1574
  return retVal;
1595
1575
  };
1596
- const deserializeAws_restJson1GroupConfigurationParameter = (output, context) => {
1576
+ const de_GroupConfigurationParameter = (output, context) => {
1597
1577
  return {
1598
1578
  Name: (0, smithy_client_1.expectString)(output.Name),
1599
- Values: output.Values != null
1600
- ? deserializeAws_restJson1GroupConfigurationParameterValueList(output.Values, context)
1601
- : undefined,
1579
+ Values: output.Values != null ? de_GroupConfigurationParameterValueList(output.Values, context) : undefined,
1602
1580
  };
1603
1581
  };
1604
- const deserializeAws_restJson1GroupConfigurationParameterValueList = (output, context) => {
1582
+ const de_GroupConfigurationParameterValueList = (output, context) => {
1605
1583
  const retVal = (output || [])
1606
1584
  .filter((e) => e != null)
1607
1585
  .map((entry) => {
@@ -1612,102 +1590,102 @@ const deserializeAws_restJson1GroupConfigurationParameterValueList = (output, co
1612
1590
  });
1613
1591
  return retVal;
1614
1592
  };
1615
- const deserializeAws_restJson1GroupIdentifier = (output, context) => {
1593
+ const de_GroupIdentifier = (output, context) => {
1616
1594
  return {
1617
1595
  GroupArn: (0, smithy_client_1.expectString)(output.GroupArn),
1618
1596
  GroupName: (0, smithy_client_1.expectString)(output.GroupName),
1619
1597
  };
1620
1598
  };
1621
- const deserializeAws_restJson1GroupIdentifierList = (output, context) => {
1599
+ const de_GroupIdentifierList = (output, context) => {
1622
1600
  const retVal = (output || [])
1623
1601
  .filter((e) => e != null)
1624
1602
  .map((entry) => {
1625
1603
  if (entry === null) {
1626
1604
  return null;
1627
1605
  }
1628
- return deserializeAws_restJson1GroupIdentifier(entry, context);
1606
+ return de_GroupIdentifier(entry, context);
1629
1607
  });
1630
1608
  return retVal;
1631
1609
  };
1632
- const deserializeAws_restJson1GroupList = (output, context) => {
1610
+ const de_GroupList = (output, context) => {
1633
1611
  const retVal = (output || [])
1634
1612
  .filter((e) => e != null)
1635
1613
  .map((entry) => {
1636
1614
  if (entry === null) {
1637
1615
  return null;
1638
1616
  }
1639
- return deserializeAws_restJson1Group(entry, context);
1617
+ return de_Group(entry, context);
1640
1618
  });
1641
1619
  return retVal;
1642
1620
  };
1643
- const deserializeAws_restJson1GroupParameterList = (output, context) => {
1621
+ const de_GroupParameterList = (output, context) => {
1644
1622
  const retVal = (output || [])
1645
1623
  .filter((e) => e != null)
1646
1624
  .map((entry) => {
1647
1625
  if (entry === null) {
1648
1626
  return null;
1649
1627
  }
1650
- return deserializeAws_restJson1GroupConfigurationParameter(entry, context);
1628
+ return de_GroupConfigurationParameter(entry, context);
1651
1629
  });
1652
1630
  return retVal;
1653
1631
  };
1654
- const deserializeAws_restJson1GroupQuery = (output, context) => {
1632
+ const de_GroupQuery = (output, context) => {
1655
1633
  return {
1656
1634
  GroupName: (0, smithy_client_1.expectString)(output.GroupName),
1657
- ResourceQuery: output.ResourceQuery != null ? deserializeAws_restJson1ResourceQuery(output.ResourceQuery, context) : undefined,
1635
+ ResourceQuery: output.ResourceQuery != null ? de_ResourceQuery(output.ResourceQuery, context) : undefined,
1658
1636
  };
1659
1637
  };
1660
- const deserializeAws_restJson1ListGroupResourcesItem = (output, context) => {
1638
+ const de_ListGroupResourcesItem = (output, context) => {
1661
1639
  return {
1662
- Identifier: output.Identifier != null ? deserializeAws_restJson1ResourceIdentifier(output.Identifier, context) : undefined,
1663
- Status: output.Status != null ? deserializeAws_restJson1ResourceStatus(output.Status, context) : undefined,
1640
+ Identifier: output.Identifier != null ? de_ResourceIdentifier(output.Identifier, context) : undefined,
1641
+ Status: output.Status != null ? de_ResourceStatus(output.Status, context) : undefined,
1664
1642
  };
1665
1643
  };
1666
- const deserializeAws_restJson1ListGroupResourcesItemList = (output, context) => {
1644
+ const de_ListGroupResourcesItemList = (output, context) => {
1667
1645
  const retVal = (output || [])
1668
1646
  .filter((e) => e != null)
1669
1647
  .map((entry) => {
1670
1648
  if (entry === null) {
1671
1649
  return null;
1672
1650
  }
1673
- return deserializeAws_restJson1ListGroupResourcesItem(entry, context);
1651
+ return de_ListGroupResourcesItem(entry, context);
1674
1652
  });
1675
1653
  return retVal;
1676
1654
  };
1677
- const deserializeAws_restJson1PendingResource = (output, context) => {
1655
+ const de_PendingResource = (output, context) => {
1678
1656
  return {
1679
1657
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
1680
1658
  };
1681
1659
  };
1682
- const deserializeAws_restJson1PendingResourceList = (output, context) => {
1660
+ const de_PendingResourceList = (output, context) => {
1683
1661
  const retVal = (output || [])
1684
1662
  .filter((e) => e != null)
1685
1663
  .map((entry) => {
1686
1664
  if (entry === null) {
1687
1665
  return null;
1688
1666
  }
1689
- return deserializeAws_restJson1PendingResource(entry, context);
1667
+ return de_PendingResource(entry, context);
1690
1668
  });
1691
1669
  return retVal;
1692
1670
  };
1693
- const deserializeAws_restJson1QueryError = (output, context) => {
1671
+ const de_QueryError = (output, context) => {
1694
1672
  return {
1695
1673
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
1696
1674
  Message: (0, smithy_client_1.expectString)(output.Message),
1697
1675
  };
1698
1676
  };
1699
- const deserializeAws_restJson1QueryErrorList = (output, context) => {
1677
+ const de_QueryErrorList = (output, context) => {
1700
1678
  const retVal = (output || [])
1701
1679
  .filter((e) => e != null)
1702
1680
  .map((entry) => {
1703
1681
  if (entry === null) {
1704
1682
  return null;
1705
1683
  }
1706
- return deserializeAws_restJson1QueryError(entry, context);
1684
+ return de_QueryError(entry, context);
1707
1685
  });
1708
1686
  return retVal;
1709
1687
  };
1710
- const deserializeAws_restJson1ResourceArnList = (output, context) => {
1688
+ const de_ResourceArnList = (output, context) => {
1711
1689
  const retVal = (output || [])
1712
1690
  .filter((e) => e != null)
1713
1691
  .map((entry) => {
@@ -1718,35 +1696,35 @@ const deserializeAws_restJson1ResourceArnList = (output, context) => {
1718
1696
  });
1719
1697
  return retVal;
1720
1698
  };
1721
- const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
1699
+ const de_ResourceIdentifier = (output, context) => {
1722
1700
  return {
1723
1701
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
1724
1702
  ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
1725
1703
  };
1726
1704
  };
1727
- const deserializeAws_restJson1ResourceIdentifierList = (output, context) => {
1705
+ const de_ResourceIdentifierList = (output, context) => {
1728
1706
  const retVal = (output || [])
1729
1707
  .filter((e) => e != null)
1730
1708
  .map((entry) => {
1731
1709
  if (entry === null) {
1732
1710
  return null;
1733
1711
  }
1734
- return deserializeAws_restJson1ResourceIdentifier(entry, context);
1712
+ return de_ResourceIdentifier(entry, context);
1735
1713
  });
1736
1714
  return retVal;
1737
1715
  };
1738
- const deserializeAws_restJson1ResourceQuery = (output, context) => {
1716
+ const de_ResourceQuery = (output, context) => {
1739
1717
  return {
1740
1718
  Query: (0, smithy_client_1.expectString)(output.Query),
1741
1719
  Type: (0, smithy_client_1.expectString)(output.Type),
1742
1720
  };
1743
1721
  };
1744
- const deserializeAws_restJson1ResourceStatus = (output, context) => {
1722
+ const de_ResourceStatus = (output, context) => {
1745
1723
  return {
1746
1724
  Name: (0, smithy_client_1.expectString)(output.Name),
1747
1725
  };
1748
1726
  };
1749
- const deserializeAws_restJson1TagKeyList = (output, context) => {
1727
+ const de_TagKeyList = (output, context) => {
1750
1728
  const retVal = (output || [])
1751
1729
  .filter((e) => e != null)
1752
1730
  .map((entry) => {
@@ -1757,7 +1735,7 @@ const deserializeAws_restJson1TagKeyList = (output, context) => {
1757
1735
  });
1758
1736
  return retVal;
1759
1737
  };
1760
- const deserializeAws_restJson1Tags = (output, context) => {
1738
+ const de_Tags = (output, context) => {
1761
1739
  return Object.entries(output).reduce((acc, [key, value]) => {
1762
1740
  if (value === null) {
1763
1741
  return acc;