@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,141 +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 { RegisterActivityTypeInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0RegisterActivityTypeCommand,
|
|
17
|
-
serializeAws_json1_0RegisterActivityTypeCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface RegisterActivityTypeCommandInput extends RegisterActivityTypeInput {}
|
|
22
|
-
export interface RegisterActivityTypeCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Registers a new <i>activity type</i> along with its configuration
|
|
26
|
-
* settings in the specified domain.</p>
|
|
27
|
-
* <important>
|
|
28
|
-
* <p>A <code>TypeAlreadyExists</code> fault is returned if the type already exists in the
|
|
29
|
-
* domain. You cannot change any configuration settings of the type after its registration, and
|
|
30
|
-
* it must be registered as a new version.</p>
|
|
31
|
-
* </important>
|
|
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>defaultTaskList.name</code>: String constraint. The key is
|
|
53
|
-
* <code>swf:defaultTaskList.name</code>.</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>
|
|
57
|
-
* <code>name</code>: String constraint. The key is <code>swf:name</code>.</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>
|
|
61
|
-
* <code>version</code>: String constraint. The key is
|
|
62
|
-
* <code>swf: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, RegisterActivityTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
76
|
-
* // const { SWFClient, RegisterActivityTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
77
|
-
* const client = new SWFClient(config);
|
|
78
|
-
* const command = new RegisterActivityTypeCommand(input);
|
|
79
|
-
* const response = await client.send(command);
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @see {@link RegisterActivityTypeCommandInput} for command's `input` shape.
|
|
83
|
-
* @see {@link RegisterActivityTypeCommandOutput} for command's `response` shape.
|
|
84
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
export class RegisterActivityTypeCommand extends $Command<
|
|
88
|
-
RegisterActivityTypeCommandInput,
|
|
89
|
-
RegisterActivityTypeCommandOutput,
|
|
90
|
-
SWFClientResolvedConfig
|
|
91
|
-
> {
|
|
92
|
-
// Start section: command_properties
|
|
93
|
-
// End section: command_properties
|
|
94
|
-
|
|
95
|
-
constructor(readonly input: RegisterActivityTypeCommandInput) {
|
|
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<RegisterActivityTypeCommandInput, RegisterActivityTypeCommandOutput> {
|
|
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 = "RegisterActivityTypeCommand";
|
|
116
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
117
|
-
logger,
|
|
118
|
-
clientName,
|
|
119
|
-
commandName,
|
|
120
|
-
inputFilterSensitiveLog: RegisterActivityTypeInput.filterSensitiveLog,
|
|
121
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
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: RegisterActivityTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
132
|
-
return serializeAws_json1_0RegisterActivityTypeCommand(input, context);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RegisterActivityTypeCommandOutput> {
|
|
136
|
-
return deserializeAws_json1_0RegisterActivityTypeCommand(output, context);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Start section: command_body_extra
|
|
140
|
-
// End section: command_body_extra
|
|
141
|
-
}
|
|
@@ -1,118 +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 { RegisterDomainInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0RegisterDomainCommand,
|
|
17
|
-
serializeAws_json1_0RegisterDomainCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface RegisterDomainCommandInput extends RegisterDomainInput {}
|
|
22
|
-
export interface RegisterDomainCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Registers a new domain.</p>
|
|
26
|
-
* <p>
|
|
27
|
-
* <b>Access Control</b>
|
|
28
|
-
* </p>
|
|
29
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
30
|
-
* follows:</p>
|
|
31
|
-
* <ul>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>You cannot use an IAM policy to control domain access for this action. The name of
|
|
34
|
-
* the domain being registered is available as the resource of this action.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
38
|
-
* action.</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* </ul>
|
|
44
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
45
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
46
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
47
|
-
* 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
|
|
48
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
49
|
-
* @example
|
|
50
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
51
|
-
* ```javascript
|
|
52
|
-
* import { SWFClient, RegisterDomainCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
53
|
-
* // const { SWFClient, RegisterDomainCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
54
|
-
* const client = new SWFClient(config);
|
|
55
|
-
* const command = new RegisterDomainCommand(input);
|
|
56
|
-
* const response = await client.send(command);
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @see {@link RegisterDomainCommandInput} for command's `input` shape.
|
|
60
|
-
* @see {@link RegisterDomainCommandOutput} for command's `response` shape.
|
|
61
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
export class RegisterDomainCommand extends $Command<
|
|
65
|
-
RegisterDomainCommandInput,
|
|
66
|
-
RegisterDomainCommandOutput,
|
|
67
|
-
SWFClientResolvedConfig
|
|
68
|
-
> {
|
|
69
|
-
// Start section: command_properties
|
|
70
|
-
// End section: command_properties
|
|
71
|
-
|
|
72
|
-
constructor(readonly input: RegisterDomainCommandInput) {
|
|
73
|
-
// Start section: command_constructor
|
|
74
|
-
super();
|
|
75
|
-
// End section: command_constructor
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
resolveMiddleware(
|
|
82
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
83
|
-
configuration: SWFClientResolvedConfig,
|
|
84
|
-
options?: __HttpHandlerOptions
|
|
85
|
-
): Handler<RegisterDomainCommandInput, RegisterDomainCommandOutput> {
|
|
86
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
87
|
-
|
|
88
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
89
|
-
|
|
90
|
-
const { logger } = configuration;
|
|
91
|
-
const clientName = "SWFClient";
|
|
92
|
-
const commandName = "RegisterDomainCommand";
|
|
93
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
94
|
-
logger,
|
|
95
|
-
clientName,
|
|
96
|
-
commandName,
|
|
97
|
-
inputFilterSensitiveLog: RegisterDomainInput.filterSensitiveLog,
|
|
98
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
99
|
-
};
|
|
100
|
-
const { requestHandler } = configuration;
|
|
101
|
-
return stack.resolve(
|
|
102
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
103
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
104
|
-
handlerExecutionContext
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
private serialize(input: RegisterDomainCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
109
|
-
return serializeAws_json1_0RegisterDomainCommand(input, context);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RegisterDomainCommandOutput> {
|
|
113
|
-
return deserializeAws_json1_0RegisterDomainCommand(output, context);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Start section: command_body_extra
|
|
117
|
-
// End section: command_body_extra
|
|
118
|
-
}
|
|
@@ -1,142 +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 { RegisterWorkflowTypeInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0RegisterWorkflowTypeCommand,
|
|
17
|
-
serializeAws_json1_0RegisterWorkflowTypeCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface RegisterWorkflowTypeCommandInput extends RegisterWorkflowTypeInput {}
|
|
22
|
-
export interface RegisterWorkflowTypeCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Registers a new <i>workflow type</i> and its configuration settings in
|
|
26
|
-
* the specified domain.</p>
|
|
27
|
-
* <p>The retention period for the workflow history is set by the <a>RegisterDomain</a> action.</p>
|
|
28
|
-
* <important>
|
|
29
|
-
* <p>If the type already exists, then a <code>TypeAlreadyExists</code> fault is returned.
|
|
30
|
-
* You cannot change the configuration settings of a workflow type once it is registered and it
|
|
31
|
-
* must be registered as a new version.</p>
|
|
32
|
-
* </important>
|
|
33
|
-
* <p>
|
|
34
|
-
* <b>Access Control</b>
|
|
35
|
-
* </p>
|
|
36
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
37
|
-
* follows:</p>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
41
|
-
* only specified domains.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
45
|
-
* action.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Constrain the following parameters by using a <code>Condition</code> element with
|
|
49
|
-
* the appropriate keys.</p>
|
|
50
|
-
* <ul>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>
|
|
53
|
-
* <code>defaultTaskList.name</code>: String constraint. The key is
|
|
54
|
-
* <code>swf:defaultTaskList.name</code>.</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>
|
|
58
|
-
* <code>name</code>: String constraint. The key is <code>swf:name</code>.</p>
|
|
59
|
-
* </li>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>
|
|
62
|
-
* <code>version</code>: String constraint. The key is
|
|
63
|
-
* <code>swf:version</code>.</p>
|
|
64
|
-
* </li>
|
|
65
|
-
* </ul>
|
|
66
|
-
* </li>
|
|
67
|
-
* </ul>
|
|
68
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
69
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
70
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
71
|
-
* 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
|
|
72
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
73
|
-
* @example
|
|
74
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
75
|
-
* ```javascript
|
|
76
|
-
* import { SWFClient, RegisterWorkflowTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
77
|
-
* // const { SWFClient, RegisterWorkflowTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
78
|
-
* const client = new SWFClient(config);
|
|
79
|
-
* const command = new RegisterWorkflowTypeCommand(input);
|
|
80
|
-
* const response = await client.send(command);
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* @see {@link RegisterWorkflowTypeCommandInput} for command's `input` shape.
|
|
84
|
-
* @see {@link RegisterWorkflowTypeCommandOutput} for command's `response` shape.
|
|
85
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
88
|
-
export class RegisterWorkflowTypeCommand extends $Command<
|
|
89
|
-
RegisterWorkflowTypeCommandInput,
|
|
90
|
-
RegisterWorkflowTypeCommandOutput,
|
|
91
|
-
SWFClientResolvedConfig
|
|
92
|
-
> {
|
|
93
|
-
// Start section: command_properties
|
|
94
|
-
// End section: command_properties
|
|
95
|
-
|
|
96
|
-
constructor(readonly input: RegisterWorkflowTypeCommandInput) {
|
|
97
|
-
// Start section: command_constructor
|
|
98
|
-
super();
|
|
99
|
-
// End section: command_constructor
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
|
-
resolveMiddleware(
|
|
106
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
107
|
-
configuration: SWFClientResolvedConfig,
|
|
108
|
-
options?: __HttpHandlerOptions
|
|
109
|
-
): Handler<RegisterWorkflowTypeCommandInput, RegisterWorkflowTypeCommandOutput> {
|
|
110
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
111
|
-
|
|
112
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
113
|
-
|
|
114
|
-
const { logger } = configuration;
|
|
115
|
-
const clientName = "SWFClient";
|
|
116
|
-
const commandName = "RegisterWorkflowTypeCommand";
|
|
117
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
118
|
-
logger,
|
|
119
|
-
clientName,
|
|
120
|
-
commandName,
|
|
121
|
-
inputFilterSensitiveLog: RegisterWorkflowTypeInput.filterSensitiveLog,
|
|
122
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
123
|
-
};
|
|
124
|
-
const { requestHandler } = configuration;
|
|
125
|
-
return stack.resolve(
|
|
126
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
127
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
128
|
-
handlerExecutionContext
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
private serialize(input: RegisterWorkflowTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
133
|
-
return serializeAws_json1_0RegisterWorkflowTypeCommand(input, context);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RegisterWorkflowTypeCommandOutput> {
|
|
137
|
-
return deserializeAws_json1_0RegisterWorkflowTypeCommand(output, context);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Start section: command_body_extra
|
|
141
|
-
// End section: command_body_extra
|
|
142
|
-
}
|
|
@@ -1,139 +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 { RequestCancelWorkflowExecutionInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0RequestCancelWorkflowExecutionCommand,
|
|
17
|
-
serializeAws_json1_0RequestCancelWorkflowExecutionCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface RequestCancelWorkflowExecutionCommandInput extends RequestCancelWorkflowExecutionInput {}
|
|
22
|
-
export interface RequestCancelWorkflowExecutionCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Records a <code>WorkflowExecutionCancelRequested</code> event in the currently running
|
|
26
|
-
* workflow execution identified by the given domain, workflowId, and runId. This logically
|
|
27
|
-
* requests the cancellation of the workflow execution as a whole. It is up to the decider to
|
|
28
|
-
* take appropriate actions when it receives an execution history with this event.</p>
|
|
29
|
-
*
|
|
30
|
-
* <note>
|
|
31
|
-
* <p>If the runId isn't specified, the <code>WorkflowExecutionCancelRequested</code> event
|
|
32
|
-
* is recorded in the history of the current open workflow execution with the specified
|
|
33
|
-
* workflowId in the domain.</p>
|
|
34
|
-
* </note>
|
|
35
|
-
*
|
|
36
|
-
* <note>
|
|
37
|
-
* <p>Because this action allows the workflow to properly clean up and gracefully close, it
|
|
38
|
-
* should be used instead of <a>TerminateWorkflowExecution</a> when
|
|
39
|
-
* possible.</p>
|
|
40
|
-
* </note>
|
|
41
|
-
* <p>
|
|
42
|
-
* <b>Access Control</b>
|
|
43
|
-
* </p>
|
|
44
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
45
|
-
* follows:</p>
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
49
|
-
* only specified domains.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
53
|
-
* action.</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* </ul>
|
|
59
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
60
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
61
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
62
|
-
* 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
|
|
63
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
64
|
-
* @example
|
|
65
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
66
|
-
* ```javascript
|
|
67
|
-
* import { SWFClient, RequestCancelWorkflowExecutionCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
68
|
-
* // const { SWFClient, RequestCancelWorkflowExecutionCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
69
|
-
* const client = new SWFClient(config);
|
|
70
|
-
* const command = new RequestCancelWorkflowExecutionCommand(input);
|
|
71
|
-
* const response = await client.send(command);
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
|
-
* @see {@link RequestCancelWorkflowExecutionCommandInput} for command's `input` shape.
|
|
75
|
-
* @see {@link RequestCancelWorkflowExecutionCommandOutput} for command's `response` shape.
|
|
76
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
|
-
export class RequestCancelWorkflowExecutionCommand extends $Command<
|
|
80
|
-
RequestCancelWorkflowExecutionCommandInput,
|
|
81
|
-
RequestCancelWorkflowExecutionCommandOutput,
|
|
82
|
-
SWFClientResolvedConfig
|
|
83
|
-
> {
|
|
84
|
-
// Start section: command_properties
|
|
85
|
-
// End section: command_properties
|
|
86
|
-
|
|
87
|
-
constructor(readonly input: RequestCancelWorkflowExecutionCommandInput) {
|
|
88
|
-
// Start section: command_constructor
|
|
89
|
-
super();
|
|
90
|
-
// End section: command_constructor
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
resolveMiddleware(
|
|
97
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
98
|
-
configuration: SWFClientResolvedConfig,
|
|
99
|
-
options?: __HttpHandlerOptions
|
|
100
|
-
): Handler<RequestCancelWorkflowExecutionCommandInput, RequestCancelWorkflowExecutionCommandOutput> {
|
|
101
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
102
|
-
|
|
103
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
104
|
-
|
|
105
|
-
const { logger } = configuration;
|
|
106
|
-
const clientName = "SWFClient";
|
|
107
|
-
const commandName = "RequestCancelWorkflowExecutionCommand";
|
|
108
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
109
|
-
logger,
|
|
110
|
-
clientName,
|
|
111
|
-
commandName,
|
|
112
|
-
inputFilterSensitiveLog: RequestCancelWorkflowExecutionInput.filterSensitiveLog,
|
|
113
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
114
|
-
};
|
|
115
|
-
const { requestHandler } = configuration;
|
|
116
|
-
return stack.resolve(
|
|
117
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
118
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
119
|
-
handlerExecutionContext
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
private serialize(
|
|
124
|
-
input: RequestCancelWorkflowExecutionCommandInput,
|
|
125
|
-
context: __SerdeContext
|
|
126
|
-
): Promise<__HttpRequest> {
|
|
127
|
-
return serializeAws_json1_0RequestCancelWorkflowExecutionCommand(input, context);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
private deserialize(
|
|
131
|
-
output: __HttpResponse,
|
|
132
|
-
context: __SerdeContext
|
|
133
|
-
): Promise<RequestCancelWorkflowExecutionCommandOutput> {
|
|
134
|
-
return deserializeAws_json1_0RequestCancelWorkflowExecutionCommand(output, context);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Start section: command_body_extra
|
|
138
|
-
// End section: command_body_extra
|
|
139
|
-
}
|
|
@@ -1,139 +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 { RespondActivityTaskCanceledInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0RespondActivityTaskCanceledCommand,
|
|
17
|
-
serializeAws_json1_0RespondActivityTaskCanceledCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface RespondActivityTaskCanceledCommandInput extends RespondActivityTaskCanceledInput {}
|
|
22
|
-
export interface RespondActivityTaskCanceledCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
|
|
26
|
-
* by the <code>taskToken</code> was successfully canceled. Additional <code>details</code> can
|
|
27
|
-
* be provided using the <code>details</code> argument.</p>
|
|
28
|
-
*
|
|
29
|
-
* <p>These <code>details</code> (if provided) appear in the
|
|
30
|
-
* <code>ActivityTaskCanceled</code> event added to the workflow history.</p>
|
|
31
|
-
*
|
|
32
|
-
* <important>
|
|
33
|
-
* <p>Only use this operation if the <code>canceled</code> flag of a <a>RecordActivityTaskHeartbeat</a> request returns <code>true</code> and if the
|
|
34
|
-
* activity can be safely undone or abandoned.</p>
|
|
35
|
-
* </important>
|
|
36
|
-
*
|
|
37
|
-
* <p>A task is considered open from the time that it is scheduled until it is closed.
|
|
38
|
-
* Therefore a task is reported as open while a worker is processing it. A task is closed after
|
|
39
|
-
* it has been specified in a call to <a>RespondActivityTaskCompleted</a>,
|
|
40
|
-
* RespondActivityTaskCanceled, <a>RespondActivityTaskFailed</a>, or the task has
|
|
41
|
-
* <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
|
|
42
|
-
* out</a>.</p>
|
|
43
|
-
*
|
|
44
|
-
* <p>
|
|
45
|
-
* <b>Access Control</b>
|
|
46
|
-
* </p>
|
|
47
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
48
|
-
* follows:</p>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
52
|
-
* only specified domains.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
56
|
-
* action.</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* </ul>
|
|
62
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
63
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
64
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
65
|
-
* 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
|
|
66
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
67
|
-
* @example
|
|
68
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
69
|
-
* ```javascript
|
|
70
|
-
* import { SWFClient, RespondActivityTaskCanceledCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
71
|
-
* // const { SWFClient, RespondActivityTaskCanceledCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
72
|
-
* const client = new SWFClient(config);
|
|
73
|
-
* const command = new RespondActivityTaskCanceledCommand(input);
|
|
74
|
-
* const response = await client.send(command);
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @see {@link RespondActivityTaskCanceledCommandInput} for command's `input` shape.
|
|
78
|
-
* @see {@link RespondActivityTaskCanceledCommandOutput} for command's `response` shape.
|
|
79
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
export class RespondActivityTaskCanceledCommand extends $Command<
|
|
83
|
-
RespondActivityTaskCanceledCommandInput,
|
|
84
|
-
RespondActivityTaskCanceledCommandOutput,
|
|
85
|
-
SWFClientResolvedConfig
|
|
86
|
-
> {
|
|
87
|
-
// Start section: command_properties
|
|
88
|
-
// End section: command_properties
|
|
89
|
-
|
|
90
|
-
constructor(readonly input: RespondActivityTaskCanceledCommandInput) {
|
|
91
|
-
// Start section: command_constructor
|
|
92
|
-
super();
|
|
93
|
-
// End section: command_constructor
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
|
-
resolveMiddleware(
|
|
100
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
101
|
-
configuration: SWFClientResolvedConfig,
|
|
102
|
-
options?: __HttpHandlerOptions
|
|
103
|
-
): Handler<RespondActivityTaskCanceledCommandInput, RespondActivityTaskCanceledCommandOutput> {
|
|
104
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
105
|
-
|
|
106
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
107
|
-
|
|
108
|
-
const { logger } = configuration;
|
|
109
|
-
const clientName = "SWFClient";
|
|
110
|
-
const commandName = "RespondActivityTaskCanceledCommand";
|
|
111
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
112
|
-
logger,
|
|
113
|
-
clientName,
|
|
114
|
-
commandName,
|
|
115
|
-
inputFilterSensitiveLog: RespondActivityTaskCanceledInput.filterSensitiveLog,
|
|
116
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
117
|
-
};
|
|
118
|
-
const { requestHandler } = configuration;
|
|
119
|
-
return stack.resolve(
|
|
120
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
121
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
122
|
-
handlerExecutionContext
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
private serialize(input: RespondActivityTaskCanceledCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
127
|
-
return serializeAws_json1_0RespondActivityTaskCanceledCommand(input, context);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
private deserialize(
|
|
131
|
-
output: __HttpResponse,
|
|
132
|
-
context: __SerdeContext
|
|
133
|
-
): Promise<RespondActivityTaskCanceledCommandOutput> {
|
|
134
|
-
return deserializeAws_json1_0RespondActivityTaskCanceledCommand(output, context);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Start section: command_body_extra
|
|
138
|
-
// End section: command_body_extra
|
|
139
|
-
}
|