@aws-sdk/client-networkmonitor 3.987.0 → 3.988.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.
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const NetworkMonitorServiceException_1 = require("./NetworkMonitorServiceException");
5
+ class AccessDeniedException extends NetworkMonitorServiceException_1.NetworkMonitorServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends NetworkMonitorServiceException_1.NetworkMonitorServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ class InternalServerException extends NetworkMonitorServiceException_1.NetworkMonitorServiceException {
32
+ name = "InternalServerException";
33
+ $fault = "server";
34
+ $retryable = {};
35
+ constructor(opts) {
36
+ super({
37
+ name: "InternalServerException",
38
+ $fault: "server",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, InternalServerException.prototype);
42
+ }
43
+ }
44
+ exports.InternalServerException = InternalServerException;
45
+ class ServiceQuotaExceededException extends NetworkMonitorServiceException_1.NetworkMonitorServiceException {
46
+ name = "ServiceQuotaExceededException";
47
+ $fault = "client";
48
+ constructor(opts) {
49
+ super({
50
+ name: "ServiceQuotaExceededException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
55
+ }
56
+ }
57
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
58
+ class ThrottlingException extends NetworkMonitorServiceException_1.NetworkMonitorServiceException {
59
+ name = "ThrottlingException";
60
+ $fault = "client";
61
+ $retryable = {
62
+ throttling: true,
63
+ };
64
+ constructor(opts) {
65
+ super({
66
+ name: "ThrottlingException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
71
+ }
72
+ }
73
+ exports.ThrottlingException = ThrottlingException;
74
+ class ValidationException extends NetworkMonitorServiceException_1.NetworkMonitorServiceException {
75
+ name = "ValidationException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "ValidationException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, ValidationException.prototype);
84
+ }
85
+ }
86
+ exports.ValidationException = ValidationException;
87
+ class ResourceNotFoundException extends NetworkMonitorServiceException_1.NetworkMonitorServiceException {
88
+ name = "ResourceNotFoundException";
89
+ $fault = "client";
90
+ constructor(opts) {
91
+ super({
92
+ name: "ResourceNotFoundException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
97
+ }
98
+ }
99
+ exports.ResourceNotFoundException = ResourceNotFoundException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2023-08-01",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.networkmonitor",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2023-08-01",
33
35
  serviceTarget: "NetworkMonitor",
34
36
  },
@@ -0,0 +1,327 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateProbe$ = exports.UpdateMonitor$ = exports.UntagResource$ = exports.TagResource$ = exports.ListTagsForResource$ = exports.ListMonitors$ = exports.GetProbe$ = exports.GetMonitor$ = exports.DeleteProbe$ = exports.DeleteMonitor$ = exports.CreateProbe$ = exports.CreateMonitor$ = exports.UpdateProbeOutput$ = exports.UpdateProbeInput$ = exports.UpdateMonitorOutput$ = exports.UpdateMonitorInput$ = exports.UntagResourceOutput$ = exports.UntagResourceInput$ = exports.TagResourceOutput$ = exports.TagResourceInput$ = exports.ProbeInput$ = exports.Probe$ = exports.MonitorSummary$ = exports.ListTagsForResourceOutput$ = exports.ListTagsForResourceInput$ = exports.ListMonitorsOutput$ = exports.ListMonitorsInput$ = exports.GetProbeOutput$ = exports.GetProbeInput$ = exports.GetMonitorOutput$ = exports.GetMonitorInput$ = exports.DeleteProbeOutput$ = exports.DeleteProbeInput$ = exports.DeleteMonitorOutput$ = exports.DeleteMonitorInput$ = exports.CreateProbeOutput$ = exports.CreateProbeInput$ = exports.CreateMonitorProbeInput$ = exports.CreateMonitorOutput$ = exports.CreateMonitorInput$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.NetworkMonitorServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _CE = "ConflictException";
6
+ const _CM = "CreateMonitor";
7
+ const _CMI = "CreateMonitorInput";
8
+ const _CMO = "CreateMonitorOutput";
9
+ const _CMPI = "CreateMonitorProbeInput";
10
+ const _CMPIL = "CreateMonitorProbeInputList";
11
+ const _CP = "CreateProbe";
12
+ const _CPI = "CreateProbeInput";
13
+ const _CPO = "CreateProbeOutput";
14
+ const _DM = "DeleteMonitor";
15
+ const _DMI = "DeleteMonitorInput";
16
+ const _DMO = "DeleteMonitorOutput";
17
+ const _DP = "DeleteProbe";
18
+ const _DPI = "DeleteProbeInput";
19
+ const _DPO = "DeleteProbeOutput";
20
+ const _GM = "GetMonitor";
21
+ const _GMI = "GetMonitorInput";
22
+ const _GMO = "GetMonitorOutput";
23
+ const _GP = "GetProbe";
24
+ const _GPI = "GetProbeInput";
25
+ const _GPO = "GetProbeOutput";
26
+ const _ISE = "InternalServerException";
27
+ const _LM = "ListMonitors";
28
+ const _LMI = "ListMonitorsInput";
29
+ const _LMO = "ListMonitorsOutput";
30
+ const _LTFR = "ListTagsForResource";
31
+ const _LTFRI = "ListTagsForResourceInput";
32
+ const _LTFRO = "ListTagsForResourceOutput";
33
+ const _ML = "MonitorList";
34
+ const _MS = "MonitorSummary";
35
+ const _P = "Probe";
36
+ const _PI = "ProbeInput";
37
+ const _PL = "ProbeList";
38
+ const _RNFE = "ResourceNotFoundException";
39
+ const _SQEE = "ServiceQuotaExceededException";
40
+ const _TE = "ThrottlingException";
41
+ const _TR = "TagResource";
42
+ const _TRI = "TagResourceInput";
43
+ const _TRO = "TagResourceOutput";
44
+ const _UM = "UpdateMonitor";
45
+ const _UMI = "UpdateMonitorInput";
46
+ const _UMO = "UpdateMonitorOutput";
47
+ const _UP = "UpdateProbe";
48
+ const _UPI = "UpdateProbeInput";
49
+ const _UPO = "UpdateProbeOutput";
50
+ const _UR = "UntagResource";
51
+ const _URI = "UntagResourceInput";
52
+ const _URO = "UntagResourceOutput";
53
+ const _VE = "ValidationException";
54
+ const _aF = "addressFamily";
55
+ const _aP = "aggregationPeriod";
56
+ const _c = "client";
57
+ const _cA = "createdAt";
58
+ const _cT = "clientToken";
59
+ const _d = "destination";
60
+ const _dP = "destinationPort";
61
+ const _e = "error";
62
+ const _h = "http";
63
+ const _hE = "httpError";
64
+ const _hQ = "httpQuery";
65
+ const _m = "message";
66
+ const _mA = "monitorArn";
67
+ const _mAo = "modifiedAt";
68
+ const _mN = "monitorName";
69
+ const _mR = "maxResults";
70
+ const _mo = "monitors";
71
+ const _nT = "nextToken";
72
+ const _p = "probes";
73
+ const _pA = "probeArn";
74
+ const _pI = "probeId";
75
+ const _pS = "packetSize";
76
+ const _pT = "probeTags";
77
+ const _pr = "protocol";
78
+ const _pro = "probe";
79
+ const _rA = "resourceArn";
80
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.networkmonitor";
81
+ const _sA = "sourceArn";
82
+ const _se = "server";
83
+ const _st = "state";
84
+ const _t = "tags";
85
+ const _tK = "tagKeys";
86
+ const _vI = "vpcId";
87
+ const n0 = "com.amazonaws.networkmonitor";
88
+ const schema_1 = require("@smithy/core/schema");
89
+ const errors_1 = require("../models/errors");
90
+ const NetworkMonitorServiceException_1 = require("../models/NetworkMonitorServiceException");
91
+ const _s_registry = schema_1.TypeRegistry.for(_s);
92
+ exports.NetworkMonitorServiceException$ = [-3, _s, "NetworkMonitorServiceException", 0, [], []];
93
+ _s_registry.registerError(exports.NetworkMonitorServiceException$, NetworkMonitorServiceException_1.NetworkMonitorServiceException);
94
+ const n0_registry = schema_1.TypeRegistry.for(n0);
95
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
96
+ { [_e]: _c, [_hE]: 403 },
97
+ [_m],
98
+ [0]
99
+ ];
100
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
101
+ exports.ConflictException$ = [-3, n0, _CE,
102
+ { [_e]: _c, [_hE]: 409 },
103
+ [_m],
104
+ [0]
105
+ ];
106
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
107
+ exports.InternalServerException$ = [-3, n0, _ISE,
108
+ { [_e]: _se, [_hE]: 500 },
109
+ [_m],
110
+ [0]
111
+ ];
112
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
113
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
114
+ { [_e]: _c, [_hE]: 404 },
115
+ [_m],
116
+ [0]
117
+ ];
118
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
119
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
120
+ { [_e]: _c, [_hE]: 402 },
121
+ [_m],
122
+ [0]
123
+ ];
124
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
125
+ exports.ThrottlingException$ = [-3, n0, _TE,
126
+ { [_e]: _c, [_hE]: 429 },
127
+ [_m],
128
+ [0]
129
+ ];
130
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
131
+ exports.ValidationException$ = [-3, n0, _VE,
132
+ { [_e]: _c, [_hE]: 400 },
133
+ [_m],
134
+ [0]
135
+ ];
136
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
137
+ exports.errorTypeRegistries = [
138
+ _s_registry,
139
+ n0_registry,
140
+ ];
141
+ exports.CreateMonitorInput$ = [3, n0, _CMI,
142
+ 0,
143
+ [_mN, _p, _aP, _cT, _t],
144
+ [0, () => CreateMonitorProbeInputList, 1, [0, 4], 128 | 0], 1
145
+ ];
146
+ exports.CreateMonitorOutput$ = [3, n0, _CMO,
147
+ 0,
148
+ [_mA, _mN, _st, _aP, _t],
149
+ [0, 0, 0, 1, 128 | 0], 3
150
+ ];
151
+ exports.CreateMonitorProbeInput$ = [3, n0, _CMPI,
152
+ 0,
153
+ [_sA, _d, _pr, _dP, _pS, _pT],
154
+ [0, 0, 0, 1, 1, 128 | 0], 3
155
+ ];
156
+ exports.CreateProbeInput$ = [3, n0, _CPI,
157
+ 0,
158
+ [_mN, _pro, _cT, _t],
159
+ [[0, 1], () => exports.ProbeInput$, [0, 4], 128 | 0], 2
160
+ ];
161
+ exports.CreateProbeOutput$ = [3, n0, _CPO,
162
+ 0,
163
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
164
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
165
+ ];
166
+ exports.DeleteMonitorInput$ = [3, n0, _DMI,
167
+ 0,
168
+ [_mN],
169
+ [[0, 1]], 1
170
+ ];
171
+ exports.DeleteMonitorOutput$ = [3, n0, _DMO,
172
+ 0,
173
+ [],
174
+ []
175
+ ];
176
+ exports.DeleteProbeInput$ = [3, n0, _DPI,
177
+ 0,
178
+ [_mN, _pI],
179
+ [[0, 1], [0, 1]], 2
180
+ ];
181
+ exports.DeleteProbeOutput$ = [3, n0, _DPO,
182
+ 0,
183
+ [],
184
+ []
185
+ ];
186
+ exports.GetMonitorInput$ = [3, n0, _GMI,
187
+ 0,
188
+ [_mN],
189
+ [[0, 1]], 1
190
+ ];
191
+ exports.GetMonitorOutput$ = [3, n0, _GMO,
192
+ 0,
193
+ [_mA, _mN, _st, _aP, _cA, _mAo, _t, _p],
194
+ [0, 0, 0, 1, 4, 4, 128 | 0, () => ProbeList], 6
195
+ ];
196
+ exports.GetProbeInput$ = [3, n0, _GPI,
197
+ 0,
198
+ [_mN, _pI],
199
+ [[0, 1], [0, 1]], 2
200
+ ];
201
+ exports.GetProbeOutput$ = [3, n0, _GPO,
202
+ 0,
203
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
204
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
205
+ ];
206
+ exports.ListMonitorsInput$ = [3, n0, _LMI,
207
+ 0,
208
+ [_nT, _mR, _st],
209
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }]]
210
+ ];
211
+ exports.ListMonitorsOutput$ = [3, n0, _LMO,
212
+ 0,
213
+ [_mo, _nT],
214
+ [() => MonitorList, 0], 1
215
+ ];
216
+ exports.ListTagsForResourceInput$ = [3, n0, _LTFRI,
217
+ 0,
218
+ [_rA],
219
+ [[0, 1]], 1
220
+ ];
221
+ exports.ListTagsForResourceOutput$ = [3, n0, _LTFRO,
222
+ 0,
223
+ [_t],
224
+ [128 | 0]
225
+ ];
226
+ exports.MonitorSummary$ = [3, n0, _MS,
227
+ 0,
228
+ [_mA, _mN, _st, _aP, _t],
229
+ [0, 0, 0, 1, 128 | 0], 3
230
+ ];
231
+ exports.Probe$ = [3, n0, _P,
232
+ 0,
233
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
234
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
235
+ ];
236
+ exports.ProbeInput$ = [3, n0, _PI,
237
+ 0,
238
+ [_sA, _d, _pr, _dP, _pS, _t],
239
+ [0, 0, 0, 1, 1, 128 | 0], 3
240
+ ];
241
+ exports.TagResourceInput$ = [3, n0, _TRI,
242
+ 0,
243
+ [_rA, _t],
244
+ [[0, 1], 128 | 0], 2
245
+ ];
246
+ exports.TagResourceOutput$ = [3, n0, _TRO,
247
+ 0,
248
+ [],
249
+ []
250
+ ];
251
+ exports.UntagResourceInput$ = [3, n0, _URI,
252
+ 0,
253
+ [_rA, _tK],
254
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
255
+ ];
256
+ exports.UntagResourceOutput$ = [3, n0, _URO,
257
+ 0,
258
+ [],
259
+ []
260
+ ];
261
+ exports.UpdateMonitorInput$ = [3, n0, _UMI,
262
+ 0,
263
+ [_mN, _aP],
264
+ [[0, 1], 1], 2
265
+ ];
266
+ exports.UpdateMonitorOutput$ = [3, n0, _UMO,
267
+ 0,
268
+ [_mA, _mN, _st, _aP, _t],
269
+ [0, 0, 0, 1, 128 | 0], 3
270
+ ];
271
+ exports.UpdateProbeInput$ = [3, n0, _UPI,
272
+ 0,
273
+ [_mN, _pI, _st, _d, _dP, _pr, _pS],
274
+ [[0, 1], [0, 1], 0, 0, 1, 0, 1], 2
275
+ ];
276
+ exports.UpdateProbeOutput$ = [3, n0, _UPO,
277
+ 0,
278
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
279
+ [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
280
+ ];
281
+ var CreateMonitorProbeInputList = [1, n0, _CMPIL,
282
+ 0, () => exports.CreateMonitorProbeInput$
283
+ ];
284
+ var MonitorList = [1, n0, _ML,
285
+ 0, () => exports.MonitorSummary$
286
+ ];
287
+ var ProbeList = [1, n0, _PL,
288
+ 0, () => exports.Probe$
289
+ ];
290
+ var TagKeyList = 64 | 0;
291
+ var TagMap = 128 | 0;
292
+ exports.CreateMonitor$ = [9, n0, _CM,
293
+ { [_h]: ["POST", "/monitors", 200] }, () => exports.CreateMonitorInput$, () => exports.CreateMonitorOutput$
294
+ ];
295
+ exports.CreateProbe$ = [9, n0, _CP,
296
+ { [_h]: ["POST", "/monitors/{monitorName}/probes", 200] }, () => exports.CreateProbeInput$, () => exports.CreateProbeOutput$
297
+ ];
298
+ exports.DeleteMonitor$ = [9, n0, _DM,
299
+ { [_h]: ["DELETE", "/monitors/{monitorName}", 200] }, () => exports.DeleteMonitorInput$, () => exports.DeleteMonitorOutput$
300
+ ];
301
+ exports.DeleteProbe$ = [9, n0, _DP,
302
+ { [_h]: ["DELETE", "/monitors/{monitorName}/probes/{probeId}", 200] }, () => exports.DeleteProbeInput$, () => exports.DeleteProbeOutput$
303
+ ];
304
+ exports.GetMonitor$ = [9, n0, _GM,
305
+ { [_h]: ["GET", "/monitors/{monitorName}", 200] }, () => exports.GetMonitorInput$, () => exports.GetMonitorOutput$
306
+ ];
307
+ exports.GetProbe$ = [9, n0, _GP,
308
+ { [_h]: ["GET", "/monitors/{monitorName}/probes/{probeId}", 200] }, () => exports.GetProbeInput$, () => exports.GetProbeOutput$
309
+ ];
310
+ exports.ListMonitors$ = [9, n0, _LM,
311
+ { [_h]: ["GET", "/monitors", 200] }, () => exports.ListMonitorsInput$, () => exports.ListMonitorsOutput$
312
+ ];
313
+ exports.ListTagsForResource$ = [9, n0, _LTFR,
314
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => exports.ListTagsForResourceInput$, () => exports.ListTagsForResourceOutput$
315
+ ];
316
+ exports.TagResource$ = [9, n0, _TR,
317
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => exports.TagResourceInput$, () => exports.TagResourceOutput$
318
+ ];
319
+ exports.UntagResource$ = [9, n0, _UR,
320
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => exports.UntagResourceInput$, () => exports.UntagResourceOutput$
321
+ ];
322
+ exports.UpdateMonitor$ = [9, n0, _UM,
323
+ { [_h]: ["PATCH", "/monitors/{monitorName}", 200] }, () => exports.UpdateMonitorInput$, () => exports.UpdateMonitorOutput$
324
+ ];
325
+ exports.UpdateProbe$ = [9, n0, _UP,
326
+ { [_h]: ["PATCH", "/monitors/{monitorName}/probes/{probeId}", 200] }, () => exports.UpdateProbeInput$, () => exports.UpdateProbeOutput$
327
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultNetworkMonitorHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2023-08-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.networkmonitor",
30
+ errorTypeRegistries,
29
31
  version: "2023-08-01",
30
32
  serviceTarget: "NetworkMonitor",
31
33
  },
@@ -74,10 +74,10 @@ const _pT = "probeTags";
74
74
  const _pr = "protocol";
75
75
  const _pro = "probe";
76
76
  const _rA = "resourceArn";
77
- const _s = "state";
77
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.networkmonitor";
78
78
  const _sA = "sourceArn";
79
79
  const _se = "server";
80
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.networkmonitor";
80
+ const _st = "state";
81
81
  const _t = "tags";
82
82
  const _tK = "tagKeys";
83
83
  const _vI = "vpcId";
@@ -85,18 +85,56 @@ const n0 = "com.amazonaws.networkmonitor";
85
85
  import { TypeRegistry } from "@smithy/core/schema";
86
86
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
87
87
  import { NetworkMonitorServiceException } from "../models/NetworkMonitorServiceException";
88
+ const _s_registry = TypeRegistry.for(_s);
89
+ export var NetworkMonitorServiceException$ = [-3, _s, "NetworkMonitorServiceException", 0, [], []];
90
+ _s_registry.registerError(NetworkMonitorServiceException$, NetworkMonitorServiceException);
91
+ const n0_registry = TypeRegistry.for(n0);
88
92
  export var AccessDeniedException$ = [-3, n0, _ADE,
89
93
  { [_e]: _c, [_hE]: 403 },
90
94
  [_m],
91
95
  [0]
92
96
  ];
93
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
97
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
94
98
  export var ConflictException$ = [-3, n0, _CE,
95
99
  { [_e]: _c, [_hE]: 409 },
96
100
  [_m],
97
101
  [0]
98
102
  ];
99
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
103
+ n0_registry.registerError(ConflictException$, ConflictException);
104
+ export var InternalServerException$ = [-3, n0, _ISE,
105
+ { [_e]: _se, [_hE]: 500 },
106
+ [_m],
107
+ [0]
108
+ ];
109
+ n0_registry.registerError(InternalServerException$, InternalServerException);
110
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
111
+ { [_e]: _c, [_hE]: 404 },
112
+ [_m],
113
+ [0]
114
+ ];
115
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
116
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
117
+ { [_e]: _c, [_hE]: 402 },
118
+ [_m],
119
+ [0]
120
+ ];
121
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
122
+ export var ThrottlingException$ = [-3, n0, _TE,
123
+ { [_e]: _c, [_hE]: 429 },
124
+ [_m],
125
+ [0]
126
+ ];
127
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
128
+ export var ValidationException$ = [-3, n0, _VE,
129
+ { [_e]: _c, [_hE]: 400 },
130
+ [_m],
131
+ [0]
132
+ ];
133
+ n0_registry.registerError(ValidationException$, ValidationException);
134
+ export const errorTypeRegistries = [
135
+ _s_registry,
136
+ n0_registry,
137
+ ];
100
138
  export var CreateMonitorInput$ = [3, n0, _CMI,
101
139
  0,
102
140
  [_mN, _p, _aP, _cT, _t],
@@ -104,7 +142,7 @@ export var CreateMonitorInput$ = [3, n0, _CMI,
104
142
  ];
105
143
  export var CreateMonitorOutput$ = [3, n0, _CMO,
106
144
  0,
107
- [_mA, _mN, _s, _aP, _t],
145
+ [_mA, _mN, _st, _aP, _t],
108
146
  [0, 0, 0, 1, 128 | 0], 3
109
147
  ];
110
148
  export var CreateMonitorProbeInput$ = [3, n0, _CMPI,
@@ -119,7 +157,7 @@ export var CreateProbeInput$ = [3, n0, _CPI,
119
157
  ];
120
158
  export var CreateProbeOutput$ = [3, n0, _CPO,
121
159
  0,
122
- [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _s, _cA, _mAo, _t],
160
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
123
161
  [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
124
162
  ];
125
163
  export var DeleteMonitorInput$ = [3, n0, _DMI,
@@ -149,7 +187,7 @@ export var GetMonitorInput$ = [3, n0, _GMI,
149
187
  ];
150
188
  export var GetMonitorOutput$ = [3, n0, _GMO,
151
189
  0,
152
- [_mA, _mN, _s, _aP, _cA, _mAo, _t, _p],
190
+ [_mA, _mN, _st, _aP, _cA, _mAo, _t, _p],
153
191
  [0, 0, 0, 1, 4, 4, 128 | 0, () => ProbeList], 6
154
192
  ];
155
193
  export var GetProbeInput$ = [3, n0, _GPI,
@@ -159,19 +197,13 @@ export var GetProbeInput$ = [3, n0, _GPI,
159
197
  ];
160
198
  export var GetProbeOutput$ = [3, n0, _GPO,
161
199
  0,
162
- [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _s, _cA, _mAo, _t],
200
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
163
201
  [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
164
202
  ];
165
- export var InternalServerException$ = [-3, n0, _ISE,
166
- { [_e]: _se, [_hE]: 500 },
167
- [_m],
168
- [0]
169
- ];
170
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
171
203
  export var ListMonitorsInput$ = [3, n0, _LMI,
172
204
  0,
173
- [_nT, _mR, _s],
174
- [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _s }]]
205
+ [_nT, _mR, _st],
206
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }]]
175
207
  ];
176
208
  export var ListMonitorsOutput$ = [3, n0, _LMO,
177
209
  0,
@@ -190,12 +222,12 @@ export var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
190
222
  ];
191
223
  export var MonitorSummary$ = [3, n0, _MS,
192
224
  0,
193
- [_mA, _mN, _s, _aP, _t],
225
+ [_mA, _mN, _st, _aP, _t],
194
226
  [0, 0, 0, 1, 128 | 0], 3
195
227
  ];
196
228
  export var Probe$ = [3, n0, _P,
197
229
  0,
198
- [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _s, _cA, _mAo, _t],
230
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
199
231
  [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
200
232
  ];
201
233
  export var ProbeInput$ = [3, n0, _PI,
@@ -203,18 +235,6 @@ export var ProbeInput$ = [3, n0, _PI,
203
235
  [_sA, _d, _pr, _dP, _pS, _t],
204
236
  [0, 0, 0, 1, 1, 128 | 0], 3
205
237
  ];
206
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
207
- { [_e]: _c, [_hE]: 404 },
208
- [_m],
209
- [0]
210
- ];
211
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
212
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
213
- { [_e]: _c, [_hE]: 402 },
214
- [_m],
215
- [0]
216
- ];
217
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
218
238
  export var TagResourceInput$ = [3, n0, _TRI,
219
239
  0,
220
240
  [_rA, _t],
@@ -225,12 +245,6 @@ export var TagResourceOutput$ = [3, n0, _TRO,
225
245
  [],
226
246
  []
227
247
  ];
228
- export var ThrottlingException$ = [-3, n0, _TE,
229
- { [_e]: _c, [_hE]: 429 },
230
- [_m],
231
- [0]
232
- ];
233
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
234
248
  export var UntagResourceInput$ = [3, n0, _URI,
235
249
  0,
236
250
  [_rA, _tK],
@@ -248,27 +262,19 @@ export var UpdateMonitorInput$ = [3, n0, _UMI,
248
262
  ];
249
263
  export var UpdateMonitorOutput$ = [3, n0, _UMO,
250
264
  0,
251
- [_mA, _mN, _s, _aP, _t],
265
+ [_mA, _mN, _st, _aP, _t],
252
266
  [0, 0, 0, 1, 128 | 0], 3
253
267
  ];
254
268
  export var UpdateProbeInput$ = [3, n0, _UPI,
255
269
  0,
256
- [_mN, _pI, _s, _d, _dP, _pr, _pS],
270
+ [_mN, _pI, _st, _d, _dP, _pr, _pS],
257
271
  [[0, 1], [0, 1], 0, 0, 1, 0, 1], 2
258
272
  ];
259
273
  export var UpdateProbeOutput$ = [3, n0, _UPO,
260
274
  0,
261
- [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _s, _cA, _mAo, _t],
275
+ [_sA, _d, _pr, _pI, _pA, _dP, _pS, _aF, _vI, _st, _cA, _mAo, _t],
262
276
  [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 128 | 0], 3
263
277
  ];
264
- export var ValidationException$ = [-3, n0, _VE,
265
- { [_e]: _c, [_hE]: 400 },
266
- [_m],
267
- [0]
268
- ];
269
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
270
- export var NetworkMonitorServiceException$ = [-3, _sm, "NetworkMonitorServiceException", 0, [], []];
271
- TypeRegistry.for(_sm).registerError(NetworkMonitorServiceException$, NetworkMonitorServiceException);
272
278
  var CreateMonitorProbeInputList = [1, n0, _CMPIL,
273
279
  0, () => CreateMonitorProbeInput$
274
280
  ];