@aws-sdk/client-resource-groups-tagging-api 3.183.0 → 3.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/ResourceGroupsTaggingAPI.js +41 -34
- package/dist-es/ResourceGroupsTaggingAPIClient.js +28 -22
- package/dist-es/commands/DescribeReportCreationCommand.js +28 -21
- package/dist-es/commands/GetComplianceSummaryCommand.js +28 -21
- package/dist-es/commands/GetResourcesCommand.js +28 -21
- package/dist-es/commands/GetTagKeysCommand.js +28 -21
- package/dist-es/commands/GetTagValuesCommand.js +28 -21
- package/dist-es/commands/StartReportCreationCommand.js +28 -21
- package/dist-es/commands/TagResourcesCommand.js +28 -21
- package/dist-es/commands/UntagResourcesCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ResourceGroupsTaggingAPIServiceException.js +10 -5
- package/dist-es/models/models_0.js +95 -138
- package/dist-es/pagination/GetComplianceSummaryPaginator.js +68 -25
- package/dist-es/pagination/GetResourcesPaginator.js +68 -25
- package/dist-es/pagination/GetTagKeysPaginator.js +67 -24
- package/dist-es/pagination/GetTagValuesPaginator.js +67 -24
- package/dist-es/protocols/Aws_json1_1.js +823 -651
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,624 +1,774 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ConcurrentModificationException, ConstraintViolationException, InternalServiceException, InvalidParameterException, PaginationTokenExpiredException, ThrottledException, } from "../models/models_0";
|
|
4
5
|
import { ResourceGroupsTaggingAPIServiceException as __BaseException } from "../models/ResourceGroupsTaggingAPIServiceException";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
6
|
+
export var serializeAws_json1_1DescribeReportCreationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.DescribeReportCreation",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1DescribeReportCreationInput(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1GetComplianceSummaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetComplianceSummary",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1GetComplianceSummaryInput(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1GetResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetResources",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1GetResourcesInput(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1GetTagKeysCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagKeys",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1GetTagKeysInput(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1GetTagValuesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagValues",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1GetTagValuesInput(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1StartReportCreationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.StartReportCreation",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1StartReportCreationInput(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1TagResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.1",
|
|
77
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.TagResources",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1TagResourcesInput(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1UntagResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.UntagResources",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourcesInput(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var deserializeAws_json1_1DescribeReportCreationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var data, contents, response;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
switch (_a.label) {
|
|
98
|
+
case 0:
|
|
99
|
+
if (output.statusCode >= 300) {
|
|
100
|
+
return [2, deserializeAws_json1_1DescribeReportCreationCommandError(output, context)];
|
|
101
|
+
}
|
|
102
|
+
return [4, parseBody(output.body, context)];
|
|
103
|
+
case 1:
|
|
104
|
+
data = _a.sent();
|
|
105
|
+
contents = {};
|
|
106
|
+
contents = deserializeAws_json1_1DescribeReportCreationOutput(data, context);
|
|
107
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
108
|
+
return [2, Promise.resolve(response)];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}); };
|
|
112
|
+
var deserializeAws_json1_1DescribeReportCreationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
114
|
+
var _c;
|
|
115
|
+
return __generator(this, function (_d) {
|
|
116
|
+
switch (_d.label) {
|
|
117
|
+
case 0:
|
|
118
|
+
_a = [__assign({}, output)];
|
|
119
|
+
_c = {};
|
|
120
|
+
return [4, parseErrorBody(output.body, context)];
|
|
121
|
+
case 1:
|
|
122
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
123
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
124
|
+
_b = errorCode;
|
|
125
|
+
switch (_b) {
|
|
126
|
+
case "ConstraintViolationException": return [3, 2];
|
|
127
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3, 2];
|
|
128
|
+
case "InternalServiceException": return [3, 4];
|
|
129
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 4];
|
|
130
|
+
case "InvalidParameterException": return [3, 6];
|
|
131
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 6];
|
|
132
|
+
case "ThrottledException": return [3, 8];
|
|
133
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
134
|
+
}
|
|
135
|
+
return [3, 10];
|
|
136
|
+
case 2: return [4, deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)];
|
|
137
|
+
case 3: throw _d.sent();
|
|
138
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
139
|
+
case 5: throw _d.sent();
|
|
140
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
141
|
+
case 7: throw _d.sent();
|
|
142
|
+
case 8: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
143
|
+
case 9: throw _d.sent();
|
|
144
|
+
case 10:
|
|
145
|
+
parsedBody = parsedOutput.body;
|
|
146
|
+
throwDefaultError({
|
|
147
|
+
output: output,
|
|
148
|
+
parsedBody: parsedBody,
|
|
149
|
+
exceptionCtor: __BaseException,
|
|
150
|
+
errorCode: errorCode,
|
|
151
|
+
});
|
|
152
|
+
_d.label = 11;
|
|
153
|
+
case 11: return [2];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}); };
|
|
157
|
+
export var deserializeAws_json1_1GetComplianceSummaryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
158
|
+
var data, contents, response;
|
|
159
|
+
return __generator(this, function (_a) {
|
|
160
|
+
switch (_a.label) {
|
|
161
|
+
case 0:
|
|
162
|
+
if (output.statusCode >= 300) {
|
|
163
|
+
return [2, deserializeAws_json1_1GetComplianceSummaryCommandError(output, context)];
|
|
164
|
+
}
|
|
165
|
+
return [4, parseBody(output.body, context)];
|
|
166
|
+
case 1:
|
|
167
|
+
data = _a.sent();
|
|
168
|
+
contents = {};
|
|
169
|
+
contents = deserializeAws_json1_1GetComplianceSummaryOutput(data, context);
|
|
170
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
171
|
+
return [2, Promise.resolve(response)];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}); };
|
|
175
|
+
var deserializeAws_json1_1GetComplianceSummaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
176
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
177
|
+
var _c;
|
|
178
|
+
return __generator(this, function (_d) {
|
|
179
|
+
switch (_d.label) {
|
|
180
|
+
case 0:
|
|
181
|
+
_a = [__assign({}, output)];
|
|
182
|
+
_c = {};
|
|
183
|
+
return [4, parseErrorBody(output.body, context)];
|
|
184
|
+
case 1:
|
|
185
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
186
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
187
|
+
_b = errorCode;
|
|
188
|
+
switch (_b) {
|
|
189
|
+
case "ConstraintViolationException": return [3, 2];
|
|
190
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3, 2];
|
|
191
|
+
case "InternalServiceException": return [3, 4];
|
|
192
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 4];
|
|
193
|
+
case "InvalidParameterException": return [3, 6];
|
|
194
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 6];
|
|
195
|
+
case "ThrottledException": return [3, 8];
|
|
196
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
197
|
+
}
|
|
198
|
+
return [3, 10];
|
|
199
|
+
case 2: return [4, deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)];
|
|
200
|
+
case 3: throw _d.sent();
|
|
201
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
202
|
+
case 5: throw _d.sent();
|
|
203
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
204
|
+
case 7: throw _d.sent();
|
|
205
|
+
case 8: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
206
|
+
case 9: throw _d.sent();
|
|
207
|
+
case 10:
|
|
208
|
+
parsedBody = parsedOutput.body;
|
|
209
|
+
throwDefaultError({
|
|
210
|
+
output: output,
|
|
211
|
+
parsedBody: parsedBody,
|
|
212
|
+
exceptionCtor: __BaseException,
|
|
213
|
+
errorCode: errorCode,
|
|
214
|
+
});
|
|
215
|
+
_d.label = 11;
|
|
216
|
+
case 11: return [2];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}); };
|
|
220
|
+
export var deserializeAws_json1_1GetResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
221
|
+
var data, contents, response;
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0:
|
|
225
|
+
if (output.statusCode >= 300) {
|
|
226
|
+
return [2, deserializeAws_json1_1GetResourcesCommandError(output, context)];
|
|
227
|
+
}
|
|
228
|
+
return [4, parseBody(output.body, context)];
|
|
229
|
+
case 1:
|
|
230
|
+
data = _a.sent();
|
|
231
|
+
contents = {};
|
|
232
|
+
contents = deserializeAws_json1_1GetResourcesOutput(data, context);
|
|
233
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
234
|
+
return [2, Promise.resolve(response)];
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
}); };
|
|
238
|
+
var deserializeAws_json1_1GetResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
240
|
+
var _c;
|
|
241
|
+
return __generator(this, function (_d) {
|
|
242
|
+
switch (_d.label) {
|
|
243
|
+
case 0:
|
|
244
|
+
_a = [__assign({}, output)];
|
|
245
|
+
_c = {};
|
|
246
|
+
return [4, parseErrorBody(output.body, context)];
|
|
247
|
+
case 1:
|
|
248
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
249
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
250
|
+
_b = errorCode;
|
|
251
|
+
switch (_b) {
|
|
252
|
+
case "InternalServiceException": return [3, 2];
|
|
253
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
254
|
+
case "InvalidParameterException": return [3, 4];
|
|
255
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
256
|
+
case "PaginationTokenExpiredException": return [3, 6];
|
|
257
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3, 6];
|
|
258
|
+
case "ThrottledException": return [3, 8];
|
|
259
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
260
|
+
}
|
|
261
|
+
return [3, 10];
|
|
262
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
263
|
+
case 3: throw _d.sent();
|
|
264
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
265
|
+
case 5: throw _d.sent();
|
|
266
|
+
case 6: return [4, deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)];
|
|
267
|
+
case 7: throw _d.sent();
|
|
268
|
+
case 8: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
269
|
+
case 9: throw _d.sent();
|
|
270
|
+
case 10:
|
|
271
|
+
parsedBody = parsedOutput.body;
|
|
272
|
+
throwDefaultError({
|
|
273
|
+
output: output,
|
|
274
|
+
parsedBody: parsedBody,
|
|
275
|
+
exceptionCtor: __BaseException,
|
|
276
|
+
errorCode: errorCode,
|
|
277
|
+
});
|
|
278
|
+
_d.label = 11;
|
|
279
|
+
case 11: return [2];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}); };
|
|
283
|
+
export var deserializeAws_json1_1GetTagKeysCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
284
|
+
var data, contents, response;
|
|
285
|
+
return __generator(this, function (_a) {
|
|
286
|
+
switch (_a.label) {
|
|
287
|
+
case 0:
|
|
288
|
+
if (output.statusCode >= 300) {
|
|
289
|
+
return [2, deserializeAws_json1_1GetTagKeysCommandError(output, context)];
|
|
290
|
+
}
|
|
291
|
+
return [4, parseBody(output.body, context)];
|
|
292
|
+
case 1:
|
|
293
|
+
data = _a.sent();
|
|
294
|
+
contents = {};
|
|
295
|
+
contents = deserializeAws_json1_1GetTagKeysOutput(data, context);
|
|
296
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
297
|
+
return [2, Promise.resolve(response)];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
}); };
|
|
301
|
+
var deserializeAws_json1_1GetTagKeysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
302
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
303
|
+
var _c;
|
|
304
|
+
return __generator(this, function (_d) {
|
|
305
|
+
switch (_d.label) {
|
|
306
|
+
case 0:
|
|
307
|
+
_a = [__assign({}, output)];
|
|
308
|
+
_c = {};
|
|
309
|
+
return [4, parseErrorBody(output.body, context)];
|
|
310
|
+
case 1:
|
|
311
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
312
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
313
|
+
_b = errorCode;
|
|
314
|
+
switch (_b) {
|
|
315
|
+
case "InternalServiceException": return [3, 2];
|
|
316
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
317
|
+
case "InvalidParameterException": return [3, 4];
|
|
318
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
319
|
+
case "PaginationTokenExpiredException": return [3, 6];
|
|
320
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3, 6];
|
|
321
|
+
case "ThrottledException": return [3, 8];
|
|
322
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
323
|
+
}
|
|
324
|
+
return [3, 10];
|
|
325
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
326
|
+
case 3: throw _d.sent();
|
|
327
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
328
|
+
case 5: throw _d.sent();
|
|
329
|
+
case 6: return [4, deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)];
|
|
330
|
+
case 7: throw _d.sent();
|
|
331
|
+
case 8: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
332
|
+
case 9: throw _d.sent();
|
|
333
|
+
case 10:
|
|
334
|
+
parsedBody = parsedOutput.body;
|
|
335
|
+
throwDefaultError({
|
|
336
|
+
output: output,
|
|
337
|
+
parsedBody: parsedBody,
|
|
338
|
+
exceptionCtor: __BaseException,
|
|
339
|
+
errorCode: errorCode,
|
|
340
|
+
});
|
|
341
|
+
_d.label = 11;
|
|
342
|
+
case 11: return [2];
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
}); };
|
|
346
|
+
export var deserializeAws_json1_1GetTagValuesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
347
|
+
var data, contents, response;
|
|
348
|
+
return __generator(this, function (_a) {
|
|
349
|
+
switch (_a.label) {
|
|
350
|
+
case 0:
|
|
351
|
+
if (output.statusCode >= 300) {
|
|
352
|
+
return [2, deserializeAws_json1_1GetTagValuesCommandError(output, context)];
|
|
353
|
+
}
|
|
354
|
+
return [4, parseBody(output.body, context)];
|
|
355
|
+
case 1:
|
|
356
|
+
data = _a.sent();
|
|
357
|
+
contents = {};
|
|
358
|
+
contents = deserializeAws_json1_1GetTagValuesOutput(data, context);
|
|
359
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
360
|
+
return [2, Promise.resolve(response)];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
}); };
|
|
364
|
+
var deserializeAws_json1_1GetTagValuesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
365
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
366
|
+
var _c;
|
|
367
|
+
return __generator(this, function (_d) {
|
|
368
|
+
switch (_d.label) {
|
|
369
|
+
case 0:
|
|
370
|
+
_a = [__assign({}, output)];
|
|
371
|
+
_c = {};
|
|
372
|
+
return [4, parseErrorBody(output.body, context)];
|
|
373
|
+
case 1:
|
|
374
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
375
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
|
+
_b = errorCode;
|
|
377
|
+
switch (_b) {
|
|
378
|
+
case "InternalServiceException": return [3, 2];
|
|
379
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
380
|
+
case "InvalidParameterException": return [3, 4];
|
|
381
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
382
|
+
case "PaginationTokenExpiredException": return [3, 6];
|
|
383
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3, 6];
|
|
384
|
+
case "ThrottledException": return [3, 8];
|
|
385
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
386
|
+
}
|
|
387
|
+
return [3, 10];
|
|
388
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
389
|
+
case 3: throw _d.sent();
|
|
390
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
391
|
+
case 5: throw _d.sent();
|
|
392
|
+
case 6: return [4, deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)];
|
|
393
|
+
case 7: throw _d.sent();
|
|
394
|
+
case 8: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
395
|
+
case 9: throw _d.sent();
|
|
396
|
+
case 10:
|
|
397
|
+
parsedBody = parsedOutput.body;
|
|
398
|
+
throwDefaultError({
|
|
399
|
+
output: output,
|
|
400
|
+
parsedBody: parsedBody,
|
|
401
|
+
exceptionCtor: __BaseException,
|
|
402
|
+
errorCode: errorCode,
|
|
403
|
+
});
|
|
404
|
+
_d.label = 11;
|
|
405
|
+
case 11: return [2];
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
}); };
|
|
409
|
+
export var deserializeAws_json1_1StartReportCreationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
410
|
+
var data, contents, response;
|
|
411
|
+
return __generator(this, function (_a) {
|
|
412
|
+
switch (_a.label) {
|
|
413
|
+
case 0:
|
|
414
|
+
if (output.statusCode >= 300) {
|
|
415
|
+
return [2, deserializeAws_json1_1StartReportCreationCommandError(output, context)];
|
|
416
|
+
}
|
|
417
|
+
return [4, parseBody(output.body, context)];
|
|
418
|
+
case 1:
|
|
419
|
+
data = _a.sent();
|
|
420
|
+
contents = {};
|
|
421
|
+
contents = deserializeAws_json1_1StartReportCreationOutput(data, context);
|
|
422
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
423
|
+
return [2, Promise.resolve(response)];
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
}); };
|
|
427
|
+
var deserializeAws_json1_1StartReportCreationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
428
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
429
|
+
var _c;
|
|
430
|
+
return __generator(this, function (_d) {
|
|
431
|
+
switch (_d.label) {
|
|
432
|
+
case 0:
|
|
433
|
+
_a = [__assign({}, output)];
|
|
434
|
+
_c = {};
|
|
435
|
+
return [4, parseErrorBody(output.body, context)];
|
|
436
|
+
case 1:
|
|
437
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
438
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
+
_b = errorCode;
|
|
440
|
+
switch (_b) {
|
|
441
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
442
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException": return [3, 2];
|
|
443
|
+
case "ConstraintViolationException": return [3, 4];
|
|
444
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3, 4];
|
|
445
|
+
case "InternalServiceException": return [3, 6];
|
|
446
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 6];
|
|
447
|
+
case "InvalidParameterException": return [3, 8];
|
|
448
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 8];
|
|
449
|
+
case "ThrottledException": return [3, 10];
|
|
450
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 10];
|
|
451
|
+
}
|
|
452
|
+
return [3, 12];
|
|
453
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
454
|
+
case 3: throw _d.sent();
|
|
455
|
+
case 4: return [4, deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)];
|
|
456
|
+
case 5: throw _d.sent();
|
|
457
|
+
case 6: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
458
|
+
case 7: throw _d.sent();
|
|
459
|
+
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
460
|
+
case 9: throw _d.sent();
|
|
461
|
+
case 10: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
462
|
+
case 11: throw _d.sent();
|
|
463
|
+
case 12:
|
|
464
|
+
parsedBody = parsedOutput.body;
|
|
465
|
+
throwDefaultError({
|
|
466
|
+
output: output,
|
|
467
|
+
parsedBody: parsedBody,
|
|
468
|
+
exceptionCtor: __BaseException,
|
|
469
|
+
errorCode: errorCode,
|
|
470
|
+
});
|
|
471
|
+
_d.label = 13;
|
|
472
|
+
case 13: return [2];
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}); };
|
|
476
|
+
export var deserializeAws_json1_1TagResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
477
|
+
var data, contents, response;
|
|
478
|
+
return __generator(this, function (_a) {
|
|
479
|
+
switch (_a.label) {
|
|
480
|
+
case 0:
|
|
481
|
+
if (output.statusCode >= 300) {
|
|
482
|
+
return [2, deserializeAws_json1_1TagResourcesCommandError(output, context)];
|
|
483
|
+
}
|
|
484
|
+
return [4, parseBody(output.body, context)];
|
|
485
|
+
case 1:
|
|
486
|
+
data = _a.sent();
|
|
487
|
+
contents = {};
|
|
488
|
+
contents = deserializeAws_json1_1TagResourcesOutput(data, context);
|
|
489
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
490
|
+
return [2, Promise.resolve(response)];
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
}); };
|
|
494
|
+
var deserializeAws_json1_1TagResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
495
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
496
|
+
var _c;
|
|
497
|
+
return __generator(this, function (_d) {
|
|
498
|
+
switch (_d.label) {
|
|
499
|
+
case 0:
|
|
500
|
+
_a = [__assign({}, output)];
|
|
501
|
+
_c = {};
|
|
502
|
+
return [4, parseErrorBody(output.body, context)];
|
|
503
|
+
case 1:
|
|
504
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
505
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
+
_b = errorCode;
|
|
507
|
+
switch (_b) {
|
|
508
|
+
case "InternalServiceException": return [3, 2];
|
|
509
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
510
|
+
case "InvalidParameterException": return [3, 4];
|
|
511
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
512
|
+
case "ThrottledException": return [3, 6];
|
|
513
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 6];
|
|
514
|
+
}
|
|
515
|
+
return [3, 8];
|
|
516
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
517
|
+
case 3: throw _d.sent();
|
|
518
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
519
|
+
case 5: throw _d.sent();
|
|
520
|
+
case 6: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
521
|
+
case 7: throw _d.sent();
|
|
522
|
+
case 8:
|
|
523
|
+
parsedBody = parsedOutput.body;
|
|
524
|
+
throwDefaultError({
|
|
525
|
+
output: output,
|
|
526
|
+
parsedBody: parsedBody,
|
|
527
|
+
exceptionCtor: __BaseException,
|
|
528
|
+
errorCode: errorCode,
|
|
529
|
+
});
|
|
530
|
+
_d.label = 9;
|
|
531
|
+
case 9: return [2];
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
}); };
|
|
535
|
+
export var deserializeAws_json1_1UntagResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
536
|
+
var data, contents, response;
|
|
537
|
+
return __generator(this, function (_a) {
|
|
538
|
+
switch (_a.label) {
|
|
539
|
+
case 0:
|
|
540
|
+
if (output.statusCode >= 300) {
|
|
541
|
+
return [2, deserializeAws_json1_1UntagResourcesCommandError(output, context)];
|
|
542
|
+
}
|
|
543
|
+
return [4, parseBody(output.body, context)];
|
|
544
|
+
case 1:
|
|
545
|
+
data = _a.sent();
|
|
546
|
+
contents = {};
|
|
547
|
+
contents = deserializeAws_json1_1UntagResourcesOutput(data, context);
|
|
548
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
549
|
+
return [2, Promise.resolve(response)];
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
}); };
|
|
553
|
+
var deserializeAws_json1_1UntagResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
554
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
555
|
+
var _c;
|
|
556
|
+
return __generator(this, function (_d) {
|
|
557
|
+
switch (_d.label) {
|
|
558
|
+
case 0:
|
|
559
|
+
_a = [__assign({}, output)];
|
|
560
|
+
_c = {};
|
|
561
|
+
return [4, parseErrorBody(output.body, context)];
|
|
562
|
+
case 1:
|
|
563
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
564
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
+
_b = errorCode;
|
|
566
|
+
switch (_b) {
|
|
567
|
+
case "InternalServiceException": return [3, 2];
|
|
568
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
569
|
+
case "InvalidParameterException": return [3, 4];
|
|
570
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
571
|
+
case "ThrottledException": return [3, 6];
|
|
572
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 6];
|
|
573
|
+
}
|
|
574
|
+
return [3, 8];
|
|
575
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
576
|
+
case 3: throw _d.sent();
|
|
577
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
578
|
+
case 5: throw _d.sent();
|
|
579
|
+
case 6: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
580
|
+
case 7: throw _d.sent();
|
|
581
|
+
case 8:
|
|
582
|
+
parsedBody = parsedOutput.body;
|
|
583
|
+
throwDefaultError({
|
|
584
|
+
output: output,
|
|
585
|
+
parsedBody: parsedBody,
|
|
586
|
+
exceptionCtor: __BaseException,
|
|
587
|
+
errorCode: errorCode,
|
|
588
|
+
});
|
|
589
|
+
_d.label = 9;
|
|
590
|
+
case 9: return [2];
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
}); };
|
|
594
|
+
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
595
|
+
var body, deserialized, exception;
|
|
596
|
+
return __generator(this, function (_a) {
|
|
597
|
+
body = parsedOutput.body;
|
|
598
|
+
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
599
|
+
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
600
|
+
return [2, __decorateServiceException(exception, body)];
|
|
601
|
+
});
|
|
602
|
+
}); };
|
|
603
|
+
var deserializeAws_json1_1ConstraintViolationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
604
|
+
var body, deserialized, exception;
|
|
605
|
+
return __generator(this, function (_a) {
|
|
606
|
+
body = parsedOutput.body;
|
|
607
|
+
deserialized = deserializeAws_json1_1ConstraintViolationException(body, context);
|
|
608
|
+
exception = new ConstraintViolationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
609
|
+
return [2, __decorateServiceException(exception, body)];
|
|
610
|
+
});
|
|
611
|
+
}); };
|
|
612
|
+
var deserializeAws_json1_1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
613
|
+
var body, deserialized, exception;
|
|
614
|
+
return __generator(this, function (_a) {
|
|
615
|
+
body = parsedOutput.body;
|
|
616
|
+
deserialized = deserializeAws_json1_1InternalServiceException(body, context);
|
|
617
|
+
exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
618
|
+
return [2, __decorateServiceException(exception, body)];
|
|
619
|
+
});
|
|
620
|
+
}); };
|
|
621
|
+
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
622
|
+
var body, deserialized, exception;
|
|
623
|
+
return __generator(this, function (_a) {
|
|
624
|
+
body = parsedOutput.body;
|
|
625
|
+
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
626
|
+
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
627
|
+
return [2, __decorateServiceException(exception, body)];
|
|
628
|
+
});
|
|
629
|
+
}); };
|
|
630
|
+
var deserializeAws_json1_1PaginationTokenExpiredExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
631
|
+
var body, deserialized, exception;
|
|
632
|
+
return __generator(this, function (_a) {
|
|
633
|
+
body = parsedOutput.body;
|
|
634
|
+
deserialized = deserializeAws_json1_1PaginationTokenExpiredException(body, context);
|
|
635
|
+
exception = new PaginationTokenExpiredException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
636
|
+
return [2, __decorateServiceException(exception, body)];
|
|
637
|
+
});
|
|
638
|
+
}); };
|
|
639
|
+
var deserializeAws_json1_1ThrottledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
640
|
+
var body, deserialized, exception;
|
|
641
|
+
return __generator(this, function (_a) {
|
|
642
|
+
body = parsedOutput.body;
|
|
643
|
+
deserialized = deserializeAws_json1_1ThrottledException(body, context);
|
|
644
|
+
exception = new ThrottledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
645
|
+
return [2, __decorateServiceException(exception, body)];
|
|
646
|
+
});
|
|
647
|
+
}); };
|
|
648
|
+
var serializeAws_json1_1DescribeReportCreationInput = function (input, context) {
|
|
465
649
|
return {};
|
|
466
650
|
};
|
|
467
|
-
|
|
468
|
-
return {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
ResourceARNList: serializeAws_json1_1ResourceARNListForGet(input.ResourceARNList, context),
|
|
493
|
-
}),
|
|
494
|
-
...(input.ResourceTypeFilters != null && {
|
|
495
|
-
ResourceTypeFilters: serializeAws_json1_1ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
496
|
-
}),
|
|
497
|
-
...(input.ResourcesPerPage != null && { ResourcesPerPage: input.ResourcesPerPage }),
|
|
498
|
-
...(input.TagFilters != null && { TagFilters: serializeAws_json1_1TagFilterList(input.TagFilters, context) }),
|
|
499
|
-
...(input.TagsPerPage != null && { TagsPerPage: input.TagsPerPage }),
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
const serializeAws_json1_1GetTagKeysInput = (input, context) => {
|
|
503
|
-
return {
|
|
504
|
-
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
505
|
-
};
|
|
506
|
-
};
|
|
507
|
-
const serializeAws_json1_1GetTagValuesInput = (input, context) => {
|
|
508
|
-
return {
|
|
509
|
-
...(input.Key != null && { Key: input.Key }),
|
|
510
|
-
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
511
|
-
};
|
|
512
|
-
};
|
|
513
|
-
const serializeAws_json1_1GroupBy = (input, context) => {
|
|
651
|
+
var serializeAws_json1_1GetComplianceSummaryInput = function (input, context) {
|
|
652
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupBy(input.GroupBy, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.PaginationToken != null && { PaginationToken: input.PaginationToken })), (input.RegionFilters != null && {
|
|
653
|
+
RegionFilters: serializeAws_json1_1RegionFilterList(input.RegionFilters, context),
|
|
654
|
+
})), (input.ResourceTypeFilters != null && {
|
|
655
|
+
ResourceTypeFilters: serializeAws_json1_1ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
656
|
+
})), (input.TagKeyFilters != null && {
|
|
657
|
+
TagKeyFilters: serializeAws_json1_1TagKeyFilterList(input.TagKeyFilters, context),
|
|
658
|
+
})), (input.TargetIdFilters != null && {
|
|
659
|
+
TargetIdFilters: serializeAws_json1_1TargetIdFilterList(input.TargetIdFilters, context),
|
|
660
|
+
}));
|
|
661
|
+
};
|
|
662
|
+
var serializeAws_json1_1GetResourcesInput = function (input, context) {
|
|
663
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExcludeCompliantResources != null && { ExcludeCompliantResources: input.ExcludeCompliantResources })), (input.IncludeComplianceDetails != null && { IncludeComplianceDetails: input.IncludeComplianceDetails })), (input.PaginationToken != null && { PaginationToken: input.PaginationToken })), (input.ResourceARNList != null && {
|
|
664
|
+
ResourceARNList: serializeAws_json1_1ResourceARNListForGet(input.ResourceARNList, context),
|
|
665
|
+
})), (input.ResourceTypeFilters != null && {
|
|
666
|
+
ResourceTypeFilters: serializeAws_json1_1ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
667
|
+
})), (input.ResourcesPerPage != null && { ResourcesPerPage: input.ResourcesPerPage })), (input.TagFilters != null && { TagFilters: serializeAws_json1_1TagFilterList(input.TagFilters, context) })), (input.TagsPerPage != null && { TagsPerPage: input.TagsPerPage }));
|
|
668
|
+
};
|
|
669
|
+
var serializeAws_json1_1GetTagKeysInput = function (input, context) {
|
|
670
|
+
return __assign({}, (input.PaginationToken != null && { PaginationToken: input.PaginationToken }));
|
|
671
|
+
};
|
|
672
|
+
var serializeAws_json1_1GetTagValuesInput = function (input, context) {
|
|
673
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.PaginationToken != null && { PaginationToken: input.PaginationToken }));
|
|
674
|
+
};
|
|
675
|
+
var serializeAws_json1_1GroupBy = function (input, context) {
|
|
514
676
|
return input
|
|
515
|
-
.filter((e)
|
|
516
|
-
.map((entry)
|
|
677
|
+
.filter(function (e) { return e != null; })
|
|
678
|
+
.map(function (entry) {
|
|
517
679
|
return entry;
|
|
518
680
|
});
|
|
519
681
|
};
|
|
520
|
-
|
|
682
|
+
var serializeAws_json1_1RegionFilterList = function (input, context) {
|
|
521
683
|
return input
|
|
522
|
-
.filter((e)
|
|
523
|
-
.map((entry)
|
|
684
|
+
.filter(function (e) { return e != null; })
|
|
685
|
+
.map(function (entry) {
|
|
524
686
|
return entry;
|
|
525
687
|
});
|
|
526
688
|
};
|
|
527
|
-
|
|
689
|
+
var serializeAws_json1_1ResourceARNListForGet = function (input, context) {
|
|
528
690
|
return input
|
|
529
|
-
.filter((e)
|
|
530
|
-
.map((entry)
|
|
691
|
+
.filter(function (e) { return e != null; })
|
|
692
|
+
.map(function (entry) {
|
|
531
693
|
return entry;
|
|
532
694
|
});
|
|
533
695
|
};
|
|
534
|
-
|
|
696
|
+
var serializeAws_json1_1ResourceARNListForTagUntag = function (input, context) {
|
|
535
697
|
return input
|
|
536
|
-
.filter((e)
|
|
537
|
-
.map((entry)
|
|
698
|
+
.filter(function (e) { return e != null; })
|
|
699
|
+
.map(function (entry) {
|
|
538
700
|
return entry;
|
|
539
701
|
});
|
|
540
702
|
};
|
|
541
|
-
|
|
703
|
+
var serializeAws_json1_1ResourceTypeFilterList = function (input, context) {
|
|
542
704
|
return input
|
|
543
|
-
.filter((e)
|
|
544
|
-
.map((entry)
|
|
705
|
+
.filter(function (e) { return e != null; })
|
|
706
|
+
.map(function (entry) {
|
|
545
707
|
return entry;
|
|
546
708
|
});
|
|
547
709
|
};
|
|
548
|
-
|
|
549
|
-
return {
|
|
550
|
-
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
551
|
-
};
|
|
710
|
+
var serializeAws_json1_1StartReportCreationInput = function (input, context) {
|
|
711
|
+
return __assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket }));
|
|
552
712
|
};
|
|
553
|
-
|
|
554
|
-
return {
|
|
555
|
-
...(input.Key != null && { Key: input.Key }),
|
|
556
|
-
...(input.Values != null && { Values: serializeAws_json1_1TagValueList(input.Values, context) }),
|
|
557
|
-
};
|
|
713
|
+
var serializeAws_json1_1TagFilter = function (input, context) {
|
|
714
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Values != null && { Values: serializeAws_json1_1TagValueList(input.Values, context) }));
|
|
558
715
|
};
|
|
559
|
-
|
|
716
|
+
var serializeAws_json1_1TagFilterList = function (input, context) {
|
|
560
717
|
return input
|
|
561
|
-
.filter((e)
|
|
562
|
-
.map((entry)
|
|
718
|
+
.filter(function (e) { return e != null; })
|
|
719
|
+
.map(function (entry) {
|
|
563
720
|
return serializeAws_json1_1TagFilter(entry, context);
|
|
564
721
|
});
|
|
565
722
|
};
|
|
566
|
-
|
|
723
|
+
var serializeAws_json1_1TagKeyFilterList = function (input, context) {
|
|
567
724
|
return input
|
|
568
|
-
.filter((e)
|
|
569
|
-
.map((entry)
|
|
725
|
+
.filter(function (e) { return e != null; })
|
|
726
|
+
.map(function (entry) {
|
|
570
727
|
return entry;
|
|
571
728
|
});
|
|
572
729
|
};
|
|
573
|
-
|
|
730
|
+
var serializeAws_json1_1TagKeyListForUntag = function (input, context) {
|
|
574
731
|
return input
|
|
575
|
-
.filter((e)
|
|
576
|
-
.map((entry)
|
|
732
|
+
.filter(function (e) { return e != null; })
|
|
733
|
+
.map(function (entry) {
|
|
577
734
|
return entry;
|
|
578
735
|
});
|
|
579
736
|
};
|
|
580
|
-
|
|
581
|
-
return Object.entries(input).reduce((acc,
|
|
737
|
+
var serializeAws_json1_1TagMap = function (input, context) {
|
|
738
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
739
|
+
var _b;
|
|
740
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
582
741
|
if (value === null) {
|
|
583
742
|
return acc;
|
|
584
743
|
}
|
|
585
|
-
return {
|
|
586
|
-
...acc,
|
|
587
|
-
[key]: value,
|
|
588
|
-
};
|
|
744
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
589
745
|
}, {});
|
|
590
746
|
};
|
|
591
|
-
|
|
592
|
-
return {
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
}),
|
|
596
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
597
|
-
};
|
|
747
|
+
var serializeAws_json1_1TagResourcesInput = function (input, context) {
|
|
748
|
+
return __assign(__assign({}, (input.ResourceARNList != null && {
|
|
749
|
+
ResourceARNList: serializeAws_json1_1ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
750
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
598
751
|
};
|
|
599
|
-
|
|
752
|
+
var serializeAws_json1_1TagValueList = function (input, context) {
|
|
600
753
|
return input
|
|
601
|
-
.filter((e)
|
|
602
|
-
.map((entry)
|
|
754
|
+
.filter(function (e) { return e != null; })
|
|
755
|
+
.map(function (entry) {
|
|
603
756
|
return entry;
|
|
604
757
|
});
|
|
605
758
|
};
|
|
606
|
-
|
|
759
|
+
var serializeAws_json1_1TargetIdFilterList = function (input, context) {
|
|
607
760
|
return input
|
|
608
|
-
.filter((e)
|
|
609
|
-
.map((entry)
|
|
761
|
+
.filter(function (e) { return e != null; })
|
|
762
|
+
.map(function (entry) {
|
|
610
763
|
return entry;
|
|
611
764
|
});
|
|
612
765
|
};
|
|
613
|
-
|
|
614
|
-
return {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
}),
|
|
618
|
-
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyListForUntag(input.TagKeys, context) }),
|
|
619
|
-
};
|
|
766
|
+
var serializeAws_json1_1UntagResourcesInput = function (input, context) {
|
|
767
|
+
return __assign(__assign({}, (input.ResourceARNList != null && {
|
|
768
|
+
ResourceARNList: serializeAws_json1_1ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
769
|
+
})), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyListForUntag(input.TagKeys, context) }));
|
|
620
770
|
};
|
|
621
|
-
|
|
771
|
+
var deserializeAws_json1_1ComplianceDetails = function (output, context) {
|
|
622
772
|
return {
|
|
623
773
|
ComplianceStatus: __expectBoolean(output.ComplianceStatus),
|
|
624
774
|
KeysWithNoncompliantValues: output.KeysWithNoncompliantValues != null
|
|
@@ -627,17 +777,17 @@ const deserializeAws_json1_1ComplianceDetails = (output, context) => {
|
|
|
627
777
|
NoncompliantKeys: output.NoncompliantKeys != null ? deserializeAws_json1_1TagKeyList(output.NoncompliantKeys, context) : undefined,
|
|
628
778
|
};
|
|
629
779
|
};
|
|
630
|
-
|
|
780
|
+
var deserializeAws_json1_1ConcurrentModificationException = function (output, context) {
|
|
631
781
|
return {
|
|
632
782
|
Message: __expectString(output.Message),
|
|
633
783
|
};
|
|
634
784
|
};
|
|
635
|
-
|
|
785
|
+
var deserializeAws_json1_1ConstraintViolationException = function (output, context) {
|
|
636
786
|
return {
|
|
637
787
|
Message: __expectString(output.Message),
|
|
638
788
|
};
|
|
639
789
|
};
|
|
640
|
-
|
|
790
|
+
var deserializeAws_json1_1DescribeReportCreationOutput = function (output, context) {
|
|
641
791
|
return {
|
|
642
792
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
643
793
|
S3Location: __expectString(output.S3Location),
|
|
@@ -645,31 +795,30 @@ const deserializeAws_json1_1DescribeReportCreationOutput = (output, context) =>
|
|
|
645
795
|
Status: __expectString(output.Status),
|
|
646
796
|
};
|
|
647
797
|
};
|
|
648
|
-
|
|
649
|
-
return Object.entries(output).reduce((acc,
|
|
798
|
+
var deserializeAws_json1_1FailedResourcesMap = function (output, context) {
|
|
799
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
800
|
+
var _b;
|
|
801
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
650
802
|
if (value === null) {
|
|
651
803
|
return acc;
|
|
652
804
|
}
|
|
653
|
-
return {
|
|
654
|
-
...acc,
|
|
655
|
-
[key]: deserializeAws_json1_1FailureInfo(value, context),
|
|
656
|
-
};
|
|
805
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_json1_1FailureInfo(value, context), _b));
|
|
657
806
|
}, {});
|
|
658
807
|
};
|
|
659
|
-
|
|
808
|
+
var deserializeAws_json1_1FailureInfo = function (output, context) {
|
|
660
809
|
return {
|
|
661
810
|
ErrorCode: __expectString(output.ErrorCode),
|
|
662
811
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
663
812
|
StatusCode: __expectInt32(output.StatusCode),
|
|
664
813
|
};
|
|
665
814
|
};
|
|
666
|
-
|
|
815
|
+
var deserializeAws_json1_1GetComplianceSummaryOutput = function (output, context) {
|
|
667
816
|
return {
|
|
668
817
|
PaginationToken: __expectString(output.PaginationToken),
|
|
669
818
|
SummaryList: output.SummaryList != null ? deserializeAws_json1_1SummaryList(output.SummaryList, context) : undefined,
|
|
670
819
|
};
|
|
671
820
|
};
|
|
672
|
-
|
|
821
|
+
var deserializeAws_json1_1GetResourcesOutput = function (output, context) {
|
|
673
822
|
return {
|
|
674
823
|
PaginationToken: __expectString(output.PaginationToken),
|
|
675
824
|
ResourceTagMappingList: output.ResourceTagMappingList != null
|
|
@@ -677,34 +826,34 @@ const deserializeAws_json1_1GetResourcesOutput = (output, context) => {
|
|
|
677
826
|
: undefined,
|
|
678
827
|
};
|
|
679
828
|
};
|
|
680
|
-
|
|
829
|
+
var deserializeAws_json1_1GetTagKeysOutput = function (output, context) {
|
|
681
830
|
return {
|
|
682
831
|
PaginationToken: __expectString(output.PaginationToken),
|
|
683
832
|
TagKeys: output.TagKeys != null ? deserializeAws_json1_1TagKeyList(output.TagKeys, context) : undefined,
|
|
684
833
|
};
|
|
685
834
|
};
|
|
686
|
-
|
|
835
|
+
var deserializeAws_json1_1GetTagValuesOutput = function (output, context) {
|
|
687
836
|
return {
|
|
688
837
|
PaginationToken: __expectString(output.PaginationToken),
|
|
689
838
|
TagValues: output.TagValues != null ? deserializeAws_json1_1TagValuesOutputList(output.TagValues, context) : undefined,
|
|
690
839
|
};
|
|
691
840
|
};
|
|
692
|
-
|
|
841
|
+
var deserializeAws_json1_1InternalServiceException = function (output, context) {
|
|
693
842
|
return {
|
|
694
843
|
Message: __expectString(output.Message),
|
|
695
844
|
};
|
|
696
845
|
};
|
|
697
|
-
|
|
846
|
+
var deserializeAws_json1_1InvalidParameterException = function (output, context) {
|
|
698
847
|
return {
|
|
699
848
|
Message: __expectString(output.Message),
|
|
700
849
|
};
|
|
701
850
|
};
|
|
702
|
-
|
|
851
|
+
var deserializeAws_json1_1PaginationTokenExpiredException = function (output, context) {
|
|
703
852
|
return {
|
|
704
853
|
Message: __expectString(output.Message),
|
|
705
854
|
};
|
|
706
855
|
};
|
|
707
|
-
|
|
856
|
+
var deserializeAws_json1_1ResourceTagMapping = function (output, context) {
|
|
708
857
|
return {
|
|
709
858
|
ComplianceDetails: output.ComplianceDetails != null
|
|
710
859
|
? deserializeAws_json1_1ComplianceDetails(output.ComplianceDetails, context)
|
|
@@ -713,10 +862,10 @@ const deserializeAws_json1_1ResourceTagMapping = (output, context) => {
|
|
|
713
862
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
714
863
|
};
|
|
715
864
|
};
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
.filter((e)
|
|
719
|
-
.map((entry)
|
|
865
|
+
var deserializeAws_json1_1ResourceTagMappingList = function (output, context) {
|
|
866
|
+
var retVal = (output || [])
|
|
867
|
+
.filter(function (e) { return e != null; })
|
|
868
|
+
.map(function (entry) {
|
|
720
869
|
if (entry === null) {
|
|
721
870
|
return null;
|
|
722
871
|
}
|
|
@@ -724,10 +873,10 @@ const deserializeAws_json1_1ResourceTagMappingList = (output, context) => {
|
|
|
724
873
|
});
|
|
725
874
|
return retVal;
|
|
726
875
|
};
|
|
727
|
-
|
|
876
|
+
var deserializeAws_json1_1StartReportCreationOutput = function (output, context) {
|
|
728
877
|
return {};
|
|
729
878
|
};
|
|
730
|
-
|
|
879
|
+
var deserializeAws_json1_1Summary = function (output, context) {
|
|
731
880
|
return {
|
|
732
881
|
LastUpdated: __expectString(output.LastUpdated),
|
|
733
882
|
NonCompliantResources: __expectLong(output.NonCompliantResources),
|
|
@@ -737,10 +886,10 @@ const deserializeAws_json1_1Summary = (output, context) => {
|
|
|
737
886
|
TargetIdType: __expectString(output.TargetIdType),
|
|
738
887
|
};
|
|
739
888
|
};
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
.filter((e)
|
|
743
|
-
.map((entry)
|
|
889
|
+
var deserializeAws_json1_1SummaryList = function (output, context) {
|
|
890
|
+
var retVal = (output || [])
|
|
891
|
+
.filter(function (e) { return e != null; })
|
|
892
|
+
.map(function (entry) {
|
|
744
893
|
if (entry === null) {
|
|
745
894
|
return null;
|
|
746
895
|
}
|
|
@@ -748,16 +897,16 @@ const deserializeAws_json1_1SummaryList = (output, context) => {
|
|
|
748
897
|
});
|
|
749
898
|
return retVal;
|
|
750
899
|
};
|
|
751
|
-
|
|
900
|
+
var deserializeAws_json1_1Tag = function (output, context) {
|
|
752
901
|
return {
|
|
753
902
|
Key: __expectString(output.Key),
|
|
754
903
|
Value: __expectString(output.Value),
|
|
755
904
|
};
|
|
756
905
|
};
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
.filter((e)
|
|
760
|
-
.map((entry)
|
|
906
|
+
var deserializeAws_json1_1TagKeyList = function (output, context) {
|
|
907
|
+
var retVal = (output || [])
|
|
908
|
+
.filter(function (e) { return e != null; })
|
|
909
|
+
.map(function (entry) {
|
|
761
910
|
if (entry === null) {
|
|
762
911
|
return null;
|
|
763
912
|
}
|
|
@@ -765,10 +914,10 @@ const deserializeAws_json1_1TagKeyList = (output, context) => {
|
|
|
765
914
|
});
|
|
766
915
|
return retVal;
|
|
767
916
|
};
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
.filter((e)
|
|
771
|
-
.map((entry)
|
|
917
|
+
var deserializeAws_json1_1TagList = function (output, context) {
|
|
918
|
+
var retVal = (output || [])
|
|
919
|
+
.filter(function (e) { return e != null; })
|
|
920
|
+
.map(function (entry) {
|
|
772
921
|
if (entry === null) {
|
|
773
922
|
return null;
|
|
774
923
|
}
|
|
@@ -776,17 +925,17 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
776
925
|
});
|
|
777
926
|
return retVal;
|
|
778
927
|
};
|
|
779
|
-
|
|
928
|
+
var deserializeAws_json1_1TagResourcesOutput = function (output, context) {
|
|
780
929
|
return {
|
|
781
930
|
FailedResourcesMap: output.FailedResourcesMap != null
|
|
782
931
|
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
783
932
|
: undefined,
|
|
784
933
|
};
|
|
785
934
|
};
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
.filter((e)
|
|
789
|
-
.map((entry)
|
|
935
|
+
var deserializeAws_json1_1TagValuesOutputList = function (output, context) {
|
|
936
|
+
var retVal = (output || [])
|
|
937
|
+
.filter(function (e) { return e != null; })
|
|
938
|
+
.map(function (entry) {
|
|
790
939
|
if (entry === null) {
|
|
791
940
|
return null;
|
|
792
941
|
}
|
|
@@ -794,64 +943,87 @@ const deserializeAws_json1_1TagValuesOutputList = (output, context) => {
|
|
|
794
943
|
});
|
|
795
944
|
return retVal;
|
|
796
945
|
};
|
|
797
|
-
|
|
946
|
+
var deserializeAws_json1_1ThrottledException = function (output, context) {
|
|
798
947
|
return {
|
|
799
948
|
Message: __expectString(output.Message),
|
|
800
949
|
};
|
|
801
950
|
};
|
|
802
|
-
|
|
951
|
+
var deserializeAws_json1_1UntagResourcesOutput = function (output, context) {
|
|
803
952
|
return {
|
|
804
953
|
FailedResourcesMap: output.FailedResourcesMap != null
|
|
805
954
|
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
806
955
|
: undefined,
|
|
807
956
|
};
|
|
808
957
|
};
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
958
|
+
var deserializeMetadata = function (output) {
|
|
959
|
+
var _a, _b;
|
|
960
|
+
return ({
|
|
961
|
+
httpStatusCode: output.statusCode,
|
|
962
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
963
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
964
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
965
|
+
});
|
|
966
|
+
};
|
|
967
|
+
var collectBody = function (streamBody, context) {
|
|
968
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
816
969
|
if (streamBody instanceof Uint8Array) {
|
|
817
970
|
return Promise.resolve(streamBody);
|
|
818
971
|
}
|
|
819
972
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
820
973
|
};
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
974
|
+
var collectBodyString = function (streamBody, context) {
|
|
975
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
976
|
+
};
|
|
977
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
978
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
979
|
+
return __generator(this, function (_c) {
|
|
980
|
+
switch (_c.label) {
|
|
981
|
+
case 0: return [4, context.endpoint()];
|
|
982
|
+
case 1:
|
|
983
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
984
|
+
contents = {
|
|
985
|
+
protocol: protocol,
|
|
986
|
+
hostname: hostname,
|
|
987
|
+
port: port,
|
|
988
|
+
method: "POST",
|
|
989
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
990
|
+
headers: headers,
|
|
991
|
+
};
|
|
992
|
+
if (resolvedHostname !== undefined) {
|
|
993
|
+
contents.hostname = resolvedHostname;
|
|
994
|
+
}
|
|
995
|
+
if (body !== undefined) {
|
|
996
|
+
contents.body = body;
|
|
997
|
+
}
|
|
998
|
+
return [2, new __HttpRequest(contents)];
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
}); };
|
|
1002
|
+
var parseBody = function (streamBody, context) {
|
|
1003
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1004
|
+
if (encoded.length) {
|
|
1005
|
+
return JSON.parse(encoded);
|
|
1006
|
+
}
|
|
1007
|
+
return {};
|
|
1008
|
+
});
|
|
839
1009
|
};
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
1010
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1011
|
+
var value;
|
|
1012
|
+
var _a;
|
|
1013
|
+
return __generator(this, function (_b) {
|
|
1014
|
+
switch (_b.label) {
|
|
1015
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
1016
|
+
case 1:
|
|
1017
|
+
value = _b.sent();
|
|
1018
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1019
|
+
return [2, value];
|
|
1020
|
+
}
|
|
1021
|
+
});
|
|
1022
|
+
}); };
|
|
1023
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
1024
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1025
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
1026
|
+
var cleanValue = rawValue;
|
|
855
1027
|
if (typeof cleanValue === "number") {
|
|
856
1028
|
cleanValue = cleanValue.toString();
|
|
857
1029
|
}
|
|
@@ -866,7 +1038,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
866
1038
|
}
|
|
867
1039
|
return cleanValue;
|
|
868
1040
|
};
|
|
869
|
-
|
|
1041
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
870
1042
|
if (headerKey !== undefined) {
|
|
871
1043
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
872
1044
|
}
|