@aws-sdk/client-app-mesh 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.
- package/dist-cjs/AppMesh.js +42 -532
- package/dist-cjs/protocols/Aws_restJson1.js +437 -2684
- package/dist-es/AppMesh.js +42 -532
- package/dist-es/protocols/Aws_restJson1.js +356 -2603
- package/dist-types/AppMesh.d.ts +59 -159
- package/dist-types/ts3.4/AppMesh.d.ts +2 -1
- package/package.json +6 -6
package/dist-es/AppMesh.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AppMeshClient } from "./AppMeshClient";
|
|
2
3
|
import { CreateGatewayRouteCommand, } from "./commands/CreateGatewayRouteCommand";
|
|
3
4
|
import { CreateMeshCommand } from "./commands/CreateMeshCommand";
|
|
@@ -37,537 +38,46 @@ import { UpdateVirtualGatewayCommand, } from "./commands/UpdateVirtualGatewayCom
|
|
|
37
38
|
import { UpdateVirtualNodeCommand, } from "./commands/UpdateVirtualNodeCommand";
|
|
38
39
|
import { UpdateVirtualRouterCommand, } from "./commands/UpdateVirtualRouterCommand";
|
|
39
40
|
import { UpdateVirtualServiceCommand, } from "./commands/UpdateVirtualServiceCommand";
|
|
41
|
+
const commands = {
|
|
42
|
+
CreateGatewayRouteCommand,
|
|
43
|
+
CreateMeshCommand,
|
|
44
|
+
CreateRouteCommand,
|
|
45
|
+
CreateVirtualGatewayCommand,
|
|
46
|
+
CreateVirtualNodeCommand,
|
|
47
|
+
CreateVirtualRouterCommand,
|
|
48
|
+
CreateVirtualServiceCommand,
|
|
49
|
+
DeleteGatewayRouteCommand,
|
|
50
|
+
DeleteMeshCommand,
|
|
51
|
+
DeleteRouteCommand,
|
|
52
|
+
DeleteVirtualGatewayCommand,
|
|
53
|
+
DeleteVirtualNodeCommand,
|
|
54
|
+
DeleteVirtualRouterCommand,
|
|
55
|
+
DeleteVirtualServiceCommand,
|
|
56
|
+
DescribeGatewayRouteCommand,
|
|
57
|
+
DescribeMeshCommand,
|
|
58
|
+
DescribeRouteCommand,
|
|
59
|
+
DescribeVirtualGatewayCommand,
|
|
60
|
+
DescribeVirtualNodeCommand,
|
|
61
|
+
DescribeVirtualRouterCommand,
|
|
62
|
+
DescribeVirtualServiceCommand,
|
|
63
|
+
ListGatewayRoutesCommand,
|
|
64
|
+
ListMeshesCommand,
|
|
65
|
+
ListRoutesCommand,
|
|
66
|
+
ListTagsForResourceCommand,
|
|
67
|
+
ListVirtualGatewaysCommand,
|
|
68
|
+
ListVirtualNodesCommand,
|
|
69
|
+
ListVirtualRoutersCommand,
|
|
70
|
+
ListVirtualServicesCommand,
|
|
71
|
+
TagResourceCommand,
|
|
72
|
+
UntagResourceCommand,
|
|
73
|
+
UpdateGatewayRouteCommand,
|
|
74
|
+
UpdateMeshCommand,
|
|
75
|
+
UpdateRouteCommand,
|
|
76
|
+
UpdateVirtualGatewayCommand,
|
|
77
|
+
UpdateVirtualNodeCommand,
|
|
78
|
+
UpdateVirtualRouterCommand,
|
|
79
|
+
UpdateVirtualServiceCommand,
|
|
80
|
+
};
|
|
40
81
|
export class AppMesh extends AppMeshClient {
|
|
41
|
-
createGatewayRoute(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new CreateGatewayRouteCommand(args);
|
|
43
|
-
if (typeof optionsOrCb === "function") {
|
|
44
|
-
this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
createMesh(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new CreateMeshCommand(args);
|
|
57
|
-
if (typeof optionsOrCb === "function") {
|
|
58
|
-
this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
else if (typeof cb === "function") {
|
|
61
|
-
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
createRoute(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new CreateRouteCommand(args);
|
|
71
|
-
if (typeof optionsOrCb === "function") {
|
|
72
|
-
this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
else if (typeof cb === "function") {
|
|
75
|
-
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
createVirtualGateway(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new CreateVirtualGatewayCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
createVirtualNode(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new CreateVirtualNodeCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
createVirtualRouter(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new CreateVirtualRouterCommand(args);
|
|
113
|
-
if (typeof optionsOrCb === "function") {
|
|
114
|
-
this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof cb === "function") {
|
|
117
|
-
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
createVirtualService(args, optionsOrCb, cb) {
|
|
126
|
-
const command = new CreateVirtualServiceCommand(args);
|
|
127
|
-
if (typeof optionsOrCb === "function") {
|
|
128
|
-
this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
else if (typeof cb === "function") {
|
|
131
|
-
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
deleteGatewayRoute(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new DeleteGatewayRouteCommand(args);
|
|
141
|
-
if (typeof optionsOrCb === "function") {
|
|
142
|
-
this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
else if (typeof cb === "function") {
|
|
145
|
-
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
deleteMesh(args, optionsOrCb, cb) {
|
|
154
|
-
const command = new DeleteMeshCommand(args);
|
|
155
|
-
if (typeof optionsOrCb === "function") {
|
|
156
|
-
this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
else if (typeof cb === "function") {
|
|
159
|
-
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
return this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
deleteRoute(args, optionsOrCb, cb) {
|
|
168
|
-
const command = new DeleteRouteCommand(args);
|
|
169
|
-
if (typeof optionsOrCb === "function") {
|
|
170
|
-
this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
else if (typeof cb === "function") {
|
|
173
|
-
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
return this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
deleteVirtualGateway(args, optionsOrCb, cb) {
|
|
182
|
-
const command = new DeleteVirtualGatewayCommand(args);
|
|
183
|
-
if (typeof optionsOrCb === "function") {
|
|
184
|
-
this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
else if (typeof cb === "function") {
|
|
187
|
-
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
return this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
deleteVirtualNode(args, optionsOrCb, cb) {
|
|
196
|
-
const command = new DeleteVirtualNodeCommand(args);
|
|
197
|
-
if (typeof optionsOrCb === "function") {
|
|
198
|
-
this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
else if (typeof cb === "function") {
|
|
201
|
-
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
deleteVirtualRouter(args, optionsOrCb, cb) {
|
|
210
|
-
const command = new DeleteVirtualRouterCommand(args);
|
|
211
|
-
if (typeof optionsOrCb === "function") {
|
|
212
|
-
this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
else if (typeof cb === "function") {
|
|
215
|
-
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
return this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
deleteVirtualService(args, optionsOrCb, cb) {
|
|
224
|
-
const command = new DeleteVirtualServiceCommand(args);
|
|
225
|
-
if (typeof optionsOrCb === "function") {
|
|
226
|
-
this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
else if (typeof cb === "function") {
|
|
229
|
-
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
return this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
describeGatewayRoute(args, optionsOrCb, cb) {
|
|
238
|
-
const command = new DescribeGatewayRouteCommand(args);
|
|
239
|
-
if (typeof optionsOrCb === "function") {
|
|
240
|
-
this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
else if (typeof cb === "function") {
|
|
243
|
-
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
return this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
describeMesh(args, optionsOrCb, cb) {
|
|
252
|
-
const command = new DescribeMeshCommand(args);
|
|
253
|
-
if (typeof optionsOrCb === "function") {
|
|
254
|
-
this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
else if (typeof cb === "function") {
|
|
257
|
-
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
return this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
describeRoute(args, optionsOrCb, cb) {
|
|
266
|
-
const command = new DescribeRouteCommand(args);
|
|
267
|
-
if (typeof optionsOrCb === "function") {
|
|
268
|
-
this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
else if (typeof cb === "function") {
|
|
271
|
-
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
return this.send(command, optionsOrCb);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
describeVirtualGateway(args, optionsOrCb, cb) {
|
|
280
|
-
const command = new DescribeVirtualGatewayCommand(args);
|
|
281
|
-
if (typeof optionsOrCb === "function") {
|
|
282
|
-
this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
else if (typeof cb === "function") {
|
|
285
|
-
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
return this.send(command, optionsOrCb);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
describeVirtualNode(args, optionsOrCb, cb) {
|
|
294
|
-
const command = new DescribeVirtualNodeCommand(args);
|
|
295
|
-
if (typeof optionsOrCb === "function") {
|
|
296
|
-
this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
else if (typeof cb === "function") {
|
|
299
|
-
if (typeof optionsOrCb !== "object")
|
|
300
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
301
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
return this.send(command, optionsOrCb);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
describeVirtualRouter(args, optionsOrCb, cb) {
|
|
308
|
-
const command = new DescribeVirtualRouterCommand(args);
|
|
309
|
-
if (typeof optionsOrCb === "function") {
|
|
310
|
-
this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
else if (typeof cb === "function") {
|
|
313
|
-
if (typeof optionsOrCb !== "object")
|
|
314
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
315
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
return this.send(command, optionsOrCb);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
describeVirtualService(args, optionsOrCb, cb) {
|
|
322
|
-
const command = new DescribeVirtualServiceCommand(args);
|
|
323
|
-
if (typeof optionsOrCb === "function") {
|
|
324
|
-
this.send(command, optionsOrCb);
|
|
325
|
-
}
|
|
326
|
-
else if (typeof cb === "function") {
|
|
327
|
-
if (typeof optionsOrCb !== "object")
|
|
328
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
329
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
return this.send(command, optionsOrCb);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
listGatewayRoutes(args, optionsOrCb, cb) {
|
|
336
|
-
const command = new ListGatewayRoutesCommand(args);
|
|
337
|
-
if (typeof optionsOrCb === "function") {
|
|
338
|
-
this.send(command, optionsOrCb);
|
|
339
|
-
}
|
|
340
|
-
else if (typeof cb === "function") {
|
|
341
|
-
if (typeof optionsOrCb !== "object")
|
|
342
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
343
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
return this.send(command, optionsOrCb);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
listMeshes(args, optionsOrCb, cb) {
|
|
350
|
-
const command = new ListMeshesCommand(args);
|
|
351
|
-
if (typeof optionsOrCb === "function") {
|
|
352
|
-
this.send(command, optionsOrCb);
|
|
353
|
-
}
|
|
354
|
-
else if (typeof cb === "function") {
|
|
355
|
-
if (typeof optionsOrCb !== "object")
|
|
356
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
357
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
return this.send(command, optionsOrCb);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
listRoutes(args, optionsOrCb, cb) {
|
|
364
|
-
const command = new ListRoutesCommand(args);
|
|
365
|
-
if (typeof optionsOrCb === "function") {
|
|
366
|
-
this.send(command, optionsOrCb);
|
|
367
|
-
}
|
|
368
|
-
else if (typeof cb === "function") {
|
|
369
|
-
if (typeof optionsOrCb !== "object")
|
|
370
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
371
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
return this.send(command, optionsOrCb);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
378
|
-
const command = new ListTagsForResourceCommand(args);
|
|
379
|
-
if (typeof optionsOrCb === "function") {
|
|
380
|
-
this.send(command, optionsOrCb);
|
|
381
|
-
}
|
|
382
|
-
else if (typeof cb === "function") {
|
|
383
|
-
if (typeof optionsOrCb !== "object")
|
|
384
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
385
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
return this.send(command, optionsOrCb);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
listVirtualGateways(args, optionsOrCb, cb) {
|
|
392
|
-
const command = new ListVirtualGatewaysCommand(args);
|
|
393
|
-
if (typeof optionsOrCb === "function") {
|
|
394
|
-
this.send(command, optionsOrCb);
|
|
395
|
-
}
|
|
396
|
-
else if (typeof cb === "function") {
|
|
397
|
-
if (typeof optionsOrCb !== "object")
|
|
398
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
399
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
400
|
-
}
|
|
401
|
-
else {
|
|
402
|
-
return this.send(command, optionsOrCb);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
listVirtualNodes(args, optionsOrCb, cb) {
|
|
406
|
-
const command = new ListVirtualNodesCommand(args);
|
|
407
|
-
if (typeof optionsOrCb === "function") {
|
|
408
|
-
this.send(command, optionsOrCb);
|
|
409
|
-
}
|
|
410
|
-
else if (typeof cb === "function") {
|
|
411
|
-
if (typeof optionsOrCb !== "object")
|
|
412
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
413
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
414
|
-
}
|
|
415
|
-
else {
|
|
416
|
-
return this.send(command, optionsOrCb);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
listVirtualRouters(args, optionsOrCb, cb) {
|
|
420
|
-
const command = new ListVirtualRoutersCommand(args);
|
|
421
|
-
if (typeof optionsOrCb === "function") {
|
|
422
|
-
this.send(command, optionsOrCb);
|
|
423
|
-
}
|
|
424
|
-
else if (typeof cb === "function") {
|
|
425
|
-
if (typeof optionsOrCb !== "object")
|
|
426
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
427
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
return this.send(command, optionsOrCb);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
listVirtualServices(args, optionsOrCb, cb) {
|
|
434
|
-
const command = new ListVirtualServicesCommand(args);
|
|
435
|
-
if (typeof optionsOrCb === "function") {
|
|
436
|
-
this.send(command, optionsOrCb);
|
|
437
|
-
}
|
|
438
|
-
else if (typeof cb === "function") {
|
|
439
|
-
if (typeof optionsOrCb !== "object")
|
|
440
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
441
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
return this.send(command, optionsOrCb);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
tagResource(args, optionsOrCb, cb) {
|
|
448
|
-
const command = new TagResourceCommand(args);
|
|
449
|
-
if (typeof optionsOrCb === "function") {
|
|
450
|
-
this.send(command, optionsOrCb);
|
|
451
|
-
}
|
|
452
|
-
else if (typeof cb === "function") {
|
|
453
|
-
if (typeof optionsOrCb !== "object")
|
|
454
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
455
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
456
|
-
}
|
|
457
|
-
else {
|
|
458
|
-
return this.send(command, optionsOrCb);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
untagResource(args, optionsOrCb, cb) {
|
|
462
|
-
const command = new UntagResourceCommand(args);
|
|
463
|
-
if (typeof optionsOrCb === "function") {
|
|
464
|
-
this.send(command, optionsOrCb);
|
|
465
|
-
}
|
|
466
|
-
else if (typeof cb === "function") {
|
|
467
|
-
if (typeof optionsOrCb !== "object")
|
|
468
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
469
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
return this.send(command, optionsOrCb);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
updateGatewayRoute(args, optionsOrCb, cb) {
|
|
476
|
-
const command = new UpdateGatewayRouteCommand(args);
|
|
477
|
-
if (typeof optionsOrCb === "function") {
|
|
478
|
-
this.send(command, optionsOrCb);
|
|
479
|
-
}
|
|
480
|
-
else if (typeof cb === "function") {
|
|
481
|
-
if (typeof optionsOrCb !== "object")
|
|
482
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
483
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
484
|
-
}
|
|
485
|
-
else {
|
|
486
|
-
return this.send(command, optionsOrCb);
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
updateMesh(args, optionsOrCb, cb) {
|
|
490
|
-
const command = new UpdateMeshCommand(args);
|
|
491
|
-
if (typeof optionsOrCb === "function") {
|
|
492
|
-
this.send(command, optionsOrCb);
|
|
493
|
-
}
|
|
494
|
-
else if (typeof cb === "function") {
|
|
495
|
-
if (typeof optionsOrCb !== "object")
|
|
496
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
497
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
return this.send(command, optionsOrCb);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
updateRoute(args, optionsOrCb, cb) {
|
|
504
|
-
const command = new UpdateRouteCommand(args);
|
|
505
|
-
if (typeof optionsOrCb === "function") {
|
|
506
|
-
this.send(command, optionsOrCb);
|
|
507
|
-
}
|
|
508
|
-
else if (typeof cb === "function") {
|
|
509
|
-
if (typeof optionsOrCb !== "object")
|
|
510
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
511
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
return this.send(command, optionsOrCb);
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
updateVirtualGateway(args, optionsOrCb, cb) {
|
|
518
|
-
const command = new UpdateVirtualGatewayCommand(args);
|
|
519
|
-
if (typeof optionsOrCb === "function") {
|
|
520
|
-
this.send(command, optionsOrCb);
|
|
521
|
-
}
|
|
522
|
-
else if (typeof cb === "function") {
|
|
523
|
-
if (typeof optionsOrCb !== "object")
|
|
524
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
525
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
526
|
-
}
|
|
527
|
-
else {
|
|
528
|
-
return this.send(command, optionsOrCb);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
updateVirtualNode(args, optionsOrCb, cb) {
|
|
532
|
-
const command = new UpdateVirtualNodeCommand(args);
|
|
533
|
-
if (typeof optionsOrCb === "function") {
|
|
534
|
-
this.send(command, optionsOrCb);
|
|
535
|
-
}
|
|
536
|
-
else if (typeof cb === "function") {
|
|
537
|
-
if (typeof optionsOrCb !== "object")
|
|
538
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
539
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
540
|
-
}
|
|
541
|
-
else {
|
|
542
|
-
return this.send(command, optionsOrCb);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
updateVirtualRouter(args, optionsOrCb, cb) {
|
|
546
|
-
const command = new UpdateVirtualRouterCommand(args);
|
|
547
|
-
if (typeof optionsOrCb === "function") {
|
|
548
|
-
this.send(command, optionsOrCb);
|
|
549
|
-
}
|
|
550
|
-
else if (typeof cb === "function") {
|
|
551
|
-
if (typeof optionsOrCb !== "object")
|
|
552
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
553
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
return this.send(command, optionsOrCb);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
updateVirtualService(args, optionsOrCb, cb) {
|
|
560
|
-
const command = new UpdateVirtualServiceCommand(args);
|
|
561
|
-
if (typeof optionsOrCb === "function") {
|
|
562
|
-
this.send(command, optionsOrCb);
|
|
563
|
-
}
|
|
564
|
-
else if (typeof cb === "function") {
|
|
565
|
-
if (typeof optionsOrCb !== "object")
|
|
566
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
567
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
return this.send(command, optionsOrCb);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
82
|
}
|
|
83
|
+
createAggregatedClient(commands, AppMesh);
|