@aws-sdk/client-sns 3.54.1 → 3.58.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 (60) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/SNSClient.js +13 -13
  3. package/dist-cjs/commands/AddPermissionCommand.js +3 -3
  4. package/dist-cjs/commands/CheckIfPhoneNumberIsOptedOutCommand.js +3 -3
  5. package/dist-cjs/commands/ConfirmSubscriptionCommand.js +3 -3
  6. package/dist-cjs/commands/CreatePlatformApplicationCommand.js +3 -3
  7. package/dist-cjs/commands/CreatePlatformEndpointCommand.js +3 -3
  8. package/dist-cjs/commands/CreateSMSSandboxPhoneNumberCommand.js +3 -3
  9. package/dist-cjs/commands/CreateTopicCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteEndpointCommand.js +3 -3
  11. package/dist-cjs/commands/DeletePlatformApplicationCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteSMSSandboxPhoneNumberCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteTopicCommand.js +3 -3
  14. package/dist-cjs/commands/GetEndpointAttributesCommand.js +3 -3
  15. package/dist-cjs/commands/GetPlatformApplicationAttributesCommand.js +3 -3
  16. package/dist-cjs/commands/GetSMSAttributesCommand.js +3 -3
  17. package/dist-cjs/commands/GetSMSSandboxAccountStatusCommand.js +3 -3
  18. package/dist-cjs/commands/GetSubscriptionAttributesCommand.js +3 -3
  19. package/dist-cjs/commands/GetTopicAttributesCommand.js +3 -3
  20. package/dist-cjs/commands/ListEndpointsByPlatformApplicationCommand.js +3 -3
  21. package/dist-cjs/commands/ListOriginationNumbersCommand.js +3 -3
  22. package/dist-cjs/commands/ListPhoneNumbersOptedOutCommand.js +3 -3
  23. package/dist-cjs/commands/ListPlatformApplicationsCommand.js +3 -3
  24. package/dist-cjs/commands/ListSMSSandboxPhoneNumbersCommand.js +3 -3
  25. package/dist-cjs/commands/ListSubscriptionsByTopicCommand.js +3 -3
  26. package/dist-cjs/commands/ListSubscriptionsCommand.js +3 -3
  27. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  28. package/dist-cjs/commands/ListTopicsCommand.js +3 -3
  29. package/dist-cjs/commands/OptInPhoneNumberCommand.js +3 -3
  30. package/dist-cjs/commands/PublishBatchCommand.js +3 -3
  31. package/dist-cjs/commands/PublishCommand.js +3 -3
  32. package/dist-cjs/commands/RemovePermissionCommand.js +3 -3
  33. package/dist-cjs/commands/SetEndpointAttributesCommand.js +3 -3
  34. package/dist-cjs/commands/SetPlatformApplicationAttributesCommand.js +3 -3
  35. package/dist-cjs/commands/SetSMSAttributesCommand.js +3 -3
  36. package/dist-cjs/commands/SetSubscriptionAttributesCommand.js +3 -3
  37. package/dist-cjs/commands/SetTopicAttributesCommand.js +3 -3
  38. package/dist-cjs/commands/SubscribeCommand.js +3 -3
  39. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  40. package/dist-cjs/commands/UnsubscribeCommand.js +3 -3
  41. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  42. package/dist-cjs/commands/VerifySMSSandboxPhoneNumberCommand.js +3 -3
  43. package/dist-cjs/endpoints.js +1 -1
  44. package/dist-cjs/protocols/Aws_query.js +174 -174
  45. package/dist-cjs/runtimeConfig.browser.js +4 -4
  46. package/dist-cjs/runtimeConfig.js +9 -9
  47. package/dist-cjs/runtimeConfig.native.js +1 -1
  48. package/dist-es/SNS.js +40 -40
  49. package/dist-es/pagination/ListEndpointsByPlatformApplicationPaginator.js +4 -4
  50. package/dist-es/pagination/ListOriginationNumbersPaginator.js +4 -4
  51. package/dist-es/pagination/ListPhoneNumbersOptedOutPaginator.js +4 -4
  52. package/dist-es/pagination/ListPlatformApplicationsPaginator.js +4 -4
  53. package/dist-es/pagination/ListSMSSandboxPhoneNumbersPaginator.js +4 -4
  54. package/dist-es/pagination/ListSubscriptionsByTopicPaginator.js +4 -4
  55. package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -4
  56. package/dist-es/pagination/ListTopicsPaginator.js +4 -4
  57. package/dist-es/protocols/Aws_query.js +30 -30
  58. package/dist-types/runtimeConfig.native.d.ts +2 -2
  59. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  60. package/package.json +34 -34
@@ -567,7 +567,7 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
567
567
  $fault: "client",
568
568
  $metadata: deserializeMetadata(output),
569
569
  });
570
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
570
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
571
571
  }
572
572
  };
573
573
  const deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand = async (output, context) => {
@@ -612,7 +612,7 @@ const deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommandError = async (outp
612
612
  $fault: "client",
613
613
  $metadata: deserializeMetadata(output),
614
614
  });
615
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
615
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
616
616
  }
617
617
  };
618
618
  const deserializeAws_queryConfirmSubscriptionCommand = async (output, context) => {
@@ -663,7 +663,7 @@ const deserializeAws_queryConfirmSubscriptionCommandError = async (output, conte
663
663
  $fault: "client",
664
664
  $metadata: deserializeMetadata(output),
665
665
  });
666
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
666
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
667
667
  }
668
668
  };
669
669
  const deserializeAws_queryCreatePlatformApplicationCommand = async (output, context) => {
@@ -705,7 +705,7 @@ const deserializeAws_queryCreatePlatformApplicationCommandError = async (output,
705
705
  $fault: "client",
706
706
  $metadata: deserializeMetadata(output),
707
707
  });
708
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
708
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
709
709
  }
710
710
  };
711
711
  const deserializeAws_queryCreatePlatformEndpointCommand = async (output, context) => {
@@ -750,7 +750,7 @@ const deserializeAws_queryCreatePlatformEndpointCommandError = async (output, co
750
750
  $fault: "client",
751
751
  $metadata: deserializeMetadata(output),
752
752
  });
753
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
753
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
754
754
  }
755
755
  };
756
756
  const deserializeAws_queryCreateSMSSandboxPhoneNumberCommand = async (output, context) => {
@@ -801,7 +801,7 @@ const deserializeAws_queryCreateSMSSandboxPhoneNumberCommandError = async (outpu
801
801
  $fault: "client",
802
802
  $metadata: deserializeMetadata(output),
803
803
  });
804
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
804
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
805
805
  }
806
806
  };
807
807
  const deserializeAws_queryCreateTopicCommand = async (output, context) => {
@@ -861,7 +861,7 @@ const deserializeAws_queryCreateTopicCommandError = async (output, context) => {
861
861
  $fault: "client",
862
862
  $metadata: deserializeMetadata(output),
863
863
  });
864
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
864
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
865
865
  }
866
866
  };
867
867
  const deserializeAws_queryDeleteEndpointCommand = async (output, context) => {
@@ -900,7 +900,7 @@ const deserializeAws_queryDeleteEndpointCommandError = async (output, context) =
900
900
  $fault: "client",
901
901
  $metadata: deserializeMetadata(output),
902
902
  });
903
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
903
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
904
904
  }
905
905
  };
906
906
  const deserializeAws_queryDeletePlatformApplicationCommand = async (output, context) => {
@@ -939,7 +939,7 @@ const deserializeAws_queryDeletePlatformApplicationCommandError = async (output,
939
939
  $fault: "client",
940
940
  $metadata: deserializeMetadata(output),
941
941
  });
942
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
942
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
943
943
  }
944
944
  };
945
945
  const deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand = async (output, context) => {
@@ -990,7 +990,7 @@ const deserializeAws_queryDeleteSMSSandboxPhoneNumberCommandError = async (outpu
990
990
  $fault: "client",
991
991
  $metadata: deserializeMetadata(output),
992
992
  });
993
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
993
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
994
994
  }
995
995
  };
996
996
  const deserializeAws_queryDeleteTopicCommand = async (output, context) => {
@@ -1041,7 +1041,7 @@ const deserializeAws_queryDeleteTopicCommandError = async (output, context) => {
1041
1041
  $fault: "client",
1042
1042
  $metadata: deserializeMetadata(output),
1043
1043
  });
1044
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1044
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1045
1045
  }
1046
1046
  };
1047
1047
  const deserializeAws_queryGetEndpointAttributesCommand = async (output, context) => {
@@ -1086,7 +1086,7 @@ const deserializeAws_queryGetEndpointAttributesCommandError = async (output, con
1086
1086
  $fault: "client",
1087
1087
  $metadata: deserializeMetadata(output),
1088
1088
  });
1089
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1089
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1090
1090
  }
1091
1091
  };
1092
1092
  const deserializeAws_queryGetPlatformApplicationAttributesCommand = async (output, context) => {
@@ -1131,7 +1131,7 @@ const deserializeAws_queryGetPlatformApplicationAttributesCommandError = async (
1131
1131
  $fault: "client",
1132
1132
  $metadata: deserializeMetadata(output),
1133
1133
  });
1134
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1134
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1135
1135
  }
1136
1136
  };
1137
1137
  const deserializeAws_queryGetSMSAttributesCommand = async (output, context) => {
@@ -1176,7 +1176,7 @@ const deserializeAws_queryGetSMSAttributesCommandError = async (output, context)
1176
1176
  $fault: "client",
1177
1177
  $metadata: deserializeMetadata(output),
1178
1178
  });
1179
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1179
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1180
1180
  }
1181
1181
  };
1182
1182
  const deserializeAws_queryGetSMSSandboxAccountStatusCommand = async (output, context) => {
@@ -1218,7 +1218,7 @@ const deserializeAws_queryGetSMSSandboxAccountStatusCommandError = async (output
1218
1218
  $fault: "client",
1219
1219
  $metadata: deserializeMetadata(output),
1220
1220
  });
1221
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1221
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1222
1222
  }
1223
1223
  };
1224
1224
  const deserializeAws_queryGetSubscriptionAttributesCommand = async (output, context) => {
@@ -1263,7 +1263,7 @@ const deserializeAws_queryGetSubscriptionAttributesCommandError = async (output,
1263
1263
  $fault: "client",
1264
1264
  $metadata: deserializeMetadata(output),
1265
1265
  });
1266
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1266
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1267
1267
  }
1268
1268
  };
1269
1269
  const deserializeAws_queryGetTopicAttributesCommand = async (output, context) => {
@@ -1311,7 +1311,7 @@ const deserializeAws_queryGetTopicAttributesCommandError = async (output, contex
1311
1311
  $fault: "client",
1312
1312
  $metadata: deserializeMetadata(output),
1313
1313
  });
1314
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1314
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1315
1315
  }
1316
1316
  };
1317
1317
  const deserializeAws_queryListEndpointsByPlatformApplicationCommand = async (output, context) => {
@@ -1356,7 +1356,7 @@ const deserializeAws_queryListEndpointsByPlatformApplicationCommandError = async
1356
1356
  $fault: "client",
1357
1357
  $metadata: deserializeMetadata(output),
1358
1358
  });
1359
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1359
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1360
1360
  }
1361
1361
  };
1362
1362
  const deserializeAws_queryListOriginationNumbersCommand = async (output, context) => {
@@ -1404,7 +1404,7 @@ const deserializeAws_queryListOriginationNumbersCommandError = async (output, co
1404
1404
  $fault: "client",
1405
1405
  $metadata: deserializeMetadata(output),
1406
1406
  });
1407
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1407
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1408
1408
  }
1409
1409
  };
1410
1410
  const deserializeAws_queryListPhoneNumbersOptedOutCommand = async (output, context) => {
@@ -1449,7 +1449,7 @@ const deserializeAws_queryListPhoneNumbersOptedOutCommandError = async (output,
1449
1449
  $fault: "client",
1450
1450
  $metadata: deserializeMetadata(output),
1451
1451
  });
1452
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1452
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1453
1453
  }
1454
1454
  };
1455
1455
  const deserializeAws_queryListPlatformApplicationsCommand = async (output, context) => {
@@ -1491,7 +1491,7 @@ const deserializeAws_queryListPlatformApplicationsCommandError = async (output,
1491
1491
  $fault: "client",
1492
1492
  $metadata: deserializeMetadata(output),
1493
1493
  });
1494
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1494
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1495
1495
  }
1496
1496
  };
1497
1497
  const deserializeAws_queryListSMSSandboxPhoneNumbersCommand = async (output, context) => {
@@ -1539,7 +1539,7 @@ const deserializeAws_queryListSMSSandboxPhoneNumbersCommandError = async (output
1539
1539
  $fault: "client",
1540
1540
  $metadata: deserializeMetadata(output),
1541
1541
  });
1542
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1542
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1543
1543
  }
1544
1544
  };
1545
1545
  const deserializeAws_queryListSubscriptionsCommand = async (output, context) => {
@@ -1581,7 +1581,7 @@ const deserializeAws_queryListSubscriptionsCommandError = async (output, context
1581
1581
  $fault: "client",
1582
1582
  $metadata: deserializeMetadata(output),
1583
1583
  });
1584
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1584
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1585
1585
  }
1586
1586
  };
1587
1587
  const deserializeAws_queryListSubscriptionsByTopicCommand = async (output, context) => {
@@ -1626,7 +1626,7 @@ const deserializeAws_queryListSubscriptionsByTopicCommandError = async (output,
1626
1626
  $fault: "client",
1627
1627
  $metadata: deserializeMetadata(output),
1628
1628
  });
1629
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1629
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1630
1630
  }
1631
1631
  };
1632
1632
  const deserializeAws_queryListTagsForResourceCommand = async (output, context) => {
@@ -1674,7 +1674,7 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
1674
1674
  $fault: "client",
1675
1675
  $metadata: deserializeMetadata(output),
1676
1676
  });
1677
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1677
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1678
1678
  }
1679
1679
  };
1680
1680
  const deserializeAws_queryListTopicsCommand = async (output, context) => {
@@ -1716,7 +1716,7 @@ const deserializeAws_queryListTopicsCommandError = async (output, context) => {
1716
1716
  $fault: "client",
1717
1717
  $metadata: deserializeMetadata(output),
1718
1718
  });
1719
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1719
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1720
1720
  }
1721
1721
  };
1722
1722
  const deserializeAws_queryOptInPhoneNumberCommand = async (output, context) => {
@@ -1761,7 +1761,7 @@ const deserializeAws_queryOptInPhoneNumberCommandError = async (output, context)
1761
1761
  $fault: "client",
1762
1762
  $metadata: deserializeMetadata(output),
1763
1763
  });
1764
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1764
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1765
1765
  }
1766
1766
  };
1767
1767
  const deserializeAws_queryPublishCommand = async (output, context) => {
@@ -1836,7 +1836,7 @@ const deserializeAws_queryPublishCommandError = async (output, context) => {
1836
1836
  $fault: "client",
1837
1837
  $metadata: deserializeMetadata(output),
1838
1838
  });
1839
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1839
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1840
1840
  }
1841
1841
  };
1842
1842
  const deserializeAws_queryPublishBatchCommand = async (output, context) => {
@@ -1926,7 +1926,7 @@ const deserializeAws_queryPublishBatchCommandError = async (output, context) =>
1926
1926
  $fault: "client",
1927
1927
  $metadata: deserializeMetadata(output),
1928
1928
  });
1929
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1929
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1930
1930
  }
1931
1931
  };
1932
1932
  const deserializeAws_queryRemovePermissionCommand = async (output, context) => {
@@ -1968,7 +1968,7 @@ const deserializeAws_queryRemovePermissionCommandError = async (output, context)
1968
1968
  $fault: "client",
1969
1969
  $metadata: deserializeMetadata(output),
1970
1970
  });
1971
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
1971
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1972
1972
  }
1973
1973
  };
1974
1974
  const deserializeAws_querySetEndpointAttributesCommand = async (output, context) => {
@@ -2010,7 +2010,7 @@ const deserializeAws_querySetEndpointAttributesCommandError = async (output, con
2010
2010
  $fault: "client",
2011
2011
  $metadata: deserializeMetadata(output),
2012
2012
  });
2013
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2013
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2014
2014
  }
2015
2015
  };
2016
2016
  const deserializeAws_querySetPlatformApplicationAttributesCommand = async (output, context) => {
@@ -2052,7 +2052,7 @@ const deserializeAws_querySetPlatformApplicationAttributesCommandError = async (
2052
2052
  $fault: "client",
2053
2053
  $metadata: deserializeMetadata(output),
2054
2054
  });
2055
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2055
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2056
2056
  }
2057
2057
  };
2058
2058
  const deserializeAws_querySetSMSAttributesCommand = async (output, context) => {
@@ -2097,7 +2097,7 @@ const deserializeAws_querySetSMSAttributesCommandError = async (output, context)
2097
2097
  $fault: "client",
2098
2098
  $metadata: deserializeMetadata(output),
2099
2099
  });
2100
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2100
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2101
2101
  }
2102
2102
  };
2103
2103
  const deserializeAws_querySetSubscriptionAttributesCommand = async (output, context) => {
@@ -2142,7 +2142,7 @@ const deserializeAws_querySetSubscriptionAttributesCommandError = async (output,
2142
2142
  $fault: "client",
2143
2143
  $metadata: deserializeMetadata(output),
2144
2144
  });
2145
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2145
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2146
2146
  }
2147
2147
  };
2148
2148
  const deserializeAws_querySetTopicAttributesCommand = async (output, context) => {
@@ -2187,7 +2187,7 @@ const deserializeAws_querySetTopicAttributesCommandError = async (output, contex
2187
2187
  $fault: "client",
2188
2188
  $metadata: deserializeMetadata(output),
2189
2189
  });
2190
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2190
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2191
2191
  }
2192
2192
  };
2193
2193
  const deserializeAws_querySubscribeCommand = async (output, context) => {
@@ -2241,7 +2241,7 @@ const deserializeAws_querySubscribeCommandError = async (output, context) => {
2241
2241
  $fault: "client",
2242
2242
  $metadata: deserializeMetadata(output),
2243
2243
  });
2244
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2244
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2245
2245
  }
2246
2246
  };
2247
2247
  const deserializeAws_queryTagResourceCommand = async (output, context) => {
@@ -2295,7 +2295,7 @@ const deserializeAws_queryTagResourceCommandError = async (output, context) => {
2295
2295
  $fault: "client",
2296
2296
  $metadata: deserializeMetadata(output),
2297
2297
  });
2298
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2298
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2299
2299
  }
2300
2300
  };
2301
2301
  const deserializeAws_queryUnsubscribeCommand = async (output, context) => {
@@ -2340,7 +2340,7 @@ const deserializeAws_queryUnsubscribeCommandError = async (output, context) => {
2340
2340
  $fault: "client",
2341
2341
  $metadata: deserializeMetadata(output),
2342
2342
  });
2343
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2343
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2344
2344
  }
2345
2345
  };
2346
2346
  const deserializeAws_queryUntagResourceCommand = async (output, context) => {
@@ -2394,7 +2394,7 @@ const deserializeAws_queryUntagResourceCommandError = async (output, context) =>
2394
2394
  $fault: "client",
2395
2395
  $metadata: deserializeMetadata(output),
2396
2396
  });
2397
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2397
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2398
2398
  }
2399
2399
  };
2400
2400
  const deserializeAws_queryVerifySMSSandboxPhoneNumberCommand = async (output, context) => {
@@ -2445,7 +2445,7 @@ const deserializeAws_queryVerifySMSSandboxPhoneNumberCommandError = async (outpu
2445
2445
  $fault: "client",
2446
2446
  $metadata: deserializeMetadata(output),
2447
2447
  });
2448
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
2448
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2449
2449
  }
2450
2450
  };
2451
2451
  const deserializeAws_queryAuthorizationErrorExceptionResponse = async (parsedOutput, context) => {
@@ -2455,7 +2455,7 @@ const deserializeAws_queryAuthorizationErrorExceptionResponse = async (parsedOut
2455
2455
  $metadata: deserializeMetadata(parsedOutput),
2456
2456
  ...deserialized,
2457
2457
  });
2458
- return smithy_client_1.decorateServiceException(exception, body);
2458
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2459
2459
  };
2460
2460
  const deserializeAws_queryBatchEntryIdsNotDistinctExceptionResponse = async (parsedOutput, context) => {
2461
2461
  const body = parsedOutput.body;
@@ -2464,7 +2464,7 @@ const deserializeAws_queryBatchEntryIdsNotDistinctExceptionResponse = async (par
2464
2464
  $metadata: deserializeMetadata(parsedOutput),
2465
2465
  ...deserialized,
2466
2466
  });
2467
- return smithy_client_1.decorateServiceException(exception, body);
2467
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2468
2468
  };
2469
2469
  const deserializeAws_queryBatchRequestTooLongExceptionResponse = async (parsedOutput, context) => {
2470
2470
  const body = parsedOutput.body;
@@ -2473,7 +2473,7 @@ const deserializeAws_queryBatchRequestTooLongExceptionResponse = async (parsedOu
2473
2473
  $metadata: deserializeMetadata(parsedOutput),
2474
2474
  ...deserialized,
2475
2475
  });
2476
- return smithy_client_1.decorateServiceException(exception, body);
2476
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2477
2477
  };
2478
2478
  const deserializeAws_queryConcurrentAccessExceptionResponse = async (parsedOutput, context) => {
2479
2479
  const body = parsedOutput.body;
@@ -2482,7 +2482,7 @@ const deserializeAws_queryConcurrentAccessExceptionResponse = async (parsedOutpu
2482
2482
  $metadata: deserializeMetadata(parsedOutput),
2483
2483
  ...deserialized,
2484
2484
  });
2485
- return smithy_client_1.decorateServiceException(exception, body);
2485
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2486
2486
  };
2487
2487
  const deserializeAws_queryEmptyBatchRequestExceptionResponse = async (parsedOutput, context) => {
2488
2488
  const body = parsedOutput.body;
@@ -2491,7 +2491,7 @@ const deserializeAws_queryEmptyBatchRequestExceptionResponse = async (parsedOutp
2491
2491
  $metadata: deserializeMetadata(parsedOutput),
2492
2492
  ...deserialized,
2493
2493
  });
2494
- return smithy_client_1.decorateServiceException(exception, body);
2494
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2495
2495
  };
2496
2496
  const deserializeAws_queryEndpointDisabledExceptionResponse = async (parsedOutput, context) => {
2497
2497
  const body = parsedOutput.body;
@@ -2500,7 +2500,7 @@ const deserializeAws_queryEndpointDisabledExceptionResponse = async (parsedOutpu
2500
2500
  $metadata: deserializeMetadata(parsedOutput),
2501
2501
  ...deserialized,
2502
2502
  });
2503
- return smithy_client_1.decorateServiceException(exception, body);
2503
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2504
2504
  };
2505
2505
  const deserializeAws_queryFilterPolicyLimitExceededExceptionResponse = async (parsedOutput, context) => {
2506
2506
  const body = parsedOutput.body;
@@ -2509,7 +2509,7 @@ const deserializeAws_queryFilterPolicyLimitExceededExceptionResponse = async (pa
2509
2509
  $metadata: deserializeMetadata(parsedOutput),
2510
2510
  ...deserialized,
2511
2511
  });
2512
- return smithy_client_1.decorateServiceException(exception, body);
2512
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2513
2513
  };
2514
2514
  const deserializeAws_queryInternalErrorExceptionResponse = async (parsedOutput, context) => {
2515
2515
  const body = parsedOutput.body;
@@ -2518,7 +2518,7 @@ const deserializeAws_queryInternalErrorExceptionResponse = async (parsedOutput,
2518
2518
  $metadata: deserializeMetadata(parsedOutput),
2519
2519
  ...deserialized,
2520
2520
  });
2521
- return smithy_client_1.decorateServiceException(exception, body);
2521
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2522
2522
  };
2523
2523
  const deserializeAws_queryInvalidBatchEntryIdExceptionResponse = async (parsedOutput, context) => {
2524
2524
  const body = parsedOutput.body;
@@ -2527,7 +2527,7 @@ const deserializeAws_queryInvalidBatchEntryIdExceptionResponse = async (parsedOu
2527
2527
  $metadata: deserializeMetadata(parsedOutput),
2528
2528
  ...deserialized,
2529
2529
  });
2530
- return smithy_client_1.decorateServiceException(exception, body);
2530
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2531
2531
  };
2532
2532
  const deserializeAws_queryInvalidParameterExceptionResponse = async (parsedOutput, context) => {
2533
2533
  const body = parsedOutput.body;
@@ -2536,7 +2536,7 @@ const deserializeAws_queryInvalidParameterExceptionResponse = async (parsedOutpu
2536
2536
  $metadata: deserializeMetadata(parsedOutput),
2537
2537
  ...deserialized,
2538
2538
  });
2539
- return smithy_client_1.decorateServiceException(exception, body);
2539
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2540
2540
  };
2541
2541
  const deserializeAws_queryInvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
2542
2542
  const body = parsedOutput.body;
@@ -2545,7 +2545,7 @@ const deserializeAws_queryInvalidParameterValueExceptionResponse = async (parsed
2545
2545
  $metadata: deserializeMetadata(parsedOutput),
2546
2546
  ...deserialized,
2547
2547
  });
2548
- return smithy_client_1.decorateServiceException(exception, body);
2548
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2549
2549
  };
2550
2550
  const deserializeAws_queryInvalidSecurityExceptionResponse = async (parsedOutput, context) => {
2551
2551
  const body = parsedOutput.body;
@@ -2554,7 +2554,7 @@ const deserializeAws_queryInvalidSecurityExceptionResponse = async (parsedOutput
2554
2554
  $metadata: deserializeMetadata(parsedOutput),
2555
2555
  ...deserialized,
2556
2556
  });
2557
- return smithy_client_1.decorateServiceException(exception, body);
2557
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2558
2558
  };
2559
2559
  const deserializeAws_queryKMSAccessDeniedExceptionResponse = async (parsedOutput, context) => {
2560
2560
  const body = parsedOutput.body;
@@ -2563,7 +2563,7 @@ const deserializeAws_queryKMSAccessDeniedExceptionResponse = async (parsedOutput
2563
2563
  $metadata: deserializeMetadata(parsedOutput),
2564
2564
  ...deserialized,
2565
2565
  });
2566
- return smithy_client_1.decorateServiceException(exception, body);
2566
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2567
2567
  };
2568
2568
  const deserializeAws_queryKMSDisabledExceptionResponse = async (parsedOutput, context) => {
2569
2569
  const body = parsedOutput.body;
@@ -2572,7 +2572,7 @@ const deserializeAws_queryKMSDisabledExceptionResponse = async (parsedOutput, co
2572
2572
  $metadata: deserializeMetadata(parsedOutput),
2573
2573
  ...deserialized,
2574
2574
  });
2575
- return smithy_client_1.decorateServiceException(exception, body);
2575
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2576
2576
  };
2577
2577
  const deserializeAws_queryKMSInvalidStateExceptionResponse = async (parsedOutput, context) => {
2578
2578
  const body = parsedOutput.body;
@@ -2581,7 +2581,7 @@ const deserializeAws_queryKMSInvalidStateExceptionResponse = async (parsedOutput
2581
2581
  $metadata: deserializeMetadata(parsedOutput),
2582
2582
  ...deserialized,
2583
2583
  });
2584
- return smithy_client_1.decorateServiceException(exception, body);
2584
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2585
2585
  };
2586
2586
  const deserializeAws_queryKMSNotFoundExceptionResponse = async (parsedOutput, context) => {
2587
2587
  const body = parsedOutput.body;
@@ -2590,7 +2590,7 @@ const deserializeAws_queryKMSNotFoundExceptionResponse = async (parsedOutput, co
2590
2590
  $metadata: deserializeMetadata(parsedOutput),
2591
2591
  ...deserialized,
2592
2592
  });
2593
- return smithy_client_1.decorateServiceException(exception, body);
2593
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2594
2594
  };
2595
2595
  const deserializeAws_queryKMSOptInRequiredResponse = async (parsedOutput, context) => {
2596
2596
  const body = parsedOutput.body;
@@ -2599,7 +2599,7 @@ const deserializeAws_queryKMSOptInRequiredResponse = async (parsedOutput, contex
2599
2599
  $metadata: deserializeMetadata(parsedOutput),
2600
2600
  ...deserialized,
2601
2601
  });
2602
- return smithy_client_1.decorateServiceException(exception, body);
2602
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2603
2603
  };
2604
2604
  const deserializeAws_queryKMSThrottlingExceptionResponse = async (parsedOutput, context) => {
2605
2605
  const body = parsedOutput.body;
@@ -2608,7 +2608,7 @@ const deserializeAws_queryKMSThrottlingExceptionResponse = async (parsedOutput,
2608
2608
  $metadata: deserializeMetadata(parsedOutput),
2609
2609
  ...deserialized,
2610
2610
  });
2611
- return smithy_client_1.decorateServiceException(exception, body);
2611
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2612
2612
  };
2613
2613
  const deserializeAws_queryNotFoundExceptionResponse = async (parsedOutput, context) => {
2614
2614
  const body = parsedOutput.body;
@@ -2617,7 +2617,7 @@ const deserializeAws_queryNotFoundExceptionResponse = async (parsedOutput, conte
2617
2617
  $metadata: deserializeMetadata(parsedOutput),
2618
2618
  ...deserialized,
2619
2619
  });
2620
- return smithy_client_1.decorateServiceException(exception, body);
2620
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2621
2621
  };
2622
2622
  const deserializeAws_queryOptedOutExceptionResponse = async (parsedOutput, context) => {
2623
2623
  const body = parsedOutput.body;
@@ -2626,7 +2626,7 @@ const deserializeAws_queryOptedOutExceptionResponse = async (parsedOutput, conte
2626
2626
  $metadata: deserializeMetadata(parsedOutput),
2627
2627
  ...deserialized,
2628
2628
  });
2629
- return smithy_client_1.decorateServiceException(exception, body);
2629
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2630
2630
  };
2631
2631
  const deserializeAws_queryPlatformApplicationDisabledExceptionResponse = async (parsedOutput, context) => {
2632
2632
  const body = parsedOutput.body;
@@ -2635,7 +2635,7 @@ const deserializeAws_queryPlatformApplicationDisabledExceptionResponse = async (
2635
2635
  $metadata: deserializeMetadata(parsedOutput),
2636
2636
  ...deserialized,
2637
2637
  });
2638
- return smithy_client_1.decorateServiceException(exception, body);
2638
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2639
2639
  };
2640
2640
  const deserializeAws_queryResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
2641
2641
  const body = parsedOutput.body;
@@ -2644,7 +2644,7 @@ const deserializeAws_queryResourceNotFoundExceptionResponse = async (parsedOutpu
2644
2644
  $metadata: deserializeMetadata(parsedOutput),
2645
2645
  ...deserialized,
2646
2646
  });
2647
- return smithy_client_1.decorateServiceException(exception, body);
2647
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2648
2648
  };
2649
2649
  const deserializeAws_queryStaleTagExceptionResponse = async (parsedOutput, context) => {
2650
2650
  const body = parsedOutput.body;
@@ -2653,7 +2653,7 @@ const deserializeAws_queryStaleTagExceptionResponse = async (parsedOutput, conte
2653
2653
  $metadata: deserializeMetadata(parsedOutput),
2654
2654
  ...deserialized,
2655
2655
  });
2656
- return smithy_client_1.decorateServiceException(exception, body);
2656
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2657
2657
  };
2658
2658
  const deserializeAws_querySubscriptionLimitExceededExceptionResponse = async (parsedOutput, context) => {
2659
2659
  const body = parsedOutput.body;
@@ -2662,7 +2662,7 @@ const deserializeAws_querySubscriptionLimitExceededExceptionResponse = async (pa
2662
2662
  $metadata: deserializeMetadata(parsedOutput),
2663
2663
  ...deserialized,
2664
2664
  });
2665
- return smithy_client_1.decorateServiceException(exception, body);
2665
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2666
2666
  };
2667
2667
  const deserializeAws_queryTagLimitExceededExceptionResponse = async (parsedOutput, context) => {
2668
2668
  const body = parsedOutput.body;
@@ -2671,7 +2671,7 @@ const deserializeAws_queryTagLimitExceededExceptionResponse = async (parsedOutpu
2671
2671
  $metadata: deserializeMetadata(parsedOutput),
2672
2672
  ...deserialized,
2673
2673
  });
2674
- return smithy_client_1.decorateServiceException(exception, body);
2674
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2675
2675
  };
2676
2676
  const deserializeAws_queryTagPolicyExceptionResponse = async (parsedOutput, context) => {
2677
2677
  const body = parsedOutput.body;
@@ -2680,7 +2680,7 @@ const deserializeAws_queryTagPolicyExceptionResponse = async (parsedOutput, cont
2680
2680
  $metadata: deserializeMetadata(parsedOutput),
2681
2681
  ...deserialized,
2682
2682
  });
2683
- return smithy_client_1.decorateServiceException(exception, body);
2683
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2684
2684
  };
2685
2685
  const deserializeAws_queryThrottledExceptionResponse = async (parsedOutput, context) => {
2686
2686
  const body = parsedOutput.body;
@@ -2689,7 +2689,7 @@ const deserializeAws_queryThrottledExceptionResponse = async (parsedOutput, cont
2689
2689
  $metadata: deserializeMetadata(parsedOutput),
2690
2690
  ...deserialized,
2691
2691
  });
2692
- return smithy_client_1.decorateServiceException(exception, body);
2692
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2693
2693
  };
2694
2694
  const deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse = async (parsedOutput, context) => {
2695
2695
  const body = parsedOutput.body;
@@ -2698,7 +2698,7 @@ const deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse = async
2698
2698
  $metadata: deserializeMetadata(parsedOutput),
2699
2699
  ...deserialized,
2700
2700
  });
2701
- return smithy_client_1.decorateServiceException(exception, body);
2701
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2702
2702
  };
2703
2703
  const deserializeAws_queryTopicLimitExceededExceptionResponse = async (parsedOutput, context) => {
2704
2704
  const body = parsedOutput.body;
@@ -2707,7 +2707,7 @@ const deserializeAws_queryTopicLimitExceededExceptionResponse = async (parsedOut
2707
2707
  $metadata: deserializeMetadata(parsedOutput),
2708
2708
  ...deserialized,
2709
2709
  });
2710
- return smithy_client_1.decorateServiceException(exception, body);
2710
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2711
2711
  };
2712
2712
  const deserializeAws_queryUserErrorExceptionResponse = async (parsedOutput, context) => {
2713
2713
  const body = parsedOutput.body;
@@ -2716,7 +2716,7 @@ const deserializeAws_queryUserErrorExceptionResponse = async (parsedOutput, cont
2716
2716
  $metadata: deserializeMetadata(parsedOutput),
2717
2717
  ...deserialized,
2718
2718
  });
2719
- return smithy_client_1.decorateServiceException(exception, body);
2719
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2720
2720
  };
2721
2721
  const deserializeAws_queryValidationExceptionResponse = async (parsedOutput, context) => {
2722
2722
  const body = parsedOutput.body;
@@ -2725,7 +2725,7 @@ const deserializeAws_queryValidationExceptionResponse = async (parsedOutput, con
2725
2725
  $metadata: deserializeMetadata(parsedOutput),
2726
2726
  ...deserialized,
2727
2727
  });
2728
- return smithy_client_1.decorateServiceException(exception, body);
2728
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2729
2729
  };
2730
2730
  const deserializeAws_queryVerificationExceptionResponse = async (parsedOutput, context) => {
2731
2731
  const body = parsedOutput.body;
@@ -2734,7 +2734,7 @@ const deserializeAws_queryVerificationExceptionResponse = async (parsedOutput, c
2734
2734
  $metadata: deserializeMetadata(parsedOutput),
2735
2735
  ...deserialized,
2736
2736
  });
2737
- return smithy_client_1.decorateServiceException(exception, body);
2737
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2738
2738
  };
2739
2739
  const serializeAws_queryActionsList = (input, context) => {
2740
2740
  const entries = {};
@@ -3379,7 +3379,7 @@ const deserializeAws_queryAuthorizationErrorException = (output, context) => {
3379
3379
  message: undefined,
3380
3380
  };
3381
3381
  if (output["message"] !== undefined) {
3382
- contents.message = smithy_client_1.expectString(output["message"]);
3382
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3383
3383
  }
3384
3384
  return contents;
3385
3385
  };
@@ -3388,7 +3388,7 @@ const deserializeAws_queryBatchEntryIdsNotDistinctException = (output, context)
3388
3388
  message: undefined,
3389
3389
  };
3390
3390
  if (output["message"] !== undefined) {
3391
- contents.message = smithy_client_1.expectString(output["message"]);
3391
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3392
3392
  }
3393
3393
  return contents;
3394
3394
  };
@@ -3397,7 +3397,7 @@ const deserializeAws_queryBatchRequestTooLongException = (output, context) => {
3397
3397
  message: undefined,
3398
3398
  };
3399
3399
  if (output["message"] !== undefined) {
3400
- contents.message = smithy_client_1.expectString(output["message"]);
3400
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3401
3401
  }
3402
3402
  return contents;
3403
3403
  };
@@ -3409,16 +3409,16 @@ const deserializeAws_queryBatchResultErrorEntry = (output, context) => {
3409
3409
  SenderFault: undefined,
3410
3410
  };
3411
3411
  if (output["Id"] !== undefined) {
3412
- contents.Id = smithy_client_1.expectString(output["Id"]);
3412
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
3413
3413
  }
3414
3414
  if (output["Code"] !== undefined) {
3415
- contents.Code = smithy_client_1.expectString(output["Code"]);
3415
+ contents.Code = (0, smithy_client_1.expectString)(output["Code"]);
3416
3416
  }
3417
3417
  if (output["Message"] !== undefined) {
3418
- contents.Message = smithy_client_1.expectString(output["Message"]);
3418
+ contents.Message = (0, smithy_client_1.expectString)(output["Message"]);
3419
3419
  }
3420
3420
  if (output["SenderFault"] !== undefined) {
3421
- contents.SenderFault = smithy_client_1.parseBoolean(output["SenderFault"]);
3421
+ contents.SenderFault = (0, smithy_client_1.parseBoolean)(output["SenderFault"]);
3422
3422
  }
3423
3423
  return contents;
3424
3424
  };
@@ -3437,7 +3437,7 @@ const deserializeAws_queryCheckIfPhoneNumberIsOptedOutResponse = (output, contex
3437
3437
  isOptedOut: undefined,
3438
3438
  };
3439
3439
  if (output["isOptedOut"] !== undefined) {
3440
- contents.isOptedOut = smithy_client_1.parseBoolean(output["isOptedOut"]);
3440
+ contents.isOptedOut = (0, smithy_client_1.parseBoolean)(output["isOptedOut"]);
3441
3441
  }
3442
3442
  return contents;
3443
3443
  };
@@ -3446,7 +3446,7 @@ const deserializeAws_queryConcurrentAccessException = (output, context) => {
3446
3446
  message: undefined,
3447
3447
  };
3448
3448
  if (output["message"] !== undefined) {
3449
- contents.message = smithy_client_1.expectString(output["message"]);
3449
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3450
3450
  }
3451
3451
  return contents;
3452
3452
  };
@@ -3455,7 +3455,7 @@ const deserializeAws_queryConfirmSubscriptionResponse = (output, context) => {
3455
3455
  SubscriptionArn: undefined,
3456
3456
  };
3457
3457
  if (output["SubscriptionArn"] !== undefined) {
3458
- contents.SubscriptionArn = smithy_client_1.expectString(output["SubscriptionArn"]);
3458
+ contents.SubscriptionArn = (0, smithy_client_1.expectString)(output["SubscriptionArn"]);
3459
3459
  }
3460
3460
  return contents;
3461
3461
  };
@@ -3464,7 +3464,7 @@ const deserializeAws_queryCreateEndpointResponse = (output, context) => {
3464
3464
  EndpointArn: undefined,
3465
3465
  };
3466
3466
  if (output["EndpointArn"] !== undefined) {
3467
- contents.EndpointArn = smithy_client_1.expectString(output["EndpointArn"]);
3467
+ contents.EndpointArn = (0, smithy_client_1.expectString)(output["EndpointArn"]);
3468
3468
  }
3469
3469
  return contents;
3470
3470
  };
@@ -3473,7 +3473,7 @@ const deserializeAws_queryCreatePlatformApplicationResponse = (output, context)
3473
3473
  PlatformApplicationArn: undefined,
3474
3474
  };
3475
3475
  if (output["PlatformApplicationArn"] !== undefined) {
3476
- contents.PlatformApplicationArn = smithy_client_1.expectString(output["PlatformApplicationArn"]);
3476
+ contents.PlatformApplicationArn = (0, smithy_client_1.expectString)(output["PlatformApplicationArn"]);
3477
3477
  }
3478
3478
  return contents;
3479
3479
  };
@@ -3486,7 +3486,7 @@ const deserializeAws_queryCreateTopicResponse = (output, context) => {
3486
3486
  TopicArn: undefined,
3487
3487
  };
3488
3488
  if (output["TopicArn"] !== undefined) {
3489
- contents.TopicArn = smithy_client_1.expectString(output["TopicArn"]);
3489
+ contents.TopicArn = (0, smithy_client_1.expectString)(output["TopicArn"]);
3490
3490
  }
3491
3491
  return contents;
3492
3492
  };
@@ -3499,7 +3499,7 @@ const deserializeAws_queryEmptyBatchRequestException = (output, context) => {
3499
3499
  message: undefined,
3500
3500
  };
3501
3501
  if (output["message"] !== undefined) {
3502
- contents.message = smithy_client_1.expectString(output["message"]);
3502
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3503
3503
  }
3504
3504
  return contents;
3505
3505
  };
@@ -3509,13 +3509,13 @@ const deserializeAws_queryEndpoint = (output, context) => {
3509
3509
  Attributes: undefined,
3510
3510
  };
3511
3511
  if (output["EndpointArn"] !== undefined) {
3512
- contents.EndpointArn = smithy_client_1.expectString(output["EndpointArn"]);
3512
+ contents.EndpointArn = (0, smithy_client_1.expectString)(output["EndpointArn"]);
3513
3513
  }
3514
3514
  if (output.Attributes === "") {
3515
3515
  contents.Attributes = {};
3516
3516
  }
3517
3517
  if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) {
3518
- contents.Attributes = deserializeAws_queryMapStringToString(smithy_client_1.getArrayIfSingleItem(output["Attributes"]["entry"]), context);
3518
+ contents.Attributes = deserializeAws_queryMapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["entry"]), context);
3519
3519
  }
3520
3520
  return contents;
3521
3521
  };
@@ -3524,7 +3524,7 @@ const deserializeAws_queryEndpointDisabledException = (output, context) => {
3524
3524
  message: undefined,
3525
3525
  };
3526
3526
  if (output["message"] !== undefined) {
3527
- contents.message = smithy_client_1.expectString(output["message"]);
3527
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3528
3528
  }
3529
3529
  return contents;
3530
3530
  };
@@ -3533,7 +3533,7 @@ const deserializeAws_queryFilterPolicyLimitExceededException = (output, context)
3533
3533
  message: undefined,
3534
3534
  };
3535
3535
  if (output["message"] !== undefined) {
3536
- contents.message = smithy_client_1.expectString(output["message"]);
3536
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3537
3537
  }
3538
3538
  return contents;
3539
3539
  };
@@ -3545,7 +3545,7 @@ const deserializeAws_queryGetEndpointAttributesResponse = (output, context) => {
3545
3545
  contents.Attributes = {};
3546
3546
  }
3547
3547
  if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) {
3548
- contents.Attributes = deserializeAws_queryMapStringToString(smithy_client_1.getArrayIfSingleItem(output["Attributes"]["entry"]), context);
3548
+ contents.Attributes = deserializeAws_queryMapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["entry"]), context);
3549
3549
  }
3550
3550
  return contents;
3551
3551
  };
@@ -3557,7 +3557,7 @@ const deserializeAws_queryGetPlatformApplicationAttributesResponse = (output, co
3557
3557
  contents.Attributes = {};
3558
3558
  }
3559
3559
  if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) {
3560
- contents.Attributes = deserializeAws_queryMapStringToString(smithy_client_1.getArrayIfSingleItem(output["Attributes"]["entry"]), context);
3560
+ contents.Attributes = deserializeAws_queryMapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["entry"]), context);
3561
3561
  }
3562
3562
  return contents;
3563
3563
  };
@@ -3569,7 +3569,7 @@ const deserializeAws_queryGetSMSAttributesResponse = (output, context) => {
3569
3569
  contents.attributes = {};
3570
3570
  }
3571
3571
  if (output["attributes"] !== undefined && output["attributes"]["entry"] !== undefined) {
3572
- contents.attributes = deserializeAws_queryMapStringToString(smithy_client_1.getArrayIfSingleItem(output["attributes"]["entry"]), context);
3572
+ contents.attributes = deserializeAws_queryMapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output["attributes"]["entry"]), context);
3573
3573
  }
3574
3574
  return contents;
3575
3575
  };
@@ -3578,7 +3578,7 @@ const deserializeAws_queryGetSMSSandboxAccountStatusResult = (output, context) =
3578
3578
  IsInSandbox: undefined,
3579
3579
  };
3580
3580
  if (output["IsInSandbox"] !== undefined) {
3581
- contents.IsInSandbox = smithy_client_1.parseBoolean(output["IsInSandbox"]);
3581
+ contents.IsInSandbox = (0, smithy_client_1.parseBoolean)(output["IsInSandbox"]);
3582
3582
  }
3583
3583
  return contents;
3584
3584
  };
@@ -3590,7 +3590,7 @@ const deserializeAws_queryGetSubscriptionAttributesResponse = (output, context)
3590
3590
  contents.Attributes = {};
3591
3591
  }
3592
3592
  if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) {
3593
- contents.Attributes = deserializeAws_querySubscriptionAttributesMap(smithy_client_1.getArrayIfSingleItem(output["Attributes"]["entry"]), context);
3593
+ contents.Attributes = deserializeAws_querySubscriptionAttributesMap((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["entry"]), context);
3594
3594
  }
3595
3595
  return contents;
3596
3596
  };
@@ -3602,7 +3602,7 @@ const deserializeAws_queryGetTopicAttributesResponse = (output, context) => {
3602
3602
  contents.Attributes = {};
3603
3603
  }
3604
3604
  if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) {
3605
- contents.Attributes = deserializeAws_queryTopicAttributesMap(smithy_client_1.getArrayIfSingleItem(output["Attributes"]["entry"]), context);
3605
+ contents.Attributes = deserializeAws_queryTopicAttributesMap((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["entry"]), context);
3606
3606
  }
3607
3607
  return contents;
3608
3608
  };
@@ -3611,7 +3611,7 @@ const deserializeAws_queryInternalErrorException = (output, context) => {
3611
3611
  message: undefined,
3612
3612
  };
3613
3613
  if (output["message"] !== undefined) {
3614
- contents.message = smithy_client_1.expectString(output["message"]);
3614
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3615
3615
  }
3616
3616
  return contents;
3617
3617
  };
@@ -3620,7 +3620,7 @@ const deserializeAws_queryInvalidBatchEntryIdException = (output, context) => {
3620
3620
  message: undefined,
3621
3621
  };
3622
3622
  if (output["message"] !== undefined) {
3623
- contents.message = smithy_client_1.expectString(output["message"]);
3623
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3624
3624
  }
3625
3625
  return contents;
3626
3626
  };
@@ -3629,7 +3629,7 @@ const deserializeAws_queryInvalidParameterException = (output, context) => {
3629
3629
  message: undefined,
3630
3630
  };
3631
3631
  if (output["message"] !== undefined) {
3632
- contents.message = smithy_client_1.expectString(output["message"]);
3632
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3633
3633
  }
3634
3634
  return contents;
3635
3635
  };
@@ -3638,7 +3638,7 @@ const deserializeAws_queryInvalidParameterValueException = (output, context) =>
3638
3638
  message: undefined,
3639
3639
  };
3640
3640
  if (output["message"] !== undefined) {
3641
- contents.message = smithy_client_1.expectString(output["message"]);
3641
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3642
3642
  }
3643
3643
  return contents;
3644
3644
  };
@@ -3647,7 +3647,7 @@ const deserializeAws_queryInvalidSecurityException = (output, context) => {
3647
3647
  message: undefined,
3648
3648
  };
3649
3649
  if (output["message"] !== undefined) {
3650
- contents.message = smithy_client_1.expectString(output["message"]);
3650
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3651
3651
  }
3652
3652
  return contents;
3653
3653
  };
@@ -3656,7 +3656,7 @@ const deserializeAws_queryKMSAccessDeniedException = (output, context) => {
3656
3656
  message: undefined,
3657
3657
  };
3658
3658
  if (output["message"] !== undefined) {
3659
- contents.message = smithy_client_1.expectString(output["message"]);
3659
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3660
3660
  }
3661
3661
  return contents;
3662
3662
  };
@@ -3665,7 +3665,7 @@ const deserializeAws_queryKMSDisabledException = (output, context) => {
3665
3665
  message: undefined,
3666
3666
  };
3667
3667
  if (output["message"] !== undefined) {
3668
- contents.message = smithy_client_1.expectString(output["message"]);
3668
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3669
3669
  }
3670
3670
  return contents;
3671
3671
  };
@@ -3674,7 +3674,7 @@ const deserializeAws_queryKMSInvalidStateException = (output, context) => {
3674
3674
  message: undefined,
3675
3675
  };
3676
3676
  if (output["message"] !== undefined) {
3677
- contents.message = smithy_client_1.expectString(output["message"]);
3677
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3678
3678
  }
3679
3679
  return contents;
3680
3680
  };
@@ -3683,7 +3683,7 @@ const deserializeAws_queryKMSNotFoundException = (output, context) => {
3683
3683
  message: undefined,
3684
3684
  };
3685
3685
  if (output["message"] !== undefined) {
3686
- contents.message = smithy_client_1.expectString(output["message"]);
3686
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3687
3687
  }
3688
3688
  return contents;
3689
3689
  };
@@ -3692,7 +3692,7 @@ const deserializeAws_queryKMSOptInRequired = (output, context) => {
3692
3692
  message: undefined,
3693
3693
  };
3694
3694
  if (output["message"] !== undefined) {
3695
- contents.message = smithy_client_1.expectString(output["message"]);
3695
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3696
3696
  }
3697
3697
  return contents;
3698
3698
  };
@@ -3701,7 +3701,7 @@ const deserializeAws_queryKMSThrottlingException = (output, context) => {
3701
3701
  message: undefined,
3702
3702
  };
3703
3703
  if (output["message"] !== undefined) {
3704
- contents.message = smithy_client_1.expectString(output["message"]);
3704
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3705
3705
  }
3706
3706
  return contents;
3707
3707
  };
@@ -3714,10 +3714,10 @@ const deserializeAws_queryListEndpointsByPlatformApplicationResponse = (output,
3714
3714
  contents.Endpoints = [];
3715
3715
  }
3716
3716
  if (output["Endpoints"] !== undefined && output["Endpoints"]["member"] !== undefined) {
3717
- contents.Endpoints = deserializeAws_queryListOfEndpoints(smithy_client_1.getArrayIfSingleItem(output["Endpoints"]["member"]), context);
3717
+ contents.Endpoints = deserializeAws_queryListOfEndpoints((0, smithy_client_1.getArrayIfSingleItem)(output["Endpoints"]["member"]), context);
3718
3718
  }
3719
3719
  if (output["NextToken"] !== undefined) {
3720
- contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
3720
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
3721
3721
  }
3722
3722
  return contents;
3723
3723
  };
@@ -3747,13 +3747,13 @@ const deserializeAws_queryListOriginationNumbersResult = (output, context) => {
3747
3747
  PhoneNumbers: undefined,
3748
3748
  };
3749
3749
  if (output["NextToken"] !== undefined) {
3750
- contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
3750
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
3751
3751
  }
3752
3752
  if (output.PhoneNumbers === "") {
3753
3753
  contents.PhoneNumbers = [];
3754
3754
  }
3755
3755
  if (output["PhoneNumbers"] !== undefined && output["PhoneNumbers"]["member"] !== undefined) {
3756
- contents.PhoneNumbers = deserializeAws_queryPhoneNumberInformationList(smithy_client_1.getArrayIfSingleItem(output["PhoneNumbers"]["member"]), context);
3756
+ contents.PhoneNumbers = deserializeAws_queryPhoneNumberInformationList((0, smithy_client_1.getArrayIfSingleItem)(output["PhoneNumbers"]["member"]), context);
3757
3757
  }
3758
3758
  return contents;
3759
3759
  };
@@ -3766,10 +3766,10 @@ const deserializeAws_queryListPhoneNumbersOptedOutResponse = (output, context) =
3766
3766
  contents.phoneNumbers = [];
3767
3767
  }
3768
3768
  if (output["phoneNumbers"] !== undefined && output["phoneNumbers"]["member"] !== undefined) {
3769
- contents.phoneNumbers = deserializeAws_queryPhoneNumberList(smithy_client_1.getArrayIfSingleItem(output["phoneNumbers"]["member"]), context);
3769
+ contents.phoneNumbers = deserializeAws_queryPhoneNumberList((0, smithy_client_1.getArrayIfSingleItem)(output["phoneNumbers"]["member"]), context);
3770
3770
  }
3771
3771
  if (output["nextToken"] !== undefined) {
3772
- contents.nextToken = smithy_client_1.expectString(output["nextToken"]);
3772
+ contents.nextToken = (0, smithy_client_1.expectString)(output["nextToken"]);
3773
3773
  }
3774
3774
  return contents;
3775
3775
  };
@@ -3782,10 +3782,10 @@ const deserializeAws_queryListPlatformApplicationsResponse = (output, context) =
3782
3782
  contents.PlatformApplications = [];
3783
3783
  }
3784
3784
  if (output["PlatformApplications"] !== undefined && output["PlatformApplications"]["member"] !== undefined) {
3785
- contents.PlatformApplications = deserializeAws_queryListOfPlatformApplications(smithy_client_1.getArrayIfSingleItem(output["PlatformApplications"]["member"]), context);
3785
+ contents.PlatformApplications = deserializeAws_queryListOfPlatformApplications((0, smithy_client_1.getArrayIfSingleItem)(output["PlatformApplications"]["member"]), context);
3786
3786
  }
3787
3787
  if (output["NextToken"] !== undefined) {
3788
- contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
3788
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
3789
3789
  }
3790
3790
  return contents;
3791
3791
  };
@@ -3798,10 +3798,10 @@ const deserializeAws_queryListSMSSandboxPhoneNumbersResult = (output, context) =
3798
3798
  contents.PhoneNumbers = [];
3799
3799
  }
3800
3800
  if (output["PhoneNumbers"] !== undefined && output["PhoneNumbers"]["member"] !== undefined) {
3801
- contents.PhoneNumbers = deserializeAws_querySMSSandboxPhoneNumberList(smithy_client_1.getArrayIfSingleItem(output["PhoneNumbers"]["member"]), context);
3801
+ contents.PhoneNumbers = deserializeAws_querySMSSandboxPhoneNumberList((0, smithy_client_1.getArrayIfSingleItem)(output["PhoneNumbers"]["member"]), context);
3802
3802
  }
3803
3803
  if (output["NextToken"] !== undefined) {
3804
- contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
3804
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
3805
3805
  }
3806
3806
  return contents;
3807
3807
  };
@@ -3814,10 +3814,10 @@ const deserializeAws_queryListSubscriptionsByTopicResponse = (output, context) =
3814
3814
  contents.Subscriptions = [];
3815
3815
  }
3816
3816
  if (output["Subscriptions"] !== undefined && output["Subscriptions"]["member"] !== undefined) {
3817
- contents.Subscriptions = deserializeAws_querySubscriptionsList(smithy_client_1.getArrayIfSingleItem(output["Subscriptions"]["member"]), context);
3817
+ contents.Subscriptions = deserializeAws_querySubscriptionsList((0, smithy_client_1.getArrayIfSingleItem)(output["Subscriptions"]["member"]), context);
3818
3818
  }
3819
3819
  if (output["NextToken"] !== undefined) {
3820
- contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
3820
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
3821
3821
  }
3822
3822
  return contents;
3823
3823
  };
@@ -3830,10 +3830,10 @@ const deserializeAws_queryListSubscriptionsResponse = (output, context) => {
3830
3830
  contents.Subscriptions = [];
3831
3831
  }
3832
3832
  if (output["Subscriptions"] !== undefined && output["Subscriptions"]["member"] !== undefined) {
3833
- contents.Subscriptions = deserializeAws_querySubscriptionsList(smithy_client_1.getArrayIfSingleItem(output["Subscriptions"]["member"]), context);
3833
+ contents.Subscriptions = deserializeAws_querySubscriptionsList((0, smithy_client_1.getArrayIfSingleItem)(output["Subscriptions"]["member"]), context);
3834
3834
  }
3835
3835
  if (output["NextToken"] !== undefined) {
3836
- contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
3836
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
3837
3837
  }
3838
3838
  return contents;
3839
3839
  };
@@ -3845,7 +3845,7 @@ const deserializeAws_queryListTagsForResourceResponse = (output, context) => {
3845
3845
  contents.Tags = [];
3846
3846
  }
3847
3847
  if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) {
3848
- contents.Tags = deserializeAws_queryTagList(smithy_client_1.getArrayIfSingleItem(output["Tags"]["member"]), context);
3848
+ contents.Tags = deserializeAws_queryTagList((0, smithy_client_1.getArrayIfSingleItem)(output["Tags"]["member"]), context);
3849
3849
  }
3850
3850
  return contents;
3851
3851
  };
@@ -3858,10 +3858,10 @@ const deserializeAws_queryListTopicsResponse = (output, context) => {
3858
3858
  contents.Topics = [];
3859
3859
  }
3860
3860
  if (output["Topics"] !== undefined && output["Topics"]["member"] !== undefined) {
3861
- contents.Topics = deserializeAws_queryTopicsList(smithy_client_1.getArrayIfSingleItem(output["Topics"]["member"]), context);
3861
+ contents.Topics = deserializeAws_queryTopicsList((0, smithy_client_1.getArrayIfSingleItem)(output["Topics"]["member"]), context);
3862
3862
  }
3863
3863
  if (output["NextToken"] !== undefined) {
3864
- contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
3864
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
3865
3865
  }
3866
3866
  return contents;
3867
3867
  };
@@ -3872,7 +3872,7 @@ const deserializeAws_queryMapStringToString = (output, context) => {
3872
3872
  }
3873
3873
  return {
3874
3874
  ...acc,
3875
- [pair["key"]]: smithy_client_1.expectString(pair["value"]),
3875
+ [pair["key"]]: (0, smithy_client_1.expectString)(pair["value"]),
3876
3876
  };
3877
3877
  }, {});
3878
3878
  };
@@ -3881,7 +3881,7 @@ const deserializeAws_queryNotFoundException = (output, context) => {
3881
3881
  message: undefined,
3882
3882
  };
3883
3883
  if (output["message"] !== undefined) {
3884
- contents.message = smithy_client_1.expectString(output["message"]);
3884
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3885
3885
  }
3886
3886
  return contents;
3887
3887
  };
@@ -3892,7 +3892,7 @@ const deserializeAws_queryNumberCapabilityList = (output, context) => {
3892
3892
  if (entry === null) {
3893
3893
  return null;
3894
3894
  }
3895
- return smithy_client_1.expectString(entry);
3895
+ return (0, smithy_client_1.expectString)(entry);
3896
3896
  });
3897
3897
  };
3898
3898
  const deserializeAws_queryOptedOutException = (output, context) => {
@@ -3900,7 +3900,7 @@ const deserializeAws_queryOptedOutException = (output, context) => {
3900
3900
  message: undefined,
3901
3901
  };
3902
3902
  if (output["message"] !== undefined) {
3903
- contents.message = smithy_client_1.expectString(output["message"]);
3903
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3904
3904
  }
3905
3905
  return contents;
3906
3906
  };
@@ -3918,25 +3918,25 @@ const deserializeAws_queryPhoneNumberInformation = (output, context) => {
3918
3918
  NumberCapabilities: undefined,
3919
3919
  };
3920
3920
  if (output["CreatedAt"] !== undefined) {
3921
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["CreatedAt"]));
3921
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["CreatedAt"]));
3922
3922
  }
3923
3923
  if (output["PhoneNumber"] !== undefined) {
3924
- contents.PhoneNumber = smithy_client_1.expectString(output["PhoneNumber"]);
3924
+ contents.PhoneNumber = (0, smithy_client_1.expectString)(output["PhoneNumber"]);
3925
3925
  }
3926
3926
  if (output["Status"] !== undefined) {
3927
- contents.Status = smithy_client_1.expectString(output["Status"]);
3927
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
3928
3928
  }
3929
3929
  if (output["Iso2CountryCode"] !== undefined) {
3930
- contents.Iso2CountryCode = smithy_client_1.expectString(output["Iso2CountryCode"]);
3930
+ contents.Iso2CountryCode = (0, smithy_client_1.expectString)(output["Iso2CountryCode"]);
3931
3931
  }
3932
3932
  if (output["RouteType"] !== undefined) {
3933
- contents.RouteType = smithy_client_1.expectString(output["RouteType"]);
3933
+ contents.RouteType = (0, smithy_client_1.expectString)(output["RouteType"]);
3934
3934
  }
3935
3935
  if (output.NumberCapabilities === "") {
3936
3936
  contents.NumberCapabilities = [];
3937
3937
  }
3938
3938
  if (output["NumberCapabilities"] !== undefined && output["NumberCapabilities"]["member"] !== undefined) {
3939
- contents.NumberCapabilities = deserializeAws_queryNumberCapabilityList(smithy_client_1.getArrayIfSingleItem(output["NumberCapabilities"]["member"]), context);
3939
+ contents.NumberCapabilities = deserializeAws_queryNumberCapabilityList((0, smithy_client_1.getArrayIfSingleItem)(output["NumberCapabilities"]["member"]), context);
3940
3940
  }
3941
3941
  return contents;
3942
3942
  };
@@ -3957,7 +3957,7 @@ const deserializeAws_queryPhoneNumberList = (output, context) => {
3957
3957
  if (entry === null) {
3958
3958
  return null;
3959
3959
  }
3960
- return smithy_client_1.expectString(entry);
3960
+ return (0, smithy_client_1.expectString)(entry);
3961
3961
  });
3962
3962
  };
3963
3963
  const deserializeAws_queryPlatformApplication = (output, context) => {
@@ -3966,13 +3966,13 @@ const deserializeAws_queryPlatformApplication = (output, context) => {
3966
3966
  Attributes: undefined,
3967
3967
  };
3968
3968
  if (output["PlatformApplicationArn"] !== undefined) {
3969
- contents.PlatformApplicationArn = smithy_client_1.expectString(output["PlatformApplicationArn"]);
3969
+ contents.PlatformApplicationArn = (0, smithy_client_1.expectString)(output["PlatformApplicationArn"]);
3970
3970
  }
3971
3971
  if (output.Attributes === "") {
3972
3972
  contents.Attributes = {};
3973
3973
  }
3974
3974
  if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) {
3975
- contents.Attributes = deserializeAws_queryMapStringToString(smithy_client_1.getArrayIfSingleItem(output["Attributes"]["entry"]), context);
3975
+ contents.Attributes = deserializeAws_queryMapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["entry"]), context);
3976
3976
  }
3977
3977
  return contents;
3978
3978
  };
@@ -3981,7 +3981,7 @@ const deserializeAws_queryPlatformApplicationDisabledException = (output, contex
3981
3981
  message: undefined,
3982
3982
  };
3983
3983
  if (output["message"] !== undefined) {
3984
- contents.message = smithy_client_1.expectString(output["message"]);
3984
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
3985
3985
  }
3986
3986
  return contents;
3987
3987
  };
@@ -3994,13 +3994,13 @@ const deserializeAws_queryPublishBatchResponse = (output, context) => {
3994
3994
  contents.Successful = [];
3995
3995
  }
3996
3996
  if (output["Successful"] !== undefined && output["Successful"]["member"] !== undefined) {
3997
- contents.Successful = deserializeAws_queryPublishBatchResultEntryList(smithy_client_1.getArrayIfSingleItem(output["Successful"]["member"]), context);
3997
+ contents.Successful = deserializeAws_queryPublishBatchResultEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["Successful"]["member"]), context);
3998
3998
  }
3999
3999
  if (output.Failed === "") {
4000
4000
  contents.Failed = [];
4001
4001
  }
4002
4002
  if (output["Failed"] !== undefined && output["Failed"]["member"] !== undefined) {
4003
- contents.Failed = deserializeAws_queryBatchResultErrorEntryList(smithy_client_1.getArrayIfSingleItem(output["Failed"]["member"]), context);
4003
+ contents.Failed = deserializeAws_queryBatchResultErrorEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["Failed"]["member"]), context);
4004
4004
  }
4005
4005
  return contents;
4006
4006
  };
@@ -4011,13 +4011,13 @@ const deserializeAws_queryPublishBatchResultEntry = (output, context) => {
4011
4011
  SequenceNumber: undefined,
4012
4012
  };
4013
4013
  if (output["Id"] !== undefined) {
4014
- contents.Id = smithy_client_1.expectString(output["Id"]);
4014
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
4015
4015
  }
4016
4016
  if (output["MessageId"] !== undefined) {
4017
- contents.MessageId = smithy_client_1.expectString(output["MessageId"]);
4017
+ contents.MessageId = (0, smithy_client_1.expectString)(output["MessageId"]);
4018
4018
  }
4019
4019
  if (output["SequenceNumber"] !== undefined) {
4020
- contents.SequenceNumber = smithy_client_1.expectString(output["SequenceNumber"]);
4020
+ contents.SequenceNumber = (0, smithy_client_1.expectString)(output["SequenceNumber"]);
4021
4021
  }
4022
4022
  return contents;
4023
4023
  };
@@ -4037,10 +4037,10 @@ const deserializeAws_queryPublishResponse = (output, context) => {
4037
4037
  SequenceNumber: undefined,
4038
4038
  };
4039
4039
  if (output["MessageId"] !== undefined) {
4040
- contents.MessageId = smithy_client_1.expectString(output["MessageId"]);
4040
+ contents.MessageId = (0, smithy_client_1.expectString)(output["MessageId"]);
4041
4041
  }
4042
4042
  if (output["SequenceNumber"] !== undefined) {
4043
- contents.SequenceNumber = smithy_client_1.expectString(output["SequenceNumber"]);
4043
+ contents.SequenceNumber = (0, smithy_client_1.expectString)(output["SequenceNumber"]);
4044
4044
  }
4045
4045
  return contents;
4046
4046
  };
@@ -4049,7 +4049,7 @@ const deserializeAws_queryResourceNotFoundException = (output, context) => {
4049
4049
  message: undefined,
4050
4050
  };
4051
4051
  if (output["message"] !== undefined) {
4052
- contents.message = smithy_client_1.expectString(output["message"]);
4052
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4053
4053
  }
4054
4054
  return contents;
4055
4055
  };
@@ -4063,10 +4063,10 @@ const deserializeAws_querySMSSandboxPhoneNumber = (output, context) => {
4063
4063
  Status: undefined,
4064
4064
  };
4065
4065
  if (output["PhoneNumber"] !== undefined) {
4066
- contents.PhoneNumber = smithy_client_1.expectString(output["PhoneNumber"]);
4066
+ contents.PhoneNumber = (0, smithy_client_1.expectString)(output["PhoneNumber"]);
4067
4067
  }
4068
4068
  if (output["Status"] !== undefined) {
4069
- contents.Status = smithy_client_1.expectString(output["Status"]);
4069
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
4070
4070
  }
4071
4071
  return contents;
4072
4072
  };
@@ -4085,7 +4085,7 @@ const deserializeAws_queryStaleTagException = (output, context) => {
4085
4085
  message: undefined,
4086
4086
  };
4087
4087
  if (output["message"] !== undefined) {
4088
- contents.message = smithy_client_1.expectString(output["message"]);
4088
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4089
4089
  }
4090
4090
  return contents;
4091
4091
  };
@@ -4094,7 +4094,7 @@ const deserializeAws_querySubscribeResponse = (output, context) => {
4094
4094
  SubscriptionArn: undefined,
4095
4095
  };
4096
4096
  if (output["SubscriptionArn"] !== undefined) {
4097
- contents.SubscriptionArn = smithy_client_1.expectString(output["SubscriptionArn"]);
4097
+ contents.SubscriptionArn = (0, smithy_client_1.expectString)(output["SubscriptionArn"]);
4098
4098
  }
4099
4099
  return contents;
4100
4100
  };
@@ -4107,19 +4107,19 @@ const deserializeAws_querySubscription = (output, context) => {
4107
4107
  TopicArn: undefined,
4108
4108
  };
4109
4109
  if (output["SubscriptionArn"] !== undefined) {
4110
- contents.SubscriptionArn = smithy_client_1.expectString(output["SubscriptionArn"]);
4110
+ contents.SubscriptionArn = (0, smithy_client_1.expectString)(output["SubscriptionArn"]);
4111
4111
  }
4112
4112
  if (output["Owner"] !== undefined) {
4113
- contents.Owner = smithy_client_1.expectString(output["Owner"]);
4113
+ contents.Owner = (0, smithy_client_1.expectString)(output["Owner"]);
4114
4114
  }
4115
4115
  if (output["Protocol"] !== undefined) {
4116
- contents.Protocol = smithy_client_1.expectString(output["Protocol"]);
4116
+ contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]);
4117
4117
  }
4118
4118
  if (output["Endpoint"] !== undefined) {
4119
- contents.Endpoint = smithy_client_1.expectString(output["Endpoint"]);
4119
+ contents.Endpoint = (0, smithy_client_1.expectString)(output["Endpoint"]);
4120
4120
  }
4121
4121
  if (output["TopicArn"] !== undefined) {
4122
- contents.TopicArn = smithy_client_1.expectString(output["TopicArn"]);
4122
+ contents.TopicArn = (0, smithy_client_1.expectString)(output["TopicArn"]);
4123
4123
  }
4124
4124
  return contents;
4125
4125
  };
@@ -4130,7 +4130,7 @@ const deserializeAws_querySubscriptionAttributesMap = (output, context) => {
4130
4130
  }
4131
4131
  return {
4132
4132
  ...acc,
4133
- [pair["key"]]: smithy_client_1.expectString(pair["value"]),
4133
+ [pair["key"]]: (0, smithy_client_1.expectString)(pair["value"]),
4134
4134
  };
4135
4135
  }, {});
4136
4136
  };
@@ -4139,7 +4139,7 @@ const deserializeAws_querySubscriptionLimitExceededException = (output, context)
4139
4139
  message: undefined,
4140
4140
  };
4141
4141
  if (output["message"] !== undefined) {
4142
- contents.message = smithy_client_1.expectString(output["message"]);
4142
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4143
4143
  }
4144
4144
  return contents;
4145
4145
  };
@@ -4159,10 +4159,10 @@ const deserializeAws_queryTag = (output, context) => {
4159
4159
  Value: undefined,
4160
4160
  };
4161
4161
  if (output["Key"] !== undefined) {
4162
- contents.Key = smithy_client_1.expectString(output["Key"]);
4162
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
4163
4163
  }
4164
4164
  if (output["Value"] !== undefined) {
4165
- contents.Value = smithy_client_1.expectString(output["Value"]);
4165
+ contents.Value = (0, smithy_client_1.expectString)(output["Value"]);
4166
4166
  }
4167
4167
  return contents;
4168
4168
  };
@@ -4171,7 +4171,7 @@ const deserializeAws_queryTagLimitExceededException = (output, context) => {
4171
4171
  message: undefined,
4172
4172
  };
4173
4173
  if (output["message"] !== undefined) {
4174
- contents.message = smithy_client_1.expectString(output["message"]);
4174
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4175
4175
  }
4176
4176
  return contents;
4177
4177
  };
@@ -4190,7 +4190,7 @@ const deserializeAws_queryTagPolicyException = (output, context) => {
4190
4190
  message: undefined,
4191
4191
  };
4192
4192
  if (output["message"] !== undefined) {
4193
- contents.message = smithy_client_1.expectString(output["message"]);
4193
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4194
4194
  }
4195
4195
  return contents;
4196
4196
  };
@@ -4203,7 +4203,7 @@ const deserializeAws_queryThrottledException = (output, context) => {
4203
4203
  message: undefined,
4204
4204
  };
4205
4205
  if (output["message"] !== undefined) {
4206
- contents.message = smithy_client_1.expectString(output["message"]);
4206
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4207
4207
  }
4208
4208
  return contents;
4209
4209
  };
@@ -4212,7 +4212,7 @@ const deserializeAws_queryTooManyEntriesInBatchRequestException = (output, conte
4212
4212
  message: undefined,
4213
4213
  };
4214
4214
  if (output["message"] !== undefined) {
4215
- contents.message = smithy_client_1.expectString(output["message"]);
4215
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4216
4216
  }
4217
4217
  return contents;
4218
4218
  };
@@ -4221,7 +4221,7 @@ const deserializeAws_queryTopic = (output, context) => {
4221
4221
  TopicArn: undefined,
4222
4222
  };
4223
4223
  if (output["TopicArn"] !== undefined) {
4224
- contents.TopicArn = smithy_client_1.expectString(output["TopicArn"]);
4224
+ contents.TopicArn = (0, smithy_client_1.expectString)(output["TopicArn"]);
4225
4225
  }
4226
4226
  return contents;
4227
4227
  };
@@ -4232,7 +4232,7 @@ const deserializeAws_queryTopicAttributesMap = (output, context) => {
4232
4232
  }
4233
4233
  return {
4234
4234
  ...acc,
4235
- [pair["key"]]: smithy_client_1.expectString(pair["value"]),
4235
+ [pair["key"]]: (0, smithy_client_1.expectString)(pair["value"]),
4236
4236
  };
4237
4237
  }, {});
4238
4238
  };
@@ -4241,7 +4241,7 @@ const deserializeAws_queryTopicLimitExceededException = (output, context) => {
4241
4241
  message: undefined,
4242
4242
  };
4243
4243
  if (output["message"] !== undefined) {
4244
- contents.message = smithy_client_1.expectString(output["message"]);
4244
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4245
4245
  }
4246
4246
  return contents;
4247
4247
  };
@@ -4264,7 +4264,7 @@ const deserializeAws_queryUserErrorException = (output, context) => {
4264
4264
  message: undefined,
4265
4265
  };
4266
4266
  if (output["message"] !== undefined) {
4267
- contents.message = smithy_client_1.expectString(output["message"]);
4267
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
4268
4268
  }
4269
4269
  return contents;
4270
4270
  };
@@ -4273,7 +4273,7 @@ const deserializeAws_queryValidationException = (output, context) => {
4273
4273
  Message: undefined,
4274
4274
  };
4275
4275
  if (output["Message"] !== undefined) {
4276
- contents.Message = smithy_client_1.expectString(output["Message"]);
4276
+ contents.Message = (0, smithy_client_1.expectString)(output["Message"]);
4277
4277
  }
4278
4278
  return contents;
4279
4279
  };
@@ -4283,10 +4283,10 @@ const deserializeAws_queryVerificationException = (output, context) => {
4283
4283
  Status: undefined,
4284
4284
  };
4285
4285
  if (output["Message"] !== undefined) {
4286
- contents.Message = smithy_client_1.expectString(output["Message"]);
4286
+ contents.Message = (0, smithy_client_1.expectString)(output["Message"]);
4287
4287
  }
4288
4288
  if (output["Status"] !== undefined) {
4289
- contents.Status = smithy_client_1.expectString(output["Status"]);
4289
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
4290
4290
  }
4291
4291
  return contents;
4292
4292
  };
@@ -4330,12 +4330,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
4330
4330
  };
4331
4331
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4332
4332
  if (encoded.length) {
4333
- const parsedObj = fast_xml_parser_1.parse(encoded, {
4333
+ const parsedObj = (0, fast_xml_parser_1.parse)(encoded, {
4334
4334
  attributeNamePrefix: "",
4335
4335
  ignoreAttributes: false,
4336
4336
  parseNodeValue: false,
4337
4337
  trimValues: false,
4338
- tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : entities_1.decodeHTML(val)),
4338
+ tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)),
4339
4339
  });
4340
4340
  const textNodeName = "#text";
4341
4341
  const key = Object.keys(parsedObj)[0];
@@ -4344,12 +4344,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4344
4344
  parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
4345
4345
  delete parsedObjToReturn[textNodeName];
4346
4346
  }
4347
- return smithy_client_1.getValueFromTextNode(parsedObjToReturn);
4347
+ return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn);
4348
4348
  }
4349
4349
  return {};
4350
4350
  });
4351
4351
  const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
4352
- .map(([key, value]) => smithy_client_1.extendedEncodeURIComponent(key) + "=" + smithy_client_1.extendedEncodeURIComponent(value))
4352
+ .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
4353
4353
  .join("&");
4354
4354
  const loadQueryErrorCode = (output, data) => {
4355
4355
  if (data.Error.Code !== undefined) {