@aws-sdk/client-api-gateway 3.315.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.APIGateway = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const APIGatewayClient_1 = require("./APIGatewayClient");
5
6
  const CreateApiKeyCommand_1 = require("./commands/CreateApiKeyCommand");
6
7
  const CreateAuthorizerCommand_1 = require("./commands/CreateAuthorizerCommand");
@@ -122,1686 +123,129 @@ const UpdateStageCommand_1 = require("./commands/UpdateStageCommand");
122
123
  const UpdateUsageCommand_1 = require("./commands/UpdateUsageCommand");
123
124
  const UpdateUsagePlanCommand_1 = require("./commands/UpdateUsagePlanCommand");
124
125
  const UpdateVpcLinkCommand_1 = require("./commands/UpdateVpcLinkCommand");
126
+ const commands = {
127
+ CreateApiKeyCommand: CreateApiKeyCommand_1.CreateApiKeyCommand,
128
+ CreateAuthorizerCommand: CreateAuthorizerCommand_1.CreateAuthorizerCommand,
129
+ CreateBasePathMappingCommand: CreateBasePathMappingCommand_1.CreateBasePathMappingCommand,
130
+ CreateDeploymentCommand: CreateDeploymentCommand_1.CreateDeploymentCommand,
131
+ CreateDocumentationPartCommand: CreateDocumentationPartCommand_1.CreateDocumentationPartCommand,
132
+ CreateDocumentationVersionCommand: CreateDocumentationVersionCommand_1.CreateDocumentationVersionCommand,
133
+ CreateDomainNameCommand: CreateDomainNameCommand_1.CreateDomainNameCommand,
134
+ CreateModelCommand: CreateModelCommand_1.CreateModelCommand,
135
+ CreateRequestValidatorCommand: CreateRequestValidatorCommand_1.CreateRequestValidatorCommand,
136
+ CreateResourceCommand: CreateResourceCommand_1.CreateResourceCommand,
137
+ CreateRestApiCommand: CreateRestApiCommand_1.CreateRestApiCommand,
138
+ CreateStageCommand: CreateStageCommand_1.CreateStageCommand,
139
+ CreateUsagePlanCommand: CreateUsagePlanCommand_1.CreateUsagePlanCommand,
140
+ CreateUsagePlanKeyCommand: CreateUsagePlanKeyCommand_1.CreateUsagePlanKeyCommand,
141
+ CreateVpcLinkCommand: CreateVpcLinkCommand_1.CreateVpcLinkCommand,
142
+ DeleteApiKeyCommand: DeleteApiKeyCommand_1.DeleteApiKeyCommand,
143
+ DeleteAuthorizerCommand: DeleteAuthorizerCommand_1.DeleteAuthorizerCommand,
144
+ DeleteBasePathMappingCommand: DeleteBasePathMappingCommand_1.DeleteBasePathMappingCommand,
145
+ DeleteClientCertificateCommand: DeleteClientCertificateCommand_1.DeleteClientCertificateCommand,
146
+ DeleteDeploymentCommand: DeleteDeploymentCommand_1.DeleteDeploymentCommand,
147
+ DeleteDocumentationPartCommand: DeleteDocumentationPartCommand_1.DeleteDocumentationPartCommand,
148
+ DeleteDocumentationVersionCommand: DeleteDocumentationVersionCommand_1.DeleteDocumentationVersionCommand,
149
+ DeleteDomainNameCommand: DeleteDomainNameCommand_1.DeleteDomainNameCommand,
150
+ DeleteGatewayResponseCommand: DeleteGatewayResponseCommand_1.DeleteGatewayResponseCommand,
151
+ DeleteIntegrationCommand: DeleteIntegrationCommand_1.DeleteIntegrationCommand,
152
+ DeleteIntegrationResponseCommand: DeleteIntegrationResponseCommand_1.DeleteIntegrationResponseCommand,
153
+ DeleteMethodCommand: DeleteMethodCommand_1.DeleteMethodCommand,
154
+ DeleteMethodResponseCommand: DeleteMethodResponseCommand_1.DeleteMethodResponseCommand,
155
+ DeleteModelCommand: DeleteModelCommand_1.DeleteModelCommand,
156
+ DeleteRequestValidatorCommand: DeleteRequestValidatorCommand_1.DeleteRequestValidatorCommand,
157
+ DeleteResourceCommand: DeleteResourceCommand_1.DeleteResourceCommand,
158
+ DeleteRestApiCommand: DeleteRestApiCommand_1.DeleteRestApiCommand,
159
+ DeleteStageCommand: DeleteStageCommand_1.DeleteStageCommand,
160
+ DeleteUsagePlanCommand: DeleteUsagePlanCommand_1.DeleteUsagePlanCommand,
161
+ DeleteUsagePlanKeyCommand: DeleteUsagePlanKeyCommand_1.DeleteUsagePlanKeyCommand,
162
+ DeleteVpcLinkCommand: DeleteVpcLinkCommand_1.DeleteVpcLinkCommand,
163
+ FlushStageAuthorizersCacheCommand: FlushStageAuthorizersCacheCommand_1.FlushStageAuthorizersCacheCommand,
164
+ FlushStageCacheCommand: FlushStageCacheCommand_1.FlushStageCacheCommand,
165
+ GenerateClientCertificateCommand: GenerateClientCertificateCommand_1.GenerateClientCertificateCommand,
166
+ GetAccountCommand: GetAccountCommand_1.GetAccountCommand,
167
+ GetApiKeyCommand: GetApiKeyCommand_1.GetApiKeyCommand,
168
+ GetApiKeysCommand: GetApiKeysCommand_1.GetApiKeysCommand,
169
+ GetAuthorizerCommand: GetAuthorizerCommand_1.GetAuthorizerCommand,
170
+ GetAuthorizersCommand: GetAuthorizersCommand_1.GetAuthorizersCommand,
171
+ GetBasePathMappingCommand: GetBasePathMappingCommand_1.GetBasePathMappingCommand,
172
+ GetBasePathMappingsCommand: GetBasePathMappingsCommand_1.GetBasePathMappingsCommand,
173
+ GetClientCertificateCommand: GetClientCertificateCommand_1.GetClientCertificateCommand,
174
+ GetClientCertificatesCommand: GetClientCertificatesCommand_1.GetClientCertificatesCommand,
175
+ GetDeploymentCommand: GetDeploymentCommand_1.GetDeploymentCommand,
176
+ GetDeploymentsCommand: GetDeploymentsCommand_1.GetDeploymentsCommand,
177
+ GetDocumentationPartCommand: GetDocumentationPartCommand_1.GetDocumentationPartCommand,
178
+ GetDocumentationPartsCommand: GetDocumentationPartsCommand_1.GetDocumentationPartsCommand,
179
+ GetDocumentationVersionCommand: GetDocumentationVersionCommand_1.GetDocumentationVersionCommand,
180
+ GetDocumentationVersionsCommand: GetDocumentationVersionsCommand_1.GetDocumentationVersionsCommand,
181
+ GetDomainNameCommand: GetDomainNameCommand_1.GetDomainNameCommand,
182
+ GetDomainNamesCommand: GetDomainNamesCommand_1.GetDomainNamesCommand,
183
+ GetExportCommand: GetExportCommand_1.GetExportCommand,
184
+ GetGatewayResponseCommand: GetGatewayResponseCommand_1.GetGatewayResponseCommand,
185
+ GetGatewayResponsesCommand: GetGatewayResponsesCommand_1.GetGatewayResponsesCommand,
186
+ GetIntegrationCommand: GetIntegrationCommand_1.GetIntegrationCommand,
187
+ GetIntegrationResponseCommand: GetIntegrationResponseCommand_1.GetIntegrationResponseCommand,
188
+ GetMethodCommand: GetMethodCommand_1.GetMethodCommand,
189
+ GetMethodResponseCommand: GetMethodResponseCommand_1.GetMethodResponseCommand,
190
+ GetModelCommand: GetModelCommand_1.GetModelCommand,
191
+ GetModelsCommand: GetModelsCommand_1.GetModelsCommand,
192
+ GetModelTemplateCommand: GetModelTemplateCommand_1.GetModelTemplateCommand,
193
+ GetRequestValidatorCommand: GetRequestValidatorCommand_1.GetRequestValidatorCommand,
194
+ GetRequestValidatorsCommand: GetRequestValidatorsCommand_1.GetRequestValidatorsCommand,
195
+ GetResourceCommand: GetResourceCommand_1.GetResourceCommand,
196
+ GetResourcesCommand: GetResourcesCommand_1.GetResourcesCommand,
197
+ GetRestApiCommand: GetRestApiCommand_1.GetRestApiCommand,
198
+ GetRestApisCommand: GetRestApisCommand_1.GetRestApisCommand,
199
+ GetSdkCommand: GetSdkCommand_1.GetSdkCommand,
200
+ GetSdkTypeCommand: GetSdkTypeCommand_1.GetSdkTypeCommand,
201
+ GetSdkTypesCommand: GetSdkTypesCommand_1.GetSdkTypesCommand,
202
+ GetStageCommand: GetStageCommand_1.GetStageCommand,
203
+ GetStagesCommand: GetStagesCommand_1.GetStagesCommand,
204
+ GetTagsCommand: GetTagsCommand_1.GetTagsCommand,
205
+ GetUsageCommand: GetUsageCommand_1.GetUsageCommand,
206
+ GetUsagePlanCommand: GetUsagePlanCommand_1.GetUsagePlanCommand,
207
+ GetUsagePlanKeyCommand: GetUsagePlanKeyCommand_1.GetUsagePlanKeyCommand,
208
+ GetUsagePlanKeysCommand: GetUsagePlanKeysCommand_1.GetUsagePlanKeysCommand,
209
+ GetUsagePlansCommand: GetUsagePlansCommand_1.GetUsagePlansCommand,
210
+ GetVpcLinkCommand: GetVpcLinkCommand_1.GetVpcLinkCommand,
211
+ GetVpcLinksCommand: GetVpcLinksCommand_1.GetVpcLinksCommand,
212
+ ImportApiKeysCommand: ImportApiKeysCommand_1.ImportApiKeysCommand,
213
+ ImportDocumentationPartsCommand: ImportDocumentationPartsCommand_1.ImportDocumentationPartsCommand,
214
+ ImportRestApiCommand: ImportRestApiCommand_1.ImportRestApiCommand,
215
+ PutGatewayResponseCommand: PutGatewayResponseCommand_1.PutGatewayResponseCommand,
216
+ PutIntegrationCommand: PutIntegrationCommand_1.PutIntegrationCommand,
217
+ PutIntegrationResponseCommand: PutIntegrationResponseCommand_1.PutIntegrationResponseCommand,
218
+ PutMethodCommand: PutMethodCommand_1.PutMethodCommand,
219
+ PutMethodResponseCommand: PutMethodResponseCommand_1.PutMethodResponseCommand,
220
+ PutRestApiCommand: PutRestApiCommand_1.PutRestApiCommand,
221
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
222
+ TestInvokeAuthorizerCommand: TestInvokeAuthorizerCommand_1.TestInvokeAuthorizerCommand,
223
+ TestInvokeMethodCommand: TestInvokeMethodCommand_1.TestInvokeMethodCommand,
224
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
225
+ UpdateAccountCommand: UpdateAccountCommand_1.UpdateAccountCommand,
226
+ UpdateApiKeyCommand: UpdateApiKeyCommand_1.UpdateApiKeyCommand,
227
+ UpdateAuthorizerCommand: UpdateAuthorizerCommand_1.UpdateAuthorizerCommand,
228
+ UpdateBasePathMappingCommand: UpdateBasePathMappingCommand_1.UpdateBasePathMappingCommand,
229
+ UpdateClientCertificateCommand: UpdateClientCertificateCommand_1.UpdateClientCertificateCommand,
230
+ UpdateDeploymentCommand: UpdateDeploymentCommand_1.UpdateDeploymentCommand,
231
+ UpdateDocumentationPartCommand: UpdateDocumentationPartCommand_1.UpdateDocumentationPartCommand,
232
+ UpdateDocumentationVersionCommand: UpdateDocumentationVersionCommand_1.UpdateDocumentationVersionCommand,
233
+ UpdateDomainNameCommand: UpdateDomainNameCommand_1.UpdateDomainNameCommand,
234
+ UpdateGatewayResponseCommand: UpdateGatewayResponseCommand_1.UpdateGatewayResponseCommand,
235
+ UpdateIntegrationCommand: UpdateIntegrationCommand_1.UpdateIntegrationCommand,
236
+ UpdateIntegrationResponseCommand: UpdateIntegrationResponseCommand_1.UpdateIntegrationResponseCommand,
237
+ UpdateMethodCommand: UpdateMethodCommand_1.UpdateMethodCommand,
238
+ UpdateMethodResponseCommand: UpdateMethodResponseCommand_1.UpdateMethodResponseCommand,
239
+ UpdateModelCommand: UpdateModelCommand_1.UpdateModelCommand,
240
+ UpdateRequestValidatorCommand: UpdateRequestValidatorCommand_1.UpdateRequestValidatorCommand,
241
+ UpdateResourceCommand: UpdateResourceCommand_1.UpdateResourceCommand,
242
+ UpdateRestApiCommand: UpdateRestApiCommand_1.UpdateRestApiCommand,
243
+ UpdateStageCommand: UpdateStageCommand_1.UpdateStageCommand,
244
+ UpdateUsageCommand: UpdateUsageCommand_1.UpdateUsageCommand,
245
+ UpdateUsagePlanCommand: UpdateUsagePlanCommand_1.UpdateUsagePlanCommand,
246
+ UpdateVpcLinkCommand: UpdateVpcLinkCommand_1.UpdateVpcLinkCommand,
247
+ };
125
248
  class APIGateway extends APIGatewayClient_1.APIGatewayClient {
126
- createApiKey(args, optionsOrCb, cb) {
127
- const command = new CreateApiKeyCommand_1.CreateApiKeyCommand(args);
128
- if (typeof optionsOrCb === "function") {
129
- this.send(command, optionsOrCb);
130
- }
131
- else if (typeof cb === "function") {
132
- if (typeof optionsOrCb !== "object")
133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
- this.send(command, optionsOrCb || {}, cb);
135
- }
136
- else {
137
- return this.send(command, optionsOrCb);
138
- }
139
- }
140
- createAuthorizer(args, optionsOrCb, cb) {
141
- const command = new CreateAuthorizerCommand_1.CreateAuthorizerCommand(args);
142
- if (typeof optionsOrCb === "function") {
143
- this.send(command, optionsOrCb);
144
- }
145
- else if (typeof cb === "function") {
146
- if (typeof optionsOrCb !== "object")
147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
- this.send(command, optionsOrCb || {}, cb);
149
- }
150
- else {
151
- return this.send(command, optionsOrCb);
152
- }
153
- }
154
- createBasePathMapping(args, optionsOrCb, cb) {
155
- const command = new CreateBasePathMappingCommand_1.CreateBasePathMappingCommand(args);
156
- if (typeof optionsOrCb === "function") {
157
- this.send(command, optionsOrCb);
158
- }
159
- else if (typeof cb === "function") {
160
- if (typeof optionsOrCb !== "object")
161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
- this.send(command, optionsOrCb || {}, cb);
163
- }
164
- else {
165
- return this.send(command, optionsOrCb);
166
- }
167
- }
168
- createDeployment(args, optionsOrCb, cb) {
169
- const command = new CreateDeploymentCommand_1.CreateDeploymentCommand(args);
170
- if (typeof optionsOrCb === "function") {
171
- this.send(command, optionsOrCb);
172
- }
173
- else if (typeof cb === "function") {
174
- if (typeof optionsOrCb !== "object")
175
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
- this.send(command, optionsOrCb || {}, cb);
177
- }
178
- else {
179
- return this.send(command, optionsOrCb);
180
- }
181
- }
182
- createDocumentationPart(args, optionsOrCb, cb) {
183
- const command = new CreateDocumentationPartCommand_1.CreateDocumentationPartCommand(args);
184
- if (typeof optionsOrCb === "function") {
185
- this.send(command, optionsOrCb);
186
- }
187
- else if (typeof cb === "function") {
188
- if (typeof optionsOrCb !== "object")
189
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
- this.send(command, optionsOrCb || {}, cb);
191
- }
192
- else {
193
- return this.send(command, optionsOrCb);
194
- }
195
- }
196
- createDocumentationVersion(args, optionsOrCb, cb) {
197
- const command = new CreateDocumentationVersionCommand_1.CreateDocumentationVersionCommand(args);
198
- if (typeof optionsOrCb === "function") {
199
- this.send(command, optionsOrCb);
200
- }
201
- else if (typeof cb === "function") {
202
- if (typeof optionsOrCb !== "object")
203
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
- this.send(command, optionsOrCb || {}, cb);
205
- }
206
- else {
207
- return this.send(command, optionsOrCb);
208
- }
209
- }
210
- createDomainName(args, optionsOrCb, cb) {
211
- const command = new CreateDomainNameCommand_1.CreateDomainNameCommand(args);
212
- if (typeof optionsOrCb === "function") {
213
- this.send(command, optionsOrCb);
214
- }
215
- else if (typeof cb === "function") {
216
- if (typeof optionsOrCb !== "object")
217
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
- this.send(command, optionsOrCb || {}, cb);
219
- }
220
- else {
221
- return this.send(command, optionsOrCb);
222
- }
223
- }
224
- createModel(args, optionsOrCb, cb) {
225
- const command = new CreateModelCommand_1.CreateModelCommand(args);
226
- if (typeof optionsOrCb === "function") {
227
- this.send(command, optionsOrCb);
228
- }
229
- else if (typeof cb === "function") {
230
- if (typeof optionsOrCb !== "object")
231
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
- this.send(command, optionsOrCb || {}, cb);
233
- }
234
- else {
235
- return this.send(command, optionsOrCb);
236
- }
237
- }
238
- createRequestValidator(args, optionsOrCb, cb) {
239
- const command = new CreateRequestValidatorCommand_1.CreateRequestValidatorCommand(args);
240
- if (typeof optionsOrCb === "function") {
241
- this.send(command, optionsOrCb);
242
- }
243
- else if (typeof cb === "function") {
244
- if (typeof optionsOrCb !== "object")
245
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
- this.send(command, optionsOrCb || {}, cb);
247
- }
248
- else {
249
- return this.send(command, optionsOrCb);
250
- }
251
- }
252
- createResource(args, optionsOrCb, cb) {
253
- const command = new CreateResourceCommand_1.CreateResourceCommand(args);
254
- if (typeof optionsOrCb === "function") {
255
- this.send(command, optionsOrCb);
256
- }
257
- else if (typeof cb === "function") {
258
- if (typeof optionsOrCb !== "object")
259
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
- this.send(command, optionsOrCb || {}, cb);
261
- }
262
- else {
263
- return this.send(command, optionsOrCb);
264
- }
265
- }
266
- createRestApi(args, optionsOrCb, cb) {
267
- const command = new CreateRestApiCommand_1.CreateRestApiCommand(args);
268
- if (typeof optionsOrCb === "function") {
269
- this.send(command, optionsOrCb);
270
- }
271
- else if (typeof cb === "function") {
272
- if (typeof optionsOrCb !== "object")
273
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
- this.send(command, optionsOrCb || {}, cb);
275
- }
276
- else {
277
- return this.send(command, optionsOrCb);
278
- }
279
- }
280
- createStage(args, optionsOrCb, cb) {
281
- const command = new CreateStageCommand_1.CreateStageCommand(args);
282
- if (typeof optionsOrCb === "function") {
283
- this.send(command, optionsOrCb);
284
- }
285
- else if (typeof cb === "function") {
286
- if (typeof optionsOrCb !== "object")
287
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
- this.send(command, optionsOrCb || {}, cb);
289
- }
290
- else {
291
- return this.send(command, optionsOrCb);
292
- }
293
- }
294
- createUsagePlan(args, optionsOrCb, cb) {
295
- const command = new CreateUsagePlanCommand_1.CreateUsagePlanCommand(args);
296
- if (typeof optionsOrCb === "function") {
297
- this.send(command, optionsOrCb);
298
- }
299
- else if (typeof cb === "function") {
300
- if (typeof optionsOrCb !== "object")
301
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
- this.send(command, optionsOrCb || {}, cb);
303
- }
304
- else {
305
- return this.send(command, optionsOrCb);
306
- }
307
- }
308
- createUsagePlanKey(args, optionsOrCb, cb) {
309
- const command = new CreateUsagePlanKeyCommand_1.CreateUsagePlanKeyCommand(args);
310
- if (typeof optionsOrCb === "function") {
311
- this.send(command, optionsOrCb);
312
- }
313
- else if (typeof cb === "function") {
314
- if (typeof optionsOrCb !== "object")
315
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
- this.send(command, optionsOrCb || {}, cb);
317
- }
318
- else {
319
- return this.send(command, optionsOrCb);
320
- }
321
- }
322
- createVpcLink(args, optionsOrCb, cb) {
323
- const command = new CreateVpcLinkCommand_1.CreateVpcLinkCommand(args);
324
- if (typeof optionsOrCb === "function") {
325
- this.send(command, optionsOrCb);
326
- }
327
- else if (typeof cb === "function") {
328
- if (typeof optionsOrCb !== "object")
329
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
330
- this.send(command, optionsOrCb || {}, cb);
331
- }
332
- else {
333
- return this.send(command, optionsOrCb);
334
- }
335
- }
336
- deleteApiKey(args, optionsOrCb, cb) {
337
- const command = new DeleteApiKeyCommand_1.DeleteApiKeyCommand(args);
338
- if (typeof optionsOrCb === "function") {
339
- this.send(command, optionsOrCb);
340
- }
341
- else if (typeof cb === "function") {
342
- if (typeof optionsOrCb !== "object")
343
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
344
- this.send(command, optionsOrCb || {}, cb);
345
- }
346
- else {
347
- return this.send(command, optionsOrCb);
348
- }
349
- }
350
- deleteAuthorizer(args, optionsOrCb, cb) {
351
- const command = new DeleteAuthorizerCommand_1.DeleteAuthorizerCommand(args);
352
- if (typeof optionsOrCb === "function") {
353
- this.send(command, optionsOrCb);
354
- }
355
- else if (typeof cb === "function") {
356
- if (typeof optionsOrCb !== "object")
357
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
358
- this.send(command, optionsOrCb || {}, cb);
359
- }
360
- else {
361
- return this.send(command, optionsOrCb);
362
- }
363
- }
364
- deleteBasePathMapping(args, optionsOrCb, cb) {
365
- const command = new DeleteBasePathMappingCommand_1.DeleteBasePathMappingCommand(args);
366
- if (typeof optionsOrCb === "function") {
367
- this.send(command, optionsOrCb);
368
- }
369
- else if (typeof cb === "function") {
370
- if (typeof optionsOrCb !== "object")
371
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
372
- this.send(command, optionsOrCb || {}, cb);
373
- }
374
- else {
375
- return this.send(command, optionsOrCb);
376
- }
377
- }
378
- deleteClientCertificate(args, optionsOrCb, cb) {
379
- const command = new DeleteClientCertificateCommand_1.DeleteClientCertificateCommand(args);
380
- if (typeof optionsOrCb === "function") {
381
- this.send(command, optionsOrCb);
382
- }
383
- else if (typeof cb === "function") {
384
- if (typeof optionsOrCb !== "object")
385
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
386
- this.send(command, optionsOrCb || {}, cb);
387
- }
388
- else {
389
- return this.send(command, optionsOrCb);
390
- }
391
- }
392
- deleteDeployment(args, optionsOrCb, cb) {
393
- const command = new DeleteDeploymentCommand_1.DeleteDeploymentCommand(args);
394
- if (typeof optionsOrCb === "function") {
395
- this.send(command, optionsOrCb);
396
- }
397
- else if (typeof cb === "function") {
398
- if (typeof optionsOrCb !== "object")
399
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
400
- this.send(command, optionsOrCb || {}, cb);
401
- }
402
- else {
403
- return this.send(command, optionsOrCb);
404
- }
405
- }
406
- deleteDocumentationPart(args, optionsOrCb, cb) {
407
- const command = new DeleteDocumentationPartCommand_1.DeleteDocumentationPartCommand(args);
408
- if (typeof optionsOrCb === "function") {
409
- this.send(command, optionsOrCb);
410
- }
411
- else if (typeof cb === "function") {
412
- if (typeof optionsOrCb !== "object")
413
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
414
- this.send(command, optionsOrCb || {}, cb);
415
- }
416
- else {
417
- return this.send(command, optionsOrCb);
418
- }
419
- }
420
- deleteDocumentationVersion(args, optionsOrCb, cb) {
421
- const command = new DeleteDocumentationVersionCommand_1.DeleteDocumentationVersionCommand(args);
422
- if (typeof optionsOrCb === "function") {
423
- this.send(command, optionsOrCb);
424
- }
425
- else if (typeof cb === "function") {
426
- if (typeof optionsOrCb !== "object")
427
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
428
- this.send(command, optionsOrCb || {}, cb);
429
- }
430
- else {
431
- return this.send(command, optionsOrCb);
432
- }
433
- }
434
- deleteDomainName(args, optionsOrCb, cb) {
435
- const command = new DeleteDomainNameCommand_1.DeleteDomainNameCommand(args);
436
- if (typeof optionsOrCb === "function") {
437
- this.send(command, optionsOrCb);
438
- }
439
- else if (typeof cb === "function") {
440
- if (typeof optionsOrCb !== "object")
441
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
442
- this.send(command, optionsOrCb || {}, cb);
443
- }
444
- else {
445
- return this.send(command, optionsOrCb);
446
- }
447
- }
448
- deleteGatewayResponse(args, optionsOrCb, cb) {
449
- const command = new DeleteGatewayResponseCommand_1.DeleteGatewayResponseCommand(args);
450
- if (typeof optionsOrCb === "function") {
451
- this.send(command, optionsOrCb);
452
- }
453
- else if (typeof cb === "function") {
454
- if (typeof optionsOrCb !== "object")
455
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
456
- this.send(command, optionsOrCb || {}, cb);
457
- }
458
- else {
459
- return this.send(command, optionsOrCb);
460
- }
461
- }
462
- deleteIntegration(args, optionsOrCb, cb) {
463
- const command = new DeleteIntegrationCommand_1.DeleteIntegrationCommand(args);
464
- if (typeof optionsOrCb === "function") {
465
- this.send(command, optionsOrCb);
466
- }
467
- else if (typeof cb === "function") {
468
- if (typeof optionsOrCb !== "object")
469
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
470
- this.send(command, optionsOrCb || {}, cb);
471
- }
472
- else {
473
- return this.send(command, optionsOrCb);
474
- }
475
- }
476
- deleteIntegrationResponse(args, optionsOrCb, cb) {
477
- const command = new DeleteIntegrationResponseCommand_1.DeleteIntegrationResponseCommand(args);
478
- if (typeof optionsOrCb === "function") {
479
- this.send(command, optionsOrCb);
480
- }
481
- else if (typeof cb === "function") {
482
- if (typeof optionsOrCb !== "object")
483
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
484
- this.send(command, optionsOrCb || {}, cb);
485
- }
486
- else {
487
- return this.send(command, optionsOrCb);
488
- }
489
- }
490
- deleteMethod(args, optionsOrCb, cb) {
491
- const command = new DeleteMethodCommand_1.DeleteMethodCommand(args);
492
- if (typeof optionsOrCb === "function") {
493
- this.send(command, optionsOrCb);
494
- }
495
- else if (typeof cb === "function") {
496
- if (typeof optionsOrCb !== "object")
497
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
- this.send(command, optionsOrCb || {}, cb);
499
- }
500
- else {
501
- return this.send(command, optionsOrCb);
502
- }
503
- }
504
- deleteMethodResponse(args, optionsOrCb, cb) {
505
- const command = new DeleteMethodResponseCommand_1.DeleteMethodResponseCommand(args);
506
- if (typeof optionsOrCb === "function") {
507
- this.send(command, optionsOrCb);
508
- }
509
- else if (typeof cb === "function") {
510
- if (typeof optionsOrCb !== "object")
511
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
512
- this.send(command, optionsOrCb || {}, cb);
513
- }
514
- else {
515
- return this.send(command, optionsOrCb);
516
- }
517
- }
518
- deleteModel(args, optionsOrCb, cb) {
519
- const command = new DeleteModelCommand_1.DeleteModelCommand(args);
520
- if (typeof optionsOrCb === "function") {
521
- this.send(command, optionsOrCb);
522
- }
523
- else if (typeof cb === "function") {
524
- if (typeof optionsOrCb !== "object")
525
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
526
- this.send(command, optionsOrCb || {}, cb);
527
- }
528
- else {
529
- return this.send(command, optionsOrCb);
530
- }
531
- }
532
- deleteRequestValidator(args, optionsOrCb, cb) {
533
- const command = new DeleteRequestValidatorCommand_1.DeleteRequestValidatorCommand(args);
534
- if (typeof optionsOrCb === "function") {
535
- this.send(command, optionsOrCb);
536
- }
537
- else if (typeof cb === "function") {
538
- if (typeof optionsOrCb !== "object")
539
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
540
- this.send(command, optionsOrCb || {}, cb);
541
- }
542
- else {
543
- return this.send(command, optionsOrCb);
544
- }
545
- }
546
- deleteResource(args, optionsOrCb, cb) {
547
- const command = new DeleteResourceCommand_1.DeleteResourceCommand(args);
548
- if (typeof optionsOrCb === "function") {
549
- this.send(command, optionsOrCb);
550
- }
551
- else if (typeof cb === "function") {
552
- if (typeof optionsOrCb !== "object")
553
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
554
- this.send(command, optionsOrCb || {}, cb);
555
- }
556
- else {
557
- return this.send(command, optionsOrCb);
558
- }
559
- }
560
- deleteRestApi(args, optionsOrCb, cb) {
561
- const command = new DeleteRestApiCommand_1.DeleteRestApiCommand(args);
562
- if (typeof optionsOrCb === "function") {
563
- this.send(command, optionsOrCb);
564
- }
565
- else if (typeof cb === "function") {
566
- if (typeof optionsOrCb !== "object")
567
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
568
- this.send(command, optionsOrCb || {}, cb);
569
- }
570
- else {
571
- return this.send(command, optionsOrCb);
572
- }
573
- }
574
- deleteStage(args, optionsOrCb, cb) {
575
- const command = new DeleteStageCommand_1.DeleteStageCommand(args);
576
- if (typeof optionsOrCb === "function") {
577
- this.send(command, optionsOrCb);
578
- }
579
- else if (typeof cb === "function") {
580
- if (typeof optionsOrCb !== "object")
581
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
582
- this.send(command, optionsOrCb || {}, cb);
583
- }
584
- else {
585
- return this.send(command, optionsOrCb);
586
- }
587
- }
588
- deleteUsagePlan(args, optionsOrCb, cb) {
589
- const command = new DeleteUsagePlanCommand_1.DeleteUsagePlanCommand(args);
590
- if (typeof optionsOrCb === "function") {
591
- this.send(command, optionsOrCb);
592
- }
593
- else if (typeof cb === "function") {
594
- if (typeof optionsOrCb !== "object")
595
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
596
- this.send(command, optionsOrCb || {}, cb);
597
- }
598
- else {
599
- return this.send(command, optionsOrCb);
600
- }
601
- }
602
- deleteUsagePlanKey(args, optionsOrCb, cb) {
603
- const command = new DeleteUsagePlanKeyCommand_1.DeleteUsagePlanKeyCommand(args);
604
- if (typeof optionsOrCb === "function") {
605
- this.send(command, optionsOrCb);
606
- }
607
- else if (typeof cb === "function") {
608
- if (typeof optionsOrCb !== "object")
609
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
610
- this.send(command, optionsOrCb || {}, cb);
611
- }
612
- else {
613
- return this.send(command, optionsOrCb);
614
- }
615
- }
616
- deleteVpcLink(args, optionsOrCb, cb) {
617
- const command = new DeleteVpcLinkCommand_1.DeleteVpcLinkCommand(args);
618
- if (typeof optionsOrCb === "function") {
619
- this.send(command, optionsOrCb);
620
- }
621
- else if (typeof cb === "function") {
622
- if (typeof optionsOrCb !== "object")
623
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
624
- this.send(command, optionsOrCb || {}, cb);
625
- }
626
- else {
627
- return this.send(command, optionsOrCb);
628
- }
629
- }
630
- flushStageAuthorizersCache(args, optionsOrCb, cb) {
631
- const command = new FlushStageAuthorizersCacheCommand_1.FlushStageAuthorizersCacheCommand(args);
632
- if (typeof optionsOrCb === "function") {
633
- this.send(command, optionsOrCb);
634
- }
635
- else if (typeof cb === "function") {
636
- if (typeof optionsOrCb !== "object")
637
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
638
- this.send(command, optionsOrCb || {}, cb);
639
- }
640
- else {
641
- return this.send(command, optionsOrCb);
642
- }
643
- }
644
- flushStageCache(args, optionsOrCb, cb) {
645
- const command = new FlushStageCacheCommand_1.FlushStageCacheCommand(args);
646
- if (typeof optionsOrCb === "function") {
647
- this.send(command, optionsOrCb);
648
- }
649
- else if (typeof cb === "function") {
650
- if (typeof optionsOrCb !== "object")
651
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
652
- this.send(command, optionsOrCb || {}, cb);
653
- }
654
- else {
655
- return this.send(command, optionsOrCb);
656
- }
657
- }
658
- generateClientCertificate(args, optionsOrCb, cb) {
659
- const command = new GenerateClientCertificateCommand_1.GenerateClientCertificateCommand(args);
660
- if (typeof optionsOrCb === "function") {
661
- this.send(command, optionsOrCb);
662
- }
663
- else if (typeof cb === "function") {
664
- if (typeof optionsOrCb !== "object")
665
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
666
- this.send(command, optionsOrCb || {}, cb);
667
- }
668
- else {
669
- return this.send(command, optionsOrCb);
670
- }
671
- }
672
- getAccount(args, optionsOrCb, cb) {
673
- const command = new GetAccountCommand_1.GetAccountCommand(args);
674
- if (typeof optionsOrCb === "function") {
675
- this.send(command, optionsOrCb);
676
- }
677
- else if (typeof cb === "function") {
678
- if (typeof optionsOrCb !== "object")
679
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
680
- this.send(command, optionsOrCb || {}, cb);
681
- }
682
- else {
683
- return this.send(command, optionsOrCb);
684
- }
685
- }
686
- getApiKey(args, optionsOrCb, cb) {
687
- const command = new GetApiKeyCommand_1.GetApiKeyCommand(args);
688
- if (typeof optionsOrCb === "function") {
689
- this.send(command, optionsOrCb);
690
- }
691
- else if (typeof cb === "function") {
692
- if (typeof optionsOrCb !== "object")
693
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
694
- this.send(command, optionsOrCb || {}, cb);
695
- }
696
- else {
697
- return this.send(command, optionsOrCb);
698
- }
699
- }
700
- getApiKeys(args, optionsOrCb, cb) {
701
- const command = new GetApiKeysCommand_1.GetApiKeysCommand(args);
702
- if (typeof optionsOrCb === "function") {
703
- this.send(command, optionsOrCb);
704
- }
705
- else if (typeof cb === "function") {
706
- if (typeof optionsOrCb !== "object")
707
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
708
- this.send(command, optionsOrCb || {}, cb);
709
- }
710
- else {
711
- return this.send(command, optionsOrCb);
712
- }
713
- }
714
- getAuthorizer(args, optionsOrCb, cb) {
715
- const command = new GetAuthorizerCommand_1.GetAuthorizerCommand(args);
716
- if (typeof optionsOrCb === "function") {
717
- this.send(command, optionsOrCb);
718
- }
719
- else if (typeof cb === "function") {
720
- if (typeof optionsOrCb !== "object")
721
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
722
- this.send(command, optionsOrCb || {}, cb);
723
- }
724
- else {
725
- return this.send(command, optionsOrCb);
726
- }
727
- }
728
- getAuthorizers(args, optionsOrCb, cb) {
729
- const command = new GetAuthorizersCommand_1.GetAuthorizersCommand(args);
730
- if (typeof optionsOrCb === "function") {
731
- this.send(command, optionsOrCb);
732
- }
733
- else if (typeof cb === "function") {
734
- if (typeof optionsOrCb !== "object")
735
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
736
- this.send(command, optionsOrCb || {}, cb);
737
- }
738
- else {
739
- return this.send(command, optionsOrCb);
740
- }
741
- }
742
- getBasePathMapping(args, optionsOrCb, cb) {
743
- const command = new GetBasePathMappingCommand_1.GetBasePathMappingCommand(args);
744
- if (typeof optionsOrCb === "function") {
745
- this.send(command, optionsOrCb);
746
- }
747
- else if (typeof cb === "function") {
748
- if (typeof optionsOrCb !== "object")
749
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
750
- this.send(command, optionsOrCb || {}, cb);
751
- }
752
- else {
753
- return this.send(command, optionsOrCb);
754
- }
755
- }
756
- getBasePathMappings(args, optionsOrCb, cb) {
757
- const command = new GetBasePathMappingsCommand_1.GetBasePathMappingsCommand(args);
758
- if (typeof optionsOrCb === "function") {
759
- this.send(command, optionsOrCb);
760
- }
761
- else if (typeof cb === "function") {
762
- if (typeof optionsOrCb !== "object")
763
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
764
- this.send(command, optionsOrCb || {}, cb);
765
- }
766
- else {
767
- return this.send(command, optionsOrCb);
768
- }
769
- }
770
- getClientCertificate(args, optionsOrCb, cb) {
771
- const command = new GetClientCertificateCommand_1.GetClientCertificateCommand(args);
772
- if (typeof optionsOrCb === "function") {
773
- this.send(command, optionsOrCb);
774
- }
775
- else if (typeof cb === "function") {
776
- if (typeof optionsOrCb !== "object")
777
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
778
- this.send(command, optionsOrCb || {}, cb);
779
- }
780
- else {
781
- return this.send(command, optionsOrCb);
782
- }
783
- }
784
- getClientCertificates(args, optionsOrCb, cb) {
785
- const command = new GetClientCertificatesCommand_1.GetClientCertificatesCommand(args);
786
- if (typeof optionsOrCb === "function") {
787
- this.send(command, optionsOrCb);
788
- }
789
- else if (typeof cb === "function") {
790
- if (typeof optionsOrCb !== "object")
791
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
792
- this.send(command, optionsOrCb || {}, cb);
793
- }
794
- else {
795
- return this.send(command, optionsOrCb);
796
- }
797
- }
798
- getDeployment(args, optionsOrCb, cb) {
799
- const command = new GetDeploymentCommand_1.GetDeploymentCommand(args);
800
- if (typeof optionsOrCb === "function") {
801
- this.send(command, optionsOrCb);
802
- }
803
- else if (typeof cb === "function") {
804
- if (typeof optionsOrCb !== "object")
805
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
806
- this.send(command, optionsOrCb || {}, cb);
807
- }
808
- else {
809
- return this.send(command, optionsOrCb);
810
- }
811
- }
812
- getDeployments(args, optionsOrCb, cb) {
813
- const command = new GetDeploymentsCommand_1.GetDeploymentsCommand(args);
814
- if (typeof optionsOrCb === "function") {
815
- this.send(command, optionsOrCb);
816
- }
817
- else if (typeof cb === "function") {
818
- if (typeof optionsOrCb !== "object")
819
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
820
- this.send(command, optionsOrCb || {}, cb);
821
- }
822
- else {
823
- return this.send(command, optionsOrCb);
824
- }
825
- }
826
- getDocumentationPart(args, optionsOrCb, cb) {
827
- const command = new GetDocumentationPartCommand_1.GetDocumentationPartCommand(args);
828
- if (typeof optionsOrCb === "function") {
829
- this.send(command, optionsOrCb);
830
- }
831
- else if (typeof cb === "function") {
832
- if (typeof optionsOrCb !== "object")
833
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
834
- this.send(command, optionsOrCb || {}, cb);
835
- }
836
- else {
837
- return this.send(command, optionsOrCb);
838
- }
839
- }
840
- getDocumentationParts(args, optionsOrCb, cb) {
841
- const command = new GetDocumentationPartsCommand_1.GetDocumentationPartsCommand(args);
842
- if (typeof optionsOrCb === "function") {
843
- this.send(command, optionsOrCb);
844
- }
845
- else if (typeof cb === "function") {
846
- if (typeof optionsOrCb !== "object")
847
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
848
- this.send(command, optionsOrCb || {}, cb);
849
- }
850
- else {
851
- return this.send(command, optionsOrCb);
852
- }
853
- }
854
- getDocumentationVersion(args, optionsOrCb, cb) {
855
- const command = new GetDocumentationVersionCommand_1.GetDocumentationVersionCommand(args);
856
- if (typeof optionsOrCb === "function") {
857
- this.send(command, optionsOrCb);
858
- }
859
- else if (typeof cb === "function") {
860
- if (typeof optionsOrCb !== "object")
861
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
862
- this.send(command, optionsOrCb || {}, cb);
863
- }
864
- else {
865
- return this.send(command, optionsOrCb);
866
- }
867
- }
868
- getDocumentationVersions(args, optionsOrCb, cb) {
869
- const command = new GetDocumentationVersionsCommand_1.GetDocumentationVersionsCommand(args);
870
- if (typeof optionsOrCb === "function") {
871
- this.send(command, optionsOrCb);
872
- }
873
- else if (typeof cb === "function") {
874
- if (typeof optionsOrCb !== "object")
875
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
876
- this.send(command, optionsOrCb || {}, cb);
877
- }
878
- else {
879
- return this.send(command, optionsOrCb);
880
- }
881
- }
882
- getDomainName(args, optionsOrCb, cb) {
883
- const command = new GetDomainNameCommand_1.GetDomainNameCommand(args);
884
- if (typeof optionsOrCb === "function") {
885
- this.send(command, optionsOrCb);
886
- }
887
- else if (typeof cb === "function") {
888
- if (typeof optionsOrCb !== "object")
889
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
890
- this.send(command, optionsOrCb || {}, cb);
891
- }
892
- else {
893
- return this.send(command, optionsOrCb);
894
- }
895
- }
896
- getDomainNames(args, optionsOrCb, cb) {
897
- const command = new GetDomainNamesCommand_1.GetDomainNamesCommand(args);
898
- if (typeof optionsOrCb === "function") {
899
- this.send(command, optionsOrCb);
900
- }
901
- else if (typeof cb === "function") {
902
- if (typeof optionsOrCb !== "object")
903
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
904
- this.send(command, optionsOrCb || {}, cb);
905
- }
906
- else {
907
- return this.send(command, optionsOrCb);
908
- }
909
- }
910
- getExport(args, optionsOrCb, cb) {
911
- const command = new GetExportCommand_1.GetExportCommand(args);
912
- if (typeof optionsOrCb === "function") {
913
- this.send(command, optionsOrCb);
914
- }
915
- else if (typeof cb === "function") {
916
- if (typeof optionsOrCb !== "object")
917
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
918
- this.send(command, optionsOrCb || {}, cb);
919
- }
920
- else {
921
- return this.send(command, optionsOrCb);
922
- }
923
- }
924
- getGatewayResponse(args, optionsOrCb, cb) {
925
- const command = new GetGatewayResponseCommand_1.GetGatewayResponseCommand(args);
926
- if (typeof optionsOrCb === "function") {
927
- this.send(command, optionsOrCb);
928
- }
929
- else if (typeof cb === "function") {
930
- if (typeof optionsOrCb !== "object")
931
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
932
- this.send(command, optionsOrCb || {}, cb);
933
- }
934
- else {
935
- return this.send(command, optionsOrCb);
936
- }
937
- }
938
- getGatewayResponses(args, optionsOrCb, cb) {
939
- const command = new GetGatewayResponsesCommand_1.GetGatewayResponsesCommand(args);
940
- if (typeof optionsOrCb === "function") {
941
- this.send(command, optionsOrCb);
942
- }
943
- else if (typeof cb === "function") {
944
- if (typeof optionsOrCb !== "object")
945
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
946
- this.send(command, optionsOrCb || {}, cb);
947
- }
948
- else {
949
- return this.send(command, optionsOrCb);
950
- }
951
- }
952
- getIntegration(args, optionsOrCb, cb) {
953
- const command = new GetIntegrationCommand_1.GetIntegrationCommand(args);
954
- if (typeof optionsOrCb === "function") {
955
- this.send(command, optionsOrCb);
956
- }
957
- else if (typeof cb === "function") {
958
- if (typeof optionsOrCb !== "object")
959
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
960
- this.send(command, optionsOrCb || {}, cb);
961
- }
962
- else {
963
- return this.send(command, optionsOrCb);
964
- }
965
- }
966
- getIntegrationResponse(args, optionsOrCb, cb) {
967
- const command = new GetIntegrationResponseCommand_1.GetIntegrationResponseCommand(args);
968
- if (typeof optionsOrCb === "function") {
969
- this.send(command, optionsOrCb);
970
- }
971
- else if (typeof cb === "function") {
972
- if (typeof optionsOrCb !== "object")
973
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
974
- this.send(command, optionsOrCb || {}, cb);
975
- }
976
- else {
977
- return this.send(command, optionsOrCb);
978
- }
979
- }
980
- getMethod(args, optionsOrCb, cb) {
981
- const command = new GetMethodCommand_1.GetMethodCommand(args);
982
- if (typeof optionsOrCb === "function") {
983
- this.send(command, optionsOrCb);
984
- }
985
- else if (typeof cb === "function") {
986
- if (typeof optionsOrCb !== "object")
987
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
988
- this.send(command, optionsOrCb || {}, cb);
989
- }
990
- else {
991
- return this.send(command, optionsOrCb);
992
- }
993
- }
994
- getMethodResponse(args, optionsOrCb, cb) {
995
- const command = new GetMethodResponseCommand_1.GetMethodResponseCommand(args);
996
- if (typeof optionsOrCb === "function") {
997
- this.send(command, optionsOrCb);
998
- }
999
- else if (typeof cb === "function") {
1000
- if (typeof optionsOrCb !== "object")
1001
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1002
- this.send(command, optionsOrCb || {}, cb);
1003
- }
1004
- else {
1005
- return this.send(command, optionsOrCb);
1006
- }
1007
- }
1008
- getModel(args, optionsOrCb, cb) {
1009
- const command = new GetModelCommand_1.GetModelCommand(args);
1010
- if (typeof optionsOrCb === "function") {
1011
- this.send(command, optionsOrCb);
1012
- }
1013
- else if (typeof cb === "function") {
1014
- if (typeof optionsOrCb !== "object")
1015
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1016
- this.send(command, optionsOrCb || {}, cb);
1017
- }
1018
- else {
1019
- return this.send(command, optionsOrCb);
1020
- }
1021
- }
1022
- getModels(args, optionsOrCb, cb) {
1023
- const command = new GetModelsCommand_1.GetModelsCommand(args);
1024
- if (typeof optionsOrCb === "function") {
1025
- this.send(command, optionsOrCb);
1026
- }
1027
- else if (typeof cb === "function") {
1028
- if (typeof optionsOrCb !== "object")
1029
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1030
- this.send(command, optionsOrCb || {}, cb);
1031
- }
1032
- else {
1033
- return this.send(command, optionsOrCb);
1034
- }
1035
- }
1036
- getModelTemplate(args, optionsOrCb, cb) {
1037
- const command = new GetModelTemplateCommand_1.GetModelTemplateCommand(args);
1038
- if (typeof optionsOrCb === "function") {
1039
- this.send(command, optionsOrCb);
1040
- }
1041
- else if (typeof cb === "function") {
1042
- if (typeof optionsOrCb !== "object")
1043
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1044
- this.send(command, optionsOrCb || {}, cb);
1045
- }
1046
- else {
1047
- return this.send(command, optionsOrCb);
1048
- }
1049
- }
1050
- getRequestValidator(args, optionsOrCb, cb) {
1051
- const command = new GetRequestValidatorCommand_1.GetRequestValidatorCommand(args);
1052
- if (typeof optionsOrCb === "function") {
1053
- this.send(command, optionsOrCb);
1054
- }
1055
- else if (typeof cb === "function") {
1056
- if (typeof optionsOrCb !== "object")
1057
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1058
- this.send(command, optionsOrCb || {}, cb);
1059
- }
1060
- else {
1061
- return this.send(command, optionsOrCb);
1062
- }
1063
- }
1064
- getRequestValidators(args, optionsOrCb, cb) {
1065
- const command = new GetRequestValidatorsCommand_1.GetRequestValidatorsCommand(args);
1066
- if (typeof optionsOrCb === "function") {
1067
- this.send(command, optionsOrCb);
1068
- }
1069
- else if (typeof cb === "function") {
1070
- if (typeof optionsOrCb !== "object")
1071
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1072
- this.send(command, optionsOrCb || {}, cb);
1073
- }
1074
- else {
1075
- return this.send(command, optionsOrCb);
1076
- }
1077
- }
1078
- getResource(args, optionsOrCb, cb) {
1079
- const command = new GetResourceCommand_1.GetResourceCommand(args);
1080
- if (typeof optionsOrCb === "function") {
1081
- this.send(command, optionsOrCb);
1082
- }
1083
- else if (typeof cb === "function") {
1084
- if (typeof optionsOrCb !== "object")
1085
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1086
- this.send(command, optionsOrCb || {}, cb);
1087
- }
1088
- else {
1089
- return this.send(command, optionsOrCb);
1090
- }
1091
- }
1092
- getResources(args, optionsOrCb, cb) {
1093
- const command = new GetResourcesCommand_1.GetResourcesCommand(args);
1094
- if (typeof optionsOrCb === "function") {
1095
- this.send(command, optionsOrCb);
1096
- }
1097
- else if (typeof cb === "function") {
1098
- if (typeof optionsOrCb !== "object")
1099
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1100
- this.send(command, optionsOrCb || {}, cb);
1101
- }
1102
- else {
1103
- return this.send(command, optionsOrCb);
1104
- }
1105
- }
1106
- getRestApi(args, optionsOrCb, cb) {
1107
- const command = new GetRestApiCommand_1.GetRestApiCommand(args);
1108
- if (typeof optionsOrCb === "function") {
1109
- this.send(command, optionsOrCb);
1110
- }
1111
- else if (typeof cb === "function") {
1112
- if (typeof optionsOrCb !== "object")
1113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1114
- this.send(command, optionsOrCb || {}, cb);
1115
- }
1116
- else {
1117
- return this.send(command, optionsOrCb);
1118
- }
1119
- }
1120
- getRestApis(args, optionsOrCb, cb) {
1121
- const command = new GetRestApisCommand_1.GetRestApisCommand(args);
1122
- if (typeof optionsOrCb === "function") {
1123
- this.send(command, optionsOrCb);
1124
- }
1125
- else if (typeof cb === "function") {
1126
- if (typeof optionsOrCb !== "object")
1127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1128
- this.send(command, optionsOrCb || {}, cb);
1129
- }
1130
- else {
1131
- return this.send(command, optionsOrCb);
1132
- }
1133
- }
1134
- getSdk(args, optionsOrCb, cb) {
1135
- const command = new GetSdkCommand_1.GetSdkCommand(args);
1136
- if (typeof optionsOrCb === "function") {
1137
- this.send(command, optionsOrCb);
1138
- }
1139
- else if (typeof cb === "function") {
1140
- if (typeof optionsOrCb !== "object")
1141
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1142
- this.send(command, optionsOrCb || {}, cb);
1143
- }
1144
- else {
1145
- return this.send(command, optionsOrCb);
1146
- }
1147
- }
1148
- getSdkType(args, optionsOrCb, cb) {
1149
- const command = new GetSdkTypeCommand_1.GetSdkTypeCommand(args);
1150
- if (typeof optionsOrCb === "function") {
1151
- this.send(command, optionsOrCb);
1152
- }
1153
- else if (typeof cb === "function") {
1154
- if (typeof optionsOrCb !== "object")
1155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1156
- this.send(command, optionsOrCb || {}, cb);
1157
- }
1158
- else {
1159
- return this.send(command, optionsOrCb);
1160
- }
1161
- }
1162
- getSdkTypes(args, optionsOrCb, cb) {
1163
- const command = new GetSdkTypesCommand_1.GetSdkTypesCommand(args);
1164
- if (typeof optionsOrCb === "function") {
1165
- this.send(command, optionsOrCb);
1166
- }
1167
- else if (typeof cb === "function") {
1168
- if (typeof optionsOrCb !== "object")
1169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1170
- this.send(command, optionsOrCb || {}, cb);
1171
- }
1172
- else {
1173
- return this.send(command, optionsOrCb);
1174
- }
1175
- }
1176
- getStage(args, optionsOrCb, cb) {
1177
- const command = new GetStageCommand_1.GetStageCommand(args);
1178
- if (typeof optionsOrCb === "function") {
1179
- this.send(command, optionsOrCb);
1180
- }
1181
- else if (typeof cb === "function") {
1182
- if (typeof optionsOrCb !== "object")
1183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1184
- this.send(command, optionsOrCb || {}, cb);
1185
- }
1186
- else {
1187
- return this.send(command, optionsOrCb);
1188
- }
1189
- }
1190
- getStages(args, optionsOrCb, cb) {
1191
- const command = new GetStagesCommand_1.GetStagesCommand(args);
1192
- if (typeof optionsOrCb === "function") {
1193
- this.send(command, optionsOrCb);
1194
- }
1195
- else if (typeof cb === "function") {
1196
- if (typeof optionsOrCb !== "object")
1197
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1198
- this.send(command, optionsOrCb || {}, cb);
1199
- }
1200
- else {
1201
- return this.send(command, optionsOrCb);
1202
- }
1203
- }
1204
- getTags(args, optionsOrCb, cb) {
1205
- const command = new GetTagsCommand_1.GetTagsCommand(args);
1206
- if (typeof optionsOrCb === "function") {
1207
- this.send(command, optionsOrCb);
1208
- }
1209
- else if (typeof cb === "function") {
1210
- if (typeof optionsOrCb !== "object")
1211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1212
- this.send(command, optionsOrCb || {}, cb);
1213
- }
1214
- else {
1215
- return this.send(command, optionsOrCb);
1216
- }
1217
- }
1218
- getUsage(args, optionsOrCb, cb) {
1219
- const command = new GetUsageCommand_1.GetUsageCommand(args);
1220
- if (typeof optionsOrCb === "function") {
1221
- this.send(command, optionsOrCb);
1222
- }
1223
- else if (typeof cb === "function") {
1224
- if (typeof optionsOrCb !== "object")
1225
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1226
- this.send(command, optionsOrCb || {}, cb);
1227
- }
1228
- else {
1229
- return this.send(command, optionsOrCb);
1230
- }
1231
- }
1232
- getUsagePlan(args, optionsOrCb, cb) {
1233
- const command = new GetUsagePlanCommand_1.GetUsagePlanCommand(args);
1234
- if (typeof optionsOrCb === "function") {
1235
- this.send(command, optionsOrCb);
1236
- }
1237
- else if (typeof cb === "function") {
1238
- if (typeof optionsOrCb !== "object")
1239
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1240
- this.send(command, optionsOrCb || {}, cb);
1241
- }
1242
- else {
1243
- return this.send(command, optionsOrCb);
1244
- }
1245
- }
1246
- getUsagePlanKey(args, optionsOrCb, cb) {
1247
- const command = new GetUsagePlanKeyCommand_1.GetUsagePlanKeyCommand(args);
1248
- if (typeof optionsOrCb === "function") {
1249
- this.send(command, optionsOrCb);
1250
- }
1251
- else if (typeof cb === "function") {
1252
- if (typeof optionsOrCb !== "object")
1253
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1254
- this.send(command, optionsOrCb || {}, cb);
1255
- }
1256
- else {
1257
- return this.send(command, optionsOrCb);
1258
- }
1259
- }
1260
- getUsagePlanKeys(args, optionsOrCb, cb) {
1261
- const command = new GetUsagePlanKeysCommand_1.GetUsagePlanKeysCommand(args);
1262
- if (typeof optionsOrCb === "function") {
1263
- this.send(command, optionsOrCb);
1264
- }
1265
- else if (typeof cb === "function") {
1266
- if (typeof optionsOrCb !== "object")
1267
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1268
- this.send(command, optionsOrCb || {}, cb);
1269
- }
1270
- else {
1271
- return this.send(command, optionsOrCb);
1272
- }
1273
- }
1274
- getUsagePlans(args, optionsOrCb, cb) {
1275
- const command = new GetUsagePlansCommand_1.GetUsagePlansCommand(args);
1276
- if (typeof optionsOrCb === "function") {
1277
- this.send(command, optionsOrCb);
1278
- }
1279
- else if (typeof cb === "function") {
1280
- if (typeof optionsOrCb !== "object")
1281
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1282
- this.send(command, optionsOrCb || {}, cb);
1283
- }
1284
- else {
1285
- return this.send(command, optionsOrCb);
1286
- }
1287
- }
1288
- getVpcLink(args, optionsOrCb, cb) {
1289
- const command = new GetVpcLinkCommand_1.GetVpcLinkCommand(args);
1290
- if (typeof optionsOrCb === "function") {
1291
- this.send(command, optionsOrCb);
1292
- }
1293
- else if (typeof cb === "function") {
1294
- if (typeof optionsOrCb !== "object")
1295
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1296
- this.send(command, optionsOrCb || {}, cb);
1297
- }
1298
- else {
1299
- return this.send(command, optionsOrCb);
1300
- }
1301
- }
1302
- getVpcLinks(args, optionsOrCb, cb) {
1303
- const command = new GetVpcLinksCommand_1.GetVpcLinksCommand(args);
1304
- if (typeof optionsOrCb === "function") {
1305
- this.send(command, optionsOrCb);
1306
- }
1307
- else if (typeof cb === "function") {
1308
- if (typeof optionsOrCb !== "object")
1309
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1310
- this.send(command, optionsOrCb || {}, cb);
1311
- }
1312
- else {
1313
- return this.send(command, optionsOrCb);
1314
- }
1315
- }
1316
- importApiKeys(args, optionsOrCb, cb) {
1317
- const command = new ImportApiKeysCommand_1.ImportApiKeysCommand(args);
1318
- if (typeof optionsOrCb === "function") {
1319
- this.send(command, optionsOrCb);
1320
- }
1321
- else if (typeof cb === "function") {
1322
- if (typeof optionsOrCb !== "object")
1323
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1324
- this.send(command, optionsOrCb || {}, cb);
1325
- }
1326
- else {
1327
- return this.send(command, optionsOrCb);
1328
- }
1329
- }
1330
- importDocumentationParts(args, optionsOrCb, cb) {
1331
- const command = new ImportDocumentationPartsCommand_1.ImportDocumentationPartsCommand(args);
1332
- if (typeof optionsOrCb === "function") {
1333
- this.send(command, optionsOrCb);
1334
- }
1335
- else if (typeof cb === "function") {
1336
- if (typeof optionsOrCb !== "object")
1337
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1338
- this.send(command, optionsOrCb || {}, cb);
1339
- }
1340
- else {
1341
- return this.send(command, optionsOrCb);
1342
- }
1343
- }
1344
- importRestApi(args, optionsOrCb, cb) {
1345
- const command = new ImportRestApiCommand_1.ImportRestApiCommand(args);
1346
- if (typeof optionsOrCb === "function") {
1347
- this.send(command, optionsOrCb);
1348
- }
1349
- else if (typeof cb === "function") {
1350
- if (typeof optionsOrCb !== "object")
1351
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1352
- this.send(command, optionsOrCb || {}, cb);
1353
- }
1354
- else {
1355
- return this.send(command, optionsOrCb);
1356
- }
1357
- }
1358
- putGatewayResponse(args, optionsOrCb, cb) {
1359
- const command = new PutGatewayResponseCommand_1.PutGatewayResponseCommand(args);
1360
- if (typeof optionsOrCb === "function") {
1361
- this.send(command, optionsOrCb);
1362
- }
1363
- else if (typeof cb === "function") {
1364
- if (typeof optionsOrCb !== "object")
1365
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1366
- this.send(command, optionsOrCb || {}, cb);
1367
- }
1368
- else {
1369
- return this.send(command, optionsOrCb);
1370
- }
1371
- }
1372
- putIntegration(args, optionsOrCb, cb) {
1373
- const command = new PutIntegrationCommand_1.PutIntegrationCommand(args);
1374
- if (typeof optionsOrCb === "function") {
1375
- this.send(command, optionsOrCb);
1376
- }
1377
- else if (typeof cb === "function") {
1378
- if (typeof optionsOrCb !== "object")
1379
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1380
- this.send(command, optionsOrCb || {}, cb);
1381
- }
1382
- else {
1383
- return this.send(command, optionsOrCb);
1384
- }
1385
- }
1386
- putIntegrationResponse(args, optionsOrCb, cb) {
1387
- const command = new PutIntegrationResponseCommand_1.PutIntegrationResponseCommand(args);
1388
- if (typeof optionsOrCb === "function") {
1389
- this.send(command, optionsOrCb);
1390
- }
1391
- else if (typeof cb === "function") {
1392
- if (typeof optionsOrCb !== "object")
1393
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1394
- this.send(command, optionsOrCb || {}, cb);
1395
- }
1396
- else {
1397
- return this.send(command, optionsOrCb);
1398
- }
1399
- }
1400
- putMethod(args, optionsOrCb, cb) {
1401
- const command = new PutMethodCommand_1.PutMethodCommand(args);
1402
- if (typeof optionsOrCb === "function") {
1403
- this.send(command, optionsOrCb);
1404
- }
1405
- else if (typeof cb === "function") {
1406
- if (typeof optionsOrCb !== "object")
1407
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1408
- this.send(command, optionsOrCb || {}, cb);
1409
- }
1410
- else {
1411
- return this.send(command, optionsOrCb);
1412
- }
1413
- }
1414
- putMethodResponse(args, optionsOrCb, cb) {
1415
- const command = new PutMethodResponseCommand_1.PutMethodResponseCommand(args);
1416
- if (typeof optionsOrCb === "function") {
1417
- this.send(command, optionsOrCb);
1418
- }
1419
- else if (typeof cb === "function") {
1420
- if (typeof optionsOrCb !== "object")
1421
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1422
- this.send(command, optionsOrCb || {}, cb);
1423
- }
1424
- else {
1425
- return this.send(command, optionsOrCb);
1426
- }
1427
- }
1428
- putRestApi(args, optionsOrCb, cb) {
1429
- const command = new PutRestApiCommand_1.PutRestApiCommand(args);
1430
- if (typeof optionsOrCb === "function") {
1431
- this.send(command, optionsOrCb);
1432
- }
1433
- else if (typeof cb === "function") {
1434
- if (typeof optionsOrCb !== "object")
1435
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1436
- this.send(command, optionsOrCb || {}, cb);
1437
- }
1438
- else {
1439
- return this.send(command, optionsOrCb);
1440
- }
1441
- }
1442
- tagResource(args, optionsOrCb, cb) {
1443
- const command = new TagResourceCommand_1.TagResourceCommand(args);
1444
- if (typeof optionsOrCb === "function") {
1445
- this.send(command, optionsOrCb);
1446
- }
1447
- else if (typeof cb === "function") {
1448
- if (typeof optionsOrCb !== "object")
1449
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1450
- this.send(command, optionsOrCb || {}, cb);
1451
- }
1452
- else {
1453
- return this.send(command, optionsOrCb);
1454
- }
1455
- }
1456
- testInvokeAuthorizer(args, optionsOrCb, cb) {
1457
- const command = new TestInvokeAuthorizerCommand_1.TestInvokeAuthorizerCommand(args);
1458
- if (typeof optionsOrCb === "function") {
1459
- this.send(command, optionsOrCb);
1460
- }
1461
- else if (typeof cb === "function") {
1462
- if (typeof optionsOrCb !== "object")
1463
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1464
- this.send(command, optionsOrCb || {}, cb);
1465
- }
1466
- else {
1467
- return this.send(command, optionsOrCb);
1468
- }
1469
- }
1470
- testInvokeMethod(args, optionsOrCb, cb) {
1471
- const command = new TestInvokeMethodCommand_1.TestInvokeMethodCommand(args);
1472
- if (typeof optionsOrCb === "function") {
1473
- this.send(command, optionsOrCb);
1474
- }
1475
- else if (typeof cb === "function") {
1476
- if (typeof optionsOrCb !== "object")
1477
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1478
- this.send(command, optionsOrCb || {}, cb);
1479
- }
1480
- else {
1481
- return this.send(command, optionsOrCb);
1482
- }
1483
- }
1484
- untagResource(args, optionsOrCb, cb) {
1485
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
1486
- if (typeof optionsOrCb === "function") {
1487
- this.send(command, optionsOrCb);
1488
- }
1489
- else if (typeof cb === "function") {
1490
- if (typeof optionsOrCb !== "object")
1491
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1492
- this.send(command, optionsOrCb || {}, cb);
1493
- }
1494
- else {
1495
- return this.send(command, optionsOrCb);
1496
- }
1497
- }
1498
- updateAccount(args, optionsOrCb, cb) {
1499
- const command = new UpdateAccountCommand_1.UpdateAccountCommand(args);
1500
- if (typeof optionsOrCb === "function") {
1501
- this.send(command, optionsOrCb);
1502
- }
1503
- else if (typeof cb === "function") {
1504
- if (typeof optionsOrCb !== "object")
1505
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1506
- this.send(command, optionsOrCb || {}, cb);
1507
- }
1508
- else {
1509
- return this.send(command, optionsOrCb);
1510
- }
1511
- }
1512
- updateApiKey(args, optionsOrCb, cb) {
1513
- const command = new UpdateApiKeyCommand_1.UpdateApiKeyCommand(args);
1514
- if (typeof optionsOrCb === "function") {
1515
- this.send(command, optionsOrCb);
1516
- }
1517
- else if (typeof cb === "function") {
1518
- if (typeof optionsOrCb !== "object")
1519
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1520
- this.send(command, optionsOrCb || {}, cb);
1521
- }
1522
- else {
1523
- return this.send(command, optionsOrCb);
1524
- }
1525
- }
1526
- updateAuthorizer(args, optionsOrCb, cb) {
1527
- const command = new UpdateAuthorizerCommand_1.UpdateAuthorizerCommand(args);
1528
- if (typeof optionsOrCb === "function") {
1529
- this.send(command, optionsOrCb);
1530
- }
1531
- else if (typeof cb === "function") {
1532
- if (typeof optionsOrCb !== "object")
1533
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1534
- this.send(command, optionsOrCb || {}, cb);
1535
- }
1536
- else {
1537
- return this.send(command, optionsOrCb);
1538
- }
1539
- }
1540
- updateBasePathMapping(args, optionsOrCb, cb) {
1541
- const command = new UpdateBasePathMappingCommand_1.UpdateBasePathMappingCommand(args);
1542
- if (typeof optionsOrCb === "function") {
1543
- this.send(command, optionsOrCb);
1544
- }
1545
- else if (typeof cb === "function") {
1546
- if (typeof optionsOrCb !== "object")
1547
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1548
- this.send(command, optionsOrCb || {}, cb);
1549
- }
1550
- else {
1551
- return this.send(command, optionsOrCb);
1552
- }
1553
- }
1554
- updateClientCertificate(args, optionsOrCb, cb) {
1555
- const command = new UpdateClientCertificateCommand_1.UpdateClientCertificateCommand(args);
1556
- if (typeof optionsOrCb === "function") {
1557
- this.send(command, optionsOrCb);
1558
- }
1559
- else if (typeof cb === "function") {
1560
- if (typeof optionsOrCb !== "object")
1561
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1562
- this.send(command, optionsOrCb || {}, cb);
1563
- }
1564
- else {
1565
- return this.send(command, optionsOrCb);
1566
- }
1567
- }
1568
- updateDeployment(args, optionsOrCb, cb) {
1569
- const command = new UpdateDeploymentCommand_1.UpdateDeploymentCommand(args);
1570
- if (typeof optionsOrCb === "function") {
1571
- this.send(command, optionsOrCb);
1572
- }
1573
- else if (typeof cb === "function") {
1574
- if (typeof optionsOrCb !== "object")
1575
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1576
- this.send(command, optionsOrCb || {}, cb);
1577
- }
1578
- else {
1579
- return this.send(command, optionsOrCb);
1580
- }
1581
- }
1582
- updateDocumentationPart(args, optionsOrCb, cb) {
1583
- const command = new UpdateDocumentationPartCommand_1.UpdateDocumentationPartCommand(args);
1584
- if (typeof optionsOrCb === "function") {
1585
- this.send(command, optionsOrCb);
1586
- }
1587
- else if (typeof cb === "function") {
1588
- if (typeof optionsOrCb !== "object")
1589
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1590
- this.send(command, optionsOrCb || {}, cb);
1591
- }
1592
- else {
1593
- return this.send(command, optionsOrCb);
1594
- }
1595
- }
1596
- updateDocumentationVersion(args, optionsOrCb, cb) {
1597
- const command = new UpdateDocumentationVersionCommand_1.UpdateDocumentationVersionCommand(args);
1598
- if (typeof optionsOrCb === "function") {
1599
- this.send(command, optionsOrCb);
1600
- }
1601
- else if (typeof cb === "function") {
1602
- if (typeof optionsOrCb !== "object")
1603
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1604
- this.send(command, optionsOrCb || {}, cb);
1605
- }
1606
- else {
1607
- return this.send(command, optionsOrCb);
1608
- }
1609
- }
1610
- updateDomainName(args, optionsOrCb, cb) {
1611
- const command = new UpdateDomainNameCommand_1.UpdateDomainNameCommand(args);
1612
- if (typeof optionsOrCb === "function") {
1613
- this.send(command, optionsOrCb);
1614
- }
1615
- else if (typeof cb === "function") {
1616
- if (typeof optionsOrCb !== "object")
1617
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1618
- this.send(command, optionsOrCb || {}, cb);
1619
- }
1620
- else {
1621
- return this.send(command, optionsOrCb);
1622
- }
1623
- }
1624
- updateGatewayResponse(args, optionsOrCb, cb) {
1625
- const command = new UpdateGatewayResponseCommand_1.UpdateGatewayResponseCommand(args);
1626
- if (typeof optionsOrCb === "function") {
1627
- this.send(command, optionsOrCb);
1628
- }
1629
- else if (typeof cb === "function") {
1630
- if (typeof optionsOrCb !== "object")
1631
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1632
- this.send(command, optionsOrCb || {}, cb);
1633
- }
1634
- else {
1635
- return this.send(command, optionsOrCb);
1636
- }
1637
- }
1638
- updateIntegration(args, optionsOrCb, cb) {
1639
- const command = new UpdateIntegrationCommand_1.UpdateIntegrationCommand(args);
1640
- if (typeof optionsOrCb === "function") {
1641
- this.send(command, optionsOrCb);
1642
- }
1643
- else if (typeof cb === "function") {
1644
- if (typeof optionsOrCb !== "object")
1645
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1646
- this.send(command, optionsOrCb || {}, cb);
1647
- }
1648
- else {
1649
- return this.send(command, optionsOrCb);
1650
- }
1651
- }
1652
- updateIntegrationResponse(args, optionsOrCb, cb) {
1653
- const command = new UpdateIntegrationResponseCommand_1.UpdateIntegrationResponseCommand(args);
1654
- if (typeof optionsOrCb === "function") {
1655
- this.send(command, optionsOrCb);
1656
- }
1657
- else if (typeof cb === "function") {
1658
- if (typeof optionsOrCb !== "object")
1659
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1660
- this.send(command, optionsOrCb || {}, cb);
1661
- }
1662
- else {
1663
- return this.send(command, optionsOrCb);
1664
- }
1665
- }
1666
- updateMethod(args, optionsOrCb, cb) {
1667
- const command = new UpdateMethodCommand_1.UpdateMethodCommand(args);
1668
- if (typeof optionsOrCb === "function") {
1669
- this.send(command, optionsOrCb);
1670
- }
1671
- else if (typeof cb === "function") {
1672
- if (typeof optionsOrCb !== "object")
1673
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1674
- this.send(command, optionsOrCb || {}, cb);
1675
- }
1676
- else {
1677
- return this.send(command, optionsOrCb);
1678
- }
1679
- }
1680
- updateMethodResponse(args, optionsOrCb, cb) {
1681
- const command = new UpdateMethodResponseCommand_1.UpdateMethodResponseCommand(args);
1682
- if (typeof optionsOrCb === "function") {
1683
- this.send(command, optionsOrCb);
1684
- }
1685
- else if (typeof cb === "function") {
1686
- if (typeof optionsOrCb !== "object")
1687
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1688
- this.send(command, optionsOrCb || {}, cb);
1689
- }
1690
- else {
1691
- return this.send(command, optionsOrCb);
1692
- }
1693
- }
1694
- updateModel(args, optionsOrCb, cb) {
1695
- const command = new UpdateModelCommand_1.UpdateModelCommand(args);
1696
- if (typeof optionsOrCb === "function") {
1697
- this.send(command, optionsOrCb);
1698
- }
1699
- else if (typeof cb === "function") {
1700
- if (typeof optionsOrCb !== "object")
1701
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1702
- this.send(command, optionsOrCb || {}, cb);
1703
- }
1704
- else {
1705
- return this.send(command, optionsOrCb);
1706
- }
1707
- }
1708
- updateRequestValidator(args, optionsOrCb, cb) {
1709
- const command = new UpdateRequestValidatorCommand_1.UpdateRequestValidatorCommand(args);
1710
- if (typeof optionsOrCb === "function") {
1711
- this.send(command, optionsOrCb);
1712
- }
1713
- else if (typeof cb === "function") {
1714
- if (typeof optionsOrCb !== "object")
1715
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1716
- this.send(command, optionsOrCb || {}, cb);
1717
- }
1718
- else {
1719
- return this.send(command, optionsOrCb);
1720
- }
1721
- }
1722
- updateResource(args, optionsOrCb, cb) {
1723
- const command = new UpdateResourceCommand_1.UpdateResourceCommand(args);
1724
- if (typeof optionsOrCb === "function") {
1725
- this.send(command, optionsOrCb);
1726
- }
1727
- else if (typeof cb === "function") {
1728
- if (typeof optionsOrCb !== "object")
1729
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1730
- this.send(command, optionsOrCb || {}, cb);
1731
- }
1732
- else {
1733
- return this.send(command, optionsOrCb);
1734
- }
1735
- }
1736
- updateRestApi(args, optionsOrCb, cb) {
1737
- const command = new UpdateRestApiCommand_1.UpdateRestApiCommand(args);
1738
- if (typeof optionsOrCb === "function") {
1739
- this.send(command, optionsOrCb);
1740
- }
1741
- else if (typeof cb === "function") {
1742
- if (typeof optionsOrCb !== "object")
1743
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1744
- this.send(command, optionsOrCb || {}, cb);
1745
- }
1746
- else {
1747
- return this.send(command, optionsOrCb);
1748
- }
1749
- }
1750
- updateStage(args, optionsOrCb, cb) {
1751
- const command = new UpdateStageCommand_1.UpdateStageCommand(args);
1752
- if (typeof optionsOrCb === "function") {
1753
- this.send(command, optionsOrCb);
1754
- }
1755
- else if (typeof cb === "function") {
1756
- if (typeof optionsOrCb !== "object")
1757
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1758
- this.send(command, optionsOrCb || {}, cb);
1759
- }
1760
- else {
1761
- return this.send(command, optionsOrCb);
1762
- }
1763
- }
1764
- updateUsage(args, optionsOrCb, cb) {
1765
- const command = new UpdateUsageCommand_1.UpdateUsageCommand(args);
1766
- if (typeof optionsOrCb === "function") {
1767
- this.send(command, optionsOrCb);
1768
- }
1769
- else if (typeof cb === "function") {
1770
- if (typeof optionsOrCb !== "object")
1771
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1772
- this.send(command, optionsOrCb || {}, cb);
1773
- }
1774
- else {
1775
- return this.send(command, optionsOrCb);
1776
- }
1777
- }
1778
- updateUsagePlan(args, optionsOrCb, cb) {
1779
- const command = new UpdateUsagePlanCommand_1.UpdateUsagePlanCommand(args);
1780
- if (typeof optionsOrCb === "function") {
1781
- this.send(command, optionsOrCb);
1782
- }
1783
- else if (typeof cb === "function") {
1784
- if (typeof optionsOrCb !== "object")
1785
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1786
- this.send(command, optionsOrCb || {}, cb);
1787
- }
1788
- else {
1789
- return this.send(command, optionsOrCb);
1790
- }
1791
- }
1792
- updateVpcLink(args, optionsOrCb, cb) {
1793
- const command = new UpdateVpcLinkCommand_1.UpdateVpcLinkCommand(args);
1794
- if (typeof optionsOrCb === "function") {
1795
- this.send(command, optionsOrCb);
1796
- }
1797
- else if (typeof cb === "function") {
1798
- if (typeof optionsOrCb !== "object")
1799
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1800
- this.send(command, optionsOrCb || {}, cb);
1801
- }
1802
- else {
1803
- return this.send(command, optionsOrCb);
1804
- }
1805
- }
1806
249
  }
1807
250
  exports.APIGateway = APIGateway;
251
+ (0, smithy_client_1.createAggregatedClient)(commands, APIGateway);