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