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