@aws-sdk/client-networkmanager 3.312.0 → 3.316.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.
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AcceptAttachmentCommand, } from "./commands/AcceptAttachmentCommand";
2
3
  import { AssociateConnectPeerCommand, } from "./commands/AssociateConnectPeerCommand";
3
4
  import { AssociateCustomerGatewayCommand, } from "./commands/AssociateCustomerGatewayCommand";
@@ -84,1195 +85,93 @@ import { UpdateNetworkResourceMetadataCommand, } from "./commands/UpdateNetworkR
84
85
  import { UpdateSiteCommand } from "./commands/UpdateSiteCommand";
85
86
  import { UpdateVpcAttachmentCommand, } from "./commands/UpdateVpcAttachmentCommand";
86
87
  import { NetworkManagerClient } from "./NetworkManagerClient";
88
+ const commands = {
89
+ AcceptAttachmentCommand,
90
+ AssociateConnectPeerCommand,
91
+ AssociateCustomerGatewayCommand,
92
+ AssociateLinkCommand,
93
+ AssociateTransitGatewayConnectPeerCommand,
94
+ CreateConnectAttachmentCommand,
95
+ CreateConnectionCommand,
96
+ CreateConnectPeerCommand,
97
+ CreateCoreNetworkCommand,
98
+ CreateDeviceCommand,
99
+ CreateGlobalNetworkCommand,
100
+ CreateLinkCommand,
101
+ CreateSiteCommand,
102
+ CreateSiteToSiteVpnAttachmentCommand,
103
+ CreateTransitGatewayPeeringCommand,
104
+ CreateTransitGatewayRouteTableAttachmentCommand,
105
+ CreateVpcAttachmentCommand,
106
+ DeleteAttachmentCommand,
107
+ DeleteConnectionCommand,
108
+ DeleteConnectPeerCommand,
109
+ DeleteCoreNetworkCommand,
110
+ DeleteCoreNetworkPolicyVersionCommand,
111
+ DeleteDeviceCommand,
112
+ DeleteGlobalNetworkCommand,
113
+ DeleteLinkCommand,
114
+ DeletePeeringCommand,
115
+ DeleteResourcePolicyCommand,
116
+ DeleteSiteCommand,
117
+ DeregisterTransitGatewayCommand,
118
+ DescribeGlobalNetworksCommand,
119
+ DisassociateConnectPeerCommand,
120
+ DisassociateCustomerGatewayCommand,
121
+ DisassociateLinkCommand,
122
+ DisassociateTransitGatewayConnectPeerCommand,
123
+ ExecuteCoreNetworkChangeSetCommand,
124
+ GetConnectAttachmentCommand,
125
+ GetConnectionsCommand,
126
+ GetConnectPeerCommand,
127
+ GetConnectPeerAssociationsCommand,
128
+ GetCoreNetworkCommand,
129
+ GetCoreNetworkChangeEventsCommand,
130
+ GetCoreNetworkChangeSetCommand,
131
+ GetCoreNetworkPolicyCommand,
132
+ GetCustomerGatewayAssociationsCommand,
133
+ GetDevicesCommand,
134
+ GetLinkAssociationsCommand,
135
+ GetLinksCommand,
136
+ GetNetworkResourceCountsCommand,
137
+ GetNetworkResourceRelationshipsCommand,
138
+ GetNetworkResourcesCommand,
139
+ GetNetworkRoutesCommand,
140
+ GetNetworkTelemetryCommand,
141
+ GetResourcePolicyCommand,
142
+ GetRouteAnalysisCommand,
143
+ GetSitesCommand,
144
+ GetSiteToSiteVpnAttachmentCommand,
145
+ GetTransitGatewayConnectPeerAssociationsCommand,
146
+ GetTransitGatewayPeeringCommand,
147
+ GetTransitGatewayRegistrationsCommand,
148
+ GetTransitGatewayRouteTableAttachmentCommand,
149
+ GetVpcAttachmentCommand,
150
+ ListAttachmentsCommand,
151
+ ListConnectPeersCommand,
152
+ ListCoreNetworkPolicyVersionsCommand,
153
+ ListCoreNetworksCommand,
154
+ ListOrganizationServiceAccessStatusCommand,
155
+ ListPeeringsCommand,
156
+ ListTagsForResourceCommand,
157
+ PutCoreNetworkPolicyCommand,
158
+ PutResourcePolicyCommand,
159
+ RegisterTransitGatewayCommand,
160
+ RejectAttachmentCommand,
161
+ RestoreCoreNetworkPolicyVersionCommand,
162
+ StartOrganizationServiceAccessUpdateCommand,
163
+ StartRouteAnalysisCommand,
164
+ TagResourceCommand,
165
+ UntagResourceCommand,
166
+ UpdateConnectionCommand,
167
+ UpdateCoreNetworkCommand,
168
+ UpdateDeviceCommand,
169
+ UpdateGlobalNetworkCommand,
170
+ UpdateLinkCommand,
171
+ UpdateNetworkResourceMetadataCommand,
172
+ UpdateSiteCommand,
173
+ UpdateVpcAttachmentCommand,
174
+ };
87
175
  export class NetworkManager extends NetworkManagerClient {
88
- acceptAttachment(args, optionsOrCb, cb) {
89
- const command = new AcceptAttachmentCommand(args);
90
- if (typeof optionsOrCb === "function") {
91
- this.send(command, optionsOrCb);
92
- }
93
- else if (typeof cb === "function") {
94
- if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
- this.send(command, optionsOrCb || {}, cb);
97
- }
98
- else {
99
- return this.send(command, optionsOrCb);
100
- }
101
- }
102
- associateConnectPeer(args, optionsOrCb, cb) {
103
- const command = new AssociateConnectPeerCommand(args);
104
- if (typeof optionsOrCb === "function") {
105
- this.send(command, optionsOrCb);
106
- }
107
- else if (typeof cb === "function") {
108
- if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
- this.send(command, optionsOrCb || {}, cb);
111
- }
112
- else {
113
- return this.send(command, optionsOrCb);
114
- }
115
- }
116
- associateCustomerGateway(args, optionsOrCb, cb) {
117
- const command = new AssociateCustomerGatewayCommand(args);
118
- if (typeof optionsOrCb === "function") {
119
- this.send(command, optionsOrCb);
120
- }
121
- else if (typeof cb === "function") {
122
- if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
- this.send(command, optionsOrCb || {}, cb);
125
- }
126
- else {
127
- return this.send(command, optionsOrCb);
128
- }
129
- }
130
- associateLink(args, optionsOrCb, cb) {
131
- const command = new AssociateLinkCommand(args);
132
- if (typeof optionsOrCb === "function") {
133
- this.send(command, optionsOrCb);
134
- }
135
- else if (typeof cb === "function") {
136
- if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
- this.send(command, optionsOrCb || {}, cb);
139
- }
140
- else {
141
- return this.send(command, optionsOrCb);
142
- }
143
- }
144
- associateTransitGatewayConnectPeer(args, optionsOrCb, cb) {
145
- const command = new AssociateTransitGatewayConnectPeerCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- }
149
- else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
- this.send(command, optionsOrCb || {}, cb);
153
- }
154
- else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
- createConnectAttachment(args, optionsOrCb, cb) {
159
- const command = new CreateConnectAttachmentCommand(args);
160
- if (typeof optionsOrCb === "function") {
161
- this.send(command, optionsOrCb);
162
- }
163
- else if (typeof cb === "function") {
164
- if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- }
168
- else {
169
- return this.send(command, optionsOrCb);
170
- }
171
- }
172
- createConnection(args, optionsOrCb, cb) {
173
- const command = new CreateConnectionCommand(args);
174
- if (typeof optionsOrCb === "function") {
175
- this.send(command, optionsOrCb);
176
- }
177
- else if (typeof cb === "function") {
178
- if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
- this.send(command, optionsOrCb || {}, cb);
181
- }
182
- else {
183
- return this.send(command, optionsOrCb);
184
- }
185
- }
186
- createConnectPeer(args, optionsOrCb, cb) {
187
- const command = new CreateConnectPeerCommand(args);
188
- if (typeof optionsOrCb === "function") {
189
- this.send(command, optionsOrCb);
190
- }
191
- else if (typeof cb === "function") {
192
- if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
- this.send(command, optionsOrCb || {}, cb);
195
- }
196
- else {
197
- return this.send(command, optionsOrCb);
198
- }
199
- }
200
- createCoreNetwork(args, optionsOrCb, cb) {
201
- const command = new CreateCoreNetworkCommand(args);
202
- if (typeof optionsOrCb === "function") {
203
- this.send(command, optionsOrCb);
204
- }
205
- else if (typeof cb === "function") {
206
- if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- }
210
- else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
- createDevice(args, optionsOrCb, cb) {
215
- const command = new CreateDeviceCommand(args);
216
- if (typeof optionsOrCb === "function") {
217
- this.send(command, optionsOrCb);
218
- }
219
- else if (typeof cb === "function") {
220
- if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
- this.send(command, optionsOrCb || {}, cb);
223
- }
224
- else {
225
- return this.send(command, optionsOrCb);
226
- }
227
- }
228
- createGlobalNetwork(args, optionsOrCb, cb) {
229
- const command = new CreateGlobalNetworkCommand(args);
230
- if (typeof optionsOrCb === "function") {
231
- this.send(command, optionsOrCb);
232
- }
233
- else if (typeof cb === "function") {
234
- if (typeof optionsOrCb !== "object")
235
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
- this.send(command, optionsOrCb || {}, cb);
237
- }
238
- else {
239
- return this.send(command, optionsOrCb);
240
- }
241
- }
242
- createLink(args, optionsOrCb, cb) {
243
- const command = new CreateLinkCommand(args);
244
- if (typeof optionsOrCb === "function") {
245
- this.send(command, optionsOrCb);
246
- }
247
- else if (typeof cb === "function") {
248
- if (typeof optionsOrCb !== "object")
249
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
- this.send(command, optionsOrCb || {}, cb);
251
- }
252
- else {
253
- return this.send(command, optionsOrCb);
254
- }
255
- }
256
- createSite(args, optionsOrCb, cb) {
257
- const command = new CreateSiteCommand(args);
258
- if (typeof optionsOrCb === "function") {
259
- this.send(command, optionsOrCb);
260
- }
261
- else if (typeof cb === "function") {
262
- if (typeof optionsOrCb !== "object")
263
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
- this.send(command, optionsOrCb || {}, cb);
265
- }
266
- else {
267
- return this.send(command, optionsOrCb);
268
- }
269
- }
270
- createSiteToSiteVpnAttachment(args, optionsOrCb, cb) {
271
- const command = new CreateSiteToSiteVpnAttachmentCommand(args);
272
- if (typeof optionsOrCb === "function") {
273
- this.send(command, optionsOrCb);
274
- }
275
- else if (typeof cb === "function") {
276
- if (typeof optionsOrCb !== "object")
277
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
- this.send(command, optionsOrCb || {}, cb);
279
- }
280
- else {
281
- return this.send(command, optionsOrCb);
282
- }
283
- }
284
- createTransitGatewayPeering(args, optionsOrCb, cb) {
285
- const command = new CreateTransitGatewayPeeringCommand(args);
286
- if (typeof optionsOrCb === "function") {
287
- this.send(command, optionsOrCb);
288
- }
289
- else if (typeof cb === "function") {
290
- if (typeof optionsOrCb !== "object")
291
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
- this.send(command, optionsOrCb || {}, cb);
293
- }
294
- else {
295
- return this.send(command, optionsOrCb);
296
- }
297
- }
298
- createTransitGatewayRouteTableAttachment(args, optionsOrCb, cb) {
299
- const command = new CreateTransitGatewayRouteTableAttachmentCommand(args);
300
- if (typeof optionsOrCb === "function") {
301
- this.send(command, optionsOrCb);
302
- }
303
- else if (typeof cb === "function") {
304
- if (typeof optionsOrCb !== "object")
305
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
- this.send(command, optionsOrCb || {}, cb);
307
- }
308
- else {
309
- return this.send(command, optionsOrCb);
310
- }
311
- }
312
- createVpcAttachment(args, optionsOrCb, cb) {
313
- const command = new CreateVpcAttachmentCommand(args);
314
- if (typeof optionsOrCb === "function") {
315
- this.send(command, optionsOrCb);
316
- }
317
- else if (typeof cb === "function") {
318
- if (typeof optionsOrCb !== "object")
319
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
- this.send(command, optionsOrCb || {}, cb);
321
- }
322
- else {
323
- return this.send(command, optionsOrCb);
324
- }
325
- }
326
- deleteAttachment(args, optionsOrCb, cb) {
327
- const command = new DeleteAttachmentCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- }
331
- else if (typeof cb === "function") {
332
- if (typeof optionsOrCb !== "object")
333
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
- this.send(command, optionsOrCb || {}, cb);
335
- }
336
- else {
337
- return this.send(command, optionsOrCb);
338
- }
339
- }
340
- deleteConnection(args, optionsOrCb, cb) {
341
- const command = new DeleteConnectionCommand(args);
342
- if (typeof optionsOrCb === "function") {
343
- this.send(command, optionsOrCb);
344
- }
345
- else if (typeof cb === "function") {
346
- if (typeof optionsOrCb !== "object")
347
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
- this.send(command, optionsOrCb || {}, cb);
349
- }
350
- else {
351
- return this.send(command, optionsOrCb);
352
- }
353
- }
354
- deleteConnectPeer(args, optionsOrCb, cb) {
355
- const command = new DeleteConnectPeerCommand(args);
356
- if (typeof optionsOrCb === "function") {
357
- this.send(command, optionsOrCb);
358
- }
359
- else if (typeof cb === "function") {
360
- if (typeof optionsOrCb !== "object")
361
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
- this.send(command, optionsOrCb || {}, cb);
363
- }
364
- else {
365
- return this.send(command, optionsOrCb);
366
- }
367
- }
368
- deleteCoreNetwork(args, optionsOrCb, cb) {
369
- const command = new DeleteCoreNetworkCommand(args);
370
- if (typeof optionsOrCb === "function") {
371
- this.send(command, optionsOrCb);
372
- }
373
- else if (typeof cb === "function") {
374
- if (typeof optionsOrCb !== "object")
375
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
- this.send(command, optionsOrCb || {}, cb);
377
- }
378
- else {
379
- return this.send(command, optionsOrCb);
380
- }
381
- }
382
- deleteCoreNetworkPolicyVersion(args, optionsOrCb, cb) {
383
- const command = new DeleteCoreNetworkPolicyVersionCommand(args);
384
- if (typeof optionsOrCb === "function") {
385
- this.send(command, optionsOrCb);
386
- }
387
- else if (typeof cb === "function") {
388
- if (typeof optionsOrCb !== "object")
389
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
- this.send(command, optionsOrCb || {}, cb);
391
- }
392
- else {
393
- return this.send(command, optionsOrCb);
394
- }
395
- }
396
- deleteDevice(args, optionsOrCb, cb) {
397
- const command = new DeleteDeviceCommand(args);
398
- if (typeof optionsOrCb === "function") {
399
- this.send(command, optionsOrCb);
400
- }
401
- else if (typeof cb === "function") {
402
- if (typeof optionsOrCb !== "object")
403
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
404
- this.send(command, optionsOrCb || {}, cb);
405
- }
406
- else {
407
- return this.send(command, optionsOrCb);
408
- }
409
- }
410
- deleteGlobalNetwork(args, optionsOrCb, cb) {
411
- const command = new DeleteGlobalNetworkCommand(args);
412
- if (typeof optionsOrCb === "function") {
413
- this.send(command, optionsOrCb);
414
- }
415
- else if (typeof cb === "function") {
416
- if (typeof optionsOrCb !== "object")
417
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
418
- this.send(command, optionsOrCb || {}, cb);
419
- }
420
- else {
421
- return this.send(command, optionsOrCb);
422
- }
423
- }
424
- deleteLink(args, optionsOrCb, cb) {
425
- const command = new DeleteLinkCommand(args);
426
- if (typeof optionsOrCb === "function") {
427
- this.send(command, optionsOrCb);
428
- }
429
- else if (typeof cb === "function") {
430
- if (typeof optionsOrCb !== "object")
431
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
432
- this.send(command, optionsOrCb || {}, cb);
433
- }
434
- else {
435
- return this.send(command, optionsOrCb);
436
- }
437
- }
438
- deletePeering(args, optionsOrCb, cb) {
439
- const command = new DeletePeeringCommand(args);
440
- if (typeof optionsOrCb === "function") {
441
- this.send(command, optionsOrCb);
442
- }
443
- else if (typeof cb === "function") {
444
- if (typeof optionsOrCb !== "object")
445
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
446
- this.send(command, optionsOrCb || {}, cb);
447
- }
448
- else {
449
- return this.send(command, optionsOrCb);
450
- }
451
- }
452
- deleteResourcePolicy(args, optionsOrCb, cb) {
453
- const command = new DeleteResourcePolicyCommand(args);
454
- if (typeof optionsOrCb === "function") {
455
- this.send(command, optionsOrCb);
456
- }
457
- else if (typeof cb === "function") {
458
- if (typeof optionsOrCb !== "object")
459
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
460
- this.send(command, optionsOrCb || {}, cb);
461
- }
462
- else {
463
- return this.send(command, optionsOrCb);
464
- }
465
- }
466
- deleteSite(args, optionsOrCb, cb) {
467
- const command = new DeleteSiteCommand(args);
468
- if (typeof optionsOrCb === "function") {
469
- this.send(command, optionsOrCb);
470
- }
471
- else if (typeof cb === "function") {
472
- if (typeof optionsOrCb !== "object")
473
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
474
- this.send(command, optionsOrCb || {}, cb);
475
- }
476
- else {
477
- return this.send(command, optionsOrCb);
478
- }
479
- }
480
- deregisterTransitGateway(args, optionsOrCb, cb) {
481
- const command = new DeregisterTransitGatewayCommand(args);
482
- if (typeof optionsOrCb === "function") {
483
- this.send(command, optionsOrCb);
484
- }
485
- else if (typeof cb === "function") {
486
- if (typeof optionsOrCb !== "object")
487
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
488
- this.send(command, optionsOrCb || {}, cb);
489
- }
490
- else {
491
- return this.send(command, optionsOrCb);
492
- }
493
- }
494
- describeGlobalNetworks(args, optionsOrCb, cb) {
495
- const command = new DescribeGlobalNetworksCommand(args);
496
- if (typeof optionsOrCb === "function") {
497
- this.send(command, optionsOrCb);
498
- }
499
- else if (typeof cb === "function") {
500
- if (typeof optionsOrCb !== "object")
501
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
502
- this.send(command, optionsOrCb || {}, cb);
503
- }
504
- else {
505
- return this.send(command, optionsOrCb);
506
- }
507
- }
508
- disassociateConnectPeer(args, optionsOrCb, cb) {
509
- const command = new DisassociateConnectPeerCommand(args);
510
- if (typeof optionsOrCb === "function") {
511
- this.send(command, optionsOrCb);
512
- }
513
- else if (typeof cb === "function") {
514
- if (typeof optionsOrCb !== "object")
515
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
516
- this.send(command, optionsOrCb || {}, cb);
517
- }
518
- else {
519
- return this.send(command, optionsOrCb);
520
- }
521
- }
522
- disassociateCustomerGateway(args, optionsOrCb, cb) {
523
- const command = new DisassociateCustomerGatewayCommand(args);
524
- if (typeof optionsOrCb === "function") {
525
- this.send(command, optionsOrCb);
526
- }
527
- else if (typeof cb === "function") {
528
- if (typeof optionsOrCb !== "object")
529
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
530
- this.send(command, optionsOrCb || {}, cb);
531
- }
532
- else {
533
- return this.send(command, optionsOrCb);
534
- }
535
- }
536
- disassociateLink(args, optionsOrCb, cb) {
537
- const command = new DisassociateLinkCommand(args);
538
- if (typeof optionsOrCb === "function") {
539
- this.send(command, optionsOrCb);
540
- }
541
- else if (typeof cb === "function") {
542
- if (typeof optionsOrCb !== "object")
543
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
544
- this.send(command, optionsOrCb || {}, cb);
545
- }
546
- else {
547
- return this.send(command, optionsOrCb);
548
- }
549
- }
550
- disassociateTransitGatewayConnectPeer(args, optionsOrCb, cb) {
551
- const command = new DisassociateTransitGatewayConnectPeerCommand(args);
552
- if (typeof optionsOrCb === "function") {
553
- this.send(command, optionsOrCb);
554
- }
555
- else if (typeof cb === "function") {
556
- if (typeof optionsOrCb !== "object")
557
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
558
- this.send(command, optionsOrCb || {}, cb);
559
- }
560
- else {
561
- return this.send(command, optionsOrCb);
562
- }
563
- }
564
- executeCoreNetworkChangeSet(args, optionsOrCb, cb) {
565
- const command = new ExecuteCoreNetworkChangeSetCommand(args);
566
- if (typeof optionsOrCb === "function") {
567
- this.send(command, optionsOrCb);
568
- }
569
- else if (typeof cb === "function") {
570
- if (typeof optionsOrCb !== "object")
571
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
572
- this.send(command, optionsOrCb || {}, cb);
573
- }
574
- else {
575
- return this.send(command, optionsOrCb);
576
- }
577
- }
578
- getConnectAttachment(args, optionsOrCb, cb) {
579
- const command = new GetConnectAttachmentCommand(args);
580
- if (typeof optionsOrCb === "function") {
581
- this.send(command, optionsOrCb);
582
- }
583
- else if (typeof cb === "function") {
584
- if (typeof optionsOrCb !== "object")
585
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
586
- this.send(command, optionsOrCb || {}, cb);
587
- }
588
- else {
589
- return this.send(command, optionsOrCb);
590
- }
591
- }
592
- getConnections(args, optionsOrCb, cb) {
593
- const command = new GetConnectionsCommand(args);
594
- if (typeof optionsOrCb === "function") {
595
- this.send(command, optionsOrCb);
596
- }
597
- else if (typeof cb === "function") {
598
- if (typeof optionsOrCb !== "object")
599
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
600
- this.send(command, optionsOrCb || {}, cb);
601
- }
602
- else {
603
- return this.send(command, optionsOrCb);
604
- }
605
- }
606
- getConnectPeer(args, optionsOrCb, cb) {
607
- const command = new GetConnectPeerCommand(args);
608
- if (typeof optionsOrCb === "function") {
609
- this.send(command, optionsOrCb);
610
- }
611
- else if (typeof cb === "function") {
612
- if (typeof optionsOrCb !== "object")
613
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
614
- this.send(command, optionsOrCb || {}, cb);
615
- }
616
- else {
617
- return this.send(command, optionsOrCb);
618
- }
619
- }
620
- getConnectPeerAssociations(args, optionsOrCb, cb) {
621
- const command = new GetConnectPeerAssociationsCommand(args);
622
- if (typeof optionsOrCb === "function") {
623
- this.send(command, optionsOrCb);
624
- }
625
- else if (typeof cb === "function") {
626
- if (typeof optionsOrCb !== "object")
627
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
628
- this.send(command, optionsOrCb || {}, cb);
629
- }
630
- else {
631
- return this.send(command, optionsOrCb);
632
- }
633
- }
634
- getCoreNetwork(args, optionsOrCb, cb) {
635
- const command = new GetCoreNetworkCommand(args);
636
- if (typeof optionsOrCb === "function") {
637
- this.send(command, optionsOrCb);
638
- }
639
- else if (typeof cb === "function") {
640
- if (typeof optionsOrCb !== "object")
641
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
642
- this.send(command, optionsOrCb || {}, cb);
643
- }
644
- else {
645
- return this.send(command, optionsOrCb);
646
- }
647
- }
648
- getCoreNetworkChangeEvents(args, optionsOrCb, cb) {
649
- const command = new GetCoreNetworkChangeEventsCommand(args);
650
- if (typeof optionsOrCb === "function") {
651
- this.send(command, optionsOrCb);
652
- }
653
- else if (typeof cb === "function") {
654
- if (typeof optionsOrCb !== "object")
655
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
656
- this.send(command, optionsOrCb || {}, cb);
657
- }
658
- else {
659
- return this.send(command, optionsOrCb);
660
- }
661
- }
662
- getCoreNetworkChangeSet(args, optionsOrCb, cb) {
663
- const command = new GetCoreNetworkChangeSetCommand(args);
664
- if (typeof optionsOrCb === "function") {
665
- this.send(command, optionsOrCb);
666
- }
667
- else if (typeof cb === "function") {
668
- if (typeof optionsOrCb !== "object")
669
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
670
- this.send(command, optionsOrCb || {}, cb);
671
- }
672
- else {
673
- return this.send(command, optionsOrCb);
674
- }
675
- }
676
- getCoreNetworkPolicy(args, optionsOrCb, cb) {
677
- const command = new GetCoreNetworkPolicyCommand(args);
678
- if (typeof optionsOrCb === "function") {
679
- this.send(command, optionsOrCb);
680
- }
681
- else if (typeof cb === "function") {
682
- if (typeof optionsOrCb !== "object")
683
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
684
- this.send(command, optionsOrCb || {}, cb);
685
- }
686
- else {
687
- return this.send(command, optionsOrCb);
688
- }
689
- }
690
- getCustomerGatewayAssociations(args, optionsOrCb, cb) {
691
- const command = new GetCustomerGatewayAssociationsCommand(args);
692
- if (typeof optionsOrCb === "function") {
693
- this.send(command, optionsOrCb);
694
- }
695
- else if (typeof cb === "function") {
696
- if (typeof optionsOrCb !== "object")
697
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
698
- this.send(command, optionsOrCb || {}, cb);
699
- }
700
- else {
701
- return this.send(command, optionsOrCb);
702
- }
703
- }
704
- getDevices(args, optionsOrCb, cb) {
705
- const command = new GetDevicesCommand(args);
706
- if (typeof optionsOrCb === "function") {
707
- this.send(command, optionsOrCb);
708
- }
709
- else if (typeof cb === "function") {
710
- if (typeof optionsOrCb !== "object")
711
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
712
- this.send(command, optionsOrCb || {}, cb);
713
- }
714
- else {
715
- return this.send(command, optionsOrCb);
716
- }
717
- }
718
- getLinkAssociations(args, optionsOrCb, cb) {
719
- const command = new GetLinkAssociationsCommand(args);
720
- if (typeof optionsOrCb === "function") {
721
- this.send(command, optionsOrCb);
722
- }
723
- else if (typeof cb === "function") {
724
- if (typeof optionsOrCb !== "object")
725
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
726
- this.send(command, optionsOrCb || {}, cb);
727
- }
728
- else {
729
- return this.send(command, optionsOrCb);
730
- }
731
- }
732
- getLinks(args, optionsOrCb, cb) {
733
- const command = new GetLinksCommand(args);
734
- if (typeof optionsOrCb === "function") {
735
- this.send(command, optionsOrCb);
736
- }
737
- else if (typeof cb === "function") {
738
- if (typeof optionsOrCb !== "object")
739
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
740
- this.send(command, optionsOrCb || {}, cb);
741
- }
742
- else {
743
- return this.send(command, optionsOrCb);
744
- }
745
- }
746
- getNetworkResourceCounts(args, optionsOrCb, cb) {
747
- const command = new GetNetworkResourceCountsCommand(args);
748
- if (typeof optionsOrCb === "function") {
749
- this.send(command, optionsOrCb);
750
- }
751
- else if (typeof cb === "function") {
752
- if (typeof optionsOrCb !== "object")
753
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
754
- this.send(command, optionsOrCb || {}, cb);
755
- }
756
- else {
757
- return this.send(command, optionsOrCb);
758
- }
759
- }
760
- getNetworkResourceRelationships(args, optionsOrCb, cb) {
761
- const command = new GetNetworkResourceRelationshipsCommand(args);
762
- if (typeof optionsOrCb === "function") {
763
- this.send(command, optionsOrCb);
764
- }
765
- else if (typeof cb === "function") {
766
- if (typeof optionsOrCb !== "object")
767
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
768
- this.send(command, optionsOrCb || {}, cb);
769
- }
770
- else {
771
- return this.send(command, optionsOrCb);
772
- }
773
- }
774
- getNetworkResources(args, optionsOrCb, cb) {
775
- const command = new GetNetworkResourcesCommand(args);
776
- if (typeof optionsOrCb === "function") {
777
- this.send(command, optionsOrCb);
778
- }
779
- else if (typeof cb === "function") {
780
- if (typeof optionsOrCb !== "object")
781
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
782
- this.send(command, optionsOrCb || {}, cb);
783
- }
784
- else {
785
- return this.send(command, optionsOrCb);
786
- }
787
- }
788
- getNetworkRoutes(args, optionsOrCb, cb) {
789
- const command = new GetNetworkRoutesCommand(args);
790
- if (typeof optionsOrCb === "function") {
791
- this.send(command, optionsOrCb);
792
- }
793
- else if (typeof cb === "function") {
794
- if (typeof optionsOrCb !== "object")
795
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
796
- this.send(command, optionsOrCb || {}, cb);
797
- }
798
- else {
799
- return this.send(command, optionsOrCb);
800
- }
801
- }
802
- getNetworkTelemetry(args, optionsOrCb, cb) {
803
- const command = new GetNetworkTelemetryCommand(args);
804
- if (typeof optionsOrCb === "function") {
805
- this.send(command, optionsOrCb);
806
- }
807
- else if (typeof cb === "function") {
808
- if (typeof optionsOrCb !== "object")
809
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
810
- this.send(command, optionsOrCb || {}, cb);
811
- }
812
- else {
813
- return this.send(command, optionsOrCb);
814
- }
815
- }
816
- getResourcePolicy(args, optionsOrCb, cb) {
817
- const command = new GetResourcePolicyCommand(args);
818
- if (typeof optionsOrCb === "function") {
819
- this.send(command, optionsOrCb);
820
- }
821
- else if (typeof cb === "function") {
822
- if (typeof optionsOrCb !== "object")
823
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
824
- this.send(command, optionsOrCb || {}, cb);
825
- }
826
- else {
827
- return this.send(command, optionsOrCb);
828
- }
829
- }
830
- getRouteAnalysis(args, optionsOrCb, cb) {
831
- const command = new GetRouteAnalysisCommand(args);
832
- if (typeof optionsOrCb === "function") {
833
- this.send(command, optionsOrCb);
834
- }
835
- else if (typeof cb === "function") {
836
- if (typeof optionsOrCb !== "object")
837
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
838
- this.send(command, optionsOrCb || {}, cb);
839
- }
840
- else {
841
- return this.send(command, optionsOrCb);
842
- }
843
- }
844
- getSites(args, optionsOrCb, cb) {
845
- const command = new GetSitesCommand(args);
846
- if (typeof optionsOrCb === "function") {
847
- this.send(command, optionsOrCb);
848
- }
849
- else if (typeof cb === "function") {
850
- if (typeof optionsOrCb !== "object")
851
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
852
- this.send(command, optionsOrCb || {}, cb);
853
- }
854
- else {
855
- return this.send(command, optionsOrCb);
856
- }
857
- }
858
- getSiteToSiteVpnAttachment(args, optionsOrCb, cb) {
859
- const command = new GetSiteToSiteVpnAttachmentCommand(args);
860
- if (typeof optionsOrCb === "function") {
861
- this.send(command, optionsOrCb);
862
- }
863
- else if (typeof cb === "function") {
864
- if (typeof optionsOrCb !== "object")
865
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
866
- this.send(command, optionsOrCb || {}, cb);
867
- }
868
- else {
869
- return this.send(command, optionsOrCb);
870
- }
871
- }
872
- getTransitGatewayConnectPeerAssociations(args, optionsOrCb, cb) {
873
- const command = new GetTransitGatewayConnectPeerAssociationsCommand(args);
874
- if (typeof optionsOrCb === "function") {
875
- this.send(command, optionsOrCb);
876
- }
877
- else if (typeof cb === "function") {
878
- if (typeof optionsOrCb !== "object")
879
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
880
- this.send(command, optionsOrCb || {}, cb);
881
- }
882
- else {
883
- return this.send(command, optionsOrCb);
884
- }
885
- }
886
- getTransitGatewayPeering(args, optionsOrCb, cb) {
887
- const command = new GetTransitGatewayPeeringCommand(args);
888
- if (typeof optionsOrCb === "function") {
889
- this.send(command, optionsOrCb);
890
- }
891
- else if (typeof cb === "function") {
892
- if (typeof optionsOrCb !== "object")
893
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
894
- this.send(command, optionsOrCb || {}, cb);
895
- }
896
- else {
897
- return this.send(command, optionsOrCb);
898
- }
899
- }
900
- getTransitGatewayRegistrations(args, optionsOrCb, cb) {
901
- const command = new GetTransitGatewayRegistrationsCommand(args);
902
- if (typeof optionsOrCb === "function") {
903
- this.send(command, optionsOrCb);
904
- }
905
- else if (typeof cb === "function") {
906
- if (typeof optionsOrCb !== "object")
907
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
908
- this.send(command, optionsOrCb || {}, cb);
909
- }
910
- else {
911
- return this.send(command, optionsOrCb);
912
- }
913
- }
914
- getTransitGatewayRouteTableAttachment(args, optionsOrCb, cb) {
915
- const command = new GetTransitGatewayRouteTableAttachmentCommand(args);
916
- if (typeof optionsOrCb === "function") {
917
- this.send(command, optionsOrCb);
918
- }
919
- else if (typeof cb === "function") {
920
- if (typeof optionsOrCb !== "object")
921
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
922
- this.send(command, optionsOrCb || {}, cb);
923
- }
924
- else {
925
- return this.send(command, optionsOrCb);
926
- }
927
- }
928
- getVpcAttachment(args, optionsOrCb, cb) {
929
- const command = new GetVpcAttachmentCommand(args);
930
- if (typeof optionsOrCb === "function") {
931
- this.send(command, optionsOrCb);
932
- }
933
- else if (typeof cb === "function") {
934
- if (typeof optionsOrCb !== "object")
935
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
936
- this.send(command, optionsOrCb || {}, cb);
937
- }
938
- else {
939
- return this.send(command, optionsOrCb);
940
- }
941
- }
942
- listAttachments(args, optionsOrCb, cb) {
943
- const command = new ListAttachmentsCommand(args);
944
- if (typeof optionsOrCb === "function") {
945
- this.send(command, optionsOrCb);
946
- }
947
- else if (typeof cb === "function") {
948
- if (typeof optionsOrCb !== "object")
949
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
950
- this.send(command, optionsOrCb || {}, cb);
951
- }
952
- else {
953
- return this.send(command, optionsOrCb);
954
- }
955
- }
956
- listConnectPeers(args, optionsOrCb, cb) {
957
- const command = new ListConnectPeersCommand(args);
958
- if (typeof optionsOrCb === "function") {
959
- this.send(command, optionsOrCb);
960
- }
961
- else if (typeof cb === "function") {
962
- if (typeof optionsOrCb !== "object")
963
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
964
- this.send(command, optionsOrCb || {}, cb);
965
- }
966
- else {
967
- return this.send(command, optionsOrCb);
968
- }
969
- }
970
- listCoreNetworkPolicyVersions(args, optionsOrCb, cb) {
971
- const command = new ListCoreNetworkPolicyVersionsCommand(args);
972
- if (typeof optionsOrCb === "function") {
973
- this.send(command, optionsOrCb);
974
- }
975
- else if (typeof cb === "function") {
976
- if (typeof optionsOrCb !== "object")
977
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
978
- this.send(command, optionsOrCb || {}, cb);
979
- }
980
- else {
981
- return this.send(command, optionsOrCb);
982
- }
983
- }
984
- listCoreNetworks(args, optionsOrCb, cb) {
985
- const command = new ListCoreNetworksCommand(args);
986
- if (typeof optionsOrCb === "function") {
987
- this.send(command, optionsOrCb);
988
- }
989
- else if (typeof cb === "function") {
990
- if (typeof optionsOrCb !== "object")
991
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
992
- this.send(command, optionsOrCb || {}, cb);
993
- }
994
- else {
995
- return this.send(command, optionsOrCb);
996
- }
997
- }
998
- listOrganizationServiceAccessStatus(args, optionsOrCb, cb) {
999
- const command = new ListOrganizationServiceAccessStatusCommand(args);
1000
- if (typeof optionsOrCb === "function") {
1001
- this.send(command, optionsOrCb);
1002
- }
1003
- else if (typeof cb === "function") {
1004
- if (typeof optionsOrCb !== "object")
1005
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1006
- this.send(command, optionsOrCb || {}, cb);
1007
- }
1008
- else {
1009
- return this.send(command, optionsOrCb);
1010
- }
1011
- }
1012
- listPeerings(args, optionsOrCb, cb) {
1013
- const command = new ListPeeringsCommand(args);
1014
- if (typeof optionsOrCb === "function") {
1015
- this.send(command, optionsOrCb);
1016
- }
1017
- else if (typeof cb === "function") {
1018
- if (typeof optionsOrCb !== "object")
1019
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1020
- this.send(command, optionsOrCb || {}, cb);
1021
- }
1022
- else {
1023
- return this.send(command, optionsOrCb);
1024
- }
1025
- }
1026
- listTagsForResource(args, optionsOrCb, cb) {
1027
- const command = new ListTagsForResourceCommand(args);
1028
- if (typeof optionsOrCb === "function") {
1029
- this.send(command, optionsOrCb);
1030
- }
1031
- else if (typeof cb === "function") {
1032
- if (typeof optionsOrCb !== "object")
1033
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1034
- this.send(command, optionsOrCb || {}, cb);
1035
- }
1036
- else {
1037
- return this.send(command, optionsOrCb);
1038
- }
1039
- }
1040
- putCoreNetworkPolicy(args, optionsOrCb, cb) {
1041
- const command = new PutCoreNetworkPolicyCommand(args);
1042
- if (typeof optionsOrCb === "function") {
1043
- this.send(command, optionsOrCb);
1044
- }
1045
- else if (typeof cb === "function") {
1046
- if (typeof optionsOrCb !== "object")
1047
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1048
- this.send(command, optionsOrCb || {}, cb);
1049
- }
1050
- else {
1051
- return this.send(command, optionsOrCb);
1052
- }
1053
- }
1054
- putResourcePolicy(args, optionsOrCb, cb) {
1055
- const command = new PutResourcePolicyCommand(args);
1056
- if (typeof optionsOrCb === "function") {
1057
- this.send(command, optionsOrCb);
1058
- }
1059
- else if (typeof cb === "function") {
1060
- if (typeof optionsOrCb !== "object")
1061
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1062
- this.send(command, optionsOrCb || {}, cb);
1063
- }
1064
- else {
1065
- return this.send(command, optionsOrCb);
1066
- }
1067
- }
1068
- registerTransitGateway(args, optionsOrCb, cb) {
1069
- const command = new RegisterTransitGatewayCommand(args);
1070
- if (typeof optionsOrCb === "function") {
1071
- this.send(command, optionsOrCb);
1072
- }
1073
- else if (typeof cb === "function") {
1074
- if (typeof optionsOrCb !== "object")
1075
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1076
- this.send(command, optionsOrCb || {}, cb);
1077
- }
1078
- else {
1079
- return this.send(command, optionsOrCb);
1080
- }
1081
- }
1082
- rejectAttachment(args, optionsOrCb, cb) {
1083
- const command = new RejectAttachmentCommand(args);
1084
- if (typeof optionsOrCb === "function") {
1085
- this.send(command, optionsOrCb);
1086
- }
1087
- else if (typeof cb === "function") {
1088
- if (typeof optionsOrCb !== "object")
1089
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1090
- this.send(command, optionsOrCb || {}, cb);
1091
- }
1092
- else {
1093
- return this.send(command, optionsOrCb);
1094
- }
1095
- }
1096
- restoreCoreNetworkPolicyVersion(args, optionsOrCb, cb) {
1097
- const command = new RestoreCoreNetworkPolicyVersionCommand(args);
1098
- if (typeof optionsOrCb === "function") {
1099
- this.send(command, optionsOrCb);
1100
- }
1101
- else if (typeof cb === "function") {
1102
- if (typeof optionsOrCb !== "object")
1103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1104
- this.send(command, optionsOrCb || {}, cb);
1105
- }
1106
- else {
1107
- return this.send(command, optionsOrCb);
1108
- }
1109
- }
1110
- startOrganizationServiceAccessUpdate(args, optionsOrCb, cb) {
1111
- const command = new StartOrganizationServiceAccessUpdateCommand(args);
1112
- if (typeof optionsOrCb === "function") {
1113
- this.send(command, optionsOrCb);
1114
- }
1115
- else if (typeof cb === "function") {
1116
- if (typeof optionsOrCb !== "object")
1117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1118
- this.send(command, optionsOrCb || {}, cb);
1119
- }
1120
- else {
1121
- return this.send(command, optionsOrCb);
1122
- }
1123
- }
1124
- startRouteAnalysis(args, optionsOrCb, cb) {
1125
- const command = new StartRouteAnalysisCommand(args);
1126
- if (typeof optionsOrCb === "function") {
1127
- this.send(command, optionsOrCb);
1128
- }
1129
- else if (typeof cb === "function") {
1130
- if (typeof optionsOrCb !== "object")
1131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1132
- this.send(command, optionsOrCb || {}, cb);
1133
- }
1134
- else {
1135
- return this.send(command, optionsOrCb);
1136
- }
1137
- }
1138
- tagResource(args, optionsOrCb, cb) {
1139
- const command = new TagResourceCommand(args);
1140
- if (typeof optionsOrCb === "function") {
1141
- this.send(command, optionsOrCb);
1142
- }
1143
- else if (typeof cb === "function") {
1144
- if (typeof optionsOrCb !== "object")
1145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1146
- this.send(command, optionsOrCb || {}, cb);
1147
- }
1148
- else {
1149
- return this.send(command, optionsOrCb);
1150
- }
1151
- }
1152
- untagResource(args, optionsOrCb, cb) {
1153
- const command = new UntagResourceCommand(args);
1154
- if (typeof optionsOrCb === "function") {
1155
- this.send(command, optionsOrCb);
1156
- }
1157
- else if (typeof cb === "function") {
1158
- if (typeof optionsOrCb !== "object")
1159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1160
- this.send(command, optionsOrCb || {}, cb);
1161
- }
1162
- else {
1163
- return this.send(command, optionsOrCb);
1164
- }
1165
- }
1166
- updateConnection(args, optionsOrCb, cb) {
1167
- const command = new UpdateConnectionCommand(args);
1168
- if (typeof optionsOrCb === "function") {
1169
- this.send(command, optionsOrCb);
1170
- }
1171
- else if (typeof cb === "function") {
1172
- if (typeof optionsOrCb !== "object")
1173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1174
- this.send(command, optionsOrCb || {}, cb);
1175
- }
1176
- else {
1177
- return this.send(command, optionsOrCb);
1178
- }
1179
- }
1180
- updateCoreNetwork(args, optionsOrCb, cb) {
1181
- const command = new UpdateCoreNetworkCommand(args);
1182
- if (typeof optionsOrCb === "function") {
1183
- this.send(command, optionsOrCb);
1184
- }
1185
- else if (typeof cb === "function") {
1186
- if (typeof optionsOrCb !== "object")
1187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1188
- this.send(command, optionsOrCb || {}, cb);
1189
- }
1190
- else {
1191
- return this.send(command, optionsOrCb);
1192
- }
1193
- }
1194
- updateDevice(args, optionsOrCb, cb) {
1195
- const command = new UpdateDeviceCommand(args);
1196
- if (typeof optionsOrCb === "function") {
1197
- this.send(command, optionsOrCb);
1198
- }
1199
- else if (typeof cb === "function") {
1200
- if (typeof optionsOrCb !== "object")
1201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1202
- this.send(command, optionsOrCb || {}, cb);
1203
- }
1204
- else {
1205
- return this.send(command, optionsOrCb);
1206
- }
1207
- }
1208
- updateGlobalNetwork(args, optionsOrCb, cb) {
1209
- const command = new UpdateGlobalNetworkCommand(args);
1210
- if (typeof optionsOrCb === "function") {
1211
- this.send(command, optionsOrCb);
1212
- }
1213
- else if (typeof cb === "function") {
1214
- if (typeof optionsOrCb !== "object")
1215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1216
- this.send(command, optionsOrCb || {}, cb);
1217
- }
1218
- else {
1219
- return this.send(command, optionsOrCb);
1220
- }
1221
- }
1222
- updateLink(args, optionsOrCb, cb) {
1223
- const command = new UpdateLinkCommand(args);
1224
- if (typeof optionsOrCb === "function") {
1225
- this.send(command, optionsOrCb);
1226
- }
1227
- else if (typeof cb === "function") {
1228
- if (typeof optionsOrCb !== "object")
1229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1230
- this.send(command, optionsOrCb || {}, cb);
1231
- }
1232
- else {
1233
- return this.send(command, optionsOrCb);
1234
- }
1235
- }
1236
- updateNetworkResourceMetadata(args, optionsOrCb, cb) {
1237
- const command = new UpdateNetworkResourceMetadataCommand(args);
1238
- if (typeof optionsOrCb === "function") {
1239
- this.send(command, optionsOrCb);
1240
- }
1241
- else if (typeof cb === "function") {
1242
- if (typeof optionsOrCb !== "object")
1243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1244
- this.send(command, optionsOrCb || {}, cb);
1245
- }
1246
- else {
1247
- return this.send(command, optionsOrCb);
1248
- }
1249
- }
1250
- updateSite(args, optionsOrCb, cb) {
1251
- const command = new UpdateSiteCommand(args);
1252
- if (typeof optionsOrCb === "function") {
1253
- this.send(command, optionsOrCb);
1254
- }
1255
- else if (typeof cb === "function") {
1256
- if (typeof optionsOrCb !== "object")
1257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1258
- this.send(command, optionsOrCb || {}, cb);
1259
- }
1260
- else {
1261
- return this.send(command, optionsOrCb);
1262
- }
1263
- }
1264
- updateVpcAttachment(args, optionsOrCb, cb) {
1265
- const command = new UpdateVpcAttachmentCommand(args);
1266
- if (typeof optionsOrCb === "function") {
1267
- this.send(command, optionsOrCb);
1268
- }
1269
- else if (typeof cb === "function") {
1270
- if (typeof optionsOrCb !== "object")
1271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1272
- this.send(command, optionsOrCb || {}, cb);
1273
- }
1274
- else {
1275
- return this.send(command, optionsOrCb);
1276
- }
1277
- }
1278
176
  }
177
+ createAggregatedClient(commands, NetworkManager);