@aws-sdk/client-swf 3.35.0 → 3.36.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.
- package/CHANGELOG.md +13 -0
- package/dist-cjs/SWF.js +0 -1
- package/dist-cjs/SWFClient.js +0 -1
- package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js +0 -1
- package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js +0 -1
- package/dist-cjs/commands/CountPendingActivityTasksCommand.js +0 -1
- package/dist-cjs/commands/CountPendingDecisionTasksCommand.js +0 -1
- package/dist-cjs/commands/DeprecateActivityTypeCommand.js +0 -1
- package/dist-cjs/commands/DeprecateDomainCommand.js +0 -1
- package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js +0 -1
- package/dist-cjs/commands/DescribeActivityTypeCommand.js +0 -1
- package/dist-cjs/commands/DescribeDomainCommand.js +0 -1
- package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js +0 -1
- package/dist-cjs/commands/DescribeWorkflowTypeCommand.js +0 -1
- package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js +0 -1
- package/dist-cjs/commands/ListActivityTypesCommand.js +0 -1
- package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js +0 -1
- package/dist-cjs/commands/ListDomainsCommand.js +0 -1
- package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListWorkflowTypesCommand.js +0 -1
- package/dist-cjs/commands/PollForActivityTaskCommand.js +0 -1
- package/dist-cjs/commands/PollForDecisionTaskCommand.js +0 -1
- package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js +0 -1
- package/dist-cjs/commands/RegisterActivityTypeCommand.js +0 -1
- package/dist-cjs/commands/RegisterDomainCommand.js +0 -1
- package/dist-cjs/commands/RegisterWorkflowTypeCommand.js +0 -1
- package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js +0 -1
- package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js +0 -1
- package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js +0 -1
- package/dist-cjs/commands/RespondActivityTaskFailedCommand.js +0 -1
- package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js +0 -1
- package/dist-cjs/commands/SignalWorkflowExecutionCommand.js +0 -1
- package/dist-cjs/commands/StartWorkflowExecutionCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js +0 -1
- package/dist-cjs/commands/UndeprecateActivityTypeCommand.js +0 -1
- package/dist-cjs/commands/UndeprecateDomainCommand.js +0 -1
- package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListActivityTypesPaginator.js +0 -1
- package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListDomainsPaginator.js +0 -1
- package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListWorkflowTypesPaginator.js +0 -1
- package/dist-cjs/pagination/PollForDecisionTaskPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/SWF.js +0 -1
- package/dist-es/SWFClient.js +0 -1
- package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/CountPendingActivityTasksCommand.js +0 -1
- package/dist-es/commands/CountPendingDecisionTasksCommand.js +0 -1
- package/dist-es/commands/DeprecateActivityTypeCommand.js +0 -1
- package/dist-es/commands/DeprecateDomainCommand.js +0 -1
- package/dist-es/commands/DeprecateWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/DescribeActivityTypeCommand.js +0 -1
- package/dist-es/commands/DescribeDomainCommand.js +0 -1
- package/dist-es/commands/DescribeWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/DescribeWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +0 -1
- package/dist-es/commands/ListActivityTypesCommand.js +0 -1
- package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/ListDomainsCommand.js +0 -1
- package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListWorkflowTypesCommand.js +0 -1
- package/dist-es/commands/PollForActivityTaskCommand.js +0 -1
- package/dist-es/commands/PollForDecisionTaskCommand.js +0 -1
- package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +0 -1
- package/dist-es/commands/RegisterActivityTypeCommand.js +0 -1
- package/dist-es/commands/RegisterDomainCommand.js +0 -1
- package/dist-es/commands/RegisterWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/RespondActivityTaskCanceledCommand.js +0 -1
- package/dist-es/commands/RespondActivityTaskCompletedCommand.js +0 -1
- package/dist-es/commands/RespondActivityTaskFailedCommand.js +0 -1
- package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +0 -1
- package/dist-es/commands/SignalWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/StartWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/TerminateWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/UndeprecateActivityTypeCommand.js +0 -1
- package/dist-es/commands/UndeprecateDomainCommand.js +0 -1
- package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListActivityTypesPaginator.js +0 -1
- package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -1
- package/dist-es/pagination/ListDomainsPaginator.js +0 -1
- package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -1
- package/dist-es/pagination/ListWorkflowTypesPaginator.js +0 -1
- package/dist-es/pagination/PollForDecisionTaskPaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_0.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/SWF.js.map +0 -1
- package/dist-cjs/SWFClient.js.map +0 -1
- package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/CountPendingActivityTasksCommand.js.map +0 -1
- package/dist-cjs/commands/CountPendingDecisionTasksCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateDomainCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDomainCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
- package/dist-cjs/commands/ListActivityTypesCommand.js.map +0 -1
- package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDomainsCommand.js.map +0 -1
- package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListWorkflowTypesCommand.js.map +0 -1
- package/dist-cjs/commands/PollForActivityTaskCommand.js.map +0 -1
- package/dist-cjs/commands/PollForDecisionTaskCommand.js.map +0 -1
- package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterDomainCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
- package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
- package/dist-cjs/commands/RespondActivityTaskFailedCommand.js.map +0 -1
- package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
- package/dist-cjs/commands/SignalWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/StartWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/UndeprecateActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/UndeprecateDomainCommand.js.map +0 -1
- package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListActivityTypesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDomainsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListWorkflowTypesPaginator.js.map +0 -1
- package/dist-cjs/pagination/PollForDecisionTaskPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/SWF.js.map +0 -1
- package/dist-es/SWFClient.js.map +0 -1
- package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/CountPendingActivityTasksCommand.js.map +0 -1
- package/dist-es/commands/CountPendingDecisionTasksCommand.js.map +0 -1
- package/dist-es/commands/DeprecateActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/DeprecateDomainCommand.js.map +0 -1
- package/dist-es/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/DescribeActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/DescribeDomainCommand.js.map +0 -1
- package/dist-es/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/DescribeWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
- package/dist-es/commands/ListActivityTypesCommand.js.map +0 -1
- package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/ListDomainsCommand.js.map +0 -1
- package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListWorkflowTypesCommand.js.map +0 -1
- package/dist-es/commands/PollForActivityTaskCommand.js.map +0 -1
- package/dist-es/commands/PollForDecisionTaskCommand.js.map +0 -1
- package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
- package/dist-es/commands/RegisterActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/RegisterDomainCommand.js.map +0 -1
- package/dist-es/commands/RegisterWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
- package/dist-es/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
- package/dist-es/commands/RespondActivityTaskFailedCommand.js.map +0 -1
- package/dist-es/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
- package/dist-es/commands/SignalWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/StartWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/UndeprecateActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/UndeprecateDomainCommand.js.map +0 -1
- package/dist-es/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListActivityTypesPaginator.js.map +0 -1
- package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDomainsPaginator.js.map +0 -1
- package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListWorkflowTypesPaginator.js.map +0 -1
- package/dist-es/pagination/PollForDecisionTaskPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_0.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/SWF.ts +0 -2640
- package/src/SWFClient.ts +0 -446
- package/src/commands/CountClosedWorkflowExecutionsCommand.ts +0 -144
- package/src/commands/CountOpenWorkflowExecutionsCommand.ts +0 -144
- package/src/commands/CountPendingActivityTasksCommand.ts +0 -125
- package/src/commands/CountPendingDecisionTasksCommand.ts +0 -125
- package/src/commands/DeprecateActivityTypeCommand.ts +0 -137
- package/src/commands/DeprecateDomainCommand.ts +0 -126
- package/src/commands/DeprecateWorkflowTypeCommand.ts +0 -138
- package/src/commands/DescribeActivityTypeCommand.ts +0 -133
- package/src/commands/DescribeDomainCommand.ts +0 -119
- package/src/commands/DescribeWorkflowExecutionCommand.ts +0 -126
- package/src/commands/DescribeWorkflowTypeCommand.ts +0 -133
- package/src/commands/GetWorkflowExecutionHistoryCommand.ts +0 -127
- package/src/commands/ListActivityTypesCommand.ts +0 -122
- package/src/commands/ListClosedWorkflowExecutionsCommand.ts +0 -145
- package/src/commands/ListDomainsCommand.ts +0 -126
- package/src/commands/ListOpenWorkflowExecutionsCommand.ts +0 -145
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListWorkflowTypesCommand.ts +0 -119
- package/src/commands/PollForActivityTaskCommand.ts +0 -130
- package/src/commands/PollForDecisionTaskCommand.ts +0 -142
- package/src/commands/RecordActivityTaskHeartbeatCommand.ts +0 -145
- package/src/commands/RegisterActivityTypeCommand.ts +0 -141
- package/src/commands/RegisterDomainCommand.ts +0 -118
- package/src/commands/RegisterWorkflowTypeCommand.ts +0 -142
- package/src/commands/RequestCancelWorkflowExecutionCommand.ts +0 -139
- package/src/commands/RespondActivityTaskCanceledCommand.ts +0 -139
- package/src/commands/RespondActivityTaskCompletedCommand.ts +0 -137
- package/src/commands/RespondActivityTaskFailedCommand.ts +0 -130
- package/src/commands/RespondDecisionTaskCompletedCommand.ts +0 -117
- package/src/commands/SignalWorkflowExecutionCommand.ts +0 -133
- package/src/commands/StartWorkflowExecutionCommand.ts +0 -160
- package/src/commands/TagResourceCommand.ts +0 -98
- package/src/commands/TerminateWorkflowExecutionCommand.ts +0 -141
- package/src/commands/UndeprecateActivityTypeCommand.ts +0 -136
- package/src/commands/UndeprecateDomainCommand.ts +0 -123
- package/src/commands/UndeprecateWorkflowTypeCommand.ts +0 -136
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -48
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -7233
- package/src/pagination/GetWorkflowExecutionHistoryPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListActivityTypesPaginator.ts +0 -59
- package/src/pagination/ListClosedWorkflowExecutionsPaginator.ts +0 -59
- package/src/pagination/ListDomainsPaginator.ts +0 -55
- package/src/pagination/ListOpenWorkflowExecutionsPaginator.ts +0 -59
- package/src/pagination/ListWorkflowTypesPaginator.ts +0 -59
- package/src/pagination/PollForDecisionTaskPaginator.ts +0 -59
- package/src/protocols/Aws_json1_0.ts +0 -5978
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/SWFClient.ts
DELETED
|
@@ -1,446 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
CountClosedWorkflowExecutionsCommandInput,
|
|
54
|
-
CountClosedWorkflowExecutionsCommandOutput,
|
|
55
|
-
} from "./commands/CountClosedWorkflowExecutionsCommand";
|
|
56
|
-
import {
|
|
57
|
-
CountOpenWorkflowExecutionsCommandInput,
|
|
58
|
-
CountOpenWorkflowExecutionsCommandOutput,
|
|
59
|
-
} from "./commands/CountOpenWorkflowExecutionsCommand";
|
|
60
|
-
import {
|
|
61
|
-
CountPendingActivityTasksCommandInput,
|
|
62
|
-
CountPendingActivityTasksCommandOutput,
|
|
63
|
-
} from "./commands/CountPendingActivityTasksCommand";
|
|
64
|
-
import {
|
|
65
|
-
CountPendingDecisionTasksCommandInput,
|
|
66
|
-
CountPendingDecisionTasksCommandOutput,
|
|
67
|
-
} from "./commands/CountPendingDecisionTasksCommand";
|
|
68
|
-
import {
|
|
69
|
-
DeprecateActivityTypeCommandInput,
|
|
70
|
-
DeprecateActivityTypeCommandOutput,
|
|
71
|
-
} from "./commands/DeprecateActivityTypeCommand";
|
|
72
|
-
import { DeprecateDomainCommandInput, DeprecateDomainCommandOutput } from "./commands/DeprecateDomainCommand";
|
|
73
|
-
import {
|
|
74
|
-
DeprecateWorkflowTypeCommandInput,
|
|
75
|
-
DeprecateWorkflowTypeCommandOutput,
|
|
76
|
-
} from "./commands/DeprecateWorkflowTypeCommand";
|
|
77
|
-
import {
|
|
78
|
-
DescribeActivityTypeCommandInput,
|
|
79
|
-
DescribeActivityTypeCommandOutput,
|
|
80
|
-
} from "./commands/DescribeActivityTypeCommand";
|
|
81
|
-
import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "./commands/DescribeDomainCommand";
|
|
82
|
-
import {
|
|
83
|
-
DescribeWorkflowExecutionCommandInput,
|
|
84
|
-
DescribeWorkflowExecutionCommandOutput,
|
|
85
|
-
} from "./commands/DescribeWorkflowExecutionCommand";
|
|
86
|
-
import {
|
|
87
|
-
DescribeWorkflowTypeCommandInput,
|
|
88
|
-
DescribeWorkflowTypeCommandOutput,
|
|
89
|
-
} from "./commands/DescribeWorkflowTypeCommand";
|
|
90
|
-
import {
|
|
91
|
-
GetWorkflowExecutionHistoryCommandInput,
|
|
92
|
-
GetWorkflowExecutionHistoryCommandOutput,
|
|
93
|
-
} from "./commands/GetWorkflowExecutionHistoryCommand";
|
|
94
|
-
import { ListActivityTypesCommandInput, ListActivityTypesCommandOutput } from "./commands/ListActivityTypesCommand";
|
|
95
|
-
import {
|
|
96
|
-
ListClosedWorkflowExecutionsCommandInput,
|
|
97
|
-
ListClosedWorkflowExecutionsCommandOutput,
|
|
98
|
-
} from "./commands/ListClosedWorkflowExecutionsCommand";
|
|
99
|
-
import { ListDomainsCommandInput, ListDomainsCommandOutput } from "./commands/ListDomainsCommand";
|
|
100
|
-
import {
|
|
101
|
-
ListOpenWorkflowExecutionsCommandInput,
|
|
102
|
-
ListOpenWorkflowExecutionsCommandOutput,
|
|
103
|
-
} from "./commands/ListOpenWorkflowExecutionsCommand";
|
|
104
|
-
import {
|
|
105
|
-
ListTagsForResourceCommandInput,
|
|
106
|
-
ListTagsForResourceCommandOutput,
|
|
107
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
108
|
-
import { ListWorkflowTypesCommandInput, ListWorkflowTypesCommandOutput } from "./commands/ListWorkflowTypesCommand";
|
|
109
|
-
import {
|
|
110
|
-
PollForActivityTaskCommandInput,
|
|
111
|
-
PollForActivityTaskCommandOutput,
|
|
112
|
-
} from "./commands/PollForActivityTaskCommand";
|
|
113
|
-
import {
|
|
114
|
-
PollForDecisionTaskCommandInput,
|
|
115
|
-
PollForDecisionTaskCommandOutput,
|
|
116
|
-
} from "./commands/PollForDecisionTaskCommand";
|
|
117
|
-
import {
|
|
118
|
-
RecordActivityTaskHeartbeatCommandInput,
|
|
119
|
-
RecordActivityTaskHeartbeatCommandOutput,
|
|
120
|
-
} from "./commands/RecordActivityTaskHeartbeatCommand";
|
|
121
|
-
import {
|
|
122
|
-
RegisterActivityTypeCommandInput,
|
|
123
|
-
RegisterActivityTypeCommandOutput,
|
|
124
|
-
} from "./commands/RegisterActivityTypeCommand";
|
|
125
|
-
import { RegisterDomainCommandInput, RegisterDomainCommandOutput } from "./commands/RegisterDomainCommand";
|
|
126
|
-
import {
|
|
127
|
-
RegisterWorkflowTypeCommandInput,
|
|
128
|
-
RegisterWorkflowTypeCommandOutput,
|
|
129
|
-
} from "./commands/RegisterWorkflowTypeCommand";
|
|
130
|
-
import {
|
|
131
|
-
RequestCancelWorkflowExecutionCommandInput,
|
|
132
|
-
RequestCancelWorkflowExecutionCommandOutput,
|
|
133
|
-
} from "./commands/RequestCancelWorkflowExecutionCommand";
|
|
134
|
-
import {
|
|
135
|
-
RespondActivityTaskCanceledCommandInput,
|
|
136
|
-
RespondActivityTaskCanceledCommandOutput,
|
|
137
|
-
} from "./commands/RespondActivityTaskCanceledCommand";
|
|
138
|
-
import {
|
|
139
|
-
RespondActivityTaskCompletedCommandInput,
|
|
140
|
-
RespondActivityTaskCompletedCommandOutput,
|
|
141
|
-
} from "./commands/RespondActivityTaskCompletedCommand";
|
|
142
|
-
import {
|
|
143
|
-
RespondActivityTaskFailedCommandInput,
|
|
144
|
-
RespondActivityTaskFailedCommandOutput,
|
|
145
|
-
} from "./commands/RespondActivityTaskFailedCommand";
|
|
146
|
-
import {
|
|
147
|
-
RespondDecisionTaskCompletedCommandInput,
|
|
148
|
-
RespondDecisionTaskCompletedCommandOutput,
|
|
149
|
-
} from "./commands/RespondDecisionTaskCompletedCommand";
|
|
150
|
-
import {
|
|
151
|
-
SignalWorkflowExecutionCommandInput,
|
|
152
|
-
SignalWorkflowExecutionCommandOutput,
|
|
153
|
-
} from "./commands/SignalWorkflowExecutionCommand";
|
|
154
|
-
import {
|
|
155
|
-
StartWorkflowExecutionCommandInput,
|
|
156
|
-
StartWorkflowExecutionCommandOutput,
|
|
157
|
-
} from "./commands/StartWorkflowExecutionCommand";
|
|
158
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
159
|
-
import {
|
|
160
|
-
TerminateWorkflowExecutionCommandInput,
|
|
161
|
-
TerminateWorkflowExecutionCommandOutput,
|
|
162
|
-
} from "./commands/TerminateWorkflowExecutionCommand";
|
|
163
|
-
import {
|
|
164
|
-
UndeprecateActivityTypeCommandInput,
|
|
165
|
-
UndeprecateActivityTypeCommandOutput,
|
|
166
|
-
} from "./commands/UndeprecateActivityTypeCommand";
|
|
167
|
-
import { UndeprecateDomainCommandInput, UndeprecateDomainCommandOutput } from "./commands/UndeprecateDomainCommand";
|
|
168
|
-
import {
|
|
169
|
-
UndeprecateWorkflowTypeCommandInput,
|
|
170
|
-
UndeprecateWorkflowTypeCommandOutput,
|
|
171
|
-
} from "./commands/UndeprecateWorkflowTypeCommand";
|
|
172
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
173
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
174
|
-
|
|
175
|
-
export type ServiceInputTypes =
|
|
176
|
-
| CountClosedWorkflowExecutionsCommandInput
|
|
177
|
-
| CountOpenWorkflowExecutionsCommandInput
|
|
178
|
-
| CountPendingActivityTasksCommandInput
|
|
179
|
-
| CountPendingDecisionTasksCommandInput
|
|
180
|
-
| DeprecateActivityTypeCommandInput
|
|
181
|
-
| DeprecateDomainCommandInput
|
|
182
|
-
| DeprecateWorkflowTypeCommandInput
|
|
183
|
-
| DescribeActivityTypeCommandInput
|
|
184
|
-
| DescribeDomainCommandInput
|
|
185
|
-
| DescribeWorkflowExecutionCommandInput
|
|
186
|
-
| DescribeWorkflowTypeCommandInput
|
|
187
|
-
| GetWorkflowExecutionHistoryCommandInput
|
|
188
|
-
| ListActivityTypesCommandInput
|
|
189
|
-
| ListClosedWorkflowExecutionsCommandInput
|
|
190
|
-
| ListDomainsCommandInput
|
|
191
|
-
| ListOpenWorkflowExecutionsCommandInput
|
|
192
|
-
| ListTagsForResourceCommandInput
|
|
193
|
-
| ListWorkflowTypesCommandInput
|
|
194
|
-
| PollForActivityTaskCommandInput
|
|
195
|
-
| PollForDecisionTaskCommandInput
|
|
196
|
-
| RecordActivityTaskHeartbeatCommandInput
|
|
197
|
-
| RegisterActivityTypeCommandInput
|
|
198
|
-
| RegisterDomainCommandInput
|
|
199
|
-
| RegisterWorkflowTypeCommandInput
|
|
200
|
-
| RequestCancelWorkflowExecutionCommandInput
|
|
201
|
-
| RespondActivityTaskCanceledCommandInput
|
|
202
|
-
| RespondActivityTaskCompletedCommandInput
|
|
203
|
-
| RespondActivityTaskFailedCommandInput
|
|
204
|
-
| RespondDecisionTaskCompletedCommandInput
|
|
205
|
-
| SignalWorkflowExecutionCommandInput
|
|
206
|
-
| StartWorkflowExecutionCommandInput
|
|
207
|
-
| TagResourceCommandInput
|
|
208
|
-
| TerminateWorkflowExecutionCommandInput
|
|
209
|
-
| UndeprecateActivityTypeCommandInput
|
|
210
|
-
| UndeprecateDomainCommandInput
|
|
211
|
-
| UndeprecateWorkflowTypeCommandInput
|
|
212
|
-
| UntagResourceCommandInput;
|
|
213
|
-
|
|
214
|
-
export type ServiceOutputTypes =
|
|
215
|
-
| CountClosedWorkflowExecutionsCommandOutput
|
|
216
|
-
| CountOpenWorkflowExecutionsCommandOutput
|
|
217
|
-
| CountPendingActivityTasksCommandOutput
|
|
218
|
-
| CountPendingDecisionTasksCommandOutput
|
|
219
|
-
| DeprecateActivityTypeCommandOutput
|
|
220
|
-
| DeprecateDomainCommandOutput
|
|
221
|
-
| DeprecateWorkflowTypeCommandOutput
|
|
222
|
-
| DescribeActivityTypeCommandOutput
|
|
223
|
-
| DescribeDomainCommandOutput
|
|
224
|
-
| DescribeWorkflowExecutionCommandOutput
|
|
225
|
-
| DescribeWorkflowTypeCommandOutput
|
|
226
|
-
| GetWorkflowExecutionHistoryCommandOutput
|
|
227
|
-
| ListActivityTypesCommandOutput
|
|
228
|
-
| ListClosedWorkflowExecutionsCommandOutput
|
|
229
|
-
| ListDomainsCommandOutput
|
|
230
|
-
| ListOpenWorkflowExecutionsCommandOutput
|
|
231
|
-
| ListTagsForResourceCommandOutput
|
|
232
|
-
| ListWorkflowTypesCommandOutput
|
|
233
|
-
| PollForActivityTaskCommandOutput
|
|
234
|
-
| PollForDecisionTaskCommandOutput
|
|
235
|
-
| RecordActivityTaskHeartbeatCommandOutput
|
|
236
|
-
| RegisterActivityTypeCommandOutput
|
|
237
|
-
| RegisterDomainCommandOutput
|
|
238
|
-
| RegisterWorkflowTypeCommandOutput
|
|
239
|
-
| RequestCancelWorkflowExecutionCommandOutput
|
|
240
|
-
| RespondActivityTaskCanceledCommandOutput
|
|
241
|
-
| RespondActivityTaskCompletedCommandOutput
|
|
242
|
-
| RespondActivityTaskFailedCommandOutput
|
|
243
|
-
| RespondDecisionTaskCompletedCommandOutput
|
|
244
|
-
| SignalWorkflowExecutionCommandOutput
|
|
245
|
-
| StartWorkflowExecutionCommandOutput
|
|
246
|
-
| TagResourceCommandOutput
|
|
247
|
-
| TerminateWorkflowExecutionCommandOutput
|
|
248
|
-
| UndeprecateActivityTypeCommandOutput
|
|
249
|
-
| UndeprecateDomainCommandOutput
|
|
250
|
-
| UndeprecateWorkflowTypeCommandOutput
|
|
251
|
-
| UntagResourceCommandOutput;
|
|
252
|
-
|
|
253
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
254
|
-
/**
|
|
255
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
256
|
-
*/
|
|
257
|
-
requestHandler?: __HttpHandler;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
261
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
262
|
-
* @internal
|
|
263
|
-
*/
|
|
264
|
-
sha256?: __HashConstructor;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
268
|
-
* @internal
|
|
269
|
-
*/
|
|
270
|
-
urlParser?: __UrlParser;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* A function that can calculate the length of a request body.
|
|
274
|
-
* @internal
|
|
275
|
-
*/
|
|
276
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* A function that converts a stream into an array of bytes.
|
|
280
|
-
* @internal
|
|
281
|
-
*/
|
|
282
|
-
streamCollector?: __StreamCollector;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
286
|
-
* @internal
|
|
287
|
-
*/
|
|
288
|
-
base64Decoder?: __Decoder;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
292
|
-
* @internal
|
|
293
|
-
*/
|
|
294
|
-
base64Encoder?: __Encoder;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
300
|
-
utf8Decoder?: __Decoder;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
304
|
-
* @internal
|
|
305
|
-
*/
|
|
306
|
-
utf8Encoder?: __Encoder;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* The runtime environment.
|
|
310
|
-
* @internal
|
|
311
|
-
*/
|
|
312
|
-
runtime?: string;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
316
|
-
* trait of an operation.
|
|
317
|
-
*/
|
|
318
|
-
disableHostPrefix?: boolean;
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
322
|
-
*/
|
|
323
|
-
maxAttempts?: number | __Provider<number>;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Specifies which retry algorithm to use.
|
|
327
|
-
*/
|
|
328
|
-
retryMode?: string | __Provider<string>;
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Optional logger for logging debug/info/warn/error.
|
|
332
|
-
*/
|
|
333
|
-
logger?: __Logger;
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Unique service identifier.
|
|
337
|
-
* @internal
|
|
338
|
-
*/
|
|
339
|
-
serviceId?: string;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* The AWS region to which this client will send requests
|
|
343
|
-
*/
|
|
344
|
-
region?: string | __Provider<string>;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Default credentials provider; Not available in browser runtime.
|
|
348
|
-
* @internal
|
|
349
|
-
*/
|
|
350
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
354
|
-
* @internal
|
|
355
|
-
*/
|
|
356
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
360
|
-
* @internal
|
|
361
|
-
*/
|
|
362
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
type SWFClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
366
|
-
ClientDefaults &
|
|
367
|
-
RegionInputConfig &
|
|
368
|
-
EndpointsInputConfig &
|
|
369
|
-
RetryInputConfig &
|
|
370
|
-
HostHeaderInputConfig &
|
|
371
|
-
AwsAuthInputConfig &
|
|
372
|
-
UserAgentInputConfig;
|
|
373
|
-
/**
|
|
374
|
-
* The configuration interface of SWFClient class constructor that set the region, credentials and other options.
|
|
375
|
-
*/
|
|
376
|
-
export interface SWFClientConfig extends SWFClientConfigType {}
|
|
377
|
-
|
|
378
|
-
type SWFClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
379
|
-
Required<ClientDefaults> &
|
|
380
|
-
RegionResolvedConfig &
|
|
381
|
-
EndpointsResolvedConfig &
|
|
382
|
-
RetryResolvedConfig &
|
|
383
|
-
HostHeaderResolvedConfig &
|
|
384
|
-
AwsAuthResolvedConfig &
|
|
385
|
-
UserAgentResolvedConfig;
|
|
386
|
-
/**
|
|
387
|
-
* The resolved configuration interface of SWFClient class. This is resolved and normalized from the {@link SWFClientConfig | constructor configuration interface}.
|
|
388
|
-
*/
|
|
389
|
-
export interface SWFClientResolvedConfig extends SWFClientResolvedConfigType {}
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* <fullname>Amazon Simple Workflow Service</fullname>
|
|
393
|
-
*
|
|
394
|
-
* <p>The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications that use Amazon's cloud to
|
|
395
|
-
* coordinate work across distributed components. In Amazon SWF, a <i>task</i>
|
|
396
|
-
* represents a logical unit of work that is performed by a component of your workflow.
|
|
397
|
-
* Coordinating tasks in a workflow involves managing intertask dependencies, scheduling, and
|
|
398
|
-
* concurrency in accordance with the logical flow of the application.</p>
|
|
399
|
-
*
|
|
400
|
-
* <p>Amazon SWF gives you full control over implementing tasks and coordinating them without
|
|
401
|
-
* worrying about underlying complexities such as tracking their progress and maintaining their
|
|
402
|
-
* state.</p>
|
|
403
|
-
*
|
|
404
|
-
* <p>This documentation serves as reference only. For a broader overview of the Amazon SWF
|
|
405
|
-
* programming model, see the <i>
|
|
406
|
-
* <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/">Amazon SWF Developer Guide</a>
|
|
407
|
-
* </i>.</p>
|
|
408
|
-
*/
|
|
409
|
-
export class SWFClient extends __Client<
|
|
410
|
-
__HttpHandlerOptions,
|
|
411
|
-
ServiceInputTypes,
|
|
412
|
-
ServiceOutputTypes,
|
|
413
|
-
SWFClientResolvedConfig
|
|
414
|
-
> {
|
|
415
|
-
/**
|
|
416
|
-
* The resolved configuration of SWFClient class. This is resolved and normalized from the {@link SWFClientConfig | constructor configuration interface}.
|
|
417
|
-
*/
|
|
418
|
-
readonly config: SWFClientResolvedConfig;
|
|
419
|
-
|
|
420
|
-
constructor(configuration: SWFClientConfig) {
|
|
421
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
422
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
423
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
424
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
425
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
426
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
427
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
428
|
-
super(_config_6);
|
|
429
|
-
this.config = _config_6;
|
|
430
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
431
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
432
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
433
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
434
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
435
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
440
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
441
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
442
|
-
*/
|
|
443
|
-
destroy(): void {
|
|
444
|
-
super.destroy();
|
|
445
|
-
}
|
|
446
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CountClosedWorkflowExecutionsInput, WorkflowExecutionCount } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0CountClosedWorkflowExecutionsCommand,
|
|
17
|
-
serializeAws_json1_0CountClosedWorkflowExecutionsCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface CountClosedWorkflowExecutionsCommandInput extends CountClosedWorkflowExecutionsInput {}
|
|
22
|
-
export interface CountClosedWorkflowExecutionsCommandOutput extends WorkflowExecutionCount, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the number of closed workflow executions within the given domain that meet the
|
|
26
|
-
* specified filtering criteria.</p>
|
|
27
|
-
* <note>
|
|
28
|
-
* <p>This operation is eventually consistent. The results are best effort and may not
|
|
29
|
-
* exactly reflect recent updates and changes.</p>
|
|
30
|
-
* </note>
|
|
31
|
-
* <p>
|
|
32
|
-
* <b>Access Control</b>
|
|
33
|
-
* </p>
|
|
34
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
35
|
-
* follows:</p>
|
|
36
|
-
* <ul>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
39
|
-
* only specified domains.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
43
|
-
* action.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>Constrain the following parameters by using a <code>Condition</code> element with
|
|
47
|
-
* the appropriate keys.</p>
|
|
48
|
-
* <ul>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>
|
|
51
|
-
* <code>tagFilter.tag</code>: String constraint. The key is
|
|
52
|
-
* <code>swf:tagFilter.tag</code>.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <code>typeFilter.name</code>: String constraint. The key is
|
|
57
|
-
* <code>swf:typeFilter.name</code>.</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>
|
|
61
|
-
* <code>typeFilter.version</code>: String constraint. The key is
|
|
62
|
-
* <code>swf:typeFilter.version</code>.</p>
|
|
63
|
-
* </li>
|
|
64
|
-
* </ul>
|
|
65
|
-
* </li>
|
|
66
|
-
* </ul>
|
|
67
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
68
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
69
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
70
|
-
* For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
|
|
71
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
72
|
-
* @example
|
|
73
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
74
|
-
* ```javascript
|
|
75
|
-
* import { SWFClient, CountClosedWorkflowExecutionsCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
76
|
-
* // const { SWFClient, CountClosedWorkflowExecutionsCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
77
|
-
* const client = new SWFClient(config);
|
|
78
|
-
* const command = new CountClosedWorkflowExecutionsCommand(input);
|
|
79
|
-
* const response = await client.send(command);
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @see {@link CountClosedWorkflowExecutionsCommandInput} for command's `input` shape.
|
|
83
|
-
* @see {@link CountClosedWorkflowExecutionsCommandOutput} for command's `response` shape.
|
|
84
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
export class CountClosedWorkflowExecutionsCommand extends $Command<
|
|
88
|
-
CountClosedWorkflowExecutionsCommandInput,
|
|
89
|
-
CountClosedWorkflowExecutionsCommandOutput,
|
|
90
|
-
SWFClientResolvedConfig
|
|
91
|
-
> {
|
|
92
|
-
// Start section: command_properties
|
|
93
|
-
// End section: command_properties
|
|
94
|
-
|
|
95
|
-
constructor(readonly input: CountClosedWorkflowExecutionsCommandInput) {
|
|
96
|
-
// Start section: command_constructor
|
|
97
|
-
super();
|
|
98
|
-
// End section: command_constructor
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
resolveMiddleware(
|
|
105
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
106
|
-
configuration: SWFClientResolvedConfig,
|
|
107
|
-
options?: __HttpHandlerOptions
|
|
108
|
-
): Handler<CountClosedWorkflowExecutionsCommandInput, CountClosedWorkflowExecutionsCommandOutput> {
|
|
109
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
110
|
-
|
|
111
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
112
|
-
|
|
113
|
-
const { logger } = configuration;
|
|
114
|
-
const clientName = "SWFClient";
|
|
115
|
-
const commandName = "CountClosedWorkflowExecutionsCommand";
|
|
116
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
117
|
-
logger,
|
|
118
|
-
clientName,
|
|
119
|
-
commandName,
|
|
120
|
-
inputFilterSensitiveLog: CountClosedWorkflowExecutionsInput.filterSensitiveLog,
|
|
121
|
-
outputFilterSensitiveLog: WorkflowExecutionCount.filterSensitiveLog,
|
|
122
|
-
};
|
|
123
|
-
const { requestHandler } = configuration;
|
|
124
|
-
return stack.resolve(
|
|
125
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
126
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
127
|
-
handlerExecutionContext
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
private serialize(input: CountClosedWorkflowExecutionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
132
|
-
return serializeAws_json1_0CountClosedWorkflowExecutionsCommand(input, context);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private deserialize(
|
|
136
|
-
output: __HttpResponse,
|
|
137
|
-
context: __SerdeContext
|
|
138
|
-
): Promise<CountClosedWorkflowExecutionsCommandOutput> {
|
|
139
|
-
return deserializeAws_json1_0CountClosedWorkflowExecutionsCommand(output, context);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// Start section: command_body_extra
|
|
143
|
-
// End section: command_body_extra
|
|
144
|
-
}
|