@aws-sdk/client-networkmonitor 3.721.0 → 3.726.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -148,7 +148,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
148
148
  }, "resolveRuntimeExtensions");
149
149
 
150
150
  // src/NetworkMonitorClient.ts
151
- var _NetworkMonitorClient = class _NetworkMonitorClient extends import_smithy_client.Client {
151
+ var NetworkMonitorClient = class extends import_smithy_client.Client {
152
+ static {
153
+ __name(this, "NetworkMonitorClient");
154
+ }
155
+ /**
156
+ * The resolved configuration of NetworkMonitorClient class. This is resolved and normalized from the {@link NetworkMonitorClientConfig | constructor configuration interface}.
157
+ */
158
+ config;
152
159
  constructor(...[configuration]) {
153
160
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
154
161
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -158,7 +165,7 @@ var _NetworkMonitorClient = class _NetworkMonitorClient extends import_smithy_cl
158
165
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
159
166
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
160
167
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
161
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
168
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
162
169
  super(_config_8);
163
170
  this.config = _config_8;
164
171
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -186,8 +193,6 @@ var _NetworkMonitorClient = class _NetworkMonitorClient extends import_smithy_cl
186
193
  super.destroy();
187
194
  }
188
195
  };
189
- __name(_NetworkMonitorClient, "NetworkMonitorClient");
190
- var NetworkMonitorClient = _NetworkMonitorClient;
191
196
 
192
197
  // src/NetworkMonitor.ts
193
198
 
@@ -205,7 +210,10 @@ var import_uuid = require("uuid");
205
210
 
206
211
  // src/models/NetworkMonitorServiceException.ts
207
212
 
208
- var _NetworkMonitorServiceException = class _NetworkMonitorServiceException extends import_smithy_client.ServiceException {
213
+ var NetworkMonitorServiceException = class _NetworkMonitorServiceException extends import_smithy_client.ServiceException {
214
+ static {
215
+ __name(this, "NetworkMonitorServiceException");
216
+ }
209
217
  /**
210
218
  * @internal
211
219
  */
@@ -214,11 +222,14 @@ var _NetworkMonitorServiceException = class _NetworkMonitorServiceException exte
214
222
  Object.setPrototypeOf(this, _NetworkMonitorServiceException.prototype);
215
223
  }
216
224
  };
217
- __name(_NetworkMonitorServiceException, "NetworkMonitorServiceException");
218
- var NetworkMonitorServiceException = _NetworkMonitorServiceException;
219
225
 
220
226
  // src/models/models_0.ts
221
- var _AccessDeniedException = class _AccessDeniedException extends NetworkMonitorServiceException {
227
+ var AccessDeniedException = class _AccessDeniedException extends NetworkMonitorServiceException {
228
+ static {
229
+ __name(this, "AccessDeniedException");
230
+ }
231
+ name = "AccessDeniedException";
232
+ $fault = "client";
222
233
  /**
223
234
  * @internal
224
235
  */
@@ -228,18 +239,19 @@ var _AccessDeniedException = class _AccessDeniedException extends NetworkMonitor
228
239
  $fault: "client",
229
240
  ...opts
230
241
  });
231
- this.name = "AccessDeniedException";
232
- this.$fault = "client";
233
242
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
234
243
  }
235
244
  };
236
- __name(_AccessDeniedException, "AccessDeniedException");
237
- var AccessDeniedException = _AccessDeniedException;
238
245
  var AddressFamily = {
239
246
  IPV4: "IPV4",
240
247
  IPV6: "IPV6"
241
248
  };
242
- var _ConflictException = class _ConflictException extends NetworkMonitorServiceException {
249
+ var ConflictException = class _ConflictException extends NetworkMonitorServiceException {
250
+ static {
251
+ __name(this, "ConflictException");
252
+ }
253
+ name = "ConflictException";
254
+ $fault = "client";
243
255
  /**
244
256
  * @internal
245
257
  */
@@ -249,13 +261,9 @@ var _ConflictException = class _ConflictException extends NetworkMonitorServiceE
249
261
  $fault: "client",
250
262
  ...opts
251
263
  });
252
- this.name = "ConflictException";
253
- this.$fault = "client";
254
264
  Object.setPrototypeOf(this, _ConflictException.prototype);
255
265
  }
256
266
  };
257
- __name(_ConflictException, "ConflictException");
258
- var ConflictException = _ConflictException;
259
267
  var Protocol = {
260
268
  ICMP: "ICMP",
261
269
  TCP: "TCP"
@@ -267,7 +275,13 @@ var MonitorState = {
267
275
  INACTIVE: "INACTIVE",
268
276
  PENDING: "PENDING"
269
277
  };
270
- var _InternalServerException = class _InternalServerException extends NetworkMonitorServiceException {
278
+ var InternalServerException = class _InternalServerException extends NetworkMonitorServiceException {
279
+ static {
280
+ __name(this, "InternalServerException");
281
+ }
282
+ name = "InternalServerException";
283
+ $fault = "server";
284
+ $retryable = {};
271
285
  /**
272
286
  * @internal
273
287
  */
@@ -277,15 +291,15 @@ var _InternalServerException = class _InternalServerException extends NetworkMon
277
291
  $fault: "server",
278
292
  ...opts
279
293
  });
280
- this.name = "InternalServerException";
281
- this.$fault = "server";
282
- this.$retryable = {};
283
294
  Object.setPrototypeOf(this, _InternalServerException.prototype);
284
295
  }
285
296
  };
286
- __name(_InternalServerException, "InternalServerException");
287
- var InternalServerException = _InternalServerException;
288
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NetworkMonitorServiceException {
297
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NetworkMonitorServiceException {
298
+ static {
299
+ __name(this, "ServiceQuotaExceededException");
300
+ }
301
+ name = "ServiceQuotaExceededException";
302
+ $fault = "client";
289
303
  /**
290
304
  * @internal
291
305
  */
@@ -295,14 +309,18 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
295
309
  $fault: "client",
296
310
  ...opts
297
311
  });
298
- this.name = "ServiceQuotaExceededException";
299
- this.$fault = "client";
300
312
  Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
301
313
  }
302
314
  };
303
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
304
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
305
- var _ThrottlingException = class _ThrottlingException extends NetworkMonitorServiceException {
315
+ var ThrottlingException = class _ThrottlingException extends NetworkMonitorServiceException {
316
+ static {
317
+ __name(this, "ThrottlingException");
318
+ }
319
+ name = "ThrottlingException";
320
+ $fault = "client";
321
+ $retryable = {
322
+ throttling: true
323
+ };
306
324
  /**
307
325
  * @internal
308
326
  */
@@ -312,17 +330,15 @@ var _ThrottlingException = class _ThrottlingException extends NetworkMonitorServ
312
330
  $fault: "client",
313
331
  ...opts
314
332
  });
315
- this.name = "ThrottlingException";
316
- this.$fault = "client";
317
- this.$retryable = {
318
- throttling: true
319
- };
320
333
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
321
334
  }
322
335
  };
323
- __name(_ThrottlingException, "ThrottlingException");
324
- var ThrottlingException = _ThrottlingException;
325
- var _ValidationException = class _ValidationException extends NetworkMonitorServiceException {
336
+ var ValidationException = class _ValidationException extends NetworkMonitorServiceException {
337
+ static {
338
+ __name(this, "ValidationException");
339
+ }
340
+ name = "ValidationException";
341
+ $fault = "client";
326
342
  /**
327
343
  * @internal
328
344
  */
@@ -332,13 +348,9 @@ var _ValidationException = class _ValidationException extends NetworkMonitorServ
332
348
  $fault: "client",
333
349
  ...opts
334
350
  });
335
- this.name = "ValidationException";
336
- this.$fault = "client";
337
351
  Object.setPrototypeOf(this, _ValidationException.prototype);
338
352
  }
339
353
  };
340
- __name(_ValidationException, "ValidationException");
341
- var ValidationException = _ValidationException;
342
354
  var ProbeState = {
343
355
  ACTIVE: "ACTIVE",
344
356
  DELETED: "DELETED",
@@ -347,7 +359,12 @@ var ProbeState = {
347
359
  INACTIVE: "INACTIVE",
348
360
  PENDING: "PENDING"
349
361
  };
350
- var _ResourceNotFoundException = class _ResourceNotFoundException extends NetworkMonitorServiceException {
362
+ var ResourceNotFoundException = class _ResourceNotFoundException extends NetworkMonitorServiceException {
363
+ static {
364
+ __name(this, "ResourceNotFoundException");
365
+ }
366
+ name = "ResourceNotFoundException";
367
+ $fault = "client";
351
368
  /**
352
369
  * @internal
353
370
  */
@@ -357,13 +374,9 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Networ
357
374
  $fault: "client",
358
375
  ...opts
359
376
  });
360
- this.name = "ResourceNotFoundException";
361
- this.$fault = "client";
362
377
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
363
378
  }
364
379
  };
365
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
366
- var ResourceNotFoundException = _ResourceNotFoundException;
367
380
 
368
381
  // src/protocols/Aws_restJson1.ts
369
382
  var se_CreateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -896,169 +909,181 @@ var _s = "state";
896
909
  var _tK = "tagKeys";
897
910
 
898
911
  // src/commands/CreateMonitorCommand.ts
899
- var _CreateMonitorCommand = class _CreateMonitorCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
912
+ var CreateMonitorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
900
913
  return [
901
914
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
902
915
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
903
916
  ];
904
917
  }).s("NetworkMonitor", "CreateMonitor", {}).n("NetworkMonitorClient", "CreateMonitorCommand").f(void 0, void 0).ser(se_CreateMonitorCommand).de(de_CreateMonitorCommand).build() {
918
+ static {
919
+ __name(this, "CreateMonitorCommand");
920
+ }
905
921
  };
906
- __name(_CreateMonitorCommand, "CreateMonitorCommand");
907
- var CreateMonitorCommand = _CreateMonitorCommand;
908
922
 
909
923
  // src/commands/CreateProbeCommand.ts
910
924
 
911
925
 
912
926
 
913
- var _CreateProbeCommand = class _CreateProbeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
927
+ var CreateProbeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
914
928
  return [
915
929
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
916
930
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
917
931
  ];
918
932
  }).s("NetworkMonitor", "CreateProbe", {}).n("NetworkMonitorClient", "CreateProbeCommand").f(void 0, void 0).ser(se_CreateProbeCommand).de(de_CreateProbeCommand).build() {
933
+ static {
934
+ __name(this, "CreateProbeCommand");
935
+ }
919
936
  };
920
- __name(_CreateProbeCommand, "CreateProbeCommand");
921
- var CreateProbeCommand = _CreateProbeCommand;
922
937
 
923
938
  // src/commands/DeleteMonitorCommand.ts
924
939
 
925
940
 
926
941
 
927
- var _DeleteMonitorCommand = class _DeleteMonitorCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
942
+ var DeleteMonitorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
928
943
  return [
929
944
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
930
945
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
931
946
  ];
932
947
  }).s("NetworkMonitor", "DeleteMonitor", {}).n("NetworkMonitorClient", "DeleteMonitorCommand").f(void 0, void 0).ser(se_DeleteMonitorCommand).de(de_DeleteMonitorCommand).build() {
948
+ static {
949
+ __name(this, "DeleteMonitorCommand");
950
+ }
933
951
  };
934
- __name(_DeleteMonitorCommand, "DeleteMonitorCommand");
935
- var DeleteMonitorCommand = _DeleteMonitorCommand;
936
952
 
937
953
  // src/commands/DeleteProbeCommand.ts
938
954
 
939
955
 
940
956
 
941
- var _DeleteProbeCommand = class _DeleteProbeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
957
+ var DeleteProbeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
942
958
  return [
943
959
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
944
960
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
945
961
  ];
946
962
  }).s("NetworkMonitor", "DeleteProbe", {}).n("NetworkMonitorClient", "DeleteProbeCommand").f(void 0, void 0).ser(se_DeleteProbeCommand).de(de_DeleteProbeCommand).build() {
963
+ static {
964
+ __name(this, "DeleteProbeCommand");
965
+ }
947
966
  };
948
- __name(_DeleteProbeCommand, "DeleteProbeCommand");
949
- var DeleteProbeCommand = _DeleteProbeCommand;
950
967
 
951
968
  // src/commands/GetMonitorCommand.ts
952
969
 
953
970
 
954
971
 
955
- var _GetMonitorCommand = class _GetMonitorCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
972
+ var GetMonitorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
956
973
  return [
957
974
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
958
975
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
959
976
  ];
960
977
  }).s("NetworkMonitor", "GetMonitor", {}).n("NetworkMonitorClient", "GetMonitorCommand").f(void 0, void 0).ser(se_GetMonitorCommand).de(de_GetMonitorCommand).build() {
978
+ static {
979
+ __name(this, "GetMonitorCommand");
980
+ }
961
981
  };
962
- __name(_GetMonitorCommand, "GetMonitorCommand");
963
- var GetMonitorCommand = _GetMonitorCommand;
964
982
 
965
983
  // src/commands/GetProbeCommand.ts
966
984
 
967
985
 
968
986
 
969
- var _GetProbeCommand = class _GetProbeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
987
+ var GetProbeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
970
988
  return [
971
989
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
972
990
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
973
991
  ];
974
992
  }).s("NetworkMonitor", "GetProbe", {}).n("NetworkMonitorClient", "GetProbeCommand").f(void 0, void 0).ser(se_GetProbeCommand).de(de_GetProbeCommand).build() {
993
+ static {
994
+ __name(this, "GetProbeCommand");
995
+ }
975
996
  };
976
- __name(_GetProbeCommand, "GetProbeCommand");
977
- var GetProbeCommand = _GetProbeCommand;
978
997
 
979
998
  // src/commands/ListMonitorsCommand.ts
980
999
 
981
1000
 
982
1001
 
983
- var _ListMonitorsCommand = class _ListMonitorsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1002
+ var ListMonitorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
984
1003
  return [
985
1004
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
986
1005
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
987
1006
  ];
988
1007
  }).s("NetworkMonitor", "ListMonitors", {}).n("NetworkMonitorClient", "ListMonitorsCommand").f(void 0, void 0).ser(se_ListMonitorsCommand).de(de_ListMonitorsCommand).build() {
1008
+ static {
1009
+ __name(this, "ListMonitorsCommand");
1010
+ }
989
1011
  };
990
- __name(_ListMonitorsCommand, "ListMonitorsCommand");
991
- var ListMonitorsCommand = _ListMonitorsCommand;
992
1012
 
993
1013
  // src/commands/ListTagsForResourceCommand.ts
994
1014
 
995
1015
 
996
1016
 
997
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1017
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
998
1018
  return [
999
1019
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1000
1020
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1001
1021
  ];
1002
1022
  }).s("NetworkMonitor", "ListTagsForResource", {}).n("NetworkMonitorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1023
+ static {
1024
+ __name(this, "ListTagsForResourceCommand");
1025
+ }
1003
1026
  };
1004
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1005
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1006
1027
 
1007
1028
  // src/commands/TagResourceCommand.ts
1008
1029
 
1009
1030
 
1010
1031
 
1011
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1032
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1012
1033
  return [
1013
1034
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1014
1035
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1015
1036
  ];
1016
1037
  }).s("NetworkMonitor", "TagResource", {}).n("NetworkMonitorClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1038
+ static {
1039
+ __name(this, "TagResourceCommand");
1040
+ }
1017
1041
  };
1018
- __name(_TagResourceCommand, "TagResourceCommand");
1019
- var TagResourceCommand = _TagResourceCommand;
1020
1042
 
1021
1043
  // src/commands/UntagResourceCommand.ts
1022
1044
 
1023
1045
 
1024
1046
 
1025
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1047
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1026
1048
  return [
1027
1049
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1028
1050
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1029
1051
  ];
1030
1052
  }).s("NetworkMonitor", "UntagResource", {}).n("NetworkMonitorClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1053
+ static {
1054
+ __name(this, "UntagResourceCommand");
1055
+ }
1031
1056
  };
1032
- __name(_UntagResourceCommand, "UntagResourceCommand");
1033
- var UntagResourceCommand = _UntagResourceCommand;
1034
1057
 
1035
1058
  // src/commands/UpdateMonitorCommand.ts
1036
1059
 
1037
1060
 
1038
1061
 
1039
- var _UpdateMonitorCommand = class _UpdateMonitorCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1062
+ var UpdateMonitorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1040
1063
  return [
1041
1064
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1042
1065
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1043
1066
  ];
1044
1067
  }).s("NetworkMonitor", "UpdateMonitor", {}).n("NetworkMonitorClient", "UpdateMonitorCommand").f(void 0, void 0).ser(se_UpdateMonitorCommand).de(de_UpdateMonitorCommand).build() {
1068
+ static {
1069
+ __name(this, "UpdateMonitorCommand");
1070
+ }
1045
1071
  };
1046
- __name(_UpdateMonitorCommand, "UpdateMonitorCommand");
1047
- var UpdateMonitorCommand = _UpdateMonitorCommand;
1048
1072
 
1049
1073
  // src/commands/UpdateProbeCommand.ts
1050
1074
 
1051
1075
 
1052
1076
 
1053
- var _UpdateProbeCommand = class _UpdateProbeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1077
+ var UpdateProbeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1054
1078
  return [
1055
1079
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1056
1080
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1057
1081
  ];
1058
1082
  }).s("NetworkMonitor", "UpdateProbe", {}).n("NetworkMonitorClient", "UpdateProbeCommand").f(void 0, void 0).ser(se_UpdateProbeCommand).de(de_UpdateProbeCommand).build() {
1083
+ static {
1084
+ __name(this, "UpdateProbeCommand");
1085
+ }
1059
1086
  };
1060
- __name(_UpdateProbeCommand, "UpdateProbeCommand");
1061
- var UpdateProbeCommand = _UpdateProbeCommand;
1062
1087
 
1063
1088
  // src/NetworkMonitor.ts
1064
1089
  var commands = {
@@ -1075,10 +1100,11 @@ var commands = {
1075
1100
  UpdateMonitorCommand,
1076
1101
  UpdateProbeCommand
1077
1102
  };
1078
- var _NetworkMonitor = class _NetworkMonitor extends NetworkMonitorClient {
1103
+ var NetworkMonitor = class extends NetworkMonitorClient {
1104
+ static {
1105
+ __name(this, "NetworkMonitor");
1106
+ }
1079
1107
  };
1080
- __name(_NetworkMonitor, "NetworkMonitor");
1081
- var NetworkMonitor = _NetworkMonitor;
1082
1108
  (0, import_smithy_client.createAggregatedClient)(commands, NetworkMonitor);
1083
1109
 
1084
1110
  // src/pagination/ListMonitorsPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class NetworkMonitorClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,13 +1,13 @@
1
1
  import { NetworkMonitorServiceException as __BaseException } from "./NetworkMonitorServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
3
5
  constructor(opts) {
4
6
  super({
5
7
  name: "AccessDeniedException",
6
8
  $fault: "client",
7
9
  ...opts,
8
10
  });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
@@ -16,14 +16,14 @@ export const AddressFamily = {
16
16
  IPV6: "IPV6",
17
17
  };
18
18
  export class ConflictException extends __BaseException {
19
+ name = "ConflictException";
20
+ $fault = "client";
19
21
  constructor(opts) {
20
22
  super({
21
23
  name: "ConflictException",
22
24
  $fault: "client",
23
25
  ...opts,
24
26
  });
25
- this.name = "ConflictException";
26
- this.$fault = "client";
27
27
  Object.setPrototypeOf(this, ConflictException.prototype);
28
28
  }
29
29
  }
@@ -39,54 +39,54 @@ export const MonitorState = {
39
39
  PENDING: "PENDING",
40
40
  };
41
41
  export class InternalServerException extends __BaseException {
42
+ name = "InternalServerException";
43
+ $fault = "server";
44
+ $retryable = {};
42
45
  constructor(opts) {
43
46
  super({
44
47
  name: "InternalServerException",
45
48
  $fault: "server",
46
49
  ...opts,
47
50
  });
48
- this.name = "InternalServerException";
49
- this.$fault = "server";
50
- this.$retryable = {};
51
51
  Object.setPrototypeOf(this, InternalServerException.prototype);
52
52
  }
53
53
  }
54
54
  export class ServiceQuotaExceededException extends __BaseException {
55
+ name = "ServiceQuotaExceededException";
56
+ $fault = "client";
55
57
  constructor(opts) {
56
58
  super({
57
59
  name: "ServiceQuotaExceededException",
58
60
  $fault: "client",
59
61
  ...opts,
60
62
  });
61
- this.name = "ServiceQuotaExceededException";
62
- this.$fault = "client";
63
63
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
64
64
  }
65
65
  }
66
66
  export class ThrottlingException extends __BaseException {
67
+ name = "ThrottlingException";
68
+ $fault = "client";
69
+ $retryable = {
70
+ throttling: true,
71
+ };
67
72
  constructor(opts) {
68
73
  super({
69
74
  name: "ThrottlingException",
70
75
  $fault: "client",
71
76
  ...opts,
72
77
  });
73
- this.name = "ThrottlingException";
74
- this.$fault = "client";
75
- this.$retryable = {
76
- throttling: true,
77
- };
78
78
  Object.setPrototypeOf(this, ThrottlingException.prototype);
79
79
  }
80
80
  }
81
81
  export class ValidationException extends __BaseException {
82
+ name = "ValidationException";
83
+ $fault = "client";
82
84
  constructor(opts) {
83
85
  super({
84
86
  name: "ValidationException",
85
87
  $fault: "client",
86
88
  ...opts,
87
89
  });
88
- this.name = "ValidationException";
89
- this.$fault = "client";
90
90
  Object.setPrototypeOf(this, ValidationException.prototype);
91
91
  }
92
92
  }
@@ -99,14 +99,14 @@ export const ProbeState = {
99
99
  PENDING: "PENDING",
100
100
  };
101
101
  export class ResourceNotFoundException extends __BaseException {
102
+ name = "ResourceNotFoundException";
103
+ $fault = "client";
102
104
  constructor(opts) {
103
105
  super({
104
106
  name: "ResourceNotFoundException",
105
107
  $fault: "client",
106
108
  ...opts,
107
109
  });
108
- this.name = "ResourceNotFoundException";
109
- this.$fault = "client";
110
110
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
111
111
  }
112
112
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: NetworkMonitorClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-networkmonitor",
3
3
  "description": "AWS SDK for JavaScript Networkmonitor Client for Node.js, Browser and React Native",
4
- "version": "3.721.0",
4
+ "version": "3.726.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-networkmonitor",
@@ -20,58 +20,58 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.726.0",
24
+ "@aws-sdk/client-sts": "3.726.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.726.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.726.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.726.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.726.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "@types/uuid": "^9.0.1",
62
62
  "tslib": "^2.6.2",
63
63
  "uuid": "^9.0.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@tsconfig/node16": "16.1.3",
67
- "@types/node": "^16.18.96",
66
+ "@tsconfig/node18": "18.2.4",
67
+ "@types/node": "^18.19.69",
68
68
  "concurrently": "7.0.0",
69
69
  "downlevel-dts": "0.10.1",
70
70
  "rimraf": "3.0.2",
71
- "typescript": "~4.9.5"
71
+ "typescript": "~5.2.2"
72
72
  },
73
73
  "engines": {
74
- "node": ">=16.0.0"
74
+ "node": ">=18.0.0"
75
75
  },
76
76
  "typesVersions": {
77
77
  "<4.0": {