@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
|
@@ -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 { CountOpenWorkflowExecutionsInput, WorkflowExecutionCount } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0CountOpenWorkflowExecutionsCommand,
|
|
17
|
-
serializeAws_json1_0CountOpenWorkflowExecutionsCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface CountOpenWorkflowExecutionsCommandInput extends CountOpenWorkflowExecutionsInput {}
|
|
22
|
-
export interface CountOpenWorkflowExecutionsCommandOutput extends WorkflowExecutionCount, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the number of open 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, CountOpenWorkflowExecutionsCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
76
|
-
* // const { SWFClient, CountOpenWorkflowExecutionsCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
77
|
-
* const client = new SWFClient(config);
|
|
78
|
-
* const command = new CountOpenWorkflowExecutionsCommand(input);
|
|
79
|
-
* const response = await client.send(command);
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @see {@link CountOpenWorkflowExecutionsCommandInput} for command's `input` shape.
|
|
83
|
-
* @see {@link CountOpenWorkflowExecutionsCommandOutput} for command's `response` shape.
|
|
84
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
export class CountOpenWorkflowExecutionsCommand extends $Command<
|
|
88
|
-
CountOpenWorkflowExecutionsCommandInput,
|
|
89
|
-
CountOpenWorkflowExecutionsCommandOutput,
|
|
90
|
-
SWFClientResolvedConfig
|
|
91
|
-
> {
|
|
92
|
-
// Start section: command_properties
|
|
93
|
-
// End section: command_properties
|
|
94
|
-
|
|
95
|
-
constructor(readonly input: CountOpenWorkflowExecutionsCommandInput) {
|
|
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<CountOpenWorkflowExecutionsCommandInput, CountOpenWorkflowExecutionsCommandOutput> {
|
|
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 = "CountOpenWorkflowExecutionsCommand";
|
|
116
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
117
|
-
logger,
|
|
118
|
-
clientName,
|
|
119
|
-
commandName,
|
|
120
|
-
inputFilterSensitiveLog: CountOpenWorkflowExecutionsInput.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: CountOpenWorkflowExecutionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
132
|
-
return serializeAws_json1_0CountOpenWorkflowExecutionsCommand(input, context);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private deserialize(
|
|
136
|
-
output: __HttpResponse,
|
|
137
|
-
context: __SerdeContext
|
|
138
|
-
): Promise<CountOpenWorkflowExecutionsCommandOutput> {
|
|
139
|
-
return deserializeAws_json1_0CountOpenWorkflowExecutionsCommand(output, context);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// Start section: command_body_extra
|
|
143
|
-
// End section: command_body_extra
|
|
144
|
-
}
|
|
@@ -1,125 +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 { CountPendingActivityTasksInput, PendingTaskCount } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0CountPendingActivityTasksCommand,
|
|
17
|
-
serializeAws_json1_0CountPendingActivityTasksCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface CountPendingActivityTasksCommandInput extends CountPendingActivityTasksInput {}
|
|
22
|
-
export interface CountPendingActivityTasksCommandOutput extends PendingTaskCount, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the estimated number of activity tasks in the specified task list. The count
|
|
26
|
-
* returned is an approximation and isn't guaranteed to be exact. If you specify a task list that
|
|
27
|
-
* no activity task was ever scheduled in then <code>0</code> is returned.</p>
|
|
28
|
-
* <p>
|
|
29
|
-
* <b>Access Control</b>
|
|
30
|
-
* </p>
|
|
31
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
32
|
-
* follows:</p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
36
|
-
* only specified domains.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
40
|
-
* action.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>Constrain the <code>taskList.name</code> parameter by using a
|
|
44
|
-
* <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
|
|
45
|
-
* action to access only certain task lists.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
49
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
50
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
51
|
-
* 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
|
|
52
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
53
|
-
* @example
|
|
54
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
55
|
-
* ```javascript
|
|
56
|
-
* import { SWFClient, CountPendingActivityTasksCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
57
|
-
* // const { SWFClient, CountPendingActivityTasksCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
58
|
-
* const client = new SWFClient(config);
|
|
59
|
-
* const command = new CountPendingActivityTasksCommand(input);
|
|
60
|
-
* const response = await client.send(command);
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @see {@link CountPendingActivityTasksCommandInput} for command's `input` shape.
|
|
64
|
-
* @see {@link CountPendingActivityTasksCommandOutput} for command's `response` shape.
|
|
65
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
export class CountPendingActivityTasksCommand extends $Command<
|
|
69
|
-
CountPendingActivityTasksCommandInput,
|
|
70
|
-
CountPendingActivityTasksCommandOutput,
|
|
71
|
-
SWFClientResolvedConfig
|
|
72
|
-
> {
|
|
73
|
-
// Start section: command_properties
|
|
74
|
-
// End section: command_properties
|
|
75
|
-
|
|
76
|
-
constructor(readonly input: CountPendingActivityTasksCommandInput) {
|
|
77
|
-
// Start section: command_constructor
|
|
78
|
-
super();
|
|
79
|
-
// End section: command_constructor
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
resolveMiddleware(
|
|
86
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
87
|
-
configuration: SWFClientResolvedConfig,
|
|
88
|
-
options?: __HttpHandlerOptions
|
|
89
|
-
): Handler<CountPendingActivityTasksCommandInput, CountPendingActivityTasksCommandOutput> {
|
|
90
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
91
|
-
|
|
92
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
93
|
-
|
|
94
|
-
const { logger } = configuration;
|
|
95
|
-
const clientName = "SWFClient";
|
|
96
|
-
const commandName = "CountPendingActivityTasksCommand";
|
|
97
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
98
|
-
logger,
|
|
99
|
-
clientName,
|
|
100
|
-
commandName,
|
|
101
|
-
inputFilterSensitiveLog: CountPendingActivityTasksInput.filterSensitiveLog,
|
|
102
|
-
outputFilterSensitiveLog: PendingTaskCount.filterSensitiveLog,
|
|
103
|
-
};
|
|
104
|
-
const { requestHandler } = configuration;
|
|
105
|
-
return stack.resolve(
|
|
106
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
107
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
108
|
-
handlerExecutionContext
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private serialize(input: CountPendingActivityTasksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
113
|
-
return serializeAws_json1_0CountPendingActivityTasksCommand(input, context);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
private deserialize(
|
|
117
|
-
output: __HttpResponse,
|
|
118
|
-
context: __SerdeContext
|
|
119
|
-
): Promise<CountPendingActivityTasksCommandOutput> {
|
|
120
|
-
return deserializeAws_json1_0CountPendingActivityTasksCommand(output, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Start section: command_body_extra
|
|
124
|
-
// End section: command_body_extra
|
|
125
|
-
}
|
|
@@ -1,125 +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 { CountPendingDecisionTasksInput, PendingTaskCount } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0CountPendingDecisionTasksCommand,
|
|
17
|
-
serializeAws_json1_0CountPendingDecisionTasksCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface CountPendingDecisionTasksCommandInput extends CountPendingDecisionTasksInput {}
|
|
22
|
-
export interface CountPendingDecisionTasksCommandOutput extends PendingTaskCount, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the estimated number of decision tasks in the specified task list. The count
|
|
26
|
-
* returned is an approximation and isn't guaranteed to be exact. If you specify a task list that
|
|
27
|
-
* no decision task was ever scheduled in then <code>0</code> is returned.</p>
|
|
28
|
-
* <p>
|
|
29
|
-
* <b>Access Control</b>
|
|
30
|
-
* </p>
|
|
31
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
32
|
-
* follows:</p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
36
|
-
* only specified domains.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
40
|
-
* action.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>Constrain the <code>taskList.name</code> parameter by using a
|
|
44
|
-
* <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
|
|
45
|
-
* action to access only certain task lists.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
49
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
50
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
51
|
-
* 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
|
|
52
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
53
|
-
* @example
|
|
54
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
55
|
-
* ```javascript
|
|
56
|
-
* import { SWFClient, CountPendingDecisionTasksCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
57
|
-
* // const { SWFClient, CountPendingDecisionTasksCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
58
|
-
* const client = new SWFClient(config);
|
|
59
|
-
* const command = new CountPendingDecisionTasksCommand(input);
|
|
60
|
-
* const response = await client.send(command);
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @see {@link CountPendingDecisionTasksCommandInput} for command's `input` shape.
|
|
64
|
-
* @see {@link CountPendingDecisionTasksCommandOutput} for command's `response` shape.
|
|
65
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
export class CountPendingDecisionTasksCommand extends $Command<
|
|
69
|
-
CountPendingDecisionTasksCommandInput,
|
|
70
|
-
CountPendingDecisionTasksCommandOutput,
|
|
71
|
-
SWFClientResolvedConfig
|
|
72
|
-
> {
|
|
73
|
-
// Start section: command_properties
|
|
74
|
-
// End section: command_properties
|
|
75
|
-
|
|
76
|
-
constructor(readonly input: CountPendingDecisionTasksCommandInput) {
|
|
77
|
-
// Start section: command_constructor
|
|
78
|
-
super();
|
|
79
|
-
// End section: command_constructor
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
resolveMiddleware(
|
|
86
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
87
|
-
configuration: SWFClientResolvedConfig,
|
|
88
|
-
options?: __HttpHandlerOptions
|
|
89
|
-
): Handler<CountPendingDecisionTasksCommandInput, CountPendingDecisionTasksCommandOutput> {
|
|
90
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
91
|
-
|
|
92
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
93
|
-
|
|
94
|
-
const { logger } = configuration;
|
|
95
|
-
const clientName = "SWFClient";
|
|
96
|
-
const commandName = "CountPendingDecisionTasksCommand";
|
|
97
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
98
|
-
logger,
|
|
99
|
-
clientName,
|
|
100
|
-
commandName,
|
|
101
|
-
inputFilterSensitiveLog: CountPendingDecisionTasksInput.filterSensitiveLog,
|
|
102
|
-
outputFilterSensitiveLog: PendingTaskCount.filterSensitiveLog,
|
|
103
|
-
};
|
|
104
|
-
const { requestHandler } = configuration;
|
|
105
|
-
return stack.resolve(
|
|
106
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
107
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
108
|
-
handlerExecutionContext
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private serialize(input: CountPendingDecisionTasksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
113
|
-
return serializeAws_json1_0CountPendingDecisionTasksCommand(input, context);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
private deserialize(
|
|
117
|
-
output: __HttpResponse,
|
|
118
|
-
context: __SerdeContext
|
|
119
|
-
): Promise<CountPendingDecisionTasksCommandOutput> {
|
|
120
|
-
return deserializeAws_json1_0CountPendingDecisionTasksCommand(output, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Start section: command_body_extra
|
|
124
|
-
// End section: command_body_extra
|
|
125
|
-
}
|
|
@@ -1,137 +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 { DeprecateActivityTypeInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0DeprecateActivityTypeCommand,
|
|
17
|
-
serializeAws_json1_0DeprecateActivityTypeCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface DeprecateActivityTypeCommandInput extends DeprecateActivityTypeInput {}
|
|
22
|
-
export interface DeprecateActivityTypeCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deprecates the specified <i>activity type</i>. After an activity type has
|
|
26
|
-
* been deprecated, you cannot create new tasks of that activity type. Tasks of this type that
|
|
27
|
-
* were scheduled before the type was deprecated continue to run.</p>
|
|
28
|
-
* <note>
|
|
29
|
-
* <p>This operation is eventually consistent. The results are best effort and may not
|
|
30
|
-
* exactly reflect recent updates and changes.</p>
|
|
31
|
-
* </note>
|
|
32
|
-
* <p>
|
|
33
|
-
* <b>Access Control</b>
|
|
34
|
-
* </p>
|
|
35
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
36
|
-
* follows:</p>
|
|
37
|
-
* <ul>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
40
|
-
* only specified domains.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
44
|
-
* action.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>Constrain the following parameters by using a <code>Condition</code> element with
|
|
48
|
-
* the appropriate keys.</p>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>
|
|
52
|
-
* <code>activityType.name</code>: String constraint. The key is
|
|
53
|
-
* <code>swf:activityType.name</code>.</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>
|
|
57
|
-
* <code>activityType.version</code>: String constraint. The key is
|
|
58
|
-
* <code>swf:activityType.version</code>.</p>
|
|
59
|
-
* </li>
|
|
60
|
-
* </ul>
|
|
61
|
-
* </li>
|
|
62
|
-
* </ul>
|
|
63
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
64
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
65
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
66
|
-
* 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
|
|
67
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
68
|
-
* @example
|
|
69
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
70
|
-
* ```javascript
|
|
71
|
-
* import { SWFClient, DeprecateActivityTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
72
|
-
* // const { SWFClient, DeprecateActivityTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
73
|
-
* const client = new SWFClient(config);
|
|
74
|
-
* const command = new DeprecateActivityTypeCommand(input);
|
|
75
|
-
* const response = await client.send(command);
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* @see {@link DeprecateActivityTypeCommandInput} for command's `input` shape.
|
|
79
|
-
* @see {@link DeprecateActivityTypeCommandOutput} for command's `response` shape.
|
|
80
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
81
|
-
*
|
|
82
|
-
*/
|
|
83
|
-
export class DeprecateActivityTypeCommand extends $Command<
|
|
84
|
-
DeprecateActivityTypeCommandInput,
|
|
85
|
-
DeprecateActivityTypeCommandOutput,
|
|
86
|
-
SWFClientResolvedConfig
|
|
87
|
-
> {
|
|
88
|
-
// Start section: command_properties
|
|
89
|
-
// End section: command_properties
|
|
90
|
-
|
|
91
|
-
constructor(readonly input: DeprecateActivityTypeCommandInput) {
|
|
92
|
-
// Start section: command_constructor
|
|
93
|
-
super();
|
|
94
|
-
// End section: command_constructor
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
|
-
resolveMiddleware(
|
|
101
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
102
|
-
configuration: SWFClientResolvedConfig,
|
|
103
|
-
options?: __HttpHandlerOptions
|
|
104
|
-
): Handler<DeprecateActivityTypeCommandInput, DeprecateActivityTypeCommandOutput> {
|
|
105
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
106
|
-
|
|
107
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
108
|
-
|
|
109
|
-
const { logger } = configuration;
|
|
110
|
-
const clientName = "SWFClient";
|
|
111
|
-
const commandName = "DeprecateActivityTypeCommand";
|
|
112
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
113
|
-
logger,
|
|
114
|
-
clientName,
|
|
115
|
-
commandName,
|
|
116
|
-
inputFilterSensitiveLog: DeprecateActivityTypeInput.filterSensitiveLog,
|
|
117
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
118
|
-
};
|
|
119
|
-
const { requestHandler } = configuration;
|
|
120
|
-
return stack.resolve(
|
|
121
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
122
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
123
|
-
handlerExecutionContext
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
private serialize(input: DeprecateActivityTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
128
|
-
return serializeAws_json1_0DeprecateActivityTypeCommand(input, context);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeprecateActivityTypeCommandOutput> {
|
|
132
|
-
return deserializeAws_json1_0DeprecateActivityTypeCommand(output, context);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// Start section: command_body_extra
|
|
136
|
-
// End section: command_body_extra
|
|
137
|
-
}
|
|
@@ -1,126 +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 { DeprecateDomainInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0DeprecateDomainCommand,
|
|
17
|
-
serializeAws_json1_0DeprecateDomainCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface DeprecateDomainCommandInput extends DeprecateDomainInput {}
|
|
22
|
-
export interface DeprecateDomainCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deprecates the specified domain. After a domain has been deprecated it cannot be used
|
|
26
|
-
* to create new workflow executions or register new types. However, you can still use visibility
|
|
27
|
-
* actions on this domain. Deprecating a domain also deprecates all activity and workflow types
|
|
28
|
-
* registered in the domain. Executions that were started before the domain was deprecated
|
|
29
|
-
* continues to run.</p>
|
|
30
|
-
* <note>
|
|
31
|
-
* <p>This operation is eventually consistent. The results are best effort and may not
|
|
32
|
-
* exactly reflect recent updates and changes.</p>
|
|
33
|
-
* </note>
|
|
34
|
-
* <p>
|
|
35
|
-
* <b>Access Control</b>
|
|
36
|
-
* </p>
|
|
37
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
38
|
-
* follows:</p>
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
42
|
-
* only specified domains.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
46
|
-
* action.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* </ul>
|
|
52
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
53
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
54
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
55
|
-
* 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
|
|
56
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
57
|
-
* @example
|
|
58
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
59
|
-
* ```javascript
|
|
60
|
-
* import { SWFClient, DeprecateDomainCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
61
|
-
* // const { SWFClient, DeprecateDomainCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
62
|
-
* const client = new SWFClient(config);
|
|
63
|
-
* const command = new DeprecateDomainCommand(input);
|
|
64
|
-
* const response = await client.send(command);
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @see {@link DeprecateDomainCommandInput} for command's `input` shape.
|
|
68
|
-
* @see {@link DeprecateDomainCommandOutput} for command's `response` shape.
|
|
69
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
export class DeprecateDomainCommand extends $Command<
|
|
73
|
-
DeprecateDomainCommandInput,
|
|
74
|
-
DeprecateDomainCommandOutput,
|
|
75
|
-
SWFClientResolvedConfig
|
|
76
|
-
> {
|
|
77
|
-
// Start section: command_properties
|
|
78
|
-
// End section: command_properties
|
|
79
|
-
|
|
80
|
-
constructor(readonly input: DeprecateDomainCommandInput) {
|
|
81
|
-
// Start section: command_constructor
|
|
82
|
-
super();
|
|
83
|
-
// End section: command_constructor
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
|
-
resolveMiddleware(
|
|
90
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
91
|
-
configuration: SWFClientResolvedConfig,
|
|
92
|
-
options?: __HttpHandlerOptions
|
|
93
|
-
): Handler<DeprecateDomainCommandInput, DeprecateDomainCommandOutput> {
|
|
94
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
95
|
-
|
|
96
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
97
|
-
|
|
98
|
-
const { logger } = configuration;
|
|
99
|
-
const clientName = "SWFClient";
|
|
100
|
-
const commandName = "DeprecateDomainCommand";
|
|
101
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
102
|
-
logger,
|
|
103
|
-
clientName,
|
|
104
|
-
commandName,
|
|
105
|
-
inputFilterSensitiveLog: DeprecateDomainInput.filterSensitiveLog,
|
|
106
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
107
|
-
};
|
|
108
|
-
const { requestHandler } = configuration;
|
|
109
|
-
return stack.resolve(
|
|
110
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
111
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
112
|
-
handlerExecutionContext
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
private serialize(input: DeprecateDomainCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
117
|
-
return serializeAws_json1_0DeprecateDomainCommand(input, context);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeprecateDomainCommandOutput> {
|
|
121
|
-
return deserializeAws_json1_0DeprecateDomainCommand(output, context);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Start section: command_body_extra
|
|
125
|
-
// End section: command_body_extra
|
|
126
|
-
}
|