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