@aws-sdk/client-swf 3.185.0 → 3.188.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 (56) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/SWF.js +150 -157
  3. package/dist-es/SWFClient.js +22 -28
  4. package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +21 -28
  5. package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +21 -28
  6. package/dist-es/commands/CountPendingActivityTasksCommand.js +21 -28
  7. package/dist-es/commands/CountPendingDecisionTasksCommand.js +21 -28
  8. package/dist-es/commands/DeprecateActivityTypeCommand.js +22 -29
  9. package/dist-es/commands/DeprecateDomainCommand.js +22 -29
  10. package/dist-es/commands/DeprecateWorkflowTypeCommand.js +22 -29
  11. package/dist-es/commands/DescribeActivityTypeCommand.js +21 -28
  12. package/dist-es/commands/DescribeDomainCommand.js +21 -28
  13. package/dist-es/commands/DescribeWorkflowExecutionCommand.js +21 -28
  14. package/dist-es/commands/DescribeWorkflowTypeCommand.js +21 -28
  15. package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +21 -28
  16. package/dist-es/commands/ListActivityTypesCommand.js +21 -28
  17. package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +21 -28
  18. package/dist-es/commands/ListDomainsCommand.js +21 -28
  19. package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +21 -28
  20. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  21. package/dist-es/commands/ListWorkflowTypesCommand.js +21 -28
  22. package/dist-es/commands/PollForActivityTaskCommand.js +21 -28
  23. package/dist-es/commands/PollForDecisionTaskCommand.js +21 -28
  24. package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +21 -28
  25. package/dist-es/commands/RegisterActivityTypeCommand.js +22 -29
  26. package/dist-es/commands/RegisterDomainCommand.js +22 -29
  27. package/dist-es/commands/RegisterWorkflowTypeCommand.js +22 -29
  28. package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +22 -29
  29. package/dist-es/commands/RespondActivityTaskCanceledCommand.js +22 -29
  30. package/dist-es/commands/RespondActivityTaskCompletedCommand.js +22 -29
  31. package/dist-es/commands/RespondActivityTaskFailedCommand.js +22 -29
  32. package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +22 -29
  33. package/dist-es/commands/SignalWorkflowExecutionCommand.js +22 -29
  34. package/dist-es/commands/StartWorkflowExecutionCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +22 -29
  36. package/dist-es/commands/TerminateWorkflowExecutionCommand.js +22 -29
  37. package/dist-es/commands/UndeprecateActivityTypeCommand.js +22 -29
  38. package/dist-es/commands/UndeprecateDomainCommand.js +22 -29
  39. package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +22 -29
  40. package/dist-es/commands/UntagResourceCommand.js +22 -29
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/SWFServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +533 -252
  44. package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +25 -68
  45. package/dist-es/pagination/ListActivityTypesPaginator.js +25 -68
  46. package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +25 -68
  47. package/dist-es/pagination/ListDomainsPaginator.js +25 -68
  48. package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +25 -68
  49. package/dist-es/pagination/ListWorkflowTypesPaginator.js +25 -68
  50. package/dist-es/pagination/PollForDecisionTaskPaginator.js +25 -68
  51. package/dist-es/protocols/Aws_json1_0.js +2433 -3017
  52. package/dist-es/runtimeConfig.browser.js +26 -12
  53. package/dist-es/runtimeConfig.js +30 -12
  54. package/dist-es/runtimeConfig.native.js +8 -5
  55. package/dist-es/runtimeConfig.shared.js +8 -11
  56. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var SWFClient = (function (_super) {
13
- __extends(SWFClient, _super);
14
- function SWFClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class SWFClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- SWFClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return SWFClient;
38
- }(__Client));
39
- export { SWFClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { CountClosedWorkflowExecutionsInputFilterSensitiveLog, WorkflowExecutionCountFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0CountClosedWorkflowExecutionsCommand, serializeAws_json1_0CountClosedWorkflowExecutionsCommand, } from "../protocols/Aws_json1_0";
6
- var CountClosedWorkflowExecutionsCommand = (function (_super) {
7
- __extends(CountClosedWorkflowExecutionsCommand, _super);
8
- function CountClosedWorkflowExecutionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CountClosedWorkflowExecutionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CountClosedWorkflowExecutionsCommand.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 = "SWFClient";
18
- var commandName = "CountClosedWorkflowExecutionsCommand";
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 = "SWFClient";
15
+ const commandName = "CountClosedWorkflowExecutionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CountClosedWorkflowExecutionsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: WorkflowExecutionCountFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CountClosedWorkflowExecutionsCommand.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_json1_0CountClosedWorkflowExecutionsCommand(input, context);
33
- };
34
- CountClosedWorkflowExecutionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0CountClosedWorkflowExecutionsCommand(output, context);
36
- };
37
- return CountClosedWorkflowExecutionsCommand;
38
- }($Command));
39
- export { CountClosedWorkflowExecutionsCommand };
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 { CountOpenWorkflowExecutionsInputFilterSensitiveLog, WorkflowExecutionCountFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0CountOpenWorkflowExecutionsCommand, serializeAws_json1_0CountOpenWorkflowExecutionsCommand, } from "../protocols/Aws_json1_0";
6
- var CountOpenWorkflowExecutionsCommand = (function (_super) {
7
- __extends(CountOpenWorkflowExecutionsCommand, _super);
8
- function CountOpenWorkflowExecutionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CountOpenWorkflowExecutionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CountOpenWorkflowExecutionsCommand.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 = "SWFClient";
18
- var commandName = "CountOpenWorkflowExecutionsCommand";
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 = "SWFClient";
15
+ const commandName = "CountOpenWorkflowExecutionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CountOpenWorkflowExecutionsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: WorkflowExecutionCountFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CountOpenWorkflowExecutionsCommand.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_json1_0CountOpenWorkflowExecutionsCommand(input, context);
33
- };
34
- CountOpenWorkflowExecutionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0CountOpenWorkflowExecutionsCommand(output, context);
36
- };
37
- return CountOpenWorkflowExecutionsCommand;
38
- }($Command));
39
- export { CountOpenWorkflowExecutionsCommand };
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 { CountPendingActivityTasksInputFilterSensitiveLog, PendingTaskCountFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0CountPendingActivityTasksCommand, serializeAws_json1_0CountPendingActivityTasksCommand, } from "../protocols/Aws_json1_0";
6
- var CountPendingActivityTasksCommand = (function (_super) {
7
- __extends(CountPendingActivityTasksCommand, _super);
8
- function CountPendingActivityTasksCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CountPendingActivityTasksCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CountPendingActivityTasksCommand.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 = "SWFClient";
18
- var commandName = "CountPendingActivityTasksCommand";
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 = "SWFClient";
15
+ const commandName = "CountPendingActivityTasksCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CountPendingActivityTasksInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PendingTaskCountFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CountPendingActivityTasksCommand.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_json1_0CountPendingActivityTasksCommand(input, context);
33
- };
34
- CountPendingActivityTasksCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0CountPendingActivityTasksCommand(output, context);
36
- };
37
- return CountPendingActivityTasksCommand;
38
- }($Command));
39
- export { CountPendingActivityTasksCommand };
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 { CountPendingDecisionTasksInputFilterSensitiveLog, PendingTaskCountFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0CountPendingDecisionTasksCommand, serializeAws_json1_0CountPendingDecisionTasksCommand, } from "../protocols/Aws_json1_0";
6
- var CountPendingDecisionTasksCommand = (function (_super) {
7
- __extends(CountPendingDecisionTasksCommand, _super);
8
- function CountPendingDecisionTasksCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CountPendingDecisionTasksCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CountPendingDecisionTasksCommand.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 = "SWFClient";
18
- var commandName = "CountPendingDecisionTasksCommand";
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 = "SWFClient";
15
+ const commandName = "CountPendingDecisionTasksCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CountPendingDecisionTasksInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PendingTaskCountFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CountPendingDecisionTasksCommand.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_json1_0CountPendingDecisionTasksCommand(input, context);
33
- };
34
- CountPendingDecisionTasksCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0CountPendingDecisionTasksCommand(output, context);
36
- };
37
- return CountPendingDecisionTasksCommand;
38
- }($Command));
39
- export { CountPendingDecisionTasksCommand };
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 { DeprecateActivityTypeInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DeprecateActivityTypeCommand, serializeAws_json1_0DeprecateActivityTypeCommand, } from "../protocols/Aws_json1_0";
6
- var DeprecateActivityTypeCommand = (function (_super) {
7
- __extends(DeprecateActivityTypeCommand, _super);
8
- function DeprecateActivityTypeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeprecateActivityTypeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeprecateActivityTypeCommand.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 = "SWFClient";
18
- var commandName = "DeprecateActivityTypeCommand";
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 = "SWFClient";
15
+ const commandName = "DeprecateActivityTypeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeprecateActivityTypeInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeprecateActivityTypeCommand.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_json1_0DeprecateActivityTypeCommand(input, context);
33
- };
34
- DeprecateActivityTypeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DeprecateActivityTypeCommand(output, context);
36
- };
37
- return DeprecateActivityTypeCommand;
38
- }($Command));
39
- export { DeprecateActivityTypeCommand };
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 { DeprecateDomainInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DeprecateDomainCommand, serializeAws_json1_0DeprecateDomainCommand, } from "../protocols/Aws_json1_0";
6
- var DeprecateDomainCommand = (function (_super) {
7
- __extends(DeprecateDomainCommand, _super);
8
- function DeprecateDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeprecateDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeprecateDomainCommand.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 = "SWFClient";
18
- var commandName = "DeprecateDomainCommand";
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 = "SWFClient";
15
+ const commandName = "DeprecateDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeprecateDomainInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeprecateDomainCommand.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_json1_0DeprecateDomainCommand(input, context);
33
- };
34
- DeprecateDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DeprecateDomainCommand(output, context);
36
- };
37
- return DeprecateDomainCommand;
38
- }($Command));
39
- export { DeprecateDomainCommand };
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 { DeprecateWorkflowTypeInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DeprecateWorkflowTypeCommand, serializeAws_json1_0DeprecateWorkflowTypeCommand, } from "../protocols/Aws_json1_0";
6
- var DeprecateWorkflowTypeCommand = (function (_super) {
7
- __extends(DeprecateWorkflowTypeCommand, _super);
8
- function DeprecateWorkflowTypeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeprecateWorkflowTypeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeprecateWorkflowTypeCommand.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 = "SWFClient";
18
- var commandName = "DeprecateWorkflowTypeCommand";
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 = "SWFClient";
15
+ const commandName = "DeprecateWorkflowTypeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeprecateWorkflowTypeInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeprecateWorkflowTypeCommand.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_json1_0DeprecateWorkflowTypeCommand(input, context);
33
- };
34
- DeprecateWorkflowTypeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DeprecateWorkflowTypeCommand(output, context);
36
- };
37
- return DeprecateWorkflowTypeCommand;
38
- }($Command));
39
- export { DeprecateWorkflowTypeCommand };
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 { ActivityTypeDetailFilterSensitiveLog, DescribeActivityTypeInputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DescribeActivityTypeCommand, serializeAws_json1_0DescribeActivityTypeCommand, } from "../protocols/Aws_json1_0";
6
- var DescribeActivityTypeCommand = (function (_super) {
7
- __extends(DescribeActivityTypeCommand, _super);
8
- function DescribeActivityTypeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeActivityTypeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeActivityTypeCommand.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 = "SWFClient";
18
- var commandName = "DescribeActivityTypeCommand";
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 = "SWFClient";
15
+ const commandName = "DescribeActivityTypeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeActivityTypeInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ActivityTypeDetailFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeActivityTypeCommand.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_json1_0DescribeActivityTypeCommand(input, context);
33
- };
34
- DescribeActivityTypeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DescribeActivityTypeCommand(output, context);
36
- };
37
- return DescribeActivityTypeCommand;
38
- }($Command));
39
- export { DescribeActivityTypeCommand };
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 { DescribeDomainInputFilterSensitiveLog, DomainDetailFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DescribeDomainCommand, serializeAws_json1_0DescribeDomainCommand, } from "../protocols/Aws_json1_0";
6
- var DescribeDomainCommand = (function (_super) {
7
- __extends(DescribeDomainCommand, _super);
8
- function DescribeDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDomainCommand.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 = "SWFClient";
18
- var commandName = "DescribeDomainCommand";
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 = "SWFClient";
15
+ const commandName = "DescribeDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDomainInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DomainDetailFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDomainCommand.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_json1_0DescribeDomainCommand(input, context);
33
- };
34
- DescribeDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DescribeDomainCommand(output, context);
36
- };
37
- return DescribeDomainCommand;
38
- }($Command));
39
- export { DescribeDomainCommand };
31
+ }
32
+ }