@aws-sdk/client-appsync 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/AppSync.js +209 -202
- package/dist-es/AppSyncClient.js +28 -22
- package/dist-es/commands/AssociateApiCommand.js +28 -21
- package/dist-es/commands/CreateApiCacheCommand.js +28 -21
- package/dist-es/commands/CreateApiKeyCommand.js +28 -21
- package/dist-es/commands/CreateDataSourceCommand.js +28 -21
- package/dist-es/commands/CreateDomainNameCommand.js +28 -21
- package/dist-es/commands/CreateFunctionCommand.js +28 -21
- package/dist-es/commands/CreateGraphqlApiCommand.js +28 -21
- package/dist-es/commands/CreateResolverCommand.js +28 -21
- package/dist-es/commands/CreateTypeCommand.js +28 -21
- package/dist-es/commands/DeleteApiCacheCommand.js +28 -21
- package/dist-es/commands/DeleteApiKeyCommand.js +28 -21
- package/dist-es/commands/DeleteDataSourceCommand.js +28 -21
- package/dist-es/commands/DeleteDomainNameCommand.js +28 -21
- package/dist-es/commands/DeleteFunctionCommand.js +28 -21
- package/dist-es/commands/DeleteGraphqlApiCommand.js +28 -21
- package/dist-es/commands/DeleteResolverCommand.js +28 -21
- package/dist-es/commands/DeleteTypeCommand.js +28 -21
- package/dist-es/commands/DisassociateApiCommand.js +28 -21
- package/dist-es/commands/EvaluateMappingTemplateCommand.js +28 -21
- package/dist-es/commands/FlushApiCacheCommand.js +28 -21
- package/dist-es/commands/GetApiAssociationCommand.js +28 -21
- package/dist-es/commands/GetApiCacheCommand.js +28 -21
- package/dist-es/commands/GetDataSourceCommand.js +28 -21
- package/dist-es/commands/GetDomainNameCommand.js +28 -21
- package/dist-es/commands/GetFunctionCommand.js +28 -21
- package/dist-es/commands/GetGraphqlApiCommand.js +28 -21
- package/dist-es/commands/GetIntrospectionSchemaCommand.js +28 -21
- package/dist-es/commands/GetResolverCommand.js +28 -21
- package/dist-es/commands/GetSchemaCreationStatusCommand.js +28 -21
- package/dist-es/commands/GetTypeCommand.js +28 -21
- package/dist-es/commands/ListApiKeysCommand.js +28 -21
- package/dist-es/commands/ListDataSourcesCommand.js +28 -21
- package/dist-es/commands/ListDomainNamesCommand.js +28 -21
- package/dist-es/commands/ListFunctionsCommand.js +28 -21
- package/dist-es/commands/ListGraphqlApisCommand.js +28 -21
- package/dist-es/commands/ListResolversByFunctionCommand.js +28 -21
- package/dist-es/commands/ListResolversCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTypesCommand.js +28 -21
- package/dist-es/commands/StartSchemaCreationCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateApiCacheCommand.js +28 -21
- package/dist-es/commands/UpdateApiKeyCommand.js +28 -21
- package/dist-es/commands/UpdateDataSourceCommand.js +28 -21
- package/dist-es/commands/UpdateDomainNameCommand.js +28 -21
- package/dist-es/commands/UpdateFunctionCommand.js +28 -21
- package/dist-es/commands/UpdateGraphqlApiCommand.js +28 -21
- package/dist-es/commands/UpdateResolverCommand.js +28 -21
- package/dist-es/commands/UpdateTypeCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AppSyncServiceException.js +10 -5
- package/dist-es/models/models_0.js +252 -511
- package/dist-es/protocols/Aws_restJson1.js +5049 -3617
- 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/AppSync.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { AppSyncClient } from "./AppSyncClient";
|
|
2
3
|
import { AssociateApiCommand, } from "./commands/AssociateApiCommand";
|
|
3
4
|
import { CreateApiCacheCommand, } from "./commands/CreateApiCacheCommand";
|
|
@@ -49,705 +50,711 @@ import { UpdateFunctionCommand, } from "./commands/UpdateFunctionCommand";
|
|
|
49
50
|
import { UpdateGraphqlApiCommand, } from "./commands/UpdateGraphqlApiCommand";
|
|
50
51
|
import { UpdateResolverCommand, } from "./commands/UpdateResolverCommand";
|
|
51
52
|
import { UpdateTypeCommand } from "./commands/UpdateTypeCommand";
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
var AppSync = (function (_super) {
|
|
54
|
+
__extends(AppSync, _super);
|
|
55
|
+
function AppSync() {
|
|
56
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
+
}
|
|
58
|
+
AppSync.prototype.associateApi = function (args, optionsOrCb, cb) {
|
|
59
|
+
var command = new AssociateApiCommand(args);
|
|
55
60
|
if (typeof optionsOrCb === "function") {
|
|
56
61
|
this.send(command, optionsOrCb);
|
|
57
62
|
}
|
|
58
63
|
else if (typeof cb === "function") {
|
|
59
64
|
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(
|
|
65
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
61
66
|
this.send(command, optionsOrCb || {}, cb);
|
|
62
67
|
}
|
|
63
68
|
else {
|
|
64
69
|
return this.send(command, optionsOrCb);
|
|
65
70
|
}
|
|
66
|
-
}
|
|
67
|
-
createApiCache(args, optionsOrCb, cb) {
|
|
68
|
-
|
|
71
|
+
};
|
|
72
|
+
AppSync.prototype.createApiCache = function (args, optionsOrCb, cb) {
|
|
73
|
+
var command = new CreateApiCacheCommand(args);
|
|
69
74
|
if (typeof optionsOrCb === "function") {
|
|
70
75
|
this.send(command, optionsOrCb);
|
|
71
76
|
}
|
|
72
77
|
else if (typeof cb === "function") {
|
|
73
78
|
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(
|
|
79
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
75
80
|
this.send(command, optionsOrCb || {}, cb);
|
|
76
81
|
}
|
|
77
82
|
else {
|
|
78
83
|
return this.send(command, optionsOrCb);
|
|
79
84
|
}
|
|
80
|
-
}
|
|
81
|
-
createApiKey(args, optionsOrCb, cb) {
|
|
82
|
-
|
|
85
|
+
};
|
|
86
|
+
AppSync.prototype.createApiKey = function (args, optionsOrCb, cb) {
|
|
87
|
+
var command = new CreateApiKeyCommand(args);
|
|
83
88
|
if (typeof optionsOrCb === "function") {
|
|
84
89
|
this.send(command, optionsOrCb);
|
|
85
90
|
}
|
|
86
91
|
else if (typeof cb === "function") {
|
|
87
92
|
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(
|
|
93
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
89
94
|
this.send(command, optionsOrCb || {}, cb);
|
|
90
95
|
}
|
|
91
96
|
else {
|
|
92
97
|
return this.send(command, optionsOrCb);
|
|
93
98
|
}
|
|
94
|
-
}
|
|
95
|
-
createDataSource(args, optionsOrCb, cb) {
|
|
96
|
-
|
|
99
|
+
};
|
|
100
|
+
AppSync.prototype.createDataSource = function (args, optionsOrCb, cb) {
|
|
101
|
+
var command = new CreateDataSourceCommand(args);
|
|
97
102
|
if (typeof optionsOrCb === "function") {
|
|
98
103
|
this.send(command, optionsOrCb);
|
|
99
104
|
}
|
|
100
105
|
else if (typeof cb === "function") {
|
|
101
106
|
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(
|
|
107
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
103
108
|
this.send(command, optionsOrCb || {}, cb);
|
|
104
109
|
}
|
|
105
110
|
else {
|
|
106
111
|
return this.send(command, optionsOrCb);
|
|
107
112
|
}
|
|
108
|
-
}
|
|
109
|
-
createDomainName(args, optionsOrCb, cb) {
|
|
110
|
-
|
|
113
|
+
};
|
|
114
|
+
AppSync.prototype.createDomainName = function (args, optionsOrCb, cb) {
|
|
115
|
+
var command = new CreateDomainNameCommand(args);
|
|
111
116
|
if (typeof optionsOrCb === "function") {
|
|
112
117
|
this.send(command, optionsOrCb);
|
|
113
118
|
}
|
|
114
119
|
else if (typeof cb === "function") {
|
|
115
120
|
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(
|
|
121
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
117
122
|
this.send(command, optionsOrCb || {}, cb);
|
|
118
123
|
}
|
|
119
124
|
else {
|
|
120
125
|
return this.send(command, optionsOrCb);
|
|
121
126
|
}
|
|
122
|
-
}
|
|
123
|
-
createFunction(args, optionsOrCb, cb) {
|
|
124
|
-
|
|
127
|
+
};
|
|
128
|
+
AppSync.prototype.createFunction = function (args, optionsOrCb, cb) {
|
|
129
|
+
var command = new CreateFunctionCommand(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
|
-
createGraphqlApi(args, optionsOrCb, cb) {
|
|
138
|
-
|
|
141
|
+
};
|
|
142
|
+
AppSync.prototype.createGraphqlApi = function (args, optionsOrCb, cb) {
|
|
143
|
+
var command = new CreateGraphqlApiCommand(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
|
-
createResolver(args, optionsOrCb, cb) {
|
|
152
|
-
|
|
155
|
+
};
|
|
156
|
+
AppSync.prototype.createResolver = function (args, optionsOrCb, cb) {
|
|
157
|
+
var command = new CreateResolverCommand(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
|
-
createType(args, optionsOrCb, cb) {
|
|
166
|
-
|
|
169
|
+
};
|
|
170
|
+
AppSync.prototype.createType = function (args, optionsOrCb, cb) {
|
|
171
|
+
var command = new CreateTypeCommand(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
|
-
deleteApiCache(args, optionsOrCb, cb) {
|
|
180
|
-
|
|
183
|
+
};
|
|
184
|
+
AppSync.prototype.deleteApiCache = function (args, optionsOrCb, cb) {
|
|
185
|
+
var command = new DeleteApiCacheCommand(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
|
-
deleteApiKey(args, optionsOrCb, cb) {
|
|
194
|
-
|
|
197
|
+
};
|
|
198
|
+
AppSync.prototype.deleteApiKey = function (args, optionsOrCb, cb) {
|
|
199
|
+
var command = new DeleteApiKeyCommand(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
|
-
deleteDataSource(args, optionsOrCb, cb) {
|
|
208
|
-
|
|
211
|
+
};
|
|
212
|
+
AppSync.prototype.deleteDataSource = function (args, optionsOrCb, cb) {
|
|
213
|
+
var command = new DeleteDataSourceCommand(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
|
-
deleteDomainName(args, optionsOrCb, cb) {
|
|
222
|
-
|
|
225
|
+
};
|
|
226
|
+
AppSync.prototype.deleteDomainName = function (args, optionsOrCb, cb) {
|
|
227
|
+
var command = new DeleteDomainNameCommand(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
|
-
deleteFunction(args, optionsOrCb, cb) {
|
|
236
|
-
|
|
239
|
+
};
|
|
240
|
+
AppSync.prototype.deleteFunction = function (args, optionsOrCb, cb) {
|
|
241
|
+
var command = new DeleteFunctionCommand(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
|
-
deleteGraphqlApi(args, optionsOrCb, cb) {
|
|
250
|
-
|
|
253
|
+
};
|
|
254
|
+
AppSync.prototype.deleteGraphqlApi = function (args, optionsOrCb, cb) {
|
|
255
|
+
var command = new DeleteGraphqlApiCommand(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
|
-
deleteResolver(args, optionsOrCb, cb) {
|
|
264
|
-
|
|
267
|
+
};
|
|
268
|
+
AppSync.prototype.deleteResolver = function (args, optionsOrCb, cb) {
|
|
269
|
+
var command = new DeleteResolverCommand(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
|
-
deleteType(args, optionsOrCb, cb) {
|
|
278
|
-
|
|
281
|
+
};
|
|
282
|
+
AppSync.prototype.deleteType = function (args, optionsOrCb, cb) {
|
|
283
|
+
var command = new DeleteTypeCommand(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
|
-
disassociateApi(args, optionsOrCb, cb) {
|
|
292
|
-
|
|
295
|
+
};
|
|
296
|
+
AppSync.prototype.disassociateApi = function (args, optionsOrCb, cb) {
|
|
297
|
+
var command = new DisassociateApiCommand(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
|
-
evaluateMappingTemplate(args, optionsOrCb, cb) {
|
|
306
|
-
|
|
309
|
+
};
|
|
310
|
+
AppSync.prototype.evaluateMappingTemplate = function (args, optionsOrCb, cb) {
|
|
311
|
+
var command = new EvaluateMappingTemplateCommand(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
|
-
flushApiCache(args, optionsOrCb, cb) {
|
|
320
|
-
|
|
323
|
+
};
|
|
324
|
+
AppSync.prototype.flushApiCache = function (args, optionsOrCb, cb) {
|
|
325
|
+
var command = new FlushApiCacheCommand(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
|
-
getApiAssociation(args, optionsOrCb, cb) {
|
|
334
|
-
|
|
337
|
+
};
|
|
338
|
+
AppSync.prototype.getApiAssociation = function (args, optionsOrCb, cb) {
|
|
339
|
+
var command = new GetApiAssociationCommand(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
|
-
getApiCache(args, optionsOrCb, cb) {
|
|
348
|
-
|
|
351
|
+
};
|
|
352
|
+
AppSync.prototype.getApiCache = function (args, optionsOrCb, cb) {
|
|
353
|
+
var command = new GetApiCacheCommand(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
|
-
getDataSource(args, optionsOrCb, cb) {
|
|
362
|
-
|
|
365
|
+
};
|
|
366
|
+
AppSync.prototype.getDataSource = function (args, optionsOrCb, cb) {
|
|
367
|
+
var command = new GetDataSourceCommand(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
|
-
getDomainName(args, optionsOrCb, cb) {
|
|
376
|
-
|
|
379
|
+
};
|
|
380
|
+
AppSync.prototype.getDomainName = function (args, optionsOrCb, cb) {
|
|
381
|
+
var command = new GetDomainNameCommand(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
|
-
getFunction(args, optionsOrCb, cb) {
|
|
390
|
-
|
|
393
|
+
};
|
|
394
|
+
AppSync.prototype.getFunction = function (args, optionsOrCb, cb) {
|
|
395
|
+
var command = new GetFunctionCommand(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
|
-
getGraphqlApi(args, optionsOrCb, cb) {
|
|
404
|
-
|
|
407
|
+
};
|
|
408
|
+
AppSync.prototype.getGraphqlApi = function (args, optionsOrCb, cb) {
|
|
409
|
+
var command = new GetGraphqlApiCommand(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
|
-
getIntrospectionSchema(args, optionsOrCb, cb) {
|
|
418
|
-
|
|
421
|
+
};
|
|
422
|
+
AppSync.prototype.getIntrospectionSchema = function (args, optionsOrCb, cb) {
|
|
423
|
+
var command = new GetIntrospectionSchemaCommand(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
|
-
getResolver(args, optionsOrCb, cb) {
|
|
432
|
-
|
|
435
|
+
};
|
|
436
|
+
AppSync.prototype.getResolver = function (args, optionsOrCb, cb) {
|
|
437
|
+
var command = new GetResolverCommand(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
|
-
getSchemaCreationStatus(args, optionsOrCb, cb) {
|
|
446
|
-
|
|
449
|
+
};
|
|
450
|
+
AppSync.prototype.getSchemaCreationStatus = function (args, optionsOrCb, cb) {
|
|
451
|
+
var command = new GetSchemaCreationStatusCommand(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
|
-
getType(args, optionsOrCb, cb) {
|
|
460
|
-
|
|
463
|
+
};
|
|
464
|
+
AppSync.prototype.getType = function (args, optionsOrCb, cb) {
|
|
465
|
+
var command = new GetTypeCommand(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
|
-
listApiKeys(args, optionsOrCb, cb) {
|
|
474
|
-
|
|
477
|
+
};
|
|
478
|
+
AppSync.prototype.listApiKeys = function (args, optionsOrCb, cb) {
|
|
479
|
+
var command = new ListApiKeysCommand(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
|
-
listDataSources(args, optionsOrCb, cb) {
|
|
488
|
-
|
|
491
|
+
};
|
|
492
|
+
AppSync.prototype.listDataSources = function (args, optionsOrCb, cb) {
|
|
493
|
+
var command = new ListDataSourcesCommand(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
|
-
listDomainNames(args, optionsOrCb, cb) {
|
|
502
|
-
|
|
505
|
+
};
|
|
506
|
+
AppSync.prototype.listDomainNames = function (args, optionsOrCb, cb) {
|
|
507
|
+
var command = new ListDomainNamesCommand(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
|
-
listFunctions(args, optionsOrCb, cb) {
|
|
516
|
-
|
|
519
|
+
};
|
|
520
|
+
AppSync.prototype.listFunctions = function (args, optionsOrCb, cb) {
|
|
521
|
+
var command = new ListFunctionsCommand(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
|
-
listGraphqlApis(args, optionsOrCb, cb) {
|
|
530
|
-
|
|
533
|
+
};
|
|
534
|
+
AppSync.prototype.listGraphqlApis = function (args, optionsOrCb, cb) {
|
|
535
|
+
var command = new ListGraphqlApisCommand(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
|
-
listResolvers(args, optionsOrCb, cb) {
|
|
544
|
-
|
|
547
|
+
};
|
|
548
|
+
AppSync.prototype.listResolvers = function (args, optionsOrCb, cb) {
|
|
549
|
+
var command = new ListResolversCommand(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
|
-
listResolversByFunction(args, optionsOrCb, cb) {
|
|
558
|
-
|
|
561
|
+
};
|
|
562
|
+
AppSync.prototype.listResolversByFunction = function (args, optionsOrCb, cb) {
|
|
563
|
+
var command = new ListResolversByFunctionCommand(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
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
572
|
-
|
|
575
|
+
};
|
|
576
|
+
AppSync.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
577
|
+
var command = new ListTagsForResourceCommand(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
|
-
listTypes(args, optionsOrCb, cb) {
|
|
586
|
-
|
|
589
|
+
};
|
|
590
|
+
AppSync.prototype.listTypes = function (args, optionsOrCb, cb) {
|
|
591
|
+
var command = new ListTypesCommand(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
|
-
startSchemaCreation(args, optionsOrCb, cb) {
|
|
600
|
-
|
|
603
|
+
};
|
|
604
|
+
AppSync.prototype.startSchemaCreation = function (args, optionsOrCb, cb) {
|
|
605
|
+
var command = new StartSchemaCreationCommand(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
|
-
tagResource(args, optionsOrCb, cb) {
|
|
614
|
-
|
|
617
|
+
};
|
|
618
|
+
AppSync.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
619
|
+
var command = new TagResourceCommand(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
|
-
untagResource(args, optionsOrCb, cb) {
|
|
628
|
-
|
|
631
|
+
};
|
|
632
|
+
AppSync.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
633
|
+
var command = new UntagResourceCommand(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
|
-
updateApiCache(args, optionsOrCb, cb) {
|
|
642
|
-
|
|
645
|
+
};
|
|
646
|
+
AppSync.prototype.updateApiCache = function (args, optionsOrCb, cb) {
|
|
647
|
+
var command = new UpdateApiCacheCommand(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
|
-
updateApiKey(args, optionsOrCb, cb) {
|
|
656
|
-
|
|
659
|
+
};
|
|
660
|
+
AppSync.prototype.updateApiKey = function (args, optionsOrCb, cb) {
|
|
661
|
+
var command = new UpdateApiKeyCommand(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
|
-
updateDataSource(args, optionsOrCb, cb) {
|
|
670
|
-
|
|
673
|
+
};
|
|
674
|
+
AppSync.prototype.updateDataSource = function (args, optionsOrCb, cb) {
|
|
675
|
+
var command = new UpdateDataSourceCommand(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
|
-
updateDomainName(args, optionsOrCb, cb) {
|
|
684
|
-
|
|
687
|
+
};
|
|
688
|
+
AppSync.prototype.updateDomainName = function (args, optionsOrCb, cb) {
|
|
689
|
+
var command = new UpdateDomainNameCommand(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
|
-
updateFunction(args, optionsOrCb, cb) {
|
|
698
|
-
|
|
701
|
+
};
|
|
702
|
+
AppSync.prototype.updateFunction = function (args, optionsOrCb, cb) {
|
|
703
|
+
var command = new UpdateFunctionCommand(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
|
-
updateGraphqlApi(args, optionsOrCb, cb) {
|
|
712
|
-
|
|
715
|
+
};
|
|
716
|
+
AppSync.prototype.updateGraphqlApi = function (args, optionsOrCb, cb) {
|
|
717
|
+
var command = new UpdateGraphqlApiCommand(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
|
-
updateResolver(args, optionsOrCb, cb) {
|
|
726
|
-
|
|
729
|
+
};
|
|
730
|
+
AppSync.prototype.updateResolver = function (args, optionsOrCb, cb) {
|
|
731
|
+
var command = new UpdateResolverCommand(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
|
-
updateType(args, optionsOrCb, cb) {
|
|
740
|
-
|
|
743
|
+
};
|
|
744
|
+
AppSync.prototype.updateType = function (args, optionsOrCb, cb) {
|
|
745
|
+
var command = new UpdateTypeCommand(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
|
-
|
|
757
|
+
};
|
|
758
|
+
return AppSync;
|
|
759
|
+
}(AppSyncClient));
|
|
760
|
+
export { AppSync };
|