@aws-sdk/client-amplifybackend 3.315.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AmplifyBackend = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AmplifyBackendClient_1 = require("./AmplifyBackendClient");
|
|
5
6
|
const CloneBackendCommand_1 = require("./commands/CloneBackendCommand");
|
|
6
7
|
const CreateBackendAPICommand_1 = require("./commands/CreateBackendAPICommand");
|
|
@@ -33,440 +34,40 @@ const UpdateBackendAuthCommand_1 = require("./commands/UpdateBackendAuthCommand"
|
|
|
33
34
|
const UpdateBackendConfigCommand_1 = require("./commands/UpdateBackendConfigCommand");
|
|
34
35
|
const UpdateBackendJobCommand_1 = require("./commands/UpdateBackendJobCommand");
|
|
35
36
|
const UpdateBackendStorageCommand_1 = require("./commands/UpdateBackendStorageCommand");
|
|
37
|
+
const commands = {
|
|
38
|
+
CloneBackendCommand: CloneBackendCommand_1.CloneBackendCommand,
|
|
39
|
+
CreateBackendCommand: CreateBackendCommand_1.CreateBackendCommand,
|
|
40
|
+
CreateBackendAPICommand: CreateBackendAPICommand_1.CreateBackendAPICommand,
|
|
41
|
+
CreateBackendAuthCommand: CreateBackendAuthCommand_1.CreateBackendAuthCommand,
|
|
42
|
+
CreateBackendConfigCommand: CreateBackendConfigCommand_1.CreateBackendConfigCommand,
|
|
43
|
+
CreateBackendStorageCommand: CreateBackendStorageCommand_1.CreateBackendStorageCommand,
|
|
44
|
+
CreateTokenCommand: CreateTokenCommand_1.CreateTokenCommand,
|
|
45
|
+
DeleteBackendCommand: DeleteBackendCommand_1.DeleteBackendCommand,
|
|
46
|
+
DeleteBackendAPICommand: DeleteBackendAPICommand_1.DeleteBackendAPICommand,
|
|
47
|
+
DeleteBackendAuthCommand: DeleteBackendAuthCommand_1.DeleteBackendAuthCommand,
|
|
48
|
+
DeleteBackendStorageCommand: DeleteBackendStorageCommand_1.DeleteBackendStorageCommand,
|
|
49
|
+
DeleteTokenCommand: DeleteTokenCommand_1.DeleteTokenCommand,
|
|
50
|
+
GenerateBackendAPIModelsCommand: GenerateBackendAPIModelsCommand_1.GenerateBackendAPIModelsCommand,
|
|
51
|
+
GetBackendCommand: GetBackendCommand_1.GetBackendCommand,
|
|
52
|
+
GetBackendAPICommand: GetBackendAPICommand_1.GetBackendAPICommand,
|
|
53
|
+
GetBackendAPIModelsCommand: GetBackendAPIModelsCommand_1.GetBackendAPIModelsCommand,
|
|
54
|
+
GetBackendAuthCommand: GetBackendAuthCommand_1.GetBackendAuthCommand,
|
|
55
|
+
GetBackendJobCommand: GetBackendJobCommand_1.GetBackendJobCommand,
|
|
56
|
+
GetBackendStorageCommand: GetBackendStorageCommand_1.GetBackendStorageCommand,
|
|
57
|
+
GetTokenCommand: GetTokenCommand_1.GetTokenCommand,
|
|
58
|
+
ImportBackendAuthCommand: ImportBackendAuthCommand_1.ImportBackendAuthCommand,
|
|
59
|
+
ImportBackendStorageCommand: ImportBackendStorageCommand_1.ImportBackendStorageCommand,
|
|
60
|
+
ListBackendJobsCommand: ListBackendJobsCommand_1.ListBackendJobsCommand,
|
|
61
|
+
ListS3BucketsCommand: ListS3BucketsCommand_1.ListS3BucketsCommand,
|
|
62
|
+
RemoveAllBackendsCommand: RemoveAllBackendsCommand_1.RemoveAllBackendsCommand,
|
|
63
|
+
RemoveBackendConfigCommand: RemoveBackendConfigCommand_1.RemoveBackendConfigCommand,
|
|
64
|
+
UpdateBackendAPICommand: UpdateBackendAPICommand_1.UpdateBackendAPICommand,
|
|
65
|
+
UpdateBackendAuthCommand: UpdateBackendAuthCommand_1.UpdateBackendAuthCommand,
|
|
66
|
+
UpdateBackendConfigCommand: UpdateBackendConfigCommand_1.UpdateBackendConfigCommand,
|
|
67
|
+
UpdateBackendJobCommand: UpdateBackendJobCommand_1.UpdateBackendJobCommand,
|
|
68
|
+
UpdateBackendStorageCommand: UpdateBackendStorageCommand_1.UpdateBackendStorageCommand,
|
|
69
|
+
};
|
|
36
70
|
class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
37
|
-
cloneBackend(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new CloneBackendCommand_1.CloneBackendCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
createBackend(args, optionsOrCb, cb) {
|
|
52
|
-
const command = new CreateBackendCommand_1.CreateBackendCommand(args);
|
|
53
|
-
if (typeof optionsOrCb === "function") {
|
|
54
|
-
this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
else if (typeof cb === "function") {
|
|
57
|
-
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
createBackendAPI(args, optionsOrCb, cb) {
|
|
66
|
-
const command = new CreateBackendAPICommand_1.CreateBackendAPICommand(args);
|
|
67
|
-
if (typeof optionsOrCb === "function") {
|
|
68
|
-
this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
else if (typeof cb === "function") {
|
|
71
|
-
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
createBackendAuth(args, optionsOrCb, cb) {
|
|
80
|
-
const command = new CreateBackendAuthCommand_1.CreateBackendAuthCommand(args);
|
|
81
|
-
if (typeof optionsOrCb === "function") {
|
|
82
|
-
this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
else if (typeof cb === "function") {
|
|
85
|
-
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
createBackendConfig(args, optionsOrCb, cb) {
|
|
94
|
-
const command = new CreateBackendConfigCommand_1.CreateBackendConfigCommand(args);
|
|
95
|
-
if (typeof optionsOrCb === "function") {
|
|
96
|
-
this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
else if (typeof cb === "function") {
|
|
99
|
-
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
return this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
createBackendStorage(args, optionsOrCb, cb) {
|
|
108
|
-
const command = new CreateBackendStorageCommand_1.CreateBackendStorageCommand(args);
|
|
109
|
-
if (typeof optionsOrCb === "function") {
|
|
110
|
-
this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
else if (typeof cb === "function") {
|
|
113
|
-
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
return this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
createToken(args, optionsOrCb, cb) {
|
|
122
|
-
const command = new CreateTokenCommand_1.CreateTokenCommand(args);
|
|
123
|
-
if (typeof optionsOrCb === "function") {
|
|
124
|
-
this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
else if (typeof cb === "function") {
|
|
127
|
-
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
return this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
deleteBackend(args, optionsOrCb, cb) {
|
|
136
|
-
const command = new DeleteBackendCommand_1.DeleteBackendCommand(args);
|
|
137
|
-
if (typeof optionsOrCb === "function") {
|
|
138
|
-
this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
else if (typeof cb === "function") {
|
|
141
|
-
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
deleteBackendAPI(args, optionsOrCb, cb) {
|
|
150
|
-
const command = new DeleteBackendAPICommand_1.DeleteBackendAPICommand(args);
|
|
151
|
-
if (typeof optionsOrCb === "function") {
|
|
152
|
-
this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
else if (typeof cb === "function") {
|
|
155
|
-
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
return this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
deleteBackendAuth(args, optionsOrCb, cb) {
|
|
164
|
-
const command = new DeleteBackendAuthCommand_1.DeleteBackendAuthCommand(args);
|
|
165
|
-
if (typeof optionsOrCb === "function") {
|
|
166
|
-
this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
else if (typeof cb === "function") {
|
|
169
|
-
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
return this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
deleteBackendStorage(args, optionsOrCb, cb) {
|
|
178
|
-
const command = new DeleteBackendStorageCommand_1.DeleteBackendStorageCommand(args);
|
|
179
|
-
if (typeof optionsOrCb === "function") {
|
|
180
|
-
this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
else if (typeof cb === "function") {
|
|
183
|
-
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
deleteToken(args, optionsOrCb, cb) {
|
|
192
|
-
const command = new DeleteTokenCommand_1.DeleteTokenCommand(args);
|
|
193
|
-
if (typeof optionsOrCb === "function") {
|
|
194
|
-
this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
else if (typeof cb === "function") {
|
|
197
|
-
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
return this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
generateBackendAPIModels(args, optionsOrCb, cb) {
|
|
206
|
-
const command = new GenerateBackendAPIModelsCommand_1.GenerateBackendAPIModelsCommand(args);
|
|
207
|
-
if (typeof optionsOrCb === "function") {
|
|
208
|
-
this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
else if (typeof cb === "function") {
|
|
211
|
-
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
return this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
getBackend(args, optionsOrCb, cb) {
|
|
220
|
-
const command = new GetBackendCommand_1.GetBackendCommand(args);
|
|
221
|
-
if (typeof optionsOrCb === "function") {
|
|
222
|
-
this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
else if (typeof cb === "function") {
|
|
225
|
-
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
return this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
getBackendAPI(args, optionsOrCb, cb) {
|
|
234
|
-
const command = new GetBackendAPICommand_1.GetBackendAPICommand(args);
|
|
235
|
-
if (typeof optionsOrCb === "function") {
|
|
236
|
-
this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
else if (typeof cb === "function") {
|
|
239
|
-
if (typeof optionsOrCb !== "object")
|
|
240
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
241
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
return this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
getBackendAPIModels(args, optionsOrCb, cb) {
|
|
248
|
-
const command = new GetBackendAPIModelsCommand_1.GetBackendAPIModelsCommand(args);
|
|
249
|
-
if (typeof optionsOrCb === "function") {
|
|
250
|
-
this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
else if (typeof cb === "function") {
|
|
253
|
-
if (typeof optionsOrCb !== "object")
|
|
254
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
return this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
getBackendAuth(args, optionsOrCb, cb) {
|
|
262
|
-
const command = new GetBackendAuthCommand_1.GetBackendAuthCommand(args);
|
|
263
|
-
if (typeof optionsOrCb === "function") {
|
|
264
|
-
this.send(command, optionsOrCb);
|
|
265
|
-
}
|
|
266
|
-
else if (typeof cb === "function") {
|
|
267
|
-
if (typeof optionsOrCb !== "object")
|
|
268
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
269
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
270
|
-
}
|
|
271
|
-
else {
|
|
272
|
-
return this.send(command, optionsOrCb);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
getBackendJob(args, optionsOrCb, cb) {
|
|
276
|
-
const command = new GetBackendJobCommand_1.GetBackendJobCommand(args);
|
|
277
|
-
if (typeof optionsOrCb === "function") {
|
|
278
|
-
this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
else if (typeof cb === "function") {
|
|
281
|
-
if (typeof optionsOrCb !== "object")
|
|
282
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
283
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
return this.send(command, optionsOrCb);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
getBackendStorage(args, optionsOrCb, cb) {
|
|
290
|
-
const command = new GetBackendStorageCommand_1.GetBackendStorageCommand(args);
|
|
291
|
-
if (typeof optionsOrCb === "function") {
|
|
292
|
-
this.send(command, optionsOrCb);
|
|
293
|
-
}
|
|
294
|
-
else if (typeof cb === "function") {
|
|
295
|
-
if (typeof optionsOrCb !== "object")
|
|
296
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
297
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
return this.send(command, optionsOrCb);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
getToken(args, optionsOrCb, cb) {
|
|
304
|
-
const command = new GetTokenCommand_1.GetTokenCommand(args);
|
|
305
|
-
if (typeof optionsOrCb === "function") {
|
|
306
|
-
this.send(command, optionsOrCb);
|
|
307
|
-
}
|
|
308
|
-
else if (typeof cb === "function") {
|
|
309
|
-
if (typeof optionsOrCb !== "object")
|
|
310
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
311
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
return this.send(command, optionsOrCb);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
importBackendAuth(args, optionsOrCb, cb) {
|
|
318
|
-
const command = new ImportBackendAuthCommand_1.ImportBackendAuthCommand(args);
|
|
319
|
-
if (typeof optionsOrCb === "function") {
|
|
320
|
-
this.send(command, optionsOrCb);
|
|
321
|
-
}
|
|
322
|
-
else if (typeof cb === "function") {
|
|
323
|
-
if (typeof optionsOrCb !== "object")
|
|
324
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
325
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
return this.send(command, optionsOrCb);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
importBackendStorage(args, optionsOrCb, cb) {
|
|
332
|
-
const command = new ImportBackendStorageCommand_1.ImportBackendStorageCommand(args);
|
|
333
|
-
if (typeof optionsOrCb === "function") {
|
|
334
|
-
this.send(command, optionsOrCb);
|
|
335
|
-
}
|
|
336
|
-
else if (typeof cb === "function") {
|
|
337
|
-
if (typeof optionsOrCb !== "object")
|
|
338
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
339
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
return this.send(command, optionsOrCb);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
listBackendJobs(args, optionsOrCb, cb) {
|
|
346
|
-
const command = new ListBackendJobsCommand_1.ListBackendJobsCommand(args);
|
|
347
|
-
if (typeof optionsOrCb === "function") {
|
|
348
|
-
this.send(command, optionsOrCb);
|
|
349
|
-
}
|
|
350
|
-
else if (typeof cb === "function") {
|
|
351
|
-
if (typeof optionsOrCb !== "object")
|
|
352
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
353
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
354
|
-
}
|
|
355
|
-
else {
|
|
356
|
-
return this.send(command, optionsOrCb);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
listS3Buckets(args, optionsOrCb, cb) {
|
|
360
|
-
const command = new ListS3BucketsCommand_1.ListS3BucketsCommand(args);
|
|
361
|
-
if (typeof optionsOrCb === "function") {
|
|
362
|
-
this.send(command, optionsOrCb);
|
|
363
|
-
}
|
|
364
|
-
else if (typeof cb === "function") {
|
|
365
|
-
if (typeof optionsOrCb !== "object")
|
|
366
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
367
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
return this.send(command, optionsOrCb);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
removeAllBackends(args, optionsOrCb, cb) {
|
|
374
|
-
const command = new RemoveAllBackendsCommand_1.RemoveAllBackendsCommand(args);
|
|
375
|
-
if (typeof optionsOrCb === "function") {
|
|
376
|
-
this.send(command, optionsOrCb);
|
|
377
|
-
}
|
|
378
|
-
else if (typeof cb === "function") {
|
|
379
|
-
if (typeof optionsOrCb !== "object")
|
|
380
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
381
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
return this.send(command, optionsOrCb);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
removeBackendConfig(args, optionsOrCb, cb) {
|
|
388
|
-
const command = new RemoveBackendConfigCommand_1.RemoveBackendConfigCommand(args);
|
|
389
|
-
if (typeof optionsOrCb === "function") {
|
|
390
|
-
this.send(command, optionsOrCb);
|
|
391
|
-
}
|
|
392
|
-
else if (typeof cb === "function") {
|
|
393
|
-
if (typeof optionsOrCb !== "object")
|
|
394
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
395
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
396
|
-
}
|
|
397
|
-
else {
|
|
398
|
-
return this.send(command, optionsOrCb);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
updateBackendAPI(args, optionsOrCb, cb) {
|
|
402
|
-
const command = new UpdateBackendAPICommand_1.UpdateBackendAPICommand(args);
|
|
403
|
-
if (typeof optionsOrCb === "function") {
|
|
404
|
-
this.send(command, optionsOrCb);
|
|
405
|
-
}
|
|
406
|
-
else if (typeof cb === "function") {
|
|
407
|
-
if (typeof optionsOrCb !== "object")
|
|
408
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
409
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
return this.send(command, optionsOrCb);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
updateBackendAuth(args, optionsOrCb, cb) {
|
|
416
|
-
const command = new UpdateBackendAuthCommand_1.UpdateBackendAuthCommand(args);
|
|
417
|
-
if (typeof optionsOrCb === "function") {
|
|
418
|
-
this.send(command, optionsOrCb);
|
|
419
|
-
}
|
|
420
|
-
else if (typeof cb === "function") {
|
|
421
|
-
if (typeof optionsOrCb !== "object")
|
|
422
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
423
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
424
|
-
}
|
|
425
|
-
else {
|
|
426
|
-
return this.send(command, optionsOrCb);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
updateBackendConfig(args, optionsOrCb, cb) {
|
|
430
|
-
const command = new UpdateBackendConfigCommand_1.UpdateBackendConfigCommand(args);
|
|
431
|
-
if (typeof optionsOrCb === "function") {
|
|
432
|
-
this.send(command, optionsOrCb);
|
|
433
|
-
}
|
|
434
|
-
else if (typeof cb === "function") {
|
|
435
|
-
if (typeof optionsOrCb !== "object")
|
|
436
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
437
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
return this.send(command, optionsOrCb);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
updateBackendJob(args, optionsOrCb, cb) {
|
|
444
|
-
const command = new UpdateBackendJobCommand_1.UpdateBackendJobCommand(args);
|
|
445
|
-
if (typeof optionsOrCb === "function") {
|
|
446
|
-
this.send(command, optionsOrCb);
|
|
447
|
-
}
|
|
448
|
-
else if (typeof cb === "function") {
|
|
449
|
-
if (typeof optionsOrCb !== "object")
|
|
450
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
451
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
return this.send(command, optionsOrCb);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
updateBackendStorage(args, optionsOrCb, cb) {
|
|
458
|
-
const command = new UpdateBackendStorageCommand_1.UpdateBackendStorageCommand(args);
|
|
459
|
-
if (typeof optionsOrCb === "function") {
|
|
460
|
-
this.send(command, optionsOrCb);
|
|
461
|
-
}
|
|
462
|
-
else if (typeof cb === "function") {
|
|
463
|
-
if (typeof optionsOrCb !== "object")
|
|
464
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
465
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
return this.send(command, optionsOrCb);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
71
|
}
|
|
472
72
|
exports.AmplifyBackend = AmplifyBackend;
|
|
73
|
+
(0, smithy_client_1.createAggregatedClient)(commands, AmplifyBackend);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AmplifyBackendClient } from "./AmplifyBackendClient";
|
|
2
3
|
import { CloneBackendCommand, } from "./commands/CloneBackendCommand";
|
|
3
4
|
import { CreateBackendAPICommand, } from "./commands/CreateBackendAPICommand";
|
|
@@ -30,439 +31,39 @@ import { UpdateBackendAuthCommand, } from "./commands/UpdateBackendAuthCommand";
|
|
|
30
31
|
import { UpdateBackendConfigCommand, } from "./commands/UpdateBackendConfigCommand";
|
|
31
32
|
import { UpdateBackendJobCommand, } from "./commands/UpdateBackendJobCommand";
|
|
32
33
|
import { UpdateBackendStorageCommand, } from "./commands/UpdateBackendStorageCommand";
|
|
34
|
+
const commands = {
|
|
35
|
+
CloneBackendCommand,
|
|
36
|
+
CreateBackendCommand,
|
|
37
|
+
CreateBackendAPICommand,
|
|
38
|
+
CreateBackendAuthCommand,
|
|
39
|
+
CreateBackendConfigCommand,
|
|
40
|
+
CreateBackendStorageCommand,
|
|
41
|
+
CreateTokenCommand,
|
|
42
|
+
DeleteBackendCommand,
|
|
43
|
+
DeleteBackendAPICommand,
|
|
44
|
+
DeleteBackendAuthCommand,
|
|
45
|
+
DeleteBackendStorageCommand,
|
|
46
|
+
DeleteTokenCommand,
|
|
47
|
+
GenerateBackendAPIModelsCommand,
|
|
48
|
+
GetBackendCommand,
|
|
49
|
+
GetBackendAPICommand,
|
|
50
|
+
GetBackendAPIModelsCommand,
|
|
51
|
+
GetBackendAuthCommand,
|
|
52
|
+
GetBackendJobCommand,
|
|
53
|
+
GetBackendStorageCommand,
|
|
54
|
+
GetTokenCommand,
|
|
55
|
+
ImportBackendAuthCommand,
|
|
56
|
+
ImportBackendStorageCommand,
|
|
57
|
+
ListBackendJobsCommand,
|
|
58
|
+
ListS3BucketsCommand,
|
|
59
|
+
RemoveAllBackendsCommand,
|
|
60
|
+
RemoveBackendConfigCommand,
|
|
61
|
+
UpdateBackendAPICommand,
|
|
62
|
+
UpdateBackendAuthCommand,
|
|
63
|
+
UpdateBackendConfigCommand,
|
|
64
|
+
UpdateBackendJobCommand,
|
|
65
|
+
UpdateBackendStorageCommand,
|
|
66
|
+
};
|
|
33
67
|
export class AmplifyBackend extends AmplifyBackendClient {
|
|
34
|
-
cloneBackend(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new CloneBackendCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
createBackend(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new CreateBackendCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
createBackendAPI(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new CreateBackendAPICommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
createBackendAuth(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new CreateBackendAuthCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
createBackendConfig(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new CreateBackendConfigCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
createBackendStorage(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new CreateBackendStorageCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
createToken(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new CreateTokenCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
deleteBackend(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new DeleteBackendCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
deleteBackendAPI(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new DeleteBackendAPICommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
deleteBackendAuth(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new DeleteBackendAuthCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
deleteBackendStorage(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new DeleteBackendStorageCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
deleteToken(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new DeleteTokenCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
generateBackendAPIModels(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new GenerateBackendAPIModelsCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
getBackend(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new GetBackendCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
getBackendAPI(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new GetBackendAPICommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
getBackendAPIModels(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new GetBackendAPIModelsCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
getBackendAuth(args, optionsOrCb, cb) {
|
|
259
|
-
const command = new GetBackendAuthCommand(args);
|
|
260
|
-
if (typeof optionsOrCb === "function") {
|
|
261
|
-
this.send(command, optionsOrCb);
|
|
262
|
-
}
|
|
263
|
-
else if (typeof cb === "function") {
|
|
264
|
-
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
266
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
return this.send(command, optionsOrCb);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
getBackendJob(args, optionsOrCb, cb) {
|
|
273
|
-
const command = new GetBackendJobCommand(args);
|
|
274
|
-
if (typeof optionsOrCb === "function") {
|
|
275
|
-
this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
else if (typeof cb === "function") {
|
|
278
|
-
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
280
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
return this.send(command, optionsOrCb);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
getBackendStorage(args, optionsOrCb, cb) {
|
|
287
|
-
const command = new GetBackendStorageCommand(args);
|
|
288
|
-
if (typeof optionsOrCb === "function") {
|
|
289
|
-
this.send(command, optionsOrCb);
|
|
290
|
-
}
|
|
291
|
-
else if (typeof cb === "function") {
|
|
292
|
-
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
294
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
return this.send(command, optionsOrCb);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
getToken(args, optionsOrCb, cb) {
|
|
301
|
-
const command = new GetTokenCommand(args);
|
|
302
|
-
if (typeof optionsOrCb === "function") {
|
|
303
|
-
this.send(command, optionsOrCb);
|
|
304
|
-
}
|
|
305
|
-
else if (typeof cb === "function") {
|
|
306
|
-
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
return this.send(command, optionsOrCb);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
importBackendAuth(args, optionsOrCb, cb) {
|
|
315
|
-
const command = new ImportBackendAuthCommand(args);
|
|
316
|
-
if (typeof optionsOrCb === "function") {
|
|
317
|
-
this.send(command, optionsOrCb);
|
|
318
|
-
}
|
|
319
|
-
else if (typeof cb === "function") {
|
|
320
|
-
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
return this.send(command, optionsOrCb);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
importBackendStorage(args, optionsOrCb, cb) {
|
|
329
|
-
const command = new ImportBackendStorageCommand(args);
|
|
330
|
-
if (typeof optionsOrCb === "function") {
|
|
331
|
-
this.send(command, optionsOrCb);
|
|
332
|
-
}
|
|
333
|
-
else if (typeof cb === "function") {
|
|
334
|
-
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
336
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
return this.send(command, optionsOrCb);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
listBackendJobs(args, optionsOrCb, cb) {
|
|
343
|
-
const command = new ListBackendJobsCommand(args);
|
|
344
|
-
if (typeof optionsOrCb === "function") {
|
|
345
|
-
this.send(command, optionsOrCb);
|
|
346
|
-
}
|
|
347
|
-
else if (typeof cb === "function") {
|
|
348
|
-
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
350
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
return this.send(command, optionsOrCb);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
listS3Buckets(args, optionsOrCb, cb) {
|
|
357
|
-
const command = new ListS3BucketsCommand(args);
|
|
358
|
-
if (typeof optionsOrCb === "function") {
|
|
359
|
-
this.send(command, optionsOrCb);
|
|
360
|
-
}
|
|
361
|
-
else if (typeof cb === "function") {
|
|
362
|
-
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
364
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
return this.send(command, optionsOrCb);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
removeAllBackends(args, optionsOrCb, cb) {
|
|
371
|
-
const command = new RemoveAllBackendsCommand(args);
|
|
372
|
-
if (typeof optionsOrCb === "function") {
|
|
373
|
-
this.send(command, optionsOrCb);
|
|
374
|
-
}
|
|
375
|
-
else if (typeof cb === "function") {
|
|
376
|
-
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
378
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
return this.send(command, optionsOrCb);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
removeBackendConfig(args, optionsOrCb, cb) {
|
|
385
|
-
const command = new RemoveBackendConfigCommand(args);
|
|
386
|
-
if (typeof optionsOrCb === "function") {
|
|
387
|
-
this.send(command, optionsOrCb);
|
|
388
|
-
}
|
|
389
|
-
else if (typeof cb === "function") {
|
|
390
|
-
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
return this.send(command, optionsOrCb);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
updateBackendAPI(args, optionsOrCb, cb) {
|
|
399
|
-
const command = new UpdateBackendAPICommand(args);
|
|
400
|
-
if (typeof optionsOrCb === "function") {
|
|
401
|
-
this.send(command, optionsOrCb);
|
|
402
|
-
}
|
|
403
|
-
else if (typeof cb === "function") {
|
|
404
|
-
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
406
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
return this.send(command, optionsOrCb);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
updateBackendAuth(args, optionsOrCb, cb) {
|
|
413
|
-
const command = new UpdateBackendAuthCommand(args);
|
|
414
|
-
if (typeof optionsOrCb === "function") {
|
|
415
|
-
this.send(command, optionsOrCb);
|
|
416
|
-
}
|
|
417
|
-
else if (typeof cb === "function") {
|
|
418
|
-
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
return this.send(command, optionsOrCb);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
updateBackendConfig(args, optionsOrCb, cb) {
|
|
427
|
-
const command = new UpdateBackendConfigCommand(args);
|
|
428
|
-
if (typeof optionsOrCb === "function") {
|
|
429
|
-
this.send(command, optionsOrCb);
|
|
430
|
-
}
|
|
431
|
-
else if (typeof cb === "function") {
|
|
432
|
-
if (typeof optionsOrCb !== "object")
|
|
433
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
434
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
return this.send(command, optionsOrCb);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
updateBackendJob(args, optionsOrCb, cb) {
|
|
441
|
-
const command = new UpdateBackendJobCommand(args);
|
|
442
|
-
if (typeof optionsOrCb === "function") {
|
|
443
|
-
this.send(command, optionsOrCb);
|
|
444
|
-
}
|
|
445
|
-
else if (typeof cb === "function") {
|
|
446
|
-
if (typeof optionsOrCb !== "object")
|
|
447
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
448
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
449
|
-
}
|
|
450
|
-
else {
|
|
451
|
-
return this.send(command, optionsOrCb);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
updateBackendStorage(args, optionsOrCb, cb) {
|
|
455
|
-
const command = new UpdateBackendStorageCommand(args);
|
|
456
|
-
if (typeof optionsOrCb === "function") {
|
|
457
|
-
this.send(command, optionsOrCb);
|
|
458
|
-
}
|
|
459
|
-
else if (typeof cb === "function") {
|
|
460
|
-
if (typeof optionsOrCb !== "object")
|
|
461
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
462
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
return this.send(command, optionsOrCb);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
68
|
}
|
|
69
|
+
createAggregatedClient(commands, AmplifyBackend);
|
|
@@ -31,226 +31,197 @@ import { UpdateBackendAuthCommandInput, UpdateBackendAuthCommandOutput } from ".
|
|
|
31
31
|
import { UpdateBackendConfigCommandInput, UpdateBackendConfigCommandOutput } from "./commands/UpdateBackendConfigCommand";
|
|
32
32
|
import { UpdateBackendJobCommandInput, UpdateBackendJobCommandOutput } from "./commands/UpdateBackendJobCommand";
|
|
33
33
|
import { UpdateBackendStorageCommandInput, UpdateBackendStorageCommandOutput } from "./commands/UpdateBackendStorageCommand";
|
|
34
|
-
|
|
35
|
-
* @public
|
|
36
|
-
* <p>AWS Amplify Admin API</p>
|
|
37
|
-
*/
|
|
38
|
-
export declare class AmplifyBackend extends AmplifyBackendClient {
|
|
34
|
+
export interface AmplifyBackend {
|
|
39
35
|
/**
|
|
40
|
-
* @
|
|
41
|
-
* <p>This operation clones an existing backend.</p>
|
|
36
|
+
* @see {@link CloneBackendCommand}
|
|
42
37
|
*/
|
|
43
38
|
cloneBackend(args: CloneBackendCommandInput, options?: __HttpHandlerOptions): Promise<CloneBackendCommandOutput>;
|
|
44
39
|
cloneBackend(args: CloneBackendCommandInput, cb: (err: any, data?: CloneBackendCommandOutput) => void): void;
|
|
45
40
|
cloneBackend(args: CloneBackendCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CloneBackendCommandOutput) => void): void;
|
|
46
41
|
/**
|
|
47
|
-
* @
|
|
48
|
-
* <p>This operation creates a backend for an Amplify app. Backends are automatically created at the time of app creation.</p>
|
|
42
|
+
* @see {@link CreateBackendCommand}
|
|
49
43
|
*/
|
|
50
44
|
createBackend(args: CreateBackendCommandInput, options?: __HttpHandlerOptions): Promise<CreateBackendCommandOutput>;
|
|
51
45
|
createBackend(args: CreateBackendCommandInput, cb: (err: any, data?: CreateBackendCommandOutput) => void): void;
|
|
52
46
|
createBackend(args: CreateBackendCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBackendCommandOutput) => void): void;
|
|
53
47
|
/**
|
|
54
|
-
* @
|
|
55
|
-
* <p>Creates a new backend API resource.</p>
|
|
48
|
+
* @see {@link CreateBackendAPICommand}
|
|
56
49
|
*/
|
|
57
50
|
createBackendAPI(args: CreateBackendAPICommandInput, options?: __HttpHandlerOptions): Promise<CreateBackendAPICommandOutput>;
|
|
58
51
|
createBackendAPI(args: CreateBackendAPICommandInput, cb: (err: any, data?: CreateBackendAPICommandOutput) => void): void;
|
|
59
52
|
createBackendAPI(args: CreateBackendAPICommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBackendAPICommandOutput) => void): void;
|
|
60
53
|
/**
|
|
61
|
-
* @
|
|
62
|
-
* <p>Creates a new backend authentication resource.</p>
|
|
54
|
+
* @see {@link CreateBackendAuthCommand}
|
|
63
55
|
*/
|
|
64
56
|
createBackendAuth(args: CreateBackendAuthCommandInput, options?: __HttpHandlerOptions): Promise<CreateBackendAuthCommandOutput>;
|
|
65
57
|
createBackendAuth(args: CreateBackendAuthCommandInput, cb: (err: any, data?: CreateBackendAuthCommandOutput) => void): void;
|
|
66
58
|
createBackendAuth(args: CreateBackendAuthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBackendAuthCommandOutput) => void): void;
|
|
67
59
|
/**
|
|
68
|
-
* @
|
|
69
|
-
* <p>Creates a config object for a backend.</p>
|
|
60
|
+
* @see {@link CreateBackendConfigCommand}
|
|
70
61
|
*/
|
|
71
62
|
createBackendConfig(args: CreateBackendConfigCommandInput, options?: __HttpHandlerOptions): Promise<CreateBackendConfigCommandOutput>;
|
|
72
63
|
createBackendConfig(args: CreateBackendConfigCommandInput, cb: (err: any, data?: CreateBackendConfigCommandOutput) => void): void;
|
|
73
64
|
createBackendConfig(args: CreateBackendConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBackendConfigCommandOutput) => void): void;
|
|
74
65
|
/**
|
|
75
|
-
* @
|
|
76
|
-
* <p>Creates a backend storage resource.</p>
|
|
66
|
+
* @see {@link CreateBackendStorageCommand}
|
|
77
67
|
*/
|
|
78
68
|
createBackendStorage(args: CreateBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<CreateBackendStorageCommandOutput>;
|
|
79
69
|
createBackendStorage(args: CreateBackendStorageCommandInput, cb: (err: any, data?: CreateBackendStorageCommandOutput) => void): void;
|
|
80
70
|
createBackendStorage(args: CreateBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBackendStorageCommandOutput) => void): void;
|
|
81
71
|
/**
|
|
82
|
-
* @
|
|
83
|
-
* <p>Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.</p>
|
|
72
|
+
* @see {@link CreateTokenCommand}
|
|
84
73
|
*/
|
|
85
74
|
createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
|
|
86
75
|
createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
87
76
|
createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
88
77
|
/**
|
|
89
|
-
* @
|
|
90
|
-
* <p>Removes an existing environment from your Amplify project.</p>
|
|
78
|
+
* @see {@link DeleteBackendCommand}
|
|
91
79
|
*/
|
|
92
80
|
deleteBackend(args: DeleteBackendCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBackendCommandOutput>;
|
|
93
81
|
deleteBackend(args: DeleteBackendCommandInput, cb: (err: any, data?: DeleteBackendCommandOutput) => void): void;
|
|
94
82
|
deleteBackend(args: DeleteBackendCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBackendCommandOutput) => void): void;
|
|
95
83
|
/**
|
|
96
|
-
* @
|
|
97
|
-
* <p>Deletes an existing backend API resource.</p>
|
|
84
|
+
* @see {@link DeleteBackendAPICommand}
|
|
98
85
|
*/
|
|
99
86
|
deleteBackendAPI(args: DeleteBackendAPICommandInput, options?: __HttpHandlerOptions): Promise<DeleteBackendAPICommandOutput>;
|
|
100
87
|
deleteBackendAPI(args: DeleteBackendAPICommandInput, cb: (err: any, data?: DeleteBackendAPICommandOutput) => void): void;
|
|
101
88
|
deleteBackendAPI(args: DeleteBackendAPICommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBackendAPICommandOutput) => void): void;
|
|
102
89
|
/**
|
|
103
|
-
* @
|
|
104
|
-
* <p>Deletes an existing backend authentication resource.</p>
|
|
90
|
+
* @see {@link DeleteBackendAuthCommand}
|
|
105
91
|
*/
|
|
106
92
|
deleteBackendAuth(args: DeleteBackendAuthCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBackendAuthCommandOutput>;
|
|
107
93
|
deleteBackendAuth(args: DeleteBackendAuthCommandInput, cb: (err: any, data?: DeleteBackendAuthCommandOutput) => void): void;
|
|
108
94
|
deleteBackendAuth(args: DeleteBackendAuthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBackendAuthCommandOutput) => void): void;
|
|
109
95
|
/**
|
|
110
|
-
* @
|
|
111
|
-
* <p>Removes the specified backend storage resource.</p>
|
|
96
|
+
* @see {@link DeleteBackendStorageCommand}
|
|
112
97
|
*/
|
|
113
98
|
deleteBackendStorage(args: DeleteBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBackendStorageCommandOutput>;
|
|
114
99
|
deleteBackendStorage(args: DeleteBackendStorageCommandInput, cb: (err: any, data?: DeleteBackendStorageCommandOutput) => void): void;
|
|
115
100
|
deleteBackendStorage(args: DeleteBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBackendStorageCommandOutput) => void): void;
|
|
116
101
|
/**
|
|
117
|
-
* @
|
|
118
|
-
* <p>Deletes the challenge token based on the given appId and sessionId.</p>
|
|
102
|
+
* @see {@link DeleteTokenCommand}
|
|
119
103
|
*/
|
|
120
104
|
deleteToken(args: DeleteTokenCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTokenCommandOutput>;
|
|
121
105
|
deleteToken(args: DeleteTokenCommandInput, cb: (err: any, data?: DeleteTokenCommandOutput) => void): void;
|
|
122
106
|
deleteToken(args: DeleteTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTokenCommandOutput) => void): void;
|
|
123
107
|
/**
|
|
124
|
-
* @
|
|
125
|
-
* <p>Generates a model schema for an existing backend API resource.</p>
|
|
108
|
+
* @see {@link GenerateBackendAPIModelsCommand}
|
|
126
109
|
*/
|
|
127
110
|
generateBackendAPIModels(args: GenerateBackendAPIModelsCommandInput, options?: __HttpHandlerOptions): Promise<GenerateBackendAPIModelsCommandOutput>;
|
|
128
111
|
generateBackendAPIModels(args: GenerateBackendAPIModelsCommandInput, cb: (err: any, data?: GenerateBackendAPIModelsCommandOutput) => void): void;
|
|
129
112
|
generateBackendAPIModels(args: GenerateBackendAPIModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateBackendAPIModelsCommandOutput) => void): void;
|
|
130
113
|
/**
|
|
131
|
-
* @
|
|
132
|
-
* <p>Provides project-level details for your Amplify UI project.</p>
|
|
114
|
+
* @see {@link GetBackendCommand}
|
|
133
115
|
*/
|
|
134
116
|
getBackend(args: GetBackendCommandInput, options?: __HttpHandlerOptions): Promise<GetBackendCommandOutput>;
|
|
135
117
|
getBackend(args: GetBackendCommandInput, cb: (err: any, data?: GetBackendCommandOutput) => void): void;
|
|
136
118
|
getBackend(args: GetBackendCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendCommandOutput) => void): void;
|
|
137
119
|
/**
|
|
138
|
-
* @
|
|
139
|
-
* <p>Gets the details for a backend API.</p>
|
|
120
|
+
* @see {@link GetBackendAPICommand}
|
|
140
121
|
*/
|
|
141
122
|
getBackendAPI(args: GetBackendAPICommandInput, options?: __HttpHandlerOptions): Promise<GetBackendAPICommandOutput>;
|
|
142
123
|
getBackendAPI(args: GetBackendAPICommandInput, cb: (err: any, data?: GetBackendAPICommandOutput) => void): void;
|
|
143
124
|
getBackendAPI(args: GetBackendAPICommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendAPICommandOutput) => void): void;
|
|
144
125
|
/**
|
|
145
|
-
* @
|
|
146
|
-
* <p>Gets a model introspection schema for an existing backend API resource.</p>
|
|
126
|
+
* @see {@link GetBackendAPIModelsCommand}
|
|
147
127
|
*/
|
|
148
128
|
getBackendAPIModels(args: GetBackendAPIModelsCommandInput, options?: __HttpHandlerOptions): Promise<GetBackendAPIModelsCommandOutput>;
|
|
149
129
|
getBackendAPIModels(args: GetBackendAPIModelsCommandInput, cb: (err: any, data?: GetBackendAPIModelsCommandOutput) => void): void;
|
|
150
130
|
getBackendAPIModels(args: GetBackendAPIModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendAPIModelsCommandOutput) => void): void;
|
|
151
131
|
/**
|
|
152
|
-
* @
|
|
153
|
-
* <p>Gets a backend auth details.</p>
|
|
132
|
+
* @see {@link GetBackendAuthCommand}
|
|
154
133
|
*/
|
|
155
134
|
getBackendAuth(args: GetBackendAuthCommandInput, options?: __HttpHandlerOptions): Promise<GetBackendAuthCommandOutput>;
|
|
156
135
|
getBackendAuth(args: GetBackendAuthCommandInput, cb: (err: any, data?: GetBackendAuthCommandOutput) => void): void;
|
|
157
136
|
getBackendAuth(args: GetBackendAuthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendAuthCommandOutput) => void): void;
|
|
158
137
|
/**
|
|
159
|
-
* @
|
|
160
|
-
* <p>Returns information about a specific job.</p>
|
|
138
|
+
* @see {@link GetBackendJobCommand}
|
|
161
139
|
*/
|
|
162
140
|
getBackendJob(args: GetBackendJobCommandInput, options?: __HttpHandlerOptions): Promise<GetBackendJobCommandOutput>;
|
|
163
141
|
getBackendJob(args: GetBackendJobCommandInput, cb: (err: any, data?: GetBackendJobCommandOutput) => void): void;
|
|
164
142
|
getBackendJob(args: GetBackendJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendJobCommandOutput) => void): void;
|
|
165
143
|
/**
|
|
166
|
-
* @
|
|
167
|
-
* <p>Gets details for a backend storage resource.</p>
|
|
144
|
+
* @see {@link GetBackendStorageCommand}
|
|
168
145
|
*/
|
|
169
146
|
getBackendStorage(args: GetBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<GetBackendStorageCommandOutput>;
|
|
170
147
|
getBackendStorage(args: GetBackendStorageCommandInput, cb: (err: any, data?: GetBackendStorageCommandOutput) => void): void;
|
|
171
148
|
getBackendStorage(args: GetBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendStorageCommandOutput) => void): void;
|
|
172
149
|
/**
|
|
173
|
-
* @
|
|
174
|
-
* <p>Gets the challenge token based on the given appId and sessionId.</p>
|
|
150
|
+
* @see {@link GetTokenCommand}
|
|
175
151
|
*/
|
|
176
152
|
getToken(args: GetTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetTokenCommandOutput>;
|
|
177
153
|
getToken(args: GetTokenCommandInput, cb: (err: any, data?: GetTokenCommandOutput) => void): void;
|
|
178
154
|
getToken(args: GetTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTokenCommandOutput) => void): void;
|
|
179
155
|
/**
|
|
180
|
-
* @
|
|
181
|
-
* <p>Imports an existing backend authentication resource.</p>
|
|
156
|
+
* @see {@link ImportBackendAuthCommand}
|
|
182
157
|
*/
|
|
183
158
|
importBackendAuth(args: ImportBackendAuthCommandInput, options?: __HttpHandlerOptions): Promise<ImportBackendAuthCommandOutput>;
|
|
184
159
|
importBackendAuth(args: ImportBackendAuthCommandInput, cb: (err: any, data?: ImportBackendAuthCommandOutput) => void): void;
|
|
185
160
|
importBackendAuth(args: ImportBackendAuthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportBackendAuthCommandOutput) => void): void;
|
|
186
161
|
/**
|
|
187
|
-
* @
|
|
188
|
-
* <p>Imports an existing backend storage resource.</p>
|
|
162
|
+
* @see {@link ImportBackendStorageCommand}
|
|
189
163
|
*/
|
|
190
164
|
importBackendStorage(args: ImportBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<ImportBackendStorageCommandOutput>;
|
|
191
165
|
importBackendStorage(args: ImportBackendStorageCommandInput, cb: (err: any, data?: ImportBackendStorageCommandOutput) => void): void;
|
|
192
166
|
importBackendStorage(args: ImportBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportBackendStorageCommandOutput) => void): void;
|
|
193
167
|
/**
|
|
194
|
-
* @
|
|
195
|
-
* <p>Lists the jobs for the backend of an Amplify app.</p>
|
|
168
|
+
* @see {@link ListBackendJobsCommand}
|
|
196
169
|
*/
|
|
197
170
|
listBackendJobs(args: ListBackendJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListBackendJobsCommandOutput>;
|
|
198
171
|
listBackendJobs(args: ListBackendJobsCommandInput, cb: (err: any, data?: ListBackendJobsCommandOutput) => void): void;
|
|
199
172
|
listBackendJobs(args: ListBackendJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBackendJobsCommandOutput) => void): void;
|
|
200
173
|
/**
|
|
201
|
-
* @
|
|
202
|
-
* <p>The list of S3 buckets in your account.</p>
|
|
174
|
+
* @see {@link ListS3BucketsCommand}
|
|
203
175
|
*/
|
|
204
176
|
listS3Buckets(args: ListS3BucketsCommandInput, options?: __HttpHandlerOptions): Promise<ListS3BucketsCommandOutput>;
|
|
205
177
|
listS3Buckets(args: ListS3BucketsCommandInput, cb: (err: any, data?: ListS3BucketsCommandOutput) => void): void;
|
|
206
178
|
listS3Buckets(args: ListS3BucketsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListS3BucketsCommandOutput) => void): void;
|
|
207
179
|
/**
|
|
208
|
-
* @
|
|
209
|
-
* <p>Removes all backend environments from your Amplify project.</p>
|
|
180
|
+
* @see {@link RemoveAllBackendsCommand}
|
|
210
181
|
*/
|
|
211
182
|
removeAllBackends(args: RemoveAllBackendsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveAllBackendsCommandOutput>;
|
|
212
183
|
removeAllBackends(args: RemoveAllBackendsCommandInput, cb: (err: any, data?: RemoveAllBackendsCommandOutput) => void): void;
|
|
213
184
|
removeAllBackends(args: RemoveAllBackendsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveAllBackendsCommandOutput) => void): void;
|
|
214
185
|
/**
|
|
215
|
-
* @
|
|
216
|
-
* <p>Removes the AWS resources required to access the Amplify Admin UI.</p>
|
|
186
|
+
* @see {@link RemoveBackendConfigCommand}
|
|
217
187
|
*/
|
|
218
188
|
removeBackendConfig(args: RemoveBackendConfigCommandInput, options?: __HttpHandlerOptions): Promise<RemoveBackendConfigCommandOutput>;
|
|
219
189
|
removeBackendConfig(args: RemoveBackendConfigCommandInput, cb: (err: any, data?: RemoveBackendConfigCommandOutput) => void): void;
|
|
220
190
|
removeBackendConfig(args: RemoveBackendConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveBackendConfigCommandOutput) => void): void;
|
|
221
191
|
/**
|
|
222
|
-
* @
|
|
223
|
-
* <p>Updates an existing backend API resource.</p>
|
|
192
|
+
* @see {@link UpdateBackendAPICommand}
|
|
224
193
|
*/
|
|
225
194
|
updateBackendAPI(args: UpdateBackendAPICommandInput, options?: __HttpHandlerOptions): Promise<UpdateBackendAPICommandOutput>;
|
|
226
195
|
updateBackendAPI(args: UpdateBackendAPICommandInput, cb: (err: any, data?: UpdateBackendAPICommandOutput) => void): void;
|
|
227
196
|
updateBackendAPI(args: UpdateBackendAPICommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBackendAPICommandOutput) => void): void;
|
|
228
197
|
/**
|
|
229
|
-
* @
|
|
230
|
-
* <p>Updates an existing backend authentication resource.</p>
|
|
198
|
+
* @see {@link UpdateBackendAuthCommand}
|
|
231
199
|
*/
|
|
232
200
|
updateBackendAuth(args: UpdateBackendAuthCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBackendAuthCommandOutput>;
|
|
233
201
|
updateBackendAuth(args: UpdateBackendAuthCommandInput, cb: (err: any, data?: UpdateBackendAuthCommandOutput) => void): void;
|
|
234
202
|
updateBackendAuth(args: UpdateBackendAuthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBackendAuthCommandOutput) => void): void;
|
|
235
203
|
/**
|
|
236
|
-
* @
|
|
237
|
-
* <p>Updates the AWS resources required to access the Amplify Admin UI.</p>
|
|
204
|
+
* @see {@link UpdateBackendConfigCommand}
|
|
238
205
|
*/
|
|
239
206
|
updateBackendConfig(args: UpdateBackendConfigCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBackendConfigCommandOutput>;
|
|
240
207
|
updateBackendConfig(args: UpdateBackendConfigCommandInput, cb: (err: any, data?: UpdateBackendConfigCommandOutput) => void): void;
|
|
241
208
|
updateBackendConfig(args: UpdateBackendConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBackendConfigCommandOutput) => void): void;
|
|
242
209
|
/**
|
|
243
|
-
* @
|
|
244
|
-
* <p>Updates a specific job.</p>
|
|
210
|
+
* @see {@link UpdateBackendJobCommand}
|
|
245
211
|
*/
|
|
246
212
|
updateBackendJob(args: UpdateBackendJobCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBackendJobCommandOutput>;
|
|
247
213
|
updateBackendJob(args: UpdateBackendJobCommandInput, cb: (err: any, data?: UpdateBackendJobCommandOutput) => void): void;
|
|
248
214
|
updateBackendJob(args: UpdateBackendJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBackendJobCommandOutput) => void): void;
|
|
249
215
|
/**
|
|
250
|
-
* @
|
|
251
|
-
* <p>Updates an existing backend storage resource.</p>
|
|
216
|
+
* @see {@link UpdateBackendStorageCommand}
|
|
252
217
|
*/
|
|
253
218
|
updateBackendStorage(args: UpdateBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBackendStorageCommandOutput>;
|
|
254
219
|
updateBackendStorage(args: UpdateBackendStorageCommandInput, cb: (err: any, data?: UpdateBackendStorageCommandOutput) => void): void;
|
|
255
220
|
updateBackendStorage(args: UpdateBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBackendStorageCommandOutput) => void): void;
|
|
256
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
* <p>AWS Amplify Admin API</p>
|
|
225
|
+
*/
|
|
226
|
+
export declare class AmplifyBackend extends AmplifyBackendClient implements AmplifyBackend {
|
|
227
|
+
}
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
UpdateBackendStorageCommandInput,
|
|
125
125
|
UpdateBackendStorageCommandOutput,
|
|
126
126
|
} from "./commands/UpdateBackendStorageCommand";
|
|
127
|
-
export
|
|
127
|
+
export interface AmplifyBackend {
|
|
128
128
|
cloneBackend(
|
|
129
129
|
args: CloneBackendCommandInput,
|
|
130
130
|
options?: __HttpHandlerOptions
|
|
@@ -529,3 +529,6 @@ export declare class AmplifyBackend extends AmplifyBackendClient {
|
|
|
529
529
|
cb: (err: any, data?: UpdateBackendStorageCommandOutput) => void
|
|
530
530
|
): void;
|
|
531
531
|
}
|
|
532
|
+
export declare class AmplifyBackend
|
|
533
|
+
extends AmplifyBackendClient
|
|
534
|
+
implements AmplifyBackend {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amplifybackend",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplifybackend Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|