@aws-sdk/client-health 3.132.0 → 3.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js +2 -2
  4. package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js +2 -2
  5. package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js +2 -2
  6. package/dist-cjs/commands/DescribeEntityAggregatesCommand.js +2 -2
  7. package/dist-cjs/commands/DescribeEventAggregatesCommand.js +2 -2
  8. package/dist-cjs/commands/DescribeEventDetailsCommand.js +2 -2
  9. package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js +2 -2
  10. package/dist-cjs/commands/DescribeEventTypesCommand.js +2 -2
  11. package/dist-cjs/commands/DescribeEventsCommand.js +2 -2
  12. package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js +2 -2
  13. package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js +1 -1
  14. package/dist-cjs/models/models_0.js +157 -235
  15. package/dist-cjs/protocols/Aws_json1_1.js +69 -168
  16. package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +3 -3
  17. package/dist-es/commands/DescribeAffectedEntitiesCommand.js +3 -3
  18. package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +3 -3
  19. package/dist-es/commands/DescribeEntityAggregatesCommand.js +3 -3
  20. package/dist-es/commands/DescribeEventAggregatesCommand.js +3 -3
  21. package/dist-es/commands/DescribeEventDetailsCommand.js +3 -3
  22. package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +3 -3
  23. package/dist-es/commands/DescribeEventTypesCommand.js +3 -3
  24. package/dist-es/commands/DescribeEventsCommand.js +3 -3
  25. package/dist-es/commands/DescribeEventsForOrganizationCommand.js +3 -3
  26. package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +2 -2
  27. package/dist-es/models/models_0.js +39 -156
  28. package/dist-es/protocols/Aws_json1_1.js +105 -169
  29. package/dist-types/models/models_0.d.ts +156 -234
  30. package/dist-types/ts3.4/models/models_0.d.ts +78 -156
  31. package/package.json +6 -6
@@ -151,7 +151,6 @@ const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError
151
151
  ...output,
152
152
  body: await parseBody(output.body, context),
153
153
  };
154
- let response;
155
154
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
156
155
  switch (errorCode) {
157
156
  case "InvalidPaginationToken":
@@ -159,14 +158,12 @@ const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError
159
158
  throw await deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context);
160
159
  default:
161
160
  const parsedBody = parsedOutput.body;
162
- const $metadata = deserializeMetadata(output);
163
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
164
- response = new HealthServiceException_1.HealthServiceException({
165
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
166
- $fault: "client",
167
- $metadata,
161
+ (0, smithy_client_1.throwDefaultError)({
162
+ output,
163
+ parsedBody,
164
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
165
+ errorCode,
168
166
  });
169
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
170
167
  }
171
168
  };
172
169
  const deserializeAws_json1_1DescribeAffectedEntitiesCommand = async (output, context) => {
@@ -188,7 +185,6 @@ const deserializeAws_json1_1DescribeAffectedEntitiesCommandError = async (output
188
185
  ...output,
189
186
  body: await parseBody(output.body, context),
190
187
  };
191
- let response;
192
188
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
193
189
  switch (errorCode) {
194
190
  case "InvalidPaginationToken":
@@ -199,14 +195,12 @@ const deserializeAws_json1_1DescribeAffectedEntitiesCommandError = async (output
199
195
  throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
200
196
  default:
201
197
  const parsedBody = parsedOutput.body;
202
- const $metadata = deserializeMetadata(output);
203
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
204
- response = new HealthServiceException_1.HealthServiceException({
205
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
206
- $fault: "client",
207
- $metadata,
198
+ (0, smithy_client_1.throwDefaultError)({
199
+ output,
200
+ parsedBody,
201
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
202
+ errorCode,
208
203
  });
209
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
210
204
  }
211
205
  };
212
206
  const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand = async (output, context) => {
@@ -228,7 +222,6 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError
228
222
  ...output,
229
223
  body: await parseBody(output.body, context),
230
224
  };
231
- let response;
232
225
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
233
226
  switch (errorCode) {
234
227
  case "InvalidPaginationToken":
@@ -239,14 +232,12 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError
239
232
  throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
240
233
  default:
241
234
  const parsedBody = parsedOutput.body;
242
- const $metadata = deserializeMetadata(output);
243
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
244
- response = new HealthServiceException_1.HealthServiceException({
245
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
246
- $fault: "client",
247
- $metadata,
235
+ (0, smithy_client_1.throwDefaultError)({
236
+ output,
237
+ parsedBody,
238
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
239
+ errorCode,
248
240
  });
249
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
250
241
  }
251
242
  };
252
243
  const deserializeAws_json1_1DescribeEntityAggregatesCommand = async (output, context) => {
@@ -268,20 +259,14 @@ const deserializeAws_json1_1DescribeEntityAggregatesCommandError = async (output
268
259
  ...output,
269
260
  body: await parseBody(output.body, context),
270
261
  };
271
- let response;
272
262
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
273
- switch (errorCode) {
274
- default:
275
- const parsedBody = parsedOutput.body;
276
- const $metadata = deserializeMetadata(output);
277
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
278
- response = new HealthServiceException_1.HealthServiceException({
279
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
280
- $fault: "client",
281
- $metadata,
282
- });
283
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
284
- }
263
+ const parsedBody = parsedOutput.body;
264
+ (0, smithy_client_1.throwDefaultError)({
265
+ output,
266
+ parsedBody,
267
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
268
+ errorCode,
269
+ });
285
270
  };
286
271
  const deserializeAws_json1_1DescribeEventAggregatesCommand = async (output, context) => {
287
272
  if (output.statusCode >= 300) {
@@ -302,7 +287,6 @@ const deserializeAws_json1_1DescribeEventAggregatesCommandError = async (output,
302
287
  ...output,
303
288
  body: await parseBody(output.body, context),
304
289
  };
305
- let response;
306
290
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
307
291
  switch (errorCode) {
308
292
  case "InvalidPaginationToken":
@@ -310,14 +294,12 @@ const deserializeAws_json1_1DescribeEventAggregatesCommandError = async (output,
310
294
  throw await deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context);
311
295
  default:
312
296
  const parsedBody = parsedOutput.body;
313
- const $metadata = deserializeMetadata(output);
314
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
315
- response = new HealthServiceException_1.HealthServiceException({
316
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
317
- $fault: "client",
318
- $metadata,
297
+ (0, smithy_client_1.throwDefaultError)({
298
+ output,
299
+ parsedBody,
300
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
301
+ errorCode,
319
302
  });
320
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
321
303
  }
322
304
  };
323
305
  const deserializeAws_json1_1DescribeEventDetailsCommand = async (output, context) => {
@@ -339,7 +321,6 @@ const deserializeAws_json1_1DescribeEventDetailsCommandError = async (output, co
339
321
  ...output,
340
322
  body: await parseBody(output.body, context),
341
323
  };
342
- let response;
343
324
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
344
325
  switch (errorCode) {
345
326
  case "UnsupportedLocale":
@@ -347,14 +328,12 @@ const deserializeAws_json1_1DescribeEventDetailsCommandError = async (output, co
347
328
  throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
348
329
  default:
349
330
  const parsedBody = parsedOutput.body;
350
- const $metadata = deserializeMetadata(output);
351
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
352
- response = new HealthServiceException_1.HealthServiceException({
353
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
354
- $fault: "client",
355
- $metadata,
331
+ (0, smithy_client_1.throwDefaultError)({
332
+ output,
333
+ parsedBody,
334
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
335
+ errorCode,
356
336
  });
357
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
358
337
  }
359
338
  };
360
339
  const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand = async (output, context) => {
@@ -376,7 +355,6 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = as
376
355
  ...output,
377
356
  body: await parseBody(output.body, context),
378
357
  };
379
- let response;
380
358
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
381
359
  switch (errorCode) {
382
360
  case "UnsupportedLocale":
@@ -384,14 +362,12 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = as
384
362
  throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
385
363
  default:
386
364
  const parsedBody = parsedOutput.body;
387
- const $metadata = deserializeMetadata(output);
388
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
389
- response = new HealthServiceException_1.HealthServiceException({
390
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
391
- $fault: "client",
392
- $metadata,
365
+ (0, smithy_client_1.throwDefaultError)({
366
+ output,
367
+ parsedBody,
368
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
369
+ errorCode,
393
370
  });
394
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
395
371
  }
396
372
  };
397
373
  const deserializeAws_json1_1DescribeEventsCommand = async (output, context) => {
@@ -413,7 +389,6 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
413
389
  ...output,
414
390
  body: await parseBody(output.body, context),
415
391
  };
416
- let response;
417
392
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
418
393
  switch (errorCode) {
419
394
  case "InvalidPaginationToken":
@@ -424,14 +399,12 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
424
399
  throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
425
400
  default:
426
401
  const parsedBody = parsedOutput.body;
427
- const $metadata = deserializeMetadata(output);
428
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
429
- response = new HealthServiceException_1.HealthServiceException({
430
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
431
- $fault: "client",
432
- $metadata,
402
+ (0, smithy_client_1.throwDefaultError)({
403
+ output,
404
+ parsedBody,
405
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
406
+ errorCode,
433
407
  });
434
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
435
408
  }
436
409
  };
437
410
  const deserializeAws_json1_1DescribeEventsForOrganizationCommand = async (output, context) => {
@@ -453,7 +426,6 @@ const deserializeAws_json1_1DescribeEventsForOrganizationCommandError = async (o
453
426
  ...output,
454
427
  body: await parseBody(output.body, context),
455
428
  };
456
- let response;
457
429
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
458
430
  switch (errorCode) {
459
431
  case "InvalidPaginationToken":
@@ -464,14 +436,12 @@ const deserializeAws_json1_1DescribeEventsForOrganizationCommandError = async (o
464
436
  throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
465
437
  default:
466
438
  const parsedBody = parsedOutput.body;
467
- const $metadata = deserializeMetadata(output);
468
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
469
- response = new HealthServiceException_1.HealthServiceException({
470
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
471
- $fault: "client",
472
- $metadata,
439
+ (0, smithy_client_1.throwDefaultError)({
440
+ output,
441
+ parsedBody,
442
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
443
+ errorCode,
473
444
  });
474
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
475
445
  }
476
446
  };
477
447
  const deserializeAws_json1_1DescribeEventTypesCommand = async (output, context) => {
@@ -493,7 +463,6 @@ const deserializeAws_json1_1DescribeEventTypesCommandError = async (output, cont
493
463
  ...output,
494
464
  body: await parseBody(output.body, context),
495
465
  };
496
- let response;
497
466
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
498
467
  switch (errorCode) {
499
468
  case "InvalidPaginationToken":
@@ -504,14 +473,12 @@ const deserializeAws_json1_1DescribeEventTypesCommandError = async (output, cont
504
473
  throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
505
474
  default:
506
475
  const parsedBody = parsedOutput.body;
507
- const $metadata = deserializeMetadata(output);
508
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
509
- response = new HealthServiceException_1.HealthServiceException({
510
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
511
- $fault: "client",
512
- $metadata,
476
+ (0, smithy_client_1.throwDefaultError)({
477
+ output,
478
+ parsedBody,
479
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
480
+ errorCode,
513
481
  });
514
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
515
482
  }
516
483
  };
517
484
  const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand = async (output, context) => {
@@ -533,20 +500,14 @@ const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandErr
533
500
  ...output,
534
501
  body: await parseBody(output.body, context),
535
502
  };
536
- let response;
537
503
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
538
- switch (errorCode) {
539
- default:
540
- const parsedBody = parsedOutput.body;
541
- const $metadata = deserializeMetadata(output);
542
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
543
- response = new HealthServiceException_1.HealthServiceException({
544
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
545
- $fault: "client",
546
- $metadata,
547
- });
548
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
549
- }
504
+ const parsedBody = parsedOutput.body;
505
+ (0, smithy_client_1.throwDefaultError)({
506
+ output,
507
+ parsedBody,
508
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
509
+ errorCode,
510
+ });
550
511
  };
551
512
  const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand = async (output, context) => {
552
513
  if (output.statusCode >= 300) {
@@ -564,7 +525,6 @@ const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandErro
564
525
  ...output,
565
526
  body: await parseBody(output.body, context),
566
527
  };
567
- let response;
568
528
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
569
529
  switch (errorCode) {
570
530
  case "ConcurrentModificationException":
@@ -572,14 +532,12 @@ const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandErro
572
532
  throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
573
533
  default:
574
534
  const parsedBody = parsedOutput.body;
575
- const $metadata = deserializeMetadata(output);
576
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
577
- response = new HealthServiceException_1.HealthServiceException({
578
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
579
- $fault: "client",
580
- $metadata,
535
+ (0, smithy_client_1.throwDefaultError)({
536
+ output,
537
+ parsedBody,
538
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
539
+ errorCode,
581
540
  });
582
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
583
541
  }
584
542
  };
585
543
  const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand = async (output, context) => {
@@ -598,7 +556,6 @@ const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError
598
556
  ...output,
599
557
  body: await parseBody(output.body, context),
600
558
  };
601
- let response;
602
559
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
603
560
  switch (errorCode) {
604
561
  case "ConcurrentModificationException":
@@ -606,14 +563,12 @@ const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError
606
563
  throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
607
564
  default:
608
565
  const parsedBody = parsedOutput.body;
609
- const $metadata = deserializeMetadata(output);
610
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
611
- response = new HealthServiceException_1.HealthServiceException({
612
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
613
- $fault: "client",
614
- $metadata,
566
+ (0, smithy_client_1.throwDefaultError)({
567
+ output,
568
+ parsedBody,
569
+ exceptionCtor: HealthServiceException_1.HealthServiceException,
570
+ errorCode,
615
571
  });
616
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
617
572
  }
618
573
  };
619
574
  const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
@@ -647,9 +602,6 @@ const serializeAws_json1_1availabilityZones = (input, context) => {
647
602
  return input
648
603
  .filter((e) => e != null)
649
604
  .map((entry) => {
650
- if (entry === null) {
651
- return null;
652
- }
653
605
  return entry;
654
606
  });
655
607
  };
@@ -657,9 +609,6 @@ const serializeAws_json1_1awsAccountIdsList = (input, context) => {
657
609
  return input
658
610
  .filter((e) => e != null)
659
611
  .map((entry) => {
660
- if (entry === null) {
661
- return null;
662
- }
663
612
  return entry;
664
613
  });
665
614
  };
@@ -673,9 +622,6 @@ const serializeAws_json1_1dateTimeRangeList = (input, context) => {
673
622
  return input
674
623
  .filter((e) => e != null)
675
624
  .map((entry) => {
676
- if (entry === null) {
677
- return null;
678
- }
679
625
  return serializeAws_json1_1DateTimeRange(entry, context);
680
626
  });
681
627
  };
@@ -759,9 +705,6 @@ const serializeAws_json1_1entityArnList = (input, context) => {
759
705
  return input
760
706
  .filter((e) => e != null)
761
707
  .map((entry) => {
762
- if (entry === null) {
763
- return null;
764
- }
765
708
  return entry;
766
709
  });
767
710
  };
@@ -785,9 +728,6 @@ const serializeAws_json1_1entityStatusCodeList = (input, context) => {
785
728
  return input
786
729
  .filter((e) => e != null)
787
730
  .map((entry) => {
788
- if (entry === null) {
789
- return null;
790
- }
791
731
  return entry;
792
732
  });
793
733
  };
@@ -795,9 +735,6 @@ const serializeAws_json1_1entityValueList = (input, context) => {
795
735
  return input
796
736
  .filter((e) => e != null)
797
737
  .map((entry) => {
798
- if (entry === null) {
799
- return null;
800
- }
801
738
  return entry;
802
739
  });
803
740
  };
@@ -811,9 +748,6 @@ const serializeAws_json1_1eventArnList = (input, context) => {
811
748
  return input
812
749
  .filter((e) => e != null)
813
750
  .map((entry) => {
814
- if (entry === null) {
815
- return null;
816
- }
817
751
  return entry;
818
752
  });
819
753
  };
@@ -821,9 +755,6 @@ const serializeAws_json1_1EventArnsList = (input, context) => {
821
755
  return input
822
756
  .filter((e) => e != null)
823
757
  .map((entry) => {
824
- if (entry === null) {
825
- return null;
826
- }
827
758
  return entry;
828
759
  });
829
760
  };
@@ -860,9 +791,6 @@ const serializeAws_json1_1eventStatusCodeList = (input, context) => {
860
791
  return input
861
792
  .filter((e) => e != null)
862
793
  .map((entry) => {
863
- if (entry === null) {
864
- return null;
865
- }
866
794
  return entry;
867
795
  });
868
796
  };
@@ -870,9 +798,6 @@ const serializeAws_json1_1EventTypeCategoryList = (input, context) => {
870
798
  return input
871
799
  .filter((e) => e != null)
872
800
  .map((entry) => {
873
- if (entry === null) {
874
- return null;
875
- }
876
801
  return entry;
877
802
  });
878
803
  };
@@ -880,9 +805,6 @@ const serializeAws_json1_1eventTypeCategoryList2 = (input, context) => {
880
805
  return input
881
806
  .filter((e) => e != null)
882
807
  .map((entry) => {
883
- if (entry === null) {
884
- return null;
885
- }
886
808
  return entry;
887
809
  });
888
810
  };
@@ -890,9 +812,6 @@ const serializeAws_json1_1EventTypeCodeList = (input, context) => {
890
812
  return input
891
813
  .filter((e) => e != null)
892
814
  .map((entry) => {
893
- if (entry === null) {
894
- return null;
895
- }
896
815
  return entry;
897
816
  });
898
817
  };
@@ -911,9 +830,6 @@ const serializeAws_json1_1eventTypeList2 = (input, context) => {
911
830
  return input
912
831
  .filter((e) => e != null)
913
832
  .map((entry) => {
914
- if (entry === null) {
915
- return null;
916
- }
917
833
  return entry;
918
834
  });
919
835
  };
@@ -921,9 +837,6 @@ const serializeAws_json1_1OrganizationEntityFiltersList = (input, context) => {
921
837
  return input
922
838
  .filter((e) => e != null)
923
839
  .map((entry) => {
924
- if (entry === null) {
925
- return null;
926
- }
927
840
  return serializeAws_json1_1EventAccountFilter(entry, context);
928
841
  });
929
842
  };
@@ -931,9 +844,6 @@ const serializeAws_json1_1OrganizationEventDetailFiltersList = (input, context)
931
844
  return input
932
845
  .filter((e) => e != null)
933
846
  .map((entry) => {
934
- if (entry === null) {
935
- return null;
936
- }
937
847
  return serializeAws_json1_1EventAccountFilter(entry, context);
938
848
  });
939
849
  };
@@ -968,9 +878,6 @@ const serializeAws_json1_1regionList = (input, context) => {
968
878
  return input
969
879
  .filter((e) => e != null)
970
880
  .map((entry) => {
971
- if (entry === null) {
972
- return null;
973
- }
974
881
  return entry;
975
882
  });
976
883
  };
@@ -978,9 +885,6 @@ const serializeAws_json1_1serviceList = (input, context) => {
978
885
  return input
979
886
  .filter((e) => e != null)
980
887
  .map((entry) => {
981
- if (entry === null) {
982
- return null;
983
- }
984
888
  return entry;
985
889
  });
986
890
  };
@@ -988,9 +892,6 @@ const serializeAws_json1_1tagFilter = (input, context) => {
988
892
  return input
989
893
  .filter((e) => e != null)
990
894
  .map((entry) => {
991
- if (entry === null) {
992
- return null;
993
- }
994
895
  return serializeAws_json1_1tagSet(entry, context);
995
896
  });
996
897
  };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeAffectedAccountsForOrganizationRequest, DescribeAffectedAccountsForOrganizationResponse, } from "../models/models_0";
4
+ import { DescribeAffectedAccountsForOrganizationRequestFilterSensitiveLog, DescribeAffectedAccountsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand, serializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
6
  var DescribeAffectedAccountsForOrganizationCommand = (function (_super) {
7
7
  __extends(DescribeAffectedAccountsForOrganizationCommand, _super);
@@ -20,8 +20,8 @@ var DescribeAffectedAccountsForOrganizationCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DescribeAffectedAccountsForOrganizationRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DescribeAffectedAccountsForOrganizationResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DescribeAffectedAccountsForOrganizationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeAffectedAccountsForOrganizationResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeAffectedEntitiesRequest, DescribeAffectedEntitiesResponse } from "../models/models_0";
4
+ import { DescribeAffectedEntitiesRequestFilterSensitiveLog, DescribeAffectedEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DescribeAffectedEntitiesCommand, serializeAws_json1_1DescribeAffectedEntitiesCommand, } from "../protocols/Aws_json1_1";
6
6
  var DescribeAffectedEntitiesCommand = (function (_super) {
7
7
  __extends(DescribeAffectedEntitiesCommand, _super);
@@ -20,8 +20,8 @@ var DescribeAffectedEntitiesCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DescribeAffectedEntitiesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DescribeAffectedEntitiesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DescribeAffectedEntitiesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeAffectedEntitiesResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeAffectedEntitiesForOrganizationRequest, DescribeAffectedEntitiesForOrganizationResponse, } from "../models/models_0";
4
+ import { DescribeAffectedEntitiesForOrganizationRequestFilterSensitiveLog, DescribeAffectedEntitiesForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand, serializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
6
  var DescribeAffectedEntitiesForOrganizationCommand = (function (_super) {
7
7
  __extends(DescribeAffectedEntitiesForOrganizationCommand, _super);
@@ -20,8 +20,8 @@ var DescribeAffectedEntitiesForOrganizationCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeEntityAggregatesRequest, DescribeEntityAggregatesResponse } from "../models/models_0";
4
+ import { DescribeEntityAggregatesRequestFilterSensitiveLog, DescribeEntityAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DescribeEntityAggregatesCommand, serializeAws_json1_1DescribeEntityAggregatesCommand, } from "../protocols/Aws_json1_1";
6
6
  var DescribeEntityAggregatesCommand = (function (_super) {
7
7
  __extends(DescribeEntityAggregatesCommand, _super);
@@ -20,8 +20,8 @@ var DescribeEntityAggregatesCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DescribeEntityAggregatesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DescribeEntityAggregatesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DescribeEntityAggregatesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeEntityAggregatesResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeEventAggregatesRequest, DescribeEventAggregatesResponse } from "../models/models_0";
4
+ import { DescribeEventAggregatesRequestFilterSensitiveLog, DescribeEventAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DescribeEventAggregatesCommand, serializeAws_json1_1DescribeEventAggregatesCommand, } from "../protocols/Aws_json1_1";
6
6
  var DescribeEventAggregatesCommand = (function (_super) {
7
7
  __extends(DescribeEventAggregatesCommand, _super);
@@ -20,8 +20,8 @@ var DescribeEventAggregatesCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DescribeEventAggregatesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DescribeEventAggregatesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DescribeEventAggregatesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeEventAggregatesResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeEventDetailsRequest, DescribeEventDetailsResponse } from "../models/models_0";
4
+ import { DescribeEventDetailsRequestFilterSensitiveLog, DescribeEventDetailsResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DescribeEventDetailsCommand, serializeAws_json1_1DescribeEventDetailsCommand, } from "../protocols/Aws_json1_1";
6
6
  var DescribeEventDetailsCommand = (function (_super) {
7
7
  __extends(DescribeEventDetailsCommand, _super);
@@ -20,8 +20,8 @@ var DescribeEventDetailsCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DescribeEventDetailsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DescribeEventDetailsResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DescribeEventDetailsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeEventDetailsResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {