@aws-sdk/client-networkmonitor 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
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");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultNetworkMonitorHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateMonitor$, CreateProbe$, DeleteMonitor$, DeleteProbe$, GetMonitor$, GetProbe$, ListMonitors$, ListTagsForResource$, TagResource$, UntagResource$, UpdateMonitor$, UpdateProbe$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { NetworkMonitorServiceException } = require("./models/NetworkMonitorServiceException");
18
- exports.NetworkMonitorServiceException = NetworkMonitorServiceException;
6
+ 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
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultNetworkMonitorHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "networkmonitor",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultNetworkMonitorHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,550 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://networkmonitor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://networkmonitor-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://networkmonitor.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://networkmonitor.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class NetworkMonitorServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, NetworkMonitorServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends NetworkMonitorServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ }
151
+ }
152
+ class ConflictException extends NetworkMonitorServiceException {
153
+ name = "ConflictException";
154
+ $fault = "client";
155
+ constructor(opts) {
156
+ super({
157
+ name: "ConflictException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, ConflictException.prototype);
162
+ }
163
+ }
164
+ class InternalServerException extends NetworkMonitorServiceException {
165
+ name = "InternalServerException";
166
+ $fault = "server";
167
+ $retryable = {};
168
+ constructor(opts) {
169
+ super({
170
+ name: "InternalServerException",
171
+ $fault: "server",
172
+ ...opts,
173
+ });
174
+ Object.setPrototypeOf(this, InternalServerException.prototype);
175
+ }
176
+ }
177
+ class ServiceQuotaExceededException extends NetworkMonitorServiceException {
178
+ name = "ServiceQuotaExceededException";
179
+ $fault = "client";
180
+ constructor(opts) {
181
+ super({
182
+ name: "ServiceQuotaExceededException",
183
+ $fault: "client",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
187
+ }
188
+ }
189
+ class ThrottlingException extends NetworkMonitorServiceException {
190
+ name = "ThrottlingException";
191
+ $fault = "client";
192
+ $retryable = {
193
+ throttling: true,
194
+ };
195
+ constructor(opts) {
196
+ super({
197
+ name: "ThrottlingException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
202
+ }
203
+ }
204
+ class ValidationException extends NetworkMonitorServiceException {
205
+ name = "ValidationException";
206
+ $fault = "client";
207
+ constructor(opts) {
208
+ super({
209
+ name: "ValidationException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, ValidationException.prototype);
214
+ }
215
+ }
216
+ class ResourceNotFoundException extends NetworkMonitorServiceException {
217
+ name = "ResourceNotFoundException";
218
+ $fault = "client";
219
+ constructor(opts) {
220
+ super({
221
+ name: "ResourceNotFoundException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
226
+ }
227
+ }
228
+
229
+ const _ADE = "AccessDeniedException";
230
+ const _CE = "ConflictException";
231
+ const _CM = "CreateMonitor";
232
+ const _CMI = "CreateMonitorInput";
233
+ const _CMO = "CreateMonitorOutput";
234
+ const _CMPI = "CreateMonitorProbeInput";
235
+ const _CMPIL = "CreateMonitorProbeInputList";
236
+ const _CP = "CreateProbe";
237
+ const _CPI = "CreateProbeInput";
238
+ const _CPO = "CreateProbeOutput";
239
+ const _DM = "DeleteMonitor";
240
+ const _DMI = "DeleteMonitorInput";
241
+ const _DMO = "DeleteMonitorOutput";
242
+ const _DP = "DeleteProbe";
243
+ const _DPI = "DeleteProbeInput";
244
+ const _DPO = "DeleteProbeOutput";
245
+ const _GM = "GetMonitor";
246
+ const _GMI = "GetMonitorInput";
247
+ const _GMO = "GetMonitorOutput";
248
+ const _GP = "GetProbe";
249
+ const _GPI = "GetProbeInput";
250
+ const _GPO = "GetProbeOutput";
251
+ const _ISE = "InternalServerException";
252
+ const _LM = "ListMonitors";
253
+ const _LMI = "ListMonitorsInput";
254
+ const _LMO = "ListMonitorsOutput";
255
+ const _LTFR = "ListTagsForResource";
256
+ const _LTFRI = "ListTagsForResourceInput";
257
+ const _LTFRO = "ListTagsForResourceOutput";
258
+ const _ML = "MonitorList";
259
+ const _MS = "MonitorSummary";
260
+ const _P = "Probe";
261
+ const _PI = "ProbeInput";
262
+ const _PL = "ProbeList";
263
+ const _RNFE = "ResourceNotFoundException";
264
+ const _SQEE = "ServiceQuotaExceededException";
265
+ const _TE = "ThrottlingException";
266
+ const _TR = "TagResource";
267
+ const _TRI = "TagResourceInput";
268
+ const _TRO = "TagResourceOutput";
269
+ const _UM = "UpdateMonitor";
270
+ const _UMI = "UpdateMonitorInput";
271
+ const _UMO = "UpdateMonitorOutput";
272
+ const _UP = "UpdateProbe";
273
+ const _UPI = "UpdateProbeInput";
274
+ const _UPO = "UpdateProbeOutput";
275
+ const _UR = "UntagResource";
276
+ const _URI = "UntagResourceInput";
277
+ const _URO = "UntagResourceOutput";
278
+ const _VE = "ValidationException";
279
+ const _aF = "addressFamily";
280
+ const _aP = "aggregationPeriod";
281
+ const _c = "client";
282
+ const _cA = "createdAt";
283
+ const _cT = "clientToken";
284
+ const _d = "destination";
285
+ const _dP = "destinationPort";
286
+ const _e = "error";
287
+ const _h = "http";
288
+ const _hE = "httpError";
289
+ const _hQ = "httpQuery";
290
+ const _m = "message";
291
+ const _mA = "monitorArn";
292
+ const _mAo = "modifiedAt";
293
+ const _mN = "monitorName";
294
+ const _mR = "maxResults";
295
+ const _mo = "monitors";
296
+ const _nT = "nextToken";
297
+ const _p = "probes";
298
+ const _pA = "probeArn";
299
+ const _pI = "probeId";
300
+ const _pS = "packetSize";
301
+ const _pT = "probeTags";
302
+ const _pr = "protocol";
303
+ const _pro = "probe";
304
+ const _rA = "resourceArn";
305
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.networkmonitor";
306
+ const _sA = "sourceArn";
307
+ const _se = "server";
308
+ const _st = "state";
309
+ const _t = "tags";
310
+ const _tK = "tagKeys";
311
+ const _vI = "vpcId";
312
+ const n0 = "com.amazonaws.networkmonitor";
313
+ const _s_registry = TypeRegistry.for(_s);
314
+ var NetworkMonitorServiceException$ = [-3, _s, "NetworkMonitorServiceException", 0, [], []];
315
+ _s_registry.registerError(NetworkMonitorServiceException$, NetworkMonitorServiceException);
316
+ const n0_registry = TypeRegistry.for(n0);
317
+ var AccessDeniedException$ = [-3, n0, _ADE,
318
+ { [_e]: _c, [_hE]: 403 },
319
+ [_m],
320
+ [0]
321
+ ];
322
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
323
+ var ConflictException$ = [-3, n0, _CE,
324
+ { [_e]: _c, [_hE]: 409 },
325
+ [_m],
326
+ [0]
327
+ ];
328
+ n0_registry.registerError(ConflictException$, ConflictException);
329
+ var InternalServerException$ = [-3, n0, _ISE,
330
+ { [_e]: _se, [_hE]: 500 },
331
+ [_m],
332
+ [0]
333
+ ];
334
+ n0_registry.registerError(InternalServerException$, InternalServerException);
335
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
336
+ { [_e]: _c, [_hE]: 404 },
337
+ [_m],
338
+ [0]
339
+ ];
340
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
341
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
342
+ { [_e]: _c, [_hE]: 402 },
343
+ [_m],
344
+ [0]
345
+ ];
346
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
347
+ var ThrottlingException$ = [-3, n0, _TE,
348
+ { [_e]: _c, [_hE]: 429 },
349
+ [_m],
350
+ [0]
351
+ ];
352
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
353
+ var ValidationException$ = [-3, n0, _VE,
354
+ { [_e]: _c, [_hE]: 400 },
355
+ [_m],
356
+ [0]
357
+ ];
358
+ n0_registry.registerError(ValidationException$, ValidationException);
359
+ const errorTypeRegistries = [
360
+ _s_registry,
361
+ n0_registry,
362
+ ];
363
+ var CreateMonitorInput$ = [3, n0, _CMI,
364
+ 0,
365
+ [_mN, _p, _aP, _cT, _t],
366
+ [0, () => CreateMonitorProbeInputList, 1, [0, 4], 128 | 0], 1
367
+ ];
368
+ var CreateMonitorOutput$ = [3, n0, _CMO,
369
+ 0,
370
+ [_mA, _mN, _st, _aP, _t],
371
+ [0, 0, 0, 1, 128 | 0], 3
372
+ ];
373
+ var CreateMonitorProbeInput$ = [3, n0, _CMPI,
374
+ 0,
375
+ [_sA, _d, _pr, _dP, _pS, _pT],
376
+ [0, 0, 0, 1, 1, 128 | 0], 3
377
+ ];
378
+ var CreateProbeInput$ = [3, n0, _CPI,
379
+ 0,
380
+ [_mN, _pro, _cT, _t],
381
+ [[0, 1], () => ProbeInput$, [0, 4], 128 | 0], 2
382
+ ];
383
+ var CreateProbeOutput$ = [3, n0, _CPO,
384
+ 0,
385
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
386
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
387
+ ];
388
+ var DeleteMonitorInput$ = [3, n0, _DMI,
389
+ 0,
390
+ [_mN],
391
+ [[0, 1]], 1
392
+ ];
393
+ var DeleteMonitorOutput$ = [3, n0, _DMO,
394
+ 0,
395
+ [],
396
+ []
397
+ ];
398
+ var DeleteProbeInput$ = [3, n0, _DPI,
399
+ 0,
400
+ [_mN, _pI],
401
+ [[0, 1], [0, 1]], 2
402
+ ];
403
+ var DeleteProbeOutput$ = [3, n0, _DPO,
404
+ 0,
405
+ [],
406
+ []
407
+ ];
408
+ var GetMonitorInput$ = [3, n0, _GMI,
409
+ 0,
410
+ [_mN],
411
+ [[0, 1]], 1
412
+ ];
413
+ var GetMonitorOutput$ = [3, n0, _GMO,
414
+ 0,
415
+ [_mA, _mN, _st, _aP, _cA, _mAo, _t, _p],
416
+ [0, 0, 0, 1, 4, 4, 128 | 0, () => ProbeList], 6
417
+ ];
418
+ var GetProbeInput$ = [3, n0, _GPI,
419
+ 0,
420
+ [_mN, _pI],
421
+ [[0, 1], [0, 1]], 2
422
+ ];
423
+ var GetProbeOutput$ = [3, n0, _GPO,
424
+ 0,
425
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
426
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
427
+ ];
428
+ var ListMonitorsInput$ = [3, n0, _LMI,
429
+ 0,
430
+ [_nT, _mR, _st],
431
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }]]
432
+ ];
433
+ var ListMonitorsOutput$ = [3, n0, _LMO,
434
+ 0,
435
+ [_mo, _nT],
436
+ [() => MonitorList, 0], 1
437
+ ];
438
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
439
+ 0,
440
+ [_rA],
441
+ [[0, 1]], 1
442
+ ];
443
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
444
+ 0,
445
+ [_t],
446
+ [128 | 0]
447
+ ];
448
+ var MonitorSummary$ = [3, n0, _MS,
449
+ 0,
450
+ [_mA, _mN, _st, _aP, _t],
451
+ [0, 0, 0, 1, 128 | 0], 3
452
+ ];
453
+ var Probe$ = [3, n0, _P,
454
+ 0,
455
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
456
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
457
+ ];
458
+ var ProbeInput$ = [3, n0, _PI,
459
+ 0,
460
+ [_sA, _d, _pr, _dP, _pS, _t],
461
+ [0, 0, 0, 1, 1, 128 | 0], 3
462
+ ];
463
+ var TagResourceInput$ = [3, n0, _TRI,
464
+ 0,
465
+ [_rA, _t],
466
+ [[0, 1], 128 | 0], 2
467
+ ];
468
+ var TagResourceOutput$ = [3, n0, _TRO,
469
+ 0,
470
+ [],
471
+ []
472
+ ];
473
+ var UntagResourceInput$ = [3, n0, _URI,
474
+ 0,
475
+ [_rA, _tK],
476
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
477
+ ];
478
+ var UntagResourceOutput$ = [3, n0, _URO,
479
+ 0,
480
+ [],
481
+ []
482
+ ];
483
+ var UpdateMonitorInput$ = [3, n0, _UMI,
484
+ 0,
485
+ [_mN, _aP],
486
+ [[0, 1], 1], 2
487
+ ];
488
+ var UpdateMonitorOutput$ = [3, n0, _UMO,
489
+ 0,
490
+ [_mA, _mN, _st, _aP, _t],
491
+ [0, 0, 0, 1, 128 | 0], 3
492
+ ];
493
+ var UpdateProbeInput$ = [3, n0, _UPI,
494
+ 0,
495
+ [_mN, _pI, _st, _d, _dP, _pr, _pS],
496
+ [[0, 1], [0, 1], 0, 0, 1, 0, 1], 2
497
+ ];
498
+ var UpdateProbeOutput$ = [3, n0, _UPO,
499
+ 0,
500
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
501
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
502
+ ];
503
+ var CreateMonitorProbeInputList = [1, n0, _CMPIL,
504
+ 0, () => CreateMonitorProbeInput$
505
+ ];
506
+ var MonitorList = [1, n0, _ML,
507
+ 0, () => MonitorSummary$
508
+ ];
509
+ var ProbeList = [1, n0, _PL,
510
+ 0, () => Probe$
511
+ ];
512
+ var CreateMonitor$ = [9, n0, _CM,
513
+ { [_h]: ["POST", "/monitors", 200] }, () => CreateMonitorInput$, () => CreateMonitorOutput$
514
+ ];
515
+ var CreateProbe$ = [9, n0, _CP,
516
+ { [_h]: ["POST", "/monitors/{monitorName}/probes", 200] }, () => CreateProbeInput$, () => CreateProbeOutput$
517
+ ];
518
+ var DeleteMonitor$ = [9, n0, _DM,
519
+ { [_h]: ["DELETE", "/monitors/{monitorName}", 200] }, () => DeleteMonitorInput$, () => DeleteMonitorOutput$
520
+ ];
521
+ var DeleteProbe$ = [9, n0, _DP,
522
+ { [_h]: ["DELETE", "/monitors/{monitorName}/probes/{probeId}", 200] }, () => DeleteProbeInput$, () => DeleteProbeOutput$
523
+ ];
524
+ var GetMonitor$ = [9, n0, _GM,
525
+ { [_h]: ["GET", "/monitors/{monitorName}", 200] }, () => GetMonitorInput$, () => GetMonitorOutput$
526
+ ];
527
+ var GetProbe$ = [9, n0, _GP,
528
+ { [_h]: ["GET", "/monitors/{monitorName}/probes/{probeId}", 200] }, () => GetProbeInput$, () => GetProbeOutput$
529
+ ];
530
+ var ListMonitors$ = [9, n0, _LM,
531
+ { [_h]: ["GET", "/monitors", 200] }, () => ListMonitorsInput$, () => ListMonitorsOutput$
532
+ ];
533
+ var ListTagsForResource$ = [9, n0, _LTFR,
534
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
535
+ ];
536
+ var TagResource$ = [9, n0, _TR,
537
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceInput$, () => TagResourceOutput$
538
+ ];
539
+ var UntagResource$ = [9, n0, _UR,
540
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
541
+ ];
542
+ var UpdateMonitor$ = [9, n0, _UM,
543
+ { [_h]: ["PATCH", "/monitors/{monitorName}", 200] }, () => UpdateMonitorInput$, () => UpdateMonitorOutput$
544
+ ];
545
+ var UpdateProbe$ = [9, n0, _UP,
546
+ { [_h]: ["PATCH", "/monitors/{monitorName}/probes/{probeId}", 200] }, () => UpdateProbeInput$, () => UpdateProbeOutput$
547
+ ];
548
+
549
+ const getRuntimeConfig$1 = (config) => {
550
+ return {
551
+ apiVersion: "2023-08-01",
552
+ base64Decoder: config?.base64Decoder ?? fromBase64,
553
+ base64Encoder: config?.base64Encoder ?? toBase64,
554
+ disableHostPrefix: config?.disableHostPrefix ?? false,
555
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
556
+ extensions: config?.extensions ?? [],
557
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultNetworkMonitorHttpAuthSchemeProvider,
558
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
559
+ {
560
+ schemeId: "aws.auth#sigv4",
561
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
562
+ signer: new AwsSdkSigV4Signer(),
563
+ },
564
+ ],
565
+ logger: config?.logger ?? new NoOpLogger(),
566
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
567
+ protocolSettings: config?.protocolSettings ?? {
568
+ defaultNamespace: "com.amazonaws.networkmonitor",
569
+ errorTypeRegistries,
570
+ version: "2023-08-01",
571
+ serviceTarget: "NetworkMonitor",
572
+ },
573
+ serviceId: config?.serviceId ?? "NetworkMonitor",
574
+ sha256: config?.sha256 ?? Sha256,
575
+ urlParser: config?.urlParser ?? parseUrl,
576
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
577
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
578
+ };
579
+ };
580
+
581
+ const getRuntimeConfig = (config) => {
582
+ emitWarningIfUnsupportedVersion(process.version);
583
+ const defaultsMode = resolveDefaultsModeConfig(config);
584
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
585
+ const clientSharedValues = getRuntimeConfig$1(config);
586
+ emitWarningIfUnsupportedVersion$1(process.version);
587
+ const loaderConfig = {
588
+ profile: config?.profile,
589
+ logger: clientSharedValues.logger,
590
+ };
591
+ return {
592
+ ...clientSharedValues,
593
+ ...config,
594
+ runtime: "node",
595
+ defaultsMode,
596
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
597
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
598
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
599
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
600
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
601
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
602
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
603
+ retryMode: config?.retryMode ??
604
+ loadConfig({
605
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
606
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
607
+ }, config),
608
+ streamCollector: config?.streamCollector ?? streamCollector,
609
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
610
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
611
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
612
+ };
613
+ };
614
+
34
615
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
616
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
617
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -302,22 +883,79 @@ const ProbeState = {
302
883
  PENDING: "PENDING",
303
884
  };
304
885
 
886
+ exports.AccessDeniedException = AccessDeniedException;
887
+ exports.AccessDeniedException$ = AccessDeniedException$;
305
888
  exports.AddressFamily = AddressFamily;
889
+ exports.ConflictException = ConflictException;
890
+ exports.ConflictException$ = ConflictException$;
891
+ exports.CreateMonitor$ = CreateMonitor$;
306
892
  exports.CreateMonitorCommand = CreateMonitorCommand;
893
+ exports.CreateMonitorInput$ = CreateMonitorInput$;
894
+ exports.CreateMonitorOutput$ = CreateMonitorOutput$;
895
+ exports.CreateMonitorProbeInput$ = CreateMonitorProbeInput$;
896
+ exports.CreateProbe$ = CreateProbe$;
307
897
  exports.CreateProbeCommand = CreateProbeCommand;
898
+ exports.CreateProbeInput$ = CreateProbeInput$;
899
+ exports.CreateProbeOutput$ = CreateProbeOutput$;
900
+ exports.DeleteMonitor$ = DeleteMonitor$;
308
901
  exports.DeleteMonitorCommand = DeleteMonitorCommand;
902
+ exports.DeleteMonitorInput$ = DeleteMonitorInput$;
903
+ exports.DeleteMonitorOutput$ = DeleteMonitorOutput$;
904
+ exports.DeleteProbe$ = DeleteProbe$;
309
905
  exports.DeleteProbeCommand = DeleteProbeCommand;
906
+ exports.DeleteProbeInput$ = DeleteProbeInput$;
907
+ exports.DeleteProbeOutput$ = DeleteProbeOutput$;
908
+ exports.GetMonitor$ = GetMonitor$;
310
909
  exports.GetMonitorCommand = GetMonitorCommand;
910
+ exports.GetMonitorInput$ = GetMonitorInput$;
911
+ exports.GetMonitorOutput$ = GetMonitorOutput$;
912
+ exports.GetProbe$ = GetProbe$;
311
913
  exports.GetProbeCommand = GetProbeCommand;
914
+ exports.GetProbeInput$ = GetProbeInput$;
915
+ exports.GetProbeOutput$ = GetProbeOutput$;
916
+ exports.InternalServerException = InternalServerException;
917
+ exports.InternalServerException$ = InternalServerException$;
918
+ exports.ListMonitors$ = ListMonitors$;
312
919
  exports.ListMonitorsCommand = ListMonitorsCommand;
920
+ exports.ListMonitorsInput$ = ListMonitorsInput$;
921
+ exports.ListMonitorsOutput$ = ListMonitorsOutput$;
922
+ exports.ListTagsForResource$ = ListTagsForResource$;
313
923
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
924
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
925
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
314
926
  exports.MonitorState = MonitorState;
927
+ exports.MonitorSummary$ = MonitorSummary$;
315
928
  exports.NetworkMonitor = NetworkMonitor;
316
929
  exports.NetworkMonitorClient = NetworkMonitorClient;
930
+ exports.NetworkMonitorServiceException = NetworkMonitorServiceException;
931
+ exports.NetworkMonitorServiceException$ = NetworkMonitorServiceException$;
932
+ exports.Probe$ = Probe$;
933
+ exports.ProbeInput$ = ProbeInput$;
317
934
  exports.ProbeState = ProbeState;
318
935
  exports.Protocol = Protocol;
936
+ exports.ResourceNotFoundException = ResourceNotFoundException;
937
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
938
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
939
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
940
+ exports.TagResource$ = TagResource$;
319
941
  exports.TagResourceCommand = TagResourceCommand;
942
+ exports.TagResourceInput$ = TagResourceInput$;
943
+ exports.TagResourceOutput$ = TagResourceOutput$;
944
+ exports.ThrottlingException = ThrottlingException;
945
+ exports.ThrottlingException$ = ThrottlingException$;
946
+ exports.UntagResource$ = UntagResource$;
320
947
  exports.UntagResourceCommand = UntagResourceCommand;
948
+ exports.UntagResourceInput$ = UntagResourceInput$;
949
+ exports.UntagResourceOutput$ = UntagResourceOutput$;
950
+ exports.UpdateMonitor$ = UpdateMonitor$;
321
951
  exports.UpdateMonitorCommand = UpdateMonitorCommand;
952
+ exports.UpdateMonitorInput$ = UpdateMonitorInput$;
953
+ exports.UpdateMonitorOutput$ = UpdateMonitorOutput$;
954
+ exports.UpdateProbe$ = UpdateProbe$;
322
955
  exports.UpdateProbeCommand = UpdateProbeCommand;
956
+ exports.UpdateProbeInput$ = UpdateProbeInput$;
957
+ exports.UpdateProbeOutput$ = UpdateProbeOutput$;
958
+ exports.ValidationException = ValidationException;
959
+ exports.ValidationException$ = ValidationException$;
960
+ exports.errorTypeRegistries = errorTypeRegistries;
323
961
  exports.paginateListMonitors = paginateListMonitors;