@aws-sdk/client-networkmonitor 3.489.0 → 3.495.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/NetworkMonitor.js +1 -35
- package/dist-cjs/NetworkMonitorClient.js +1 -43
- package/dist-cjs/commands/CreateMonitorCommand.js +1 -28
- package/dist-cjs/commands/CreateProbeCommand.js +1 -28
- package/dist-cjs/commands/DeleteMonitorCommand.js +1 -28
- package/dist-cjs/commands/DeleteProbeCommand.js +1 -28
- package/dist-cjs/commands/GetMonitorCommand.js +1 -28
- package/dist-cjs/commands/GetProbeCommand.js +1 -28
- package/dist-cjs/commands/ListMonitorsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateMonitorCommand.js +1 -28
- package/dist-cjs/commands/UpdateProbeCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -15
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1502 -11
- package/dist-cjs/models/NetworkMonitorServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -122
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListMonitorsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -957
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1503 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AddressFamily: () => AddressFamily,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
CreateMonitorCommand: () => CreateMonitorCommand,
|
|
28
|
+
CreateProbeCommand: () => CreateProbeCommand,
|
|
29
|
+
DeleteMonitorCommand: () => DeleteMonitorCommand,
|
|
30
|
+
DeleteProbeCommand: () => DeleteProbeCommand,
|
|
31
|
+
GetMonitorCommand: () => GetMonitorCommand,
|
|
32
|
+
GetProbeCommand: () => GetProbeCommand,
|
|
33
|
+
InternalServerException: () => InternalServerException,
|
|
34
|
+
ListMonitorsCommand: () => ListMonitorsCommand,
|
|
35
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
36
|
+
MonitorState: () => MonitorState,
|
|
37
|
+
NetworkMonitor: () => NetworkMonitor,
|
|
38
|
+
NetworkMonitorClient: () => NetworkMonitorClient,
|
|
39
|
+
NetworkMonitorServiceException: () => NetworkMonitorServiceException,
|
|
40
|
+
ProbeState: () => ProbeState,
|
|
41
|
+
Protocol: () => Protocol,
|
|
42
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
43
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
44
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
45
|
+
ThrottlingException: () => ThrottlingException,
|
|
46
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
47
|
+
UpdateMonitorCommand: () => UpdateMonitorCommand,
|
|
48
|
+
UpdateProbeCommand: () => UpdateProbeCommand,
|
|
49
|
+
ValidationException: () => ValidationException,
|
|
50
|
+
__Client: () => import_smithy_client.Client,
|
|
51
|
+
paginateListMonitors: () => paginateListMonitors
|
|
52
|
+
});
|
|
53
|
+
module.exports = __toCommonJS(src_exports);
|
|
54
|
+
|
|
55
|
+
// src/NetworkMonitorClient.ts
|
|
56
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
57
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
58
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
59
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
60
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
61
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
62
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
63
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
64
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
// src/endpoint/EndpointParameters.ts
|
|
68
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
69
|
+
return {
|
|
70
|
+
...options,
|
|
71
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
72
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
73
|
+
defaultSigningName: "networkmonitor"
|
|
74
|
+
};
|
|
75
|
+
}, "resolveClientEndpointParameters");
|
|
76
|
+
var commonParams = {
|
|
77
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
78
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
79
|
+
Region: { type: "builtInParams", name: "region" },
|
|
80
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// src/NetworkMonitorClient.ts
|
|
84
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
85
|
+
|
|
86
|
+
// src/runtimeExtensions.ts
|
|
87
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
88
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
89
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
90
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
91
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
92
|
+
const extensionConfiguration = {
|
|
93
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
94
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
95
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
96
|
+
};
|
|
97
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
98
|
+
return {
|
|
99
|
+
...runtimeConfig,
|
|
100
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
101
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
102
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
103
|
+
};
|
|
104
|
+
}, "resolveRuntimeExtensions");
|
|
105
|
+
|
|
106
|
+
// src/NetworkMonitorClient.ts
|
|
107
|
+
var _NetworkMonitorClient = class _NetworkMonitorClient extends import_smithy_client.Client {
|
|
108
|
+
constructor(...[configuration]) {
|
|
109
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
110
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
111
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
112
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
113
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
114
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
115
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
116
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
117
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
118
|
+
super(_config_8);
|
|
119
|
+
this.config = _config_8;
|
|
120
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
121
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
122
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
123
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
124
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
125
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
126
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
130
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
131
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
132
|
+
*/
|
|
133
|
+
destroy() {
|
|
134
|
+
super.destroy();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
__name(_NetworkMonitorClient, "NetworkMonitorClient");
|
|
138
|
+
var NetworkMonitorClient = _NetworkMonitorClient;
|
|
139
|
+
|
|
140
|
+
// src/NetworkMonitor.ts
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
// src/commands/CreateMonitorCommand.ts
|
|
144
|
+
|
|
145
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
146
|
+
|
|
147
|
+
var import_types = require("@smithy/types");
|
|
148
|
+
|
|
149
|
+
// src/protocols/Aws_restJson1.ts
|
|
150
|
+
var import_core = require("@smithy/core");
|
|
151
|
+
|
|
152
|
+
var import_uuid = require("uuid");
|
|
153
|
+
|
|
154
|
+
// src/models/NetworkMonitorServiceException.ts
|
|
155
|
+
|
|
156
|
+
var _NetworkMonitorServiceException = class _NetworkMonitorServiceException extends import_smithy_client.ServiceException {
|
|
157
|
+
/**
|
|
158
|
+
* @internal
|
|
159
|
+
*/
|
|
160
|
+
constructor(options) {
|
|
161
|
+
super(options);
|
|
162
|
+
Object.setPrototypeOf(this, _NetworkMonitorServiceException.prototype);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
__name(_NetworkMonitorServiceException, "NetworkMonitorServiceException");
|
|
166
|
+
var NetworkMonitorServiceException = _NetworkMonitorServiceException;
|
|
167
|
+
|
|
168
|
+
// src/models/models_0.ts
|
|
169
|
+
var _AccessDeniedException = class _AccessDeniedException extends NetworkMonitorServiceException {
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
constructor(opts) {
|
|
174
|
+
super({
|
|
175
|
+
name: "AccessDeniedException",
|
|
176
|
+
$fault: "client",
|
|
177
|
+
...opts
|
|
178
|
+
});
|
|
179
|
+
this.name = "AccessDeniedException";
|
|
180
|
+
this.$fault = "client";
|
|
181
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
185
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
186
|
+
var AddressFamily = {
|
|
187
|
+
IPV4: "IPV4",
|
|
188
|
+
IPV6: "IPV6"
|
|
189
|
+
};
|
|
190
|
+
var _ConflictException = class _ConflictException extends NetworkMonitorServiceException {
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ConflictException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts
|
|
199
|
+
});
|
|
200
|
+
this.name = "ConflictException";
|
|
201
|
+
this.$fault = "client";
|
|
202
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
__name(_ConflictException, "ConflictException");
|
|
206
|
+
var ConflictException = _ConflictException;
|
|
207
|
+
var Protocol = {
|
|
208
|
+
ICMP: "ICMP",
|
|
209
|
+
TCP: "TCP"
|
|
210
|
+
};
|
|
211
|
+
var MonitorState = {
|
|
212
|
+
ACTIVE: "ACTIVE",
|
|
213
|
+
DELETING: "DELETING",
|
|
214
|
+
ERROR: "ERROR",
|
|
215
|
+
INACTIVE: "INACTIVE",
|
|
216
|
+
PENDING: "PENDING"
|
|
217
|
+
};
|
|
218
|
+
var _InternalServerException = class _InternalServerException extends NetworkMonitorServiceException {
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "InternalServerException",
|
|
225
|
+
$fault: "server",
|
|
226
|
+
...opts
|
|
227
|
+
});
|
|
228
|
+
this.name = "InternalServerException";
|
|
229
|
+
this.$fault = "server";
|
|
230
|
+
this.$retryable = {};
|
|
231
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
__name(_InternalServerException, "InternalServerException");
|
|
235
|
+
var InternalServerException = _InternalServerException;
|
|
236
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NetworkMonitorServiceException {
|
|
237
|
+
/**
|
|
238
|
+
* @internal
|
|
239
|
+
*/
|
|
240
|
+
constructor(opts) {
|
|
241
|
+
super({
|
|
242
|
+
name: "ServiceQuotaExceededException",
|
|
243
|
+
$fault: "client",
|
|
244
|
+
...opts
|
|
245
|
+
});
|
|
246
|
+
this.name = "ServiceQuotaExceededException";
|
|
247
|
+
this.$fault = "client";
|
|
248
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
252
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
253
|
+
var _ThrottlingException = class _ThrottlingException extends NetworkMonitorServiceException {
|
|
254
|
+
/**
|
|
255
|
+
* @internal
|
|
256
|
+
*/
|
|
257
|
+
constructor(opts) {
|
|
258
|
+
super({
|
|
259
|
+
name: "ThrottlingException",
|
|
260
|
+
$fault: "client",
|
|
261
|
+
...opts
|
|
262
|
+
});
|
|
263
|
+
this.name = "ThrottlingException";
|
|
264
|
+
this.$fault = "client";
|
|
265
|
+
this.$retryable = {
|
|
266
|
+
throttling: true
|
|
267
|
+
};
|
|
268
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
272
|
+
var ThrottlingException = _ThrottlingException;
|
|
273
|
+
var _ValidationException = class _ValidationException extends NetworkMonitorServiceException {
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
*/
|
|
277
|
+
constructor(opts) {
|
|
278
|
+
super({
|
|
279
|
+
name: "ValidationException",
|
|
280
|
+
$fault: "client",
|
|
281
|
+
...opts
|
|
282
|
+
});
|
|
283
|
+
this.name = "ValidationException";
|
|
284
|
+
this.$fault = "client";
|
|
285
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
__name(_ValidationException, "ValidationException");
|
|
289
|
+
var ValidationException = _ValidationException;
|
|
290
|
+
var ProbeState = {
|
|
291
|
+
ACTIVE: "ACTIVE",
|
|
292
|
+
DELETED: "DELETED",
|
|
293
|
+
DELETING: "DELETING",
|
|
294
|
+
ERROR: "ERROR",
|
|
295
|
+
INACTIVE: "INACTIVE",
|
|
296
|
+
PENDING: "PENDING"
|
|
297
|
+
};
|
|
298
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends NetworkMonitorServiceException {
|
|
299
|
+
/**
|
|
300
|
+
* @internal
|
|
301
|
+
*/
|
|
302
|
+
constructor(opts) {
|
|
303
|
+
super({
|
|
304
|
+
name: "ResourceNotFoundException",
|
|
305
|
+
$fault: "client",
|
|
306
|
+
...opts
|
|
307
|
+
});
|
|
308
|
+
this.name = "ResourceNotFoundException";
|
|
309
|
+
this.$fault = "client";
|
|
310
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
314
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
315
|
+
|
|
316
|
+
// src/protocols/Aws_restJson1.ts
|
|
317
|
+
var se_CreateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
318
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
319
|
+
const headers = {
|
|
320
|
+
"content-type": "application/json"
|
|
321
|
+
};
|
|
322
|
+
b.bp("/monitors");
|
|
323
|
+
let body;
|
|
324
|
+
body = JSON.stringify(
|
|
325
|
+
(0, import_smithy_client.take)(input, {
|
|
326
|
+
aggregationPeriod: [],
|
|
327
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
328
|
+
monitorName: [],
|
|
329
|
+
probes: (_) => (0, import_smithy_client._json)(_),
|
|
330
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
331
|
+
})
|
|
332
|
+
);
|
|
333
|
+
b.m("POST").h(headers).b(body);
|
|
334
|
+
return b.build();
|
|
335
|
+
}, "se_CreateMonitorCommand");
|
|
336
|
+
var se_CreateProbeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
337
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
338
|
+
const headers = {
|
|
339
|
+
"content-type": "application/json"
|
|
340
|
+
};
|
|
341
|
+
b.bp("/monitors/{monitorName}/probes");
|
|
342
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(
|
|
345
|
+
(0, import_smithy_client.take)(input, {
|
|
346
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
347
|
+
probe: (_) => (0, import_smithy_client._json)(_),
|
|
348
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
349
|
+
})
|
|
350
|
+
);
|
|
351
|
+
b.m("POST").h(headers).b(body);
|
|
352
|
+
return b.build();
|
|
353
|
+
}, "se_CreateProbeCommand");
|
|
354
|
+
var se_DeleteMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
355
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
356
|
+
const headers = {};
|
|
357
|
+
b.bp("/monitors/{monitorName}");
|
|
358
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
359
|
+
let body;
|
|
360
|
+
b.m("DELETE").h(headers).b(body);
|
|
361
|
+
return b.build();
|
|
362
|
+
}, "se_DeleteMonitorCommand");
|
|
363
|
+
var se_DeleteProbeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
364
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
365
|
+
const headers = {};
|
|
366
|
+
b.bp("/monitors/{monitorName}/probes/{probeId}");
|
|
367
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
368
|
+
b.p("probeId", () => input.probeId, "{probeId}", false);
|
|
369
|
+
let body;
|
|
370
|
+
b.m("DELETE").h(headers).b(body);
|
|
371
|
+
return b.build();
|
|
372
|
+
}, "se_DeleteProbeCommand");
|
|
373
|
+
var se_GetMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
374
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
375
|
+
const headers = {};
|
|
376
|
+
b.bp("/monitors/{monitorName}");
|
|
377
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
378
|
+
let body;
|
|
379
|
+
b.m("GET").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
381
|
+
}, "se_GetMonitorCommand");
|
|
382
|
+
var se_GetProbeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
383
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
384
|
+
const headers = {};
|
|
385
|
+
b.bp("/monitors/{monitorName}/probes/{probeId}");
|
|
386
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
387
|
+
b.p("probeId", () => input.probeId, "{probeId}", false);
|
|
388
|
+
let body;
|
|
389
|
+
b.m("GET").h(headers).b(body);
|
|
390
|
+
return b.build();
|
|
391
|
+
}, "se_GetProbeCommand");
|
|
392
|
+
var se_ListMonitorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
393
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
394
|
+
const headers = {};
|
|
395
|
+
b.bp("/monitors");
|
|
396
|
+
const query = (0, import_smithy_client.map)({
|
|
397
|
+
[_nT]: [, input[_nT]],
|
|
398
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
399
|
+
[_s]: [, input[_s]]
|
|
400
|
+
});
|
|
401
|
+
let body;
|
|
402
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
403
|
+
return b.build();
|
|
404
|
+
}, "se_ListMonitorsCommand");
|
|
405
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
406
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
407
|
+
const headers = {};
|
|
408
|
+
b.bp("/tags/{resourceArn}");
|
|
409
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
410
|
+
let body;
|
|
411
|
+
b.m("GET").h(headers).b(body);
|
|
412
|
+
return b.build();
|
|
413
|
+
}, "se_ListTagsForResourceCommand");
|
|
414
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
415
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
416
|
+
const headers = {
|
|
417
|
+
"content-type": "application/json"
|
|
418
|
+
};
|
|
419
|
+
b.bp("/tags/{resourceArn}");
|
|
420
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
421
|
+
let body;
|
|
422
|
+
body = JSON.stringify(
|
|
423
|
+
(0, import_smithy_client.take)(input, {
|
|
424
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
425
|
+
})
|
|
426
|
+
);
|
|
427
|
+
b.m("POST").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
429
|
+
}, "se_TagResourceCommand");
|
|
430
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
431
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
432
|
+
const headers = {};
|
|
433
|
+
b.bp("/tags/{resourceArn}");
|
|
434
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
435
|
+
const query = (0, import_smithy_client.map)({
|
|
436
|
+
[_tK]: [
|
|
437
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
438
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
439
|
+
]
|
|
440
|
+
});
|
|
441
|
+
let body;
|
|
442
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
443
|
+
return b.build();
|
|
444
|
+
}, "se_UntagResourceCommand");
|
|
445
|
+
var se_UpdateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
446
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
447
|
+
const headers = {
|
|
448
|
+
"content-type": "application/json"
|
|
449
|
+
};
|
|
450
|
+
b.bp("/monitors/{monitorName}");
|
|
451
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
452
|
+
let body;
|
|
453
|
+
body = JSON.stringify(
|
|
454
|
+
(0, import_smithy_client.take)(input, {
|
|
455
|
+
aggregationPeriod: []
|
|
456
|
+
})
|
|
457
|
+
);
|
|
458
|
+
b.m("PATCH").h(headers).b(body);
|
|
459
|
+
return b.build();
|
|
460
|
+
}, "se_UpdateMonitorCommand");
|
|
461
|
+
var se_UpdateProbeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
462
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
463
|
+
const headers = {
|
|
464
|
+
"content-type": "application/json"
|
|
465
|
+
};
|
|
466
|
+
b.bp("/monitors/{monitorName}/probes/{probeId}");
|
|
467
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
468
|
+
b.p("probeId", () => input.probeId, "{probeId}", false);
|
|
469
|
+
let body;
|
|
470
|
+
body = JSON.stringify(
|
|
471
|
+
(0, import_smithy_client.take)(input, {
|
|
472
|
+
destination: [],
|
|
473
|
+
destinationPort: [],
|
|
474
|
+
packetSize: [],
|
|
475
|
+
protocol: [],
|
|
476
|
+
state: []
|
|
477
|
+
})
|
|
478
|
+
);
|
|
479
|
+
b.m("PATCH").h(headers).b(body);
|
|
480
|
+
return b.build();
|
|
481
|
+
}, "se_UpdateProbeCommand");
|
|
482
|
+
var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
+
return de_CreateMonitorCommandError(output, context);
|
|
485
|
+
}
|
|
486
|
+
const contents = (0, import_smithy_client.map)({
|
|
487
|
+
$metadata: deserializeMetadata(output)
|
|
488
|
+
});
|
|
489
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
490
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
491
|
+
aggregationPeriod: import_smithy_client.expectLong,
|
|
492
|
+
monitorArn: import_smithy_client.expectString,
|
|
493
|
+
monitorName: import_smithy_client.expectString,
|
|
494
|
+
state: import_smithy_client.expectString,
|
|
495
|
+
tags: import_smithy_client._json
|
|
496
|
+
});
|
|
497
|
+
Object.assign(contents, doc);
|
|
498
|
+
return contents;
|
|
499
|
+
}, "de_CreateMonitorCommand");
|
|
500
|
+
var de_CreateMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
501
|
+
const parsedOutput = {
|
|
502
|
+
...output,
|
|
503
|
+
body: await parseErrorBody(output.body, context)
|
|
504
|
+
};
|
|
505
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
+
switch (errorCode) {
|
|
507
|
+
case "AccessDeniedException":
|
|
508
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
509
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
+
case "ConflictException":
|
|
511
|
+
case "com.amazonaws.networkmonitor#ConflictException":
|
|
512
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
513
|
+
case "InternalServerException":
|
|
514
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
515
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
516
|
+
case "ServiceQuotaExceededException":
|
|
517
|
+
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
518
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
519
|
+
case "ThrottlingException":
|
|
520
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
521
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
522
|
+
case "ValidationException":
|
|
523
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
524
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
525
|
+
default:
|
|
526
|
+
const parsedBody = parsedOutput.body;
|
|
527
|
+
return throwDefaultError({
|
|
528
|
+
output,
|
|
529
|
+
parsedBody,
|
|
530
|
+
errorCode
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
}, "de_CreateMonitorCommandError");
|
|
534
|
+
var de_CreateProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
535
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
536
|
+
return de_CreateProbeCommandError(output, context);
|
|
537
|
+
}
|
|
538
|
+
const contents = (0, import_smithy_client.map)({
|
|
539
|
+
$metadata: deserializeMetadata(output)
|
|
540
|
+
});
|
|
541
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
542
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
543
|
+
addressFamily: import_smithy_client.expectString,
|
|
544
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
545
|
+
destination: import_smithy_client.expectString,
|
|
546
|
+
destinationPort: import_smithy_client.expectInt32,
|
|
547
|
+
modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
548
|
+
packetSize: import_smithy_client.expectInt32,
|
|
549
|
+
probeArn: import_smithy_client.expectString,
|
|
550
|
+
probeId: import_smithy_client.expectString,
|
|
551
|
+
protocol: import_smithy_client.expectString,
|
|
552
|
+
sourceArn: import_smithy_client.expectString,
|
|
553
|
+
state: import_smithy_client.expectString,
|
|
554
|
+
tags: import_smithy_client._json,
|
|
555
|
+
vpcId: import_smithy_client.expectString
|
|
556
|
+
});
|
|
557
|
+
Object.assign(contents, doc);
|
|
558
|
+
return contents;
|
|
559
|
+
}, "de_CreateProbeCommand");
|
|
560
|
+
var de_CreateProbeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
561
|
+
const parsedOutput = {
|
|
562
|
+
...output,
|
|
563
|
+
body: await parseErrorBody(output.body, context)
|
|
564
|
+
};
|
|
565
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
+
switch (errorCode) {
|
|
567
|
+
case "AccessDeniedException":
|
|
568
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
569
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
570
|
+
case "InternalServerException":
|
|
571
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
572
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
573
|
+
case "ResourceNotFoundException":
|
|
574
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
575
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
+
case "ServiceQuotaExceededException":
|
|
577
|
+
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
578
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
579
|
+
case "ThrottlingException":
|
|
580
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
581
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
582
|
+
case "ValidationException":
|
|
583
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
584
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
|
+
default:
|
|
586
|
+
const parsedBody = parsedOutput.body;
|
|
587
|
+
return throwDefaultError({
|
|
588
|
+
output,
|
|
589
|
+
parsedBody,
|
|
590
|
+
errorCode
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
}, "de_CreateProbeCommandError");
|
|
594
|
+
var de_DeleteMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
595
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
+
return de_DeleteMonitorCommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const contents = (0, import_smithy_client.map)({
|
|
599
|
+
$metadata: deserializeMetadata(output)
|
|
600
|
+
});
|
|
601
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
602
|
+
return contents;
|
|
603
|
+
}, "de_DeleteMonitorCommand");
|
|
604
|
+
var de_DeleteMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
605
|
+
const parsedOutput = {
|
|
606
|
+
...output,
|
|
607
|
+
body: await parseErrorBody(output.body, context)
|
|
608
|
+
};
|
|
609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
+
switch (errorCode) {
|
|
611
|
+
case "AccessDeniedException":
|
|
612
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
613
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
614
|
+
case "InternalServerException":
|
|
615
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
616
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
617
|
+
case "ResourceNotFoundException":
|
|
618
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
619
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
620
|
+
case "ThrottlingException":
|
|
621
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
622
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
623
|
+
case "ValidationException":
|
|
624
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
625
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
626
|
+
default:
|
|
627
|
+
const parsedBody = parsedOutput.body;
|
|
628
|
+
return throwDefaultError({
|
|
629
|
+
output,
|
|
630
|
+
parsedBody,
|
|
631
|
+
errorCode
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
}, "de_DeleteMonitorCommandError");
|
|
635
|
+
var de_DeleteProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
636
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
637
|
+
return de_DeleteProbeCommandError(output, context);
|
|
638
|
+
}
|
|
639
|
+
const contents = (0, import_smithy_client.map)({
|
|
640
|
+
$metadata: deserializeMetadata(output)
|
|
641
|
+
});
|
|
642
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
643
|
+
return contents;
|
|
644
|
+
}, "de_DeleteProbeCommand");
|
|
645
|
+
var de_DeleteProbeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
+
const parsedOutput = {
|
|
647
|
+
...output,
|
|
648
|
+
body: await parseErrorBody(output.body, context)
|
|
649
|
+
};
|
|
650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
+
switch (errorCode) {
|
|
652
|
+
case "AccessDeniedException":
|
|
653
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
654
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
655
|
+
case "InternalServerException":
|
|
656
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
657
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
658
|
+
case "ResourceNotFoundException":
|
|
659
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
660
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
661
|
+
case "ServiceQuotaExceededException":
|
|
662
|
+
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
663
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
664
|
+
case "ThrottlingException":
|
|
665
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
666
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
667
|
+
case "ValidationException":
|
|
668
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
669
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
670
|
+
default:
|
|
671
|
+
const parsedBody = parsedOutput.body;
|
|
672
|
+
return throwDefaultError({
|
|
673
|
+
output,
|
|
674
|
+
parsedBody,
|
|
675
|
+
errorCode
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
}, "de_DeleteProbeCommandError");
|
|
679
|
+
var de_GetMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
680
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
|
+
return de_GetMonitorCommandError(output, context);
|
|
682
|
+
}
|
|
683
|
+
const contents = (0, import_smithy_client.map)({
|
|
684
|
+
$metadata: deserializeMetadata(output)
|
|
685
|
+
});
|
|
686
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
687
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
688
|
+
aggregationPeriod: import_smithy_client.expectLong,
|
|
689
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
690
|
+
modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
691
|
+
monitorArn: import_smithy_client.expectString,
|
|
692
|
+
monitorName: import_smithy_client.expectString,
|
|
693
|
+
probes: (_) => de_ProbeList(_, context),
|
|
694
|
+
state: import_smithy_client.expectString,
|
|
695
|
+
tags: import_smithy_client._json
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
698
|
+
return contents;
|
|
699
|
+
}, "de_GetMonitorCommand");
|
|
700
|
+
var de_GetMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
701
|
+
const parsedOutput = {
|
|
702
|
+
...output,
|
|
703
|
+
body: await parseErrorBody(output.body, context)
|
|
704
|
+
};
|
|
705
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
706
|
+
switch (errorCode) {
|
|
707
|
+
case "AccessDeniedException":
|
|
708
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
709
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
710
|
+
case "InternalServerException":
|
|
711
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
712
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
713
|
+
case "ResourceNotFoundException":
|
|
714
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
715
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
716
|
+
case "ThrottlingException":
|
|
717
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
718
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
719
|
+
case "ValidationException":
|
|
720
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
721
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
722
|
+
default:
|
|
723
|
+
const parsedBody = parsedOutput.body;
|
|
724
|
+
return throwDefaultError({
|
|
725
|
+
output,
|
|
726
|
+
parsedBody,
|
|
727
|
+
errorCode
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
}, "de_GetMonitorCommandError");
|
|
731
|
+
var de_GetProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
732
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
733
|
+
return de_GetProbeCommandError(output, context);
|
|
734
|
+
}
|
|
735
|
+
const contents = (0, import_smithy_client.map)({
|
|
736
|
+
$metadata: deserializeMetadata(output)
|
|
737
|
+
});
|
|
738
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
739
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
740
|
+
addressFamily: import_smithy_client.expectString,
|
|
741
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
742
|
+
destination: import_smithy_client.expectString,
|
|
743
|
+
destinationPort: import_smithy_client.expectInt32,
|
|
744
|
+
modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
745
|
+
packetSize: import_smithy_client.expectInt32,
|
|
746
|
+
probeArn: import_smithy_client.expectString,
|
|
747
|
+
probeId: import_smithy_client.expectString,
|
|
748
|
+
protocol: import_smithy_client.expectString,
|
|
749
|
+
sourceArn: import_smithy_client.expectString,
|
|
750
|
+
state: import_smithy_client.expectString,
|
|
751
|
+
tags: import_smithy_client._json,
|
|
752
|
+
vpcId: import_smithy_client.expectString
|
|
753
|
+
});
|
|
754
|
+
Object.assign(contents, doc);
|
|
755
|
+
return contents;
|
|
756
|
+
}, "de_GetProbeCommand");
|
|
757
|
+
var de_GetProbeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
758
|
+
const parsedOutput = {
|
|
759
|
+
...output,
|
|
760
|
+
body: await parseErrorBody(output.body, context)
|
|
761
|
+
};
|
|
762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
+
switch (errorCode) {
|
|
764
|
+
case "AccessDeniedException":
|
|
765
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
766
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
767
|
+
case "InternalServerException":
|
|
768
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
769
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
770
|
+
case "ResourceNotFoundException":
|
|
771
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
772
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
773
|
+
case "ThrottlingException":
|
|
774
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
775
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
776
|
+
case "ValidationException":
|
|
777
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
778
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
779
|
+
default:
|
|
780
|
+
const parsedBody = parsedOutput.body;
|
|
781
|
+
return throwDefaultError({
|
|
782
|
+
output,
|
|
783
|
+
parsedBody,
|
|
784
|
+
errorCode
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
}, "de_GetProbeCommandError");
|
|
788
|
+
var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
+
return de_ListMonitorsCommandError(output, context);
|
|
791
|
+
}
|
|
792
|
+
const contents = (0, import_smithy_client.map)({
|
|
793
|
+
$metadata: deserializeMetadata(output)
|
|
794
|
+
});
|
|
795
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
796
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
797
|
+
monitors: import_smithy_client._json,
|
|
798
|
+
nextToken: import_smithy_client.expectString
|
|
799
|
+
});
|
|
800
|
+
Object.assign(contents, doc);
|
|
801
|
+
return contents;
|
|
802
|
+
}, "de_ListMonitorsCommand");
|
|
803
|
+
var de_ListMonitorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
804
|
+
const parsedOutput = {
|
|
805
|
+
...output,
|
|
806
|
+
body: await parseErrorBody(output.body, context)
|
|
807
|
+
};
|
|
808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
+
switch (errorCode) {
|
|
810
|
+
case "AccessDeniedException":
|
|
811
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
812
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
813
|
+
case "InternalServerException":
|
|
814
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
815
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
816
|
+
case "ThrottlingException":
|
|
817
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
818
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
819
|
+
case "ValidationException":
|
|
820
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
821
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
822
|
+
default:
|
|
823
|
+
const parsedBody = parsedOutput.body;
|
|
824
|
+
return throwDefaultError({
|
|
825
|
+
output,
|
|
826
|
+
parsedBody,
|
|
827
|
+
errorCode
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
}, "de_ListMonitorsCommandError");
|
|
831
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
832
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
834
|
+
}
|
|
835
|
+
const contents = (0, import_smithy_client.map)({
|
|
836
|
+
$metadata: deserializeMetadata(output)
|
|
837
|
+
});
|
|
838
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
839
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
840
|
+
tags: import_smithy_client._json
|
|
841
|
+
});
|
|
842
|
+
Object.assign(contents, doc);
|
|
843
|
+
return contents;
|
|
844
|
+
}, "de_ListTagsForResourceCommand");
|
|
845
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
+
const parsedOutput = {
|
|
847
|
+
...output,
|
|
848
|
+
body: await parseErrorBody(output.body, context)
|
|
849
|
+
};
|
|
850
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
+
switch (errorCode) {
|
|
852
|
+
case "AccessDeniedException":
|
|
853
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
854
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
855
|
+
case "ConflictException":
|
|
856
|
+
case "com.amazonaws.networkmonitor#ConflictException":
|
|
857
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
858
|
+
case "InternalServerException":
|
|
859
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
860
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
861
|
+
case "ResourceNotFoundException":
|
|
862
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
863
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
864
|
+
case "ThrottlingException":
|
|
865
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
866
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
867
|
+
case "ValidationException":
|
|
868
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
869
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
870
|
+
default:
|
|
871
|
+
const parsedBody = parsedOutput.body;
|
|
872
|
+
return throwDefaultError({
|
|
873
|
+
output,
|
|
874
|
+
parsedBody,
|
|
875
|
+
errorCode
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
}, "de_ListTagsForResourceCommandError");
|
|
879
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
880
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
881
|
+
return de_TagResourceCommandError(output, context);
|
|
882
|
+
}
|
|
883
|
+
const contents = (0, import_smithy_client.map)({
|
|
884
|
+
$metadata: deserializeMetadata(output)
|
|
885
|
+
});
|
|
886
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
887
|
+
return contents;
|
|
888
|
+
}, "de_TagResourceCommand");
|
|
889
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
|
+
const parsedOutput = {
|
|
891
|
+
...output,
|
|
892
|
+
body: await parseErrorBody(output.body, context)
|
|
893
|
+
};
|
|
894
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
+
switch (errorCode) {
|
|
896
|
+
case "AccessDeniedException":
|
|
897
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
898
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
899
|
+
case "ConflictException":
|
|
900
|
+
case "com.amazonaws.networkmonitor#ConflictException":
|
|
901
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
902
|
+
case "InternalServerException":
|
|
903
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
904
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
905
|
+
case "ResourceNotFoundException":
|
|
906
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
907
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
908
|
+
case "ThrottlingException":
|
|
909
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
910
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
911
|
+
case "ValidationException":
|
|
912
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
913
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
|
+
default:
|
|
915
|
+
const parsedBody = parsedOutput.body;
|
|
916
|
+
return throwDefaultError({
|
|
917
|
+
output,
|
|
918
|
+
parsedBody,
|
|
919
|
+
errorCode
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
}, "de_TagResourceCommandError");
|
|
923
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
924
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
|
+
return de_UntagResourceCommandError(output, context);
|
|
926
|
+
}
|
|
927
|
+
const contents = (0, import_smithy_client.map)({
|
|
928
|
+
$metadata: deserializeMetadata(output)
|
|
929
|
+
});
|
|
930
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
931
|
+
return contents;
|
|
932
|
+
}, "de_UntagResourceCommand");
|
|
933
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
|
+
const parsedOutput = {
|
|
935
|
+
...output,
|
|
936
|
+
body: await parseErrorBody(output.body, context)
|
|
937
|
+
};
|
|
938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
+
switch (errorCode) {
|
|
940
|
+
case "AccessDeniedException":
|
|
941
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
942
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
943
|
+
case "ConflictException":
|
|
944
|
+
case "com.amazonaws.networkmonitor#ConflictException":
|
|
945
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
946
|
+
case "InternalServerException":
|
|
947
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
948
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
949
|
+
case "ResourceNotFoundException":
|
|
950
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
951
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
+
case "ThrottlingException":
|
|
953
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
954
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
955
|
+
case "ValidationException":
|
|
956
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
957
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
958
|
+
default:
|
|
959
|
+
const parsedBody = parsedOutput.body;
|
|
960
|
+
return throwDefaultError({
|
|
961
|
+
output,
|
|
962
|
+
parsedBody,
|
|
963
|
+
errorCode
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
}, "de_UntagResourceCommandError");
|
|
967
|
+
var de_UpdateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
969
|
+
return de_UpdateMonitorCommandError(output, context);
|
|
970
|
+
}
|
|
971
|
+
const contents = (0, import_smithy_client.map)({
|
|
972
|
+
$metadata: deserializeMetadata(output)
|
|
973
|
+
});
|
|
974
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
975
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
976
|
+
aggregationPeriod: import_smithy_client.expectLong,
|
|
977
|
+
monitorArn: import_smithy_client.expectString,
|
|
978
|
+
monitorName: import_smithy_client.expectString,
|
|
979
|
+
state: import_smithy_client.expectString,
|
|
980
|
+
tags: import_smithy_client._json
|
|
981
|
+
});
|
|
982
|
+
Object.assign(contents, doc);
|
|
983
|
+
return contents;
|
|
984
|
+
}, "de_UpdateMonitorCommand");
|
|
985
|
+
var de_UpdateMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
986
|
+
const parsedOutput = {
|
|
987
|
+
...output,
|
|
988
|
+
body: await parseErrorBody(output.body, context)
|
|
989
|
+
};
|
|
990
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
+
switch (errorCode) {
|
|
992
|
+
case "AccessDeniedException":
|
|
993
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
994
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
995
|
+
case "InternalServerException":
|
|
996
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
997
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
998
|
+
case "ResourceNotFoundException":
|
|
999
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
1000
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
+
case "ServiceQuotaExceededException":
|
|
1002
|
+
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
1003
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "ThrottlingException":
|
|
1005
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
1006
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "ValidationException":
|
|
1008
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
1009
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1010
|
+
default:
|
|
1011
|
+
const parsedBody = parsedOutput.body;
|
|
1012
|
+
return throwDefaultError({
|
|
1013
|
+
output,
|
|
1014
|
+
parsedBody,
|
|
1015
|
+
errorCode
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
}, "de_UpdateMonitorCommandError");
|
|
1019
|
+
var de_UpdateProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1020
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
|
+
return de_UpdateProbeCommandError(output, context);
|
|
1022
|
+
}
|
|
1023
|
+
const contents = (0, import_smithy_client.map)({
|
|
1024
|
+
$metadata: deserializeMetadata(output)
|
|
1025
|
+
});
|
|
1026
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1027
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1028
|
+
addressFamily: import_smithy_client.expectString,
|
|
1029
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1030
|
+
destination: import_smithy_client.expectString,
|
|
1031
|
+
destinationPort: import_smithy_client.expectInt32,
|
|
1032
|
+
modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1033
|
+
packetSize: import_smithy_client.expectInt32,
|
|
1034
|
+
probeArn: import_smithy_client.expectString,
|
|
1035
|
+
probeId: import_smithy_client.expectString,
|
|
1036
|
+
protocol: import_smithy_client.expectString,
|
|
1037
|
+
sourceArn: import_smithy_client.expectString,
|
|
1038
|
+
state: import_smithy_client.expectString,
|
|
1039
|
+
tags: import_smithy_client._json,
|
|
1040
|
+
vpcId: import_smithy_client.expectString
|
|
1041
|
+
});
|
|
1042
|
+
Object.assign(contents, doc);
|
|
1043
|
+
return contents;
|
|
1044
|
+
}, "de_UpdateProbeCommand");
|
|
1045
|
+
var de_UpdateProbeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
+
const parsedOutput = {
|
|
1047
|
+
...output,
|
|
1048
|
+
body: await parseErrorBody(output.body, context)
|
|
1049
|
+
};
|
|
1050
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
+
switch (errorCode) {
|
|
1052
|
+
case "AccessDeniedException":
|
|
1053
|
+
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
1054
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "InternalServerException":
|
|
1056
|
+
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
1057
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1058
|
+
case "ResourceNotFoundException":
|
|
1059
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
1060
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "ServiceQuotaExceededException":
|
|
1062
|
+
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
1063
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "ThrottlingException":
|
|
1065
|
+
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
1066
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "ValidationException":
|
|
1068
|
+
case "com.amazonaws.networkmonitor#ValidationException":
|
|
1069
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1070
|
+
default:
|
|
1071
|
+
const parsedBody = parsedOutput.body;
|
|
1072
|
+
return throwDefaultError({
|
|
1073
|
+
output,
|
|
1074
|
+
parsedBody,
|
|
1075
|
+
errorCode
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
}, "de_UpdateProbeCommandError");
|
|
1079
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(NetworkMonitorServiceException);
|
|
1080
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1081
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1082
|
+
const data = parsedOutput.body;
|
|
1083
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1084
|
+
message: import_smithy_client.expectString
|
|
1085
|
+
});
|
|
1086
|
+
Object.assign(contents, doc);
|
|
1087
|
+
const exception = new AccessDeniedException({
|
|
1088
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1089
|
+
...contents
|
|
1090
|
+
});
|
|
1091
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1092
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1093
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1094
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1095
|
+
const data = parsedOutput.body;
|
|
1096
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1097
|
+
message: import_smithy_client.expectString
|
|
1098
|
+
});
|
|
1099
|
+
Object.assign(contents, doc);
|
|
1100
|
+
const exception = new ConflictException({
|
|
1101
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1102
|
+
...contents
|
|
1103
|
+
});
|
|
1104
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1105
|
+
}, "de_ConflictExceptionRes");
|
|
1106
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1107
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1108
|
+
const data = parsedOutput.body;
|
|
1109
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1110
|
+
message: import_smithy_client.expectString
|
|
1111
|
+
});
|
|
1112
|
+
Object.assign(contents, doc);
|
|
1113
|
+
const exception = new InternalServerException({
|
|
1114
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1115
|
+
...contents
|
|
1116
|
+
});
|
|
1117
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1118
|
+
}, "de_InternalServerExceptionRes");
|
|
1119
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1120
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1121
|
+
const data = parsedOutput.body;
|
|
1122
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1123
|
+
message: import_smithy_client.expectString
|
|
1124
|
+
});
|
|
1125
|
+
Object.assign(contents, doc);
|
|
1126
|
+
const exception = new ResourceNotFoundException({
|
|
1127
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1128
|
+
...contents
|
|
1129
|
+
});
|
|
1130
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1131
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1132
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1133
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1134
|
+
const data = parsedOutput.body;
|
|
1135
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1136
|
+
message: import_smithy_client.expectString
|
|
1137
|
+
});
|
|
1138
|
+
Object.assign(contents, doc);
|
|
1139
|
+
const exception = new ServiceQuotaExceededException({
|
|
1140
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1141
|
+
...contents
|
|
1142
|
+
});
|
|
1143
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1144
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1145
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1146
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1147
|
+
const data = parsedOutput.body;
|
|
1148
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1149
|
+
message: import_smithy_client.expectString
|
|
1150
|
+
});
|
|
1151
|
+
Object.assign(contents, doc);
|
|
1152
|
+
const exception = new ThrottlingException({
|
|
1153
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1154
|
+
...contents
|
|
1155
|
+
});
|
|
1156
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1157
|
+
}, "de_ThrottlingExceptionRes");
|
|
1158
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1159
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1160
|
+
const data = parsedOutput.body;
|
|
1161
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1162
|
+
message: import_smithy_client.expectString
|
|
1163
|
+
});
|
|
1164
|
+
Object.assign(contents, doc);
|
|
1165
|
+
const exception = new ValidationException({
|
|
1166
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1167
|
+
...contents
|
|
1168
|
+
});
|
|
1169
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1170
|
+
}, "de_ValidationExceptionRes");
|
|
1171
|
+
var de_Probe = /* @__PURE__ */ __name((output, context) => {
|
|
1172
|
+
return (0, import_smithy_client.take)(output, {
|
|
1173
|
+
addressFamily: import_smithy_client.expectString,
|
|
1174
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1175
|
+
destination: import_smithy_client.expectString,
|
|
1176
|
+
destinationPort: import_smithy_client.expectInt32,
|
|
1177
|
+
modifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1178
|
+
packetSize: import_smithy_client.expectInt32,
|
|
1179
|
+
probeArn: import_smithy_client.expectString,
|
|
1180
|
+
probeId: import_smithy_client.expectString,
|
|
1181
|
+
protocol: import_smithy_client.expectString,
|
|
1182
|
+
sourceArn: import_smithy_client.expectString,
|
|
1183
|
+
state: import_smithy_client.expectString,
|
|
1184
|
+
tags: import_smithy_client._json,
|
|
1185
|
+
vpcId: import_smithy_client.expectString
|
|
1186
|
+
});
|
|
1187
|
+
}, "de_Probe");
|
|
1188
|
+
var de_ProbeList = /* @__PURE__ */ __name((output, context) => {
|
|
1189
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1190
|
+
return de_Probe(entry, context);
|
|
1191
|
+
});
|
|
1192
|
+
return retVal;
|
|
1193
|
+
}, "de_ProbeList");
|
|
1194
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1195
|
+
httpStatusCode: output.statusCode,
|
|
1196
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1197
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1198
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1199
|
+
}), "deserializeMetadata");
|
|
1200
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1201
|
+
var _mR = "maxResults";
|
|
1202
|
+
var _nT = "nextToken";
|
|
1203
|
+
var _s = "state";
|
|
1204
|
+
var _tK = "tagKeys";
|
|
1205
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1206
|
+
if (encoded.length) {
|
|
1207
|
+
return JSON.parse(encoded);
|
|
1208
|
+
}
|
|
1209
|
+
return {};
|
|
1210
|
+
}), "parseBody");
|
|
1211
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1212
|
+
const value = await parseBody(errorBody, context);
|
|
1213
|
+
value.message = value.message ?? value.Message;
|
|
1214
|
+
return value;
|
|
1215
|
+
}, "parseErrorBody");
|
|
1216
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1217
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1218
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1219
|
+
let cleanValue = rawValue;
|
|
1220
|
+
if (typeof cleanValue === "number") {
|
|
1221
|
+
cleanValue = cleanValue.toString();
|
|
1222
|
+
}
|
|
1223
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1224
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1225
|
+
}
|
|
1226
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1227
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1228
|
+
}
|
|
1229
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1230
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1231
|
+
}
|
|
1232
|
+
return cleanValue;
|
|
1233
|
+
}, "sanitizeErrorCode");
|
|
1234
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1235
|
+
if (headerKey !== void 0) {
|
|
1236
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1237
|
+
}
|
|
1238
|
+
if (data.code !== void 0) {
|
|
1239
|
+
return sanitizeErrorCode(data.code);
|
|
1240
|
+
}
|
|
1241
|
+
if (data["__type"] !== void 0) {
|
|
1242
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1243
|
+
}
|
|
1244
|
+
}, "loadRestJsonErrorCode");
|
|
1245
|
+
|
|
1246
|
+
// src/commands/CreateMonitorCommand.ts
|
|
1247
|
+
var _CreateMonitorCommand = class _CreateMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1248
|
+
...commonParams
|
|
1249
|
+
}).m(function(Command, cs, config, o) {
|
|
1250
|
+
return [
|
|
1251
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1252
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1253
|
+
];
|
|
1254
|
+
}).s("NetworkMonitor", "CreateMonitor", {}).n("NetworkMonitorClient", "CreateMonitorCommand").f(void 0, void 0).ser(se_CreateMonitorCommand).de(de_CreateMonitorCommand).build() {
|
|
1255
|
+
};
|
|
1256
|
+
__name(_CreateMonitorCommand, "CreateMonitorCommand");
|
|
1257
|
+
var CreateMonitorCommand = _CreateMonitorCommand;
|
|
1258
|
+
|
|
1259
|
+
// src/commands/CreateProbeCommand.ts
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
var _CreateProbeCommand = class _CreateProbeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1265
|
+
...commonParams
|
|
1266
|
+
}).m(function(Command, cs, config, o) {
|
|
1267
|
+
return [
|
|
1268
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1269
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1270
|
+
];
|
|
1271
|
+
}).s("NetworkMonitor", "CreateProbe", {}).n("NetworkMonitorClient", "CreateProbeCommand").f(void 0, void 0).ser(se_CreateProbeCommand).de(de_CreateProbeCommand).build() {
|
|
1272
|
+
};
|
|
1273
|
+
__name(_CreateProbeCommand, "CreateProbeCommand");
|
|
1274
|
+
var CreateProbeCommand = _CreateProbeCommand;
|
|
1275
|
+
|
|
1276
|
+
// src/commands/DeleteMonitorCommand.ts
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
var _DeleteMonitorCommand = class _DeleteMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1282
|
+
...commonParams
|
|
1283
|
+
}).m(function(Command, cs, config, o) {
|
|
1284
|
+
return [
|
|
1285
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1286
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1287
|
+
];
|
|
1288
|
+
}).s("NetworkMonitor", "DeleteMonitor", {}).n("NetworkMonitorClient", "DeleteMonitorCommand").f(void 0, void 0).ser(se_DeleteMonitorCommand).de(de_DeleteMonitorCommand).build() {
|
|
1289
|
+
};
|
|
1290
|
+
__name(_DeleteMonitorCommand, "DeleteMonitorCommand");
|
|
1291
|
+
var DeleteMonitorCommand = _DeleteMonitorCommand;
|
|
1292
|
+
|
|
1293
|
+
// src/commands/DeleteProbeCommand.ts
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
var _DeleteProbeCommand = class _DeleteProbeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1299
|
+
...commonParams
|
|
1300
|
+
}).m(function(Command, cs, config, o) {
|
|
1301
|
+
return [
|
|
1302
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1303
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1304
|
+
];
|
|
1305
|
+
}).s("NetworkMonitor", "DeleteProbe", {}).n("NetworkMonitorClient", "DeleteProbeCommand").f(void 0, void 0).ser(se_DeleteProbeCommand).de(de_DeleteProbeCommand).build() {
|
|
1306
|
+
};
|
|
1307
|
+
__name(_DeleteProbeCommand, "DeleteProbeCommand");
|
|
1308
|
+
var DeleteProbeCommand = _DeleteProbeCommand;
|
|
1309
|
+
|
|
1310
|
+
// src/commands/GetMonitorCommand.ts
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
var _GetMonitorCommand = class _GetMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1316
|
+
...commonParams
|
|
1317
|
+
}).m(function(Command, cs, config, o) {
|
|
1318
|
+
return [
|
|
1319
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1320
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1321
|
+
];
|
|
1322
|
+
}).s("NetworkMonitor", "GetMonitor", {}).n("NetworkMonitorClient", "GetMonitorCommand").f(void 0, void 0).ser(se_GetMonitorCommand).de(de_GetMonitorCommand).build() {
|
|
1323
|
+
};
|
|
1324
|
+
__name(_GetMonitorCommand, "GetMonitorCommand");
|
|
1325
|
+
var GetMonitorCommand = _GetMonitorCommand;
|
|
1326
|
+
|
|
1327
|
+
// src/commands/GetProbeCommand.ts
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
var _GetProbeCommand = class _GetProbeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1333
|
+
...commonParams
|
|
1334
|
+
}).m(function(Command, cs, config, o) {
|
|
1335
|
+
return [
|
|
1336
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1337
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1338
|
+
];
|
|
1339
|
+
}).s("NetworkMonitor", "GetProbe", {}).n("NetworkMonitorClient", "GetProbeCommand").f(void 0, void 0).ser(se_GetProbeCommand).de(de_GetProbeCommand).build() {
|
|
1340
|
+
};
|
|
1341
|
+
__name(_GetProbeCommand, "GetProbeCommand");
|
|
1342
|
+
var GetProbeCommand = _GetProbeCommand;
|
|
1343
|
+
|
|
1344
|
+
// src/commands/ListMonitorsCommand.ts
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
var _ListMonitorsCommand = class _ListMonitorsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1350
|
+
...commonParams
|
|
1351
|
+
}).m(function(Command, cs, config, o) {
|
|
1352
|
+
return [
|
|
1353
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1354
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1355
|
+
];
|
|
1356
|
+
}).s("NetworkMonitor", "ListMonitors", {}).n("NetworkMonitorClient", "ListMonitorsCommand").f(void 0, void 0).ser(se_ListMonitorsCommand).de(de_ListMonitorsCommand).build() {
|
|
1357
|
+
};
|
|
1358
|
+
__name(_ListMonitorsCommand, "ListMonitorsCommand");
|
|
1359
|
+
var ListMonitorsCommand = _ListMonitorsCommand;
|
|
1360
|
+
|
|
1361
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1367
|
+
...commonParams
|
|
1368
|
+
}).m(function(Command, cs, config, o) {
|
|
1369
|
+
return [
|
|
1370
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1371
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1372
|
+
];
|
|
1373
|
+
}).s("NetworkMonitor", "ListTagsForResource", {}).n("NetworkMonitorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1374
|
+
};
|
|
1375
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1376
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1377
|
+
|
|
1378
|
+
// src/commands/TagResourceCommand.ts
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1384
|
+
...commonParams
|
|
1385
|
+
}).m(function(Command, cs, config, o) {
|
|
1386
|
+
return [
|
|
1387
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1388
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1389
|
+
];
|
|
1390
|
+
}).s("NetworkMonitor", "TagResource", {}).n("NetworkMonitorClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1391
|
+
};
|
|
1392
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1393
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1394
|
+
|
|
1395
|
+
// src/commands/UntagResourceCommand.ts
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1401
|
+
...commonParams
|
|
1402
|
+
}).m(function(Command, cs, config, o) {
|
|
1403
|
+
return [
|
|
1404
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1405
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1406
|
+
];
|
|
1407
|
+
}).s("NetworkMonitor", "UntagResource", {}).n("NetworkMonitorClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1408
|
+
};
|
|
1409
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1410
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1411
|
+
|
|
1412
|
+
// src/commands/UpdateMonitorCommand.ts
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
var _UpdateMonitorCommand = class _UpdateMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1418
|
+
...commonParams
|
|
1419
|
+
}).m(function(Command, cs, config, o) {
|
|
1420
|
+
return [
|
|
1421
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1422
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1423
|
+
];
|
|
1424
|
+
}).s("NetworkMonitor", "UpdateMonitor", {}).n("NetworkMonitorClient", "UpdateMonitorCommand").f(void 0, void 0).ser(se_UpdateMonitorCommand).de(de_UpdateMonitorCommand).build() {
|
|
1425
|
+
};
|
|
1426
|
+
__name(_UpdateMonitorCommand, "UpdateMonitorCommand");
|
|
1427
|
+
var UpdateMonitorCommand = _UpdateMonitorCommand;
|
|
1428
|
+
|
|
1429
|
+
// src/commands/UpdateProbeCommand.ts
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
var _UpdateProbeCommand = class _UpdateProbeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1435
|
+
...commonParams
|
|
1436
|
+
}).m(function(Command, cs, config, o) {
|
|
1437
|
+
return [
|
|
1438
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1439
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1440
|
+
];
|
|
1441
|
+
}).s("NetworkMonitor", "UpdateProbe", {}).n("NetworkMonitorClient", "UpdateProbeCommand").f(void 0, void 0).ser(se_UpdateProbeCommand).de(de_UpdateProbeCommand).build() {
|
|
1442
|
+
};
|
|
1443
|
+
__name(_UpdateProbeCommand, "UpdateProbeCommand");
|
|
1444
|
+
var UpdateProbeCommand = _UpdateProbeCommand;
|
|
1445
|
+
|
|
1446
|
+
// src/NetworkMonitor.ts
|
|
1447
|
+
var commands = {
|
|
1448
|
+
CreateMonitorCommand,
|
|
1449
|
+
CreateProbeCommand,
|
|
1450
|
+
DeleteMonitorCommand,
|
|
1451
|
+
DeleteProbeCommand,
|
|
1452
|
+
GetMonitorCommand,
|
|
1453
|
+
GetProbeCommand,
|
|
1454
|
+
ListMonitorsCommand,
|
|
1455
|
+
ListTagsForResourceCommand,
|
|
1456
|
+
TagResourceCommand,
|
|
1457
|
+
UntagResourceCommand,
|
|
1458
|
+
UpdateMonitorCommand,
|
|
1459
|
+
UpdateProbeCommand
|
|
1460
|
+
};
|
|
1461
|
+
var _NetworkMonitor = class _NetworkMonitor extends NetworkMonitorClient {
|
|
1462
|
+
};
|
|
1463
|
+
__name(_NetworkMonitor, "NetworkMonitor");
|
|
1464
|
+
var NetworkMonitor = _NetworkMonitor;
|
|
1465
|
+
(0, import_smithy_client.createAggregatedClient)(commands, NetworkMonitor);
|
|
1466
|
+
|
|
1467
|
+
// src/pagination/ListMonitorsPaginator.ts
|
|
1468
|
+
|
|
1469
|
+
var paginateListMonitors = (0, import_core.createPaginator)(NetworkMonitorClient, ListMonitorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1470
|
+
|
|
1471
|
+
// src/index.ts
|
|
1472
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1473
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1474
|
+
0 && (module.exports = {
|
|
1475
|
+
AccessDeniedException,
|
|
1476
|
+
AddressFamily,
|
|
1477
|
+
ConflictException,
|
|
1478
|
+
CreateMonitorCommand,
|
|
1479
|
+
CreateProbeCommand,
|
|
1480
|
+
DeleteMonitorCommand,
|
|
1481
|
+
DeleteProbeCommand,
|
|
1482
|
+
GetMonitorCommand,
|
|
1483
|
+
GetProbeCommand,
|
|
1484
|
+
InternalServerException,
|
|
1485
|
+
ListMonitorsCommand,
|
|
1486
|
+
ListTagsForResourceCommand,
|
|
1487
|
+
MonitorState,
|
|
1488
|
+
NetworkMonitor,
|
|
1489
|
+
NetworkMonitorClient,
|
|
1490
|
+
NetworkMonitorServiceException,
|
|
1491
|
+
ProbeState,
|
|
1492
|
+
Protocol,
|
|
1493
|
+
ResourceNotFoundException,
|
|
1494
|
+
ServiceQuotaExceededException,
|
|
1495
|
+
TagResourceCommand,
|
|
1496
|
+
ThrottlingException,
|
|
1497
|
+
UntagResourceCommand,
|
|
1498
|
+
UpdateMonitorCommand,
|
|
1499
|
+
UpdateProbeCommand,
|
|
1500
|
+
ValidationException,
|
|
1501
|
+
__Client,
|
|
1502
|
+
paginateListMonitors
|
|
1503
|
+
});
|