@aws-sdk/client-swf 3.489.0 → 3.495.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/dist-cjs/SWF.js +1 -85
- package/dist-cjs/SWFClient.js +1 -43
- package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js +1 -28
- package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js +1 -28
- package/dist-cjs/commands/CountPendingActivityTasksCommand.js +1 -28
- package/dist-cjs/commands/CountPendingDecisionTasksCommand.js +1 -28
- package/dist-cjs/commands/DeprecateActivityTypeCommand.js +1 -28
- package/dist-cjs/commands/DeprecateDomainCommand.js +1 -28
- package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js +1 -28
- package/dist-cjs/commands/DescribeActivityTypeCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainCommand.js +1 -28
- package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js +1 -28
- package/dist-cjs/commands/DescribeWorkflowTypeCommand.js +1 -28
- package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js +1 -28
- package/dist-cjs/commands/ListActivityTypesCommand.js +1 -28
- package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListDomainsCommand.js +1 -28
- package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListWorkflowTypesCommand.js +1 -28
- package/dist-cjs/commands/PollForActivityTaskCommand.js +1 -28
- package/dist-cjs/commands/PollForDecisionTaskCommand.js +1 -28
- package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js +1 -28
- package/dist-cjs/commands/RegisterActivityTypeCommand.js +1 -28
- package/dist-cjs/commands/RegisterDomainCommand.js +1 -28
- package/dist-cjs/commands/RegisterWorkflowTypeCommand.js +1 -28
- package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js +1 -28
- package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js +1 -28
- package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js +1 -28
- package/dist-cjs/commands/RespondActivityTaskFailedCommand.js +1 -28
- package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js +1 -28
- package/dist-cjs/commands/SignalWorkflowExecutionCommand.js +1 -28
- package/dist-cjs/commands/StartWorkflowExecutionCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js +1 -28
- package/dist-cjs/commands/UndeprecateActivityTypeCommand.js +1 -28
- package/dist-cjs/commands/UndeprecateDomainCommand.js +1 -28
- package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -40
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3297 -11
- package/dist-cjs/models/SWFServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -335
- package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListActivityTypesPaginator.js +1 -7
- package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDomainsPaginator.js +1 -7
- package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkflowTypesPaginator.js +1 -7
- package/dist-cjs/pagination/PollForDecisionTaskPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -11
- package/dist-cjs/protocols/Aws_json1_0.js +1 -2002
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2002 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListActivityTypesCommand = exports.de_GetWorkflowExecutionHistoryCommand = exports.de_DescribeWorkflowTypeCommand = exports.de_DescribeWorkflowExecutionCommand = exports.de_DescribeDomainCommand = exports.de_DescribeActivityTypeCommand = exports.de_DeprecateWorkflowTypeCommand = exports.de_DeprecateDomainCommand = exports.de_DeprecateActivityTypeCommand = exports.de_CountPendingDecisionTasksCommand = exports.de_CountPendingActivityTasksCommand = exports.de_CountOpenWorkflowExecutionsCommand = exports.de_CountClosedWorkflowExecutionsCommand = exports.se_UntagResourceCommand = exports.se_UndeprecateWorkflowTypeCommand = exports.se_UndeprecateDomainCommand = exports.se_UndeprecateActivityTypeCommand = exports.se_TerminateWorkflowExecutionCommand = exports.se_TagResourceCommand = exports.se_StartWorkflowExecutionCommand = exports.se_SignalWorkflowExecutionCommand = exports.se_RespondDecisionTaskCompletedCommand = exports.se_RespondActivityTaskFailedCommand = exports.se_RespondActivityTaskCompletedCommand = exports.se_RespondActivityTaskCanceledCommand = exports.se_RequestCancelWorkflowExecutionCommand = exports.se_RegisterWorkflowTypeCommand = exports.se_RegisterDomainCommand = exports.se_RegisterActivityTypeCommand = exports.se_RecordActivityTaskHeartbeatCommand = exports.se_PollForDecisionTaskCommand = exports.se_PollForActivityTaskCommand = exports.se_ListWorkflowTypesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOpenWorkflowExecutionsCommand = exports.se_ListDomainsCommand = exports.se_ListClosedWorkflowExecutionsCommand = exports.se_ListActivityTypesCommand = exports.se_GetWorkflowExecutionHistoryCommand = exports.se_DescribeWorkflowTypeCommand = exports.se_DescribeWorkflowExecutionCommand = exports.se_DescribeDomainCommand = exports.se_DescribeActivityTypeCommand = exports.se_DeprecateWorkflowTypeCommand = exports.se_DeprecateDomainCommand = exports.se_DeprecateActivityTypeCommand = exports.se_CountPendingDecisionTasksCommand = exports.se_CountPendingActivityTasksCommand = exports.se_CountOpenWorkflowExecutionsCommand = exports.se_CountClosedWorkflowExecutionsCommand = void 0;
|
|
4
|
-
exports.de_UntagResourceCommand = exports.de_UndeprecateWorkflowTypeCommand = exports.de_UndeprecateDomainCommand = exports.de_UndeprecateActivityTypeCommand = exports.de_TerminateWorkflowExecutionCommand = exports.de_TagResourceCommand = exports.de_StartWorkflowExecutionCommand = exports.de_SignalWorkflowExecutionCommand = exports.de_RespondDecisionTaskCompletedCommand = exports.de_RespondActivityTaskFailedCommand = exports.de_RespondActivityTaskCompletedCommand = exports.de_RespondActivityTaskCanceledCommand = exports.de_RequestCancelWorkflowExecutionCommand = exports.de_RegisterWorkflowTypeCommand = exports.de_RegisterDomainCommand = exports.de_RegisterActivityTypeCommand = exports.de_RecordActivityTaskHeartbeatCommand = exports.de_PollForDecisionTaskCommand = exports.de_PollForActivityTaskCommand = exports.de_ListWorkflowTypesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOpenWorkflowExecutionsCommand = exports.de_ListDomainsCommand = exports.de_ListClosedWorkflowExecutionsCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const SWFServiceException_1 = require("../models/SWFServiceException");
|
|
9
|
-
const se_CountClosedWorkflowExecutionsCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("CountClosedWorkflowExecutions");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify(se_CountClosedWorkflowExecutionsInput(input, context));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_CountClosedWorkflowExecutionsCommand = se_CountClosedWorkflowExecutionsCommand;
|
|
16
|
-
const se_CountOpenWorkflowExecutionsCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("CountOpenWorkflowExecutions");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify(se_CountOpenWorkflowExecutionsInput(input, context));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_CountOpenWorkflowExecutionsCommand = se_CountOpenWorkflowExecutionsCommand;
|
|
23
|
-
const se_CountPendingActivityTasksCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("CountPendingActivityTasks");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_CountPendingActivityTasksCommand = se_CountPendingActivityTasksCommand;
|
|
30
|
-
const se_CountPendingDecisionTasksCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CountPendingDecisionTasks");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_CountPendingDecisionTasksCommand = se_CountPendingDecisionTasksCommand;
|
|
37
|
-
const se_DeprecateActivityTypeCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DeprecateActivityType");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_DeprecateActivityTypeCommand = se_DeprecateActivityTypeCommand;
|
|
44
|
-
const se_DeprecateDomainCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("DeprecateDomain");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_DeprecateDomainCommand = se_DeprecateDomainCommand;
|
|
51
|
-
const se_DeprecateWorkflowTypeCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("DeprecateWorkflowType");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_DeprecateWorkflowTypeCommand = se_DeprecateWorkflowTypeCommand;
|
|
58
|
-
const se_DescribeActivityTypeCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("DescribeActivityType");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_DescribeActivityTypeCommand = se_DescribeActivityTypeCommand;
|
|
65
|
-
const se_DescribeDomainCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("DescribeDomain");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
|
|
72
|
-
const se_DescribeWorkflowExecutionCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeWorkflowExecution");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_DescribeWorkflowExecutionCommand = se_DescribeWorkflowExecutionCommand;
|
|
79
|
-
const se_DescribeWorkflowTypeCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DescribeWorkflowType");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_DescribeWorkflowTypeCommand = se_DescribeWorkflowTypeCommand;
|
|
86
|
-
const se_GetWorkflowExecutionHistoryCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("GetWorkflowExecutionHistory");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_GetWorkflowExecutionHistoryCommand = se_GetWorkflowExecutionHistoryCommand;
|
|
93
|
-
const se_ListActivityTypesCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("ListActivityTypes");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_ListActivityTypesCommand = se_ListActivityTypesCommand;
|
|
100
|
-
const se_ListClosedWorkflowExecutionsCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("ListClosedWorkflowExecutions");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify(se_ListClosedWorkflowExecutionsInput(input, context));
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
exports.se_ListClosedWorkflowExecutionsCommand = se_ListClosedWorkflowExecutionsCommand;
|
|
107
|
-
const se_ListDomainsCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("ListDomains");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
114
|
-
const se_ListOpenWorkflowExecutionsCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("ListOpenWorkflowExecutions");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(se_ListOpenWorkflowExecutionsInput(input, context));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
exports.se_ListOpenWorkflowExecutionsCommand = se_ListOpenWorkflowExecutionsCommand;
|
|
121
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
128
|
-
const se_ListWorkflowTypesCommand = async (input, context) => {
|
|
129
|
-
const headers = sharedHeaders("ListWorkflowTypes");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
|
-
};
|
|
134
|
-
exports.se_ListWorkflowTypesCommand = se_ListWorkflowTypesCommand;
|
|
135
|
-
const se_PollForActivityTaskCommand = async (input, context) => {
|
|
136
|
-
const headers = sharedHeaders("PollForActivityTask");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
exports.se_PollForActivityTaskCommand = se_PollForActivityTaskCommand;
|
|
142
|
-
const se_PollForDecisionTaskCommand = async (input, context) => {
|
|
143
|
-
const headers = sharedHeaders("PollForDecisionTask");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
-
};
|
|
148
|
-
exports.se_PollForDecisionTaskCommand = se_PollForDecisionTaskCommand;
|
|
149
|
-
const se_RecordActivityTaskHeartbeatCommand = async (input, context) => {
|
|
150
|
-
const headers = sharedHeaders("RecordActivityTaskHeartbeat");
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
exports.se_RecordActivityTaskHeartbeatCommand = se_RecordActivityTaskHeartbeatCommand;
|
|
156
|
-
const se_RegisterActivityTypeCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("RegisterActivityType");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
exports.se_RegisterActivityTypeCommand = se_RegisterActivityTypeCommand;
|
|
163
|
-
const se_RegisterDomainCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("RegisterDomain");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
exports.se_RegisterDomainCommand = se_RegisterDomainCommand;
|
|
170
|
-
const se_RegisterWorkflowTypeCommand = async (input, context) => {
|
|
171
|
-
const headers = sharedHeaders("RegisterWorkflowType");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
exports.se_RegisterWorkflowTypeCommand = se_RegisterWorkflowTypeCommand;
|
|
177
|
-
const se_RequestCancelWorkflowExecutionCommand = async (input, context) => {
|
|
178
|
-
const headers = sharedHeaders("RequestCancelWorkflowExecution");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
-
};
|
|
183
|
-
exports.se_RequestCancelWorkflowExecutionCommand = se_RequestCancelWorkflowExecutionCommand;
|
|
184
|
-
const se_RespondActivityTaskCanceledCommand = async (input, context) => {
|
|
185
|
-
const headers = sharedHeaders("RespondActivityTaskCanceled");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
-
};
|
|
190
|
-
exports.se_RespondActivityTaskCanceledCommand = se_RespondActivityTaskCanceledCommand;
|
|
191
|
-
const se_RespondActivityTaskCompletedCommand = async (input, context) => {
|
|
192
|
-
const headers = sharedHeaders("RespondActivityTaskCompleted");
|
|
193
|
-
let body;
|
|
194
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
-
};
|
|
197
|
-
exports.se_RespondActivityTaskCompletedCommand = se_RespondActivityTaskCompletedCommand;
|
|
198
|
-
const se_RespondActivityTaskFailedCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("RespondActivityTaskFailed");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
exports.se_RespondActivityTaskFailedCommand = se_RespondActivityTaskFailedCommand;
|
|
205
|
-
const se_RespondDecisionTaskCompletedCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("RespondDecisionTaskCompleted");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
exports.se_RespondDecisionTaskCompletedCommand = se_RespondDecisionTaskCompletedCommand;
|
|
212
|
-
const se_SignalWorkflowExecutionCommand = async (input, context) => {
|
|
213
|
-
const headers = sharedHeaders("SignalWorkflowExecution");
|
|
214
|
-
let body;
|
|
215
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
exports.se_SignalWorkflowExecutionCommand = se_SignalWorkflowExecutionCommand;
|
|
219
|
-
const se_StartWorkflowExecutionCommand = async (input, context) => {
|
|
220
|
-
const headers = sharedHeaders("StartWorkflowExecution");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
exports.se_StartWorkflowExecutionCommand = se_StartWorkflowExecutionCommand;
|
|
226
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
227
|
-
const headers = sharedHeaders("TagResource");
|
|
228
|
-
let body;
|
|
229
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
|
-
};
|
|
232
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
233
|
-
const se_TerminateWorkflowExecutionCommand = async (input, context) => {
|
|
234
|
-
const headers = sharedHeaders("TerminateWorkflowExecution");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
exports.se_TerminateWorkflowExecutionCommand = se_TerminateWorkflowExecutionCommand;
|
|
240
|
-
const se_UndeprecateActivityTypeCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("UndeprecateActivityType");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
exports.se_UndeprecateActivityTypeCommand = se_UndeprecateActivityTypeCommand;
|
|
247
|
-
const se_UndeprecateDomainCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("UndeprecateDomain");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
exports.se_UndeprecateDomainCommand = se_UndeprecateDomainCommand;
|
|
254
|
-
const se_UndeprecateWorkflowTypeCommand = async (input, context) => {
|
|
255
|
-
const headers = sharedHeaders("UndeprecateWorkflowType");
|
|
256
|
-
let body;
|
|
257
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
|
-
};
|
|
260
|
-
exports.se_UndeprecateWorkflowTypeCommand = se_UndeprecateWorkflowTypeCommand;
|
|
261
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
262
|
-
const headers = sharedHeaders("UntagResource");
|
|
263
|
-
let body;
|
|
264
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
265
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
|
-
};
|
|
267
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
268
|
-
const de_CountClosedWorkflowExecutionsCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode >= 300) {
|
|
270
|
-
return de_CountClosedWorkflowExecutionsCommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const data = await parseBody(output.body, context);
|
|
273
|
-
let contents = {};
|
|
274
|
-
contents = (0, smithy_client_1._json)(data);
|
|
275
|
-
const response = {
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
...contents,
|
|
278
|
-
};
|
|
279
|
-
return response;
|
|
280
|
-
};
|
|
281
|
-
exports.de_CountClosedWorkflowExecutionsCommand = de_CountClosedWorkflowExecutionsCommand;
|
|
282
|
-
const de_CountClosedWorkflowExecutionsCommandError = async (output, context) => {
|
|
283
|
-
const parsedOutput = {
|
|
284
|
-
...output,
|
|
285
|
-
body: await parseErrorBody(output.body, context),
|
|
286
|
-
};
|
|
287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
|
-
switch (errorCode) {
|
|
289
|
-
case "OperationNotPermittedFault":
|
|
290
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
291
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
292
|
-
case "UnknownResourceFault":
|
|
293
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
294
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
295
|
-
default:
|
|
296
|
-
const parsedBody = parsedOutput.body;
|
|
297
|
-
return throwDefaultError({
|
|
298
|
-
output,
|
|
299
|
-
parsedBody,
|
|
300
|
-
errorCode,
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
const de_CountOpenWorkflowExecutionsCommand = async (output, context) => {
|
|
305
|
-
if (output.statusCode >= 300) {
|
|
306
|
-
return de_CountOpenWorkflowExecutionsCommandError(output, context);
|
|
307
|
-
}
|
|
308
|
-
const data = await parseBody(output.body, context);
|
|
309
|
-
let contents = {};
|
|
310
|
-
contents = (0, smithy_client_1._json)(data);
|
|
311
|
-
const response = {
|
|
312
|
-
$metadata: deserializeMetadata(output),
|
|
313
|
-
...contents,
|
|
314
|
-
};
|
|
315
|
-
return response;
|
|
316
|
-
};
|
|
317
|
-
exports.de_CountOpenWorkflowExecutionsCommand = de_CountOpenWorkflowExecutionsCommand;
|
|
318
|
-
const de_CountOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
319
|
-
const parsedOutput = {
|
|
320
|
-
...output,
|
|
321
|
-
body: await parseErrorBody(output.body, context),
|
|
322
|
-
};
|
|
323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
|
-
switch (errorCode) {
|
|
325
|
-
case "OperationNotPermittedFault":
|
|
326
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
327
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
328
|
-
case "UnknownResourceFault":
|
|
329
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
330
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
331
|
-
default:
|
|
332
|
-
const parsedBody = parsedOutput.body;
|
|
333
|
-
return throwDefaultError({
|
|
334
|
-
output,
|
|
335
|
-
parsedBody,
|
|
336
|
-
errorCode,
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
const de_CountPendingActivityTasksCommand = async (output, context) => {
|
|
341
|
-
if (output.statusCode >= 300) {
|
|
342
|
-
return de_CountPendingActivityTasksCommandError(output, context);
|
|
343
|
-
}
|
|
344
|
-
const data = await parseBody(output.body, context);
|
|
345
|
-
let contents = {};
|
|
346
|
-
contents = (0, smithy_client_1._json)(data);
|
|
347
|
-
const response = {
|
|
348
|
-
$metadata: deserializeMetadata(output),
|
|
349
|
-
...contents,
|
|
350
|
-
};
|
|
351
|
-
return response;
|
|
352
|
-
};
|
|
353
|
-
exports.de_CountPendingActivityTasksCommand = de_CountPendingActivityTasksCommand;
|
|
354
|
-
const de_CountPendingActivityTasksCommandError = async (output, context) => {
|
|
355
|
-
const parsedOutput = {
|
|
356
|
-
...output,
|
|
357
|
-
body: await parseErrorBody(output.body, context),
|
|
358
|
-
};
|
|
359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
|
-
switch (errorCode) {
|
|
361
|
-
case "OperationNotPermittedFault":
|
|
362
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
363
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
364
|
-
case "UnknownResourceFault":
|
|
365
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
366
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
367
|
-
default:
|
|
368
|
-
const parsedBody = parsedOutput.body;
|
|
369
|
-
return throwDefaultError({
|
|
370
|
-
output,
|
|
371
|
-
parsedBody,
|
|
372
|
-
errorCode,
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
const de_CountPendingDecisionTasksCommand = async (output, context) => {
|
|
377
|
-
if (output.statusCode >= 300) {
|
|
378
|
-
return de_CountPendingDecisionTasksCommandError(output, context);
|
|
379
|
-
}
|
|
380
|
-
const data = await parseBody(output.body, context);
|
|
381
|
-
let contents = {};
|
|
382
|
-
contents = (0, smithy_client_1._json)(data);
|
|
383
|
-
const response = {
|
|
384
|
-
$metadata: deserializeMetadata(output),
|
|
385
|
-
...contents,
|
|
386
|
-
};
|
|
387
|
-
return response;
|
|
388
|
-
};
|
|
389
|
-
exports.de_CountPendingDecisionTasksCommand = de_CountPendingDecisionTasksCommand;
|
|
390
|
-
const de_CountPendingDecisionTasksCommandError = async (output, context) => {
|
|
391
|
-
const parsedOutput = {
|
|
392
|
-
...output,
|
|
393
|
-
body: await parseErrorBody(output.body, context),
|
|
394
|
-
};
|
|
395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
|
-
switch (errorCode) {
|
|
397
|
-
case "OperationNotPermittedFault":
|
|
398
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
399
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
400
|
-
case "UnknownResourceFault":
|
|
401
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
402
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
403
|
-
default:
|
|
404
|
-
const parsedBody = parsedOutput.body;
|
|
405
|
-
return throwDefaultError({
|
|
406
|
-
output,
|
|
407
|
-
parsedBody,
|
|
408
|
-
errorCode,
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
const de_DeprecateActivityTypeCommand = async (output, context) => {
|
|
413
|
-
if (output.statusCode >= 300) {
|
|
414
|
-
return de_DeprecateActivityTypeCommandError(output, context);
|
|
415
|
-
}
|
|
416
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
417
|
-
const response = {
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
};
|
|
420
|
-
return response;
|
|
421
|
-
};
|
|
422
|
-
exports.de_DeprecateActivityTypeCommand = de_DeprecateActivityTypeCommand;
|
|
423
|
-
const de_DeprecateActivityTypeCommandError = async (output, context) => {
|
|
424
|
-
const parsedOutput = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await parseErrorBody(output.body, context),
|
|
427
|
-
};
|
|
428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
-
switch (errorCode) {
|
|
430
|
-
case "OperationNotPermittedFault":
|
|
431
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
432
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
433
|
-
case "TypeDeprecatedFault":
|
|
434
|
-
case "com.amazonaws.swf#TypeDeprecatedFault":
|
|
435
|
-
throw await de_TypeDeprecatedFaultRes(parsedOutput, context);
|
|
436
|
-
case "UnknownResourceFault":
|
|
437
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
438
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
439
|
-
default:
|
|
440
|
-
const parsedBody = parsedOutput.body;
|
|
441
|
-
return throwDefaultError({
|
|
442
|
-
output,
|
|
443
|
-
parsedBody,
|
|
444
|
-
errorCode,
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
const de_DeprecateDomainCommand = async (output, context) => {
|
|
449
|
-
if (output.statusCode >= 300) {
|
|
450
|
-
return de_DeprecateDomainCommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
453
|
-
const response = {
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
};
|
|
456
|
-
return response;
|
|
457
|
-
};
|
|
458
|
-
exports.de_DeprecateDomainCommand = de_DeprecateDomainCommand;
|
|
459
|
-
const de_DeprecateDomainCommandError = async (output, context) => {
|
|
460
|
-
const parsedOutput = {
|
|
461
|
-
...output,
|
|
462
|
-
body: await parseErrorBody(output.body, context),
|
|
463
|
-
};
|
|
464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
|
-
switch (errorCode) {
|
|
466
|
-
case "DomainDeprecatedFault":
|
|
467
|
-
case "com.amazonaws.swf#DomainDeprecatedFault":
|
|
468
|
-
throw await de_DomainDeprecatedFaultRes(parsedOutput, context);
|
|
469
|
-
case "OperationNotPermittedFault":
|
|
470
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
471
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
472
|
-
case "UnknownResourceFault":
|
|
473
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
474
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
475
|
-
default:
|
|
476
|
-
const parsedBody = parsedOutput.body;
|
|
477
|
-
return throwDefaultError({
|
|
478
|
-
output,
|
|
479
|
-
parsedBody,
|
|
480
|
-
errorCode,
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
const de_DeprecateWorkflowTypeCommand = async (output, context) => {
|
|
485
|
-
if (output.statusCode >= 300) {
|
|
486
|
-
return de_DeprecateWorkflowTypeCommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
489
|
-
const response = {
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
};
|
|
492
|
-
return response;
|
|
493
|
-
};
|
|
494
|
-
exports.de_DeprecateWorkflowTypeCommand = de_DeprecateWorkflowTypeCommand;
|
|
495
|
-
const de_DeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
496
|
-
const parsedOutput = {
|
|
497
|
-
...output,
|
|
498
|
-
body: await parseErrorBody(output.body, context),
|
|
499
|
-
};
|
|
500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
-
switch (errorCode) {
|
|
502
|
-
case "OperationNotPermittedFault":
|
|
503
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
504
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
505
|
-
case "TypeDeprecatedFault":
|
|
506
|
-
case "com.amazonaws.swf#TypeDeprecatedFault":
|
|
507
|
-
throw await de_TypeDeprecatedFaultRes(parsedOutput, context);
|
|
508
|
-
case "UnknownResourceFault":
|
|
509
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
510
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
511
|
-
default:
|
|
512
|
-
const parsedBody = parsedOutput.body;
|
|
513
|
-
return throwDefaultError({
|
|
514
|
-
output,
|
|
515
|
-
parsedBody,
|
|
516
|
-
errorCode,
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
const de_DescribeActivityTypeCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode >= 300) {
|
|
522
|
-
return de_DescribeActivityTypeCommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const data = await parseBody(output.body, context);
|
|
525
|
-
let contents = {};
|
|
526
|
-
contents = de_ActivityTypeDetail(data, context);
|
|
527
|
-
const response = {
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
...contents,
|
|
530
|
-
};
|
|
531
|
-
return response;
|
|
532
|
-
};
|
|
533
|
-
exports.de_DescribeActivityTypeCommand = de_DescribeActivityTypeCommand;
|
|
534
|
-
const de_DescribeActivityTypeCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseErrorBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
|
-
switch (errorCode) {
|
|
541
|
-
case "OperationNotPermittedFault":
|
|
542
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
543
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
544
|
-
case "UnknownResourceFault":
|
|
545
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
546
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
547
|
-
default:
|
|
548
|
-
const parsedBody = parsedOutput.body;
|
|
549
|
-
return throwDefaultError({
|
|
550
|
-
output,
|
|
551
|
-
parsedBody,
|
|
552
|
-
errorCode,
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
const de_DescribeDomainCommand = async (output, context) => {
|
|
557
|
-
if (output.statusCode >= 300) {
|
|
558
|
-
return de_DescribeDomainCommandError(output, context);
|
|
559
|
-
}
|
|
560
|
-
const data = await parseBody(output.body, context);
|
|
561
|
-
let contents = {};
|
|
562
|
-
contents = (0, smithy_client_1._json)(data);
|
|
563
|
-
const response = {
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
...contents,
|
|
566
|
-
};
|
|
567
|
-
return response;
|
|
568
|
-
};
|
|
569
|
-
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
570
|
-
const de_DescribeDomainCommandError = async (output, context) => {
|
|
571
|
-
const parsedOutput = {
|
|
572
|
-
...output,
|
|
573
|
-
body: await parseErrorBody(output.body, context),
|
|
574
|
-
};
|
|
575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
-
switch (errorCode) {
|
|
577
|
-
case "OperationNotPermittedFault":
|
|
578
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
579
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
580
|
-
case "UnknownResourceFault":
|
|
581
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
582
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
const de_DescribeWorkflowExecutionCommand = async (output, context) => {
|
|
593
|
-
if (output.statusCode >= 300) {
|
|
594
|
-
return de_DescribeWorkflowExecutionCommandError(output, context);
|
|
595
|
-
}
|
|
596
|
-
const data = await parseBody(output.body, context);
|
|
597
|
-
let contents = {};
|
|
598
|
-
contents = de_WorkflowExecutionDetail(data, context);
|
|
599
|
-
const response = {
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
...contents,
|
|
602
|
-
};
|
|
603
|
-
return response;
|
|
604
|
-
};
|
|
605
|
-
exports.de_DescribeWorkflowExecutionCommand = de_DescribeWorkflowExecutionCommand;
|
|
606
|
-
const de_DescribeWorkflowExecutionCommandError = async (output, context) => {
|
|
607
|
-
const parsedOutput = {
|
|
608
|
-
...output,
|
|
609
|
-
body: await parseErrorBody(output.body, context),
|
|
610
|
-
};
|
|
611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
-
switch (errorCode) {
|
|
613
|
-
case "OperationNotPermittedFault":
|
|
614
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
615
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
616
|
-
case "UnknownResourceFault":
|
|
617
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
618
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
const de_DescribeWorkflowTypeCommand = async (output, context) => {
|
|
629
|
-
if (output.statusCode >= 300) {
|
|
630
|
-
return de_DescribeWorkflowTypeCommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const data = await parseBody(output.body, context);
|
|
633
|
-
let contents = {};
|
|
634
|
-
contents = de_WorkflowTypeDetail(data, context);
|
|
635
|
-
const response = {
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
...contents,
|
|
638
|
-
};
|
|
639
|
-
return response;
|
|
640
|
-
};
|
|
641
|
-
exports.de_DescribeWorkflowTypeCommand = de_DescribeWorkflowTypeCommand;
|
|
642
|
-
const de_DescribeWorkflowTypeCommandError = async (output, context) => {
|
|
643
|
-
const parsedOutput = {
|
|
644
|
-
...output,
|
|
645
|
-
body: await parseErrorBody(output.body, context),
|
|
646
|
-
};
|
|
647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
-
switch (errorCode) {
|
|
649
|
-
case "OperationNotPermittedFault":
|
|
650
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
651
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
652
|
-
case "UnknownResourceFault":
|
|
653
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
654
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
655
|
-
default:
|
|
656
|
-
const parsedBody = parsedOutput.body;
|
|
657
|
-
return throwDefaultError({
|
|
658
|
-
output,
|
|
659
|
-
parsedBody,
|
|
660
|
-
errorCode,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
const de_GetWorkflowExecutionHistoryCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode >= 300) {
|
|
666
|
-
return de_GetWorkflowExecutionHistoryCommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const data = await parseBody(output.body, context);
|
|
669
|
-
let contents = {};
|
|
670
|
-
contents = de_History(data, context);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
...contents,
|
|
674
|
-
};
|
|
675
|
-
return response;
|
|
676
|
-
};
|
|
677
|
-
exports.de_GetWorkflowExecutionHistoryCommand = de_GetWorkflowExecutionHistoryCommand;
|
|
678
|
-
const de_GetWorkflowExecutionHistoryCommandError = async (output, context) => {
|
|
679
|
-
const parsedOutput = {
|
|
680
|
-
...output,
|
|
681
|
-
body: await parseErrorBody(output.body, context),
|
|
682
|
-
};
|
|
683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
-
switch (errorCode) {
|
|
685
|
-
case "OperationNotPermittedFault":
|
|
686
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
687
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
688
|
-
case "UnknownResourceFault":
|
|
689
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
690
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
691
|
-
default:
|
|
692
|
-
const parsedBody = parsedOutput.body;
|
|
693
|
-
return throwDefaultError({
|
|
694
|
-
output,
|
|
695
|
-
parsedBody,
|
|
696
|
-
errorCode,
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
const de_ListActivityTypesCommand = async (output, context) => {
|
|
701
|
-
if (output.statusCode >= 300) {
|
|
702
|
-
return de_ListActivityTypesCommandError(output, context);
|
|
703
|
-
}
|
|
704
|
-
const data = await parseBody(output.body, context);
|
|
705
|
-
let contents = {};
|
|
706
|
-
contents = de_ActivityTypeInfos(data, context);
|
|
707
|
-
const response = {
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
...contents,
|
|
710
|
-
};
|
|
711
|
-
return response;
|
|
712
|
-
};
|
|
713
|
-
exports.de_ListActivityTypesCommand = de_ListActivityTypesCommand;
|
|
714
|
-
const de_ListActivityTypesCommandError = async (output, context) => {
|
|
715
|
-
const parsedOutput = {
|
|
716
|
-
...output,
|
|
717
|
-
body: await parseErrorBody(output.body, context),
|
|
718
|
-
};
|
|
719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
|
-
switch (errorCode) {
|
|
721
|
-
case "OperationNotPermittedFault":
|
|
722
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
723
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
724
|
-
case "UnknownResourceFault":
|
|
725
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
726
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
727
|
-
default:
|
|
728
|
-
const parsedBody = parsedOutput.body;
|
|
729
|
-
return throwDefaultError({
|
|
730
|
-
output,
|
|
731
|
-
parsedBody,
|
|
732
|
-
errorCode,
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
const de_ListClosedWorkflowExecutionsCommand = async (output, context) => {
|
|
737
|
-
if (output.statusCode >= 300) {
|
|
738
|
-
return de_ListClosedWorkflowExecutionsCommandError(output, context);
|
|
739
|
-
}
|
|
740
|
-
const data = await parseBody(output.body, context);
|
|
741
|
-
let contents = {};
|
|
742
|
-
contents = de_WorkflowExecutionInfos(data, context);
|
|
743
|
-
const response = {
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
...contents,
|
|
746
|
-
};
|
|
747
|
-
return response;
|
|
748
|
-
};
|
|
749
|
-
exports.de_ListClosedWorkflowExecutionsCommand = de_ListClosedWorkflowExecutionsCommand;
|
|
750
|
-
const de_ListClosedWorkflowExecutionsCommandError = async (output, context) => {
|
|
751
|
-
const parsedOutput = {
|
|
752
|
-
...output,
|
|
753
|
-
body: await parseErrorBody(output.body, context),
|
|
754
|
-
};
|
|
755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
-
switch (errorCode) {
|
|
757
|
-
case "OperationNotPermittedFault":
|
|
758
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
759
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
760
|
-
case "UnknownResourceFault":
|
|
761
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
762
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
763
|
-
default:
|
|
764
|
-
const parsedBody = parsedOutput.body;
|
|
765
|
-
return throwDefaultError({
|
|
766
|
-
output,
|
|
767
|
-
parsedBody,
|
|
768
|
-
errorCode,
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
const de_ListDomainsCommand = async (output, context) => {
|
|
773
|
-
if (output.statusCode >= 300) {
|
|
774
|
-
return de_ListDomainsCommandError(output, context);
|
|
775
|
-
}
|
|
776
|
-
const data = await parseBody(output.body, context);
|
|
777
|
-
let contents = {};
|
|
778
|
-
contents = (0, smithy_client_1._json)(data);
|
|
779
|
-
const response = {
|
|
780
|
-
$metadata: deserializeMetadata(output),
|
|
781
|
-
...contents,
|
|
782
|
-
};
|
|
783
|
-
return response;
|
|
784
|
-
};
|
|
785
|
-
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
786
|
-
const de_ListDomainsCommandError = async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context),
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "OperationNotPermittedFault":
|
|
794
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
795
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
796
|
-
default:
|
|
797
|
-
const parsedBody = parsedOutput.body;
|
|
798
|
-
return throwDefaultError({
|
|
799
|
-
output,
|
|
800
|
-
parsedBody,
|
|
801
|
-
errorCode,
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
};
|
|
805
|
-
const de_ListOpenWorkflowExecutionsCommand = async (output, context) => {
|
|
806
|
-
if (output.statusCode >= 300) {
|
|
807
|
-
return de_ListOpenWorkflowExecutionsCommandError(output, context);
|
|
808
|
-
}
|
|
809
|
-
const data = await parseBody(output.body, context);
|
|
810
|
-
let contents = {};
|
|
811
|
-
contents = de_WorkflowExecutionInfos(data, context);
|
|
812
|
-
const response = {
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
...contents,
|
|
815
|
-
};
|
|
816
|
-
return response;
|
|
817
|
-
};
|
|
818
|
-
exports.de_ListOpenWorkflowExecutionsCommand = de_ListOpenWorkflowExecutionsCommand;
|
|
819
|
-
const de_ListOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
820
|
-
const parsedOutput = {
|
|
821
|
-
...output,
|
|
822
|
-
body: await parseErrorBody(output.body, context),
|
|
823
|
-
};
|
|
824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
|
-
switch (errorCode) {
|
|
826
|
-
case "OperationNotPermittedFault":
|
|
827
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
828
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
829
|
-
case "UnknownResourceFault":
|
|
830
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
831
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
return throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
errorCode,
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
842
|
-
if (output.statusCode >= 300) {
|
|
843
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
844
|
-
}
|
|
845
|
-
const data = await parseBody(output.body, context);
|
|
846
|
-
let contents = {};
|
|
847
|
-
contents = (0, smithy_client_1._json)(data);
|
|
848
|
-
const response = {
|
|
849
|
-
$metadata: deserializeMetadata(output),
|
|
850
|
-
...contents,
|
|
851
|
-
};
|
|
852
|
-
return response;
|
|
853
|
-
};
|
|
854
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
855
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
856
|
-
const parsedOutput = {
|
|
857
|
-
...output,
|
|
858
|
-
body: await parseErrorBody(output.body, context),
|
|
859
|
-
};
|
|
860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
|
-
switch (errorCode) {
|
|
862
|
-
case "LimitExceededFault":
|
|
863
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
864
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
865
|
-
case "OperationNotPermittedFault":
|
|
866
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
867
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
868
|
-
case "UnknownResourceFault":
|
|
869
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
870
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
871
|
-
default:
|
|
872
|
-
const parsedBody = parsedOutput.body;
|
|
873
|
-
return throwDefaultError({
|
|
874
|
-
output,
|
|
875
|
-
parsedBody,
|
|
876
|
-
errorCode,
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
|
-
const de_ListWorkflowTypesCommand = async (output, context) => {
|
|
881
|
-
if (output.statusCode >= 300) {
|
|
882
|
-
return de_ListWorkflowTypesCommandError(output, context);
|
|
883
|
-
}
|
|
884
|
-
const data = await parseBody(output.body, context);
|
|
885
|
-
let contents = {};
|
|
886
|
-
contents = de_WorkflowTypeInfos(data, context);
|
|
887
|
-
const response = {
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
...contents,
|
|
890
|
-
};
|
|
891
|
-
return response;
|
|
892
|
-
};
|
|
893
|
-
exports.de_ListWorkflowTypesCommand = de_ListWorkflowTypesCommand;
|
|
894
|
-
const de_ListWorkflowTypesCommandError = async (output, context) => {
|
|
895
|
-
const parsedOutput = {
|
|
896
|
-
...output,
|
|
897
|
-
body: await parseErrorBody(output.body, context),
|
|
898
|
-
};
|
|
899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
|
-
switch (errorCode) {
|
|
901
|
-
case "OperationNotPermittedFault":
|
|
902
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
903
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
904
|
-
case "UnknownResourceFault":
|
|
905
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
906
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
907
|
-
default:
|
|
908
|
-
const parsedBody = parsedOutput.body;
|
|
909
|
-
return throwDefaultError({
|
|
910
|
-
output,
|
|
911
|
-
parsedBody,
|
|
912
|
-
errorCode,
|
|
913
|
-
});
|
|
914
|
-
}
|
|
915
|
-
};
|
|
916
|
-
const de_PollForActivityTaskCommand = async (output, context) => {
|
|
917
|
-
if (output.statusCode >= 300) {
|
|
918
|
-
return de_PollForActivityTaskCommandError(output, context);
|
|
919
|
-
}
|
|
920
|
-
const data = await parseBody(output.body, context);
|
|
921
|
-
let contents = {};
|
|
922
|
-
contents = (0, smithy_client_1._json)(data);
|
|
923
|
-
const response = {
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
...contents,
|
|
926
|
-
};
|
|
927
|
-
return response;
|
|
928
|
-
};
|
|
929
|
-
exports.de_PollForActivityTaskCommand = de_PollForActivityTaskCommand;
|
|
930
|
-
const de_PollForActivityTaskCommandError = async (output, context) => {
|
|
931
|
-
const parsedOutput = {
|
|
932
|
-
...output,
|
|
933
|
-
body: await parseErrorBody(output.body, context),
|
|
934
|
-
};
|
|
935
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
|
-
switch (errorCode) {
|
|
937
|
-
case "LimitExceededFault":
|
|
938
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
939
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
940
|
-
case "OperationNotPermittedFault":
|
|
941
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
942
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
943
|
-
case "UnknownResourceFault":
|
|
944
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
945
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
946
|
-
default:
|
|
947
|
-
const parsedBody = parsedOutput.body;
|
|
948
|
-
return throwDefaultError({
|
|
949
|
-
output,
|
|
950
|
-
parsedBody,
|
|
951
|
-
errorCode,
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
};
|
|
955
|
-
const de_PollForDecisionTaskCommand = async (output, context) => {
|
|
956
|
-
if (output.statusCode >= 300) {
|
|
957
|
-
return de_PollForDecisionTaskCommandError(output, context);
|
|
958
|
-
}
|
|
959
|
-
const data = await parseBody(output.body, context);
|
|
960
|
-
let contents = {};
|
|
961
|
-
contents = de_DecisionTask(data, context);
|
|
962
|
-
const response = {
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
...contents,
|
|
965
|
-
};
|
|
966
|
-
return response;
|
|
967
|
-
};
|
|
968
|
-
exports.de_PollForDecisionTaskCommand = de_PollForDecisionTaskCommand;
|
|
969
|
-
const de_PollForDecisionTaskCommandError = async (output, context) => {
|
|
970
|
-
const parsedOutput = {
|
|
971
|
-
...output,
|
|
972
|
-
body: await parseErrorBody(output.body, context),
|
|
973
|
-
};
|
|
974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
-
switch (errorCode) {
|
|
976
|
-
case "LimitExceededFault":
|
|
977
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
978
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
979
|
-
case "OperationNotPermittedFault":
|
|
980
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
981
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
982
|
-
case "UnknownResourceFault":
|
|
983
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
984
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
985
|
-
default:
|
|
986
|
-
const parsedBody = parsedOutput.body;
|
|
987
|
-
return throwDefaultError({
|
|
988
|
-
output,
|
|
989
|
-
parsedBody,
|
|
990
|
-
errorCode,
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
|
-
const de_RecordActivityTaskHeartbeatCommand = async (output, context) => {
|
|
995
|
-
if (output.statusCode >= 300) {
|
|
996
|
-
return de_RecordActivityTaskHeartbeatCommandError(output, context);
|
|
997
|
-
}
|
|
998
|
-
const data = await parseBody(output.body, context);
|
|
999
|
-
let contents = {};
|
|
1000
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1001
|
-
const response = {
|
|
1002
|
-
$metadata: deserializeMetadata(output),
|
|
1003
|
-
...contents,
|
|
1004
|
-
};
|
|
1005
|
-
return response;
|
|
1006
|
-
};
|
|
1007
|
-
exports.de_RecordActivityTaskHeartbeatCommand = de_RecordActivityTaskHeartbeatCommand;
|
|
1008
|
-
const de_RecordActivityTaskHeartbeatCommandError = async (output, context) => {
|
|
1009
|
-
const parsedOutput = {
|
|
1010
|
-
...output,
|
|
1011
|
-
body: await parseErrorBody(output.body, context),
|
|
1012
|
-
};
|
|
1013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
-
switch (errorCode) {
|
|
1015
|
-
case "OperationNotPermittedFault":
|
|
1016
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1017
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1018
|
-
case "UnknownResourceFault":
|
|
1019
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1020
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode,
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
const de_RegisterActivityTypeCommand = async (output, context) => {
|
|
1031
|
-
if (output.statusCode >= 300) {
|
|
1032
|
-
return de_RegisterActivityTypeCommandError(output, context);
|
|
1033
|
-
}
|
|
1034
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1035
|
-
const response = {
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
};
|
|
1038
|
-
return response;
|
|
1039
|
-
};
|
|
1040
|
-
exports.de_RegisterActivityTypeCommand = de_RegisterActivityTypeCommand;
|
|
1041
|
-
const de_RegisterActivityTypeCommandError = async (output, context) => {
|
|
1042
|
-
const parsedOutput = {
|
|
1043
|
-
...output,
|
|
1044
|
-
body: await parseErrorBody(output.body, context),
|
|
1045
|
-
};
|
|
1046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
|
-
switch (errorCode) {
|
|
1048
|
-
case "LimitExceededFault":
|
|
1049
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
1050
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1051
|
-
case "OperationNotPermittedFault":
|
|
1052
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1053
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1054
|
-
case "TypeAlreadyExistsFault":
|
|
1055
|
-
case "com.amazonaws.swf#TypeAlreadyExistsFault":
|
|
1056
|
-
throw await de_TypeAlreadyExistsFaultRes(parsedOutput, context);
|
|
1057
|
-
case "UnknownResourceFault":
|
|
1058
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1059
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1060
|
-
default:
|
|
1061
|
-
const parsedBody = parsedOutput.body;
|
|
1062
|
-
return throwDefaultError({
|
|
1063
|
-
output,
|
|
1064
|
-
parsedBody,
|
|
1065
|
-
errorCode,
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
};
|
|
1069
|
-
const de_RegisterDomainCommand = async (output, context) => {
|
|
1070
|
-
if (output.statusCode >= 300) {
|
|
1071
|
-
return de_RegisterDomainCommandError(output, context);
|
|
1072
|
-
}
|
|
1073
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1074
|
-
const response = {
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
};
|
|
1077
|
-
return response;
|
|
1078
|
-
};
|
|
1079
|
-
exports.de_RegisterDomainCommand = de_RegisterDomainCommand;
|
|
1080
|
-
const de_RegisterDomainCommandError = async (output, context) => {
|
|
1081
|
-
const parsedOutput = {
|
|
1082
|
-
...output,
|
|
1083
|
-
body: await parseErrorBody(output.body, context),
|
|
1084
|
-
};
|
|
1085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
-
switch (errorCode) {
|
|
1087
|
-
case "DomainAlreadyExistsFault":
|
|
1088
|
-
case "com.amazonaws.swf#DomainAlreadyExistsFault":
|
|
1089
|
-
throw await de_DomainAlreadyExistsFaultRes(parsedOutput, context);
|
|
1090
|
-
case "LimitExceededFault":
|
|
1091
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
1092
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1093
|
-
case "OperationNotPermittedFault":
|
|
1094
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1095
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1096
|
-
case "TooManyTagsFault":
|
|
1097
|
-
case "com.amazonaws.swf#TooManyTagsFault":
|
|
1098
|
-
throw await de_TooManyTagsFaultRes(parsedOutput, context);
|
|
1099
|
-
default:
|
|
1100
|
-
const parsedBody = parsedOutput.body;
|
|
1101
|
-
return throwDefaultError({
|
|
1102
|
-
output,
|
|
1103
|
-
parsedBody,
|
|
1104
|
-
errorCode,
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
};
|
|
1108
|
-
const de_RegisterWorkflowTypeCommand = async (output, context) => {
|
|
1109
|
-
if (output.statusCode >= 300) {
|
|
1110
|
-
return de_RegisterWorkflowTypeCommandError(output, context);
|
|
1111
|
-
}
|
|
1112
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1113
|
-
const response = {
|
|
1114
|
-
$metadata: deserializeMetadata(output),
|
|
1115
|
-
};
|
|
1116
|
-
return response;
|
|
1117
|
-
};
|
|
1118
|
-
exports.de_RegisterWorkflowTypeCommand = de_RegisterWorkflowTypeCommand;
|
|
1119
|
-
const de_RegisterWorkflowTypeCommandError = async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context),
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "LimitExceededFault":
|
|
1127
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
1128
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1129
|
-
case "OperationNotPermittedFault":
|
|
1130
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1131
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1132
|
-
case "TypeAlreadyExistsFault":
|
|
1133
|
-
case "com.amazonaws.swf#TypeAlreadyExistsFault":
|
|
1134
|
-
throw await de_TypeAlreadyExistsFaultRes(parsedOutput, context);
|
|
1135
|
-
case "UnknownResourceFault":
|
|
1136
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1137
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1138
|
-
default:
|
|
1139
|
-
const parsedBody = parsedOutput.body;
|
|
1140
|
-
return throwDefaultError({
|
|
1141
|
-
output,
|
|
1142
|
-
parsedBody,
|
|
1143
|
-
errorCode,
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
|
-
const de_RequestCancelWorkflowExecutionCommand = async (output, context) => {
|
|
1148
|
-
if (output.statusCode >= 300) {
|
|
1149
|
-
return de_RequestCancelWorkflowExecutionCommandError(output, context);
|
|
1150
|
-
}
|
|
1151
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1152
|
-
const response = {
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
};
|
|
1155
|
-
return response;
|
|
1156
|
-
};
|
|
1157
|
-
exports.de_RequestCancelWorkflowExecutionCommand = de_RequestCancelWorkflowExecutionCommand;
|
|
1158
|
-
const de_RequestCancelWorkflowExecutionCommandError = async (output, context) => {
|
|
1159
|
-
const parsedOutput = {
|
|
1160
|
-
...output,
|
|
1161
|
-
body: await parseErrorBody(output.body, context),
|
|
1162
|
-
};
|
|
1163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
|
-
switch (errorCode) {
|
|
1165
|
-
case "OperationNotPermittedFault":
|
|
1166
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1167
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1168
|
-
case "UnknownResourceFault":
|
|
1169
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1170
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1171
|
-
default:
|
|
1172
|
-
const parsedBody = parsedOutput.body;
|
|
1173
|
-
return throwDefaultError({
|
|
1174
|
-
output,
|
|
1175
|
-
parsedBody,
|
|
1176
|
-
errorCode,
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
|
-
const de_RespondActivityTaskCanceledCommand = async (output, context) => {
|
|
1181
|
-
if (output.statusCode >= 300) {
|
|
1182
|
-
return de_RespondActivityTaskCanceledCommandError(output, context);
|
|
1183
|
-
}
|
|
1184
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1185
|
-
const response = {
|
|
1186
|
-
$metadata: deserializeMetadata(output),
|
|
1187
|
-
};
|
|
1188
|
-
return response;
|
|
1189
|
-
};
|
|
1190
|
-
exports.de_RespondActivityTaskCanceledCommand = de_RespondActivityTaskCanceledCommand;
|
|
1191
|
-
const de_RespondActivityTaskCanceledCommandError = async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context),
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "OperationNotPermittedFault":
|
|
1199
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1200
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1201
|
-
case "UnknownResourceFault":
|
|
1202
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1203
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1204
|
-
default:
|
|
1205
|
-
const parsedBody = parsedOutput.body;
|
|
1206
|
-
return throwDefaultError({
|
|
1207
|
-
output,
|
|
1208
|
-
parsedBody,
|
|
1209
|
-
errorCode,
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
|
-
const de_RespondActivityTaskCompletedCommand = async (output, context) => {
|
|
1214
|
-
if (output.statusCode >= 300) {
|
|
1215
|
-
return de_RespondActivityTaskCompletedCommandError(output, context);
|
|
1216
|
-
}
|
|
1217
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1218
|
-
const response = {
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
return response;
|
|
1222
|
-
};
|
|
1223
|
-
exports.de_RespondActivityTaskCompletedCommand = de_RespondActivityTaskCompletedCommand;
|
|
1224
|
-
const de_RespondActivityTaskCompletedCommandError = async (output, context) => {
|
|
1225
|
-
const parsedOutput = {
|
|
1226
|
-
...output,
|
|
1227
|
-
body: await parseErrorBody(output.body, context),
|
|
1228
|
-
};
|
|
1229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
|
-
switch (errorCode) {
|
|
1231
|
-
case "OperationNotPermittedFault":
|
|
1232
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1233
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1234
|
-
case "UnknownResourceFault":
|
|
1235
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1236
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1237
|
-
default:
|
|
1238
|
-
const parsedBody = parsedOutput.body;
|
|
1239
|
-
return throwDefaultError({
|
|
1240
|
-
output,
|
|
1241
|
-
parsedBody,
|
|
1242
|
-
errorCode,
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
};
|
|
1246
|
-
const de_RespondActivityTaskFailedCommand = async (output, context) => {
|
|
1247
|
-
if (output.statusCode >= 300) {
|
|
1248
|
-
return de_RespondActivityTaskFailedCommandError(output, context);
|
|
1249
|
-
}
|
|
1250
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1251
|
-
const response = {
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
return response;
|
|
1255
|
-
};
|
|
1256
|
-
exports.de_RespondActivityTaskFailedCommand = de_RespondActivityTaskFailedCommand;
|
|
1257
|
-
const de_RespondActivityTaskFailedCommandError = async (output, context) => {
|
|
1258
|
-
const parsedOutput = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseErrorBody(output.body, context),
|
|
1261
|
-
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
-
switch (errorCode) {
|
|
1264
|
-
case "OperationNotPermittedFault":
|
|
1265
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1266
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1267
|
-
case "UnknownResourceFault":
|
|
1268
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1269
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1270
|
-
default:
|
|
1271
|
-
const parsedBody = parsedOutput.body;
|
|
1272
|
-
return throwDefaultError({
|
|
1273
|
-
output,
|
|
1274
|
-
parsedBody,
|
|
1275
|
-
errorCode,
|
|
1276
|
-
});
|
|
1277
|
-
}
|
|
1278
|
-
};
|
|
1279
|
-
const de_RespondDecisionTaskCompletedCommand = async (output, context) => {
|
|
1280
|
-
if (output.statusCode >= 300) {
|
|
1281
|
-
return de_RespondDecisionTaskCompletedCommandError(output, context);
|
|
1282
|
-
}
|
|
1283
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1284
|
-
const response = {
|
|
1285
|
-
$metadata: deserializeMetadata(output),
|
|
1286
|
-
};
|
|
1287
|
-
return response;
|
|
1288
|
-
};
|
|
1289
|
-
exports.de_RespondDecisionTaskCompletedCommand = de_RespondDecisionTaskCompletedCommand;
|
|
1290
|
-
const de_RespondDecisionTaskCompletedCommandError = async (output, context) => {
|
|
1291
|
-
const parsedOutput = {
|
|
1292
|
-
...output,
|
|
1293
|
-
body: await parseErrorBody(output.body, context),
|
|
1294
|
-
};
|
|
1295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1296
|
-
switch (errorCode) {
|
|
1297
|
-
case "OperationNotPermittedFault":
|
|
1298
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1299
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1300
|
-
case "UnknownResourceFault":
|
|
1301
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1302
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1303
|
-
default:
|
|
1304
|
-
const parsedBody = parsedOutput.body;
|
|
1305
|
-
return throwDefaultError({
|
|
1306
|
-
output,
|
|
1307
|
-
parsedBody,
|
|
1308
|
-
errorCode,
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
|
-
const de_SignalWorkflowExecutionCommand = async (output, context) => {
|
|
1313
|
-
if (output.statusCode >= 300) {
|
|
1314
|
-
return de_SignalWorkflowExecutionCommandError(output, context);
|
|
1315
|
-
}
|
|
1316
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1317
|
-
const response = {
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
};
|
|
1320
|
-
return response;
|
|
1321
|
-
};
|
|
1322
|
-
exports.de_SignalWorkflowExecutionCommand = de_SignalWorkflowExecutionCommand;
|
|
1323
|
-
const de_SignalWorkflowExecutionCommandError = async (output, context) => {
|
|
1324
|
-
const parsedOutput = {
|
|
1325
|
-
...output,
|
|
1326
|
-
body: await parseErrorBody(output.body, context),
|
|
1327
|
-
};
|
|
1328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
-
switch (errorCode) {
|
|
1330
|
-
case "OperationNotPermittedFault":
|
|
1331
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1332
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1333
|
-
case "UnknownResourceFault":
|
|
1334
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1335
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
const de_StartWorkflowExecutionCommand = async (output, context) => {
|
|
1346
|
-
if (output.statusCode >= 300) {
|
|
1347
|
-
return de_StartWorkflowExecutionCommandError(output, context);
|
|
1348
|
-
}
|
|
1349
|
-
const data = await parseBody(output.body, context);
|
|
1350
|
-
let contents = {};
|
|
1351
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1352
|
-
const response = {
|
|
1353
|
-
$metadata: deserializeMetadata(output),
|
|
1354
|
-
...contents,
|
|
1355
|
-
};
|
|
1356
|
-
return response;
|
|
1357
|
-
};
|
|
1358
|
-
exports.de_StartWorkflowExecutionCommand = de_StartWorkflowExecutionCommand;
|
|
1359
|
-
const de_StartWorkflowExecutionCommandError = async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context),
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "DefaultUndefinedFault":
|
|
1367
|
-
case "com.amazonaws.swf#DefaultUndefinedFault":
|
|
1368
|
-
throw await de_DefaultUndefinedFaultRes(parsedOutput, context);
|
|
1369
|
-
case "LimitExceededFault":
|
|
1370
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
1371
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1372
|
-
case "OperationNotPermittedFault":
|
|
1373
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1374
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1375
|
-
case "TypeDeprecatedFault":
|
|
1376
|
-
case "com.amazonaws.swf#TypeDeprecatedFault":
|
|
1377
|
-
throw await de_TypeDeprecatedFaultRes(parsedOutput, context);
|
|
1378
|
-
case "UnknownResourceFault":
|
|
1379
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1380
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1381
|
-
case "WorkflowExecutionAlreadyStartedFault":
|
|
1382
|
-
case "com.amazonaws.swf#WorkflowExecutionAlreadyStartedFault":
|
|
1383
|
-
throw await de_WorkflowExecutionAlreadyStartedFaultRes(parsedOutput, context);
|
|
1384
|
-
default:
|
|
1385
|
-
const parsedBody = parsedOutput.body;
|
|
1386
|
-
return throwDefaultError({
|
|
1387
|
-
output,
|
|
1388
|
-
parsedBody,
|
|
1389
|
-
errorCode,
|
|
1390
|
-
});
|
|
1391
|
-
}
|
|
1392
|
-
};
|
|
1393
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1394
|
-
if (output.statusCode >= 300) {
|
|
1395
|
-
return de_TagResourceCommandError(output, context);
|
|
1396
|
-
}
|
|
1397
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1398
|
-
const response = {
|
|
1399
|
-
$metadata: deserializeMetadata(output),
|
|
1400
|
-
};
|
|
1401
|
-
return response;
|
|
1402
|
-
};
|
|
1403
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1404
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context),
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "LimitExceededFault":
|
|
1412
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
1413
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1414
|
-
case "OperationNotPermittedFault":
|
|
1415
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1416
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1417
|
-
case "TooManyTagsFault":
|
|
1418
|
-
case "com.amazonaws.swf#TooManyTagsFault":
|
|
1419
|
-
throw await de_TooManyTagsFaultRes(parsedOutput, context);
|
|
1420
|
-
case "UnknownResourceFault":
|
|
1421
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1422
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1423
|
-
default:
|
|
1424
|
-
const parsedBody = parsedOutput.body;
|
|
1425
|
-
return throwDefaultError({
|
|
1426
|
-
output,
|
|
1427
|
-
parsedBody,
|
|
1428
|
-
errorCode,
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
};
|
|
1432
|
-
const de_TerminateWorkflowExecutionCommand = async (output, context) => {
|
|
1433
|
-
if (output.statusCode >= 300) {
|
|
1434
|
-
return de_TerminateWorkflowExecutionCommandError(output, context);
|
|
1435
|
-
}
|
|
1436
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1437
|
-
const response = {
|
|
1438
|
-
$metadata: deserializeMetadata(output),
|
|
1439
|
-
};
|
|
1440
|
-
return response;
|
|
1441
|
-
};
|
|
1442
|
-
exports.de_TerminateWorkflowExecutionCommand = de_TerminateWorkflowExecutionCommand;
|
|
1443
|
-
const de_TerminateWorkflowExecutionCommandError = async (output, context) => {
|
|
1444
|
-
const parsedOutput = {
|
|
1445
|
-
...output,
|
|
1446
|
-
body: await parseErrorBody(output.body, context),
|
|
1447
|
-
};
|
|
1448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
-
switch (errorCode) {
|
|
1450
|
-
case "OperationNotPermittedFault":
|
|
1451
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1452
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1453
|
-
case "UnknownResourceFault":
|
|
1454
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1455
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode,
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
const de_UndeprecateActivityTypeCommand = async (output, context) => {
|
|
1466
|
-
if (output.statusCode >= 300) {
|
|
1467
|
-
return de_UndeprecateActivityTypeCommandError(output, context);
|
|
1468
|
-
}
|
|
1469
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1470
|
-
const response = {
|
|
1471
|
-
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1473
|
-
return response;
|
|
1474
|
-
};
|
|
1475
|
-
exports.de_UndeprecateActivityTypeCommand = de_UndeprecateActivityTypeCommand;
|
|
1476
|
-
const de_UndeprecateActivityTypeCommandError = async (output, context) => {
|
|
1477
|
-
const parsedOutput = {
|
|
1478
|
-
...output,
|
|
1479
|
-
body: await parseErrorBody(output.body, context),
|
|
1480
|
-
};
|
|
1481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
|
-
switch (errorCode) {
|
|
1483
|
-
case "OperationNotPermittedFault":
|
|
1484
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1485
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1486
|
-
case "TypeAlreadyExistsFault":
|
|
1487
|
-
case "com.amazonaws.swf#TypeAlreadyExistsFault":
|
|
1488
|
-
throw await de_TypeAlreadyExistsFaultRes(parsedOutput, context);
|
|
1489
|
-
case "UnknownResourceFault":
|
|
1490
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1491
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1492
|
-
default:
|
|
1493
|
-
const parsedBody = parsedOutput.body;
|
|
1494
|
-
return throwDefaultError({
|
|
1495
|
-
output,
|
|
1496
|
-
parsedBody,
|
|
1497
|
-
errorCode,
|
|
1498
|
-
});
|
|
1499
|
-
}
|
|
1500
|
-
};
|
|
1501
|
-
const de_UndeprecateDomainCommand = async (output, context) => {
|
|
1502
|
-
if (output.statusCode >= 300) {
|
|
1503
|
-
return de_UndeprecateDomainCommandError(output, context);
|
|
1504
|
-
}
|
|
1505
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1506
|
-
const response = {
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
};
|
|
1509
|
-
return response;
|
|
1510
|
-
};
|
|
1511
|
-
exports.de_UndeprecateDomainCommand = de_UndeprecateDomainCommand;
|
|
1512
|
-
const de_UndeprecateDomainCommandError = async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context),
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "DomainAlreadyExistsFault":
|
|
1520
|
-
case "com.amazonaws.swf#DomainAlreadyExistsFault":
|
|
1521
|
-
throw await de_DomainAlreadyExistsFaultRes(parsedOutput, context);
|
|
1522
|
-
case "OperationNotPermittedFault":
|
|
1523
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1524
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1525
|
-
case "UnknownResourceFault":
|
|
1526
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1527
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode,
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
const de_UndeprecateWorkflowTypeCommand = async (output, context) => {
|
|
1538
|
-
if (output.statusCode >= 300) {
|
|
1539
|
-
return de_UndeprecateWorkflowTypeCommandError(output, context);
|
|
1540
|
-
}
|
|
1541
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1542
|
-
const response = {
|
|
1543
|
-
$metadata: deserializeMetadata(output),
|
|
1544
|
-
};
|
|
1545
|
-
return response;
|
|
1546
|
-
};
|
|
1547
|
-
exports.de_UndeprecateWorkflowTypeCommand = de_UndeprecateWorkflowTypeCommand;
|
|
1548
|
-
const de_UndeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
1549
|
-
const parsedOutput = {
|
|
1550
|
-
...output,
|
|
1551
|
-
body: await parseErrorBody(output.body, context),
|
|
1552
|
-
};
|
|
1553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
-
switch (errorCode) {
|
|
1555
|
-
case "OperationNotPermittedFault":
|
|
1556
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1557
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1558
|
-
case "TypeAlreadyExistsFault":
|
|
1559
|
-
case "com.amazonaws.swf#TypeAlreadyExistsFault":
|
|
1560
|
-
throw await de_TypeAlreadyExistsFaultRes(parsedOutput, context);
|
|
1561
|
-
case "UnknownResourceFault":
|
|
1562
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1563
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1564
|
-
default:
|
|
1565
|
-
const parsedBody = parsedOutput.body;
|
|
1566
|
-
return throwDefaultError({
|
|
1567
|
-
output,
|
|
1568
|
-
parsedBody,
|
|
1569
|
-
errorCode,
|
|
1570
|
-
});
|
|
1571
|
-
}
|
|
1572
|
-
};
|
|
1573
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1574
|
-
if (output.statusCode >= 300) {
|
|
1575
|
-
return de_UntagResourceCommandError(output, context);
|
|
1576
|
-
}
|
|
1577
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1578
|
-
const response = {
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1581
|
-
return response;
|
|
1582
|
-
};
|
|
1583
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1584
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1585
|
-
const parsedOutput = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseErrorBody(output.body, context),
|
|
1588
|
-
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
-
switch (errorCode) {
|
|
1591
|
-
case "LimitExceededFault":
|
|
1592
|
-
case "com.amazonaws.swf#LimitExceededFault":
|
|
1593
|
-
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1594
|
-
case "OperationNotPermittedFault":
|
|
1595
|
-
case "com.amazonaws.swf#OperationNotPermittedFault":
|
|
1596
|
-
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
1597
|
-
case "UnknownResourceFault":
|
|
1598
|
-
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1599
|
-
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1600
|
-
default:
|
|
1601
|
-
const parsedBody = parsedOutput.body;
|
|
1602
|
-
return throwDefaultError({
|
|
1603
|
-
output,
|
|
1604
|
-
parsedBody,
|
|
1605
|
-
errorCode,
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
};
|
|
1609
|
-
const de_DefaultUndefinedFaultRes = async (parsedOutput, context) => {
|
|
1610
|
-
const body = parsedOutput.body;
|
|
1611
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1612
|
-
const exception = new models_0_1.DefaultUndefinedFault({
|
|
1613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1614
|
-
...deserialized,
|
|
1615
|
-
});
|
|
1616
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1617
|
-
};
|
|
1618
|
-
const de_DomainAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
1619
|
-
const body = parsedOutput.body;
|
|
1620
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1621
|
-
const exception = new models_0_1.DomainAlreadyExistsFault({
|
|
1622
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1623
|
-
...deserialized,
|
|
1624
|
-
});
|
|
1625
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1626
|
-
};
|
|
1627
|
-
const de_DomainDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
1628
|
-
const body = parsedOutput.body;
|
|
1629
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1630
|
-
const exception = new models_0_1.DomainDeprecatedFault({
|
|
1631
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1632
|
-
...deserialized,
|
|
1633
|
-
});
|
|
1634
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1635
|
-
};
|
|
1636
|
-
const de_LimitExceededFaultRes = async (parsedOutput, context) => {
|
|
1637
|
-
const body = parsedOutput.body;
|
|
1638
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1639
|
-
const exception = new models_0_1.LimitExceededFault({
|
|
1640
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1641
|
-
...deserialized,
|
|
1642
|
-
});
|
|
1643
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1644
|
-
};
|
|
1645
|
-
const de_OperationNotPermittedFaultRes = async (parsedOutput, context) => {
|
|
1646
|
-
const body = parsedOutput.body;
|
|
1647
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1648
|
-
const exception = new models_0_1.OperationNotPermittedFault({
|
|
1649
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1650
|
-
...deserialized,
|
|
1651
|
-
});
|
|
1652
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1653
|
-
};
|
|
1654
|
-
const de_TooManyTagsFaultRes = async (parsedOutput, context) => {
|
|
1655
|
-
const body = parsedOutput.body;
|
|
1656
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1657
|
-
const exception = new models_0_1.TooManyTagsFault({
|
|
1658
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1659
|
-
...deserialized,
|
|
1660
|
-
});
|
|
1661
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1662
|
-
};
|
|
1663
|
-
const de_TypeAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
1664
|
-
const body = parsedOutput.body;
|
|
1665
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1666
|
-
const exception = new models_0_1.TypeAlreadyExistsFault({
|
|
1667
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1668
|
-
...deserialized,
|
|
1669
|
-
});
|
|
1670
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1671
|
-
};
|
|
1672
|
-
const de_TypeDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
1673
|
-
const body = parsedOutput.body;
|
|
1674
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1675
|
-
const exception = new models_0_1.TypeDeprecatedFault({
|
|
1676
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1677
|
-
...deserialized,
|
|
1678
|
-
});
|
|
1679
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1680
|
-
};
|
|
1681
|
-
const de_UnknownResourceFaultRes = async (parsedOutput, context) => {
|
|
1682
|
-
const body = parsedOutput.body;
|
|
1683
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1684
|
-
const exception = new models_0_1.UnknownResourceFault({
|
|
1685
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1686
|
-
...deserialized,
|
|
1687
|
-
});
|
|
1688
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1689
|
-
};
|
|
1690
|
-
const de_WorkflowExecutionAlreadyStartedFaultRes = async (parsedOutput, context) => {
|
|
1691
|
-
const body = parsedOutput.body;
|
|
1692
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1693
|
-
const exception = new models_0_1.WorkflowExecutionAlreadyStartedFault({
|
|
1694
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1695
|
-
...deserialized,
|
|
1696
|
-
});
|
|
1697
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1698
|
-
};
|
|
1699
|
-
const se_CountClosedWorkflowExecutionsInput = (input, context) => {
|
|
1700
|
-
return (0, smithy_client_1.take)(input, {
|
|
1701
|
-
closeStatusFilter: smithy_client_1._json,
|
|
1702
|
-
closeTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
|
|
1703
|
-
domain: [],
|
|
1704
|
-
executionFilter: smithy_client_1._json,
|
|
1705
|
-
startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
|
|
1706
|
-
tagFilter: smithy_client_1._json,
|
|
1707
|
-
typeFilter: smithy_client_1._json,
|
|
1708
|
-
});
|
|
1709
|
-
};
|
|
1710
|
-
const se_CountOpenWorkflowExecutionsInput = (input, context) => {
|
|
1711
|
-
return (0, smithy_client_1.take)(input, {
|
|
1712
|
-
domain: [],
|
|
1713
|
-
executionFilter: smithy_client_1._json,
|
|
1714
|
-
startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
|
|
1715
|
-
tagFilter: smithy_client_1._json,
|
|
1716
|
-
typeFilter: smithy_client_1._json,
|
|
1717
|
-
});
|
|
1718
|
-
};
|
|
1719
|
-
const se_ExecutionTimeFilter = (input, context) => {
|
|
1720
|
-
return (0, smithy_client_1.take)(input, {
|
|
1721
|
-
latestDate: (_) => Math.round(_.getTime() / 1000),
|
|
1722
|
-
oldestDate: (_) => Math.round(_.getTime() / 1000),
|
|
1723
|
-
});
|
|
1724
|
-
};
|
|
1725
|
-
const se_ListClosedWorkflowExecutionsInput = (input, context) => {
|
|
1726
|
-
return (0, smithy_client_1.take)(input, {
|
|
1727
|
-
closeStatusFilter: smithy_client_1._json,
|
|
1728
|
-
closeTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
|
|
1729
|
-
domain: [],
|
|
1730
|
-
executionFilter: smithy_client_1._json,
|
|
1731
|
-
maximumPageSize: [],
|
|
1732
|
-
nextPageToken: [],
|
|
1733
|
-
reverseOrder: [],
|
|
1734
|
-
startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
|
|
1735
|
-
tagFilter: smithy_client_1._json,
|
|
1736
|
-
typeFilter: smithy_client_1._json,
|
|
1737
|
-
});
|
|
1738
|
-
};
|
|
1739
|
-
const se_ListOpenWorkflowExecutionsInput = (input, context) => {
|
|
1740
|
-
return (0, smithy_client_1.take)(input, {
|
|
1741
|
-
domain: [],
|
|
1742
|
-
executionFilter: smithy_client_1._json,
|
|
1743
|
-
maximumPageSize: [],
|
|
1744
|
-
nextPageToken: [],
|
|
1745
|
-
reverseOrder: [],
|
|
1746
|
-
startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
|
|
1747
|
-
tagFilter: smithy_client_1._json,
|
|
1748
|
-
typeFilter: smithy_client_1._json,
|
|
1749
|
-
});
|
|
1750
|
-
};
|
|
1751
|
-
const de_ActivityTypeDetail = (output, context) => {
|
|
1752
|
-
return (0, smithy_client_1.take)(output, {
|
|
1753
|
-
configuration: smithy_client_1._json,
|
|
1754
|
-
typeInfo: (_) => de_ActivityTypeInfo(_, context),
|
|
1755
|
-
});
|
|
1756
|
-
};
|
|
1757
|
-
const de_ActivityTypeInfo = (output, context) => {
|
|
1758
|
-
return (0, smithy_client_1.take)(output, {
|
|
1759
|
-
activityType: smithy_client_1._json,
|
|
1760
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1761
|
-
deprecationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1762
|
-
description: smithy_client_1.expectString,
|
|
1763
|
-
status: smithy_client_1.expectString,
|
|
1764
|
-
});
|
|
1765
|
-
};
|
|
1766
|
-
const de_ActivityTypeInfoList = (output, context) => {
|
|
1767
|
-
const retVal = (output || [])
|
|
1768
|
-
.filter((e) => e != null)
|
|
1769
|
-
.map((entry) => {
|
|
1770
|
-
return de_ActivityTypeInfo(entry, context);
|
|
1771
|
-
});
|
|
1772
|
-
return retVal;
|
|
1773
|
-
};
|
|
1774
|
-
const de_ActivityTypeInfos = (output, context) => {
|
|
1775
|
-
return (0, smithy_client_1.take)(output, {
|
|
1776
|
-
nextPageToken: smithy_client_1.expectString,
|
|
1777
|
-
typeInfos: (_) => de_ActivityTypeInfoList(_, context),
|
|
1778
|
-
});
|
|
1779
|
-
};
|
|
1780
|
-
const de_DecisionTask = (output, context) => {
|
|
1781
|
-
return (0, smithy_client_1.take)(output, {
|
|
1782
|
-
events: (_) => de_HistoryEventList(_, context),
|
|
1783
|
-
nextPageToken: smithy_client_1.expectString,
|
|
1784
|
-
previousStartedEventId: smithy_client_1.expectLong,
|
|
1785
|
-
startedEventId: smithy_client_1.expectLong,
|
|
1786
|
-
taskToken: smithy_client_1.expectString,
|
|
1787
|
-
workflowExecution: smithy_client_1._json,
|
|
1788
|
-
workflowType: smithy_client_1._json,
|
|
1789
|
-
});
|
|
1790
|
-
};
|
|
1791
|
-
const de_History = (output, context) => {
|
|
1792
|
-
return (0, smithy_client_1.take)(output, {
|
|
1793
|
-
events: (_) => de_HistoryEventList(_, context),
|
|
1794
|
-
nextPageToken: smithy_client_1.expectString,
|
|
1795
|
-
});
|
|
1796
|
-
};
|
|
1797
|
-
const de_HistoryEvent = (output, context) => {
|
|
1798
|
-
return (0, smithy_client_1.take)(output, {
|
|
1799
|
-
activityTaskCancelRequestedEventAttributes: smithy_client_1._json,
|
|
1800
|
-
activityTaskCanceledEventAttributes: smithy_client_1._json,
|
|
1801
|
-
activityTaskCompletedEventAttributes: smithy_client_1._json,
|
|
1802
|
-
activityTaskFailedEventAttributes: smithy_client_1._json,
|
|
1803
|
-
activityTaskScheduledEventAttributes: smithy_client_1._json,
|
|
1804
|
-
activityTaskStartedEventAttributes: smithy_client_1._json,
|
|
1805
|
-
activityTaskTimedOutEventAttributes: smithy_client_1._json,
|
|
1806
|
-
cancelTimerFailedEventAttributes: smithy_client_1._json,
|
|
1807
|
-
cancelWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1808
|
-
childWorkflowExecutionCanceledEventAttributes: smithy_client_1._json,
|
|
1809
|
-
childWorkflowExecutionCompletedEventAttributes: smithy_client_1._json,
|
|
1810
|
-
childWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1811
|
-
childWorkflowExecutionStartedEventAttributes: smithy_client_1._json,
|
|
1812
|
-
childWorkflowExecutionTerminatedEventAttributes: smithy_client_1._json,
|
|
1813
|
-
childWorkflowExecutionTimedOutEventAttributes: smithy_client_1._json,
|
|
1814
|
-
completeWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1815
|
-
continueAsNewWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1816
|
-
decisionTaskCompletedEventAttributes: smithy_client_1._json,
|
|
1817
|
-
decisionTaskScheduledEventAttributes: smithy_client_1._json,
|
|
1818
|
-
decisionTaskStartedEventAttributes: smithy_client_1._json,
|
|
1819
|
-
decisionTaskTimedOutEventAttributes: smithy_client_1._json,
|
|
1820
|
-
eventId: smithy_client_1.expectLong,
|
|
1821
|
-
eventTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1822
|
-
eventType: smithy_client_1.expectString,
|
|
1823
|
-
externalWorkflowExecutionCancelRequestedEventAttributes: smithy_client_1._json,
|
|
1824
|
-
externalWorkflowExecutionSignaledEventAttributes: smithy_client_1._json,
|
|
1825
|
-
failWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1826
|
-
lambdaFunctionCompletedEventAttributes: smithy_client_1._json,
|
|
1827
|
-
lambdaFunctionFailedEventAttributes: smithy_client_1._json,
|
|
1828
|
-
lambdaFunctionScheduledEventAttributes: smithy_client_1._json,
|
|
1829
|
-
lambdaFunctionStartedEventAttributes: smithy_client_1._json,
|
|
1830
|
-
lambdaFunctionTimedOutEventAttributes: smithy_client_1._json,
|
|
1831
|
-
markerRecordedEventAttributes: smithy_client_1._json,
|
|
1832
|
-
recordMarkerFailedEventAttributes: smithy_client_1._json,
|
|
1833
|
-
requestCancelActivityTaskFailedEventAttributes: smithy_client_1._json,
|
|
1834
|
-
requestCancelExternalWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1835
|
-
requestCancelExternalWorkflowExecutionInitiatedEventAttributes: smithy_client_1._json,
|
|
1836
|
-
scheduleActivityTaskFailedEventAttributes: smithy_client_1._json,
|
|
1837
|
-
scheduleLambdaFunctionFailedEventAttributes: smithy_client_1._json,
|
|
1838
|
-
signalExternalWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1839
|
-
signalExternalWorkflowExecutionInitiatedEventAttributes: smithy_client_1._json,
|
|
1840
|
-
startChildWorkflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1841
|
-
startChildWorkflowExecutionInitiatedEventAttributes: smithy_client_1._json,
|
|
1842
|
-
startLambdaFunctionFailedEventAttributes: smithy_client_1._json,
|
|
1843
|
-
startTimerFailedEventAttributes: smithy_client_1._json,
|
|
1844
|
-
timerCanceledEventAttributes: smithy_client_1._json,
|
|
1845
|
-
timerFiredEventAttributes: smithy_client_1._json,
|
|
1846
|
-
timerStartedEventAttributes: smithy_client_1._json,
|
|
1847
|
-
workflowExecutionCancelRequestedEventAttributes: smithy_client_1._json,
|
|
1848
|
-
workflowExecutionCanceledEventAttributes: smithy_client_1._json,
|
|
1849
|
-
workflowExecutionCompletedEventAttributes: smithy_client_1._json,
|
|
1850
|
-
workflowExecutionContinuedAsNewEventAttributes: smithy_client_1._json,
|
|
1851
|
-
workflowExecutionFailedEventAttributes: smithy_client_1._json,
|
|
1852
|
-
workflowExecutionSignaledEventAttributes: smithy_client_1._json,
|
|
1853
|
-
workflowExecutionStartedEventAttributes: smithy_client_1._json,
|
|
1854
|
-
workflowExecutionTerminatedEventAttributes: smithy_client_1._json,
|
|
1855
|
-
workflowExecutionTimedOutEventAttributes: smithy_client_1._json,
|
|
1856
|
-
});
|
|
1857
|
-
};
|
|
1858
|
-
const de_HistoryEventList = (output, context) => {
|
|
1859
|
-
const retVal = (output || [])
|
|
1860
|
-
.filter((e) => e != null)
|
|
1861
|
-
.map((entry) => {
|
|
1862
|
-
return de_HistoryEvent(entry, context);
|
|
1863
|
-
});
|
|
1864
|
-
return retVal;
|
|
1865
|
-
};
|
|
1866
|
-
const de_WorkflowExecutionDetail = (output, context) => {
|
|
1867
|
-
return (0, smithy_client_1.take)(output, {
|
|
1868
|
-
executionConfiguration: smithy_client_1._json,
|
|
1869
|
-
executionInfo: (_) => de_WorkflowExecutionInfo(_, context),
|
|
1870
|
-
latestActivityTaskTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1871
|
-
latestExecutionContext: smithy_client_1.expectString,
|
|
1872
|
-
openCounts: smithy_client_1._json,
|
|
1873
|
-
});
|
|
1874
|
-
};
|
|
1875
|
-
const de_WorkflowExecutionInfo = (output, context) => {
|
|
1876
|
-
return (0, smithy_client_1.take)(output, {
|
|
1877
|
-
cancelRequested: smithy_client_1.expectBoolean,
|
|
1878
|
-
closeStatus: smithy_client_1.expectString,
|
|
1879
|
-
closeTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1880
|
-
execution: smithy_client_1._json,
|
|
1881
|
-
executionStatus: smithy_client_1.expectString,
|
|
1882
|
-
parent: smithy_client_1._json,
|
|
1883
|
-
startTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1884
|
-
tagList: smithy_client_1._json,
|
|
1885
|
-
workflowType: smithy_client_1._json,
|
|
1886
|
-
});
|
|
1887
|
-
};
|
|
1888
|
-
const de_WorkflowExecutionInfoList = (output, context) => {
|
|
1889
|
-
const retVal = (output || [])
|
|
1890
|
-
.filter((e) => e != null)
|
|
1891
|
-
.map((entry) => {
|
|
1892
|
-
return de_WorkflowExecutionInfo(entry, context);
|
|
1893
|
-
});
|
|
1894
|
-
return retVal;
|
|
1895
|
-
};
|
|
1896
|
-
const de_WorkflowExecutionInfos = (output, context) => {
|
|
1897
|
-
return (0, smithy_client_1.take)(output, {
|
|
1898
|
-
executionInfos: (_) => de_WorkflowExecutionInfoList(_, context),
|
|
1899
|
-
nextPageToken: smithy_client_1.expectString,
|
|
1900
|
-
});
|
|
1901
|
-
};
|
|
1902
|
-
const de_WorkflowTypeDetail = (output, context) => {
|
|
1903
|
-
return (0, smithy_client_1.take)(output, {
|
|
1904
|
-
configuration: smithy_client_1._json,
|
|
1905
|
-
typeInfo: (_) => de_WorkflowTypeInfo(_, context),
|
|
1906
|
-
});
|
|
1907
|
-
};
|
|
1908
|
-
const de_WorkflowTypeInfo = (output, context) => {
|
|
1909
|
-
return (0, smithy_client_1.take)(output, {
|
|
1910
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1911
|
-
deprecationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1912
|
-
description: smithy_client_1.expectString,
|
|
1913
|
-
status: smithy_client_1.expectString,
|
|
1914
|
-
workflowType: smithy_client_1._json,
|
|
1915
|
-
});
|
|
1916
|
-
};
|
|
1917
|
-
const de_WorkflowTypeInfoList = (output, context) => {
|
|
1918
|
-
const retVal = (output || [])
|
|
1919
|
-
.filter((e) => e != null)
|
|
1920
|
-
.map((entry) => {
|
|
1921
|
-
return de_WorkflowTypeInfo(entry, context);
|
|
1922
|
-
});
|
|
1923
|
-
return retVal;
|
|
1924
|
-
};
|
|
1925
|
-
const de_WorkflowTypeInfos = (output, context) => {
|
|
1926
|
-
return (0, smithy_client_1.take)(output, {
|
|
1927
|
-
nextPageToken: smithy_client_1.expectString,
|
|
1928
|
-
typeInfos: (_) => de_WorkflowTypeInfoList(_, context),
|
|
1929
|
-
});
|
|
1930
|
-
};
|
|
1931
|
-
const deserializeMetadata = (output) => ({
|
|
1932
|
-
httpStatusCode: output.statusCode,
|
|
1933
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1934
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1935
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1936
|
-
});
|
|
1937
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1938
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(SWFServiceException_1.SWFServiceException);
|
|
1939
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1940
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1941
|
-
const contents = {
|
|
1942
|
-
protocol,
|
|
1943
|
-
hostname,
|
|
1944
|
-
port,
|
|
1945
|
-
method: "POST",
|
|
1946
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1947
|
-
headers,
|
|
1948
|
-
};
|
|
1949
|
-
if (resolvedHostname !== undefined) {
|
|
1950
|
-
contents.hostname = resolvedHostname;
|
|
1951
|
-
}
|
|
1952
|
-
if (body !== undefined) {
|
|
1953
|
-
contents.body = body;
|
|
1954
|
-
}
|
|
1955
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
1956
|
-
};
|
|
1957
|
-
function sharedHeaders(operation) {
|
|
1958
|
-
return {
|
|
1959
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1960
|
-
"x-amz-target": `SimpleWorkflowService.${operation}`,
|
|
1961
|
-
};
|
|
1962
|
-
}
|
|
1963
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1964
|
-
if (encoded.length) {
|
|
1965
|
-
return JSON.parse(encoded);
|
|
1966
|
-
}
|
|
1967
|
-
return {};
|
|
1968
|
-
});
|
|
1969
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1970
|
-
const value = await parseBody(errorBody, context);
|
|
1971
|
-
value.message = value.message ?? value.Message;
|
|
1972
|
-
return value;
|
|
1973
|
-
};
|
|
1974
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1975
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1976
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1977
|
-
let cleanValue = rawValue;
|
|
1978
|
-
if (typeof cleanValue === "number") {
|
|
1979
|
-
cleanValue = cleanValue.toString();
|
|
1980
|
-
}
|
|
1981
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1982
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1983
|
-
}
|
|
1984
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1985
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1986
|
-
}
|
|
1987
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1988
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1989
|
-
}
|
|
1990
|
-
return cleanValue;
|
|
1991
|
-
};
|
|
1992
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1993
|
-
if (headerKey !== undefined) {
|
|
1994
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1995
|
-
}
|
|
1996
|
-
if (data.code !== undefined) {
|
|
1997
|
-
return sanitizeErrorCode(data.code);
|
|
1998
|
-
}
|
|
1999
|
-
if (data["__type"] !== undefined) {
|
|
2000
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2001
|
-
}
|
|
2002
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|