@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-amplifybackend
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients as of 11/18/2021 ([#3039](https://github.com/aws/aws-sdk-js-v3/issues/3039)) ([d2b2c45](https://github.com/aws/aws-sdk-js-v3/commit/d2b2c453315fc7bff798c1fb97c792e59274b4d6))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
48
|
|
|
8
49
|
**Note:** Version bump only for package @aws-sdk/client-amplifybackend
|
|
@@ -7,10 +7,12 @@ const CreateBackendAPICommand_1 = require("./commands/CreateBackendAPICommand");
|
|
|
7
7
|
const CreateBackendAuthCommand_1 = require("./commands/CreateBackendAuthCommand");
|
|
8
8
|
const CreateBackendCommand_1 = require("./commands/CreateBackendCommand");
|
|
9
9
|
const CreateBackendConfigCommand_1 = require("./commands/CreateBackendConfigCommand");
|
|
10
|
+
const CreateBackendStorageCommand_1 = require("./commands/CreateBackendStorageCommand");
|
|
10
11
|
const CreateTokenCommand_1 = require("./commands/CreateTokenCommand");
|
|
11
12
|
const DeleteBackendAPICommand_1 = require("./commands/DeleteBackendAPICommand");
|
|
12
13
|
const DeleteBackendAuthCommand_1 = require("./commands/DeleteBackendAuthCommand");
|
|
13
14
|
const DeleteBackendCommand_1 = require("./commands/DeleteBackendCommand");
|
|
15
|
+
const DeleteBackendStorageCommand_1 = require("./commands/DeleteBackendStorageCommand");
|
|
14
16
|
const DeleteTokenCommand_1 = require("./commands/DeleteTokenCommand");
|
|
15
17
|
const GenerateBackendAPIModelsCommand_1 = require("./commands/GenerateBackendAPIModelsCommand");
|
|
16
18
|
const GetBackendAPICommand_1 = require("./commands/GetBackendAPICommand");
|
|
@@ -18,15 +20,19 @@ const GetBackendAPIModelsCommand_1 = require("./commands/GetBackendAPIModelsComm
|
|
|
18
20
|
const GetBackendAuthCommand_1 = require("./commands/GetBackendAuthCommand");
|
|
19
21
|
const GetBackendCommand_1 = require("./commands/GetBackendCommand");
|
|
20
22
|
const GetBackendJobCommand_1 = require("./commands/GetBackendJobCommand");
|
|
23
|
+
const GetBackendStorageCommand_1 = require("./commands/GetBackendStorageCommand");
|
|
21
24
|
const GetTokenCommand_1 = require("./commands/GetTokenCommand");
|
|
22
25
|
const ImportBackendAuthCommand_1 = require("./commands/ImportBackendAuthCommand");
|
|
26
|
+
const ImportBackendStorageCommand_1 = require("./commands/ImportBackendStorageCommand");
|
|
23
27
|
const ListBackendJobsCommand_1 = require("./commands/ListBackendJobsCommand");
|
|
28
|
+
const ListS3BucketsCommand_1 = require("./commands/ListS3BucketsCommand");
|
|
24
29
|
const RemoveAllBackendsCommand_1 = require("./commands/RemoveAllBackendsCommand");
|
|
25
30
|
const RemoveBackendConfigCommand_1 = require("./commands/RemoveBackendConfigCommand");
|
|
26
31
|
const UpdateBackendAPICommand_1 = require("./commands/UpdateBackendAPICommand");
|
|
27
32
|
const UpdateBackendAuthCommand_1 = require("./commands/UpdateBackendAuthCommand");
|
|
28
33
|
const UpdateBackendConfigCommand_1 = require("./commands/UpdateBackendConfigCommand");
|
|
29
34
|
const UpdateBackendJobCommand_1 = require("./commands/UpdateBackendJobCommand");
|
|
35
|
+
const UpdateBackendStorageCommand_1 = require("./commands/UpdateBackendStorageCommand");
|
|
30
36
|
class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
31
37
|
cloneBackend(args, optionsOrCb, cb) {
|
|
32
38
|
const command = new CloneBackendCommand_1.CloneBackendCommand(args);
|
|
@@ -98,6 +104,20 @@ class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
|
98
104
|
return this.send(command, optionsOrCb);
|
|
99
105
|
}
|
|
100
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
|
+
}
|
|
101
121
|
createToken(args, optionsOrCb, cb) {
|
|
102
122
|
const command = new CreateTokenCommand_1.CreateTokenCommand(args);
|
|
103
123
|
if (typeof optionsOrCb === "function") {
|
|
@@ -154,6 +174,20 @@ class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
|
154
174
|
return this.send(command, optionsOrCb);
|
|
155
175
|
}
|
|
156
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
|
+
}
|
|
157
191
|
deleteToken(args, optionsOrCb, cb) {
|
|
158
192
|
const command = new DeleteTokenCommand_1.DeleteTokenCommand(args);
|
|
159
193
|
if (typeof optionsOrCb === "function") {
|
|
@@ -252,6 +286,20 @@ class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
|
252
286
|
return this.send(command, optionsOrCb);
|
|
253
287
|
}
|
|
254
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
|
+
}
|
|
255
303
|
getToken(args, optionsOrCb, cb) {
|
|
256
304
|
const command = new GetTokenCommand_1.GetTokenCommand(args);
|
|
257
305
|
if (typeof optionsOrCb === "function") {
|
|
@@ -280,6 +328,20 @@ class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
|
280
328
|
return this.send(command, optionsOrCb);
|
|
281
329
|
}
|
|
282
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
|
+
}
|
|
283
345
|
listBackendJobs(args, optionsOrCb, cb) {
|
|
284
346
|
const command = new ListBackendJobsCommand_1.ListBackendJobsCommand(args);
|
|
285
347
|
if (typeof optionsOrCb === "function") {
|
|
@@ -294,6 +356,20 @@ class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
|
294
356
|
return this.send(command, optionsOrCb);
|
|
295
357
|
}
|
|
296
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
|
+
}
|
|
297
373
|
removeAllBackends(args, optionsOrCb, cb) {
|
|
298
374
|
const command = new RemoveAllBackendsCommand_1.RemoveAllBackendsCommand(args);
|
|
299
375
|
if (typeof optionsOrCb === "function") {
|
|
@@ -378,5 +454,19 @@ class AmplifyBackend extends AmplifyBackendClient_1.AmplifyBackendClient {
|
|
|
378
454
|
return this.send(command, optionsOrCb);
|
|
379
455
|
}
|
|
380
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
|
+
}
|
|
381
471
|
}
|
|
382
472
|
exports.AmplifyBackend = AmplifyBackend;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateBackendStorageCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateBackendStorageCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyBackendClient";
|
|
18
|
+
const commandName = "CreateBackendStorageCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1CreateBackendStorageCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1CreateBackendStorageCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateBackendStorageCommand = CreateBackendStorageCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteBackendStorageCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteBackendStorageCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyBackendClient";
|
|
18
|
+
const commandName = "DeleteBackendStorageCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DeleteBackendStorageCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DeleteBackendStorageCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteBackendStorageCommand = DeleteBackendStorageCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetBackendStorageCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetBackendStorageCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyBackendClient";
|
|
18
|
+
const commandName = "GetBackendStorageCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1GetBackendStorageCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1GetBackendStorageCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetBackendStorageCommand = GetBackendStorageCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImportBackendStorageCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ImportBackendStorageCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyBackendClient";
|
|
18
|
+
const commandName = "ImportBackendStorageCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ImportBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ImportBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ImportBackendStorageCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ImportBackendStorageCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ImportBackendStorageCommand = ImportBackendStorageCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListS3BucketsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListS3BucketsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyBackendClient";
|
|
18
|
+
const commandName = "ListS3BucketsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListS3BucketsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListS3BucketsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListS3BucketsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListS3BucketsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListS3BucketsCommand = ListS3BucketsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateBackendStorageCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateBackendStorageCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyBackendClient";
|
|
18
|
+
const commandName = "UpdateBackendStorageCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateBackendStorageRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateBackendStorageResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateBackendStorageCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateBackendStorageCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateBackendStorageCommand = UpdateBackendStorageCommand;
|
|
@@ -6,10 +6,12 @@ tslib_1.__exportStar(require("./CreateBackendAPICommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./CreateBackendAuthCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./CreateBackendCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./CreateBackendConfigCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./CreateBackendStorageCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./CreateTokenCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteBackendAPICommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeleteBackendAuthCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./DeleteBackendCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DeleteBackendStorageCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DeleteTokenCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./GenerateBackendAPIModelsCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./GetBackendAPICommand"), exports);
|
|
@@ -17,12 +19,16 @@ tslib_1.__exportStar(require("./GetBackendAPIModelsCommand"), exports);
|
|
|
17
19
|
tslib_1.__exportStar(require("./GetBackendAuthCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./GetBackendCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./GetBackendJobCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetBackendStorageCommand"), exports);
|
|
20
23
|
tslib_1.__exportStar(require("./GetTokenCommand"), exports);
|
|
21
24
|
tslib_1.__exportStar(require("./ImportBackendAuthCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./ImportBackendStorageCommand"), exports);
|
|
22
26
|
tslib_1.__exportStar(require("./ListBackendJobsCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListS3BucketsCommand"), exports);
|
|
23
28
|
tslib_1.__exportStar(require("./RemoveAllBackendsCommand"), exports);
|
|
24
29
|
tslib_1.__exportStar(require("./RemoveBackendConfigCommand"), exports);
|
|
25
30
|
tslib_1.__exportStar(require("./UpdateBackendAPICommand"), exports);
|
|
26
31
|
tslib_1.__exportStar(require("./UpdateBackendAuthCommand"), exports);
|
|
27
32
|
tslib_1.__exportStar(require("./UpdateBackendConfigCommand"), exports);
|
|
28
33
|
tslib_1.__exportStar(require("./UpdateBackendJobCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./UpdateBackendStorageCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -29,27 +29,96 @@ const partitionHash = {
|
|
|
29
29
|
"us-west-2",
|
|
30
30
|
],
|
|
31
31
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
32
|
-
|
|
32
|
+
variants: [
|
|
33
|
+
{
|
|
34
|
+
hostname: "amplifybackend.{region}.amazonaws.com",
|
|
35
|
+
tags: [],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
hostname: "amplifybackend-fips.{region}.amazonaws.com",
|
|
39
|
+
tags: ["fips"],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
hostname: "amplifybackend-fips.{region}.api.aws",
|
|
43
|
+
tags: ["dualstack", "fips"],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
hostname: "amplifybackend.{region}.api.aws",
|
|
47
|
+
tags: ["dualstack"],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
33
50
|
},
|
|
34
51
|
"aws-cn": {
|
|
35
52
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
36
53
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
37
|
-
|
|
54
|
+
variants: [
|
|
55
|
+
{
|
|
56
|
+
hostname: "amplifybackend.{region}.amazonaws.com.cn",
|
|
57
|
+
tags: [],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
hostname: "amplifybackend-fips.{region}.amazonaws.com.cn",
|
|
61
|
+
tags: ["fips"],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
hostname: "amplifybackend-fips.{region}.api.amazonwebservices.com.cn",
|
|
65
|
+
tags: ["dualstack", "fips"],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
hostname: "amplifybackend.{region}.api.amazonwebservices.com.cn",
|
|
69
|
+
tags: ["dualstack"],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
38
72
|
},
|
|
39
73
|
"aws-iso": {
|
|
40
74
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
41
75
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
42
|
-
|
|
76
|
+
variants: [
|
|
77
|
+
{
|
|
78
|
+
hostname: "amplifybackend.{region}.c2s.ic.gov",
|
|
79
|
+
tags: [],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
hostname: "amplifybackend-fips.{region}.c2s.ic.gov",
|
|
83
|
+
tags: ["fips"],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
43
86
|
},
|
|
44
87
|
"aws-iso-b": {
|
|
45
88
|
regions: ["us-isob-east-1"],
|
|
46
89
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
47
|
-
|
|
90
|
+
variants: [
|
|
91
|
+
{
|
|
92
|
+
hostname: "amplifybackend.{region}.sc2s.sgov.gov",
|
|
93
|
+
tags: [],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
hostname: "amplifybackend-fips.{region}.sc2s.sgov.gov",
|
|
97
|
+
tags: ["fips"],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
48
100
|
},
|
|
49
101
|
"aws-us-gov": {
|
|
50
102
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
51
103
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
52
|
-
|
|
104
|
+
variants: [
|
|
105
|
+
{
|
|
106
|
+
hostname: "amplifybackend.{region}.amazonaws.com",
|
|
107
|
+
tags: [],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
hostname: "amplifybackend-fips.{region}.amazonaws.com",
|
|
111
|
+
tags: ["fips"],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
hostname: "amplifybackend-fips.{region}.api.aws",
|
|
115
|
+
tags: ["dualstack", "fips"],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
hostname: "amplifybackend.{region}.api.aws",
|
|
119
|
+
tags: ["dualstack"],
|
|
120
|
+
},
|
|
121
|
+
],
|
|
53
122
|
},
|
|
54
123
|
};
|
|
55
124
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|