@aws-sdk/client-amplifybackend 3.180.0 → 3.183.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 (44) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +37 -31
  3. package/dist-es/AmplifyBackend.js +126 -133
  4. package/dist-es/AmplifyBackendClient.js +22 -28
  5. package/dist-es/commands/CloneBackendCommand.js +21 -28
  6. package/dist-es/commands/CreateBackendAPICommand.js +21 -28
  7. package/dist-es/commands/CreateBackendAuthCommand.js +21 -28
  8. package/dist-es/commands/CreateBackendCommand.js +21 -28
  9. package/dist-es/commands/CreateBackendConfigCommand.js +21 -28
  10. package/dist-es/commands/CreateBackendStorageCommand.js +21 -28
  11. package/dist-es/commands/CreateTokenCommand.js +21 -28
  12. package/dist-es/commands/DeleteBackendAPICommand.js +21 -28
  13. package/dist-es/commands/DeleteBackendAuthCommand.js +21 -28
  14. package/dist-es/commands/DeleteBackendCommand.js +21 -28
  15. package/dist-es/commands/DeleteBackendStorageCommand.js +21 -28
  16. package/dist-es/commands/DeleteTokenCommand.js +21 -28
  17. package/dist-es/commands/GenerateBackendAPIModelsCommand.js +21 -28
  18. package/dist-es/commands/GetBackendAPICommand.js +21 -28
  19. package/dist-es/commands/GetBackendAPIModelsCommand.js +21 -28
  20. package/dist-es/commands/GetBackendAuthCommand.js +21 -28
  21. package/dist-es/commands/GetBackendCommand.js +21 -28
  22. package/dist-es/commands/GetBackendJobCommand.js +21 -28
  23. package/dist-es/commands/GetBackendStorageCommand.js +21 -28
  24. package/dist-es/commands/GetTokenCommand.js +21 -28
  25. package/dist-es/commands/ImportBackendAuthCommand.js +21 -28
  26. package/dist-es/commands/ImportBackendStorageCommand.js +21 -28
  27. package/dist-es/commands/ListBackendJobsCommand.js +21 -28
  28. package/dist-es/commands/ListS3BucketsCommand.js +21 -28
  29. package/dist-es/commands/RemoveAllBackendsCommand.js +21 -28
  30. package/dist-es/commands/RemoveBackendConfigCommand.js +21 -28
  31. package/dist-es/commands/UpdateBackendAPICommand.js +21 -28
  32. package/dist-es/commands/UpdateBackendAuthCommand.js +21 -28
  33. package/dist-es/commands/UpdateBackendConfigCommand.js +21 -28
  34. package/dist-es/commands/UpdateBackendJobCommand.js +21 -28
  35. package/dist-es/commands/UpdateBackendStorageCommand.js +21 -28
  36. package/dist-es/endpoints.js +8 -8
  37. package/dist-es/models/AmplifyBackendServiceException.js +5 -10
  38. package/dist-es/models/models_0.js +338 -147
  39. package/dist-es/protocols/Aws_restJson1.js +2787 -3581
  40. package/dist-es/runtimeConfig.browser.js +26 -12
  41. package/dist-es/runtimeConfig.js +30 -12
  42. package/dist-es/runtimeConfig.native.js +8 -5
  43. package/dist-es/runtimeConfig.shared.js +8 -11
  44. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ImportBackendAuthRequestFilterSensitiveLog, ImportBackendAuthResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ImportBackendAuthCommand, serializeAws_restJson1ImportBackendAuthCommand, } from "../protocols/Aws_restJson1";
6
- var ImportBackendAuthCommand = (function (_super) {
7
- __extends(ImportBackendAuthCommand, _super);
8
- function ImportBackendAuthCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ImportBackendAuthCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ImportBackendAuthCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "ImportBackendAuthCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "ImportBackendAuthCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ImportBackendAuthRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ImportBackendAuthResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ImportBackendAuthCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ImportBackendAuthCommand(input, context);
33
- };
34
- ImportBackendAuthCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ImportBackendAuthCommand(output, context);
36
- };
37
- return ImportBackendAuthCommand;
38
- }($Command));
39
- export { ImportBackendAuthCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ImportBackendStorageRequestFilterSensitiveLog, ImportBackendStorageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  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;
5
+ export class ImportBackendStorageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ImportBackendStorageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "ImportBackendStorageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ImportBackendStorageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ImportBackendStorageResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ImportBackendStorageCommand(input, context);
33
- };
34
- ImportBackendStorageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ImportBackendStorageCommand(output, context);
36
- };
37
- return ImportBackendStorageCommand;
38
- }($Command));
39
- export { ImportBackendStorageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListBackendJobsRequestFilterSensitiveLog, ListBackendJobsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListBackendJobsCommand, serializeAws_restJson1ListBackendJobsCommand, } from "../protocols/Aws_restJson1";
6
- var ListBackendJobsCommand = (function (_super) {
7
- __extends(ListBackendJobsCommand, _super);
8
- function ListBackendJobsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBackendJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBackendJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "ListBackendJobsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "ListBackendJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBackendJobsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBackendJobsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBackendJobsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListBackendJobsCommand(input, context);
33
- };
34
- ListBackendJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListBackendJobsCommand(output, context);
36
- };
37
- return ListBackendJobsCommand;
38
- }($Command));
39
- export { ListBackendJobsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListS3BucketsRequestFilterSensitiveLog, ListS3BucketsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  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;
5
+ export class ListS3BucketsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListS3BucketsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "ListS3BucketsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListS3BucketsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListS3BucketsResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListS3BucketsCommand(input, context);
33
- };
34
- ListS3BucketsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListS3BucketsCommand(output, context);
36
- };
37
- return ListS3BucketsCommand;
38
- }($Command));
39
- export { ListS3BucketsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RemoveAllBackendsRequestFilterSensitiveLog, RemoveAllBackendsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1RemoveAllBackendsCommand, serializeAws_restJson1RemoveAllBackendsCommand, } from "../protocols/Aws_restJson1";
6
- var RemoveAllBackendsCommand = (function (_super) {
7
- __extends(RemoveAllBackendsCommand, _super);
8
- function RemoveAllBackendsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RemoveAllBackendsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RemoveAllBackendsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "RemoveAllBackendsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "RemoveAllBackendsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RemoveAllBackendsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RemoveAllBackendsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RemoveAllBackendsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1RemoveAllBackendsCommand(input, context);
33
- };
34
- RemoveAllBackendsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1RemoveAllBackendsCommand(output, context);
36
- };
37
- return RemoveAllBackendsCommand;
38
- }($Command));
39
- export { RemoveAllBackendsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RemoveBackendConfigRequestFilterSensitiveLog, RemoveBackendConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1RemoveBackendConfigCommand, serializeAws_restJson1RemoveBackendConfigCommand, } from "../protocols/Aws_restJson1";
6
- var RemoveBackendConfigCommand = (function (_super) {
7
- __extends(RemoveBackendConfigCommand, _super);
8
- function RemoveBackendConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RemoveBackendConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RemoveBackendConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "RemoveBackendConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "RemoveBackendConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RemoveBackendConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RemoveBackendConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RemoveBackendConfigCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1RemoveBackendConfigCommand(input, context);
33
- };
34
- RemoveBackendConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1RemoveBackendConfigCommand(output, context);
36
- };
37
- return RemoveBackendConfigCommand;
38
- }($Command));
39
- export { RemoveBackendConfigCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateBackendAPIRequestFilterSensitiveLog, UpdateBackendAPIResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateBackendAPICommand, serializeAws_restJson1UpdateBackendAPICommand, } from "../protocols/Aws_restJson1";
6
- var UpdateBackendAPICommand = (function (_super) {
7
- __extends(UpdateBackendAPICommand, _super);
8
- function UpdateBackendAPICommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateBackendAPICommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateBackendAPICommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "UpdateBackendAPICommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "UpdateBackendAPICommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateBackendAPIRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateBackendAPIResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateBackendAPICommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateBackendAPICommand(input, context);
33
- };
34
- UpdateBackendAPICommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateBackendAPICommand(output, context);
36
- };
37
- return UpdateBackendAPICommand;
38
- }($Command));
39
- export { UpdateBackendAPICommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateBackendAuthRequestFilterSensitiveLog, UpdateBackendAuthResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateBackendAuthCommand, serializeAws_restJson1UpdateBackendAuthCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateBackendAuthCommand = (function (_super) {
7
- __extends(UpdateBackendAuthCommand, _super);
8
- function UpdateBackendAuthCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateBackendAuthCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateBackendAuthCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "UpdateBackendAuthCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "UpdateBackendAuthCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateBackendAuthRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateBackendAuthResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateBackendAuthCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateBackendAuthCommand(input, context);
33
- };
34
- UpdateBackendAuthCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateBackendAuthCommand(output, context);
36
- };
37
- return UpdateBackendAuthCommand;
38
- }($Command));
39
- export { UpdateBackendAuthCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateBackendConfigRequestFilterSensitiveLog, UpdateBackendConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateBackendConfigCommand, serializeAws_restJson1UpdateBackendConfigCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateBackendConfigCommand = (function (_super) {
7
- __extends(UpdateBackendConfigCommand, _super);
8
- function UpdateBackendConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateBackendConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateBackendConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "UpdateBackendConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "UpdateBackendConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateBackendConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateBackendConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateBackendConfigCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateBackendConfigCommand(input, context);
33
- };
34
- UpdateBackendConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateBackendConfigCommand(output, context);
36
- };
37
- return UpdateBackendConfigCommand;
38
- }($Command));
39
- export { UpdateBackendConfigCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateBackendJobRequestFilterSensitiveLog, UpdateBackendJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateBackendJobCommand, serializeAws_restJson1UpdateBackendJobCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateBackendJobCommand = (function (_super) {
7
- __extends(UpdateBackendJobCommand, _super);
8
- function UpdateBackendJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateBackendJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateBackendJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "UpdateBackendJobCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyBackendClient";
15
+ const commandName = "UpdateBackendJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateBackendJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateBackendJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateBackendJobCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateBackendJobCommand(input, context);
33
- };
34
- UpdateBackendJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateBackendJobCommand(output, context);
36
- };
37
- return UpdateBackendJobCommand;
38
- }($Command));
39
- export { UpdateBackendJobCommand };
31
+ }
32
+ }