@aws-sdk/client-health 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/HealthServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +41 -1
- package/dist-cjs/protocols/Aws_json1_1.js +103 -253
- package/dist-es/index.js +1 -0
- package/dist-es/models/HealthServiceException.js +12 -0
- package/dist-es/models/models_0.js +38 -1
- package/dist-es/protocols/Aws_json1_1.js +216 -286
- package/dist-types/HealthClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/HealthServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +23 -13
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/HealthClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/HealthServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +17 -13
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { HealthServiceException as __BaseException } from "../models/HealthServiceException";
|
|
5
|
+
import { ConcurrentModificationException, InvalidPaginationToken, UnsupportedLocale, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -163,16 +165,16 @@ export var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand
|
|
|
163
165
|
});
|
|
164
166
|
}); };
|
|
165
167
|
var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
166
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
167
|
-
var
|
|
168
|
-
return __generator(this, function (
|
|
169
|
-
switch (
|
|
168
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
169
|
+
var _c;
|
|
170
|
+
return __generator(this, function (_d) {
|
|
171
|
+
switch (_d.label) {
|
|
170
172
|
case 0:
|
|
171
173
|
_a = [__assign({}, output)];
|
|
172
|
-
|
|
174
|
+
_c = {};
|
|
173
175
|
return [4, parseBody(output.body, context)];
|
|
174
176
|
case 1:
|
|
175
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
177
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
176
178
|
errorCode = "UnknownError";
|
|
177
179
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
178
180
|
_b = errorCode;
|
|
@@ -181,22 +183,16 @@ var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError =
|
|
|
181
183
|
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
182
184
|
}
|
|
183
185
|
return [3, 4];
|
|
184
|
-
case 2:
|
|
185
|
-
|
|
186
|
-
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
187
|
-
case 3:
|
|
188
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
189
|
-
return [3, 5];
|
|
186
|
+
case 2: return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
187
|
+
case 3: throw _d.sent();
|
|
190
188
|
case 4:
|
|
191
189
|
parsedBody = parsedOutput.body;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
response
|
|
198
|
-
delete response.Message;
|
|
199
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
190
|
+
response = new __BaseException({
|
|
191
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
192
|
+
$fault: "client",
|
|
193
|
+
$metadata: deserializeMetadata(output),
|
|
194
|
+
});
|
|
195
|
+
throw __decorateServiceException(response, parsedBody);
|
|
200
196
|
}
|
|
201
197
|
});
|
|
202
198
|
}); };
|
|
@@ -219,16 +215,16 @@ export var deserializeAws_json1_1DescribeAffectedEntitiesCommand = function (out
|
|
|
219
215
|
});
|
|
220
216
|
}); };
|
|
221
217
|
var deserializeAws_json1_1DescribeAffectedEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
223
|
-
var
|
|
224
|
-
return __generator(this, function (
|
|
225
|
-
switch (
|
|
218
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
219
|
+
var _c;
|
|
220
|
+
return __generator(this, function (_d) {
|
|
221
|
+
switch (_d.label) {
|
|
226
222
|
case 0:
|
|
227
223
|
_a = [__assign({}, output)];
|
|
228
|
-
|
|
224
|
+
_c = {};
|
|
229
225
|
return [4, parseBody(output.body, context)];
|
|
230
226
|
case 1:
|
|
231
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
227
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
232
228
|
errorCode = "UnknownError";
|
|
233
229
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
230
|
_b = errorCode;
|
|
@@ -239,28 +235,18 @@ var deserializeAws_json1_1DescribeAffectedEntitiesCommandError = function (outpu
|
|
|
239
235
|
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
240
236
|
}
|
|
241
237
|
return [3, 6];
|
|
242
|
-
case 2:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
case
|
|
246
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
247
|
-
return [3, 7];
|
|
248
|
-
case 4:
|
|
249
|
-
_d = [{}];
|
|
250
|
-
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
251
|
-
case 5:
|
|
252
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
253
|
-
return [3, 7];
|
|
238
|
+
case 2: return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
239
|
+
case 3: throw _d.sent();
|
|
240
|
+
case 4: return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
241
|
+
case 5: throw _d.sent();
|
|
254
242
|
case 6:
|
|
255
243
|
parsedBody = parsedOutput.body;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
response
|
|
262
|
-
delete response.Message;
|
|
263
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
244
|
+
response = new __BaseException({
|
|
245
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
246
|
+
$fault: "client",
|
|
247
|
+
$metadata: deserializeMetadata(output),
|
|
248
|
+
});
|
|
249
|
+
throw __decorateServiceException(response, parsedBody);
|
|
264
250
|
}
|
|
265
251
|
});
|
|
266
252
|
}); };
|
|
@@ -283,16 +269,16 @@ export var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand
|
|
|
283
269
|
});
|
|
284
270
|
}); };
|
|
285
271
|
var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
286
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
287
|
-
var
|
|
288
|
-
return __generator(this, function (
|
|
289
|
-
switch (
|
|
272
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
273
|
+
var _c;
|
|
274
|
+
return __generator(this, function (_d) {
|
|
275
|
+
switch (_d.label) {
|
|
290
276
|
case 0:
|
|
291
277
|
_a = [__assign({}, output)];
|
|
292
|
-
|
|
278
|
+
_c = {};
|
|
293
279
|
return [4, parseBody(output.body, context)];
|
|
294
280
|
case 1:
|
|
295
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
281
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
296
282
|
errorCode = "UnknownError";
|
|
297
283
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
298
284
|
_b = errorCode;
|
|
@@ -303,28 +289,18 @@ var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError =
|
|
|
303
289
|
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
304
290
|
}
|
|
305
291
|
return [3, 6];
|
|
306
|
-
case 2:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
case
|
|
310
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
311
|
-
return [3, 7];
|
|
312
|
-
case 4:
|
|
313
|
-
_d = [{}];
|
|
314
|
-
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
315
|
-
case 5:
|
|
316
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
317
|
-
return [3, 7];
|
|
292
|
+
case 2: return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
293
|
+
case 3: throw _d.sent();
|
|
294
|
+
case 4: return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
295
|
+
case 5: throw _d.sent();
|
|
318
296
|
case 6:
|
|
319
297
|
parsedBody = parsedOutput.body;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
response
|
|
326
|
-
delete response.Message;
|
|
327
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
298
|
+
response = new __BaseException({
|
|
299
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
300
|
+
$fault: "client",
|
|
301
|
+
$metadata: deserializeMetadata(output),
|
|
302
|
+
});
|
|
303
|
+
throw __decorateServiceException(response, parsedBody);
|
|
328
304
|
}
|
|
329
305
|
});
|
|
330
306
|
}); };
|
|
@@ -347,7 +323,7 @@ export var deserializeAws_json1_1DescribeEntityAggregatesCommand = function (out
|
|
|
347
323
|
});
|
|
348
324
|
}); };
|
|
349
325
|
var deserializeAws_json1_1DescribeEntityAggregatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
350
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
326
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
351
327
|
var _b;
|
|
352
328
|
return __generator(this, function (_c) {
|
|
353
329
|
switch (_c.label) {
|
|
@@ -362,13 +338,14 @@ var deserializeAws_json1_1DescribeEntityAggregatesCommandError = function (outpu
|
|
|
362
338
|
switch (errorCode) {
|
|
363
339
|
default:
|
|
364
340
|
parsedBody = parsedOutput.body;
|
|
365
|
-
|
|
366
|
-
|
|
341
|
+
response = new __BaseException({
|
|
342
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
343
|
+
$fault: "client",
|
|
344
|
+
$metadata: deserializeMetadata(output),
|
|
345
|
+
});
|
|
346
|
+
throw __decorateServiceException(response, parsedBody);
|
|
367
347
|
}
|
|
368
|
-
|
|
369
|
-
response.message = message;
|
|
370
|
-
delete response.Message;
|
|
371
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
348
|
+
return [2];
|
|
372
349
|
}
|
|
373
350
|
});
|
|
374
351
|
}); };
|
|
@@ -391,16 +368,16 @@ export var deserializeAws_json1_1DescribeEventAggregatesCommand = function (outp
|
|
|
391
368
|
});
|
|
392
369
|
}); };
|
|
393
370
|
var deserializeAws_json1_1DescribeEventAggregatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
394
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
395
|
-
var
|
|
396
|
-
return __generator(this, function (
|
|
397
|
-
switch (
|
|
371
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
372
|
+
var _c;
|
|
373
|
+
return __generator(this, function (_d) {
|
|
374
|
+
switch (_d.label) {
|
|
398
375
|
case 0:
|
|
399
376
|
_a = [__assign({}, output)];
|
|
400
|
-
|
|
377
|
+
_c = {};
|
|
401
378
|
return [4, parseBody(output.body, context)];
|
|
402
379
|
case 1:
|
|
403
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
380
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
404
381
|
errorCode = "UnknownError";
|
|
405
382
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
406
383
|
_b = errorCode;
|
|
@@ -409,22 +386,16 @@ var deserializeAws_json1_1DescribeEventAggregatesCommandError = function (output
|
|
|
409
386
|
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
410
387
|
}
|
|
411
388
|
return [3, 4];
|
|
412
|
-
case 2:
|
|
413
|
-
|
|
414
|
-
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
415
|
-
case 3:
|
|
416
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
417
|
-
return [3, 5];
|
|
389
|
+
case 2: return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
390
|
+
case 3: throw _d.sent();
|
|
418
391
|
case 4:
|
|
419
392
|
parsedBody = parsedOutput.body;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
response
|
|
426
|
-
delete response.Message;
|
|
427
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
393
|
+
response = new __BaseException({
|
|
394
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
395
|
+
$fault: "client",
|
|
396
|
+
$metadata: deserializeMetadata(output),
|
|
397
|
+
});
|
|
398
|
+
throw __decorateServiceException(response, parsedBody);
|
|
428
399
|
}
|
|
429
400
|
});
|
|
430
401
|
}); };
|
|
@@ -447,16 +418,16 @@ export var deserializeAws_json1_1DescribeEventDetailsCommand = function (output,
|
|
|
447
418
|
});
|
|
448
419
|
}); };
|
|
449
420
|
var deserializeAws_json1_1DescribeEventDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
450
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
451
|
-
var
|
|
452
|
-
return __generator(this, function (
|
|
453
|
-
switch (
|
|
421
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
422
|
+
var _c;
|
|
423
|
+
return __generator(this, function (_d) {
|
|
424
|
+
switch (_d.label) {
|
|
454
425
|
case 0:
|
|
455
426
|
_a = [__assign({}, output)];
|
|
456
|
-
|
|
427
|
+
_c = {};
|
|
457
428
|
return [4, parseBody(output.body, context)];
|
|
458
429
|
case 1:
|
|
459
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
430
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
460
431
|
errorCode = "UnknownError";
|
|
461
432
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
462
433
|
_b = errorCode;
|
|
@@ -465,22 +436,16 @@ var deserializeAws_json1_1DescribeEventDetailsCommandError = function (output, c
|
|
|
465
436
|
case "com.amazonaws.health#UnsupportedLocale": return [3, 2];
|
|
466
437
|
}
|
|
467
438
|
return [3, 4];
|
|
468
|
-
case 2:
|
|
469
|
-
|
|
470
|
-
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
471
|
-
case 3:
|
|
472
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
473
|
-
return [3, 5];
|
|
439
|
+
case 2: return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
440
|
+
case 3: throw _d.sent();
|
|
474
441
|
case 4:
|
|
475
442
|
parsedBody = parsedOutput.body;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
response
|
|
482
|
-
delete response.Message;
|
|
483
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
443
|
+
response = new __BaseException({
|
|
444
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
445
|
+
$fault: "client",
|
|
446
|
+
$metadata: deserializeMetadata(output),
|
|
447
|
+
});
|
|
448
|
+
throw __decorateServiceException(response, parsedBody);
|
|
484
449
|
}
|
|
485
450
|
});
|
|
486
451
|
}); };
|
|
@@ -503,16 +468,16 @@ export var deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand = fu
|
|
|
503
468
|
});
|
|
504
469
|
}); };
|
|
505
470
|
var deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
506
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
507
|
-
var
|
|
508
|
-
return __generator(this, function (
|
|
509
|
-
switch (
|
|
471
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
472
|
+
var _c;
|
|
473
|
+
return __generator(this, function (_d) {
|
|
474
|
+
switch (_d.label) {
|
|
510
475
|
case 0:
|
|
511
476
|
_a = [__assign({}, output)];
|
|
512
|
-
|
|
477
|
+
_c = {};
|
|
513
478
|
return [4, parseBody(output.body, context)];
|
|
514
479
|
case 1:
|
|
515
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
480
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
516
481
|
errorCode = "UnknownError";
|
|
517
482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
483
|
_b = errorCode;
|
|
@@ -521,22 +486,16 @@ var deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = func
|
|
|
521
486
|
case "com.amazonaws.health#UnsupportedLocale": return [3, 2];
|
|
522
487
|
}
|
|
523
488
|
return [3, 4];
|
|
524
|
-
case 2:
|
|
525
|
-
|
|
526
|
-
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
527
|
-
case 3:
|
|
528
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
529
|
-
return [3, 5];
|
|
489
|
+
case 2: return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
490
|
+
case 3: throw _d.sent();
|
|
530
491
|
case 4:
|
|
531
492
|
parsedBody = parsedOutput.body;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
response
|
|
538
|
-
delete response.Message;
|
|
539
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
493
|
+
response = new __BaseException({
|
|
494
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
495
|
+
$fault: "client",
|
|
496
|
+
$metadata: deserializeMetadata(output),
|
|
497
|
+
});
|
|
498
|
+
throw __decorateServiceException(response, parsedBody);
|
|
540
499
|
}
|
|
541
500
|
});
|
|
542
501
|
}); };
|
|
@@ -559,16 +518,16 @@ export var deserializeAws_json1_1DescribeEventsCommand = function (output, conte
|
|
|
559
518
|
});
|
|
560
519
|
}); };
|
|
561
520
|
var deserializeAws_json1_1DescribeEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
562
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
563
|
-
var
|
|
564
|
-
return __generator(this, function (
|
|
565
|
-
switch (
|
|
521
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
522
|
+
var _c;
|
|
523
|
+
return __generator(this, function (_d) {
|
|
524
|
+
switch (_d.label) {
|
|
566
525
|
case 0:
|
|
567
526
|
_a = [__assign({}, output)];
|
|
568
|
-
|
|
527
|
+
_c = {};
|
|
569
528
|
return [4, parseBody(output.body, context)];
|
|
570
529
|
case 1:
|
|
571
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
530
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
572
531
|
errorCode = "UnknownError";
|
|
573
532
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
533
|
_b = errorCode;
|
|
@@ -579,28 +538,18 @@ var deserializeAws_json1_1DescribeEventsCommandError = function (output, context
|
|
|
579
538
|
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
580
539
|
}
|
|
581
540
|
return [3, 6];
|
|
582
|
-
case 2:
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
case
|
|
586
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
587
|
-
return [3, 7];
|
|
588
|
-
case 4:
|
|
589
|
-
_d = [{}];
|
|
590
|
-
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
591
|
-
case 5:
|
|
592
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
593
|
-
return [3, 7];
|
|
541
|
+
case 2: return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
542
|
+
case 3: throw _d.sent();
|
|
543
|
+
case 4: return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
544
|
+
case 5: throw _d.sent();
|
|
594
545
|
case 6:
|
|
595
546
|
parsedBody = parsedOutput.body;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
response
|
|
602
|
-
delete response.Message;
|
|
603
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
547
|
+
response = new __BaseException({
|
|
548
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
549
|
+
$fault: "client",
|
|
550
|
+
$metadata: deserializeMetadata(output),
|
|
551
|
+
});
|
|
552
|
+
throw __decorateServiceException(response, parsedBody);
|
|
604
553
|
}
|
|
605
554
|
});
|
|
606
555
|
}); };
|
|
@@ -623,16 +572,16 @@ export var deserializeAws_json1_1DescribeEventsForOrganizationCommand = function
|
|
|
623
572
|
});
|
|
624
573
|
}); };
|
|
625
574
|
var deserializeAws_json1_1DescribeEventsForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
626
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
627
|
-
var
|
|
628
|
-
return __generator(this, function (
|
|
629
|
-
switch (
|
|
575
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
576
|
+
var _c;
|
|
577
|
+
return __generator(this, function (_d) {
|
|
578
|
+
switch (_d.label) {
|
|
630
579
|
case 0:
|
|
631
580
|
_a = [__assign({}, output)];
|
|
632
|
-
|
|
581
|
+
_c = {};
|
|
633
582
|
return [4, parseBody(output.body, context)];
|
|
634
583
|
case 1:
|
|
635
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
584
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
636
585
|
errorCode = "UnknownError";
|
|
637
586
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
587
|
_b = errorCode;
|
|
@@ -643,28 +592,18 @@ var deserializeAws_json1_1DescribeEventsForOrganizationCommandError = function (
|
|
|
643
592
|
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
644
593
|
}
|
|
645
594
|
return [3, 6];
|
|
646
|
-
case 2:
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
case
|
|
650
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
651
|
-
return [3, 7];
|
|
652
|
-
case 4:
|
|
653
|
-
_d = [{}];
|
|
654
|
-
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
655
|
-
case 5:
|
|
656
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
657
|
-
return [3, 7];
|
|
595
|
+
case 2: return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
596
|
+
case 3: throw _d.sent();
|
|
597
|
+
case 4: return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
598
|
+
case 5: throw _d.sent();
|
|
658
599
|
case 6:
|
|
659
600
|
parsedBody = parsedOutput.body;
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
response
|
|
666
|
-
delete response.Message;
|
|
667
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
601
|
+
response = new __BaseException({
|
|
602
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
603
|
+
$fault: "client",
|
|
604
|
+
$metadata: deserializeMetadata(output),
|
|
605
|
+
});
|
|
606
|
+
throw __decorateServiceException(response, parsedBody);
|
|
668
607
|
}
|
|
669
608
|
});
|
|
670
609
|
}); };
|
|
@@ -687,16 +626,16 @@ export var deserializeAws_json1_1DescribeEventTypesCommand = function (output, c
|
|
|
687
626
|
});
|
|
688
627
|
}); };
|
|
689
628
|
var deserializeAws_json1_1DescribeEventTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
690
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
691
|
-
var
|
|
692
|
-
return __generator(this, function (
|
|
693
|
-
switch (
|
|
629
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
630
|
+
var _c;
|
|
631
|
+
return __generator(this, function (_d) {
|
|
632
|
+
switch (_d.label) {
|
|
694
633
|
case 0:
|
|
695
634
|
_a = [__assign({}, output)];
|
|
696
|
-
|
|
635
|
+
_c = {};
|
|
697
636
|
return [4, parseBody(output.body, context)];
|
|
698
637
|
case 1:
|
|
699
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
638
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
700
639
|
errorCode = "UnknownError";
|
|
701
640
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
641
|
_b = errorCode;
|
|
@@ -707,28 +646,18 @@ var deserializeAws_json1_1DescribeEventTypesCommandError = function (output, con
|
|
|
707
646
|
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
708
647
|
}
|
|
709
648
|
return [3, 6];
|
|
710
|
-
case 2:
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
case
|
|
714
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
715
|
-
return [3, 7];
|
|
716
|
-
case 4:
|
|
717
|
-
_d = [{}];
|
|
718
|
-
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
719
|
-
case 5:
|
|
720
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
721
|
-
return [3, 7];
|
|
649
|
+
case 2: return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
650
|
+
case 3: throw _d.sent();
|
|
651
|
+
case 4: return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
652
|
+
case 5: throw _d.sent();
|
|
722
653
|
case 6:
|
|
723
654
|
parsedBody = parsedOutput.body;
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
response
|
|
730
|
-
delete response.Message;
|
|
731
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
655
|
+
response = new __BaseException({
|
|
656
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
657
|
+
$fault: "client",
|
|
658
|
+
$metadata: deserializeMetadata(output),
|
|
659
|
+
});
|
|
660
|
+
throw __decorateServiceException(response, parsedBody);
|
|
732
661
|
}
|
|
733
662
|
});
|
|
734
663
|
}); };
|
|
@@ -751,7 +680,7 @@ export var deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationComma
|
|
|
751
680
|
});
|
|
752
681
|
}); };
|
|
753
682
|
var deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
754
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
683
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
755
684
|
var _b;
|
|
756
685
|
return __generator(this, function (_c) {
|
|
757
686
|
switch (_c.label) {
|
|
@@ -766,13 +695,14 @@ var deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandError
|
|
|
766
695
|
switch (errorCode) {
|
|
767
696
|
default:
|
|
768
697
|
parsedBody = parsedOutput.body;
|
|
769
|
-
|
|
770
|
-
|
|
698
|
+
response = new __BaseException({
|
|
699
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
700
|
+
$fault: "client",
|
|
701
|
+
$metadata: deserializeMetadata(output),
|
|
702
|
+
});
|
|
703
|
+
throw __decorateServiceException(response, parsedBody);
|
|
771
704
|
}
|
|
772
|
-
|
|
773
|
-
response.message = message;
|
|
774
|
-
delete response.Message;
|
|
775
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
705
|
+
return [2];
|
|
776
706
|
}
|
|
777
707
|
});
|
|
778
708
|
}); };
|
|
@@ -795,16 +725,16 @@ export var deserializeAws_json1_1DisableHealthServiceAccessForOrganizationComman
|
|
|
795
725
|
});
|
|
796
726
|
}); };
|
|
797
727
|
var deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
798
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
799
|
-
var
|
|
800
|
-
return __generator(this, function (
|
|
801
|
-
switch (
|
|
728
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
729
|
+
var _c;
|
|
730
|
+
return __generator(this, function (_d) {
|
|
731
|
+
switch (_d.label) {
|
|
802
732
|
case 0:
|
|
803
733
|
_a = [__assign({}, output)];
|
|
804
|
-
|
|
734
|
+
_c = {};
|
|
805
735
|
return [4, parseBody(output.body, context)];
|
|
806
736
|
case 1:
|
|
807
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
737
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
808
738
|
errorCode = "UnknownError";
|
|
809
739
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
740
|
_b = errorCode;
|
|
@@ -813,22 +743,16 @@ var deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandError
|
|
|
813
743
|
case "com.amazonaws.health#ConcurrentModificationException": return [3, 2];
|
|
814
744
|
}
|
|
815
745
|
return [3, 4];
|
|
816
|
-
case 2:
|
|
817
|
-
|
|
818
|
-
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
819
|
-
case 3:
|
|
820
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
821
|
-
return [3, 5];
|
|
746
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
747
|
+
case 3: throw _d.sent();
|
|
822
748
|
case 4:
|
|
823
749
|
parsedBody = parsedOutput.body;
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
response
|
|
830
|
-
delete response.Message;
|
|
831
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
750
|
+
response = new __BaseException({
|
|
751
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
752
|
+
$fault: "client",
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
});
|
|
755
|
+
throw __decorateServiceException(response, parsedBody);
|
|
832
756
|
}
|
|
833
757
|
});
|
|
834
758
|
}); };
|
|
@@ -851,16 +775,16 @@ export var deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand
|
|
|
851
775
|
});
|
|
852
776
|
}); };
|
|
853
777
|
var deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
854
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
855
|
-
var
|
|
856
|
-
return __generator(this, function (
|
|
857
|
-
switch (
|
|
778
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
779
|
+
var _c;
|
|
780
|
+
return __generator(this, function (_d) {
|
|
781
|
+
switch (_d.label) {
|
|
858
782
|
case 0:
|
|
859
783
|
_a = [__assign({}, output)];
|
|
860
|
-
|
|
784
|
+
_c = {};
|
|
861
785
|
return [4, parseBody(output.body, context)];
|
|
862
786
|
case 1:
|
|
863
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
787
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
864
788
|
errorCode = "UnknownError";
|
|
865
789
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
866
790
|
_b = errorCode;
|
|
@@ -869,50 +793,44 @@ var deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError =
|
|
|
869
793
|
case "com.amazonaws.health#ConcurrentModificationException": return [3, 2];
|
|
870
794
|
}
|
|
871
795
|
return [3, 4];
|
|
872
|
-
case 2:
|
|
873
|
-
|
|
874
|
-
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
875
|
-
case 3:
|
|
876
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
877
|
-
return [3, 5];
|
|
796
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
797
|
+
case 3: throw _d.sent();
|
|
878
798
|
case 4:
|
|
879
799
|
parsedBody = parsedOutput.body;
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
response
|
|
886
|
-
delete response.Message;
|
|
887
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
800
|
+
response = new __BaseException({
|
|
801
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
802
|
+
$fault: "client",
|
|
803
|
+
$metadata: deserializeMetadata(output),
|
|
804
|
+
});
|
|
805
|
+
throw __decorateServiceException(response, parsedBody);
|
|
888
806
|
}
|
|
889
807
|
});
|
|
890
808
|
}); };
|
|
891
809
|
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
892
|
-
var body, deserialized,
|
|
810
|
+
var body, deserialized, exception;
|
|
893
811
|
return __generator(this, function (_a) {
|
|
894
812
|
body = parsedOutput.body;
|
|
895
813
|
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
896
|
-
|
|
897
|
-
return [2,
|
|
814
|
+
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
815
|
+
return [2, __decorateServiceException(exception, body)];
|
|
898
816
|
});
|
|
899
817
|
}); };
|
|
900
818
|
var deserializeAws_json1_1InvalidPaginationTokenResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
901
|
-
var body, deserialized,
|
|
819
|
+
var body, deserialized, exception;
|
|
902
820
|
return __generator(this, function (_a) {
|
|
903
821
|
body = parsedOutput.body;
|
|
904
822
|
deserialized = deserializeAws_json1_1InvalidPaginationToken(body, context);
|
|
905
|
-
|
|
906
|
-
return [2,
|
|
823
|
+
exception = new InvalidPaginationToken(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
824
|
+
return [2, __decorateServiceException(exception, body)];
|
|
907
825
|
});
|
|
908
826
|
}); };
|
|
909
827
|
var deserializeAws_json1_1UnsupportedLocaleResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
910
|
-
var body, deserialized,
|
|
828
|
+
var body, deserialized, exception;
|
|
911
829
|
return __generator(this, function (_a) {
|
|
912
830
|
body = parsedOutput.body;
|
|
913
831
|
deserialized = deserializeAws_json1_1UnsupportedLocale(body, context);
|
|
914
|
-
|
|
915
|
-
return [2,
|
|
832
|
+
exception = new UnsupportedLocale(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
833
|
+
return [2, __decorateServiceException(exception, body)];
|
|
916
834
|
});
|
|
917
835
|
}); };
|
|
918
836
|
var serializeAws_json1_1availabilityZones = function (input, context) {
|
|
@@ -1235,7 +1153,7 @@ var serializeAws_json1_1tagSet = function (input, context) {
|
|
|
1235
1153
|
}, {});
|
|
1236
1154
|
};
|
|
1237
1155
|
var deserializeAws_json1_1affectedAccountsList = function (output, context) {
|
|
1238
|
-
|
|
1156
|
+
var retVal = (output || [])
|
|
1239
1157
|
.filter(function (e) { return e != null; })
|
|
1240
1158
|
.map(function (entry) {
|
|
1241
1159
|
if (entry === null) {
|
|
@@ -1243,6 +1161,7 @@ var deserializeAws_json1_1affectedAccountsList = function (output, context) {
|
|
|
1243
1161
|
}
|
|
1244
1162
|
return __expectString(entry);
|
|
1245
1163
|
});
|
|
1164
|
+
return retVal;
|
|
1246
1165
|
};
|
|
1247
1166
|
var deserializeAws_json1_1AffectedEntity = function (output, context) {
|
|
1248
1167
|
return {
|
|
@@ -1275,7 +1194,7 @@ var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationResponse = func
|
|
|
1275
1194
|
};
|
|
1276
1195
|
};
|
|
1277
1196
|
var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet = function (output, context) {
|
|
1278
|
-
|
|
1197
|
+
var retVal = (output || [])
|
|
1279
1198
|
.filter(function (e) { return e != null; })
|
|
1280
1199
|
.map(function (entry) {
|
|
1281
1200
|
if (entry === null) {
|
|
@@ -1283,6 +1202,7 @@ var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet = fun
|
|
|
1283
1202
|
}
|
|
1284
1203
|
return deserializeAws_json1_1OrganizationAffectedEntitiesErrorItem(entry, context);
|
|
1285
1204
|
});
|
|
1205
|
+
return retVal;
|
|
1286
1206
|
};
|
|
1287
1207
|
var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationResponse = function (output, context) {
|
|
1288
1208
|
return {
|
|
@@ -1319,7 +1239,7 @@ var deserializeAws_json1_1DescribeEventAggregatesResponse = function (output, co
|
|
|
1319
1239
|
};
|
|
1320
1240
|
};
|
|
1321
1241
|
var deserializeAws_json1_1DescribeEventDetailsFailedSet = function (output, context) {
|
|
1322
|
-
|
|
1242
|
+
var retVal = (output || [])
|
|
1323
1243
|
.filter(function (e) { return e != null; })
|
|
1324
1244
|
.map(function (entry) {
|
|
1325
1245
|
if (entry === null) {
|
|
@@ -1327,9 +1247,10 @@ var deserializeAws_json1_1DescribeEventDetailsFailedSet = function (output, cont
|
|
|
1327
1247
|
}
|
|
1328
1248
|
return deserializeAws_json1_1EventDetailsErrorItem(entry, context);
|
|
1329
1249
|
});
|
|
1250
|
+
return retVal;
|
|
1330
1251
|
};
|
|
1331
1252
|
var deserializeAws_json1_1DescribeEventDetailsForOrganizationFailedSet = function (output, context) {
|
|
1332
|
-
|
|
1253
|
+
var retVal = (output || [])
|
|
1333
1254
|
.filter(function (e) { return e != null; })
|
|
1334
1255
|
.map(function (entry) {
|
|
1335
1256
|
if (entry === null) {
|
|
@@ -1337,6 +1258,7 @@ var deserializeAws_json1_1DescribeEventDetailsForOrganizationFailedSet = functio
|
|
|
1337
1258
|
}
|
|
1338
1259
|
return deserializeAws_json1_1OrganizationEventDetailsErrorItem(entry, context);
|
|
1339
1260
|
});
|
|
1261
|
+
return retVal;
|
|
1340
1262
|
};
|
|
1341
1263
|
var deserializeAws_json1_1DescribeEventDetailsForOrganizationResponse = function (output, context) {
|
|
1342
1264
|
return {
|
|
@@ -1349,7 +1271,7 @@ var deserializeAws_json1_1DescribeEventDetailsForOrganizationResponse = function
|
|
|
1349
1271
|
};
|
|
1350
1272
|
};
|
|
1351
1273
|
var deserializeAws_json1_1DescribeEventDetailsForOrganizationSuccessfulSet = function (output, context) {
|
|
1352
|
-
|
|
1274
|
+
var retVal = (output || [])
|
|
1353
1275
|
.filter(function (e) { return e != null; })
|
|
1354
1276
|
.map(function (entry) {
|
|
1355
1277
|
if (entry === null) {
|
|
@@ -1357,6 +1279,7 @@ var deserializeAws_json1_1DescribeEventDetailsForOrganizationSuccessfulSet = fun
|
|
|
1357
1279
|
}
|
|
1358
1280
|
return deserializeAws_json1_1OrganizationEventDetails(entry, context);
|
|
1359
1281
|
});
|
|
1282
|
+
return retVal;
|
|
1360
1283
|
};
|
|
1361
1284
|
var deserializeAws_json1_1DescribeEventDetailsResponse = function (output, context) {
|
|
1362
1285
|
return {
|
|
@@ -1369,7 +1292,7 @@ var deserializeAws_json1_1DescribeEventDetailsResponse = function (output, conte
|
|
|
1369
1292
|
};
|
|
1370
1293
|
};
|
|
1371
1294
|
var deserializeAws_json1_1DescribeEventDetailsSuccessfulSet = function (output, context) {
|
|
1372
|
-
|
|
1295
|
+
var retVal = (output || [])
|
|
1373
1296
|
.filter(function (e) { return e != null; })
|
|
1374
1297
|
.map(function (entry) {
|
|
1375
1298
|
if (entry === null) {
|
|
@@ -1377,6 +1300,7 @@ var deserializeAws_json1_1DescribeEventDetailsSuccessfulSet = function (output,
|
|
|
1377
1300
|
}
|
|
1378
1301
|
return deserializeAws_json1_1EventDetails(entry, context);
|
|
1379
1302
|
});
|
|
1303
|
+
return retVal;
|
|
1380
1304
|
};
|
|
1381
1305
|
var deserializeAws_json1_1DescribeEventsForOrganizationResponse = function (output, context) {
|
|
1382
1306
|
return {
|
|
@@ -1414,7 +1338,7 @@ var deserializeAws_json1_1EntityAggregate = function (output, context) {
|
|
|
1414
1338
|
};
|
|
1415
1339
|
};
|
|
1416
1340
|
var deserializeAws_json1_1EntityAggregateList = function (output, context) {
|
|
1417
|
-
|
|
1341
|
+
var retVal = (output || [])
|
|
1418
1342
|
.filter(function (e) { return e != null; })
|
|
1419
1343
|
.map(function (entry) {
|
|
1420
1344
|
if (entry === null) {
|
|
@@ -1422,9 +1346,10 @@ var deserializeAws_json1_1EntityAggregateList = function (output, context) {
|
|
|
1422
1346
|
}
|
|
1423
1347
|
return deserializeAws_json1_1EntityAggregate(entry, context);
|
|
1424
1348
|
});
|
|
1349
|
+
return retVal;
|
|
1425
1350
|
};
|
|
1426
1351
|
var deserializeAws_json1_1EntityList = function (output, context) {
|
|
1427
|
-
|
|
1352
|
+
var retVal = (output || [])
|
|
1428
1353
|
.filter(function (e) { return e != null; })
|
|
1429
1354
|
.map(function (entry) {
|
|
1430
1355
|
if (entry === null) {
|
|
@@ -1432,6 +1357,7 @@ var deserializeAws_json1_1EntityList = function (output, context) {
|
|
|
1432
1357
|
}
|
|
1433
1358
|
return deserializeAws_json1_1AffectedEntity(entry, context);
|
|
1434
1359
|
});
|
|
1360
|
+
return retVal;
|
|
1435
1361
|
};
|
|
1436
1362
|
var deserializeAws_json1_1Event = function (output, context) {
|
|
1437
1363
|
return {
|
|
@@ -1461,7 +1387,7 @@ var deserializeAws_json1_1EventAggregate = function (output, context) {
|
|
|
1461
1387
|
};
|
|
1462
1388
|
};
|
|
1463
1389
|
var deserializeAws_json1_1EventAggregateList = function (output, context) {
|
|
1464
|
-
|
|
1390
|
+
var retVal = (output || [])
|
|
1465
1391
|
.filter(function (e) { return e != null; })
|
|
1466
1392
|
.map(function (entry) {
|
|
1467
1393
|
if (entry === null) {
|
|
@@ -1469,6 +1395,7 @@ var deserializeAws_json1_1EventAggregateList = function (output, context) {
|
|
|
1469
1395
|
}
|
|
1470
1396
|
return deserializeAws_json1_1EventAggregate(entry, context);
|
|
1471
1397
|
});
|
|
1398
|
+
return retVal;
|
|
1472
1399
|
};
|
|
1473
1400
|
var deserializeAws_json1_1EventDescription = function (output, context) {
|
|
1474
1401
|
return {
|
|
@@ -1496,7 +1423,7 @@ var deserializeAws_json1_1EventDetailsErrorItem = function (output, context) {
|
|
|
1496
1423
|
};
|
|
1497
1424
|
};
|
|
1498
1425
|
var deserializeAws_json1_1EventList = function (output, context) {
|
|
1499
|
-
|
|
1426
|
+
var retVal = (output || [])
|
|
1500
1427
|
.filter(function (e) { return e != null; })
|
|
1501
1428
|
.map(function (entry) {
|
|
1502
1429
|
if (entry === null) {
|
|
@@ -1504,6 +1431,7 @@ var deserializeAws_json1_1EventList = function (output, context) {
|
|
|
1504
1431
|
}
|
|
1505
1432
|
return deserializeAws_json1_1Event(entry, context);
|
|
1506
1433
|
});
|
|
1434
|
+
return retVal;
|
|
1507
1435
|
};
|
|
1508
1436
|
var deserializeAws_json1_1eventMetadata = function (output, context) {
|
|
1509
1437
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -1523,7 +1451,7 @@ var deserializeAws_json1_1EventType = function (output, context) {
|
|
|
1523
1451
|
};
|
|
1524
1452
|
};
|
|
1525
1453
|
var deserializeAws_json1_1EventTypeList = function (output, context) {
|
|
1526
|
-
|
|
1454
|
+
var retVal = (output || [])
|
|
1527
1455
|
.filter(function (e) { return e != null; })
|
|
1528
1456
|
.map(function (entry) {
|
|
1529
1457
|
if (entry === null) {
|
|
@@ -1531,6 +1459,7 @@ var deserializeAws_json1_1EventTypeList = function (output, context) {
|
|
|
1531
1459
|
}
|
|
1532
1460
|
return deserializeAws_json1_1EventType(entry, context);
|
|
1533
1461
|
});
|
|
1462
|
+
return retVal;
|
|
1534
1463
|
};
|
|
1535
1464
|
var deserializeAws_json1_1InvalidPaginationToken = function (output, context) {
|
|
1536
1465
|
return {
|
|
@@ -1588,7 +1517,7 @@ var deserializeAws_json1_1OrganizationEventDetailsErrorItem = function (output,
|
|
|
1588
1517
|
};
|
|
1589
1518
|
};
|
|
1590
1519
|
var deserializeAws_json1_1OrganizationEventList = function (output, context) {
|
|
1591
|
-
|
|
1520
|
+
var retVal = (output || [])
|
|
1592
1521
|
.filter(function (e) { return e != null; })
|
|
1593
1522
|
.map(function (entry) {
|
|
1594
1523
|
if (entry === null) {
|
|
@@ -1596,6 +1525,7 @@ var deserializeAws_json1_1OrganizationEventList = function (output, context) {
|
|
|
1596
1525
|
}
|
|
1597
1526
|
return deserializeAws_json1_1OrganizationEvent(entry, context);
|
|
1598
1527
|
});
|
|
1528
|
+
return retVal;
|
|
1599
1529
|
};
|
|
1600
1530
|
var deserializeAws_json1_1tagSet = function (output, context) {
|
|
1601
1531
|
return Object.entries(output).reduce(function (acc, _a) {
|