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