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