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