@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
|
|
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
|
-
|
|
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.
|
|
37
|
-
const
|
|
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.
|
|
59
|
-
const
|
|
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.
|
|
78
|
-
const
|
|
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.
|
|
100
|
-
const
|
|
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.
|
|
121
|
-
const
|
|
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.
|
|
143
|
-
const
|
|
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.
|
|
160
|
-
const
|
|
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.
|
|
184
|
-
const
|
|
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:
|
|
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.
|
|
209
|
-
const
|
|
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:
|
|
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.
|
|
235
|
-
const
|
|
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.
|
|
259
|
-
const
|
|
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.
|
|
284
|
-
const
|
|
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:
|
|
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.
|
|
306
|
-
const
|
|
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.
|
|
330
|
-
const
|
|
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:
|
|
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.
|
|
352
|
-
const
|
|
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.
|
|
375
|
-
const
|
|
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.
|
|
398
|
-
const
|
|
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.
|
|
423
|
-
const
|
|
408
|
+
exports.se_UpdateGroupQueryCommand = se_UpdateGroupQueryCommand;
|
|
409
|
+
const de_CreateGroupCommand = async (output, context) => {
|
|
424
410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
425
|
-
return
|
|
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 =
|
|
418
|
+
contents.Group = de_Group(data.Group, context);
|
|
433
419
|
}
|
|
434
420
|
if (data.GroupConfiguration != null) {
|
|
435
|
-
contents.GroupConfiguration =
|
|
421
|
+
contents.GroupConfiguration = de_GroupConfiguration(data.GroupConfiguration, context);
|
|
436
422
|
}
|
|
437
423
|
if (data.ResourceQuery != null) {
|
|
438
|
-
contents.ResourceQuery =
|
|
424
|
+
contents.ResourceQuery = de_ResourceQuery(data.ResourceQuery, context);
|
|
439
425
|
}
|
|
440
426
|
if (data.Tags != null) {
|
|
441
|
-
contents.Tags =
|
|
427
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
442
428
|
}
|
|
443
429
|
return contents;
|
|
444
430
|
};
|
|
445
|
-
exports.
|
|
446
|
-
const
|
|
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
|
|
441
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
456
442
|
case "ForbiddenException":
|
|
457
443
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
458
|
-
throw await
|
|
444
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
459
445
|
case "InternalServerErrorException":
|
|
460
446
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
461
|
-
throw await
|
|
447
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
462
448
|
case "MethodNotAllowedException":
|
|
463
449
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
464
|
-
throw await
|
|
450
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
465
451
|
case "TooManyRequestsException":
|
|
466
452
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
467
|
-
throw await
|
|
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
|
|
464
|
+
const de_DeleteGroupCommand = async (output, context) => {
|
|
479
465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return
|
|
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 =
|
|
473
|
+
contents.Group = de_Group(data.Group, context);
|
|
488
474
|
}
|
|
489
475
|
return contents;
|
|
490
476
|
};
|
|
491
|
-
exports.
|
|
492
|
-
const
|
|
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
|
|
487
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
502
488
|
case "ForbiddenException":
|
|
503
489
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
504
|
-
throw await
|
|
490
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
505
491
|
case "InternalServerErrorException":
|
|
506
492
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
507
|
-
throw await
|
|
493
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
508
494
|
case "MethodNotAllowedException":
|
|
509
495
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
510
|
-
throw await
|
|
496
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
511
497
|
case "NotFoundException":
|
|
512
498
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
513
|
-
throw await
|
|
499
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
514
500
|
case "TooManyRequestsException":
|
|
515
501
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
516
|
-
throw await
|
|
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
|
|
513
|
+
const de_GetAccountSettingsCommand = async (output, context) => {
|
|
528
514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
529
|
-
return
|
|
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 =
|
|
522
|
+
contents.AccountSettings = de_AccountSettings(data.AccountSettings, context);
|
|
537
523
|
}
|
|
538
524
|
return contents;
|
|
539
525
|
};
|
|
540
|
-
exports.
|
|
541
|
-
const
|
|
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
|
|
536
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
551
537
|
case "ForbiddenException":
|
|
552
538
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
553
|
-
throw await
|
|
539
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
554
540
|
case "InternalServerErrorException":
|
|
555
541
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
556
|
-
throw await
|
|
542
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
557
543
|
case "MethodNotAllowedException":
|
|
558
544
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
559
|
-
throw await
|
|
545
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
560
546
|
case "TooManyRequestsException":
|
|
561
547
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
562
|
-
throw await
|
|
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
|
|
559
|
+
const de_GetGroupCommand = async (output, context) => {
|
|
574
560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
-
return
|
|
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 =
|
|
568
|
+
contents.Group = de_Group(data.Group, context);
|
|
583
569
|
}
|
|
584
570
|
return contents;
|
|
585
571
|
};
|
|
586
|
-
exports.
|
|
587
|
-
const
|
|
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
|
|
582
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
597
583
|
case "ForbiddenException":
|
|
598
584
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
599
|
-
throw await
|
|
585
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
600
586
|
case "InternalServerErrorException":
|
|
601
587
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
602
|
-
throw await
|
|
588
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
603
589
|
case "MethodNotAllowedException":
|
|
604
590
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
605
|
-
throw await
|
|
591
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
606
592
|
case "NotFoundException":
|
|
607
593
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
608
|
-
throw await
|
|
594
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
609
595
|
case "TooManyRequestsException":
|
|
610
596
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
611
|
-
throw await
|
|
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
|
|
608
|
+
const de_GetGroupConfigurationCommand = async (output, context) => {
|
|
623
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
624
|
-
return
|
|
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 =
|
|
617
|
+
contents.GroupConfiguration = de_GroupConfiguration(data.GroupConfiguration, context);
|
|
632
618
|
}
|
|
633
619
|
return contents;
|
|
634
620
|
};
|
|
635
|
-
exports.
|
|
636
|
-
const
|
|
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
|
|
631
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
646
632
|
case "ForbiddenException":
|
|
647
633
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
648
|
-
throw await
|
|
634
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
649
635
|
case "InternalServerErrorException":
|
|
650
636
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
651
|
-
throw await
|
|
637
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
652
638
|
case "MethodNotAllowedException":
|
|
653
639
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
654
|
-
throw await
|
|
640
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
655
641
|
case "NotFoundException":
|
|
656
642
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
657
|
-
throw await
|
|
643
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
658
644
|
case "TooManyRequestsException":
|
|
659
645
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
660
|
-
throw await
|
|
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
|
|
657
|
+
const de_GetGroupQueryCommand = async (output, context) => {
|
|
672
658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
673
|
-
return
|
|
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 =
|
|
666
|
+
contents.GroupQuery = de_GroupQuery(data.GroupQuery, context);
|
|
681
667
|
}
|
|
682
668
|
return contents;
|
|
683
669
|
};
|
|
684
|
-
exports.
|
|
685
|
-
const
|
|
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
|
|
680
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
695
681
|
case "ForbiddenException":
|
|
696
682
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
697
|
-
throw await
|
|
683
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
698
684
|
case "InternalServerErrorException":
|
|
699
685
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
700
|
-
throw await
|
|
686
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
701
687
|
case "MethodNotAllowedException":
|
|
702
688
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
703
|
-
throw await
|
|
689
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
704
690
|
case "NotFoundException":
|
|
705
691
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
706
|
-
throw await
|
|
692
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
707
693
|
case "TooManyRequestsException":
|
|
708
694
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
709
|
-
throw await
|
|
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
|
|
706
|
+
const de_GetTagsCommand = async (output, context) => {
|
|
721
707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
-
return
|
|
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 =
|
|
718
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
733
719
|
}
|
|
734
720
|
return contents;
|
|
735
721
|
};
|
|
736
|
-
exports.
|
|
737
|
-
const
|
|
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
|
|
732
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
747
733
|
case "ForbiddenException":
|
|
748
734
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
749
|
-
throw await
|
|
735
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
750
736
|
case "InternalServerErrorException":
|
|
751
737
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
752
|
-
throw await
|
|
738
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
753
739
|
case "MethodNotAllowedException":
|
|
754
740
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
755
|
-
throw await
|
|
741
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
756
742
|
case "NotFoundException":
|
|
757
743
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
758
|
-
throw await
|
|
744
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
759
745
|
case "TooManyRequestsException":
|
|
760
746
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
761
|
-
throw await
|
|
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
|
|
758
|
+
const de_GroupResourcesCommand = async (output, context) => {
|
|
773
759
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
774
|
-
return
|
|
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 =
|
|
767
|
+
contents.Failed = de_FailedResourceList(data.Failed, context);
|
|
782
768
|
}
|
|
783
769
|
if (data.Pending != null) {
|
|
784
|
-
contents.Pending =
|
|
770
|
+
contents.Pending = de_PendingResourceList(data.Pending, context);
|
|
785
771
|
}
|
|
786
772
|
if (data.Succeeded != null) {
|
|
787
|
-
contents.Succeeded =
|
|
773
|
+
contents.Succeeded = de_ResourceArnList(data.Succeeded, context);
|
|
788
774
|
}
|
|
789
775
|
return contents;
|
|
790
776
|
};
|
|
791
|
-
exports.
|
|
792
|
-
const
|
|
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
|
|
787
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
802
788
|
case "ForbiddenException":
|
|
803
789
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
804
|
-
throw await
|
|
790
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
805
791
|
case "InternalServerErrorException":
|
|
806
792
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
807
|
-
throw await
|
|
793
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
808
794
|
case "MethodNotAllowedException":
|
|
809
795
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
810
|
-
throw await
|
|
796
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
811
797
|
case "NotFoundException":
|
|
812
798
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
813
|
-
throw await
|
|
799
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
814
800
|
case "TooManyRequestsException":
|
|
815
801
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
816
|
-
throw await
|
|
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
|
|
813
|
+
const de_ListGroupResourcesCommand = async (output, context) => {
|
|
828
814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
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 =
|
|
825
|
+
contents.QueryErrors = de_QueryErrorList(data.QueryErrors, context);
|
|
840
826
|
}
|
|
841
827
|
if (data.ResourceIdentifiers != null) {
|
|
842
|
-
contents.ResourceIdentifiers =
|
|
828
|
+
contents.ResourceIdentifiers = de_ResourceIdentifierList(data.ResourceIdentifiers, context);
|
|
843
829
|
}
|
|
844
830
|
if (data.Resources != null) {
|
|
845
|
-
contents.Resources =
|
|
831
|
+
contents.Resources = de_ListGroupResourcesItemList(data.Resources, context);
|
|
846
832
|
}
|
|
847
833
|
return contents;
|
|
848
834
|
};
|
|
849
|
-
exports.
|
|
850
|
-
const
|
|
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
|
|
845
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
860
846
|
case "ForbiddenException":
|
|
861
847
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
862
|
-
throw await
|
|
848
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
863
849
|
case "InternalServerErrorException":
|
|
864
850
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
865
|
-
throw await
|
|
851
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
866
852
|
case "MethodNotAllowedException":
|
|
867
853
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
868
|
-
throw await
|
|
854
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
869
855
|
case "NotFoundException":
|
|
870
856
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
871
|
-
throw await
|
|
857
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
872
858
|
case "TooManyRequestsException":
|
|
873
859
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
874
|
-
throw await
|
|
860
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
875
861
|
case "UnauthorizedException":
|
|
876
862
|
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
877
|
-
throw await
|
|
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
|
|
874
|
+
const de_ListGroupsCommand = async (output, context) => {
|
|
889
875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return
|
|
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 =
|
|
883
|
+
contents.GroupIdentifiers = de_GroupIdentifierList(data.GroupIdentifiers, context);
|
|
898
884
|
}
|
|
899
885
|
if (data.Groups != null) {
|
|
900
|
-
contents.Groups =
|
|
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.
|
|
908
|
-
const
|
|
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
|
|
903
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
918
904
|
case "ForbiddenException":
|
|
919
905
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
920
|
-
throw await
|
|
906
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
921
907
|
case "InternalServerErrorException":
|
|
922
908
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
923
|
-
throw await
|
|
909
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
924
910
|
case "MethodNotAllowedException":
|
|
925
911
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
926
|
-
throw await
|
|
912
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
927
913
|
case "TooManyRequestsException":
|
|
928
914
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
929
|
-
throw await
|
|
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
|
|
926
|
+
const de_PutGroupConfigurationCommand = async (output, context) => {
|
|
941
927
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
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.
|
|
951
|
-
const
|
|
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
|
|
946
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
961
947
|
case "ForbiddenException":
|
|
962
948
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
963
|
-
throw await
|
|
949
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
964
950
|
case "InternalServerErrorException":
|
|
965
951
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
966
|
-
throw await
|
|
952
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
967
953
|
case "MethodNotAllowedException":
|
|
968
954
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
969
|
-
throw await
|
|
955
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
970
956
|
case "NotFoundException":
|
|
971
957
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
972
|
-
throw await
|
|
958
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
973
959
|
case "TooManyRequestsException":
|
|
974
960
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
975
|
-
throw await
|
|
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
|
|
972
|
+
const de_SearchResourcesCommand = async (output, context) => {
|
|
987
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
-
return
|
|
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 =
|
|
984
|
+
contents.QueryErrors = de_QueryErrorList(data.QueryErrors, context);
|
|
999
985
|
}
|
|
1000
986
|
if (data.ResourceIdentifiers != null) {
|
|
1001
|
-
contents.ResourceIdentifiers =
|
|
987
|
+
contents.ResourceIdentifiers = de_ResourceIdentifierList(data.ResourceIdentifiers, context);
|
|
1002
988
|
}
|
|
1003
989
|
return contents;
|
|
1004
990
|
};
|
|
1005
|
-
exports.
|
|
1006
|
-
const
|
|
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
|
|
1001
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1016
1002
|
case "ForbiddenException":
|
|
1017
1003
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1018
|
-
throw await
|
|
1004
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1019
1005
|
case "InternalServerErrorException":
|
|
1020
1006
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1021
|
-
throw await
|
|
1007
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1022
1008
|
case "MethodNotAllowedException":
|
|
1023
1009
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1024
|
-
throw await
|
|
1010
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1025
1011
|
case "TooManyRequestsException":
|
|
1026
1012
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1027
|
-
throw await
|
|
1013
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1028
1014
|
case "UnauthorizedException":
|
|
1029
1015
|
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
1030
|
-
throw await
|
|
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
|
|
1027
|
+
const de_TagCommand = async (output, context) => {
|
|
1042
1028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1043
|
-
return
|
|
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 =
|
|
1039
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
1054
1040
|
}
|
|
1055
1041
|
return contents;
|
|
1056
1042
|
};
|
|
1057
|
-
exports.
|
|
1058
|
-
const
|
|
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
|
|
1053
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1068
1054
|
case "ForbiddenException":
|
|
1069
1055
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1070
|
-
throw await
|
|
1056
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1071
1057
|
case "InternalServerErrorException":
|
|
1072
1058
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1073
|
-
throw await
|
|
1059
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1074
1060
|
case "MethodNotAllowedException":
|
|
1075
1061
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1076
|
-
throw await
|
|
1062
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1077
1063
|
case "NotFoundException":
|
|
1078
1064
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1079
|
-
throw await
|
|
1065
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1080
1066
|
case "TooManyRequestsException":
|
|
1081
1067
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1082
|
-
throw await
|
|
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
|
|
1079
|
+
const de_UngroupResourcesCommand = async (output, context) => {
|
|
1094
1080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1095
|
-
return
|
|
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 =
|
|
1088
|
+
contents.Failed = de_FailedResourceList(data.Failed, context);
|
|
1103
1089
|
}
|
|
1104
1090
|
if (data.Pending != null) {
|
|
1105
|
-
contents.Pending =
|
|
1091
|
+
contents.Pending = de_PendingResourceList(data.Pending, context);
|
|
1106
1092
|
}
|
|
1107
1093
|
if (data.Succeeded != null) {
|
|
1108
|
-
contents.Succeeded =
|
|
1094
|
+
contents.Succeeded = de_ResourceArnList(data.Succeeded, context);
|
|
1109
1095
|
}
|
|
1110
1096
|
return contents;
|
|
1111
1097
|
};
|
|
1112
|
-
exports.
|
|
1113
|
-
const
|
|
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
|
|
1108
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1123
1109
|
case "ForbiddenException":
|
|
1124
1110
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1125
|
-
throw await
|
|
1111
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1126
1112
|
case "InternalServerErrorException":
|
|
1127
1113
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1128
|
-
throw await
|
|
1114
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1129
1115
|
case "MethodNotAllowedException":
|
|
1130
1116
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1131
|
-
throw await
|
|
1117
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1132
1118
|
case "NotFoundException":
|
|
1133
1119
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1134
|
-
throw await
|
|
1120
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1135
1121
|
case "TooManyRequestsException":
|
|
1136
1122
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1137
|
-
throw await
|
|
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
|
|
1134
|
+
const de_UntagCommand = async (output, context) => {
|
|
1149
1135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
|
-
return
|
|
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 =
|
|
1146
|
+
contents.Keys = de_TagKeyList(data.Keys, context);
|
|
1161
1147
|
}
|
|
1162
1148
|
return contents;
|
|
1163
1149
|
};
|
|
1164
|
-
exports.
|
|
1165
|
-
const
|
|
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
|
|
1160
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1175
1161
|
case "ForbiddenException":
|
|
1176
1162
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1177
|
-
throw await
|
|
1163
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1178
1164
|
case "InternalServerErrorException":
|
|
1179
1165
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1180
|
-
throw await
|
|
1166
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1181
1167
|
case "MethodNotAllowedException":
|
|
1182
1168
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1183
|
-
throw await
|
|
1169
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1184
1170
|
case "NotFoundException":
|
|
1185
1171
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1186
|
-
throw await
|
|
1172
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1187
1173
|
case "TooManyRequestsException":
|
|
1188
1174
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1189
|
-
throw await
|
|
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
|
|
1186
|
+
const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
1201
1187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
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 =
|
|
1195
|
+
contents.AccountSettings = de_AccountSettings(data.AccountSettings, context);
|
|
1210
1196
|
}
|
|
1211
1197
|
return contents;
|
|
1212
1198
|
};
|
|
1213
|
-
exports.
|
|
1214
|
-
const
|
|
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
|
|
1209
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1224
1210
|
case "ForbiddenException":
|
|
1225
1211
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1226
|
-
throw await
|
|
1212
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1227
1213
|
case "InternalServerErrorException":
|
|
1228
1214
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1229
|
-
throw await
|
|
1215
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1230
1216
|
case "MethodNotAllowedException":
|
|
1231
1217
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1232
|
-
throw await
|
|
1218
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1233
1219
|
case "TooManyRequestsException":
|
|
1234
1220
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1235
|
-
throw await
|
|
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
|
|
1232
|
+
const de_UpdateGroupCommand = async (output, context) => {
|
|
1247
1233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1248
|
-
return
|
|
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 =
|
|
1241
|
+
contents.Group = de_Group(data.Group, context);
|
|
1256
1242
|
}
|
|
1257
1243
|
return contents;
|
|
1258
1244
|
};
|
|
1259
|
-
exports.
|
|
1260
|
-
const
|
|
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
|
|
1255
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1270
1256
|
case "ForbiddenException":
|
|
1271
1257
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1272
|
-
throw await
|
|
1258
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1273
1259
|
case "InternalServerErrorException":
|
|
1274
1260
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1275
|
-
throw await
|
|
1261
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1276
1262
|
case "MethodNotAllowedException":
|
|
1277
1263
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1278
|
-
throw await
|
|
1264
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1279
1265
|
case "NotFoundException":
|
|
1280
1266
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1281
|
-
throw await
|
|
1267
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1282
1268
|
case "TooManyRequestsException":
|
|
1283
1269
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1284
|
-
throw await
|
|
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
|
|
1281
|
+
const de_UpdateGroupQueryCommand = async (output, context) => {
|
|
1296
1282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1297
|
-
return
|
|
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 =
|
|
1290
|
+
contents.GroupQuery = de_GroupQuery(data.GroupQuery, context);
|
|
1305
1291
|
}
|
|
1306
1292
|
return contents;
|
|
1307
1293
|
};
|
|
1308
|
-
exports.
|
|
1309
|
-
const
|
|
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
|
|
1304
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1319
1305
|
case "ForbiddenException":
|
|
1320
1306
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1321
|
-
throw await
|
|
1307
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1322
1308
|
case "InternalServerErrorException":
|
|
1323
1309
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1324
|
-
throw await
|
|
1310
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1325
1311
|
case "MethodNotAllowedException":
|
|
1326
1312
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1327
|
-
throw await
|
|
1313
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1328
1314
|
case "NotFoundException":
|
|
1329
1315
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1330
|
-
throw await
|
|
1316
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1331
1317
|
case "TooManyRequestsException":
|
|
1332
1318
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1333
|
-
throw await
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1421
|
+
const se_GroupConfigurationList = (input, context) => {
|
|
1438
1422
|
return input
|
|
1439
1423
|
.filter((e) => e != null)
|
|
1440
1424
|
.map((entry) => {
|
|
1441
|
-
return
|
|
1425
|
+
return se_GroupConfigurationItem(entry, context);
|
|
1442
1426
|
});
|
|
1443
1427
|
};
|
|
1444
|
-
const
|
|
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
|
|
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
|
|
1441
|
+
const se_GroupFilter = (input, context) => {
|
|
1460
1442
|
return {
|
|
1461
1443
|
...(input.Name != null && { Name: input.Name }),
|
|
1462
|
-
...(input.Values != null && { Values:
|
|
1444
|
+
...(input.Values != null && { Values: se_GroupFilterValues(input.Values, context) }),
|
|
1463
1445
|
};
|
|
1464
1446
|
};
|
|
1465
|
-
const
|
|
1447
|
+
const se_GroupFilterList = (input, context) => {
|
|
1466
1448
|
return input
|
|
1467
1449
|
.filter((e) => e != null)
|
|
1468
1450
|
.map((entry) => {
|
|
1469
|
-
return
|
|
1451
|
+
return se_GroupFilter(entry, context);
|
|
1470
1452
|
});
|
|
1471
1453
|
};
|
|
1472
|
-
const
|
|
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
|
|
1461
|
+
const se_GroupParameterList = (input, context) => {
|
|
1480
1462
|
return input
|
|
1481
1463
|
.filter((e) => e != null)
|
|
1482
1464
|
.map((entry) => {
|
|
1483
|
-
return
|
|
1465
|
+
return se_GroupConfigurationParameter(entry, context);
|
|
1484
1466
|
});
|
|
1485
1467
|
};
|
|
1486
|
-
const
|
|
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
|
|
1475
|
+
const se_ResourceFilter = (input, context) => {
|
|
1494
1476
|
return {
|
|
1495
1477
|
...(input.Name != null && { Name: input.Name }),
|
|
1496
|
-
...(input.Values != null && { Values:
|
|
1478
|
+
...(input.Values != null && { Values: se_ResourceFilterValues(input.Values, context) }),
|
|
1497
1479
|
};
|
|
1498
1480
|
};
|
|
1499
|
-
const
|
|
1481
|
+
const se_ResourceFilterList = (input, context) => {
|
|
1500
1482
|
return input
|
|
1501
1483
|
.filter((e) => e != null)
|
|
1502
1484
|
.map((entry) => {
|
|
1503
|
-
return
|
|
1485
|
+
return se_ResourceFilter(entry, context);
|
|
1504
1486
|
});
|
|
1505
1487
|
};
|
|
1506
|
-
const
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1538
|
+
return de_FailedResource(entry, context);
|
|
1557
1539
|
});
|
|
1558
1540
|
return retVal;
|
|
1559
1541
|
};
|
|
1560
|
-
const
|
|
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
|
|
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
|
-
?
|
|
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
|
|
1559
|
+
const de_GroupConfigurationItem = (output, context) => {
|
|
1580
1560
|
return {
|
|
1581
|
-
Parameters: output.Parameters != null ?
|
|
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
|
|
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
|
|
1572
|
+
return de_GroupConfigurationItem(entry, context);
|
|
1593
1573
|
});
|
|
1594
1574
|
return retVal;
|
|
1595
1575
|
};
|
|
1596
|
-
const
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1606
|
+
return de_GroupIdentifier(entry, context);
|
|
1629
1607
|
});
|
|
1630
1608
|
return retVal;
|
|
1631
1609
|
};
|
|
1632
|
-
const
|
|
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
|
|
1617
|
+
return de_Group(entry, context);
|
|
1640
1618
|
});
|
|
1641
1619
|
return retVal;
|
|
1642
1620
|
};
|
|
1643
|
-
const
|
|
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
|
|
1628
|
+
return de_GroupConfigurationParameter(entry, context);
|
|
1651
1629
|
});
|
|
1652
1630
|
return retVal;
|
|
1653
1631
|
};
|
|
1654
|
-
const
|
|
1632
|
+
const de_GroupQuery = (output, context) => {
|
|
1655
1633
|
return {
|
|
1656
1634
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
1657
|
-
ResourceQuery: output.ResourceQuery != null ?
|
|
1635
|
+
ResourceQuery: output.ResourceQuery != null ? de_ResourceQuery(output.ResourceQuery, context) : undefined,
|
|
1658
1636
|
};
|
|
1659
1637
|
};
|
|
1660
|
-
const
|
|
1638
|
+
const de_ListGroupResourcesItem = (output, context) => {
|
|
1661
1639
|
return {
|
|
1662
|
-
Identifier: output.Identifier != null ?
|
|
1663
|
-
Status: output.Status != null ?
|
|
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
|
|
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
|
|
1651
|
+
return de_ListGroupResourcesItem(entry, context);
|
|
1674
1652
|
});
|
|
1675
1653
|
return retVal;
|
|
1676
1654
|
};
|
|
1677
|
-
const
|
|
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
|
|
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
|
|
1667
|
+
return de_PendingResource(entry, context);
|
|
1690
1668
|
});
|
|
1691
1669
|
return retVal;
|
|
1692
1670
|
};
|
|
1693
|
-
const
|
|
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
|
|
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
|
|
1684
|
+
return de_QueryError(entry, context);
|
|
1707
1685
|
});
|
|
1708
1686
|
return retVal;
|
|
1709
1687
|
};
|
|
1710
|
-
const
|
|
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
|
|
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
|
|
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
|
|
1712
|
+
return de_ResourceIdentifier(entry, context);
|
|
1735
1713
|
});
|
|
1736
1714
|
return retVal;
|
|
1737
1715
|
};
|
|
1738
|
-
const
|
|
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
|
|
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
|
|
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
|
|
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;
|