@aws-sdk/client-swf 3.32.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 +44 -0
- package/{dist/cjs → dist-cjs}/SWF.js +1 -2
- package/{dist/cjs → dist-cjs}/SWFClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CountClosedWorkflowExecutionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CountOpenWorkflowExecutionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CountPendingActivityTasksCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CountPendingDecisionTasksCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeprecateActivityTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeprecateDomainCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeprecateWorkflowTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeActivityTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeDomainCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeWorkflowExecutionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeWorkflowTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetWorkflowExecutionHistoryCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListActivityTypesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListClosedWorkflowExecutionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListDomainsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListOpenWorkflowExecutionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListWorkflowTypesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PollForActivityTaskCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PollForDecisionTaskCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RecordActivityTaskHeartbeatCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RegisterActivityTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RegisterDomainCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RegisterWorkflowTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RequestCancelWorkflowExecutionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RespondActivityTaskCanceledCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RespondActivityTaskCompletedCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RespondActivityTaskFailedCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RespondDecisionTaskCompletedCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/SignalWorkflowExecutionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartWorkflowExecutionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TerminateWorkflowExecutionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UndeprecateActivityTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UndeprecateDomainCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UndeprecateWorkflowTypeCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/GetWorkflowExecutionHistoryPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListActivityTypesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListClosedWorkflowExecutionsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListDomainsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListOpenWorkflowExecutionsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListWorkflowTypesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/PollForDecisionTaskPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_0.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/SWF.js +2 -21
- package/{dist/es → dist-es}/SWFClient.js +2 -26
- package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +39 -0
- package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +39 -0
- package/dist-es/commands/CountPendingActivityTasksCommand.js +39 -0
- package/dist-es/commands/CountPendingDecisionTasksCommand.js +39 -0
- package/dist-es/commands/DeprecateActivityTypeCommand.js +39 -0
- package/dist-es/commands/DeprecateDomainCommand.js +39 -0
- package/dist-es/commands/DeprecateWorkflowTypeCommand.js +39 -0
- package/dist-es/commands/DescribeActivityTypeCommand.js +39 -0
- package/dist-es/commands/DescribeDomainCommand.js +39 -0
- package/dist-es/commands/DescribeWorkflowExecutionCommand.js +39 -0
- package/dist-es/commands/DescribeWorkflowTypeCommand.js +39 -0
- package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +39 -0
- package/dist-es/commands/ListActivityTypesCommand.js +39 -0
- package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +39 -0
- package/dist-es/commands/ListDomainsCommand.js +39 -0
- package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/dist-es/commands/ListWorkflowTypesCommand.js +39 -0
- package/dist-es/commands/PollForActivityTaskCommand.js +39 -0
- package/dist-es/commands/PollForDecisionTaskCommand.js +39 -0
- package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +39 -0
- package/dist-es/commands/RegisterActivityTypeCommand.js +39 -0
- package/dist-es/commands/RegisterDomainCommand.js +39 -0
- package/dist-es/commands/RegisterWorkflowTypeCommand.js +39 -0
- package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +39 -0
- package/dist-es/commands/RespondActivityTaskCanceledCommand.js +39 -0
- package/dist-es/commands/RespondActivityTaskCompletedCommand.js +39 -0
- package/dist-es/commands/RespondActivityTaskFailedCommand.js +39 -0
- package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +39 -0
- package/dist-es/commands/SignalWorkflowExecutionCommand.js +39 -0
- package/dist-es/commands/StartWorkflowExecutionCommand.js +39 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -33
- package/dist-es/commands/TerminateWorkflowExecutionCommand.js +39 -0
- package/dist-es/commands/UndeprecateActivityTypeCommand.js +39 -0
- package/dist-es/commands/UndeprecateDomainCommand.js +39 -0
- package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +39 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -454
- package/{dist/es → dist-es}/pagination/GetWorkflowExecutionHistoryPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListActivityTypesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListClosedWorkflowExecutionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListDomainsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListOpenWorkflowExecutionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListWorkflowTypesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/PollForDecisionTaskPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_0.js +651 -657
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/SWF.d.ts +2 -2
- package/{dist/types → dist-types}/SWFClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CountClosedWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CountOpenWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CountPendingActivityTasksCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CountPendingDecisionTasksCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeprecateActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeprecateDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeprecateWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetWorkflowExecutionHistoryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListActivityTypesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListClosedWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListDomainsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListOpenWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListWorkflowTypesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PollForActivityTaskCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PollForDecisionTaskCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RecordActivityTaskHeartbeatCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RegisterActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RegisterDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RegisterWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RequestCancelWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RespondActivityTaskCanceledCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RespondActivityTaskCompletedCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RespondActivityTaskFailedCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RespondDecisionTaskCompletedCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/SignalWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TerminateWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UndeprecateActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UndeprecateDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UndeprecateWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/GetWorkflowExecutionHistoryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListActivityTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListClosedWorkflowExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDomainsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListOpenWorkflowExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListWorkflowTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/PollForDecisionTaskPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_0.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SWF.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/SWFClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CountClosedWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CountOpenWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CountPendingActivityTasksCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CountPendingDecisionTasksCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeprecateActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeprecateDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeprecateWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetWorkflowExecutionHistoryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListActivityTypesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListClosedWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListDomainsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListOpenWorkflowExecutionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListWorkflowTypesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/PollForActivityTaskCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/PollForDecisionTaskCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RecordActivityTaskHeartbeatCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RegisterActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RegisterDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RegisterWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RequestCancelWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RespondActivityTaskCanceledCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RespondActivityTaskCompletedCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RespondActivityTaskFailedCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RespondDecisionTaskCompletedCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/SignalWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/StartWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TerminateWorkflowExecutionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UndeprecateActivityTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UndeprecateDomainCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UndeprecateWorkflowTypeCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetWorkflowExecutionHistoryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListActivityTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListClosedWorkflowExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDomainsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListOpenWorkflowExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListWorkflowTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/PollForDecisionTaskPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_0.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/SWF.ts +0 -2639
- package/SWFClient.ts +0 -445
- package/commands/CountClosedWorkflowExecutionsCommand.ts +0 -143
- package/commands/CountOpenWorkflowExecutionsCommand.ts +0 -143
- package/commands/CountPendingActivityTasksCommand.ts +0 -124
- package/commands/CountPendingDecisionTasksCommand.ts +0 -124
- package/commands/DeprecateActivityTypeCommand.ts +0 -136
- package/commands/DeprecateDomainCommand.ts +0 -125
- package/commands/DeprecateWorkflowTypeCommand.ts +0 -137
- package/commands/DescribeActivityTypeCommand.ts +0 -132
- package/commands/DescribeDomainCommand.ts +0 -118
- package/commands/DescribeWorkflowExecutionCommand.ts +0 -125
- package/commands/DescribeWorkflowTypeCommand.ts +0 -132
- package/commands/GetWorkflowExecutionHistoryCommand.ts +0 -126
- package/commands/ListActivityTypesCommand.ts +0 -121
- package/commands/ListClosedWorkflowExecutionsCommand.ts +0 -144
- package/commands/ListDomainsCommand.ts +0 -125
- package/commands/ListOpenWorkflowExecutionsCommand.ts +0 -144
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/ListWorkflowTypesCommand.ts +0 -118
- package/commands/PollForActivityTaskCommand.ts +0 -129
- package/commands/PollForDecisionTaskCommand.ts +0 -141
- package/commands/RecordActivityTaskHeartbeatCommand.ts +0 -144
- package/commands/RegisterActivityTypeCommand.ts +0 -140
- package/commands/RegisterDomainCommand.ts +0 -117
- package/commands/RegisterWorkflowTypeCommand.ts +0 -141
- package/commands/RequestCancelWorkflowExecutionCommand.ts +0 -138
- package/commands/RespondActivityTaskCanceledCommand.ts +0 -138
- package/commands/RespondActivityTaskCompletedCommand.ts +0 -136
- package/commands/RespondActivityTaskFailedCommand.ts +0 -129
- package/commands/RespondDecisionTaskCompletedCommand.ts +0 -116
- package/commands/SignalWorkflowExecutionCommand.ts +0 -132
- package/commands/StartWorkflowExecutionCommand.ts +0 -159
- package/commands/TagResourceCommand.ts +0 -97
- package/commands/TerminateWorkflowExecutionCommand.ts +0 -140
- package/commands/UndeprecateActivityTypeCommand.ts +0 -135
- package/commands/UndeprecateDomainCommand.ts +0 -122
- package/commands/UndeprecateWorkflowTypeCommand.ts +0 -135
- package/commands/UntagResourceCommand.ts +0 -94
- 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/package.json +0 -91
- 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 +0 -111
- package/dist/es/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist/es/commands/CountOpenWorkflowExecutionsCommand.js +0 -111
- package/dist/es/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist/es/commands/CountPendingActivityTasksCommand.js +0 -92
- package/dist/es/commands/CountPendingActivityTasksCommand.js.map +0 -1
- package/dist/es/commands/CountPendingDecisionTasksCommand.js +0 -92
- package/dist/es/commands/CountPendingDecisionTasksCommand.js.map +0 -1
- package/dist/es/commands/DeprecateActivityTypeCommand.js +0 -107
- package/dist/es/commands/DeprecateActivityTypeCommand.js.map +0 -1
- package/dist/es/commands/DeprecateDomainCommand.js +0 -96
- package/dist/es/commands/DeprecateDomainCommand.js.map +0 -1
- package/dist/es/commands/DeprecateWorkflowTypeCommand.js +0 -108
- package/dist/es/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist/es/commands/DescribeActivityTypeCommand.js +0 -103
- package/dist/es/commands/DescribeActivityTypeCommand.js.map +0 -1
- package/dist/es/commands/DescribeDomainCommand.js +0 -89
- package/dist/es/commands/DescribeDomainCommand.js.map +0 -1
- package/dist/es/commands/DescribeWorkflowExecutionCommand.js +0 -93
- package/dist/es/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
- package/dist/es/commands/DescribeWorkflowTypeCommand.js +0 -103
- package/dist/es/commands/DescribeWorkflowTypeCommand.js.map +0 -1
- package/dist/es/commands/GetWorkflowExecutionHistoryCommand.js +0 -94
- package/dist/es/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
- package/dist/es/commands/ListActivityTypesCommand.js +0 -92
- package/dist/es/commands/ListActivityTypesCommand.js.map +0 -1
- package/dist/es/commands/ListClosedWorkflowExecutionsCommand.js +0 -112
- package/dist/es/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist/es/commands/ListDomainsCommand.js +0 -96
- package/dist/es/commands/ListDomainsCommand.js.map +0 -1
- package/dist/es/commands/ListOpenWorkflowExecutionsCommand.js +0 -112
- package/dist/es/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ListWorkflowTypesCommand.js +0 -89
- package/dist/es/commands/ListWorkflowTypesCommand.js.map +0 -1
- package/dist/es/commands/PollForActivityTaskCommand.js +0 -100
- package/dist/es/commands/PollForActivityTaskCommand.js.map +0 -1
- package/dist/es/commands/PollForDecisionTaskCommand.js +0 -112
- package/dist/es/commands/PollForDecisionTaskCommand.js.map +0 -1
- package/dist/es/commands/RecordActivityTaskHeartbeatCommand.js +0 -112
- package/dist/es/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
- package/dist/es/commands/RegisterActivityTypeCommand.js +0 -111
- package/dist/es/commands/RegisterActivityTypeCommand.js.map +0 -1
- package/dist/es/commands/RegisterDomainCommand.js +0 -88
- package/dist/es/commands/RegisterDomainCommand.js.map +0 -1
- package/dist/es/commands/RegisterWorkflowTypeCommand.js +0 -112
- package/dist/es/commands/RegisterWorkflowTypeCommand.js.map +0 -1
- package/dist/es/commands/RequestCancelWorkflowExecutionCommand.js +0 -103
- package/dist/es/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
- package/dist/es/commands/RespondActivityTaskCanceledCommand.js +0 -106
- package/dist/es/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
- package/dist/es/commands/RespondActivityTaskCompletedCommand.js +0 -104
- package/dist/es/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
- package/dist/es/commands/RespondActivityTaskFailedCommand.js +0 -97
- package/dist/es/commands/RespondActivityTaskFailedCommand.js.map +0 -1
- package/dist/es/commands/RespondDecisionTaskCompletedCommand.js +0 -84
- package/dist/es/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
- package/dist/es/commands/SignalWorkflowExecutionCommand.js +0 -103
- package/dist/es/commands/SignalWorkflowExecutionCommand.js.map +0 -1
- package/dist/es/commands/StartWorkflowExecutionCommand.js +0 -130
- package/dist/es/commands/StartWorkflowExecutionCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/TerminateWorkflowExecutionCommand.js +0 -108
- package/dist/es/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
- package/dist/es/commands/UndeprecateActivityTypeCommand.js +0 -106
- package/dist/es/commands/UndeprecateActivityTypeCommand.js.map +0 -1
- package/dist/es/commands/UndeprecateDomainCommand.js +0 -93
- package/dist/es/commands/UndeprecateDomainCommand.js.map +0 -1
- package/dist/es/commands/UndeprecateWorkflowTypeCommand.js +0 -106
- 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 +0 -49
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- 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/endpoints.ts +0 -86
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -7233
- package/pagination/GetWorkflowExecutionHistoryPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListActivityTypesPaginator.ts +0 -58
- package/pagination/ListClosedWorkflowExecutionsPaginator.ts +0 -58
- package/pagination/ListDomainsPaginator.ts +0 -54
- package/pagination/ListOpenWorkflowExecutionsPaginator.ts +0 -58
- package/pagination/ListWorkflowTypesPaginator.ts +0 -58
- package/pagination/PollForDecisionTaskPaginator.ts +0 -58
- package/protocols/Aws_json1_0.ts +0 -5977
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
|
|
2
|
-
import { RespondActivityTaskCompletedInput } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_0RespondActivityTaskCompletedCommand,
|
|
5
|
-
serializeAws_json1_0RespondActivityTaskCompletedCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_0";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface RespondActivityTaskCompletedCommandInput extends RespondActivityTaskCompletedInput {}
|
|
21
|
-
export interface RespondActivityTaskCompletedCommandOutput extends __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
|
|
25
|
-
* by the <code>taskToken</code> completed successfully with a <code>result</code> (if provided).
|
|
26
|
-
* The <code>result</code> appears in the <code>ActivityTaskCompleted</code> event in the
|
|
27
|
-
* workflow history.</p>
|
|
28
|
-
*
|
|
29
|
-
* <important>
|
|
30
|
-
* <p>If the requested task doesn't complete successfully, use <a>RespondActivityTaskFailed</a> instead. If the worker finds that the task is
|
|
31
|
-
* canceled through the <code>canceled</code> flag returned by <a>RecordActivityTaskHeartbeat</a>, it should cancel the task, clean up and then call
|
|
32
|
-
* <a>RespondActivityTaskCanceled</a>.</p>
|
|
33
|
-
* </important>
|
|
34
|
-
*
|
|
35
|
-
* <p>A task is considered open from the time that it is scheduled until it is closed.
|
|
36
|
-
* Therefore a task is reported as open while a worker is processing it. A task is closed after
|
|
37
|
-
* it has been specified in a call to RespondActivityTaskCompleted, <a>RespondActivityTaskCanceled</a>, <a>RespondActivityTaskFailed</a>, or the
|
|
38
|
-
* task has <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
|
|
39
|
-
* out</a>.</p>
|
|
40
|
-
*
|
|
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, RespondActivityTaskCompletedCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
68
|
-
* // const { SWFClient, RespondActivityTaskCompletedCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
69
|
-
* const client = new SWFClient(config);
|
|
70
|
-
* const command = new RespondActivityTaskCompletedCommand(input);
|
|
71
|
-
* const response = await client.send(command);
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
|
-
* @see {@link RespondActivityTaskCompletedCommandInput} for command's `input` shape.
|
|
75
|
-
* @see {@link RespondActivityTaskCompletedCommandOutput} for command's `response` shape.
|
|
76
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
|
-
export class RespondActivityTaskCompletedCommand extends $Command<
|
|
80
|
-
RespondActivityTaskCompletedCommandInput,
|
|
81
|
-
RespondActivityTaskCompletedCommandOutput,
|
|
82
|
-
SWFClientResolvedConfig
|
|
83
|
-
> {
|
|
84
|
-
// Start section: command_properties
|
|
85
|
-
// End section: command_properties
|
|
86
|
-
|
|
87
|
-
constructor(readonly input: RespondActivityTaskCompletedCommandInput) {
|
|
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<RespondActivityTaskCompletedCommandInput, RespondActivityTaskCompletedCommandOutput> {
|
|
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 = "RespondActivityTaskCompletedCommand";
|
|
108
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
109
|
-
logger,
|
|
110
|
-
clientName,
|
|
111
|
-
commandName,
|
|
112
|
-
inputFilterSensitiveLog: RespondActivityTaskCompletedInput.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(input: RespondActivityTaskCompletedCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
124
|
-
return serializeAws_json1_0RespondActivityTaskCompletedCommand(input, context);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
private deserialize(
|
|
128
|
-
output: __HttpResponse,
|
|
129
|
-
context: __SerdeContext
|
|
130
|
-
): Promise<RespondActivityTaskCompletedCommandOutput> {
|
|
131
|
-
return deserializeAws_json1_0RespondActivityTaskCompletedCommand(output, context);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Start section: command_body_extra
|
|
135
|
-
// End section: command_body_extra
|
|
136
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
|
|
2
|
-
import { RespondActivityTaskFailedInput } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_0RespondActivityTaskFailedCommand,
|
|
5
|
-
serializeAws_json1_0RespondActivityTaskFailedCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_0";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface RespondActivityTaskFailedCommandInput extends RespondActivityTaskFailedInput {}
|
|
21
|
-
export interface RespondActivityTaskFailedCommandOutput extends __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
|
|
25
|
-
* by the <code>taskToken</code> has failed with <code>reason</code> (if specified). The
|
|
26
|
-
* <code>reason</code> and <code>details</code> appear in the <code>ActivityTaskFailed</code>
|
|
27
|
-
* event added to the workflow history.</p>
|
|
28
|
-
*
|
|
29
|
-
* <p>A task is considered open from the time that it is scheduled until it is closed.
|
|
30
|
-
* Therefore a task is reported as open while a worker is processing it. A task is closed after
|
|
31
|
-
* it has been specified in a call to <a>RespondActivityTaskCompleted</a>, <a>RespondActivityTaskCanceled</a>, RespondActivityTaskFailed, or the task has <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
|
|
32
|
-
* out</a>.</p>
|
|
33
|
-
*
|
|
34
|
-
* <p>
|
|
35
|
-
* <b>Access Control</b>
|
|
36
|
-
* </p>
|
|
37
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
38
|
-
* follows:</p>
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
42
|
-
* only specified domains.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
46
|
-
* action.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* </ul>
|
|
52
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
53
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
54
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
55
|
-
* For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
|
|
56
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
57
|
-
* @example
|
|
58
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
59
|
-
* ```javascript
|
|
60
|
-
* import { SWFClient, RespondActivityTaskFailedCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
61
|
-
* // const { SWFClient, RespondActivityTaskFailedCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
62
|
-
* const client = new SWFClient(config);
|
|
63
|
-
* const command = new RespondActivityTaskFailedCommand(input);
|
|
64
|
-
* const response = await client.send(command);
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @see {@link RespondActivityTaskFailedCommandInput} for command's `input` shape.
|
|
68
|
-
* @see {@link RespondActivityTaskFailedCommandOutput} for command's `response` shape.
|
|
69
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
export class RespondActivityTaskFailedCommand extends $Command<
|
|
73
|
-
RespondActivityTaskFailedCommandInput,
|
|
74
|
-
RespondActivityTaskFailedCommandOutput,
|
|
75
|
-
SWFClientResolvedConfig
|
|
76
|
-
> {
|
|
77
|
-
// Start section: command_properties
|
|
78
|
-
// End section: command_properties
|
|
79
|
-
|
|
80
|
-
constructor(readonly input: RespondActivityTaskFailedCommandInput) {
|
|
81
|
-
// Start section: command_constructor
|
|
82
|
-
super();
|
|
83
|
-
// End section: command_constructor
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
|
-
resolveMiddleware(
|
|
90
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
91
|
-
configuration: SWFClientResolvedConfig,
|
|
92
|
-
options?: __HttpHandlerOptions
|
|
93
|
-
): Handler<RespondActivityTaskFailedCommandInput, RespondActivityTaskFailedCommandOutput> {
|
|
94
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
95
|
-
|
|
96
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
97
|
-
|
|
98
|
-
const { logger } = configuration;
|
|
99
|
-
const clientName = "SWFClient";
|
|
100
|
-
const commandName = "RespondActivityTaskFailedCommand";
|
|
101
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
102
|
-
logger,
|
|
103
|
-
clientName,
|
|
104
|
-
commandName,
|
|
105
|
-
inputFilterSensitiveLog: RespondActivityTaskFailedInput.filterSensitiveLog,
|
|
106
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
107
|
-
};
|
|
108
|
-
const { requestHandler } = configuration;
|
|
109
|
-
return stack.resolve(
|
|
110
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
111
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
112
|
-
handlerExecutionContext
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
private serialize(input: RespondActivityTaskFailedCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
117
|
-
return serializeAws_json1_0RespondActivityTaskFailedCommand(input, context);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
private deserialize(
|
|
121
|
-
output: __HttpResponse,
|
|
122
|
-
context: __SerdeContext
|
|
123
|
-
): Promise<RespondActivityTaskFailedCommandOutput> {
|
|
124
|
-
return deserializeAws_json1_0RespondActivityTaskFailedCommand(output, context);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// Start section: command_body_extra
|
|
128
|
-
// End section: command_body_extra
|
|
129
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
|
|
2
|
-
import { RespondDecisionTaskCompletedInput } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_0RespondDecisionTaskCompletedCommand,
|
|
5
|
-
serializeAws_json1_0RespondDecisionTaskCompletedCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_0";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface RespondDecisionTaskCompletedCommandInput extends RespondDecisionTaskCompletedInput {}
|
|
21
|
-
export interface RespondDecisionTaskCompletedCommandOutput extends __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Used by deciders to tell the service that the <a>DecisionTask</a> identified
|
|
25
|
-
* by the <code>taskToken</code> has successfully completed. The <code>decisions</code> argument
|
|
26
|
-
* specifies the list of decisions made while processing the task.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>A <code>DecisionTaskCompleted</code> event is added to the workflow history. The
|
|
29
|
-
* <code>executionContext</code> specified is attached to the event in the workflow execution
|
|
30
|
-
* history.</p>
|
|
31
|
-
*
|
|
32
|
-
* <p>
|
|
33
|
-
* <b>Access Control</b>
|
|
34
|
-
* </p>
|
|
35
|
-
*
|
|
36
|
-
* <p>If an IAM policy grants permission to use <code>RespondDecisionTaskCompleted</code>, it
|
|
37
|
-
* can express permissions for the list of decisions in the <code>decisions</code> parameter.
|
|
38
|
-
* Each of the decisions has one or more parameters, much like a regular API call. To allow for
|
|
39
|
-
* policies to be as readable as possible, you can express permissions on decisions as if they
|
|
40
|
-
* were actual API calls, including applying conditions to some parameters. For more information,
|
|
41
|
-
* see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using
|
|
42
|
-
* IAM to Manage Access to Amazon SWF Workflows</a> in the
|
|
43
|
-
* <i>Amazon SWF Developer Guide</i>.</p>
|
|
44
|
-
* @example
|
|
45
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
46
|
-
* ```javascript
|
|
47
|
-
* import { SWFClient, RespondDecisionTaskCompletedCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
48
|
-
* // const { SWFClient, RespondDecisionTaskCompletedCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
49
|
-
* const client = new SWFClient(config);
|
|
50
|
-
* const command = new RespondDecisionTaskCompletedCommand(input);
|
|
51
|
-
* const response = await client.send(command);
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @see {@link RespondDecisionTaskCompletedCommandInput} for command's `input` shape.
|
|
55
|
-
* @see {@link RespondDecisionTaskCompletedCommandOutput} for command's `response` shape.
|
|
56
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
export class RespondDecisionTaskCompletedCommand extends $Command<
|
|
60
|
-
RespondDecisionTaskCompletedCommandInput,
|
|
61
|
-
RespondDecisionTaskCompletedCommandOutput,
|
|
62
|
-
SWFClientResolvedConfig
|
|
63
|
-
> {
|
|
64
|
-
// Start section: command_properties
|
|
65
|
-
// End section: command_properties
|
|
66
|
-
|
|
67
|
-
constructor(readonly input: RespondDecisionTaskCompletedCommandInput) {
|
|
68
|
-
// Start section: command_constructor
|
|
69
|
-
super();
|
|
70
|
-
// End section: command_constructor
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
resolveMiddleware(
|
|
77
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
78
|
-
configuration: SWFClientResolvedConfig,
|
|
79
|
-
options?: __HttpHandlerOptions
|
|
80
|
-
): Handler<RespondDecisionTaskCompletedCommandInput, RespondDecisionTaskCompletedCommandOutput> {
|
|
81
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
82
|
-
|
|
83
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
84
|
-
|
|
85
|
-
const { logger } = configuration;
|
|
86
|
-
const clientName = "SWFClient";
|
|
87
|
-
const commandName = "RespondDecisionTaskCompletedCommand";
|
|
88
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
89
|
-
logger,
|
|
90
|
-
clientName,
|
|
91
|
-
commandName,
|
|
92
|
-
inputFilterSensitiveLog: RespondDecisionTaskCompletedInput.filterSensitiveLog,
|
|
93
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
94
|
-
};
|
|
95
|
-
const { requestHandler } = configuration;
|
|
96
|
-
return stack.resolve(
|
|
97
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
98
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
99
|
-
handlerExecutionContext
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
private serialize(input: RespondDecisionTaskCompletedCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
104
|
-
return serializeAws_json1_0RespondDecisionTaskCompletedCommand(input, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
private deserialize(
|
|
108
|
-
output: __HttpResponse,
|
|
109
|
-
context: __SerdeContext
|
|
110
|
-
): Promise<RespondDecisionTaskCompletedCommandOutput> {
|
|
111
|
-
return deserializeAws_json1_0RespondDecisionTaskCompletedCommand(output, context);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Start section: command_body_extra
|
|
115
|
-
// End section: command_body_extra
|
|
116
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
|
|
2
|
-
import { SignalWorkflowExecutionInput } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_0SignalWorkflowExecutionCommand,
|
|
5
|
-
serializeAws_json1_0SignalWorkflowExecutionCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_0";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface SignalWorkflowExecutionCommandInput extends SignalWorkflowExecutionInput {}
|
|
21
|
-
export interface SignalWorkflowExecutionCommandOutput extends __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Records a <code>WorkflowExecutionSignaled</code> event in the workflow execution
|
|
25
|
-
* history and creates a decision task for the workflow execution identified by the given domain,
|
|
26
|
-
* workflowId and runId. The event is recorded with the specified user defined signalName and
|
|
27
|
-
* input (if provided).</p>
|
|
28
|
-
*
|
|
29
|
-
* <note>
|
|
30
|
-
* <p>If a runId isn't specified, then the <code>WorkflowExecutionSignaled</code> event is
|
|
31
|
-
* recorded in the history of the current open workflow with the matching workflowId in the
|
|
32
|
-
* domain.</p>
|
|
33
|
-
* </note>
|
|
34
|
-
*
|
|
35
|
-
* <note>
|
|
36
|
-
* <p>If the specified workflow execution isn't open, this method fails with
|
|
37
|
-
* <code>UnknownResource</code>.</p>
|
|
38
|
-
* </note>
|
|
39
|
-
*
|
|
40
|
-
* <p>
|
|
41
|
-
* <b>Access Control</b>
|
|
42
|
-
* </p>
|
|
43
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
44
|
-
* follows:</p>
|
|
45
|
-
* <ul>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
48
|
-
* only specified domains.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
52
|
-
* action.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>You cannot use an IAM policy to constrain this action's parameters.</p>
|
|
56
|
-
* </li>
|
|
57
|
-
* </ul>
|
|
58
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
59
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
60
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
61
|
-
* 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
|
|
62
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
63
|
-
* @example
|
|
64
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
65
|
-
* ```javascript
|
|
66
|
-
* import { SWFClient, SignalWorkflowExecutionCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
67
|
-
* // const { SWFClient, SignalWorkflowExecutionCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
68
|
-
* const client = new SWFClient(config);
|
|
69
|
-
* const command = new SignalWorkflowExecutionCommand(input);
|
|
70
|
-
* const response = await client.send(command);
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* @see {@link SignalWorkflowExecutionCommandInput} for command's `input` shape.
|
|
74
|
-
* @see {@link SignalWorkflowExecutionCommandOutput} for command's `response` shape.
|
|
75
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
export class SignalWorkflowExecutionCommand extends $Command<
|
|
79
|
-
SignalWorkflowExecutionCommandInput,
|
|
80
|
-
SignalWorkflowExecutionCommandOutput,
|
|
81
|
-
SWFClientResolvedConfig
|
|
82
|
-
> {
|
|
83
|
-
// Start section: command_properties
|
|
84
|
-
// End section: command_properties
|
|
85
|
-
|
|
86
|
-
constructor(readonly input: SignalWorkflowExecutionCommandInput) {
|
|
87
|
-
// Start section: command_constructor
|
|
88
|
-
super();
|
|
89
|
-
// End section: command_constructor
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
resolveMiddleware(
|
|
96
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
97
|
-
configuration: SWFClientResolvedConfig,
|
|
98
|
-
options?: __HttpHandlerOptions
|
|
99
|
-
): Handler<SignalWorkflowExecutionCommandInput, SignalWorkflowExecutionCommandOutput> {
|
|
100
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
101
|
-
|
|
102
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
103
|
-
|
|
104
|
-
const { logger } = configuration;
|
|
105
|
-
const clientName = "SWFClient";
|
|
106
|
-
const commandName = "SignalWorkflowExecutionCommand";
|
|
107
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
108
|
-
logger,
|
|
109
|
-
clientName,
|
|
110
|
-
commandName,
|
|
111
|
-
inputFilterSensitiveLog: SignalWorkflowExecutionInput.filterSensitiveLog,
|
|
112
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
113
|
-
};
|
|
114
|
-
const { requestHandler } = configuration;
|
|
115
|
-
return stack.resolve(
|
|
116
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
117
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
118
|
-
handlerExecutionContext
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
private serialize(input: SignalWorkflowExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
123
|
-
return serializeAws_json1_0SignalWorkflowExecutionCommand(input, context);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SignalWorkflowExecutionCommandOutput> {
|
|
127
|
-
return deserializeAws_json1_0SignalWorkflowExecutionCommand(output, context);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Start section: command_body_extra
|
|
131
|
-
// End section: command_body_extra
|
|
132
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
|
|
2
|
-
import { Run, StartWorkflowExecutionInput } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_0StartWorkflowExecutionCommand,
|
|
5
|
-
serializeAws_json1_0StartWorkflowExecutionCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_0";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface StartWorkflowExecutionCommandInput extends StartWorkflowExecutionInput {}
|
|
21
|
-
export interface StartWorkflowExecutionCommandOutput extends Run, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Starts an execution of the workflow type in the specified domain using the provided
|
|
25
|
-
* <code>workflowId</code> and input data.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>This action returns the newly started workflow execution.</p>
|
|
28
|
-
*
|
|
29
|
-
* <p>
|
|
30
|
-
* <b>Access Control</b>
|
|
31
|
-
* </p>
|
|
32
|
-
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as
|
|
33
|
-
* follows:</p>
|
|
34
|
-
* <ul>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
37
|
-
* only specified domains.</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
41
|
-
* action.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Constrain the following parameters by using a <code>Condition</code> element with
|
|
45
|
-
* the appropriate keys.</p>
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>
|
|
49
|
-
* <code>tagList.member.0</code>: The key is <code>swf:tagList.member.0</code>.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>
|
|
53
|
-
* <code>tagList.member.1</code>: The key is <code>swf:tagList.member.1</code>.</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>
|
|
57
|
-
* <code>tagList.member.2</code>: The key is <code>swf:tagList.member.2</code>.</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>
|
|
61
|
-
* <code>tagList.member.3</code>: The key is <code>swf:tagList.member.3</code>.</p>
|
|
62
|
-
* </li>
|
|
63
|
-
* <li>
|
|
64
|
-
* <p>
|
|
65
|
-
* <code>tagList.member.4</code>: The key is <code>swf:tagList.member.4</code>.</p>
|
|
66
|
-
* </li>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>
|
|
69
|
-
* <code>taskList</code>: String constraint. The key is
|
|
70
|
-
* <code>swf:taskList.name</code>.</p>
|
|
71
|
-
* </li>
|
|
72
|
-
* <li>
|
|
73
|
-
* <p>
|
|
74
|
-
* <code>workflowType.name</code>: String constraint. The key is
|
|
75
|
-
* <code>swf:workflowType.name</code>.</p>
|
|
76
|
-
* </li>
|
|
77
|
-
* <li>
|
|
78
|
-
* <p>
|
|
79
|
-
* <code>workflowType.version</code>: String constraint. The key is
|
|
80
|
-
* <code>swf:workflowType.version</code>.</p>
|
|
81
|
-
* </li>
|
|
82
|
-
* </ul>
|
|
83
|
-
* </li>
|
|
84
|
-
* </ul>
|
|
85
|
-
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
86
|
-
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
87
|
-
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
88
|
-
* 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
|
|
89
|
-
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
90
|
-
* @example
|
|
91
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
92
|
-
* ```javascript
|
|
93
|
-
* import { SWFClient, StartWorkflowExecutionCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
94
|
-
* // const { SWFClient, StartWorkflowExecutionCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
95
|
-
* const client = new SWFClient(config);
|
|
96
|
-
* const command = new StartWorkflowExecutionCommand(input);
|
|
97
|
-
* const response = await client.send(command);
|
|
98
|
-
* ```
|
|
99
|
-
*
|
|
100
|
-
* @see {@link StartWorkflowExecutionCommandInput} for command's `input` shape.
|
|
101
|
-
* @see {@link StartWorkflowExecutionCommandOutput} for command's `response` shape.
|
|
102
|
-
* @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
export class StartWorkflowExecutionCommand extends $Command<
|
|
106
|
-
StartWorkflowExecutionCommandInput,
|
|
107
|
-
StartWorkflowExecutionCommandOutput,
|
|
108
|
-
SWFClientResolvedConfig
|
|
109
|
-
> {
|
|
110
|
-
// Start section: command_properties
|
|
111
|
-
// End section: command_properties
|
|
112
|
-
|
|
113
|
-
constructor(readonly input: StartWorkflowExecutionCommandInput) {
|
|
114
|
-
// Start section: command_constructor
|
|
115
|
-
super();
|
|
116
|
-
// End section: command_constructor
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
|
-
resolveMiddleware(
|
|
123
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
124
|
-
configuration: SWFClientResolvedConfig,
|
|
125
|
-
options?: __HttpHandlerOptions
|
|
126
|
-
): Handler<StartWorkflowExecutionCommandInput, StartWorkflowExecutionCommandOutput> {
|
|
127
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
128
|
-
|
|
129
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
130
|
-
|
|
131
|
-
const { logger } = configuration;
|
|
132
|
-
const clientName = "SWFClient";
|
|
133
|
-
const commandName = "StartWorkflowExecutionCommand";
|
|
134
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
135
|
-
logger,
|
|
136
|
-
clientName,
|
|
137
|
-
commandName,
|
|
138
|
-
inputFilterSensitiveLog: StartWorkflowExecutionInput.filterSensitiveLog,
|
|
139
|
-
outputFilterSensitiveLog: Run.filterSensitiveLog,
|
|
140
|
-
};
|
|
141
|
-
const { requestHandler } = configuration;
|
|
142
|
-
return stack.resolve(
|
|
143
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
144
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
145
|
-
handlerExecutionContext
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
private serialize(input: StartWorkflowExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
150
|
-
return serializeAws_json1_0StartWorkflowExecutionCommand(input, context);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartWorkflowExecutionCommandOutput> {
|
|
154
|
-
return deserializeAws_json1_0StartWorkflowExecutionCommand(output, context);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// Start section: command_body_extra
|
|
158
|
-
// End section: command_body_extra
|
|
159
|
-
}
|