@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,98 +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 { TagResourceInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0TagResourceCommand,
|
|
17
|
-
serializeAws_json1_0TagResourceCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface TagResourceCommandInput extends TagResourceInput {}
|
|
22
|
-
export interface TagResourceCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Add a tag to a Amazon SWF domain.</p>
|
|
26
|
-
* <note>
|
|
27
|
-
* <p>Amazon SWF supports a maximum of 50 tags per resource.</p>
|
|
28
|
-
* </note>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { SWFClient, TagResourceCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
33
|
-
* // const { SWFClient, TagResourceCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
34
|
-
* const client = new SWFClient(config);
|
|
35
|
-
* const command = new TagResourceCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class TagResourceCommand extends $Command<
|
|
45
|
-
TagResourceCommandInput,
|
|
46
|
-
TagResourceCommandOutput,
|
|
47
|
-
SWFClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: TagResourceCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: SWFClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "SWFClient";
|
|
72
|
-
const commandName = "TagResourceCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: TagResourceInput.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_0TagResourceCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_0TagResourceCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -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 { TerminateWorkflowExecutionInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0TerminateWorkflowExecutionCommand,
|
|
17
|
-
serializeAws_json1_0TerminateWorkflowExecutionCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface TerminateWorkflowExecutionCommandInput extends TerminateWorkflowExecutionInput {}
|
|
22
|
-
export interface TerminateWorkflowExecutionCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Records a <code>WorkflowExecutionTerminated</code> event and forces closure of the
|
|
26
|
-
* workflow execution identified by the given domain, runId, and workflowId. The child policy,
|
|
27
|
-
* registered with the workflow type or specified when starting this execution, is applied to any
|
|
28
|
-
* open child workflow executions of this workflow execution.</p>
|
|
29
|
-
*
|
|
30
|
-
* <important>
|
|
31
|
-
* <p>If the identified workflow execution was in progress, it is terminated
|
|
32
|
-
* immediately.</p>
|
|
33
|
-
* </important>
|
|
34
|
-
*
|
|
35
|
-
* <note>
|
|
36
|
-
* <p>If a runId isn't specified, then the <code>WorkflowExecutionTerminated</code> event
|
|
37
|
-
* is recorded in the history of the current open workflow with the matching workflowId in the
|
|
38
|
-
* domain.</p>
|
|
39
|
-
* </note>
|
|
40
|
-
*
|
|
41
|
-
* <note>
|
|
42
|
-
* <p>You should consider using <a>RequestCancelWorkflowExecution</a> action
|
|
43
|
-
* instead because it allows the workflow to gracefully close while <a>TerminateWorkflowExecution</a> doesn't.</p>
|
|
44
|
-
* </note>
|
|
45
|
-
*
|
|
46
|
-
* <p>
|
|
47
|
-
* <b>Access Control</b>
|
|
48
|
-
* </p>
|
|
49
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
50
|
-
* follows:</p>
|
|
51
|
-
* <ul>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
54
|
-
* only specified domains.</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
58
|
-
* action.</p>
|
|
59
|
-
* </li>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
62
|
-
* </li>
|
|
63
|
-
* </ul>
|
|
64
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
65
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
66
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
67
|
-
* 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
|
|
68
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
69
|
-
* @example
|
|
70
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
71
|
-
* ```javascript
|
|
72
|
-
* import { SWFClient, TerminateWorkflowExecutionCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
73
|
-
* // const { SWFClient, TerminateWorkflowExecutionCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
74
|
-
* const client = new SWFClient(config);
|
|
75
|
-
* const command = new TerminateWorkflowExecutionCommand(input);
|
|
76
|
-
* const response = await client.send(command);
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* @see {@link TerminateWorkflowExecutionCommandInput} for command's `input` shape.
|
|
80
|
-
* @see {@link TerminateWorkflowExecutionCommandOutput} for command's `response` shape.
|
|
81
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
export class TerminateWorkflowExecutionCommand extends $Command<
|
|
85
|
-
TerminateWorkflowExecutionCommandInput,
|
|
86
|
-
TerminateWorkflowExecutionCommandOutput,
|
|
87
|
-
SWFClientResolvedConfig
|
|
88
|
-
> {
|
|
89
|
-
// Start section: command_properties
|
|
90
|
-
// End section: command_properties
|
|
91
|
-
|
|
92
|
-
constructor(readonly input: TerminateWorkflowExecutionCommandInput) {
|
|
93
|
-
// Start section: command_constructor
|
|
94
|
-
super();
|
|
95
|
-
// End section: command_constructor
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
resolveMiddleware(
|
|
102
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
103
|
-
configuration: SWFClientResolvedConfig,
|
|
104
|
-
options?: __HttpHandlerOptions
|
|
105
|
-
): Handler<TerminateWorkflowExecutionCommandInput, TerminateWorkflowExecutionCommandOutput> {
|
|
106
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
107
|
-
|
|
108
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
109
|
-
|
|
110
|
-
const { logger } = configuration;
|
|
111
|
-
const clientName = "SWFClient";
|
|
112
|
-
const commandName = "TerminateWorkflowExecutionCommand";
|
|
113
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
114
|
-
logger,
|
|
115
|
-
clientName,
|
|
116
|
-
commandName,
|
|
117
|
-
inputFilterSensitiveLog: TerminateWorkflowExecutionInput.filterSensitiveLog,
|
|
118
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
119
|
-
};
|
|
120
|
-
const { requestHandler } = configuration;
|
|
121
|
-
return stack.resolve(
|
|
122
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
123
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
124
|
-
handlerExecutionContext
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
private serialize(input: TerminateWorkflowExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
129
|
-
return serializeAws_json1_0TerminateWorkflowExecutionCommand(input, context);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
private deserialize(
|
|
133
|
-
output: __HttpResponse,
|
|
134
|
-
context: __SerdeContext
|
|
135
|
-
): Promise<TerminateWorkflowExecutionCommandOutput> {
|
|
136
|
-
return deserializeAws_json1_0TerminateWorkflowExecutionCommand(output, context);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Start section: command_body_extra
|
|
140
|
-
// End section: command_body_extra
|
|
141
|
-
}
|
|
@@ -1,136 +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 { UndeprecateActivityTypeInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0UndeprecateActivityTypeCommand,
|
|
17
|
-
serializeAws_json1_0UndeprecateActivityTypeCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface UndeprecateActivityTypeCommandInput extends UndeprecateActivityTypeInput {}
|
|
22
|
-
export interface UndeprecateActivityTypeCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Undeprecates a previously deprecated <i>activity type</i>. After an activity type has
|
|
26
|
-
* been undeprecated, you can create new tasks of that activity type.</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>activityType.name</code>: String constraint. The key is
|
|
52
|
-
* <code>swf:activityType.name</code>.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <code>activityType.version</code>: String constraint. The key is
|
|
57
|
-
* <code>swf:activityType.version</code>.</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* </ul>
|
|
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, UndeprecateActivityTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
71
|
-
* // const { SWFClient, UndeprecateActivityTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
72
|
-
* const client = new SWFClient(config);
|
|
73
|
-
* const command = new UndeprecateActivityTypeCommand(input);
|
|
74
|
-
* const response = await client.send(command);
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @see {@link UndeprecateActivityTypeCommandInput} for command's `input` shape.
|
|
78
|
-
* @see {@link UndeprecateActivityTypeCommandOutput} for command's `response` shape.
|
|
79
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
export class UndeprecateActivityTypeCommand extends $Command<
|
|
83
|
-
UndeprecateActivityTypeCommandInput,
|
|
84
|
-
UndeprecateActivityTypeCommandOutput,
|
|
85
|
-
SWFClientResolvedConfig
|
|
86
|
-
> {
|
|
87
|
-
// Start section: command_properties
|
|
88
|
-
// End section: command_properties
|
|
89
|
-
|
|
90
|
-
constructor(readonly input: UndeprecateActivityTypeCommandInput) {
|
|
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<UndeprecateActivityTypeCommandInput, UndeprecateActivityTypeCommandOutput> {
|
|
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 = "UndeprecateActivityTypeCommand";
|
|
111
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
112
|
-
logger,
|
|
113
|
-
clientName,
|
|
114
|
-
commandName,
|
|
115
|
-
inputFilterSensitiveLog: UndeprecateActivityTypeInput.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: UndeprecateActivityTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
127
|
-
return serializeAws_json1_0UndeprecateActivityTypeCommand(input, context);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UndeprecateActivityTypeCommandOutput> {
|
|
131
|
-
return deserializeAws_json1_0UndeprecateActivityTypeCommand(output, context);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Start section: command_body_extra
|
|
135
|
-
// End section: command_body_extra
|
|
136
|
-
}
|
|
@@ -1,123 +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 { UndeprecateDomainInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0UndeprecateDomainCommand,
|
|
17
|
-
serializeAws_json1_0UndeprecateDomainCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface UndeprecateDomainCommandInput extends UndeprecateDomainInput {}
|
|
22
|
-
export interface UndeprecateDomainCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Undeprecates a previously deprecated domain. After a domain has been undeprecated it can be used
|
|
26
|
-
* to create new workflow executions or register new types.</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>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* </ul>
|
|
49
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
50
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
51
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
52
|
-
* 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
|
|
53
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
54
|
-
* @example
|
|
55
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
56
|
-
* ```javascript
|
|
57
|
-
* import { SWFClient, UndeprecateDomainCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
58
|
-
* // const { SWFClient, UndeprecateDomainCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
59
|
-
* const client = new SWFClient(config);
|
|
60
|
-
* const command = new UndeprecateDomainCommand(input);
|
|
61
|
-
* const response = await client.send(command);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @see {@link UndeprecateDomainCommandInput} for command's `input` shape.
|
|
65
|
-
* @see {@link UndeprecateDomainCommandOutput} for command's `response` shape.
|
|
66
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
export class UndeprecateDomainCommand extends $Command<
|
|
70
|
-
UndeprecateDomainCommandInput,
|
|
71
|
-
UndeprecateDomainCommandOutput,
|
|
72
|
-
SWFClientResolvedConfig
|
|
73
|
-
> {
|
|
74
|
-
// Start section: command_properties
|
|
75
|
-
// End section: command_properties
|
|
76
|
-
|
|
77
|
-
constructor(readonly input: UndeprecateDomainCommandInput) {
|
|
78
|
-
// Start section: command_constructor
|
|
79
|
-
super();
|
|
80
|
-
// End section: command_constructor
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
resolveMiddleware(
|
|
87
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
88
|
-
configuration: SWFClientResolvedConfig,
|
|
89
|
-
options?: __HttpHandlerOptions
|
|
90
|
-
): Handler<UndeprecateDomainCommandInput, UndeprecateDomainCommandOutput> {
|
|
91
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
92
|
-
|
|
93
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
94
|
-
|
|
95
|
-
const { logger } = configuration;
|
|
96
|
-
const clientName = "SWFClient";
|
|
97
|
-
const commandName = "UndeprecateDomainCommand";
|
|
98
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
99
|
-
logger,
|
|
100
|
-
clientName,
|
|
101
|
-
commandName,
|
|
102
|
-
inputFilterSensitiveLog: UndeprecateDomainInput.filterSensitiveLog,
|
|
103
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
104
|
-
};
|
|
105
|
-
const { requestHandler } = configuration;
|
|
106
|
-
return stack.resolve(
|
|
107
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
108
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
109
|
-
handlerExecutionContext
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private serialize(input: UndeprecateDomainCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
114
|
-
return serializeAws_json1_0UndeprecateDomainCommand(input, context);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UndeprecateDomainCommandOutput> {
|
|
118
|
-
return deserializeAws_json1_0UndeprecateDomainCommand(output, context);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Start section: command_body_extra
|
|
122
|
-
// End section: command_body_extra
|
|
123
|
-
}
|
|
@@ -1,136 +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 { UndeprecateWorkflowTypeInput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_0UndeprecateWorkflowTypeCommand,
|
|
17
|
-
serializeAws_json1_0UndeprecateWorkflowTypeCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_0";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
20
|
-
|
|
21
|
-
export interface UndeprecateWorkflowTypeCommandInput extends UndeprecateWorkflowTypeInput {}
|
|
22
|
-
export interface UndeprecateWorkflowTypeCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Undeprecates a previously deprecated <i>workflow type</i>. After a workflow type has
|
|
26
|
-
* been undeprecated, you can create new executions of that type. </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>workflowType.name</code>: String constraint. The key is
|
|
52
|
-
* <code>swf:workflowType.name</code>.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <code>workflowType.version</code>: String constraint. The key is
|
|
57
|
-
* <code>swf:workflowType.version</code>.</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* </ul>
|
|
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, UndeprecateWorkflowTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
71
|
-
* // const { SWFClient, UndeprecateWorkflowTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
72
|
-
* const client = new SWFClient(config);
|
|
73
|
-
* const command = new UndeprecateWorkflowTypeCommand(input);
|
|
74
|
-
* const response = await client.send(command);
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @see {@link UndeprecateWorkflowTypeCommandInput} for command's `input` shape.
|
|
78
|
-
* @see {@link UndeprecateWorkflowTypeCommandOutput} for command's `response` shape.
|
|
79
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
export class UndeprecateWorkflowTypeCommand extends $Command<
|
|
83
|
-
UndeprecateWorkflowTypeCommandInput,
|
|
84
|
-
UndeprecateWorkflowTypeCommandOutput,
|
|
85
|
-
SWFClientResolvedConfig
|
|
86
|
-
> {
|
|
87
|
-
// Start section: command_properties
|
|
88
|
-
// End section: command_properties
|
|
89
|
-
|
|
90
|
-
constructor(readonly input: UndeprecateWorkflowTypeCommandInput) {
|
|
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<UndeprecateWorkflowTypeCommandInput, UndeprecateWorkflowTypeCommandOutput> {
|
|
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 = "UndeprecateWorkflowTypeCommand";
|
|
111
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
112
|
-
logger,
|
|
113
|
-
clientName,
|
|
114
|
-
commandName,
|
|
115
|
-
inputFilterSensitiveLog: UndeprecateWorkflowTypeInput.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: UndeprecateWorkflowTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
127
|
-
return serializeAws_json1_0UndeprecateWorkflowTypeCommand(input, context);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UndeprecateWorkflowTypeCommandOutput> {
|
|
131
|
-
return deserializeAws_json1_0UndeprecateWorkflowTypeCommand(output, context);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Start section: command_body_extra
|
|
135
|
-
// End section: command_body_extra
|
|
136
|
-
}
|