@aws-sdk/client-amplify 3.181.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 (49) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Amplify.js +150 -157
  3. package/dist-es/AmplifyClient.js +22 -28
  4. package/dist-es/commands/CreateAppCommand.js +21 -28
  5. package/dist-es/commands/CreateBackendEnvironmentCommand.js +21 -28
  6. package/dist-es/commands/CreateBranchCommand.js +21 -28
  7. package/dist-es/commands/CreateDeploymentCommand.js +21 -28
  8. package/dist-es/commands/CreateDomainAssociationCommand.js +21 -28
  9. package/dist-es/commands/CreateWebhookCommand.js +21 -28
  10. package/dist-es/commands/DeleteAppCommand.js +21 -28
  11. package/dist-es/commands/DeleteBackendEnvironmentCommand.js +21 -28
  12. package/dist-es/commands/DeleteBranchCommand.js +21 -28
  13. package/dist-es/commands/DeleteDomainAssociationCommand.js +21 -28
  14. package/dist-es/commands/DeleteJobCommand.js +21 -28
  15. package/dist-es/commands/DeleteWebhookCommand.js +21 -28
  16. package/dist-es/commands/GenerateAccessLogsCommand.js +21 -28
  17. package/dist-es/commands/GetAppCommand.js +21 -28
  18. package/dist-es/commands/GetArtifactUrlCommand.js +21 -28
  19. package/dist-es/commands/GetBackendEnvironmentCommand.js +21 -28
  20. package/dist-es/commands/GetBranchCommand.js +21 -28
  21. package/dist-es/commands/GetDomainAssociationCommand.js +21 -28
  22. package/dist-es/commands/GetJobCommand.js +21 -28
  23. package/dist-es/commands/GetWebhookCommand.js +21 -28
  24. package/dist-es/commands/ListAppsCommand.js +21 -28
  25. package/dist-es/commands/ListArtifactsCommand.js +21 -28
  26. package/dist-es/commands/ListBackendEnvironmentsCommand.js +21 -28
  27. package/dist-es/commands/ListBranchesCommand.js +21 -28
  28. package/dist-es/commands/ListDomainAssociationsCommand.js +21 -28
  29. package/dist-es/commands/ListJobsCommand.js +21 -28
  30. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  31. package/dist-es/commands/ListWebhooksCommand.js +21 -28
  32. package/dist-es/commands/StartDeploymentCommand.js +21 -28
  33. package/dist-es/commands/StartJobCommand.js +21 -28
  34. package/dist-es/commands/StopJobCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateAppCommand.js +21 -28
  38. package/dist-es/commands/UpdateBranchCommand.js +21 -28
  39. package/dist-es/commands/UpdateDomainAssociationCommand.js +21 -28
  40. package/dist-es/commands/UpdateWebhookCommand.js +21 -28
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/AmplifyServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +379 -173
  44. package/dist-es/protocols/Aws_restJson1.js +2648 -3725
  45. package/dist-es/runtimeConfig.browser.js +26 -12
  46. package/dist-es/runtimeConfig.js +30 -12
  47. package/dist-es/runtimeConfig.native.js +8 -5
  48. package/dist-es/runtimeConfig.shared.js +8 -11
  49. 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 { GetWebhookRequestFilterSensitiveLog, GetWebhookResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetWebhookCommand, serializeAws_restJson1GetWebhookCommand, } from "../protocols/Aws_restJson1";
6
- var GetWebhookCommand = (function (_super) {
7
- __extends(GetWebhookCommand, _super);
8
- function GetWebhookCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetWebhookCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetWebhookCommand.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 = "AmplifyClient";
18
- var commandName = "GetWebhookCommand";
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 = "AmplifyClient";
15
+ const commandName = "GetWebhookCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetWebhookRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetWebhookResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetWebhookCommand.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_restJson1GetWebhookCommand(input, context);
33
- };
34
- GetWebhookCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetWebhookCommand(output, context);
36
- };
37
- return GetWebhookCommand;
38
- }($Command));
39
- export { GetWebhookCommand };
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 { ListAppsRequestFilterSensitiveLog, ListAppsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAppsCommand, serializeAws_restJson1ListAppsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAppsCommand = (function (_super) {
7
- __extends(ListAppsCommand, _super);
8
- function ListAppsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAppsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAppsCommand.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 = "AmplifyClient";
18
- var commandName = "ListAppsCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListAppsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAppsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAppsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAppsCommand.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_restJson1ListAppsCommand(input, context);
33
- };
34
- ListAppsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAppsCommand(output, context);
36
- };
37
- return ListAppsCommand;
38
- }($Command));
39
- export { ListAppsCommand };
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 { ListArtifactsRequestFilterSensitiveLog, ListArtifactsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListArtifactsCommand, serializeAws_restJson1ListArtifactsCommand, } from "../protocols/Aws_restJson1";
6
- var ListArtifactsCommand = (function (_super) {
7
- __extends(ListArtifactsCommand, _super);
8
- function ListArtifactsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListArtifactsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListArtifactsCommand.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 = "AmplifyClient";
18
- var commandName = "ListArtifactsCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListArtifactsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListArtifactsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListArtifactsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListArtifactsCommand.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_restJson1ListArtifactsCommand(input, context);
33
- };
34
- ListArtifactsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListArtifactsCommand(output, context);
36
- };
37
- return ListArtifactsCommand;
38
- }($Command));
39
- export { ListArtifactsCommand };
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 { ListBackendEnvironmentsRequestFilterSensitiveLog, ListBackendEnvironmentsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListBackendEnvironmentsCommand, serializeAws_restJson1ListBackendEnvironmentsCommand, } from "../protocols/Aws_restJson1";
6
- var ListBackendEnvironmentsCommand = (function (_super) {
7
- __extends(ListBackendEnvironmentsCommand, _super);
8
- function ListBackendEnvironmentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBackendEnvironmentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBackendEnvironmentsCommand.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 = "AmplifyClient";
18
- var commandName = "ListBackendEnvironmentsCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListBackendEnvironmentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBackendEnvironmentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBackendEnvironmentsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBackendEnvironmentsCommand.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_restJson1ListBackendEnvironmentsCommand(input, context);
33
- };
34
- ListBackendEnvironmentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListBackendEnvironmentsCommand(output, context);
36
- };
37
- return ListBackendEnvironmentsCommand;
38
- }($Command));
39
- export { ListBackendEnvironmentsCommand };
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 { ListBranchesRequestFilterSensitiveLog, ListBranchesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListBranchesCommand, serializeAws_restJson1ListBranchesCommand, } from "../protocols/Aws_restJson1";
6
- var ListBranchesCommand = (function (_super) {
7
- __extends(ListBranchesCommand, _super);
8
- function ListBranchesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBranchesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBranchesCommand.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 = "AmplifyClient";
18
- var commandName = "ListBranchesCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListBranchesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBranchesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBranchesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBranchesCommand.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_restJson1ListBranchesCommand(input, context);
33
- };
34
- ListBranchesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListBranchesCommand(output, context);
36
- };
37
- return ListBranchesCommand;
38
- }($Command));
39
- export { ListBranchesCommand };
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 { ListDomainAssociationsRequestFilterSensitiveLog, ListDomainAssociationsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListDomainAssociationsCommand, serializeAws_restJson1ListDomainAssociationsCommand, } from "../protocols/Aws_restJson1";
6
- var ListDomainAssociationsCommand = (function (_super) {
7
- __extends(ListDomainAssociationsCommand, _super);
8
- function ListDomainAssociationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDomainAssociationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDomainAssociationsCommand.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 = "AmplifyClient";
18
- var commandName = "ListDomainAssociationsCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListDomainAssociationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDomainAssociationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDomainAssociationsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDomainAssociationsCommand.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_restJson1ListDomainAssociationsCommand(input, context);
33
- };
34
- ListDomainAssociationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListDomainAssociationsCommand(output, context);
36
- };
37
- return ListDomainAssociationsCommand;
38
- }($Command));
39
- export { ListDomainAssociationsCommand };
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 { ListJobsRequestFilterSensitiveLog, ListJobsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListJobsCommand, serializeAws_restJson1ListJobsCommand, } from "../protocols/Aws_restJson1";
6
- var ListJobsCommand = (function (_super) {
7
- __extends(ListJobsCommand, _super);
8
- function ListJobsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListJobsCommand.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 = "AmplifyClient";
18
- var commandName = "ListJobsCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListJobsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListJobsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListJobsCommand.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_restJson1ListJobsCommand(input, context);
33
- };
34
- ListJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListJobsCommand(output, context);
36
- };
37
- return ListJobsCommand;
38
- }($Command));
39
- export { ListJobsCommand };
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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "AmplifyClient";
18
- var commandName = "ListTagsForResourceCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_restJson1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { ListWebhooksRequestFilterSensitiveLog, ListWebhooksResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListWebhooksCommand, serializeAws_restJson1ListWebhooksCommand, } from "../protocols/Aws_restJson1";
6
- var ListWebhooksCommand = (function (_super) {
7
- __extends(ListWebhooksCommand, _super);
8
- function ListWebhooksCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListWebhooksCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListWebhooksCommand.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 = "AmplifyClient";
18
- var commandName = "ListWebhooksCommand";
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 = "AmplifyClient";
15
+ const commandName = "ListWebhooksCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListWebhooksRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListWebhooksResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListWebhooksCommand.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_restJson1ListWebhooksCommand(input, context);
33
- };
34
- ListWebhooksCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListWebhooksCommand(output, context);
36
- };
37
- return ListWebhooksCommand;
38
- }($Command));
39
- export { ListWebhooksCommand };
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 { StartDeploymentRequestFilterSensitiveLog, StartDeploymentResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartDeploymentCommand, serializeAws_restJson1StartDeploymentCommand, } from "../protocols/Aws_restJson1";
6
- var StartDeploymentCommand = (function (_super) {
7
- __extends(StartDeploymentCommand, _super);
8
- function StartDeploymentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartDeploymentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartDeploymentCommand.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 = "AmplifyClient";
18
- var commandName = "StartDeploymentCommand";
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 = "AmplifyClient";
15
+ const commandName = "StartDeploymentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartDeploymentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartDeploymentResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartDeploymentCommand.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_restJson1StartDeploymentCommand(input, context);
33
- };
34
- StartDeploymentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartDeploymentCommand(output, context);
36
- };
37
- return StartDeploymentCommand;
38
- }($Command));
39
- export { StartDeploymentCommand };
31
+ }
32
+ }