@aws-sdk/client-amplifybackend 3.39.0 → 3.43.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 +41 -0
- package/dist-cjs/AmplifyBackend.js +90 -0
- package/dist-cjs/commands/CreateBackendStorageCommand.js +36 -0
- package/dist-cjs/commands/DeleteBackendStorageCommand.js +36 -0
- package/dist-cjs/commands/GetBackendStorageCommand.js +36 -0
- package/dist-cjs/commands/ImportBackendStorageCommand.js +36 -0
- package/dist-cjs/commands/ListS3BucketsCommand.js +36 -0
- package/dist-cjs/commands/UpdateBackendStorageCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +121 -2
- package/dist-cjs/protocols/Aws_restJson1.js +937 -101
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/AmplifyBackend.js +90 -0
- package/dist-es/commands/CreateBackendStorageCommand.js +39 -0
- package/dist-es/commands/DeleteBackendStorageCommand.js +39 -0
- package/dist-es/commands/GetBackendStorageCommand.js +39 -0
- package/dist-es/commands/ImportBackendStorageCommand.js +39 -0
- package/dist-es/commands/ListS3BucketsCommand.js +39 -0
- package/dist-es/commands/UpdateBackendStorageCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +84 -0
- package/dist-es/protocols/Aws_restJson1.js +1008 -86
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/AmplifyBackend.d.ts +42 -0
- package/dist-types/AmplifyBackendClient.d.ts +16 -2
- package/dist-types/commands/CloneBackendCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendAPICommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendConfigCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendStorageCommand.d.ts +35 -0
- package/dist-types/commands/CreateTokenCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackendAPICommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackendCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackendStorageCommand.d.ts +35 -0
- package/dist-types/commands/DeleteTokenCommand.d.ts +1 -1
- package/dist-types/commands/GenerateBackendAPIModelsCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendAPICommand.d.ts +1 -1
- package/dist-types/commands/GetBackendAPIModelsCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendJobCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendStorageCommand.d.ts +35 -0
- package/dist-types/commands/GetTokenCommand.d.ts +1 -1
- package/dist-types/commands/ImportBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/ImportBackendStorageCommand.d.ts +35 -0
- package/dist-types/commands/ListBackendJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListS3BucketsCommand.d.ts +35 -0
- package/dist-types/commands/RemoveAllBackendsCommand.d.ts +1 -1
- package/dist-types/commands/RemoveBackendConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackendAPICommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackendConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackendJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackendStorageCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +403 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/AmplifyBackend.d.ts +30 -0
- package/dist-types/ts3.4/AmplifyBackendClient.d.ts +12 -2
- package/dist-types/ts3.4/commands/CreateBackendStorageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBackendStorageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBackendStorageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportBackendStorageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListS3BucketsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateBackendStorageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +236 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -5,10 +5,12 @@ import { CreateBackendAPICommand, } from "./commands/CreateBackendAPICommand";
|
|
|
5
5
|
import { CreateBackendAuthCommand, } from "./commands/CreateBackendAuthCommand";
|
|
6
6
|
import { CreateBackendCommand, } from "./commands/CreateBackendCommand";
|
|
7
7
|
import { CreateBackendConfigCommand, } from "./commands/CreateBackendConfigCommand";
|
|
8
|
+
import { CreateBackendStorageCommand, } from "./commands/CreateBackendStorageCommand";
|
|
8
9
|
import { CreateTokenCommand } from "./commands/CreateTokenCommand";
|
|
9
10
|
import { DeleteBackendAPICommand, } from "./commands/DeleteBackendAPICommand";
|
|
10
11
|
import { DeleteBackendAuthCommand, } from "./commands/DeleteBackendAuthCommand";
|
|
11
12
|
import { DeleteBackendCommand, } from "./commands/DeleteBackendCommand";
|
|
13
|
+
import { DeleteBackendStorageCommand, } from "./commands/DeleteBackendStorageCommand";
|
|
12
14
|
import { DeleteTokenCommand } from "./commands/DeleteTokenCommand";
|
|
13
15
|
import { GenerateBackendAPIModelsCommand, } from "./commands/GenerateBackendAPIModelsCommand";
|
|
14
16
|
import { GetBackendAPICommand, } from "./commands/GetBackendAPICommand";
|
|
@@ -16,15 +18,19 @@ import { GetBackendAPIModelsCommand, } from "./commands/GetBackendAPIModelsComma
|
|
|
16
18
|
import { GetBackendAuthCommand, } from "./commands/GetBackendAuthCommand";
|
|
17
19
|
import { GetBackendCommand } from "./commands/GetBackendCommand";
|
|
18
20
|
import { GetBackendJobCommand, } from "./commands/GetBackendJobCommand";
|
|
21
|
+
import { GetBackendStorageCommand, } from "./commands/GetBackendStorageCommand";
|
|
19
22
|
import { GetTokenCommand } from "./commands/GetTokenCommand";
|
|
20
23
|
import { ImportBackendAuthCommand, } from "./commands/ImportBackendAuthCommand";
|
|
24
|
+
import { ImportBackendStorageCommand, } from "./commands/ImportBackendStorageCommand";
|
|
21
25
|
import { ListBackendJobsCommand, } from "./commands/ListBackendJobsCommand";
|
|
26
|
+
import { ListS3BucketsCommand, } from "./commands/ListS3BucketsCommand";
|
|
22
27
|
import { RemoveAllBackendsCommand, } from "./commands/RemoveAllBackendsCommand";
|
|
23
28
|
import { RemoveBackendConfigCommand, } from "./commands/RemoveBackendConfigCommand";
|
|
24
29
|
import { UpdateBackendAPICommand, } from "./commands/UpdateBackendAPICommand";
|
|
25
30
|
import { UpdateBackendAuthCommand, } from "./commands/UpdateBackendAuthCommand";
|
|
26
31
|
import { UpdateBackendConfigCommand, } from "./commands/UpdateBackendConfigCommand";
|
|
27
32
|
import { UpdateBackendJobCommand, } from "./commands/UpdateBackendJobCommand";
|
|
33
|
+
import { UpdateBackendStorageCommand, } from "./commands/UpdateBackendStorageCommand";
|
|
28
34
|
var AmplifyBackend = (function (_super) {
|
|
29
35
|
__extends(AmplifyBackend, _super);
|
|
30
36
|
function AmplifyBackend() {
|
|
@@ -100,6 +106,20 @@ var AmplifyBackend = (function (_super) {
|
|
|
100
106
|
return this.send(command, optionsOrCb);
|
|
101
107
|
}
|
|
102
108
|
};
|
|
109
|
+
AmplifyBackend.prototype.createBackendStorage = function (args, optionsOrCb, cb) {
|
|
110
|
+
var command = new CreateBackendStorageCommand(args);
|
|
111
|
+
if (typeof optionsOrCb === "function") {
|
|
112
|
+
this.send(command, optionsOrCb);
|
|
113
|
+
}
|
|
114
|
+
else if (typeof cb === "function") {
|
|
115
|
+
if (typeof optionsOrCb !== "object")
|
|
116
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
117
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return this.send(command, optionsOrCb);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
103
123
|
AmplifyBackend.prototype.createToken = function (args, optionsOrCb, cb) {
|
|
104
124
|
var command = new CreateTokenCommand(args);
|
|
105
125
|
if (typeof optionsOrCb === "function") {
|
|
@@ -156,6 +176,20 @@ var AmplifyBackend = (function (_super) {
|
|
|
156
176
|
return this.send(command, optionsOrCb);
|
|
157
177
|
}
|
|
158
178
|
};
|
|
179
|
+
AmplifyBackend.prototype.deleteBackendStorage = function (args, optionsOrCb, cb) {
|
|
180
|
+
var command = new DeleteBackendStorageCommand(args);
|
|
181
|
+
if (typeof optionsOrCb === "function") {
|
|
182
|
+
this.send(command, optionsOrCb);
|
|
183
|
+
}
|
|
184
|
+
else if (typeof cb === "function") {
|
|
185
|
+
if (typeof optionsOrCb !== "object")
|
|
186
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
187
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return this.send(command, optionsOrCb);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
159
193
|
AmplifyBackend.prototype.deleteToken = function (args, optionsOrCb, cb) {
|
|
160
194
|
var command = new DeleteTokenCommand(args);
|
|
161
195
|
if (typeof optionsOrCb === "function") {
|
|
@@ -254,6 +288,20 @@ var AmplifyBackend = (function (_super) {
|
|
|
254
288
|
return this.send(command, optionsOrCb);
|
|
255
289
|
}
|
|
256
290
|
};
|
|
291
|
+
AmplifyBackend.prototype.getBackendStorage = function (args, optionsOrCb, cb) {
|
|
292
|
+
var command = new GetBackendStorageCommand(args);
|
|
293
|
+
if (typeof optionsOrCb === "function") {
|
|
294
|
+
this.send(command, optionsOrCb);
|
|
295
|
+
}
|
|
296
|
+
else if (typeof cb === "function") {
|
|
297
|
+
if (typeof optionsOrCb !== "object")
|
|
298
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
299
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
return this.send(command, optionsOrCb);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
257
305
|
AmplifyBackend.prototype.getToken = function (args, optionsOrCb, cb) {
|
|
258
306
|
var command = new GetTokenCommand(args);
|
|
259
307
|
if (typeof optionsOrCb === "function") {
|
|
@@ -282,6 +330,20 @@ var AmplifyBackend = (function (_super) {
|
|
|
282
330
|
return this.send(command, optionsOrCb);
|
|
283
331
|
}
|
|
284
332
|
};
|
|
333
|
+
AmplifyBackend.prototype.importBackendStorage = function (args, optionsOrCb, cb) {
|
|
334
|
+
var command = new ImportBackendStorageCommand(args);
|
|
335
|
+
if (typeof optionsOrCb === "function") {
|
|
336
|
+
this.send(command, optionsOrCb);
|
|
337
|
+
}
|
|
338
|
+
else if (typeof cb === "function") {
|
|
339
|
+
if (typeof optionsOrCb !== "object")
|
|
340
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
341
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
return this.send(command, optionsOrCb);
|
|
345
|
+
}
|
|
346
|
+
};
|
|
285
347
|
AmplifyBackend.prototype.listBackendJobs = function (args, optionsOrCb, cb) {
|
|
286
348
|
var command = new ListBackendJobsCommand(args);
|
|
287
349
|
if (typeof optionsOrCb === "function") {
|
|
@@ -296,6 +358,20 @@ var AmplifyBackend = (function (_super) {
|
|
|
296
358
|
return this.send(command, optionsOrCb);
|
|
297
359
|
}
|
|
298
360
|
};
|
|
361
|
+
AmplifyBackend.prototype.listS3Buckets = function (args, optionsOrCb, cb) {
|
|
362
|
+
var command = new ListS3BucketsCommand(args);
|
|
363
|
+
if (typeof optionsOrCb === "function") {
|
|
364
|
+
this.send(command, optionsOrCb);
|
|
365
|
+
}
|
|
366
|
+
else if (typeof cb === "function") {
|
|
367
|
+
if (typeof optionsOrCb !== "object")
|
|
368
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
369
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
return this.send(command, optionsOrCb);
|
|
373
|
+
}
|
|
374
|
+
};
|
|
299
375
|
AmplifyBackend.prototype.removeAllBackends = function (args, optionsOrCb, cb) {
|
|
300
376
|
var command = new RemoveAllBackendsCommand(args);
|
|
301
377
|
if (typeof optionsOrCb === "function") {
|
|
@@ -380,6 +456,20 @@ var AmplifyBackend = (function (_super) {
|
|
|
380
456
|
return this.send(command, optionsOrCb);
|
|
381
457
|
}
|
|
382
458
|
};
|
|
459
|
+
AmplifyBackend.prototype.updateBackendStorage = function (args, optionsOrCb, cb) {
|
|
460
|
+
var command = new UpdateBackendStorageCommand(args);
|
|
461
|
+
if (typeof optionsOrCb === "function") {
|
|
462
|
+
this.send(command, optionsOrCb);
|
|
463
|
+
}
|
|
464
|
+
else if (typeof cb === "function") {
|
|
465
|
+
if (typeof optionsOrCb !== "object")
|
|
466
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
467
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
468
|
+
}
|
|
469
|
+
else {
|
|
470
|
+
return this.send(command, optionsOrCb);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
383
473
|
return AmplifyBackend;
|
|
384
474
|
}(AmplifyBackendClient));
|
|
385
475
|
export { AmplifyBackend };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateBackendStorageRequest, CreateBackendStorageResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateBackendStorageCommand, serializeAws_restJson1CreateBackendStorageCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateBackendStorageCommand = (function (_super) {
|
|
7
|
+
__extends(CreateBackendStorageCommand, _super);
|
|
8
|
+
function CreateBackendStorageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateBackendStorageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AmplifyBackendClient";
|
|
18
|
+
var commandName = "CreateBackendStorageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateBackendStorageCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateBackendStorageCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateBackendStorageCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateBackendStorageCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateBackendStorageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateBackendStorageCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteBackendStorageRequest, DeleteBackendStorageResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteBackendStorageCommand, serializeAws_restJson1DeleteBackendStorageCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteBackendStorageCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteBackendStorageCommand, _super);
|
|
8
|
+
function DeleteBackendStorageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteBackendStorageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AmplifyBackendClient";
|
|
18
|
+
var commandName = "DeleteBackendStorageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteBackendStorageCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteBackendStorageCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteBackendStorageCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteBackendStorageCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteBackendStorageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteBackendStorageCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetBackendStorageRequest, GetBackendStorageResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetBackendStorageCommand, serializeAws_restJson1GetBackendStorageCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetBackendStorageCommand = (function (_super) {
|
|
7
|
+
__extends(GetBackendStorageCommand, _super);
|
|
8
|
+
function GetBackendStorageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetBackendStorageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AmplifyBackendClient";
|
|
18
|
+
var commandName = "GetBackendStorageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetBackendStorageCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetBackendStorageCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetBackendStorageCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetBackendStorageCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetBackendStorageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetBackendStorageCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ImportBackendStorageRequest, ImportBackendStorageResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ImportBackendStorageCommand, serializeAws_restJson1ImportBackendStorageCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ImportBackendStorageCommand = (function (_super) {
|
|
7
|
+
__extends(ImportBackendStorageCommand, _super);
|
|
8
|
+
function ImportBackendStorageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ImportBackendStorageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AmplifyBackendClient";
|
|
18
|
+
var commandName = "ImportBackendStorageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ImportBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ImportBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ImportBackendStorageCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ImportBackendStorageCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ImportBackendStorageCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ImportBackendStorageCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ImportBackendStorageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ImportBackendStorageCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListS3BucketsRequest, ListS3BucketsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListS3BucketsCommand, serializeAws_restJson1ListS3BucketsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListS3BucketsCommand = (function (_super) {
|
|
7
|
+
__extends(ListS3BucketsCommand, _super);
|
|
8
|
+
function ListS3BucketsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListS3BucketsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AmplifyBackendClient";
|
|
18
|
+
var commandName = "ListS3BucketsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListS3BucketsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListS3BucketsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListS3BucketsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListS3BucketsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListS3BucketsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListS3BucketsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListS3BucketsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListS3BucketsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateBackendStorageRequest, UpdateBackendStorageResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateBackendStorageCommand, serializeAws_restJson1UpdateBackendStorageCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateBackendStorageCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateBackendStorageCommand, _super);
|
|
8
|
+
function UpdateBackendStorageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateBackendStorageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AmplifyBackendClient";
|
|
18
|
+
var commandName = "UpdateBackendStorageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateBackendStorageCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateBackendStorageCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateBackendStorageCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateBackendStorageCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateBackendStorageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateBackendStorageCommand };
|
|
@@ -3,10 +3,12 @@ export * from "./CreateBackendAPICommand";
|
|
|
3
3
|
export * from "./CreateBackendAuthCommand";
|
|
4
4
|
export * from "./CreateBackendCommand";
|
|
5
5
|
export * from "./CreateBackendConfigCommand";
|
|
6
|
+
export * from "./CreateBackendStorageCommand";
|
|
6
7
|
export * from "./CreateTokenCommand";
|
|
7
8
|
export * from "./DeleteBackendAPICommand";
|
|
8
9
|
export * from "./DeleteBackendAuthCommand";
|
|
9
10
|
export * from "./DeleteBackendCommand";
|
|
11
|
+
export * from "./DeleteBackendStorageCommand";
|
|
10
12
|
export * from "./DeleteTokenCommand";
|
|
11
13
|
export * from "./GenerateBackendAPIModelsCommand";
|
|
12
14
|
export * from "./GetBackendAPICommand";
|
|
@@ -14,12 +16,16 @@ export * from "./GetBackendAPIModelsCommand";
|
|
|
14
16
|
export * from "./GetBackendAuthCommand";
|
|
15
17
|
export * from "./GetBackendCommand";
|
|
16
18
|
export * from "./GetBackendJobCommand";
|
|
19
|
+
export * from "./GetBackendStorageCommand";
|
|
17
20
|
export * from "./GetTokenCommand";
|
|
18
21
|
export * from "./ImportBackendAuthCommand";
|
|
22
|
+
export * from "./ImportBackendStorageCommand";
|
|
19
23
|
export * from "./ListBackendJobsCommand";
|
|
24
|
+
export * from "./ListS3BucketsCommand";
|
|
20
25
|
export * from "./RemoveAllBackendsCommand";
|
|
21
26
|
export * from "./RemoveBackendConfigCommand";
|
|
22
27
|
export * from "./UpdateBackendAPICommand";
|
|
23
28
|
export * from "./UpdateBackendAuthCommand";
|
|
24
29
|
export * from "./UpdateBackendConfigCommand";
|
|
25
30
|
export * from "./UpdateBackendJobCommand";
|
|
31
|
+
export * from "./UpdateBackendStorageCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -27,27 +27,96 @@ var partitionHash = {
|
|
|
27
27
|
"us-west-2",
|
|
28
28
|
],
|
|
29
29
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
30
|
-
|
|
30
|
+
variants: [
|
|
31
|
+
{
|
|
32
|
+
hostname: "amplifybackend.{region}.amazonaws.com",
|
|
33
|
+
tags: [],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
hostname: "amplifybackend-fips.{region}.amazonaws.com",
|
|
37
|
+
tags: ["fips"],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
hostname: "amplifybackend-fips.{region}.api.aws",
|
|
41
|
+
tags: ["dualstack", "fips"],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
hostname: "amplifybackend.{region}.api.aws",
|
|
45
|
+
tags: ["dualstack"],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
31
48
|
},
|
|
32
49
|
"aws-cn": {
|
|
33
50
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
34
51
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
35
|
-
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
hostname: "amplifybackend.{region}.amazonaws.com.cn",
|
|
55
|
+
tags: [],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
hostname: "amplifybackend-fips.{region}.amazonaws.com.cn",
|
|
59
|
+
tags: ["fips"],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
hostname: "amplifybackend-fips.{region}.api.amazonwebservices.com.cn",
|
|
63
|
+
tags: ["dualstack", "fips"],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
hostname: "amplifybackend.{region}.api.amazonwebservices.com.cn",
|
|
67
|
+
tags: ["dualstack"],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
36
70
|
},
|
|
37
71
|
"aws-iso": {
|
|
38
72
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
73
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
40
|
-
|
|
74
|
+
variants: [
|
|
75
|
+
{
|
|
76
|
+
hostname: "amplifybackend.{region}.c2s.ic.gov",
|
|
77
|
+
tags: [],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
hostname: "amplifybackend-fips.{region}.c2s.ic.gov",
|
|
81
|
+
tags: ["fips"],
|
|
82
|
+
},
|
|
83
|
+
],
|
|
41
84
|
},
|
|
42
85
|
"aws-iso-b": {
|
|
43
86
|
regions: ["us-isob-east-1"],
|
|
44
87
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
45
|
-
|
|
88
|
+
variants: [
|
|
89
|
+
{
|
|
90
|
+
hostname: "amplifybackend.{region}.sc2s.sgov.gov",
|
|
91
|
+
tags: [],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hostname: "amplifybackend-fips.{region}.sc2s.sgov.gov",
|
|
95
|
+
tags: ["fips"],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
46
98
|
},
|
|
47
99
|
"aws-us-gov": {
|
|
48
100
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
49
101
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
50
|
-
|
|
102
|
+
variants: [
|
|
103
|
+
{
|
|
104
|
+
hostname: "amplifybackend.{region}.amazonaws.com",
|
|
105
|
+
tags: [],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
hostname: "amplifybackend-fips.{region}.amazonaws.com",
|
|
109
|
+
tags: ["fips"],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
hostname: "amplifybackend-fips.{region}.api.aws",
|
|
113
|
+
tags: ["dualstack", "fips"],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
hostname: "amplifybackend.{region}.api.aws",
|
|
117
|
+
tags: ["dualstack"],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
51
120
|
},
|
|
52
121
|
};
|
|
53
122
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|