@aws-sdk/client-appsync 3.181.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-es/AppSync.js +202 -209
- package/dist-es/AppSyncClient.js +22 -28
- package/dist-es/commands/AssociateApiCommand.js +21 -28
- package/dist-es/commands/CreateApiCacheCommand.js +21 -28
- package/dist-es/commands/CreateApiKeyCommand.js +21 -28
- package/dist-es/commands/CreateDataSourceCommand.js +21 -28
- package/dist-es/commands/CreateDomainNameCommand.js +21 -28
- package/dist-es/commands/CreateFunctionCommand.js +21 -28
- package/dist-es/commands/CreateGraphqlApiCommand.js +21 -28
- package/dist-es/commands/CreateResolverCommand.js +21 -28
- package/dist-es/commands/CreateTypeCommand.js +21 -28
- package/dist-es/commands/DeleteApiCacheCommand.js +21 -28
- package/dist-es/commands/DeleteApiKeyCommand.js +21 -28
- package/dist-es/commands/DeleteDataSourceCommand.js +21 -28
- package/dist-es/commands/DeleteDomainNameCommand.js +21 -28
- package/dist-es/commands/DeleteFunctionCommand.js +21 -28
- package/dist-es/commands/DeleteGraphqlApiCommand.js +21 -28
- package/dist-es/commands/DeleteResolverCommand.js +21 -28
- package/dist-es/commands/DeleteTypeCommand.js +21 -28
- package/dist-es/commands/DisassociateApiCommand.js +21 -28
- package/dist-es/commands/EvaluateMappingTemplateCommand.js +21 -28
- package/dist-es/commands/FlushApiCacheCommand.js +21 -28
- package/dist-es/commands/GetApiAssociationCommand.js +21 -28
- package/dist-es/commands/GetApiCacheCommand.js +21 -28
- package/dist-es/commands/GetDataSourceCommand.js +21 -28
- package/dist-es/commands/GetDomainNameCommand.js +21 -28
- package/dist-es/commands/GetFunctionCommand.js +21 -28
- package/dist-es/commands/GetGraphqlApiCommand.js +21 -28
- package/dist-es/commands/GetIntrospectionSchemaCommand.js +21 -28
- package/dist-es/commands/GetResolverCommand.js +21 -28
- package/dist-es/commands/GetSchemaCreationStatusCommand.js +21 -28
- package/dist-es/commands/GetTypeCommand.js +21 -28
- package/dist-es/commands/ListApiKeysCommand.js +21 -28
- package/dist-es/commands/ListDataSourcesCommand.js +21 -28
- package/dist-es/commands/ListDomainNamesCommand.js +21 -28
- package/dist-es/commands/ListFunctionsCommand.js +21 -28
- package/dist-es/commands/ListGraphqlApisCommand.js +21 -28
- package/dist-es/commands/ListResolversByFunctionCommand.js +21 -28
- package/dist-es/commands/ListResolversCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTypesCommand.js +21 -28
- package/dist-es/commands/StartSchemaCreationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApiCacheCommand.js +21 -28
- package/dist-es/commands/UpdateApiKeyCommand.js +21 -28
- package/dist-es/commands/UpdateDataSourceCommand.js +21 -28
- package/dist-es/commands/UpdateDomainNameCommand.js +21 -28
- package/dist-es/commands/UpdateFunctionCommand.js +21 -28
- package/dist-es/commands/UpdateGraphqlApiCommand.js +21 -28
- package/dist-es/commands/UpdateResolverCommand.js +21 -28
- package/dist-es/commands/UpdateTypeCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AppSyncServiceException.js +5 -10
- package/dist-es/models/models_0.js +511 -252
- package/dist-es/protocols/Aws_restJson1.js +3617 -5049
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/dist-es/AppSync.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AppSyncClient } from "./AppSyncClient";
|
|
3
2
|
import { AssociateApiCommand, } from "./commands/AssociateApiCommand";
|
|
4
3
|
import { CreateApiCacheCommand, } from "./commands/CreateApiCacheCommand";
|
|
@@ -50,711 +49,705 @@ import { UpdateFunctionCommand, } from "./commands/UpdateFunctionCommand";
|
|
|
50
49
|
import { UpdateGraphqlApiCommand, } from "./commands/UpdateGraphqlApiCommand";
|
|
51
50
|
import { UpdateResolverCommand, } from "./commands/UpdateResolverCommand";
|
|
52
51
|
import { UpdateTypeCommand } from "./commands/UpdateTypeCommand";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
-
}
|
|
58
|
-
AppSync.prototype.associateApi = function (args, optionsOrCb, cb) {
|
|
59
|
-
var command = new AssociateApiCommand(args);
|
|
52
|
+
export class AppSync extends AppSyncClient {
|
|
53
|
+
associateApi(args, optionsOrCb, cb) {
|
|
54
|
+
const command = new AssociateApiCommand(args);
|
|
60
55
|
if (typeof optionsOrCb === "function") {
|
|
61
56
|
this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
58
|
else if (typeof cb === "function") {
|
|
64
59
|
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(
|
|
60
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
61
|
this.send(command, optionsOrCb || {}, cb);
|
|
67
62
|
}
|
|
68
63
|
else {
|
|
69
64
|
return this.send(command, optionsOrCb);
|
|
70
65
|
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
}
|
|
67
|
+
createApiCache(args, optionsOrCb, cb) {
|
|
68
|
+
const command = new CreateApiCacheCommand(args);
|
|
74
69
|
if (typeof optionsOrCb === "function") {
|
|
75
70
|
this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
72
|
else if (typeof cb === "function") {
|
|
78
73
|
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(
|
|
74
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
75
|
this.send(command, optionsOrCb || {}, cb);
|
|
81
76
|
}
|
|
82
77
|
else {
|
|
83
78
|
return this.send(command, optionsOrCb);
|
|
84
79
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
}
|
|
81
|
+
createApiKey(args, optionsOrCb, cb) {
|
|
82
|
+
const command = new CreateApiKeyCommand(args);
|
|
88
83
|
if (typeof optionsOrCb === "function") {
|
|
89
84
|
this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
86
|
else if (typeof cb === "function") {
|
|
92
87
|
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(
|
|
88
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
95
90
|
}
|
|
96
91
|
else {
|
|
97
92
|
return this.send(command, optionsOrCb);
|
|
98
93
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
}
|
|
95
|
+
createDataSource(args, optionsOrCb, cb) {
|
|
96
|
+
const command = new CreateDataSourceCommand(args);
|
|
102
97
|
if (typeof optionsOrCb === "function") {
|
|
103
98
|
this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
100
|
else if (typeof cb === "function") {
|
|
106
101
|
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(
|
|
102
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
109
104
|
}
|
|
110
105
|
else {
|
|
111
106
|
return this.send(command, optionsOrCb);
|
|
112
107
|
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
}
|
|
109
|
+
createDomainName(args, optionsOrCb, cb) {
|
|
110
|
+
const command = new CreateDomainNameCommand(args);
|
|
116
111
|
if (typeof optionsOrCb === "function") {
|
|
117
112
|
this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
114
|
else if (typeof cb === "function") {
|
|
120
115
|
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(
|
|
116
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
123
118
|
}
|
|
124
119
|
else {
|
|
125
120
|
return this.send(command, optionsOrCb);
|
|
126
121
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
}
|
|
123
|
+
createFunction(args, optionsOrCb, cb) {
|
|
124
|
+
const command = new CreateFunctionCommand(args);
|
|
130
125
|
if (typeof optionsOrCb === "function") {
|
|
131
126
|
this.send(command, optionsOrCb);
|
|
132
127
|
}
|
|
133
128
|
else if (typeof cb === "function") {
|
|
134
129
|
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(
|
|
130
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
131
|
this.send(command, optionsOrCb || {}, cb);
|
|
137
132
|
}
|
|
138
133
|
else {
|
|
139
134
|
return this.send(command, optionsOrCb);
|
|
140
135
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
}
|
|
137
|
+
createGraphqlApi(args, optionsOrCb, cb) {
|
|
138
|
+
const command = new CreateGraphqlApiCommand(args);
|
|
144
139
|
if (typeof optionsOrCb === "function") {
|
|
145
140
|
this.send(command, optionsOrCb);
|
|
146
141
|
}
|
|
147
142
|
else if (typeof cb === "function") {
|
|
148
143
|
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(
|
|
144
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
145
|
this.send(command, optionsOrCb || {}, cb);
|
|
151
146
|
}
|
|
152
147
|
else {
|
|
153
148
|
return this.send(command, optionsOrCb);
|
|
154
149
|
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
150
|
+
}
|
|
151
|
+
createResolver(args, optionsOrCb, cb) {
|
|
152
|
+
const command = new CreateResolverCommand(args);
|
|
158
153
|
if (typeof optionsOrCb === "function") {
|
|
159
154
|
this.send(command, optionsOrCb);
|
|
160
155
|
}
|
|
161
156
|
else if (typeof cb === "function") {
|
|
162
157
|
if (typeof optionsOrCb !== "object")
|
|
163
|
-
throw new Error(
|
|
158
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
164
159
|
this.send(command, optionsOrCb || {}, cb);
|
|
165
160
|
}
|
|
166
161
|
else {
|
|
167
162
|
return this.send(command, optionsOrCb);
|
|
168
163
|
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
164
|
+
}
|
|
165
|
+
createType(args, optionsOrCb, cb) {
|
|
166
|
+
const command = new CreateTypeCommand(args);
|
|
172
167
|
if (typeof optionsOrCb === "function") {
|
|
173
168
|
this.send(command, optionsOrCb);
|
|
174
169
|
}
|
|
175
170
|
else if (typeof cb === "function") {
|
|
176
171
|
if (typeof optionsOrCb !== "object")
|
|
177
|
-
throw new Error(
|
|
172
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
173
|
this.send(command, optionsOrCb || {}, cb);
|
|
179
174
|
}
|
|
180
175
|
else {
|
|
181
176
|
return this.send(command, optionsOrCb);
|
|
182
177
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
}
|
|
179
|
+
deleteApiCache(args, optionsOrCb, cb) {
|
|
180
|
+
const command = new DeleteApiCacheCommand(args);
|
|
186
181
|
if (typeof optionsOrCb === "function") {
|
|
187
182
|
this.send(command, optionsOrCb);
|
|
188
183
|
}
|
|
189
184
|
else if (typeof cb === "function") {
|
|
190
185
|
if (typeof optionsOrCb !== "object")
|
|
191
|
-
throw new Error(
|
|
186
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
187
|
this.send(command, optionsOrCb || {}, cb);
|
|
193
188
|
}
|
|
194
189
|
else {
|
|
195
190
|
return this.send(command, optionsOrCb);
|
|
196
191
|
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
192
|
+
}
|
|
193
|
+
deleteApiKey(args, optionsOrCb, cb) {
|
|
194
|
+
const command = new DeleteApiKeyCommand(args);
|
|
200
195
|
if (typeof optionsOrCb === "function") {
|
|
201
196
|
this.send(command, optionsOrCb);
|
|
202
197
|
}
|
|
203
198
|
else if (typeof cb === "function") {
|
|
204
199
|
if (typeof optionsOrCb !== "object")
|
|
205
|
-
throw new Error(
|
|
200
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
206
201
|
this.send(command, optionsOrCb || {}, cb);
|
|
207
202
|
}
|
|
208
203
|
else {
|
|
209
204
|
return this.send(command, optionsOrCb);
|
|
210
205
|
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
206
|
+
}
|
|
207
|
+
deleteDataSource(args, optionsOrCb, cb) {
|
|
208
|
+
const command = new DeleteDataSourceCommand(args);
|
|
214
209
|
if (typeof optionsOrCb === "function") {
|
|
215
210
|
this.send(command, optionsOrCb);
|
|
216
211
|
}
|
|
217
212
|
else if (typeof cb === "function") {
|
|
218
213
|
if (typeof optionsOrCb !== "object")
|
|
219
|
-
throw new Error(
|
|
214
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
220
215
|
this.send(command, optionsOrCb || {}, cb);
|
|
221
216
|
}
|
|
222
217
|
else {
|
|
223
218
|
return this.send(command, optionsOrCb);
|
|
224
219
|
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
220
|
+
}
|
|
221
|
+
deleteDomainName(args, optionsOrCb, cb) {
|
|
222
|
+
const command = new DeleteDomainNameCommand(args);
|
|
228
223
|
if (typeof optionsOrCb === "function") {
|
|
229
224
|
this.send(command, optionsOrCb);
|
|
230
225
|
}
|
|
231
226
|
else if (typeof cb === "function") {
|
|
232
227
|
if (typeof optionsOrCb !== "object")
|
|
233
|
-
throw new Error(
|
|
228
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
234
229
|
this.send(command, optionsOrCb || {}, cb);
|
|
235
230
|
}
|
|
236
231
|
else {
|
|
237
232
|
return this.send(command, optionsOrCb);
|
|
238
233
|
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
}
|
|
235
|
+
deleteFunction(args, optionsOrCb, cb) {
|
|
236
|
+
const command = new DeleteFunctionCommand(args);
|
|
242
237
|
if (typeof optionsOrCb === "function") {
|
|
243
238
|
this.send(command, optionsOrCb);
|
|
244
239
|
}
|
|
245
240
|
else if (typeof cb === "function") {
|
|
246
241
|
if (typeof optionsOrCb !== "object")
|
|
247
|
-
throw new Error(
|
|
242
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
248
243
|
this.send(command, optionsOrCb || {}, cb);
|
|
249
244
|
}
|
|
250
245
|
else {
|
|
251
246
|
return this.send(command, optionsOrCb);
|
|
252
247
|
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
}
|
|
249
|
+
deleteGraphqlApi(args, optionsOrCb, cb) {
|
|
250
|
+
const command = new DeleteGraphqlApiCommand(args);
|
|
256
251
|
if (typeof optionsOrCb === "function") {
|
|
257
252
|
this.send(command, optionsOrCb);
|
|
258
253
|
}
|
|
259
254
|
else if (typeof cb === "function") {
|
|
260
255
|
if (typeof optionsOrCb !== "object")
|
|
261
|
-
throw new Error(
|
|
256
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
262
257
|
this.send(command, optionsOrCb || {}, cb);
|
|
263
258
|
}
|
|
264
259
|
else {
|
|
265
260
|
return this.send(command, optionsOrCb);
|
|
266
261
|
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
}
|
|
263
|
+
deleteResolver(args, optionsOrCb, cb) {
|
|
264
|
+
const command = new DeleteResolverCommand(args);
|
|
270
265
|
if (typeof optionsOrCb === "function") {
|
|
271
266
|
this.send(command, optionsOrCb);
|
|
272
267
|
}
|
|
273
268
|
else if (typeof cb === "function") {
|
|
274
269
|
if (typeof optionsOrCb !== "object")
|
|
275
|
-
throw new Error(
|
|
270
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
271
|
this.send(command, optionsOrCb || {}, cb);
|
|
277
272
|
}
|
|
278
273
|
else {
|
|
279
274
|
return this.send(command, optionsOrCb);
|
|
280
275
|
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
}
|
|
277
|
+
deleteType(args, optionsOrCb, cb) {
|
|
278
|
+
const command = new DeleteTypeCommand(args);
|
|
284
279
|
if (typeof optionsOrCb === "function") {
|
|
285
280
|
this.send(command, optionsOrCb);
|
|
286
281
|
}
|
|
287
282
|
else if (typeof cb === "function") {
|
|
288
283
|
if (typeof optionsOrCb !== "object")
|
|
289
|
-
throw new Error(
|
|
284
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
290
285
|
this.send(command, optionsOrCb || {}, cb);
|
|
291
286
|
}
|
|
292
287
|
else {
|
|
293
288
|
return this.send(command, optionsOrCb);
|
|
294
289
|
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
290
|
+
}
|
|
291
|
+
disassociateApi(args, optionsOrCb, cb) {
|
|
292
|
+
const command = new DisassociateApiCommand(args);
|
|
298
293
|
if (typeof optionsOrCb === "function") {
|
|
299
294
|
this.send(command, optionsOrCb);
|
|
300
295
|
}
|
|
301
296
|
else if (typeof cb === "function") {
|
|
302
297
|
if (typeof optionsOrCb !== "object")
|
|
303
|
-
throw new Error(
|
|
298
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
304
299
|
this.send(command, optionsOrCb || {}, cb);
|
|
305
300
|
}
|
|
306
301
|
else {
|
|
307
302
|
return this.send(command, optionsOrCb);
|
|
308
303
|
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
304
|
+
}
|
|
305
|
+
evaluateMappingTemplate(args, optionsOrCb, cb) {
|
|
306
|
+
const command = new EvaluateMappingTemplateCommand(args);
|
|
312
307
|
if (typeof optionsOrCb === "function") {
|
|
313
308
|
this.send(command, optionsOrCb);
|
|
314
309
|
}
|
|
315
310
|
else if (typeof cb === "function") {
|
|
316
311
|
if (typeof optionsOrCb !== "object")
|
|
317
|
-
throw new Error(
|
|
312
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
318
313
|
this.send(command, optionsOrCb || {}, cb);
|
|
319
314
|
}
|
|
320
315
|
else {
|
|
321
316
|
return this.send(command, optionsOrCb);
|
|
322
317
|
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
318
|
+
}
|
|
319
|
+
flushApiCache(args, optionsOrCb, cb) {
|
|
320
|
+
const command = new FlushApiCacheCommand(args);
|
|
326
321
|
if (typeof optionsOrCb === "function") {
|
|
327
322
|
this.send(command, optionsOrCb);
|
|
328
323
|
}
|
|
329
324
|
else if (typeof cb === "function") {
|
|
330
325
|
if (typeof optionsOrCb !== "object")
|
|
331
|
-
throw new Error(
|
|
326
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
332
327
|
this.send(command, optionsOrCb || {}, cb);
|
|
333
328
|
}
|
|
334
329
|
else {
|
|
335
330
|
return this.send(command, optionsOrCb);
|
|
336
331
|
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
332
|
+
}
|
|
333
|
+
getApiAssociation(args, optionsOrCb, cb) {
|
|
334
|
+
const command = new GetApiAssociationCommand(args);
|
|
340
335
|
if (typeof optionsOrCb === "function") {
|
|
341
336
|
this.send(command, optionsOrCb);
|
|
342
337
|
}
|
|
343
338
|
else if (typeof cb === "function") {
|
|
344
339
|
if (typeof optionsOrCb !== "object")
|
|
345
|
-
throw new Error(
|
|
340
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
346
341
|
this.send(command, optionsOrCb || {}, cb);
|
|
347
342
|
}
|
|
348
343
|
else {
|
|
349
344
|
return this.send(command, optionsOrCb);
|
|
350
345
|
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
346
|
+
}
|
|
347
|
+
getApiCache(args, optionsOrCb, cb) {
|
|
348
|
+
const command = new GetApiCacheCommand(args);
|
|
354
349
|
if (typeof optionsOrCb === "function") {
|
|
355
350
|
this.send(command, optionsOrCb);
|
|
356
351
|
}
|
|
357
352
|
else if (typeof cb === "function") {
|
|
358
353
|
if (typeof optionsOrCb !== "object")
|
|
359
|
-
throw new Error(
|
|
354
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
360
355
|
this.send(command, optionsOrCb || {}, cb);
|
|
361
356
|
}
|
|
362
357
|
else {
|
|
363
358
|
return this.send(command, optionsOrCb);
|
|
364
359
|
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
360
|
+
}
|
|
361
|
+
getDataSource(args, optionsOrCb, cb) {
|
|
362
|
+
const command = new GetDataSourceCommand(args);
|
|
368
363
|
if (typeof optionsOrCb === "function") {
|
|
369
364
|
this.send(command, optionsOrCb);
|
|
370
365
|
}
|
|
371
366
|
else if (typeof cb === "function") {
|
|
372
367
|
if (typeof optionsOrCb !== "object")
|
|
373
|
-
throw new Error(
|
|
368
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
374
369
|
this.send(command, optionsOrCb || {}, cb);
|
|
375
370
|
}
|
|
376
371
|
else {
|
|
377
372
|
return this.send(command, optionsOrCb);
|
|
378
373
|
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
374
|
+
}
|
|
375
|
+
getDomainName(args, optionsOrCb, cb) {
|
|
376
|
+
const command = new GetDomainNameCommand(args);
|
|
382
377
|
if (typeof optionsOrCb === "function") {
|
|
383
378
|
this.send(command, optionsOrCb);
|
|
384
379
|
}
|
|
385
380
|
else if (typeof cb === "function") {
|
|
386
381
|
if (typeof optionsOrCb !== "object")
|
|
387
|
-
throw new Error(
|
|
382
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
388
383
|
this.send(command, optionsOrCb || {}, cb);
|
|
389
384
|
}
|
|
390
385
|
else {
|
|
391
386
|
return this.send(command, optionsOrCb);
|
|
392
387
|
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
|
|
388
|
+
}
|
|
389
|
+
getFunction(args, optionsOrCb, cb) {
|
|
390
|
+
const command = new GetFunctionCommand(args);
|
|
396
391
|
if (typeof optionsOrCb === "function") {
|
|
397
392
|
this.send(command, optionsOrCb);
|
|
398
393
|
}
|
|
399
394
|
else if (typeof cb === "function") {
|
|
400
395
|
if (typeof optionsOrCb !== "object")
|
|
401
|
-
throw new Error(
|
|
396
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
402
397
|
this.send(command, optionsOrCb || {}, cb);
|
|
403
398
|
}
|
|
404
399
|
else {
|
|
405
400
|
return this.send(command, optionsOrCb);
|
|
406
401
|
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
402
|
+
}
|
|
403
|
+
getGraphqlApi(args, optionsOrCb, cb) {
|
|
404
|
+
const command = new GetGraphqlApiCommand(args);
|
|
410
405
|
if (typeof optionsOrCb === "function") {
|
|
411
406
|
this.send(command, optionsOrCb);
|
|
412
407
|
}
|
|
413
408
|
else if (typeof cb === "function") {
|
|
414
409
|
if (typeof optionsOrCb !== "object")
|
|
415
|
-
throw new Error(
|
|
410
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
416
411
|
this.send(command, optionsOrCb || {}, cb);
|
|
417
412
|
}
|
|
418
413
|
else {
|
|
419
414
|
return this.send(command, optionsOrCb);
|
|
420
415
|
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
416
|
+
}
|
|
417
|
+
getIntrospectionSchema(args, optionsOrCb, cb) {
|
|
418
|
+
const command = new GetIntrospectionSchemaCommand(args);
|
|
424
419
|
if (typeof optionsOrCb === "function") {
|
|
425
420
|
this.send(command, optionsOrCb);
|
|
426
421
|
}
|
|
427
422
|
else if (typeof cb === "function") {
|
|
428
423
|
if (typeof optionsOrCb !== "object")
|
|
429
|
-
throw new Error(
|
|
424
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
430
425
|
this.send(command, optionsOrCb || {}, cb);
|
|
431
426
|
}
|
|
432
427
|
else {
|
|
433
428
|
return this.send(command, optionsOrCb);
|
|
434
429
|
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
|
|
430
|
+
}
|
|
431
|
+
getResolver(args, optionsOrCb, cb) {
|
|
432
|
+
const command = new GetResolverCommand(args);
|
|
438
433
|
if (typeof optionsOrCb === "function") {
|
|
439
434
|
this.send(command, optionsOrCb);
|
|
440
435
|
}
|
|
441
436
|
else if (typeof cb === "function") {
|
|
442
437
|
if (typeof optionsOrCb !== "object")
|
|
443
|
-
throw new Error(
|
|
438
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
444
439
|
this.send(command, optionsOrCb || {}, cb);
|
|
445
440
|
}
|
|
446
441
|
else {
|
|
447
442
|
return this.send(command, optionsOrCb);
|
|
448
443
|
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
|
|
444
|
+
}
|
|
445
|
+
getSchemaCreationStatus(args, optionsOrCb, cb) {
|
|
446
|
+
const command = new GetSchemaCreationStatusCommand(args);
|
|
452
447
|
if (typeof optionsOrCb === "function") {
|
|
453
448
|
this.send(command, optionsOrCb);
|
|
454
449
|
}
|
|
455
450
|
else if (typeof cb === "function") {
|
|
456
451
|
if (typeof optionsOrCb !== "object")
|
|
457
|
-
throw new Error(
|
|
452
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
458
453
|
this.send(command, optionsOrCb || {}, cb);
|
|
459
454
|
}
|
|
460
455
|
else {
|
|
461
456
|
return this.send(command, optionsOrCb);
|
|
462
457
|
}
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
|
|
458
|
+
}
|
|
459
|
+
getType(args, optionsOrCb, cb) {
|
|
460
|
+
const command = new GetTypeCommand(args);
|
|
466
461
|
if (typeof optionsOrCb === "function") {
|
|
467
462
|
this.send(command, optionsOrCb);
|
|
468
463
|
}
|
|
469
464
|
else if (typeof cb === "function") {
|
|
470
465
|
if (typeof optionsOrCb !== "object")
|
|
471
|
-
throw new Error(
|
|
466
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
472
467
|
this.send(command, optionsOrCb || {}, cb);
|
|
473
468
|
}
|
|
474
469
|
else {
|
|
475
470
|
return this.send(command, optionsOrCb);
|
|
476
471
|
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
|
|
472
|
+
}
|
|
473
|
+
listApiKeys(args, optionsOrCb, cb) {
|
|
474
|
+
const command = new ListApiKeysCommand(args);
|
|
480
475
|
if (typeof optionsOrCb === "function") {
|
|
481
476
|
this.send(command, optionsOrCb);
|
|
482
477
|
}
|
|
483
478
|
else if (typeof cb === "function") {
|
|
484
479
|
if (typeof optionsOrCb !== "object")
|
|
485
|
-
throw new Error(
|
|
480
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
486
481
|
this.send(command, optionsOrCb || {}, cb);
|
|
487
482
|
}
|
|
488
483
|
else {
|
|
489
484
|
return this.send(command, optionsOrCb);
|
|
490
485
|
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
486
|
+
}
|
|
487
|
+
listDataSources(args, optionsOrCb, cb) {
|
|
488
|
+
const command = new ListDataSourcesCommand(args);
|
|
494
489
|
if (typeof optionsOrCb === "function") {
|
|
495
490
|
this.send(command, optionsOrCb);
|
|
496
491
|
}
|
|
497
492
|
else if (typeof cb === "function") {
|
|
498
493
|
if (typeof optionsOrCb !== "object")
|
|
499
|
-
throw new Error(
|
|
494
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
500
495
|
this.send(command, optionsOrCb || {}, cb);
|
|
501
496
|
}
|
|
502
497
|
else {
|
|
503
498
|
return this.send(command, optionsOrCb);
|
|
504
499
|
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
|
|
500
|
+
}
|
|
501
|
+
listDomainNames(args, optionsOrCb, cb) {
|
|
502
|
+
const command = new ListDomainNamesCommand(args);
|
|
508
503
|
if (typeof optionsOrCb === "function") {
|
|
509
504
|
this.send(command, optionsOrCb);
|
|
510
505
|
}
|
|
511
506
|
else if (typeof cb === "function") {
|
|
512
507
|
if (typeof optionsOrCb !== "object")
|
|
513
|
-
throw new Error(
|
|
508
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
514
509
|
this.send(command, optionsOrCb || {}, cb);
|
|
515
510
|
}
|
|
516
511
|
else {
|
|
517
512
|
return this.send(command, optionsOrCb);
|
|
518
513
|
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
514
|
+
}
|
|
515
|
+
listFunctions(args, optionsOrCb, cb) {
|
|
516
|
+
const command = new ListFunctionsCommand(args);
|
|
522
517
|
if (typeof optionsOrCb === "function") {
|
|
523
518
|
this.send(command, optionsOrCb);
|
|
524
519
|
}
|
|
525
520
|
else if (typeof cb === "function") {
|
|
526
521
|
if (typeof optionsOrCb !== "object")
|
|
527
|
-
throw new Error(
|
|
522
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
528
523
|
this.send(command, optionsOrCb || {}, cb);
|
|
529
524
|
}
|
|
530
525
|
else {
|
|
531
526
|
return this.send(command, optionsOrCb);
|
|
532
527
|
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
|
|
528
|
+
}
|
|
529
|
+
listGraphqlApis(args, optionsOrCb, cb) {
|
|
530
|
+
const command = new ListGraphqlApisCommand(args);
|
|
536
531
|
if (typeof optionsOrCb === "function") {
|
|
537
532
|
this.send(command, optionsOrCb);
|
|
538
533
|
}
|
|
539
534
|
else if (typeof cb === "function") {
|
|
540
535
|
if (typeof optionsOrCb !== "object")
|
|
541
|
-
throw new Error(
|
|
536
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
542
537
|
this.send(command, optionsOrCb || {}, cb);
|
|
543
538
|
}
|
|
544
539
|
else {
|
|
545
540
|
return this.send(command, optionsOrCb);
|
|
546
541
|
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
542
|
+
}
|
|
543
|
+
listResolvers(args, optionsOrCb, cb) {
|
|
544
|
+
const command = new ListResolversCommand(args);
|
|
550
545
|
if (typeof optionsOrCb === "function") {
|
|
551
546
|
this.send(command, optionsOrCb);
|
|
552
547
|
}
|
|
553
548
|
else if (typeof cb === "function") {
|
|
554
549
|
if (typeof optionsOrCb !== "object")
|
|
555
|
-
throw new Error(
|
|
550
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
556
551
|
this.send(command, optionsOrCb || {}, cb);
|
|
557
552
|
}
|
|
558
553
|
else {
|
|
559
554
|
return this.send(command, optionsOrCb);
|
|
560
555
|
}
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
|
|
556
|
+
}
|
|
557
|
+
listResolversByFunction(args, optionsOrCb, cb) {
|
|
558
|
+
const command = new ListResolversByFunctionCommand(args);
|
|
564
559
|
if (typeof optionsOrCb === "function") {
|
|
565
560
|
this.send(command, optionsOrCb);
|
|
566
561
|
}
|
|
567
562
|
else if (typeof cb === "function") {
|
|
568
563
|
if (typeof optionsOrCb !== "object")
|
|
569
|
-
throw new Error(
|
|
564
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
570
565
|
this.send(command, optionsOrCb || {}, cb);
|
|
571
566
|
}
|
|
572
567
|
else {
|
|
573
568
|
return this.send(command, optionsOrCb);
|
|
574
569
|
}
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
|
|
570
|
+
}
|
|
571
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
572
|
+
const command = new ListTagsForResourceCommand(args);
|
|
578
573
|
if (typeof optionsOrCb === "function") {
|
|
579
574
|
this.send(command, optionsOrCb);
|
|
580
575
|
}
|
|
581
576
|
else if (typeof cb === "function") {
|
|
582
577
|
if (typeof optionsOrCb !== "object")
|
|
583
|
-
throw new Error(
|
|
578
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
584
579
|
this.send(command, optionsOrCb || {}, cb);
|
|
585
580
|
}
|
|
586
581
|
else {
|
|
587
582
|
return this.send(command, optionsOrCb);
|
|
588
583
|
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
584
|
+
}
|
|
585
|
+
listTypes(args, optionsOrCb, cb) {
|
|
586
|
+
const command = new ListTypesCommand(args);
|
|
592
587
|
if (typeof optionsOrCb === "function") {
|
|
593
588
|
this.send(command, optionsOrCb);
|
|
594
589
|
}
|
|
595
590
|
else if (typeof cb === "function") {
|
|
596
591
|
if (typeof optionsOrCb !== "object")
|
|
597
|
-
throw new Error(
|
|
592
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
598
593
|
this.send(command, optionsOrCb || {}, cb);
|
|
599
594
|
}
|
|
600
595
|
else {
|
|
601
596
|
return this.send(command, optionsOrCb);
|
|
602
597
|
}
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
|
|
598
|
+
}
|
|
599
|
+
startSchemaCreation(args, optionsOrCb, cb) {
|
|
600
|
+
const command = new StartSchemaCreationCommand(args);
|
|
606
601
|
if (typeof optionsOrCb === "function") {
|
|
607
602
|
this.send(command, optionsOrCb);
|
|
608
603
|
}
|
|
609
604
|
else if (typeof cb === "function") {
|
|
610
605
|
if (typeof optionsOrCb !== "object")
|
|
611
|
-
throw new Error(
|
|
606
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
612
607
|
this.send(command, optionsOrCb || {}, cb);
|
|
613
608
|
}
|
|
614
609
|
else {
|
|
615
610
|
return this.send(command, optionsOrCb);
|
|
616
611
|
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
|
|
612
|
+
}
|
|
613
|
+
tagResource(args, optionsOrCb, cb) {
|
|
614
|
+
const command = new TagResourceCommand(args);
|
|
620
615
|
if (typeof optionsOrCb === "function") {
|
|
621
616
|
this.send(command, optionsOrCb);
|
|
622
617
|
}
|
|
623
618
|
else if (typeof cb === "function") {
|
|
624
619
|
if (typeof optionsOrCb !== "object")
|
|
625
|
-
throw new Error(
|
|
620
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
626
621
|
this.send(command, optionsOrCb || {}, cb);
|
|
627
622
|
}
|
|
628
623
|
else {
|
|
629
624
|
return this.send(command, optionsOrCb);
|
|
630
625
|
}
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
|
|
626
|
+
}
|
|
627
|
+
untagResource(args, optionsOrCb, cb) {
|
|
628
|
+
const command = new UntagResourceCommand(args);
|
|
634
629
|
if (typeof optionsOrCb === "function") {
|
|
635
630
|
this.send(command, optionsOrCb);
|
|
636
631
|
}
|
|
637
632
|
else if (typeof cb === "function") {
|
|
638
633
|
if (typeof optionsOrCb !== "object")
|
|
639
|
-
throw new Error(
|
|
634
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
640
635
|
this.send(command, optionsOrCb || {}, cb);
|
|
641
636
|
}
|
|
642
637
|
else {
|
|
643
638
|
return this.send(command, optionsOrCb);
|
|
644
639
|
}
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
640
|
+
}
|
|
641
|
+
updateApiCache(args, optionsOrCb, cb) {
|
|
642
|
+
const command = new UpdateApiCacheCommand(args);
|
|
648
643
|
if (typeof optionsOrCb === "function") {
|
|
649
644
|
this.send(command, optionsOrCb);
|
|
650
645
|
}
|
|
651
646
|
else if (typeof cb === "function") {
|
|
652
647
|
if (typeof optionsOrCb !== "object")
|
|
653
|
-
throw new Error(
|
|
648
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
654
649
|
this.send(command, optionsOrCb || {}, cb);
|
|
655
650
|
}
|
|
656
651
|
else {
|
|
657
652
|
return this.send(command, optionsOrCb);
|
|
658
653
|
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
|
|
654
|
+
}
|
|
655
|
+
updateApiKey(args, optionsOrCb, cb) {
|
|
656
|
+
const command = new UpdateApiKeyCommand(args);
|
|
662
657
|
if (typeof optionsOrCb === "function") {
|
|
663
658
|
this.send(command, optionsOrCb);
|
|
664
659
|
}
|
|
665
660
|
else if (typeof cb === "function") {
|
|
666
661
|
if (typeof optionsOrCb !== "object")
|
|
667
|
-
throw new Error(
|
|
662
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
668
663
|
this.send(command, optionsOrCb || {}, cb);
|
|
669
664
|
}
|
|
670
665
|
else {
|
|
671
666
|
return this.send(command, optionsOrCb);
|
|
672
667
|
}
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
668
|
+
}
|
|
669
|
+
updateDataSource(args, optionsOrCb, cb) {
|
|
670
|
+
const command = new UpdateDataSourceCommand(args);
|
|
676
671
|
if (typeof optionsOrCb === "function") {
|
|
677
672
|
this.send(command, optionsOrCb);
|
|
678
673
|
}
|
|
679
674
|
else if (typeof cb === "function") {
|
|
680
675
|
if (typeof optionsOrCb !== "object")
|
|
681
|
-
throw new Error(
|
|
676
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
682
677
|
this.send(command, optionsOrCb || {}, cb);
|
|
683
678
|
}
|
|
684
679
|
else {
|
|
685
680
|
return this.send(command, optionsOrCb);
|
|
686
681
|
}
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
682
|
+
}
|
|
683
|
+
updateDomainName(args, optionsOrCb, cb) {
|
|
684
|
+
const command = new UpdateDomainNameCommand(args);
|
|
690
685
|
if (typeof optionsOrCb === "function") {
|
|
691
686
|
this.send(command, optionsOrCb);
|
|
692
687
|
}
|
|
693
688
|
else if (typeof cb === "function") {
|
|
694
689
|
if (typeof optionsOrCb !== "object")
|
|
695
|
-
throw new Error(
|
|
690
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
696
691
|
this.send(command, optionsOrCb || {}, cb);
|
|
697
692
|
}
|
|
698
693
|
else {
|
|
699
694
|
return this.send(command, optionsOrCb);
|
|
700
695
|
}
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
|
|
696
|
+
}
|
|
697
|
+
updateFunction(args, optionsOrCb, cb) {
|
|
698
|
+
const command = new UpdateFunctionCommand(args);
|
|
704
699
|
if (typeof optionsOrCb === "function") {
|
|
705
700
|
this.send(command, optionsOrCb);
|
|
706
701
|
}
|
|
707
702
|
else if (typeof cb === "function") {
|
|
708
703
|
if (typeof optionsOrCb !== "object")
|
|
709
|
-
throw new Error(
|
|
704
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
710
705
|
this.send(command, optionsOrCb || {}, cb);
|
|
711
706
|
}
|
|
712
707
|
else {
|
|
713
708
|
return this.send(command, optionsOrCb);
|
|
714
709
|
}
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
710
|
+
}
|
|
711
|
+
updateGraphqlApi(args, optionsOrCb, cb) {
|
|
712
|
+
const command = new UpdateGraphqlApiCommand(args);
|
|
718
713
|
if (typeof optionsOrCb === "function") {
|
|
719
714
|
this.send(command, optionsOrCb);
|
|
720
715
|
}
|
|
721
716
|
else if (typeof cb === "function") {
|
|
722
717
|
if (typeof optionsOrCb !== "object")
|
|
723
|
-
throw new Error(
|
|
718
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
724
719
|
this.send(command, optionsOrCb || {}, cb);
|
|
725
720
|
}
|
|
726
721
|
else {
|
|
727
722
|
return this.send(command, optionsOrCb);
|
|
728
723
|
}
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
|
|
724
|
+
}
|
|
725
|
+
updateResolver(args, optionsOrCb, cb) {
|
|
726
|
+
const command = new UpdateResolverCommand(args);
|
|
732
727
|
if (typeof optionsOrCb === "function") {
|
|
733
728
|
this.send(command, optionsOrCb);
|
|
734
729
|
}
|
|
735
730
|
else if (typeof cb === "function") {
|
|
736
731
|
if (typeof optionsOrCb !== "object")
|
|
737
|
-
throw new Error(
|
|
732
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
738
733
|
this.send(command, optionsOrCb || {}, cb);
|
|
739
734
|
}
|
|
740
735
|
else {
|
|
741
736
|
return this.send(command, optionsOrCb);
|
|
742
737
|
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
|
|
738
|
+
}
|
|
739
|
+
updateType(args, optionsOrCb, cb) {
|
|
740
|
+
const command = new UpdateTypeCommand(args);
|
|
746
741
|
if (typeof optionsOrCb === "function") {
|
|
747
742
|
this.send(command, optionsOrCb);
|
|
748
743
|
}
|
|
749
744
|
else if (typeof cb === "function") {
|
|
750
745
|
if (typeof optionsOrCb !== "object")
|
|
751
|
-
throw new Error(
|
|
746
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
752
747
|
this.send(command, optionsOrCb || {}, cb);
|
|
753
748
|
}
|
|
754
749
|
else {
|
|
755
750
|
return this.send(command, optionsOrCb);
|
|
756
751
|
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
}(AppSyncClient));
|
|
760
|
-
export { AppSync };
|
|
752
|
+
}
|
|
753
|
+
}
|