@aws-sdk/client-internetmonitor 3.1076.0 → 3.1078.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 (68) hide show
  1. package/dist-cjs/index.js +27 -165
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateMonitorCommand.js +2 -14
  4. package/dist-es/commands/DeleteMonitorCommand.js +2 -14
  5. package/dist-es/commands/GetHealthEventCommand.js +2 -14
  6. package/dist-es/commands/GetInternetEventCommand.js +2 -14
  7. package/dist-es/commands/GetMonitorCommand.js +2 -14
  8. package/dist-es/commands/GetQueryResultsCommand.js +2 -14
  9. package/dist-es/commands/GetQueryStatusCommand.js +2 -14
  10. package/dist-es/commands/ListHealthEventsCommand.js +2 -14
  11. package/dist-es/commands/ListInternetEventsCommand.js +2 -14
  12. package/dist-es/commands/ListMonitorsCommand.js +2 -14
  13. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  14. package/dist-es/commands/StartQueryCommand.js +2 -14
  15. package/dist-es/commands/StopQueryCommand.js +2 -14
  16. package/dist-es/commands/TagResourceCommand.js +2 -14
  17. package/dist-es/commands/UntagResourceCommand.js +2 -14
  18. package/dist-es/commands/UpdateMonitorCommand.js +2 -14
  19. package/dist-es/index.js +1 -0
  20. package/dist-es/runtimeConfig.browser.js +0 -2
  21. package/dist-es/runtimeConfig.js +1 -2
  22. package/dist-es/runtimeConfig.native.js +0 -2
  23. package/dist-es/runtimeConfig.shared.js +2 -0
  24. package/dist-types/commandBuilder.d.ts +18 -0
  25. package/dist-types/commands/CreateMonitorCommand.d.ts +3 -8
  26. package/dist-types/commands/DeleteMonitorCommand.d.ts +3 -8
  27. package/dist-types/commands/GetHealthEventCommand.d.ts +3 -8
  28. package/dist-types/commands/GetInternetEventCommand.d.ts +3 -8
  29. package/dist-types/commands/GetMonitorCommand.d.ts +3 -8
  30. package/dist-types/commands/GetQueryResultsCommand.d.ts +3 -8
  31. package/dist-types/commands/GetQueryStatusCommand.d.ts +3 -8
  32. package/dist-types/commands/ListHealthEventsCommand.d.ts +3 -8
  33. package/dist-types/commands/ListInternetEventsCommand.d.ts +3 -8
  34. package/dist-types/commands/ListMonitorsCommand.d.ts +3 -8
  35. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/StartQueryCommand.d.ts +3 -8
  37. package/dist-types/commands/StopQueryCommand.d.ts +3 -8
  38. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  39. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  40. package/dist-types/commands/UpdateMonitorCommand.d.ts +3 -8
  41. package/dist-types/index.d.ts +1 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  43. package/dist-types/runtimeConfig.d.ts +1 -1
  44. package/dist-types/runtimeConfig.native.d.ts +1 -1
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  47. package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/GetHealthEventCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/GetInternetEventCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/GetMonitorCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/GetQueryStatusCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListHealthEventsCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/ListInternetEventsCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/UpdateMonitorCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/index.d.ts +1 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  67. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  68. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultInternetMonitorHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -864,6 +866,7 @@ const getRuntimeConfig$1 = (config) => {
864
866
  serviceTarget: "InternetMonitor20210603",
865
867
  },
866
868
  serviceId: config?.serviceId ?? "InternetMonitor",
869
+ sha256: config?.sha256 ?? Sha256,
867
870
  urlParser: config?.urlParser ?? parseUrl,
868
871
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
869
872
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -897,7 +900,6 @@ const getRuntimeConfig = (config) => {
897
900
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
898
901
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
899
902
  }, config),
900
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
901
903
  streamCollector: config?.streamCollector ?? streamCollector,
902
904
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
903
905
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -985,196 +987,56 @@ class InternetMonitorClient extends Client {
985
987
  }
986
988
  }
987
989
 
988
- class CreateMonitorCommand extends Command
989
- .classBuilder()
990
- .ep(commonParams)
991
- .m(function (Command, cs, config, o) {
992
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
993
- })
994
- .s("InternetMonitor20210603", "CreateMonitor", {})
995
- .n("InternetMonitorClient", "CreateMonitorCommand")
996
- .sc(CreateMonitor$)
997
- .build() {
990
+ const command = makeBuilder(commonParams, "InternetMonitor20210603", "InternetMonitorClient", getEndpointPlugin);
991
+ const _ep0 = {};
992
+ const _mw0 = (Command, cs, config, o) => [];
993
+
994
+ class CreateMonitorCommand extends command(_ep0, _mw0, "CreateMonitor", CreateMonitor$) {
998
995
  }
999
996
 
1000
- class DeleteMonitorCommand extends Command
1001
- .classBuilder()
1002
- .ep(commonParams)
1003
- .m(function (Command, cs, config, o) {
1004
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1005
- })
1006
- .s("InternetMonitor20210603", "DeleteMonitor", {})
1007
- .n("InternetMonitorClient", "DeleteMonitorCommand")
1008
- .sc(DeleteMonitor$)
1009
- .build() {
997
+ class DeleteMonitorCommand extends command(_ep0, _mw0, "DeleteMonitor", DeleteMonitor$) {
1010
998
  }
1011
999
 
1012
- class GetHealthEventCommand extends Command
1013
- .classBuilder()
1014
- .ep(commonParams)
1015
- .m(function (Command, cs, config, o) {
1016
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1017
- })
1018
- .s("InternetMonitor20210603", "GetHealthEvent", {})
1019
- .n("InternetMonitorClient", "GetHealthEventCommand")
1020
- .sc(GetHealthEvent$)
1021
- .build() {
1000
+ class GetHealthEventCommand extends command(_ep0, _mw0, "GetHealthEvent", GetHealthEvent$) {
1022
1001
  }
1023
1002
 
1024
- class GetInternetEventCommand extends Command
1025
- .classBuilder()
1026
- .ep(commonParams)
1027
- .m(function (Command, cs, config, o) {
1028
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1029
- })
1030
- .s("InternetMonitor20210603", "GetInternetEvent", {})
1031
- .n("InternetMonitorClient", "GetInternetEventCommand")
1032
- .sc(GetInternetEvent$)
1033
- .build() {
1003
+ class GetInternetEventCommand extends command(_ep0, _mw0, "GetInternetEvent", GetInternetEvent$) {
1034
1004
  }
1035
1005
 
1036
- class GetMonitorCommand extends Command
1037
- .classBuilder()
1038
- .ep(commonParams)
1039
- .m(function (Command, cs, config, o) {
1040
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1041
- })
1042
- .s("InternetMonitor20210603", "GetMonitor", {})
1043
- .n("InternetMonitorClient", "GetMonitorCommand")
1044
- .sc(GetMonitor$)
1045
- .build() {
1006
+ class GetMonitorCommand extends command(_ep0, _mw0, "GetMonitor", GetMonitor$) {
1046
1007
  }
1047
1008
 
1048
- class GetQueryResultsCommand extends Command
1049
- .classBuilder()
1050
- .ep(commonParams)
1051
- .m(function (Command, cs, config, o) {
1052
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1053
- })
1054
- .s("InternetMonitor20210603", "GetQueryResults", {})
1055
- .n("InternetMonitorClient", "GetQueryResultsCommand")
1056
- .sc(GetQueryResults$)
1057
- .build() {
1009
+ class GetQueryResultsCommand extends command(_ep0, _mw0, "GetQueryResults", GetQueryResults$) {
1058
1010
  }
1059
1011
 
1060
- class GetQueryStatusCommand extends Command
1061
- .classBuilder()
1062
- .ep(commonParams)
1063
- .m(function (Command, cs, config, o) {
1064
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1065
- })
1066
- .s("InternetMonitor20210603", "GetQueryStatus", {})
1067
- .n("InternetMonitorClient", "GetQueryStatusCommand")
1068
- .sc(GetQueryStatus$)
1069
- .build() {
1012
+ class GetQueryStatusCommand extends command(_ep0, _mw0, "GetQueryStatus", GetQueryStatus$) {
1070
1013
  }
1071
1014
 
1072
- class ListHealthEventsCommand extends Command
1073
- .classBuilder()
1074
- .ep(commonParams)
1075
- .m(function (Command, cs, config, o) {
1076
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1077
- })
1078
- .s("InternetMonitor20210603", "ListHealthEvents", {})
1079
- .n("InternetMonitorClient", "ListHealthEventsCommand")
1080
- .sc(ListHealthEvents$)
1081
- .build() {
1015
+ class ListHealthEventsCommand extends command(_ep0, _mw0, "ListHealthEvents", ListHealthEvents$) {
1082
1016
  }
1083
1017
 
1084
- class ListInternetEventsCommand extends Command
1085
- .classBuilder()
1086
- .ep(commonParams)
1087
- .m(function (Command, cs, config, o) {
1088
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1089
- })
1090
- .s("InternetMonitor20210603", "ListInternetEvents", {})
1091
- .n("InternetMonitorClient", "ListInternetEventsCommand")
1092
- .sc(ListInternetEvents$)
1093
- .build() {
1018
+ class ListInternetEventsCommand extends command(_ep0, _mw0, "ListInternetEvents", ListInternetEvents$) {
1094
1019
  }
1095
1020
 
1096
- class ListMonitorsCommand extends Command
1097
- .classBuilder()
1098
- .ep(commonParams)
1099
- .m(function (Command, cs, config, o) {
1100
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1101
- })
1102
- .s("InternetMonitor20210603", "ListMonitors", {})
1103
- .n("InternetMonitorClient", "ListMonitorsCommand")
1104
- .sc(ListMonitors$)
1105
- .build() {
1021
+ class ListMonitorsCommand extends command(_ep0, _mw0, "ListMonitors", ListMonitors$) {
1106
1022
  }
1107
1023
 
1108
- class ListTagsForResourceCommand extends Command
1109
- .classBuilder()
1110
- .ep(commonParams)
1111
- .m(function (Command, cs, config, o) {
1112
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1113
- })
1114
- .s("InternetMonitor20210603", "ListTagsForResource", {})
1115
- .n("InternetMonitorClient", "ListTagsForResourceCommand")
1116
- .sc(ListTagsForResource$)
1117
- .build() {
1024
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1118
1025
  }
1119
1026
 
1120
- class StartQueryCommand extends Command
1121
- .classBuilder()
1122
- .ep(commonParams)
1123
- .m(function (Command, cs, config, o) {
1124
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1125
- })
1126
- .s("InternetMonitor20210603", "StartQuery", {})
1127
- .n("InternetMonitorClient", "StartQueryCommand")
1128
- .sc(StartQuery$)
1129
- .build() {
1027
+ class StartQueryCommand extends command(_ep0, _mw0, "StartQuery", StartQuery$) {
1130
1028
  }
1131
1029
 
1132
- class StopQueryCommand extends Command
1133
- .classBuilder()
1134
- .ep(commonParams)
1135
- .m(function (Command, cs, config, o) {
1136
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1137
- })
1138
- .s("InternetMonitor20210603", "StopQuery", {})
1139
- .n("InternetMonitorClient", "StopQueryCommand")
1140
- .sc(StopQuery$)
1141
- .build() {
1030
+ class StopQueryCommand extends command(_ep0, _mw0, "StopQuery", StopQuery$) {
1142
1031
  }
1143
1032
 
1144
- class TagResourceCommand extends Command
1145
- .classBuilder()
1146
- .ep(commonParams)
1147
- .m(function (Command, cs, config, o) {
1148
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1149
- })
1150
- .s("InternetMonitor20210603", "TagResource", {})
1151
- .n("InternetMonitorClient", "TagResourceCommand")
1152
- .sc(TagResource$)
1153
- .build() {
1033
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1154
1034
  }
1155
1035
 
1156
- class UntagResourceCommand extends Command
1157
- .classBuilder()
1158
- .ep(commonParams)
1159
- .m(function (Command, cs, config, o) {
1160
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1161
- })
1162
- .s("InternetMonitor20210603", "UntagResource", {})
1163
- .n("InternetMonitorClient", "UntagResourceCommand")
1164
- .sc(UntagResource$)
1165
- .build() {
1036
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1166
1037
  }
1167
1038
 
1168
- class UpdateMonitorCommand extends Command
1169
- .classBuilder()
1170
- .ep(commonParams)
1171
- .m(function (Command, cs, config, o) {
1172
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1173
- })
1174
- .s("InternetMonitor20210603", "UpdateMonitor", {})
1175
- .n("InternetMonitorClient", "UpdateMonitorCommand")
1176
- .sc(UpdateMonitor$)
1177
- .build() {
1039
+ class UpdateMonitorCommand extends command(_ep0, _mw0, "UpdateMonitor", UpdateMonitor$) {
1178
1040
  }
1179
1041
 
1180
1042
  const paginateGetQueryResults = createPaginator(InternetMonitorClient, GetQueryResultsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "InternetMonitor20210603", "InternetMonitorClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "CreateMonitor", {})
13
- .n("InternetMonitorClient", "CreateMonitorCommand")
14
- .sc(CreateMonitor$)
15
- .build() {
3
+ export class CreateMonitorCommand extends command(_ep0, _mw0, "CreateMonitor", CreateMonitor$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "DeleteMonitor", {})
13
- .n("InternetMonitorClient", "DeleteMonitorCommand")
14
- .sc(DeleteMonitor$)
15
- .build() {
3
+ export class DeleteMonitorCommand extends command(_ep0, _mw0, "DeleteMonitor", DeleteMonitor$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetHealthEvent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetHealthEventCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "GetHealthEvent", {})
13
- .n("InternetMonitorClient", "GetHealthEventCommand")
14
- .sc(GetHealthEvent$)
15
- .build() {
3
+ export class GetHealthEventCommand extends command(_ep0, _mw0, "GetHealthEvent", GetHealthEvent$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetInternetEvent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetInternetEventCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "GetInternetEvent", {})
13
- .n("InternetMonitorClient", "GetInternetEventCommand")
14
- .sc(GetInternetEvent$)
15
- .build() {
3
+ export class GetInternetEventCommand extends command(_ep0, _mw0, "GetInternetEvent", GetInternetEvent$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "GetMonitor", {})
13
- .n("InternetMonitorClient", "GetMonitorCommand")
14
- .sc(GetMonitor$)
15
- .build() {
3
+ export class GetMonitorCommand extends command(_ep0, _mw0, "GetMonitor", GetMonitor$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetQueryResults$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetQueryResultsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "GetQueryResults", {})
13
- .n("InternetMonitorClient", "GetQueryResultsCommand")
14
- .sc(GetQueryResults$)
15
- .build() {
3
+ export class GetQueryResultsCommand extends command(_ep0, _mw0, "GetQueryResults", GetQueryResults$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetQueryStatus$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetQueryStatusCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "GetQueryStatus", {})
13
- .n("InternetMonitorClient", "GetQueryStatusCommand")
14
- .sc(GetQueryStatus$)
15
- .build() {
3
+ export class GetQueryStatusCommand extends command(_ep0, _mw0, "GetQueryStatus", GetQueryStatus$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListHealthEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListHealthEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "ListHealthEvents", {})
13
- .n("InternetMonitorClient", "ListHealthEventsCommand")
14
- .sc(ListHealthEvents$)
15
- .build() {
3
+ export class ListHealthEventsCommand extends command(_ep0, _mw0, "ListHealthEvents", ListHealthEvents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListInternetEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListInternetEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "ListInternetEvents", {})
13
- .n("InternetMonitorClient", "ListInternetEventsCommand")
14
- .sc(ListInternetEvents$)
15
- .build() {
3
+ export class ListInternetEventsCommand extends command(_ep0, _mw0, "ListInternetEvents", ListInternetEvents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListMonitors$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListMonitorsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "ListMonitors", {})
13
- .n("InternetMonitorClient", "ListMonitorsCommand")
14
- .sc(ListMonitors$)
15
- .build() {
3
+ export class ListMonitorsCommand extends command(_ep0, _mw0, "ListMonitors", ListMonitors$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "ListTagsForResource", {})
13
- .n("InternetMonitorClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StartQuery$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartQueryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "StartQuery", {})
13
- .n("InternetMonitorClient", "StartQueryCommand")
14
- .sc(StartQuery$)
15
- .build() {
3
+ export class StartQueryCommand extends command(_ep0, _mw0, "StartQuery", StartQuery$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StopQuery$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopQueryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "StopQuery", {})
13
- .n("InternetMonitorClient", "StopQueryCommand")
14
- .sc(StopQuery$)
15
- .build() {
3
+ export class StopQueryCommand extends command(_ep0, _mw0, "StopQuery", StopQuery$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "TagResource", {})
13
- .n("InternetMonitorClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "UntagResource", {})
13
- .n("InternetMonitorClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InternetMonitor20210603", "UpdateMonitor", {})
13
- .n("InternetMonitorClient", "UpdateMonitorCommand")
14
- .sc(UpdateMonitor$)
15
- .build() {
3
+ export class UpdateMonitorCommand extends command(_ep0, _mw0, "UpdateMonitor", UpdateMonitor$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./InternetMonitorClient";
2
2
  export * from "./InternetMonitor";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };