@aws-sdk/client-amplifybackend 3.40.0 → 3.45.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/AmplifyBackend.js +90 -0
  3. package/dist-cjs/commands/CreateBackendStorageCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteBackendStorageCommand.js +36 -0
  5. package/dist-cjs/commands/GetBackendStorageCommand.js +36 -0
  6. package/dist-cjs/commands/ImportBackendStorageCommand.js +36 -0
  7. package/dist-cjs/commands/ListS3BucketsCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateBackendStorageCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoints.js +9 -0
  11. package/dist-cjs/models/models_0.js +121 -2
  12. package/dist-cjs/protocols/Aws_restJson1.js +937 -101
  13. package/dist-es/AmplifyBackend.js +90 -0
  14. package/dist-es/commands/CreateBackendStorageCommand.js +39 -0
  15. package/dist-es/commands/DeleteBackendStorageCommand.js +39 -0
  16. package/dist-es/commands/GetBackendStorageCommand.js +39 -0
  17. package/dist-es/commands/ImportBackendStorageCommand.js +39 -0
  18. package/dist-es/commands/ListS3BucketsCommand.js +39 -0
  19. package/dist-es/commands/UpdateBackendStorageCommand.js +39 -0
  20. package/dist-es/commands/index.js +6 -0
  21. package/dist-es/endpoints.js +9 -0
  22. package/dist-es/models/models_0.js +84 -0
  23. package/dist-es/protocols/Aws_restJson1.js +1008 -86
  24. package/dist-types/AmplifyBackend.d.ts +42 -0
  25. package/dist-types/AmplifyBackendClient.d.ts +8 -2
  26. package/dist-types/commands/CloneBackendCommand.d.ts +1 -1
  27. package/dist-types/commands/CreateBackendAPICommand.d.ts +1 -1
  28. package/dist-types/commands/CreateBackendAuthCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateBackendCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateBackendConfigCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateBackendStorageCommand.d.ts +35 -0
  32. package/dist-types/commands/CreateTokenCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteBackendAPICommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteBackendAuthCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteBackendCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteBackendStorageCommand.d.ts +35 -0
  37. package/dist-types/commands/DeleteTokenCommand.d.ts +1 -1
  38. package/dist-types/commands/GenerateBackendAPIModelsCommand.d.ts +1 -1
  39. package/dist-types/commands/GetBackendAPICommand.d.ts +1 -1
  40. package/dist-types/commands/GetBackendAPIModelsCommand.d.ts +1 -1
  41. package/dist-types/commands/GetBackendAuthCommand.d.ts +1 -1
  42. package/dist-types/commands/GetBackendCommand.d.ts +1 -1
  43. package/dist-types/commands/GetBackendJobCommand.d.ts +1 -1
  44. package/dist-types/commands/GetBackendStorageCommand.d.ts +35 -0
  45. package/dist-types/commands/GetTokenCommand.d.ts +1 -1
  46. package/dist-types/commands/ImportBackendAuthCommand.d.ts +1 -1
  47. package/dist-types/commands/ImportBackendStorageCommand.d.ts +35 -0
  48. package/dist-types/commands/ListBackendJobsCommand.d.ts +1 -1
  49. package/dist-types/commands/ListS3BucketsCommand.d.ts +35 -0
  50. package/dist-types/commands/RemoveAllBackendsCommand.d.ts +1 -1
  51. package/dist-types/commands/RemoveBackendConfigCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateBackendAPICommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateBackendAuthCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateBackendConfigCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateBackendJobCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateBackendStorageCommand.d.ts +35 -0
  57. package/dist-types/commands/index.d.ts +6 -0
  58. package/dist-types/models/models_0.d.ts +403 -1
  59. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  60. package/dist-types/ts3.4/AmplifyBackend.d.ts +30 -0
  61. package/dist-types/ts3.4/AmplifyBackendClient.d.ts +8 -2
  62. package/dist-types/ts3.4/commands/CreateBackendStorageCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/DeleteBackendStorageCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/GetBackendStorageCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/ImportBackendStorageCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ListS3BucketsCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/UpdateBackendStorageCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +236 -0
  70. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  71. package/package.json +6 -6
@@ -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";
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -76,6 +77,10 @@ var partitionHash = {
76
77
  hostname: "amplifybackend.{region}.c2s.ic.gov",
77
78
  tags: [],
78
79
  },
80
+ {
81
+ hostname: "amplifybackend-fips.{region}.c2s.ic.gov",
82
+ tags: ["fips"],
83
+ },
79
84
  ],
80
85
  },
81
86
  "aws-iso-b": {
@@ -86,6 +91,10 @@ var partitionHash = {
86
91
  hostname: "amplifybackend.{region}.sc2s.sgov.gov",
87
92
  tags: [],
88
93
  },
94
+ {
95
+ hostname: "amplifybackend-fips.{region}.sc2s.sgov.gov",
96
+ tags: ["fips"],
97
+ },
89
98
  ],
90
99
  },
91
100
  "aws-us-gov": {
@@ -213,6 +213,38 @@ export var CreateBackendConfigResponse;
213
213
  (function (CreateBackendConfigResponse) {
214
214
  CreateBackendConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
215
  })(CreateBackendConfigResponse || (CreateBackendConfigResponse = {}));
216
+ export var AuthenticatedElement;
217
+ (function (AuthenticatedElement) {
218
+ AuthenticatedElement["CREATE_AND_UPDATE"] = "CREATE_AND_UPDATE";
219
+ AuthenticatedElement["DELETE"] = "DELETE";
220
+ AuthenticatedElement["READ"] = "READ";
221
+ })(AuthenticatedElement || (AuthenticatedElement = {}));
222
+ export var UnAuthenticatedElement;
223
+ (function (UnAuthenticatedElement) {
224
+ UnAuthenticatedElement["CREATE_AND_UPDATE"] = "CREATE_AND_UPDATE";
225
+ UnAuthenticatedElement["DELETE"] = "DELETE";
226
+ UnAuthenticatedElement["READ"] = "READ";
227
+ })(UnAuthenticatedElement || (UnAuthenticatedElement = {}));
228
+ export var BackendStoragePermissions;
229
+ (function (BackendStoragePermissions) {
230
+ BackendStoragePermissions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
+ })(BackendStoragePermissions || (BackendStoragePermissions = {}));
232
+ export var ServiceName;
233
+ (function (ServiceName) {
234
+ ServiceName["S3"] = "S3";
235
+ })(ServiceName || (ServiceName = {}));
236
+ export var CreateBackendStorageResourceConfig;
237
+ (function (CreateBackendStorageResourceConfig) {
238
+ CreateBackendStorageResourceConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
239
+ })(CreateBackendStorageResourceConfig || (CreateBackendStorageResourceConfig = {}));
240
+ export var CreateBackendStorageRequest;
241
+ (function (CreateBackendStorageRequest) {
242
+ CreateBackendStorageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
+ })(CreateBackendStorageRequest || (CreateBackendStorageRequest = {}));
244
+ export var CreateBackendStorageResponse;
245
+ (function (CreateBackendStorageResponse) {
246
+ CreateBackendStorageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
+ })(CreateBackendStorageResponse || (CreateBackendStorageResponse = {}));
216
248
  export var CreateTokenRequest;
217
249
  (function (CreateTokenRequest) {
218
250
  CreateTokenRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -245,6 +277,14 @@ export var DeleteBackendAuthResponse;
245
277
  (function (DeleteBackendAuthResponse) {
246
278
  DeleteBackendAuthResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
279
  })(DeleteBackendAuthResponse || (DeleteBackendAuthResponse = {}));
280
+ export var DeleteBackendStorageRequest;
281
+ (function (DeleteBackendStorageRequest) {
282
+ DeleteBackendStorageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
+ })(DeleteBackendStorageRequest || (DeleteBackendStorageRequest = {}));
284
+ export var DeleteBackendStorageResponse;
285
+ (function (DeleteBackendStorageResponse) {
286
+ DeleteBackendStorageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
+ })(DeleteBackendStorageResponse || (DeleteBackendStorageResponse = {}));
248
288
  export var DeleteTokenRequest;
249
289
  (function (DeleteTokenRequest) {
250
290
  DeleteTokenRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -306,6 +346,18 @@ export var GetBackendJobResponse;
306
346
  (function (GetBackendJobResponse) {
307
347
  GetBackendJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
308
348
  })(GetBackendJobResponse || (GetBackendJobResponse = {}));
349
+ export var GetBackendStorageRequest;
350
+ (function (GetBackendStorageRequest) {
351
+ GetBackendStorageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
352
+ })(GetBackendStorageRequest || (GetBackendStorageRequest = {}));
353
+ export var GetBackendStorageResourceConfig;
354
+ (function (GetBackendStorageResourceConfig) {
355
+ GetBackendStorageResourceConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
356
+ })(GetBackendStorageResourceConfig || (GetBackendStorageResourceConfig = {}));
357
+ export var GetBackendStorageResponse;
358
+ (function (GetBackendStorageResponse) {
359
+ GetBackendStorageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
360
+ })(GetBackendStorageResponse || (GetBackendStorageResponse = {}));
309
361
  export var GetTokenRequest;
310
362
  (function (GetTokenRequest) {
311
363
  GetTokenRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -322,6 +374,14 @@ export var ImportBackendAuthResponse;
322
374
  (function (ImportBackendAuthResponse) {
323
375
  ImportBackendAuthResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
324
376
  })(ImportBackendAuthResponse || (ImportBackendAuthResponse = {}));
377
+ export var ImportBackendStorageRequest;
378
+ (function (ImportBackendStorageRequest) {
379
+ ImportBackendStorageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
380
+ })(ImportBackendStorageRequest || (ImportBackendStorageRequest = {}));
381
+ export var ImportBackendStorageResponse;
382
+ (function (ImportBackendStorageResponse) {
383
+ ImportBackendStorageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
+ })(ImportBackendStorageResponse || (ImportBackendStorageResponse = {}));
325
385
  export var ListBackendJobsRequest;
326
386
  (function (ListBackendJobsRequest) {
327
387
  ListBackendJobsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -334,6 +394,18 @@ export var ListBackendJobsResponse;
334
394
  (function (ListBackendJobsResponse) {
335
395
  ListBackendJobsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
336
396
  })(ListBackendJobsResponse || (ListBackendJobsResponse = {}));
397
+ export var ListS3BucketsRequest;
398
+ (function (ListS3BucketsRequest) {
399
+ ListS3BucketsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
400
+ })(ListS3BucketsRequest || (ListS3BucketsRequest = {}));
401
+ export var S3BucketInfo;
402
+ (function (S3BucketInfo) {
403
+ S3BucketInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
404
+ })(S3BucketInfo || (S3BucketInfo = {}));
405
+ export var ListS3BucketsResponse;
406
+ (function (ListS3BucketsResponse) {
407
+ ListS3BucketsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
408
+ })(ListS3BucketsResponse || (ListS3BucketsResponse = {}));
337
409
  export var RemoveAllBackendsRequest;
338
410
  (function (RemoveAllBackendsRequest) {
339
411
  RemoveAllBackendsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -414,3 +486,15 @@ export var UpdateBackendJobResponse;
414
486
  (function (UpdateBackendJobResponse) {
415
487
  UpdateBackendJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
416
488
  })(UpdateBackendJobResponse || (UpdateBackendJobResponse = {}));
489
+ export var UpdateBackendStorageResourceConfig;
490
+ (function (UpdateBackendStorageResourceConfig) {
491
+ UpdateBackendStorageResourceConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
492
+ })(UpdateBackendStorageResourceConfig || (UpdateBackendStorageResourceConfig = {}));
493
+ export var UpdateBackendStorageRequest;
494
+ (function (UpdateBackendStorageRequest) {
495
+ UpdateBackendStorageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
496
+ })(UpdateBackendStorageRequest || (UpdateBackendStorageRequest = {}));
497
+ export var UpdateBackendStorageResponse;
498
+ (function (UpdateBackendStorageResponse) {
499
+ UpdateBackendStorageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
500
+ })(UpdateBackendStorageResponse || (UpdateBackendStorageResponse = {}));