@aws-sdk/client-codestar-notifications 3.53.0 → 3.55.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 (34) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/CodestarNotificationsClient.js +13 -13
  3. package/dist-cjs/commands/CreateNotificationRuleCommand.js +3 -3
  4. package/dist-cjs/commands/DeleteNotificationRuleCommand.js +3 -3
  5. package/dist-cjs/commands/DeleteTargetCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeNotificationRuleCommand.js +3 -3
  7. package/dist-cjs/commands/ListEventTypesCommand.js +3 -3
  8. package/dist-cjs/commands/ListNotificationRulesCommand.js +3 -3
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  10. package/dist-cjs/commands/ListTargetsCommand.js +3 -3
  11. package/dist-cjs/commands/SubscribeCommand.js +3 -3
  12. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  13. package/dist-cjs/commands/UnsubscribeCommand.js +3 -3
  14. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  15. package/dist-cjs/commands/UpdateNotificationRuleCommand.js +3 -3
  16. package/dist-cjs/endpoints.js +1 -1
  17. package/dist-cjs/protocols/Aws_restJson1.js +65 -65
  18. package/dist-cjs/runtimeConfig.browser.js +4 -4
  19. package/dist-cjs/runtimeConfig.js +9 -9
  20. package/dist-cjs/runtimeConfig.native.js +1 -1
  21. package/dist-es/CodestarNotifications.js +13 -13
  22. package/dist-es/pagination/ListEventTypesPaginator.js +4 -4
  23. package/dist-es/pagination/ListNotificationRulesPaginator.js +4 -4
  24. package/dist-es/pagination/ListTargetsPaginator.js +4 -4
  25. package/dist-es/protocols/Aws_restJson1.js +13 -13
  26. package/dist-types/CodestarNotificationsClient.d.ts +2 -2
  27. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  28. package/dist-types/runtimeConfig.d.ts +1 -1
  29. package/dist-types/runtimeConfig.native.d.ts +3 -3
  30. package/dist-types/ts3.4/CodestarNotificationsClient.d.ts +2 -2
  31. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  32. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  33. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  34. package/package.json +34 -34
@@ -15,7 +15,7 @@ const serializeAws_restJson1CreateNotificationRuleCommand = async (input, contex
15
15
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createNotificationRule";
16
16
  let body;
17
17
  body = JSON.stringify({
18
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
18
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
19
19
  ...(input.DetailType !== undefined && input.DetailType !== null && { DetailType: input.DetailType }),
20
20
  ...(input.EventTypeIds !== undefined &&
21
21
  input.EventTypeIds !== null && { EventTypeIds: serializeAws_restJson1EventTypeIds(input.EventTypeIds, context) }),
@@ -325,9 +325,9 @@ const deserializeAws_restJson1CreateNotificationRuleCommand = async (output, con
325
325
  $metadata: deserializeMetadata(output),
326
326
  Arn: undefined,
327
327
  };
328
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
328
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
329
329
  if (data.Arn !== undefined && data.Arn !== null) {
330
- contents.Arn = smithy_client_1.expectString(data.Arn);
330
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
331
331
  }
332
332
  return Promise.resolve(contents);
333
333
  };
@@ -366,7 +366,7 @@ const deserializeAws_restJson1CreateNotificationRuleCommandError = async (output
366
366
  $fault: "client",
367
367
  $metadata: deserializeMetadata(output),
368
368
  });
369
- throw smithy_client_1.decorateServiceException(response, parsedBody);
369
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
370
370
  }
371
371
  };
372
372
  const deserializeAws_restJson1DeleteNotificationRuleCommand = async (output, context) => {
@@ -377,9 +377,9 @@ const deserializeAws_restJson1DeleteNotificationRuleCommand = async (output, con
377
377
  $metadata: deserializeMetadata(output),
378
378
  Arn: undefined,
379
379
  };
380
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
380
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
381
381
  if (data.Arn !== undefined && data.Arn !== null) {
382
- contents.Arn = smithy_client_1.expectString(data.Arn);
382
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
383
383
  }
384
384
  return Promise.resolve(contents);
385
385
  };
@@ -409,7 +409,7 @@ const deserializeAws_restJson1DeleteNotificationRuleCommandError = async (output
409
409
  $fault: "client",
410
410
  $metadata: deserializeMetadata(output),
411
411
  });
412
- throw smithy_client_1.decorateServiceException(response, parsedBody);
412
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
413
413
  }
414
414
  };
415
415
  const deserializeAws_restJson1DeleteTargetCommand = async (output, context) => {
@@ -442,7 +442,7 @@ const deserializeAws_restJson1DeleteTargetCommandError = async (output, context)
442
442
  $fault: "client",
443
443
  $metadata: deserializeMetadata(output),
444
444
  });
445
- throw smithy_client_1.decorateServiceException(response, parsedBody);
445
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
446
446
  }
447
447
  };
448
448
  const deserializeAws_restJson1DescribeNotificationRuleCommand = async (output, context) => {
@@ -463,33 +463,33 @@ const deserializeAws_restJson1DescribeNotificationRuleCommand = async (output, c
463
463
  Tags: undefined,
464
464
  Targets: undefined,
465
465
  };
466
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
466
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
467
467
  if (data.Arn !== undefined && data.Arn !== null) {
468
- contents.Arn = smithy_client_1.expectString(data.Arn);
468
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
469
469
  }
470
470
  if (data.CreatedBy !== undefined && data.CreatedBy !== null) {
471
- contents.CreatedBy = smithy_client_1.expectString(data.CreatedBy);
471
+ contents.CreatedBy = (0, smithy_client_1.expectString)(data.CreatedBy);
472
472
  }
473
473
  if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
474
- contents.CreatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreatedTimestamp)));
474
+ contents.CreatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreatedTimestamp)));
475
475
  }
476
476
  if (data.DetailType !== undefined && data.DetailType !== null) {
477
- contents.DetailType = smithy_client_1.expectString(data.DetailType);
477
+ contents.DetailType = (0, smithy_client_1.expectString)(data.DetailType);
478
478
  }
479
479
  if (data.EventTypes !== undefined && data.EventTypes !== null) {
480
480
  contents.EventTypes = deserializeAws_restJson1EventTypeBatch(data.EventTypes, context);
481
481
  }
482
482
  if (data.LastModifiedTimestamp !== undefined && data.LastModifiedTimestamp !== null) {
483
- contents.LastModifiedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTimestamp)));
483
+ contents.LastModifiedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTimestamp)));
484
484
  }
485
485
  if (data.Name !== undefined && data.Name !== null) {
486
- contents.Name = smithy_client_1.expectString(data.Name);
486
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
487
487
  }
488
488
  if (data.Resource !== undefined && data.Resource !== null) {
489
- contents.Resource = smithy_client_1.expectString(data.Resource);
489
+ contents.Resource = (0, smithy_client_1.expectString)(data.Resource);
490
490
  }
491
491
  if (data.Status !== undefined && data.Status !== null) {
492
- contents.Status = smithy_client_1.expectString(data.Status);
492
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
493
493
  }
494
494
  if (data.Tags !== undefined && data.Tags !== null) {
495
495
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
@@ -522,7 +522,7 @@ const deserializeAws_restJson1DescribeNotificationRuleCommandError = async (outp
522
522
  $fault: "client",
523
523
  $metadata: deserializeMetadata(output),
524
524
  });
525
- throw smithy_client_1.decorateServiceException(response, parsedBody);
525
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
526
526
  }
527
527
  };
528
528
  const deserializeAws_restJson1ListEventTypesCommand = async (output, context) => {
@@ -534,12 +534,12 @@ const deserializeAws_restJson1ListEventTypesCommand = async (output, context) =>
534
534
  EventTypes: undefined,
535
535
  NextToken: undefined,
536
536
  };
537
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
537
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
538
538
  if (data.EventTypes !== undefined && data.EventTypes !== null) {
539
539
  contents.EventTypes = deserializeAws_restJson1EventTypeBatch(data.EventTypes, context);
540
540
  }
541
541
  if (data.NextToken !== undefined && data.NextToken !== null) {
542
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
542
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
543
543
  }
544
544
  return Promise.resolve(contents);
545
545
  };
@@ -566,7 +566,7 @@ const deserializeAws_restJson1ListEventTypesCommandError = async (output, contex
566
566
  $fault: "client",
567
567
  $metadata: deserializeMetadata(output),
568
568
  });
569
- throw smithy_client_1.decorateServiceException(response, parsedBody);
569
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
570
570
  }
571
571
  };
572
572
  const deserializeAws_restJson1ListNotificationRulesCommand = async (output, context) => {
@@ -578,9 +578,9 @@ const deserializeAws_restJson1ListNotificationRulesCommand = async (output, cont
578
578
  NextToken: undefined,
579
579
  NotificationRules: undefined,
580
580
  };
581
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
581
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
582
582
  if (data.NextToken !== undefined && data.NextToken !== null) {
583
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
583
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
584
584
  }
585
585
  if (data.NotificationRules !== undefined && data.NotificationRules !== null) {
586
586
  contents.NotificationRules = deserializeAws_restJson1NotificationRuleBatch(data.NotificationRules, context);
@@ -610,7 +610,7 @@ const deserializeAws_restJson1ListNotificationRulesCommandError = async (output,
610
610
  $fault: "client",
611
611
  $metadata: deserializeMetadata(output),
612
612
  });
613
- throw smithy_client_1.decorateServiceException(response, parsedBody);
613
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
614
614
  }
615
615
  };
616
616
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -621,7 +621,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
621
621
  $metadata: deserializeMetadata(output),
622
622
  Tags: undefined,
623
623
  };
624
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
624
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
625
625
  if (data.Tags !== undefined && data.Tags !== null) {
626
626
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
627
627
  }
@@ -650,7 +650,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
650
650
  $fault: "client",
651
651
  $metadata: deserializeMetadata(output),
652
652
  });
653
- throw smithy_client_1.decorateServiceException(response, parsedBody);
653
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
654
654
  }
655
655
  };
656
656
  const deserializeAws_restJson1ListTargetsCommand = async (output, context) => {
@@ -662,9 +662,9 @@ const deserializeAws_restJson1ListTargetsCommand = async (output, context) => {
662
662
  NextToken: undefined,
663
663
  Targets: undefined,
664
664
  };
665
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
665
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
666
666
  if (data.NextToken !== undefined && data.NextToken !== null) {
667
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
667
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
668
668
  }
669
669
  if (data.Targets !== undefined && data.Targets !== null) {
670
670
  contents.Targets = deserializeAws_restJson1TargetsBatch(data.Targets, context);
@@ -694,7 +694,7 @@ const deserializeAws_restJson1ListTargetsCommandError = async (output, context)
694
694
  $fault: "client",
695
695
  $metadata: deserializeMetadata(output),
696
696
  });
697
- throw smithy_client_1.decorateServiceException(response, parsedBody);
697
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
698
698
  }
699
699
  };
700
700
  const deserializeAws_restJson1SubscribeCommand = async (output, context) => {
@@ -705,9 +705,9 @@ const deserializeAws_restJson1SubscribeCommand = async (output, context) => {
705
705
  $metadata: deserializeMetadata(output),
706
706
  Arn: undefined,
707
707
  };
708
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
708
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
709
709
  if (data.Arn !== undefined && data.Arn !== null) {
710
- contents.Arn = smithy_client_1.expectString(data.Arn);
710
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
711
711
  }
712
712
  return Promise.resolve(contents);
713
713
  };
@@ -734,7 +734,7 @@ const deserializeAws_restJson1SubscribeCommandError = async (output, context) =>
734
734
  $fault: "client",
735
735
  $metadata: deserializeMetadata(output),
736
736
  });
737
- throw smithy_client_1.decorateServiceException(response, parsedBody);
737
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
738
738
  }
739
739
  };
740
740
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -745,7 +745,7 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
745
745
  $metadata: deserializeMetadata(output),
746
746
  Tags: undefined,
747
747
  };
748
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
748
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
749
749
  if (data.Tags !== undefined && data.Tags !== null) {
750
750
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
751
751
  }
@@ -777,7 +777,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
777
777
  $fault: "client",
778
778
  $metadata: deserializeMetadata(output),
779
779
  });
780
- throw smithy_client_1.decorateServiceException(response, parsedBody);
780
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
781
781
  }
782
782
  };
783
783
  const deserializeAws_restJson1UnsubscribeCommand = async (output, context) => {
@@ -788,9 +788,9 @@ const deserializeAws_restJson1UnsubscribeCommand = async (output, context) => {
788
788
  $metadata: deserializeMetadata(output),
789
789
  Arn: undefined,
790
790
  };
791
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
791
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
792
792
  if (data.Arn !== undefined && data.Arn !== null) {
793
- contents.Arn = smithy_client_1.expectString(data.Arn);
793
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
794
794
  }
795
795
  return Promise.resolve(contents);
796
796
  };
@@ -814,7 +814,7 @@ const deserializeAws_restJson1UnsubscribeCommandError = async (output, context)
814
814
  $fault: "client",
815
815
  $metadata: deserializeMetadata(output),
816
816
  });
817
- throw smithy_client_1.decorateServiceException(response, parsedBody);
817
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
818
818
  }
819
819
  };
820
820
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -853,7 +853,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
853
853
  $fault: "client",
854
854
  $metadata: deserializeMetadata(output),
855
855
  });
856
- throw smithy_client_1.decorateServiceException(response, parsedBody);
856
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
857
857
  }
858
858
  };
859
859
  const deserializeAws_restJson1UpdateNotificationRuleCommand = async (output, context) => {
@@ -889,104 +889,104 @@ const deserializeAws_restJson1UpdateNotificationRuleCommandError = async (output
889
889
  $fault: "client",
890
890
  $metadata: deserializeMetadata(output),
891
891
  });
892
- throw smithy_client_1.decorateServiceException(response, parsedBody);
892
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
893
893
  }
894
894
  };
895
895
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
896
896
  const contents = {};
897
897
  const data = parsedOutput.body;
898
898
  if (data.Message !== undefined && data.Message !== null) {
899
- contents.Message = smithy_client_1.expectString(data.Message);
899
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
900
900
  }
901
901
  const exception = new models_0_1.AccessDeniedException({
902
902
  $metadata: deserializeMetadata(parsedOutput),
903
903
  ...contents,
904
904
  });
905
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
905
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
906
906
  };
907
907
  const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
908
908
  const contents = {};
909
909
  const data = parsedOutput.body;
910
910
  if (data.Message !== undefined && data.Message !== null) {
911
- contents.Message = smithy_client_1.expectString(data.Message);
911
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
912
912
  }
913
913
  const exception = new models_0_1.ConcurrentModificationException({
914
914
  $metadata: deserializeMetadata(parsedOutput),
915
915
  ...contents,
916
916
  });
917
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
917
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
918
918
  };
919
919
  const deserializeAws_restJson1ConfigurationExceptionResponse = async (parsedOutput, context) => {
920
920
  const contents = {};
921
921
  const data = parsedOutput.body;
922
922
  if (data.Message !== undefined && data.Message !== null) {
923
- contents.Message = smithy_client_1.expectString(data.Message);
923
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
924
924
  }
925
925
  const exception = new models_0_1.ConfigurationException({
926
926
  $metadata: deserializeMetadata(parsedOutput),
927
927
  ...contents,
928
928
  });
929
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
929
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
930
930
  };
931
931
  const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
932
932
  const contents = {};
933
933
  const data = parsedOutput.body;
934
934
  if (data.Message !== undefined && data.Message !== null) {
935
- contents.Message = smithy_client_1.expectString(data.Message);
935
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
936
936
  }
937
937
  const exception = new models_0_1.InvalidNextTokenException({
938
938
  $metadata: deserializeMetadata(parsedOutput),
939
939
  ...contents,
940
940
  });
941
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
941
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
942
942
  };
943
943
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
944
944
  const contents = {};
945
945
  const data = parsedOutput.body;
946
946
  if (data.Message !== undefined && data.Message !== null) {
947
- contents.Message = smithy_client_1.expectString(data.Message);
947
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
948
948
  }
949
949
  const exception = new models_0_1.LimitExceededException({
950
950
  $metadata: deserializeMetadata(parsedOutput),
951
951
  ...contents,
952
952
  });
953
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
953
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
954
954
  };
955
955
  const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
956
956
  const contents = {};
957
957
  const data = parsedOutput.body;
958
958
  if (data.Message !== undefined && data.Message !== null) {
959
- contents.Message = smithy_client_1.expectString(data.Message);
959
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
960
960
  }
961
961
  const exception = new models_0_1.ResourceAlreadyExistsException({
962
962
  $metadata: deserializeMetadata(parsedOutput),
963
963
  ...contents,
964
964
  });
965
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
965
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
966
966
  };
967
967
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
968
968
  const contents = {};
969
969
  const data = parsedOutput.body;
970
970
  if (data.Message !== undefined && data.Message !== null) {
971
- contents.Message = smithy_client_1.expectString(data.Message);
971
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
972
972
  }
973
973
  const exception = new models_0_1.ResourceNotFoundException({
974
974
  $metadata: deserializeMetadata(parsedOutput),
975
975
  ...contents,
976
976
  });
977
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
977
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
978
978
  };
979
979
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
980
980
  const contents = {};
981
981
  const data = parsedOutput.body;
982
982
  if (data.Message !== undefined && data.Message !== null) {
983
- contents.Message = smithy_client_1.expectString(data.Message);
983
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
984
984
  }
985
985
  const exception = new models_0_1.ValidationException({
986
986
  $metadata: deserializeMetadata(parsedOutput),
987
987
  ...contents,
988
988
  });
989
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
989
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
990
990
  };
991
991
  const serializeAws_restJson1EventTypeIds = (input, context) => {
992
992
  return input
@@ -1096,10 +1096,10 @@ const deserializeAws_restJson1EventTypeBatch = (output, context) => {
1096
1096
  };
1097
1097
  const deserializeAws_restJson1EventTypeSummary = (output, context) => {
1098
1098
  return {
1099
- EventTypeId: smithy_client_1.expectString(output.EventTypeId),
1100
- EventTypeName: smithy_client_1.expectString(output.EventTypeName),
1101
- ResourceType: smithy_client_1.expectString(output.ResourceType),
1102
- ServiceName: smithy_client_1.expectString(output.ServiceName),
1099
+ EventTypeId: (0, smithy_client_1.expectString)(output.EventTypeId),
1100
+ EventTypeName: (0, smithy_client_1.expectString)(output.EventTypeName),
1101
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
1102
+ ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
1103
1103
  };
1104
1104
  };
1105
1105
  const deserializeAws_restJson1NotificationRuleBatch = (output, context) => {
@@ -1115,8 +1115,8 @@ const deserializeAws_restJson1NotificationRuleBatch = (output, context) => {
1115
1115
  };
1116
1116
  const deserializeAws_restJson1NotificationRuleSummary = (output, context) => {
1117
1117
  return {
1118
- Arn: smithy_client_1.expectString(output.Arn),
1119
- Id: smithy_client_1.expectString(output.Id),
1118
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
1119
+ Id: (0, smithy_client_1.expectString)(output.Id),
1120
1120
  };
1121
1121
  };
1122
1122
  const deserializeAws_restJson1Tags = (output, context) => {
@@ -1126,7 +1126,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
1126
1126
  }
1127
1127
  return {
1128
1128
  ...acc,
1129
- [key]: smithy_client_1.expectString(value),
1129
+ [key]: (0, smithy_client_1.expectString)(value),
1130
1130
  };
1131
1131
  }, {});
1132
1132
  };
@@ -1143,9 +1143,9 @@ const deserializeAws_restJson1TargetsBatch = (output, context) => {
1143
1143
  };
1144
1144
  const deserializeAws_restJson1TargetSummary = (output, context) => {
1145
1145
  return {
1146
- TargetAddress: smithy_client_1.expectString(output.TargetAddress),
1147
- TargetStatus: smithy_client_1.expectString(output.TargetStatus),
1148
- TargetType: smithy_client_1.expectString(output.TargetType),
1146
+ TargetAddress: (0, smithy_client_1.expectString)(output.TargetAddress),
1147
+ TargetStatus: (0, smithy_client_1.expectString)(output.TargetStatus),
1148
+ TargetType: (0, smithy_client_1.expectString)(output.TargetType),
1149
1149
  };
1150
1150
  };
1151
1151
  const deserializeMetadata = (output) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
@@ -25,7 +25,7 @@ var CodestarNotifications = (function (_super) {
25
25
  }
26
26
  else if (typeof cb === "function") {
27
27
  if (typeof optionsOrCb !== "object")
28
- throw new Error("Expect http options but get " + typeof optionsOrCb);
28
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
29
29
  this.send(command, optionsOrCb || {}, cb);
30
30
  }
31
31
  else {
@@ -39,7 +39,7 @@ var CodestarNotifications = (function (_super) {
39
39
  }
40
40
  else if (typeof cb === "function") {
41
41
  if (typeof optionsOrCb !== "object")
42
- throw new Error("Expect http options but get " + typeof optionsOrCb);
42
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
43
43
  this.send(command, optionsOrCb || {}, cb);
44
44
  }
45
45
  else {
@@ -53,7 +53,7 @@ var CodestarNotifications = (function (_super) {
53
53
  }
54
54
  else if (typeof cb === "function") {
55
55
  if (typeof optionsOrCb !== "object")
56
- throw new Error("Expect http options but get " + typeof optionsOrCb);
56
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
57
57
  this.send(command, optionsOrCb || {}, cb);
58
58
  }
59
59
  else {
@@ -67,7 +67,7 @@ var CodestarNotifications = (function (_super) {
67
67
  }
68
68
  else if (typeof cb === "function") {
69
69
  if (typeof optionsOrCb !== "object")
70
- throw new Error("Expect http options but get " + typeof optionsOrCb);
70
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
71
71
  this.send(command, optionsOrCb || {}, cb);
72
72
  }
73
73
  else {
@@ -81,7 +81,7 @@ var CodestarNotifications = (function (_super) {
81
81
  }
82
82
  else if (typeof cb === "function") {
83
83
  if (typeof optionsOrCb !== "object")
84
- throw new Error("Expect http options but get " + typeof optionsOrCb);
84
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
85
85
  this.send(command, optionsOrCb || {}, cb);
86
86
  }
87
87
  else {
@@ -95,7 +95,7 @@ var CodestarNotifications = (function (_super) {
95
95
  }
96
96
  else if (typeof cb === "function") {
97
97
  if (typeof optionsOrCb !== "object")
98
- throw new Error("Expect http options but get " + typeof optionsOrCb);
98
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
99
99
  this.send(command, optionsOrCb || {}, cb);
100
100
  }
101
101
  else {
@@ -109,7 +109,7 @@ var CodestarNotifications = (function (_super) {
109
109
  }
110
110
  else if (typeof cb === "function") {
111
111
  if (typeof optionsOrCb !== "object")
112
- throw new Error("Expect http options but get " + typeof optionsOrCb);
112
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
113
113
  this.send(command, optionsOrCb || {}, cb);
114
114
  }
115
115
  else {
@@ -123,7 +123,7 @@ var CodestarNotifications = (function (_super) {
123
123
  }
124
124
  else if (typeof cb === "function") {
125
125
  if (typeof optionsOrCb !== "object")
126
- throw new Error("Expect http options but get " + typeof optionsOrCb);
126
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
127
127
  this.send(command, optionsOrCb || {}, cb);
128
128
  }
129
129
  else {
@@ -137,7 +137,7 @@ var CodestarNotifications = (function (_super) {
137
137
  }
138
138
  else if (typeof cb === "function") {
139
139
  if (typeof optionsOrCb !== "object")
140
- throw new Error("Expect http options but get " + typeof optionsOrCb);
140
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
141
141
  this.send(command, optionsOrCb || {}, cb);
142
142
  }
143
143
  else {
@@ -151,7 +151,7 @@ var CodestarNotifications = (function (_super) {
151
151
  }
152
152
  else if (typeof cb === "function") {
153
153
  if (typeof optionsOrCb !== "object")
154
- throw new Error("Expect http options but get " + typeof optionsOrCb);
154
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
155
155
  this.send(command, optionsOrCb || {}, cb);
156
156
  }
157
157
  else {
@@ -165,7 +165,7 @@ var CodestarNotifications = (function (_super) {
165
165
  }
166
166
  else if (typeof cb === "function") {
167
167
  if (typeof optionsOrCb !== "object")
168
- throw new Error("Expect http options but get " + typeof optionsOrCb);
168
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
169
169
  this.send(command, optionsOrCb || {}, cb);
170
170
  }
171
171
  else {
@@ -179,7 +179,7 @@ var CodestarNotifications = (function (_super) {
179
179
  }
180
180
  else if (typeof cb === "function") {
181
181
  if (typeof optionsOrCb !== "object")
182
- throw new Error("Expect http options but get " + typeof optionsOrCb);
182
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
183
183
  this.send(command, optionsOrCb || {}, cb);
184
184
  }
185
185
  else {
@@ -193,7 +193,7 @@ var CodestarNotifications = (function (_super) {
193
193
  }
194
194
  else if (typeof cb === "function") {
195
195
  if (typeof optionsOrCb !== "object")
196
- throw new Error("Expect http options but get " + typeof optionsOrCb);
196
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
197
197
  this.send(command, optionsOrCb || {}, cb);
198
198
  }
199
199
  else {