@aws-sdk/client-swf 3.310.0 → 3.315.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/protocols/Aws_json1_0.js +399 -1838
- package/dist-es/protocols/Aws_json1_0.js +400 -1839
- package/package.json +6 -6
|
@@ -7,372 +7,261 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SWFServiceException_1 = require("../models/SWFServiceException");
|
|
9
9
|
const se_CountClosedWorkflowExecutionsCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.0",
|
|
12
|
-
"x-amz-target": "SimpleWorkflowService.CountClosedWorkflowExecutions",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CountClosedWorkflowExecutions");
|
|
14
11
|
let body;
|
|
15
12
|
body = JSON.stringify(se_CountClosedWorkflowExecutionsInput(input, context));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CountClosedWorkflowExecutionsCommand = se_CountClosedWorkflowExecutionsCommand;
|
|
19
16
|
const se_CountOpenWorkflowExecutionsCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.0",
|
|
22
|
-
"x-amz-target": "SimpleWorkflowService.CountOpenWorkflowExecutions",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CountOpenWorkflowExecutions");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_CountOpenWorkflowExecutionsInput(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CountOpenWorkflowExecutionsCommand = se_CountOpenWorkflowExecutionsCommand;
|
|
29
23
|
const se_CountPendingActivityTasksCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.0",
|
|
32
|
-
"x-amz-target": "SimpleWorkflowService.CountPendingActivityTasks",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CountPendingActivityTasks");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CountPendingActivityTasksCommand = se_CountPendingActivityTasksCommand;
|
|
39
30
|
const se_CountPendingDecisionTasksCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.0",
|
|
42
|
-
"x-amz-target": "SimpleWorkflowService.CountPendingDecisionTasks",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CountPendingDecisionTasks");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CountPendingDecisionTasksCommand = se_CountPendingDecisionTasksCommand;
|
|
49
37
|
const se_DeprecateActivityTypeCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.0",
|
|
52
|
-
"x-amz-target": "SimpleWorkflowService.DeprecateActivityType",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeprecateActivityType");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeprecateActivityTypeCommand = se_DeprecateActivityTypeCommand;
|
|
59
44
|
const se_DeprecateDomainCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.0",
|
|
62
|
-
"x-amz-target": "SimpleWorkflowService.DeprecateDomain",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DeprecateDomain");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DeprecateDomainCommand = se_DeprecateDomainCommand;
|
|
69
51
|
const se_DeprecateWorkflowTypeCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "SimpleWorkflowService.DeprecateWorkflowType",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DeprecateWorkflowType");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DeprecateWorkflowTypeCommand = se_DeprecateWorkflowTypeCommand;
|
|
79
58
|
const se_DescribeActivityTypeCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.0",
|
|
82
|
-
"x-amz-target": "SimpleWorkflowService.DescribeActivityType",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DescribeActivityType");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DescribeActivityTypeCommand = se_DescribeActivityTypeCommand;
|
|
89
65
|
const se_DescribeDomainCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.0",
|
|
92
|
-
"x-amz-target": "SimpleWorkflowService.DescribeDomain",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeDomain");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
|
|
99
72
|
const se_DescribeWorkflowExecutionCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.0",
|
|
102
|
-
"x-amz-target": "SimpleWorkflowService.DescribeWorkflowExecution",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DescribeWorkflowExecution");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DescribeWorkflowExecutionCommand = se_DescribeWorkflowExecutionCommand;
|
|
109
79
|
const se_DescribeWorkflowTypeCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.0",
|
|
112
|
-
"x-amz-target": "SimpleWorkflowService.DescribeWorkflowType",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DescribeWorkflowType");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DescribeWorkflowTypeCommand = se_DescribeWorkflowTypeCommand;
|
|
119
86
|
const se_GetWorkflowExecutionHistoryCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.0",
|
|
122
|
-
"x-amz-target": "SimpleWorkflowService.GetWorkflowExecutionHistory",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("GetWorkflowExecutionHistory");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_GetWorkflowExecutionHistoryCommand = se_GetWorkflowExecutionHistoryCommand;
|
|
129
93
|
const se_ListActivityTypesCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.0",
|
|
132
|
-
"x-amz-target": "SimpleWorkflowService.ListActivityTypes",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("ListActivityTypes");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_ListActivityTypesCommand = se_ListActivityTypesCommand;
|
|
139
100
|
const se_ListClosedWorkflowExecutionsCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.0",
|
|
142
|
-
"x-amz-target": "SimpleWorkflowService.ListClosedWorkflowExecutions",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("ListClosedWorkflowExecutions");
|
|
144
102
|
let body;
|
|
145
103
|
body = JSON.stringify(se_ListClosedWorkflowExecutionsInput(input, context));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_ListClosedWorkflowExecutionsCommand = se_ListClosedWorkflowExecutionsCommand;
|
|
149
107
|
const se_ListDomainsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.0",
|
|
152
|
-
"x-amz-target": "SimpleWorkflowService.ListDomains",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ListDomains");
|
|
154
109
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
159
114
|
const se_ListOpenWorkflowExecutionsCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.0",
|
|
162
|
-
"x-amz-target": "SimpleWorkflowService.ListOpenWorkflowExecutions",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("ListOpenWorkflowExecutions");
|
|
164
116
|
let body;
|
|
165
117
|
body = JSON.stringify(se_ListOpenWorkflowExecutionsInput(input, context));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_ListOpenWorkflowExecutionsCommand = se_ListOpenWorkflowExecutionsCommand;
|
|
169
121
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.0",
|
|
172
|
-
"x-amz-target": "SimpleWorkflowService.ListTagsForResource",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
179
128
|
const se_ListWorkflowTypesCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.0",
|
|
182
|
-
"x-amz-target": "SimpleWorkflowService.ListWorkflowTypes",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("ListWorkflowTypes");
|
|
184
130
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_ListWorkflowTypesCommand = se_ListWorkflowTypesCommand;
|
|
189
135
|
const se_PollForActivityTaskCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.0",
|
|
192
|
-
"x-amz-target": "SimpleWorkflowService.PollForActivityTask",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("PollForActivityTask");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_PollForActivityTaskCommand = se_PollForActivityTaskCommand;
|
|
199
142
|
const se_PollForDecisionTaskCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.0",
|
|
202
|
-
"x-amz-target": "SimpleWorkflowService.PollForDecisionTask",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("PollForDecisionTask");
|
|
204
144
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_PollForDecisionTaskCommand = se_PollForDecisionTaskCommand;
|
|
209
149
|
const se_RecordActivityTaskHeartbeatCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.0",
|
|
212
|
-
"x-amz-target": "SimpleWorkflowService.RecordActivityTaskHeartbeat",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("RecordActivityTaskHeartbeat");
|
|
214
151
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_RecordActivityTaskHeartbeatCommand = se_RecordActivityTaskHeartbeatCommand;
|
|
219
156
|
const se_RegisterActivityTypeCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.0",
|
|
222
|
-
"x-amz-target": "SimpleWorkflowService.RegisterActivityType",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("RegisterActivityType");
|
|
224
158
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_RegisterActivityTypeCommand = se_RegisterActivityTypeCommand;
|
|
229
163
|
const se_RegisterDomainCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.0",
|
|
232
|
-
"x-amz-target": "SimpleWorkflowService.RegisterDomain",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("RegisterDomain");
|
|
234
165
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_RegisterDomainCommand = se_RegisterDomainCommand;
|
|
239
170
|
const se_RegisterWorkflowTypeCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.0",
|
|
242
|
-
"x-amz-target": "SimpleWorkflowService.RegisterWorkflowType",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("RegisterWorkflowType");
|
|
244
172
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_RegisterWorkflowTypeCommand = se_RegisterWorkflowTypeCommand;
|
|
249
177
|
const se_RequestCancelWorkflowExecutionCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.0",
|
|
252
|
-
"x-amz-target": "SimpleWorkflowService.RequestCancelWorkflowExecution",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("RequestCancelWorkflowExecution");
|
|
254
179
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_RequestCancelWorkflowExecutionCommand = se_RequestCancelWorkflowExecutionCommand;
|
|
259
184
|
const se_RespondActivityTaskCanceledCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.0",
|
|
262
|
-
"x-amz-target": "SimpleWorkflowService.RespondActivityTaskCanceled",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("RespondActivityTaskCanceled");
|
|
264
186
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_RespondActivityTaskCanceledCommand = se_RespondActivityTaskCanceledCommand;
|
|
269
191
|
const se_RespondActivityTaskCompletedCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.0",
|
|
272
|
-
"x-amz-target": "SimpleWorkflowService.RespondActivityTaskCompleted",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("RespondActivityTaskCompleted");
|
|
274
193
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_RespondActivityTaskCompletedCommand = se_RespondActivityTaskCompletedCommand;
|
|
279
198
|
const se_RespondActivityTaskFailedCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.0",
|
|
282
|
-
"x-amz-target": "SimpleWorkflowService.RespondActivityTaskFailed",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("RespondActivityTaskFailed");
|
|
284
200
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_RespondActivityTaskFailedCommand = se_RespondActivityTaskFailedCommand;
|
|
289
205
|
const se_RespondDecisionTaskCompletedCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.0",
|
|
292
|
-
"x-amz-target": "SimpleWorkflowService.RespondDecisionTaskCompleted",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("RespondDecisionTaskCompleted");
|
|
294
207
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_RespondDecisionTaskCompletedCommand = se_RespondDecisionTaskCompletedCommand;
|
|
299
212
|
const se_SignalWorkflowExecutionCommand = async (input, context) => {
|
|
300
|
-
const headers =
|
|
301
|
-
"content-type": "application/x-amz-json-1.0",
|
|
302
|
-
"x-amz-target": "SimpleWorkflowService.SignalWorkflowExecution",
|
|
303
|
-
};
|
|
213
|
+
const headers = sharedHeaders("SignalWorkflowExecution");
|
|
304
214
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
306
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
217
|
};
|
|
308
218
|
exports.se_SignalWorkflowExecutionCommand = se_SignalWorkflowExecutionCommand;
|
|
309
219
|
const se_StartWorkflowExecutionCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-amz-json-1.0",
|
|
312
|
-
"x-amz-target": "SimpleWorkflowService.StartWorkflowExecution",
|
|
313
|
-
};
|
|
220
|
+
const headers = sharedHeaders("StartWorkflowExecution");
|
|
314
221
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
224
|
};
|
|
318
225
|
exports.se_StartWorkflowExecutionCommand = se_StartWorkflowExecutionCommand;
|
|
319
226
|
const se_TagResourceCommand = async (input, context) => {
|
|
320
|
-
const headers =
|
|
321
|
-
"content-type": "application/x-amz-json-1.0",
|
|
322
|
-
"x-amz-target": "SimpleWorkflowService.TagResource",
|
|
323
|
-
};
|
|
227
|
+
const headers = sharedHeaders("TagResource");
|
|
324
228
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
326
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
231
|
};
|
|
328
232
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
329
233
|
const se_TerminateWorkflowExecutionCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.0",
|
|
332
|
-
"x-amz-target": "SimpleWorkflowService.TerminateWorkflowExecution",
|
|
333
|
-
};
|
|
234
|
+
const headers = sharedHeaders("TerminateWorkflowExecution");
|
|
334
235
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
238
|
};
|
|
338
239
|
exports.se_TerminateWorkflowExecutionCommand = se_TerminateWorkflowExecutionCommand;
|
|
339
240
|
const se_UndeprecateActivityTypeCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.0",
|
|
342
|
-
"x-amz-target": "SimpleWorkflowService.UndeprecateActivityType",
|
|
343
|
-
};
|
|
241
|
+
const headers = sharedHeaders("UndeprecateActivityType");
|
|
344
242
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
346
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
245
|
};
|
|
348
246
|
exports.se_UndeprecateActivityTypeCommand = se_UndeprecateActivityTypeCommand;
|
|
349
247
|
const se_UndeprecateDomainCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.0",
|
|
352
|
-
"x-amz-target": "SimpleWorkflowService.UndeprecateDomain",
|
|
353
|
-
};
|
|
248
|
+
const headers = sharedHeaders("UndeprecateDomain");
|
|
354
249
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
356
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
252
|
};
|
|
358
253
|
exports.se_UndeprecateDomainCommand = se_UndeprecateDomainCommand;
|
|
359
254
|
const se_UndeprecateWorkflowTypeCommand = async (input, context) => {
|
|
360
|
-
const headers =
|
|
361
|
-
"content-type": "application/x-amz-json-1.0",
|
|
362
|
-
"x-amz-target": "SimpleWorkflowService.UndeprecateWorkflowType",
|
|
363
|
-
};
|
|
255
|
+
const headers = sharedHeaders("UndeprecateWorkflowType");
|
|
364
256
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
259
|
};
|
|
368
260
|
exports.se_UndeprecateWorkflowTypeCommand = se_UndeprecateWorkflowTypeCommand;
|
|
369
261
|
const se_UntagResourceCommand = async (input, context) => {
|
|
370
|
-
const headers =
|
|
371
|
-
"content-type": "application/x-amz-json-1.0",
|
|
372
|
-
"x-amz-target": "SimpleWorkflowService.UntagResource",
|
|
373
|
-
};
|
|
262
|
+
const headers = sharedHeaders("UntagResource");
|
|
374
263
|
let body;
|
|
375
|
-
body = JSON.stringify(
|
|
264
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
376
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
266
|
};
|
|
378
267
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
@@ -382,12 +271,12 @@ const de_CountClosedWorkflowExecutionsCommand = async (output, context) => {
|
|
|
382
271
|
}
|
|
383
272
|
const data = await parseBody(output.body, context);
|
|
384
273
|
let contents = {};
|
|
385
|
-
contents =
|
|
274
|
+
contents = (0, smithy_client_1._json)(data);
|
|
386
275
|
const response = {
|
|
387
276
|
$metadata: deserializeMetadata(output),
|
|
388
277
|
...contents,
|
|
389
278
|
};
|
|
390
|
-
return
|
|
279
|
+
return response;
|
|
391
280
|
};
|
|
392
281
|
exports.de_CountClosedWorkflowExecutionsCommand = de_CountClosedWorkflowExecutionsCommand;
|
|
393
282
|
const de_CountClosedWorkflowExecutionsCommandError = async (output, context) => {
|
|
@@ -405,10 +294,9 @@ const de_CountClosedWorkflowExecutionsCommandError = async (output, context) =>
|
|
|
405
294
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
406
295
|
default:
|
|
407
296
|
const parsedBody = parsedOutput.body;
|
|
408
|
-
|
|
297
|
+
return throwDefaultError({
|
|
409
298
|
output,
|
|
410
299
|
parsedBody,
|
|
411
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
412
300
|
errorCode,
|
|
413
301
|
});
|
|
414
302
|
}
|
|
@@ -419,12 +307,12 @@ const de_CountOpenWorkflowExecutionsCommand = async (output, context) => {
|
|
|
419
307
|
}
|
|
420
308
|
const data = await parseBody(output.body, context);
|
|
421
309
|
let contents = {};
|
|
422
|
-
contents =
|
|
310
|
+
contents = (0, smithy_client_1._json)(data);
|
|
423
311
|
const response = {
|
|
424
312
|
$metadata: deserializeMetadata(output),
|
|
425
313
|
...contents,
|
|
426
314
|
};
|
|
427
|
-
return
|
|
315
|
+
return response;
|
|
428
316
|
};
|
|
429
317
|
exports.de_CountOpenWorkflowExecutionsCommand = de_CountOpenWorkflowExecutionsCommand;
|
|
430
318
|
const de_CountOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
@@ -442,10 +330,9 @@ const de_CountOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
|
442
330
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
443
331
|
default:
|
|
444
332
|
const parsedBody = parsedOutput.body;
|
|
445
|
-
|
|
333
|
+
return throwDefaultError({
|
|
446
334
|
output,
|
|
447
335
|
parsedBody,
|
|
448
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
449
336
|
errorCode,
|
|
450
337
|
});
|
|
451
338
|
}
|
|
@@ -456,12 +343,12 @@ const de_CountPendingActivityTasksCommand = async (output, context) => {
|
|
|
456
343
|
}
|
|
457
344
|
const data = await parseBody(output.body, context);
|
|
458
345
|
let contents = {};
|
|
459
|
-
contents =
|
|
346
|
+
contents = (0, smithy_client_1._json)(data);
|
|
460
347
|
const response = {
|
|
461
348
|
$metadata: deserializeMetadata(output),
|
|
462
349
|
...contents,
|
|
463
350
|
};
|
|
464
|
-
return
|
|
351
|
+
return response;
|
|
465
352
|
};
|
|
466
353
|
exports.de_CountPendingActivityTasksCommand = de_CountPendingActivityTasksCommand;
|
|
467
354
|
const de_CountPendingActivityTasksCommandError = async (output, context) => {
|
|
@@ -479,10 +366,9 @@ const de_CountPendingActivityTasksCommandError = async (output, context) => {
|
|
|
479
366
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
480
367
|
default:
|
|
481
368
|
const parsedBody = parsedOutput.body;
|
|
482
|
-
|
|
369
|
+
return throwDefaultError({
|
|
483
370
|
output,
|
|
484
371
|
parsedBody,
|
|
485
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
486
372
|
errorCode,
|
|
487
373
|
});
|
|
488
374
|
}
|
|
@@ -493,12 +379,12 @@ const de_CountPendingDecisionTasksCommand = async (output, context) => {
|
|
|
493
379
|
}
|
|
494
380
|
const data = await parseBody(output.body, context);
|
|
495
381
|
let contents = {};
|
|
496
|
-
contents =
|
|
382
|
+
contents = (0, smithy_client_1._json)(data);
|
|
497
383
|
const response = {
|
|
498
384
|
$metadata: deserializeMetadata(output),
|
|
499
385
|
...contents,
|
|
500
386
|
};
|
|
501
|
-
return
|
|
387
|
+
return response;
|
|
502
388
|
};
|
|
503
389
|
exports.de_CountPendingDecisionTasksCommand = de_CountPendingDecisionTasksCommand;
|
|
504
390
|
const de_CountPendingDecisionTasksCommandError = async (output, context) => {
|
|
@@ -516,10 +402,9 @@ const de_CountPendingDecisionTasksCommandError = async (output, context) => {
|
|
|
516
402
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
517
403
|
default:
|
|
518
404
|
const parsedBody = parsedOutput.body;
|
|
519
|
-
|
|
405
|
+
return throwDefaultError({
|
|
520
406
|
output,
|
|
521
407
|
parsedBody,
|
|
522
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
523
408
|
errorCode,
|
|
524
409
|
});
|
|
525
410
|
}
|
|
@@ -532,7 +417,7 @@ const de_DeprecateActivityTypeCommand = async (output, context) => {
|
|
|
532
417
|
const response = {
|
|
533
418
|
$metadata: deserializeMetadata(output),
|
|
534
419
|
};
|
|
535
|
-
return
|
|
420
|
+
return response;
|
|
536
421
|
};
|
|
537
422
|
exports.de_DeprecateActivityTypeCommand = de_DeprecateActivityTypeCommand;
|
|
538
423
|
const de_DeprecateActivityTypeCommandError = async (output, context) => {
|
|
@@ -553,10 +438,9 @@ const de_DeprecateActivityTypeCommandError = async (output, context) => {
|
|
|
553
438
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
554
439
|
default:
|
|
555
440
|
const parsedBody = parsedOutput.body;
|
|
556
|
-
|
|
441
|
+
return throwDefaultError({
|
|
557
442
|
output,
|
|
558
443
|
parsedBody,
|
|
559
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
560
444
|
errorCode,
|
|
561
445
|
});
|
|
562
446
|
}
|
|
@@ -569,7 +453,7 @@ const de_DeprecateDomainCommand = async (output, context) => {
|
|
|
569
453
|
const response = {
|
|
570
454
|
$metadata: deserializeMetadata(output),
|
|
571
455
|
};
|
|
572
|
-
return
|
|
456
|
+
return response;
|
|
573
457
|
};
|
|
574
458
|
exports.de_DeprecateDomainCommand = de_DeprecateDomainCommand;
|
|
575
459
|
const de_DeprecateDomainCommandError = async (output, context) => {
|
|
@@ -590,10 +474,9 @@ const de_DeprecateDomainCommandError = async (output, context) => {
|
|
|
590
474
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
591
475
|
default:
|
|
592
476
|
const parsedBody = parsedOutput.body;
|
|
593
|
-
|
|
477
|
+
return throwDefaultError({
|
|
594
478
|
output,
|
|
595
479
|
parsedBody,
|
|
596
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
597
480
|
errorCode,
|
|
598
481
|
});
|
|
599
482
|
}
|
|
@@ -606,7 +489,7 @@ const de_DeprecateWorkflowTypeCommand = async (output, context) => {
|
|
|
606
489
|
const response = {
|
|
607
490
|
$metadata: deserializeMetadata(output),
|
|
608
491
|
};
|
|
609
|
-
return
|
|
492
|
+
return response;
|
|
610
493
|
};
|
|
611
494
|
exports.de_DeprecateWorkflowTypeCommand = de_DeprecateWorkflowTypeCommand;
|
|
612
495
|
const de_DeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
@@ -627,10 +510,9 @@ const de_DeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
|
627
510
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
628
511
|
default:
|
|
629
512
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
|
|
513
|
+
return throwDefaultError({
|
|
631
514
|
output,
|
|
632
515
|
parsedBody,
|
|
633
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
634
516
|
errorCode,
|
|
635
517
|
});
|
|
636
518
|
}
|
|
@@ -646,7 +528,7 @@ const de_DescribeActivityTypeCommand = async (output, context) => {
|
|
|
646
528
|
$metadata: deserializeMetadata(output),
|
|
647
529
|
...contents,
|
|
648
530
|
};
|
|
649
|
-
return
|
|
531
|
+
return response;
|
|
650
532
|
};
|
|
651
533
|
exports.de_DescribeActivityTypeCommand = de_DescribeActivityTypeCommand;
|
|
652
534
|
const de_DescribeActivityTypeCommandError = async (output, context) => {
|
|
@@ -664,10 +546,9 @@ const de_DescribeActivityTypeCommandError = async (output, context) => {
|
|
|
664
546
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
665
547
|
default:
|
|
666
548
|
const parsedBody = parsedOutput.body;
|
|
667
|
-
|
|
549
|
+
return throwDefaultError({
|
|
668
550
|
output,
|
|
669
551
|
parsedBody,
|
|
670
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
671
552
|
errorCode,
|
|
672
553
|
});
|
|
673
554
|
}
|
|
@@ -678,12 +559,12 @@ const de_DescribeDomainCommand = async (output, context) => {
|
|
|
678
559
|
}
|
|
679
560
|
const data = await parseBody(output.body, context);
|
|
680
561
|
let contents = {};
|
|
681
|
-
contents =
|
|
562
|
+
contents = (0, smithy_client_1._json)(data);
|
|
682
563
|
const response = {
|
|
683
564
|
$metadata: deserializeMetadata(output),
|
|
684
565
|
...contents,
|
|
685
566
|
};
|
|
686
|
-
return
|
|
567
|
+
return response;
|
|
687
568
|
};
|
|
688
569
|
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
689
570
|
const de_DescribeDomainCommandError = async (output, context) => {
|
|
@@ -701,10 +582,9 @@ const de_DescribeDomainCommandError = async (output, context) => {
|
|
|
701
582
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
702
583
|
default:
|
|
703
584
|
const parsedBody = parsedOutput.body;
|
|
704
|
-
|
|
585
|
+
return throwDefaultError({
|
|
705
586
|
output,
|
|
706
587
|
parsedBody,
|
|
707
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
708
588
|
errorCode,
|
|
709
589
|
});
|
|
710
590
|
}
|
|
@@ -720,7 +600,7 @@ const de_DescribeWorkflowExecutionCommand = async (output, context) => {
|
|
|
720
600
|
$metadata: deserializeMetadata(output),
|
|
721
601
|
...contents,
|
|
722
602
|
};
|
|
723
|
-
return
|
|
603
|
+
return response;
|
|
724
604
|
};
|
|
725
605
|
exports.de_DescribeWorkflowExecutionCommand = de_DescribeWorkflowExecutionCommand;
|
|
726
606
|
const de_DescribeWorkflowExecutionCommandError = async (output, context) => {
|
|
@@ -738,10 +618,9 @@ const de_DescribeWorkflowExecutionCommandError = async (output, context) => {
|
|
|
738
618
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
739
619
|
default:
|
|
740
620
|
const parsedBody = parsedOutput.body;
|
|
741
|
-
|
|
621
|
+
return throwDefaultError({
|
|
742
622
|
output,
|
|
743
623
|
parsedBody,
|
|
744
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
745
624
|
errorCode,
|
|
746
625
|
});
|
|
747
626
|
}
|
|
@@ -757,7 +636,7 @@ const de_DescribeWorkflowTypeCommand = async (output, context) => {
|
|
|
757
636
|
$metadata: deserializeMetadata(output),
|
|
758
637
|
...contents,
|
|
759
638
|
};
|
|
760
|
-
return
|
|
639
|
+
return response;
|
|
761
640
|
};
|
|
762
641
|
exports.de_DescribeWorkflowTypeCommand = de_DescribeWorkflowTypeCommand;
|
|
763
642
|
const de_DescribeWorkflowTypeCommandError = async (output, context) => {
|
|
@@ -775,10 +654,9 @@ const de_DescribeWorkflowTypeCommandError = async (output, context) => {
|
|
|
775
654
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
776
655
|
default:
|
|
777
656
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
|
|
657
|
+
return throwDefaultError({
|
|
779
658
|
output,
|
|
780
659
|
parsedBody,
|
|
781
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
782
660
|
errorCode,
|
|
783
661
|
});
|
|
784
662
|
}
|
|
@@ -794,7 +672,7 @@ const de_GetWorkflowExecutionHistoryCommand = async (output, context) => {
|
|
|
794
672
|
$metadata: deserializeMetadata(output),
|
|
795
673
|
...contents,
|
|
796
674
|
};
|
|
797
|
-
return
|
|
675
|
+
return response;
|
|
798
676
|
};
|
|
799
677
|
exports.de_GetWorkflowExecutionHistoryCommand = de_GetWorkflowExecutionHistoryCommand;
|
|
800
678
|
const de_GetWorkflowExecutionHistoryCommandError = async (output, context) => {
|
|
@@ -812,10 +690,9 @@ const de_GetWorkflowExecutionHistoryCommandError = async (output, context) => {
|
|
|
812
690
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
813
691
|
default:
|
|
814
692
|
const parsedBody = parsedOutput.body;
|
|
815
|
-
|
|
693
|
+
return throwDefaultError({
|
|
816
694
|
output,
|
|
817
695
|
parsedBody,
|
|
818
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
819
696
|
errorCode,
|
|
820
697
|
});
|
|
821
698
|
}
|
|
@@ -831,7 +708,7 @@ const de_ListActivityTypesCommand = async (output, context) => {
|
|
|
831
708
|
$metadata: deserializeMetadata(output),
|
|
832
709
|
...contents,
|
|
833
710
|
};
|
|
834
|
-
return
|
|
711
|
+
return response;
|
|
835
712
|
};
|
|
836
713
|
exports.de_ListActivityTypesCommand = de_ListActivityTypesCommand;
|
|
837
714
|
const de_ListActivityTypesCommandError = async (output, context) => {
|
|
@@ -849,10 +726,9 @@ const de_ListActivityTypesCommandError = async (output, context) => {
|
|
|
849
726
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
850
727
|
default:
|
|
851
728
|
const parsedBody = parsedOutput.body;
|
|
852
|
-
|
|
729
|
+
return throwDefaultError({
|
|
853
730
|
output,
|
|
854
731
|
parsedBody,
|
|
855
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
856
732
|
errorCode,
|
|
857
733
|
});
|
|
858
734
|
}
|
|
@@ -868,7 +744,7 @@ const de_ListClosedWorkflowExecutionsCommand = async (output, context) => {
|
|
|
868
744
|
$metadata: deserializeMetadata(output),
|
|
869
745
|
...contents,
|
|
870
746
|
};
|
|
871
|
-
return
|
|
747
|
+
return response;
|
|
872
748
|
};
|
|
873
749
|
exports.de_ListClosedWorkflowExecutionsCommand = de_ListClosedWorkflowExecutionsCommand;
|
|
874
750
|
const de_ListClosedWorkflowExecutionsCommandError = async (output, context) => {
|
|
@@ -886,10 +762,9 @@ const de_ListClosedWorkflowExecutionsCommandError = async (output, context) => {
|
|
|
886
762
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
887
763
|
default:
|
|
888
764
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
765
|
+
return throwDefaultError({
|
|
890
766
|
output,
|
|
891
767
|
parsedBody,
|
|
892
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
893
768
|
errorCode,
|
|
894
769
|
});
|
|
895
770
|
}
|
|
@@ -900,12 +775,12 @@ const de_ListDomainsCommand = async (output, context) => {
|
|
|
900
775
|
}
|
|
901
776
|
const data = await parseBody(output.body, context);
|
|
902
777
|
let contents = {};
|
|
903
|
-
contents =
|
|
778
|
+
contents = (0, smithy_client_1._json)(data);
|
|
904
779
|
const response = {
|
|
905
780
|
$metadata: deserializeMetadata(output),
|
|
906
781
|
...contents,
|
|
907
782
|
};
|
|
908
|
-
return
|
|
783
|
+
return response;
|
|
909
784
|
};
|
|
910
785
|
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
911
786
|
const de_ListDomainsCommandError = async (output, context) => {
|
|
@@ -920,10 +795,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
920
795
|
throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
|
|
921
796
|
default:
|
|
922
797
|
const parsedBody = parsedOutput.body;
|
|
923
|
-
|
|
798
|
+
return throwDefaultError({
|
|
924
799
|
output,
|
|
925
800
|
parsedBody,
|
|
926
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
927
801
|
errorCode,
|
|
928
802
|
});
|
|
929
803
|
}
|
|
@@ -939,7 +813,7 @@ const de_ListOpenWorkflowExecutionsCommand = async (output, context) => {
|
|
|
939
813
|
$metadata: deserializeMetadata(output),
|
|
940
814
|
...contents,
|
|
941
815
|
};
|
|
942
|
-
return
|
|
816
|
+
return response;
|
|
943
817
|
};
|
|
944
818
|
exports.de_ListOpenWorkflowExecutionsCommand = de_ListOpenWorkflowExecutionsCommand;
|
|
945
819
|
const de_ListOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
@@ -957,10 +831,9 @@ const de_ListOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
|
957
831
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
958
832
|
default:
|
|
959
833
|
const parsedBody = parsedOutput.body;
|
|
960
|
-
|
|
834
|
+
return throwDefaultError({
|
|
961
835
|
output,
|
|
962
836
|
parsedBody,
|
|
963
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
964
837
|
errorCode,
|
|
965
838
|
});
|
|
966
839
|
}
|
|
@@ -971,12 +844,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
971
844
|
}
|
|
972
845
|
const data = await parseBody(output.body, context);
|
|
973
846
|
let contents = {};
|
|
974
|
-
contents =
|
|
847
|
+
contents = (0, smithy_client_1._json)(data);
|
|
975
848
|
const response = {
|
|
976
849
|
$metadata: deserializeMetadata(output),
|
|
977
850
|
...contents,
|
|
978
851
|
};
|
|
979
|
-
return
|
|
852
|
+
return response;
|
|
980
853
|
};
|
|
981
854
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
982
855
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -997,10 +870,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
997
870
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
998
871
|
default:
|
|
999
872
|
const parsedBody = parsedOutput.body;
|
|
1000
|
-
|
|
873
|
+
return throwDefaultError({
|
|
1001
874
|
output,
|
|
1002
875
|
parsedBody,
|
|
1003
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1004
876
|
errorCode,
|
|
1005
877
|
});
|
|
1006
878
|
}
|
|
@@ -1016,7 +888,7 @@ const de_ListWorkflowTypesCommand = async (output, context) => {
|
|
|
1016
888
|
$metadata: deserializeMetadata(output),
|
|
1017
889
|
...contents,
|
|
1018
890
|
};
|
|
1019
|
-
return
|
|
891
|
+
return response;
|
|
1020
892
|
};
|
|
1021
893
|
exports.de_ListWorkflowTypesCommand = de_ListWorkflowTypesCommand;
|
|
1022
894
|
const de_ListWorkflowTypesCommandError = async (output, context) => {
|
|
@@ -1034,10 +906,9 @@ const de_ListWorkflowTypesCommandError = async (output, context) => {
|
|
|
1034
906
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1035
907
|
default:
|
|
1036
908
|
const parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
909
|
+
return throwDefaultError({
|
|
1038
910
|
output,
|
|
1039
911
|
parsedBody,
|
|
1040
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1041
912
|
errorCode,
|
|
1042
913
|
});
|
|
1043
914
|
}
|
|
@@ -1048,12 +919,12 @@ const de_PollForActivityTaskCommand = async (output, context) => {
|
|
|
1048
919
|
}
|
|
1049
920
|
const data = await parseBody(output.body, context);
|
|
1050
921
|
let contents = {};
|
|
1051
|
-
contents =
|
|
922
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1052
923
|
const response = {
|
|
1053
924
|
$metadata: deserializeMetadata(output),
|
|
1054
925
|
...contents,
|
|
1055
926
|
};
|
|
1056
|
-
return
|
|
927
|
+
return response;
|
|
1057
928
|
};
|
|
1058
929
|
exports.de_PollForActivityTaskCommand = de_PollForActivityTaskCommand;
|
|
1059
930
|
const de_PollForActivityTaskCommandError = async (output, context) => {
|
|
@@ -1074,10 +945,9 @@ const de_PollForActivityTaskCommandError = async (output, context) => {
|
|
|
1074
945
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1075
946
|
default:
|
|
1076
947
|
const parsedBody = parsedOutput.body;
|
|
1077
|
-
|
|
948
|
+
return throwDefaultError({
|
|
1078
949
|
output,
|
|
1079
950
|
parsedBody,
|
|
1080
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1081
951
|
errorCode,
|
|
1082
952
|
});
|
|
1083
953
|
}
|
|
@@ -1093,7 +963,7 @@ const de_PollForDecisionTaskCommand = async (output, context) => {
|
|
|
1093
963
|
$metadata: deserializeMetadata(output),
|
|
1094
964
|
...contents,
|
|
1095
965
|
};
|
|
1096
|
-
return
|
|
966
|
+
return response;
|
|
1097
967
|
};
|
|
1098
968
|
exports.de_PollForDecisionTaskCommand = de_PollForDecisionTaskCommand;
|
|
1099
969
|
const de_PollForDecisionTaskCommandError = async (output, context) => {
|
|
@@ -1114,10 +984,9 @@ const de_PollForDecisionTaskCommandError = async (output, context) => {
|
|
|
1114
984
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1115
985
|
default:
|
|
1116
986
|
const parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
987
|
+
return throwDefaultError({
|
|
1118
988
|
output,
|
|
1119
989
|
parsedBody,
|
|
1120
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1121
990
|
errorCode,
|
|
1122
991
|
});
|
|
1123
992
|
}
|
|
@@ -1128,12 +997,12 @@ const de_RecordActivityTaskHeartbeatCommand = async (output, context) => {
|
|
|
1128
997
|
}
|
|
1129
998
|
const data = await parseBody(output.body, context);
|
|
1130
999
|
let contents = {};
|
|
1131
|
-
contents =
|
|
1000
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1132
1001
|
const response = {
|
|
1133
1002
|
$metadata: deserializeMetadata(output),
|
|
1134
1003
|
...contents,
|
|
1135
1004
|
};
|
|
1136
|
-
return
|
|
1005
|
+
return response;
|
|
1137
1006
|
};
|
|
1138
1007
|
exports.de_RecordActivityTaskHeartbeatCommand = de_RecordActivityTaskHeartbeatCommand;
|
|
1139
1008
|
const de_RecordActivityTaskHeartbeatCommandError = async (output, context) => {
|
|
@@ -1151,10 +1020,9 @@ const de_RecordActivityTaskHeartbeatCommandError = async (output, context) => {
|
|
|
1151
1020
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1152
1021
|
default:
|
|
1153
1022
|
const parsedBody = parsedOutput.body;
|
|
1154
|
-
|
|
1023
|
+
return throwDefaultError({
|
|
1155
1024
|
output,
|
|
1156
1025
|
parsedBody,
|
|
1157
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1158
1026
|
errorCode,
|
|
1159
1027
|
});
|
|
1160
1028
|
}
|
|
@@ -1167,7 +1035,7 @@ const de_RegisterActivityTypeCommand = async (output, context) => {
|
|
|
1167
1035
|
const response = {
|
|
1168
1036
|
$metadata: deserializeMetadata(output),
|
|
1169
1037
|
};
|
|
1170
|
-
return
|
|
1038
|
+
return response;
|
|
1171
1039
|
};
|
|
1172
1040
|
exports.de_RegisterActivityTypeCommand = de_RegisterActivityTypeCommand;
|
|
1173
1041
|
const de_RegisterActivityTypeCommandError = async (output, context) => {
|
|
@@ -1191,10 +1059,9 @@ const de_RegisterActivityTypeCommandError = async (output, context) => {
|
|
|
1191
1059
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1192
1060
|
default:
|
|
1193
1061
|
const parsedBody = parsedOutput.body;
|
|
1194
|
-
|
|
1062
|
+
return throwDefaultError({
|
|
1195
1063
|
output,
|
|
1196
1064
|
parsedBody,
|
|
1197
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1198
1065
|
errorCode,
|
|
1199
1066
|
});
|
|
1200
1067
|
}
|
|
@@ -1207,7 +1074,7 @@ const de_RegisterDomainCommand = async (output, context) => {
|
|
|
1207
1074
|
const response = {
|
|
1208
1075
|
$metadata: deserializeMetadata(output),
|
|
1209
1076
|
};
|
|
1210
|
-
return
|
|
1077
|
+
return response;
|
|
1211
1078
|
};
|
|
1212
1079
|
exports.de_RegisterDomainCommand = de_RegisterDomainCommand;
|
|
1213
1080
|
const de_RegisterDomainCommandError = async (output, context) => {
|
|
@@ -1231,10 +1098,9 @@ const de_RegisterDomainCommandError = async (output, context) => {
|
|
|
1231
1098
|
throw await de_TooManyTagsFaultRes(parsedOutput, context);
|
|
1232
1099
|
default:
|
|
1233
1100
|
const parsedBody = parsedOutput.body;
|
|
1234
|
-
|
|
1101
|
+
return throwDefaultError({
|
|
1235
1102
|
output,
|
|
1236
1103
|
parsedBody,
|
|
1237
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1238
1104
|
errorCode,
|
|
1239
1105
|
});
|
|
1240
1106
|
}
|
|
@@ -1247,7 +1113,7 @@ const de_RegisterWorkflowTypeCommand = async (output, context) => {
|
|
|
1247
1113
|
const response = {
|
|
1248
1114
|
$metadata: deserializeMetadata(output),
|
|
1249
1115
|
};
|
|
1250
|
-
return
|
|
1116
|
+
return response;
|
|
1251
1117
|
};
|
|
1252
1118
|
exports.de_RegisterWorkflowTypeCommand = de_RegisterWorkflowTypeCommand;
|
|
1253
1119
|
const de_RegisterWorkflowTypeCommandError = async (output, context) => {
|
|
@@ -1271,10 +1137,9 @@ const de_RegisterWorkflowTypeCommandError = async (output, context) => {
|
|
|
1271
1137
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1272
1138
|
default:
|
|
1273
1139
|
const parsedBody = parsedOutput.body;
|
|
1274
|
-
|
|
1140
|
+
return throwDefaultError({
|
|
1275
1141
|
output,
|
|
1276
1142
|
parsedBody,
|
|
1277
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1278
1143
|
errorCode,
|
|
1279
1144
|
});
|
|
1280
1145
|
}
|
|
@@ -1287,7 +1152,7 @@ const de_RequestCancelWorkflowExecutionCommand = async (output, context) => {
|
|
|
1287
1152
|
const response = {
|
|
1288
1153
|
$metadata: deserializeMetadata(output),
|
|
1289
1154
|
};
|
|
1290
|
-
return
|
|
1155
|
+
return response;
|
|
1291
1156
|
};
|
|
1292
1157
|
exports.de_RequestCancelWorkflowExecutionCommand = de_RequestCancelWorkflowExecutionCommand;
|
|
1293
1158
|
const de_RequestCancelWorkflowExecutionCommandError = async (output, context) => {
|
|
@@ -1305,10 +1170,9 @@ const de_RequestCancelWorkflowExecutionCommandError = async (output, context) =>
|
|
|
1305
1170
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1306
1171
|
default:
|
|
1307
1172
|
const parsedBody = parsedOutput.body;
|
|
1308
|
-
|
|
1173
|
+
return throwDefaultError({
|
|
1309
1174
|
output,
|
|
1310
1175
|
parsedBody,
|
|
1311
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1312
1176
|
errorCode,
|
|
1313
1177
|
});
|
|
1314
1178
|
}
|
|
@@ -1321,7 +1185,7 @@ const de_RespondActivityTaskCanceledCommand = async (output, context) => {
|
|
|
1321
1185
|
const response = {
|
|
1322
1186
|
$metadata: deserializeMetadata(output),
|
|
1323
1187
|
};
|
|
1324
|
-
return
|
|
1188
|
+
return response;
|
|
1325
1189
|
};
|
|
1326
1190
|
exports.de_RespondActivityTaskCanceledCommand = de_RespondActivityTaskCanceledCommand;
|
|
1327
1191
|
const de_RespondActivityTaskCanceledCommandError = async (output, context) => {
|
|
@@ -1339,10 +1203,9 @@ const de_RespondActivityTaskCanceledCommandError = async (output, context) => {
|
|
|
1339
1203
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1340
1204
|
default:
|
|
1341
1205
|
const parsedBody = parsedOutput.body;
|
|
1342
|
-
|
|
1206
|
+
return throwDefaultError({
|
|
1343
1207
|
output,
|
|
1344
1208
|
parsedBody,
|
|
1345
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1346
1209
|
errorCode,
|
|
1347
1210
|
});
|
|
1348
1211
|
}
|
|
@@ -1355,7 +1218,7 @@ const de_RespondActivityTaskCompletedCommand = async (output, context) => {
|
|
|
1355
1218
|
const response = {
|
|
1356
1219
|
$metadata: deserializeMetadata(output),
|
|
1357
1220
|
};
|
|
1358
|
-
return
|
|
1221
|
+
return response;
|
|
1359
1222
|
};
|
|
1360
1223
|
exports.de_RespondActivityTaskCompletedCommand = de_RespondActivityTaskCompletedCommand;
|
|
1361
1224
|
const de_RespondActivityTaskCompletedCommandError = async (output, context) => {
|
|
@@ -1373,10 +1236,9 @@ const de_RespondActivityTaskCompletedCommandError = async (output, context) => {
|
|
|
1373
1236
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1374
1237
|
default:
|
|
1375
1238
|
const parsedBody = parsedOutput.body;
|
|
1376
|
-
|
|
1239
|
+
return throwDefaultError({
|
|
1377
1240
|
output,
|
|
1378
1241
|
parsedBody,
|
|
1379
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1380
1242
|
errorCode,
|
|
1381
1243
|
});
|
|
1382
1244
|
}
|
|
@@ -1389,7 +1251,7 @@ const de_RespondActivityTaskFailedCommand = async (output, context) => {
|
|
|
1389
1251
|
const response = {
|
|
1390
1252
|
$metadata: deserializeMetadata(output),
|
|
1391
1253
|
};
|
|
1392
|
-
return
|
|
1254
|
+
return response;
|
|
1393
1255
|
};
|
|
1394
1256
|
exports.de_RespondActivityTaskFailedCommand = de_RespondActivityTaskFailedCommand;
|
|
1395
1257
|
const de_RespondActivityTaskFailedCommandError = async (output, context) => {
|
|
@@ -1407,10 +1269,9 @@ const de_RespondActivityTaskFailedCommandError = async (output, context) => {
|
|
|
1407
1269
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1408
1270
|
default:
|
|
1409
1271
|
const parsedBody = parsedOutput.body;
|
|
1410
|
-
|
|
1272
|
+
return throwDefaultError({
|
|
1411
1273
|
output,
|
|
1412
1274
|
parsedBody,
|
|
1413
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1414
1275
|
errorCode,
|
|
1415
1276
|
});
|
|
1416
1277
|
}
|
|
@@ -1423,7 +1284,7 @@ const de_RespondDecisionTaskCompletedCommand = async (output, context) => {
|
|
|
1423
1284
|
const response = {
|
|
1424
1285
|
$metadata: deserializeMetadata(output),
|
|
1425
1286
|
};
|
|
1426
|
-
return
|
|
1287
|
+
return response;
|
|
1427
1288
|
};
|
|
1428
1289
|
exports.de_RespondDecisionTaskCompletedCommand = de_RespondDecisionTaskCompletedCommand;
|
|
1429
1290
|
const de_RespondDecisionTaskCompletedCommandError = async (output, context) => {
|
|
@@ -1441,10 +1302,9 @@ const de_RespondDecisionTaskCompletedCommandError = async (output, context) => {
|
|
|
1441
1302
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1442
1303
|
default:
|
|
1443
1304
|
const parsedBody = parsedOutput.body;
|
|
1444
|
-
|
|
1305
|
+
return throwDefaultError({
|
|
1445
1306
|
output,
|
|
1446
1307
|
parsedBody,
|
|
1447
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1448
1308
|
errorCode,
|
|
1449
1309
|
});
|
|
1450
1310
|
}
|
|
@@ -1457,7 +1317,7 @@ const de_SignalWorkflowExecutionCommand = async (output, context) => {
|
|
|
1457
1317
|
const response = {
|
|
1458
1318
|
$metadata: deserializeMetadata(output),
|
|
1459
1319
|
};
|
|
1460
|
-
return
|
|
1320
|
+
return response;
|
|
1461
1321
|
};
|
|
1462
1322
|
exports.de_SignalWorkflowExecutionCommand = de_SignalWorkflowExecutionCommand;
|
|
1463
1323
|
const de_SignalWorkflowExecutionCommandError = async (output, context) => {
|
|
@@ -1475,10 +1335,9 @@ const de_SignalWorkflowExecutionCommandError = async (output, context) => {
|
|
|
1475
1335
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1476
1336
|
default:
|
|
1477
1337
|
const parsedBody = parsedOutput.body;
|
|
1478
|
-
|
|
1338
|
+
return throwDefaultError({
|
|
1479
1339
|
output,
|
|
1480
1340
|
parsedBody,
|
|
1481
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1482
1341
|
errorCode,
|
|
1483
1342
|
});
|
|
1484
1343
|
}
|
|
@@ -1489,12 +1348,12 @@ const de_StartWorkflowExecutionCommand = async (output, context) => {
|
|
|
1489
1348
|
}
|
|
1490
1349
|
const data = await parseBody(output.body, context);
|
|
1491
1350
|
let contents = {};
|
|
1492
|
-
contents =
|
|
1351
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1493
1352
|
const response = {
|
|
1494
1353
|
$metadata: deserializeMetadata(output),
|
|
1495
1354
|
...contents,
|
|
1496
1355
|
};
|
|
1497
|
-
return
|
|
1356
|
+
return response;
|
|
1498
1357
|
};
|
|
1499
1358
|
exports.de_StartWorkflowExecutionCommand = de_StartWorkflowExecutionCommand;
|
|
1500
1359
|
const de_StartWorkflowExecutionCommandError = async (output, context) => {
|
|
@@ -1524,10 +1383,9 @@ const de_StartWorkflowExecutionCommandError = async (output, context) => {
|
|
|
1524
1383
|
throw await de_WorkflowExecutionAlreadyStartedFaultRes(parsedOutput, context);
|
|
1525
1384
|
default:
|
|
1526
1385
|
const parsedBody = parsedOutput.body;
|
|
1527
|
-
|
|
1386
|
+
return throwDefaultError({
|
|
1528
1387
|
output,
|
|
1529
1388
|
parsedBody,
|
|
1530
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1531
1389
|
errorCode,
|
|
1532
1390
|
});
|
|
1533
1391
|
}
|
|
@@ -1540,7 +1398,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1540
1398
|
const response = {
|
|
1541
1399
|
$metadata: deserializeMetadata(output),
|
|
1542
1400
|
};
|
|
1543
|
-
return
|
|
1401
|
+
return response;
|
|
1544
1402
|
};
|
|
1545
1403
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1546
1404
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1564,10 +1422,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1564
1422
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1565
1423
|
default:
|
|
1566
1424
|
const parsedBody = parsedOutput.body;
|
|
1567
|
-
|
|
1425
|
+
return throwDefaultError({
|
|
1568
1426
|
output,
|
|
1569
1427
|
parsedBody,
|
|
1570
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1571
1428
|
errorCode,
|
|
1572
1429
|
});
|
|
1573
1430
|
}
|
|
@@ -1580,7 +1437,7 @@ const de_TerminateWorkflowExecutionCommand = async (output, context) => {
|
|
|
1580
1437
|
const response = {
|
|
1581
1438
|
$metadata: deserializeMetadata(output),
|
|
1582
1439
|
};
|
|
1583
|
-
return
|
|
1440
|
+
return response;
|
|
1584
1441
|
};
|
|
1585
1442
|
exports.de_TerminateWorkflowExecutionCommand = de_TerminateWorkflowExecutionCommand;
|
|
1586
1443
|
const de_TerminateWorkflowExecutionCommandError = async (output, context) => {
|
|
@@ -1598,10 +1455,9 @@ const de_TerminateWorkflowExecutionCommandError = async (output, context) => {
|
|
|
1598
1455
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1599
1456
|
default:
|
|
1600
1457
|
const parsedBody = parsedOutput.body;
|
|
1601
|
-
|
|
1458
|
+
return throwDefaultError({
|
|
1602
1459
|
output,
|
|
1603
1460
|
parsedBody,
|
|
1604
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1605
1461
|
errorCode,
|
|
1606
1462
|
});
|
|
1607
1463
|
}
|
|
@@ -1614,7 +1470,7 @@ const de_UndeprecateActivityTypeCommand = async (output, context) => {
|
|
|
1614
1470
|
const response = {
|
|
1615
1471
|
$metadata: deserializeMetadata(output),
|
|
1616
1472
|
};
|
|
1617
|
-
return
|
|
1473
|
+
return response;
|
|
1618
1474
|
};
|
|
1619
1475
|
exports.de_UndeprecateActivityTypeCommand = de_UndeprecateActivityTypeCommand;
|
|
1620
1476
|
const de_UndeprecateActivityTypeCommandError = async (output, context) => {
|
|
@@ -1635,10 +1491,9 @@ const de_UndeprecateActivityTypeCommandError = async (output, context) => {
|
|
|
1635
1491
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1636
1492
|
default:
|
|
1637
1493
|
const parsedBody = parsedOutput.body;
|
|
1638
|
-
|
|
1494
|
+
return throwDefaultError({
|
|
1639
1495
|
output,
|
|
1640
1496
|
parsedBody,
|
|
1641
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1642
1497
|
errorCode,
|
|
1643
1498
|
});
|
|
1644
1499
|
}
|
|
@@ -1651,7 +1506,7 @@ const de_UndeprecateDomainCommand = async (output, context) => {
|
|
|
1651
1506
|
const response = {
|
|
1652
1507
|
$metadata: deserializeMetadata(output),
|
|
1653
1508
|
};
|
|
1654
|
-
return
|
|
1509
|
+
return response;
|
|
1655
1510
|
};
|
|
1656
1511
|
exports.de_UndeprecateDomainCommand = de_UndeprecateDomainCommand;
|
|
1657
1512
|
const de_UndeprecateDomainCommandError = async (output, context) => {
|
|
@@ -1672,10 +1527,9 @@ const de_UndeprecateDomainCommandError = async (output, context) => {
|
|
|
1672
1527
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1673
1528
|
default:
|
|
1674
1529
|
const parsedBody = parsedOutput.body;
|
|
1675
|
-
|
|
1530
|
+
return throwDefaultError({
|
|
1676
1531
|
output,
|
|
1677
1532
|
parsedBody,
|
|
1678
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1679
1533
|
errorCode,
|
|
1680
1534
|
});
|
|
1681
1535
|
}
|
|
@@ -1688,7 +1542,7 @@ const de_UndeprecateWorkflowTypeCommand = async (output, context) => {
|
|
|
1688
1542
|
const response = {
|
|
1689
1543
|
$metadata: deserializeMetadata(output),
|
|
1690
1544
|
};
|
|
1691
|
-
return
|
|
1545
|
+
return response;
|
|
1692
1546
|
};
|
|
1693
1547
|
exports.de_UndeprecateWorkflowTypeCommand = de_UndeprecateWorkflowTypeCommand;
|
|
1694
1548
|
const de_UndeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
@@ -1709,10 +1563,9 @@ const de_UndeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
|
1709
1563
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1710
1564
|
default:
|
|
1711
1565
|
const parsedBody = parsedOutput.body;
|
|
1712
|
-
|
|
1566
|
+
return throwDefaultError({
|
|
1713
1567
|
output,
|
|
1714
1568
|
parsedBody,
|
|
1715
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1716
1569
|
errorCode,
|
|
1717
1570
|
});
|
|
1718
1571
|
}
|
|
@@ -1725,7 +1578,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1725
1578
|
const response = {
|
|
1726
1579
|
$metadata: deserializeMetadata(output),
|
|
1727
1580
|
};
|
|
1728
|
-
return
|
|
1581
|
+
return response;
|
|
1729
1582
|
};
|
|
1730
1583
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1731
1584
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1746,17 +1599,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1746
1599
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1747
1600
|
default:
|
|
1748
1601
|
const parsedBody = parsedOutput.body;
|
|
1749
|
-
|
|
1602
|
+
return throwDefaultError({
|
|
1750
1603
|
output,
|
|
1751
1604
|
parsedBody,
|
|
1752
|
-
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1753
1605
|
errorCode,
|
|
1754
1606
|
});
|
|
1755
1607
|
}
|
|
1756
1608
|
};
|
|
1757
1609
|
const de_DefaultUndefinedFaultRes = async (parsedOutput, context) => {
|
|
1758
1610
|
const body = parsedOutput.body;
|
|
1759
|
-
const deserialized =
|
|
1611
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1760
1612
|
const exception = new models_0_1.DefaultUndefinedFault({
|
|
1761
1613
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1762
1614
|
...deserialized,
|
|
@@ -1765,7 +1617,7 @@ const de_DefaultUndefinedFaultRes = async (parsedOutput, context) => {
|
|
|
1765
1617
|
};
|
|
1766
1618
|
const de_DomainAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
1767
1619
|
const body = parsedOutput.body;
|
|
1768
|
-
const deserialized =
|
|
1620
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1769
1621
|
const exception = new models_0_1.DomainAlreadyExistsFault({
|
|
1770
1622
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1771
1623
|
...deserialized,
|
|
@@ -1774,7 +1626,7 @@ const de_DomainAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
|
1774
1626
|
};
|
|
1775
1627
|
const de_DomainDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
1776
1628
|
const body = parsedOutput.body;
|
|
1777
|
-
const deserialized =
|
|
1629
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1778
1630
|
const exception = new models_0_1.DomainDeprecatedFault({
|
|
1779
1631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1780
1632
|
...deserialized,
|
|
@@ -1783,7 +1635,7 @@ const de_DomainDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
|
1783
1635
|
};
|
|
1784
1636
|
const de_LimitExceededFaultRes = async (parsedOutput, context) => {
|
|
1785
1637
|
const body = parsedOutput.body;
|
|
1786
|
-
const deserialized =
|
|
1638
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1787
1639
|
const exception = new models_0_1.LimitExceededFault({
|
|
1788
1640
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1789
1641
|
...deserialized,
|
|
@@ -1792,7 +1644,7 @@ const de_LimitExceededFaultRes = async (parsedOutput, context) => {
|
|
|
1792
1644
|
};
|
|
1793
1645
|
const de_OperationNotPermittedFaultRes = async (parsedOutput, context) => {
|
|
1794
1646
|
const body = parsedOutput.body;
|
|
1795
|
-
const deserialized =
|
|
1647
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1796
1648
|
const exception = new models_0_1.OperationNotPermittedFault({
|
|
1797
1649
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1798
1650
|
...deserialized,
|
|
@@ -1801,7 +1653,7 @@ const de_OperationNotPermittedFaultRes = async (parsedOutput, context) => {
|
|
|
1801
1653
|
};
|
|
1802
1654
|
const de_TooManyTagsFaultRes = async (parsedOutput, context) => {
|
|
1803
1655
|
const body = parsedOutput.body;
|
|
1804
|
-
const deserialized =
|
|
1656
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1805
1657
|
const exception = new models_0_1.TooManyTagsFault({
|
|
1806
1658
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1807
1659
|
...deserialized,
|
|
@@ -1810,7 +1662,7 @@ const de_TooManyTagsFaultRes = async (parsedOutput, context) => {
|
|
|
1810
1662
|
};
|
|
1811
1663
|
const de_TypeAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
1812
1664
|
const body = parsedOutput.body;
|
|
1813
|
-
const deserialized =
|
|
1665
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1814
1666
|
const exception = new models_0_1.TypeAlreadyExistsFault({
|
|
1815
1667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1816
1668
|
...deserialized,
|
|
@@ -1819,7 +1671,7 @@ const de_TypeAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
|
1819
1671
|
};
|
|
1820
1672
|
const de_TypeDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
1821
1673
|
const body = parsedOutput.body;
|
|
1822
|
-
const deserialized =
|
|
1674
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1823
1675
|
const exception = new models_0_1.TypeDeprecatedFault({
|
|
1824
1676
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1825
1677
|
...deserialized,
|
|
@@ -1828,7 +1680,7 @@ const de_TypeDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
|
1828
1680
|
};
|
|
1829
1681
|
const de_UnknownResourceFaultRes = async (parsedOutput, context) => {
|
|
1830
1682
|
const body = parsedOutput.body;
|
|
1831
|
-
const deserialized =
|
|
1683
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1832
1684
|
const exception = new models_0_1.UnknownResourceFault({
|
|
1833
1685
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1834
1686
|
...deserialized,
|
|
@@ -1837,1574 +1689,283 @@ const de_UnknownResourceFaultRes = async (parsedOutput, context) => {
|
|
|
1837
1689
|
};
|
|
1838
1690
|
const de_WorkflowExecutionAlreadyStartedFaultRes = async (parsedOutput, context) => {
|
|
1839
1691
|
const body = parsedOutput.body;
|
|
1840
|
-
const deserialized =
|
|
1692
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1841
1693
|
const exception = new models_0_1.WorkflowExecutionAlreadyStartedFault({
|
|
1842
1694
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1843
1695
|
...deserialized,
|
|
1844
1696
|
});
|
|
1845
1697
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1846
1698
|
};
|
|
1847
|
-
const se_ActivityType = (input, context) => {
|
|
1848
|
-
return {
|
|
1849
|
-
...(input.name != null && { name: input.name }),
|
|
1850
|
-
...(input.version != null && { version: input.version }),
|
|
1851
|
-
};
|
|
1852
|
-
};
|
|
1853
|
-
const se_CancelTimerDecisionAttributes = (input, context) => {
|
|
1854
|
-
return {
|
|
1855
|
-
...(input.timerId != null && { timerId: input.timerId }),
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
const se_CancelWorkflowExecutionDecisionAttributes = (input, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
...(input.details != null && { details: input.details }),
|
|
1861
|
-
};
|
|
1862
|
-
};
|
|
1863
|
-
const se_CloseStatusFilter = (input, context) => {
|
|
1864
|
-
return {
|
|
1865
|
-
...(input.status != null && { status: input.status }),
|
|
1866
|
-
};
|
|
1867
|
-
};
|
|
1868
|
-
const se_CompleteWorkflowExecutionDecisionAttributes = (input, context) => {
|
|
1869
|
-
return {
|
|
1870
|
-
...(input.result != null && { result: input.result }),
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
const se_ContinueAsNewWorkflowExecutionDecisionAttributes = (input, context) => {
|
|
1874
|
-
return {
|
|
1875
|
-
...(input.childPolicy != null && { childPolicy: input.childPolicy }),
|
|
1876
|
-
...(input.executionStartToCloseTimeout != null && {
|
|
1877
|
-
executionStartToCloseTimeout: input.executionStartToCloseTimeout,
|
|
1878
|
-
}),
|
|
1879
|
-
...(input.input != null && { input: input.input }),
|
|
1880
|
-
...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
|
|
1881
|
-
...(input.tagList != null && { tagList: se_TagList(input.tagList, context) }),
|
|
1882
|
-
...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
|
|
1883
|
-
...(input.taskPriority != null && { taskPriority: input.taskPriority }),
|
|
1884
|
-
...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
|
|
1885
|
-
...(input.workflowTypeVersion != null && { workflowTypeVersion: input.workflowTypeVersion }),
|
|
1886
|
-
};
|
|
1887
|
-
};
|
|
1888
1699
|
const se_CountClosedWorkflowExecutionsInput = (input, context) => {
|
|
1889
|
-
return {
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
...(input.startTimeFilter != null && { startTimeFilter: se_ExecutionTimeFilter(input.startTimeFilter, context) }),
|
|
1899
|
-
...(input.tagFilter != null && { tagFilter: se_TagFilter(input.tagFilter, context) }),
|
|
1900
|
-
...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
|
|
1901
|
-
};
|
|
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
|
+
});
|
|
1902
1709
|
};
|
|
1903
1710
|
const se_CountOpenWorkflowExecutionsInput = (input, context) => {
|
|
1904
|
-
return {
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
...(input.tagFilter != null && { tagFilter: se_TagFilter(input.tagFilter, context) }),
|
|
1911
|
-
...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
|
|
1912
|
-
};
|
|
1913
|
-
};
|
|
1914
|
-
const se_CountPendingActivityTasksInput = (input, context) => {
|
|
1915
|
-
return {
|
|
1916
|
-
...(input.domain != null && { domain: input.domain }),
|
|
1917
|
-
...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
|
|
1918
|
-
};
|
|
1919
|
-
};
|
|
1920
|
-
const se_CountPendingDecisionTasksInput = (input, context) => {
|
|
1921
|
-
return {
|
|
1922
|
-
...(input.domain != null && { domain: input.domain }),
|
|
1923
|
-
...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const se_Decision = (input, context) => {
|
|
1927
|
-
return {
|
|
1928
|
-
...(input.cancelTimerDecisionAttributes != null && {
|
|
1929
|
-
cancelTimerDecisionAttributes: se_CancelTimerDecisionAttributes(input.cancelTimerDecisionAttributes, context),
|
|
1930
|
-
}),
|
|
1931
|
-
...(input.cancelWorkflowExecutionDecisionAttributes != null && {
|
|
1932
|
-
cancelWorkflowExecutionDecisionAttributes: se_CancelWorkflowExecutionDecisionAttributes(input.cancelWorkflowExecutionDecisionAttributes, context),
|
|
1933
|
-
}),
|
|
1934
|
-
...(input.completeWorkflowExecutionDecisionAttributes != null && {
|
|
1935
|
-
completeWorkflowExecutionDecisionAttributes: se_CompleteWorkflowExecutionDecisionAttributes(input.completeWorkflowExecutionDecisionAttributes, context),
|
|
1936
|
-
}),
|
|
1937
|
-
...(input.continueAsNewWorkflowExecutionDecisionAttributes != null && {
|
|
1938
|
-
continueAsNewWorkflowExecutionDecisionAttributes: se_ContinueAsNewWorkflowExecutionDecisionAttributes(input.continueAsNewWorkflowExecutionDecisionAttributes, context),
|
|
1939
|
-
}),
|
|
1940
|
-
...(input.decisionType != null && { decisionType: input.decisionType }),
|
|
1941
|
-
...(input.failWorkflowExecutionDecisionAttributes != null && {
|
|
1942
|
-
failWorkflowExecutionDecisionAttributes: se_FailWorkflowExecutionDecisionAttributes(input.failWorkflowExecutionDecisionAttributes, context),
|
|
1943
|
-
}),
|
|
1944
|
-
...(input.recordMarkerDecisionAttributes != null && {
|
|
1945
|
-
recordMarkerDecisionAttributes: se_RecordMarkerDecisionAttributes(input.recordMarkerDecisionAttributes, context),
|
|
1946
|
-
}),
|
|
1947
|
-
...(input.requestCancelActivityTaskDecisionAttributes != null && {
|
|
1948
|
-
requestCancelActivityTaskDecisionAttributes: se_RequestCancelActivityTaskDecisionAttributes(input.requestCancelActivityTaskDecisionAttributes, context),
|
|
1949
|
-
}),
|
|
1950
|
-
...(input.requestCancelExternalWorkflowExecutionDecisionAttributes != null && {
|
|
1951
|
-
requestCancelExternalWorkflowExecutionDecisionAttributes: se_RequestCancelExternalWorkflowExecutionDecisionAttributes(input.requestCancelExternalWorkflowExecutionDecisionAttributes, context),
|
|
1952
|
-
}),
|
|
1953
|
-
...(input.scheduleActivityTaskDecisionAttributes != null && {
|
|
1954
|
-
scheduleActivityTaskDecisionAttributes: se_ScheduleActivityTaskDecisionAttributes(input.scheduleActivityTaskDecisionAttributes, context),
|
|
1955
|
-
}),
|
|
1956
|
-
...(input.scheduleLambdaFunctionDecisionAttributes != null && {
|
|
1957
|
-
scheduleLambdaFunctionDecisionAttributes: se_ScheduleLambdaFunctionDecisionAttributes(input.scheduleLambdaFunctionDecisionAttributes, context),
|
|
1958
|
-
}),
|
|
1959
|
-
...(input.signalExternalWorkflowExecutionDecisionAttributes != null && {
|
|
1960
|
-
signalExternalWorkflowExecutionDecisionAttributes: se_SignalExternalWorkflowExecutionDecisionAttributes(input.signalExternalWorkflowExecutionDecisionAttributes, context),
|
|
1961
|
-
}),
|
|
1962
|
-
...(input.startChildWorkflowExecutionDecisionAttributes != null && {
|
|
1963
|
-
startChildWorkflowExecutionDecisionAttributes: se_StartChildWorkflowExecutionDecisionAttributes(input.startChildWorkflowExecutionDecisionAttributes, context),
|
|
1964
|
-
}),
|
|
1965
|
-
...(input.startTimerDecisionAttributes != null && {
|
|
1966
|
-
startTimerDecisionAttributes: se_StartTimerDecisionAttributes(input.startTimerDecisionAttributes, context),
|
|
1967
|
-
}),
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
const se_DecisionList = (input, context) => {
|
|
1971
|
-
return input
|
|
1972
|
-
.filter((e) => e != null)
|
|
1973
|
-
.map((entry) => {
|
|
1974
|
-
return se_Decision(entry, 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,
|
|
1975
1717
|
});
|
|
1976
1718
|
};
|
|
1977
|
-
const se_DeprecateActivityTypeInput = (input, context) => {
|
|
1978
|
-
return {
|
|
1979
|
-
...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
|
|
1980
|
-
...(input.domain != null && { domain: input.domain }),
|
|
1981
|
-
};
|
|
1982
|
-
};
|
|
1983
|
-
const se_DeprecateDomainInput = (input, context) => {
|
|
1984
|
-
return {
|
|
1985
|
-
...(input.name != null && { name: input.name }),
|
|
1986
|
-
};
|
|
1987
|
-
};
|
|
1988
|
-
const se_DeprecateWorkflowTypeInput = (input, context) => {
|
|
1989
|
-
return {
|
|
1990
|
-
...(input.domain != null && { domain: input.domain }),
|
|
1991
|
-
...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
const se_DescribeActivityTypeInput = (input, context) => {
|
|
1995
|
-
return {
|
|
1996
|
-
...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
|
|
1997
|
-
...(input.domain != null && { domain: input.domain }),
|
|
1998
|
-
};
|
|
1999
|
-
};
|
|
2000
|
-
const se_DescribeDomainInput = (input, context) => {
|
|
2001
|
-
return {
|
|
2002
|
-
...(input.name != null && { name: input.name }),
|
|
2003
|
-
};
|
|
2004
|
-
};
|
|
2005
|
-
const se_DescribeWorkflowExecutionInput = (input, context) => {
|
|
2006
|
-
return {
|
|
2007
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2008
|
-
...(input.execution != null && { execution: se_WorkflowExecution(input.execution, context) }),
|
|
2009
|
-
};
|
|
2010
|
-
};
|
|
2011
|
-
const se_DescribeWorkflowTypeInput = (input, context) => {
|
|
2012
|
-
return {
|
|
2013
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2014
|
-
...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
|
|
2015
|
-
};
|
|
2016
|
-
};
|
|
2017
1719
|
const se_ExecutionTimeFilter = (input, context) => {
|
|
2018
|
-
return {
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
};
|
|
2022
|
-
};
|
|
2023
|
-
const se_FailWorkflowExecutionDecisionAttributes = (input, context) => {
|
|
2024
|
-
return {
|
|
2025
|
-
...(input.details != null && { details: input.details }),
|
|
2026
|
-
...(input.reason != null && { reason: input.reason }),
|
|
2027
|
-
};
|
|
2028
|
-
};
|
|
2029
|
-
const se_GetWorkflowExecutionHistoryInput = (input, context) => {
|
|
2030
|
-
return {
|
|
2031
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2032
|
-
...(input.execution != null && { execution: se_WorkflowExecution(input.execution, context) }),
|
|
2033
|
-
...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
|
|
2034
|
-
...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
|
|
2035
|
-
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
2036
|
-
};
|
|
2037
|
-
};
|
|
2038
|
-
const se_ListActivityTypesInput = (input, context) => {
|
|
2039
|
-
return {
|
|
2040
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2041
|
-
...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
|
|
2042
|
-
...(input.name != null && { name: input.name }),
|
|
2043
|
-
...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
|
|
2044
|
-
...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
|
|
2045
|
-
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
2046
|
-
};
|
|
1720
|
+
return (0, smithy_client_1.take)(input, {
|
|
1721
|
+
latestDate: (_) => Math.round(_.getTime() / 1000),
|
|
1722
|
+
oldestDate: (_) => Math.round(_.getTime() / 1000),
|
|
1723
|
+
});
|
|
2047
1724
|
};
|
|
2048
1725
|
const se_ListClosedWorkflowExecutionsInput = (input, context) => {
|
|
2049
|
-
return {
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
...(input.startTimeFilter != null && { startTimeFilter: se_ExecutionTimeFilter(input.startTimeFilter, context) }),
|
|
2062
|
-
...(input.tagFilter != null && { tagFilter: se_TagFilter(input.tagFilter, context) }),
|
|
2063
|
-
...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
|
|
2064
|
-
};
|
|
2065
|
-
};
|
|
2066
|
-
const se_ListDomainsInput = (input, context) => {
|
|
2067
|
-
return {
|
|
2068
|
-
...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
|
|
2069
|
-
...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
|
|
2070
|
-
...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
|
|
2071
|
-
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
2072
|
-
};
|
|
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
|
+
});
|
|
2073
1738
|
};
|
|
2074
1739
|
const se_ListOpenWorkflowExecutionsInput = (input, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
|
|
2086
|
-
};
|
|
2087
|
-
};
|
|
2088
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
2089
|
-
return {
|
|
2090
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2091
|
-
};
|
|
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
|
+
});
|
|
2092
1750
|
};
|
|
2093
|
-
const
|
|
2094
|
-
return {
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
|
|
2099
|
-
...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
|
|
2100
|
-
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
2101
|
-
};
|
|
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
|
+
});
|
|
2102
1756
|
};
|
|
2103
|
-
const
|
|
2104
|
-
return {
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
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
|
+
});
|
|
2109
1765
|
};
|
|
2110
|
-
const
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
|
|
2118
|
-
};
|
|
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;
|
|
2119
1773
|
};
|
|
2120
|
-
const
|
|
2121
|
-
return {
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
};
|
|
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
|
+
});
|
|
2125
1779
|
};
|
|
2126
|
-
const
|
|
2127
|
-
return {
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
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
|
+
});
|
|
2131
1790
|
};
|
|
2132
|
-
const
|
|
2133
|
-
return {
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
...(input.defaultTaskList != null && { defaultTaskList: se_TaskList(input.defaultTaskList, context) }),
|
|
2138
|
-
...(input.defaultTaskPriority != null && { defaultTaskPriority: input.defaultTaskPriority }),
|
|
2139
|
-
...(input.defaultTaskScheduleToCloseTimeout != null && {
|
|
2140
|
-
defaultTaskScheduleToCloseTimeout: input.defaultTaskScheduleToCloseTimeout,
|
|
2141
|
-
}),
|
|
2142
|
-
...(input.defaultTaskScheduleToStartTimeout != null && {
|
|
2143
|
-
defaultTaskScheduleToStartTimeout: input.defaultTaskScheduleToStartTimeout,
|
|
2144
|
-
}),
|
|
2145
|
-
...(input.defaultTaskStartToCloseTimeout != null && {
|
|
2146
|
-
defaultTaskStartToCloseTimeout: input.defaultTaskStartToCloseTimeout,
|
|
2147
|
-
}),
|
|
2148
|
-
...(input.description != null && { description: input.description }),
|
|
2149
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2150
|
-
...(input.name != null && { name: input.name }),
|
|
2151
|
-
...(input.version != null && { version: input.version }),
|
|
2152
|
-
};
|
|
2153
|
-
};
|
|
2154
|
-
const se_RegisterDomainInput = (input, context) => {
|
|
2155
|
-
return {
|
|
2156
|
-
...(input.description != null && { description: input.description }),
|
|
2157
|
-
...(input.name != null && { name: input.name }),
|
|
2158
|
-
...(input.tags != null && { tags: se_ResourceTagList(input.tags, context) }),
|
|
2159
|
-
...(input.workflowExecutionRetentionPeriodInDays != null && {
|
|
2160
|
-
workflowExecutionRetentionPeriodInDays: input.workflowExecutionRetentionPeriodInDays,
|
|
2161
|
-
}),
|
|
2162
|
-
};
|
|
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
|
+
});
|
|
2163
1796
|
};
|
|
2164
|
-
const
|
|
2165
|
-
return {
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
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
|
+
});
|
|
2186
1857
|
};
|
|
2187
|
-
const
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
};
|
|
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;
|
|
2193
1865
|
};
|
|
2194
|
-
const
|
|
2195
|
-
return {
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
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
|
+
});
|
|
2200
1874
|
};
|
|
2201
|
-
const
|
|
2202
|
-
return {
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
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
|
+
});
|
|
2206
1887
|
};
|
|
2207
|
-
const
|
|
2208
|
-
|
|
1888
|
+
const de_WorkflowExecutionInfoList = (output, context) => {
|
|
1889
|
+
const retVal = (output || [])
|
|
2209
1890
|
.filter((e) => e != null)
|
|
2210
1891
|
.map((entry) => {
|
|
2211
|
-
return 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,
|
|
2212
1915
|
});
|
|
2213
1916
|
};
|
|
2214
|
-
const
|
|
2215
|
-
|
|
1917
|
+
const de_WorkflowTypeInfoList = (output, context) => {
|
|
1918
|
+
const retVal = (output || [])
|
|
2216
1919
|
.filter((e) => e != null)
|
|
2217
1920
|
.map((entry) => {
|
|
2218
|
-
return
|
|
1921
|
+
return de_WorkflowTypeInfo(entry, context);
|
|
2219
1922
|
});
|
|
1923
|
+
return retVal;
|
|
2220
1924
|
};
|
|
2221
|
-
const
|
|
2222
|
-
return {
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
};
|
|
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
|
+
});
|
|
2226
1930
|
};
|
|
2227
|
-
const
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
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 collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1938
|
+
if (streamBody instanceof Uint8Array) {
|
|
1939
|
+
return Promise.resolve(streamBody);
|
|
1940
|
+
}
|
|
1941
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2232
1942
|
};
|
|
2233
|
-
const
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
1943
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1944
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SWFServiceException_1.SWFServiceException);
|
|
1945
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1946
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1947
|
+
const contents = {
|
|
1948
|
+
protocol,
|
|
1949
|
+
hostname,
|
|
1950
|
+
port,
|
|
1951
|
+
method: "POST",
|
|
1952
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1953
|
+
headers,
|
|
2238
1954
|
};
|
|
1955
|
+
if (resolvedHostname !== undefined) {
|
|
1956
|
+
contents.hostname = resolvedHostname;
|
|
1957
|
+
}
|
|
1958
|
+
if (body !== undefined) {
|
|
1959
|
+
contents.body = body;
|
|
1960
|
+
}
|
|
1961
|
+
return new protocol_http_1.HttpRequest(contents);
|
|
2239
1962
|
};
|
|
2240
|
-
|
|
1963
|
+
function sharedHeaders(operation) {
|
|
2241
1964
|
return {
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1965
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1966
|
+
"x-amz-target": `SimpleWorkflowService.${operation}`,
|
|
2245
1967
|
};
|
|
2246
|
-
}
|
|
2247
|
-
const se_ScheduleActivityTaskDecisionAttributes = (input, context) => {
|
|
2248
|
-
return {
|
|
2249
|
-
...(input.activityId != null && { activityId: input.activityId }),
|
|
2250
|
-
...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
|
|
2251
|
-
...(input.control != null && { control: input.control }),
|
|
2252
|
-
...(input.heartbeatTimeout != null && { heartbeatTimeout: input.heartbeatTimeout }),
|
|
2253
|
-
...(input.input != null && { input: input.input }),
|
|
2254
|
-
...(input.scheduleToCloseTimeout != null && { scheduleToCloseTimeout: input.scheduleToCloseTimeout }),
|
|
2255
|
-
...(input.scheduleToStartTimeout != null && { scheduleToStartTimeout: input.scheduleToStartTimeout }),
|
|
2256
|
-
...(input.startToCloseTimeout != null && { startToCloseTimeout: input.startToCloseTimeout }),
|
|
2257
|
-
...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
|
|
2258
|
-
...(input.taskPriority != null && { taskPriority: input.taskPriority }),
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
const se_ScheduleLambdaFunctionDecisionAttributes = (input, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
...(input.control != null && { control: input.control }),
|
|
2264
|
-
...(input.id != null && { id: input.id }),
|
|
2265
|
-
...(input.input != null && { input: input.input }),
|
|
2266
|
-
...(input.name != null && { name: input.name }),
|
|
2267
|
-
...(input.startToCloseTimeout != null && { startToCloseTimeout: input.startToCloseTimeout }),
|
|
2268
|
-
};
|
|
2269
|
-
};
|
|
2270
|
-
const se_SignalExternalWorkflowExecutionDecisionAttributes = (input, context) => {
|
|
2271
|
-
return {
|
|
2272
|
-
...(input.control != null && { control: input.control }),
|
|
2273
|
-
...(input.input != null && { input: input.input }),
|
|
2274
|
-
...(input.runId != null && { runId: input.runId }),
|
|
2275
|
-
...(input.signalName != null && { signalName: input.signalName }),
|
|
2276
|
-
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
2277
|
-
};
|
|
2278
|
-
};
|
|
2279
|
-
const se_SignalWorkflowExecutionInput = (input, context) => {
|
|
2280
|
-
return {
|
|
2281
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2282
|
-
...(input.input != null && { input: input.input }),
|
|
2283
|
-
...(input.runId != null && { runId: input.runId }),
|
|
2284
|
-
...(input.signalName != null && { signalName: input.signalName }),
|
|
2285
|
-
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
2286
|
-
};
|
|
2287
|
-
};
|
|
2288
|
-
const se_StartChildWorkflowExecutionDecisionAttributes = (input, context) => {
|
|
2289
|
-
return {
|
|
2290
|
-
...(input.childPolicy != null && { childPolicy: input.childPolicy }),
|
|
2291
|
-
...(input.control != null && { control: input.control }),
|
|
2292
|
-
...(input.executionStartToCloseTimeout != null && {
|
|
2293
|
-
executionStartToCloseTimeout: input.executionStartToCloseTimeout,
|
|
2294
|
-
}),
|
|
2295
|
-
...(input.input != null && { input: input.input }),
|
|
2296
|
-
...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
|
|
2297
|
-
...(input.tagList != null && { tagList: se_TagList(input.tagList, context) }),
|
|
2298
|
-
...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
|
|
2299
|
-
...(input.taskPriority != null && { taskPriority: input.taskPriority }),
|
|
2300
|
-
...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
|
|
2301
|
-
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
2302
|
-
...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
const se_StartTimerDecisionAttributes = (input, context) => {
|
|
2306
|
-
return {
|
|
2307
|
-
...(input.control != null && { control: input.control }),
|
|
2308
|
-
...(input.startToFireTimeout != null && { startToFireTimeout: input.startToFireTimeout }),
|
|
2309
|
-
...(input.timerId != null && { timerId: input.timerId }),
|
|
2310
|
-
};
|
|
2311
|
-
};
|
|
2312
|
-
const se_StartWorkflowExecutionInput = (input, context) => {
|
|
2313
|
-
return {
|
|
2314
|
-
...(input.childPolicy != null && { childPolicy: input.childPolicy }),
|
|
2315
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2316
|
-
...(input.executionStartToCloseTimeout != null && {
|
|
2317
|
-
executionStartToCloseTimeout: input.executionStartToCloseTimeout,
|
|
2318
|
-
}),
|
|
2319
|
-
...(input.input != null && { input: input.input }),
|
|
2320
|
-
...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
|
|
2321
|
-
...(input.tagList != null && { tagList: se_TagList(input.tagList, context) }),
|
|
2322
|
-
...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
|
|
2323
|
-
...(input.taskPriority != null && { taskPriority: input.taskPriority }),
|
|
2324
|
-
...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
|
|
2325
|
-
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
2326
|
-
...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
|
|
2327
|
-
};
|
|
2328
|
-
};
|
|
2329
|
-
const se_TagFilter = (input, context) => {
|
|
2330
|
-
return {
|
|
2331
|
-
...(input.tag != null && { tag: input.tag }),
|
|
2332
|
-
};
|
|
2333
|
-
};
|
|
2334
|
-
const se_TagList = (input, context) => {
|
|
2335
|
-
return input
|
|
2336
|
-
.filter((e) => e != null)
|
|
2337
|
-
.map((entry) => {
|
|
2338
|
-
return entry;
|
|
2339
|
-
});
|
|
2340
|
-
};
|
|
2341
|
-
const se_TagResourceInput = (input, context) => {
|
|
2342
|
-
return {
|
|
2343
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2344
|
-
...(input.tags != null && { tags: se_ResourceTagList(input.tags, context) }),
|
|
2345
|
-
};
|
|
2346
|
-
};
|
|
2347
|
-
const se_TaskList = (input, context) => {
|
|
2348
|
-
return {
|
|
2349
|
-
...(input.name != null && { name: input.name }),
|
|
2350
|
-
};
|
|
2351
|
-
};
|
|
2352
|
-
const se_TerminateWorkflowExecutionInput = (input, context) => {
|
|
2353
|
-
return {
|
|
2354
|
-
...(input.childPolicy != null && { childPolicy: input.childPolicy }),
|
|
2355
|
-
...(input.details != null && { details: input.details }),
|
|
2356
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2357
|
-
...(input.reason != null && { reason: input.reason }),
|
|
2358
|
-
...(input.runId != null && { runId: input.runId }),
|
|
2359
|
-
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
2360
|
-
};
|
|
2361
|
-
};
|
|
2362
|
-
const se_UndeprecateActivityTypeInput = (input, context) => {
|
|
2363
|
-
return {
|
|
2364
|
-
...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
|
|
2365
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2366
|
-
};
|
|
2367
|
-
};
|
|
2368
|
-
const se_UndeprecateDomainInput = (input, context) => {
|
|
2369
|
-
return {
|
|
2370
|
-
...(input.name != null && { name: input.name }),
|
|
2371
|
-
};
|
|
2372
|
-
};
|
|
2373
|
-
const se_UndeprecateWorkflowTypeInput = (input, context) => {
|
|
2374
|
-
return {
|
|
2375
|
-
...(input.domain != null && { domain: input.domain }),
|
|
2376
|
-
...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
|
|
2377
|
-
};
|
|
2378
|
-
};
|
|
2379
|
-
const se_UntagResourceInput = (input, context) => {
|
|
2380
|
-
return {
|
|
2381
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2382
|
-
...(input.tagKeys != null && { tagKeys: se_ResourceTagKeyList(input.tagKeys, context) }),
|
|
2383
|
-
};
|
|
2384
|
-
};
|
|
2385
|
-
const se_WorkflowExecution = (input, context) => {
|
|
2386
|
-
return {
|
|
2387
|
-
...(input.runId != null && { runId: input.runId }),
|
|
2388
|
-
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
2389
|
-
};
|
|
2390
|
-
};
|
|
2391
|
-
const se_WorkflowExecutionFilter = (input, context) => {
|
|
2392
|
-
return {
|
|
2393
|
-
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
const se_WorkflowType = (input, context) => {
|
|
2397
|
-
return {
|
|
2398
|
-
...(input.name != null && { name: input.name }),
|
|
2399
|
-
...(input.version != null && { version: input.version }),
|
|
2400
|
-
};
|
|
2401
|
-
};
|
|
2402
|
-
const se_WorkflowTypeFilter = (input, context) => {
|
|
2403
|
-
return {
|
|
2404
|
-
...(input.name != null && { name: input.name }),
|
|
2405
|
-
...(input.version != null && { version: input.version }),
|
|
2406
|
-
};
|
|
2407
|
-
};
|
|
2408
|
-
const de_ActivityTask = (output, context) => {
|
|
2409
|
-
return {
|
|
2410
|
-
activityId: (0, smithy_client_1.expectString)(output.activityId),
|
|
2411
|
-
activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
|
|
2412
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
2413
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2414
|
-
taskToken: (0, smithy_client_1.expectString)(output.taskToken),
|
|
2415
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2416
|
-
};
|
|
2417
|
-
};
|
|
2418
|
-
const de_ActivityTaskCanceledEventAttributes = (output, context) => {
|
|
2419
|
-
return {
|
|
2420
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2421
|
-
latestCancelRequestedEventId: (0, smithy_client_1.expectLong)(output.latestCancelRequestedEventId),
|
|
2422
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2423
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2424
|
-
};
|
|
2425
|
-
};
|
|
2426
|
-
const de_ActivityTaskCancelRequestedEventAttributes = (output, context) => {
|
|
2427
|
-
return {
|
|
2428
|
-
activityId: (0, smithy_client_1.expectString)(output.activityId),
|
|
2429
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2430
|
-
};
|
|
2431
|
-
};
|
|
2432
|
-
const de_ActivityTaskCompletedEventAttributes = (output, context) => {
|
|
2433
|
-
return {
|
|
2434
|
-
result: (0, smithy_client_1.expectString)(output.result),
|
|
2435
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2436
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2437
|
-
};
|
|
2438
|
-
};
|
|
2439
|
-
const de_ActivityTaskFailedEventAttributes = (output, context) => {
|
|
2440
|
-
return {
|
|
2441
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2442
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2443
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2444
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2445
|
-
};
|
|
2446
|
-
};
|
|
2447
|
-
const de_ActivityTaskScheduledEventAttributes = (output, context) => {
|
|
2448
|
-
return {
|
|
2449
|
-
activityId: (0, smithy_client_1.expectString)(output.activityId),
|
|
2450
|
-
activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
|
|
2451
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
2452
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2453
|
-
heartbeatTimeout: (0, smithy_client_1.expectString)(output.heartbeatTimeout),
|
|
2454
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
2455
|
-
scheduleToCloseTimeout: (0, smithy_client_1.expectString)(output.scheduleToCloseTimeout),
|
|
2456
|
-
scheduleToStartTimeout: (0, smithy_client_1.expectString)(output.scheduleToStartTimeout),
|
|
2457
|
-
startToCloseTimeout: (0, smithy_client_1.expectString)(output.startToCloseTimeout),
|
|
2458
|
-
taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
|
|
2459
|
-
taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
|
|
2460
|
-
};
|
|
2461
|
-
};
|
|
2462
|
-
const de_ActivityTaskStartedEventAttributes = (output, context) => {
|
|
2463
|
-
return {
|
|
2464
|
-
identity: (0, smithy_client_1.expectString)(output.identity),
|
|
2465
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2466
|
-
};
|
|
2467
|
-
};
|
|
2468
|
-
const de_ActivityTaskStatus = (output, context) => {
|
|
2469
|
-
return {
|
|
2470
|
-
cancelRequested: (0, smithy_client_1.expectBoolean)(output.cancelRequested),
|
|
2471
|
-
};
|
|
2472
|
-
};
|
|
2473
|
-
const de_ActivityTaskTimedOutEventAttributes = (output, context) => {
|
|
2474
|
-
return {
|
|
2475
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2476
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2477
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2478
|
-
timeoutType: (0, smithy_client_1.expectString)(output.timeoutType),
|
|
2479
|
-
};
|
|
2480
|
-
};
|
|
2481
|
-
const de_ActivityType = (output, context) => {
|
|
2482
|
-
return {
|
|
2483
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2484
|
-
version: (0, smithy_client_1.expectString)(output.version),
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2487
|
-
const de_ActivityTypeConfiguration = (output, context) => {
|
|
2488
|
-
return {
|
|
2489
|
-
defaultTaskHeartbeatTimeout: (0, smithy_client_1.expectString)(output.defaultTaskHeartbeatTimeout),
|
|
2490
|
-
defaultTaskList: output.defaultTaskList != null ? de_TaskList(output.defaultTaskList, context) : undefined,
|
|
2491
|
-
defaultTaskPriority: (0, smithy_client_1.expectString)(output.defaultTaskPriority),
|
|
2492
|
-
defaultTaskScheduleToCloseTimeout: (0, smithy_client_1.expectString)(output.defaultTaskScheduleToCloseTimeout),
|
|
2493
|
-
defaultTaskScheduleToStartTimeout: (0, smithy_client_1.expectString)(output.defaultTaskScheduleToStartTimeout),
|
|
2494
|
-
defaultTaskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.defaultTaskStartToCloseTimeout),
|
|
2495
|
-
};
|
|
2496
|
-
};
|
|
2497
|
-
const de_ActivityTypeDetail = (output, context) => {
|
|
2498
|
-
return {
|
|
2499
|
-
configuration: output.configuration != null ? de_ActivityTypeConfiguration(output.configuration, context) : undefined,
|
|
2500
|
-
typeInfo: output.typeInfo != null ? de_ActivityTypeInfo(output.typeInfo, context) : undefined,
|
|
2501
|
-
};
|
|
2502
|
-
};
|
|
2503
|
-
const de_ActivityTypeInfo = (output, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
|
|
2506
|
-
creationDate: output.creationDate != null
|
|
2507
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
2508
|
-
: undefined,
|
|
2509
|
-
deprecationDate: output.deprecationDate != null
|
|
2510
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deprecationDate)))
|
|
2511
|
-
: undefined,
|
|
2512
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2513
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2514
|
-
};
|
|
2515
|
-
};
|
|
2516
|
-
const de_ActivityTypeInfoList = (output, context) => {
|
|
2517
|
-
const retVal = (output || [])
|
|
2518
|
-
.filter((e) => e != null)
|
|
2519
|
-
.map((entry) => {
|
|
2520
|
-
if (entry === null) {
|
|
2521
|
-
return null;
|
|
2522
|
-
}
|
|
2523
|
-
return de_ActivityTypeInfo(entry, context);
|
|
2524
|
-
});
|
|
2525
|
-
return retVal;
|
|
2526
|
-
};
|
|
2527
|
-
const de_ActivityTypeInfos = (output, context) => {
|
|
2528
|
-
return {
|
|
2529
|
-
nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
|
|
2530
|
-
typeInfos: output.typeInfos != null ? de_ActivityTypeInfoList(output.typeInfos, context) : undefined,
|
|
2531
|
-
};
|
|
2532
|
-
};
|
|
2533
|
-
const de_CancelTimerFailedEventAttributes = (output, context) => {
|
|
2534
|
-
return {
|
|
2535
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2536
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2537
|
-
timerId: (0, smithy_client_1.expectString)(output.timerId),
|
|
2538
|
-
};
|
|
2539
|
-
};
|
|
2540
|
-
const de_CancelWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
2541
|
-
return {
|
|
2542
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2543
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2544
|
-
};
|
|
2545
|
-
};
|
|
2546
|
-
const de_ChildWorkflowExecutionCanceledEventAttributes = (output, context) => {
|
|
2547
|
-
return {
|
|
2548
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2549
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2550
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2551
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2552
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
2553
|
-
};
|
|
2554
|
-
};
|
|
2555
|
-
const de_ChildWorkflowExecutionCompletedEventAttributes = (output, context) => {
|
|
2556
|
-
return {
|
|
2557
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2558
|
-
result: (0, smithy_client_1.expectString)(output.result),
|
|
2559
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2560
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2561
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
2562
|
-
};
|
|
2563
|
-
};
|
|
2564
|
-
const de_ChildWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
2565
|
-
return {
|
|
2566
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2567
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2568
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2569
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2570
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2571
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
2572
|
-
};
|
|
2573
|
-
};
|
|
2574
|
-
const de_ChildWorkflowExecutionStartedEventAttributes = (output, context) => {
|
|
2575
|
-
return {
|
|
2576
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2577
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2578
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
2579
|
-
};
|
|
2580
|
-
};
|
|
2581
|
-
const de_ChildWorkflowExecutionTerminatedEventAttributes = (output, context) => {
|
|
2582
|
-
return {
|
|
2583
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2584
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2585
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2586
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
2587
|
-
};
|
|
2588
|
-
};
|
|
2589
|
-
const de_ChildWorkflowExecutionTimedOutEventAttributes = (output, context) => {
|
|
2590
|
-
return {
|
|
2591
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2592
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2593
|
-
timeoutType: (0, smithy_client_1.expectString)(output.timeoutType),
|
|
2594
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2595
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
2596
|
-
};
|
|
2597
|
-
};
|
|
2598
|
-
const de_CompleteWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
2599
|
-
return {
|
|
2600
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2601
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2602
|
-
};
|
|
2603
|
-
};
|
|
2604
|
-
const de_ContinueAsNewWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
2605
|
-
return {
|
|
2606
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2607
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2608
|
-
};
|
|
2609
|
-
};
|
|
2610
|
-
const de_DecisionTask = (output, context) => {
|
|
2611
|
-
return {
|
|
2612
|
-
events: output.events != null ? de_HistoryEventList(output.events, context) : undefined,
|
|
2613
|
-
nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
|
|
2614
|
-
previousStartedEventId: (0, smithy_client_1.expectLong)(output.previousStartedEventId),
|
|
2615
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2616
|
-
taskToken: (0, smithy_client_1.expectString)(output.taskToken),
|
|
2617
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2618
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
2619
|
-
};
|
|
2620
|
-
};
|
|
2621
|
-
const de_DecisionTaskCompletedEventAttributes = (output, context) => {
|
|
2622
|
-
return {
|
|
2623
|
-
executionContext: (0, smithy_client_1.expectString)(output.executionContext),
|
|
2624
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2625
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2626
|
-
};
|
|
2627
|
-
};
|
|
2628
|
-
const de_DecisionTaskScheduledEventAttributes = (output, context) => {
|
|
2629
|
-
return {
|
|
2630
|
-
startToCloseTimeout: (0, smithy_client_1.expectString)(output.startToCloseTimeout),
|
|
2631
|
-
taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
|
|
2632
|
-
taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
|
|
2633
|
-
};
|
|
2634
|
-
};
|
|
2635
|
-
const de_DecisionTaskStartedEventAttributes = (output, context) => {
|
|
2636
|
-
return {
|
|
2637
|
-
identity: (0, smithy_client_1.expectString)(output.identity),
|
|
2638
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2639
|
-
};
|
|
2640
|
-
};
|
|
2641
|
-
const de_DecisionTaskTimedOutEventAttributes = (output, context) => {
|
|
2642
|
-
return {
|
|
2643
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2644
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2645
|
-
timeoutType: (0, smithy_client_1.expectString)(output.timeoutType),
|
|
2646
|
-
};
|
|
2647
|
-
};
|
|
2648
|
-
const de_DefaultUndefinedFault = (output, context) => {
|
|
2649
|
-
return {
|
|
2650
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2651
|
-
};
|
|
2652
|
-
};
|
|
2653
|
-
const de_DomainAlreadyExistsFault = (output, context) => {
|
|
2654
|
-
return {
|
|
2655
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
|
-
const de_DomainConfiguration = (output, context) => {
|
|
2659
|
-
return {
|
|
2660
|
-
workflowExecutionRetentionPeriodInDays: (0, smithy_client_1.expectString)(output.workflowExecutionRetentionPeriodInDays),
|
|
2661
|
-
};
|
|
2662
|
-
};
|
|
2663
|
-
const de_DomainDeprecatedFault = (output, context) => {
|
|
2664
|
-
return {
|
|
2665
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2666
|
-
};
|
|
2667
|
-
};
|
|
2668
|
-
const de_DomainDetail = (output, context) => {
|
|
2669
|
-
return {
|
|
2670
|
-
configuration: output.configuration != null ? de_DomainConfiguration(output.configuration, context) : undefined,
|
|
2671
|
-
domainInfo: output.domainInfo != null ? de_DomainInfo(output.domainInfo, context) : undefined,
|
|
2672
|
-
};
|
|
2673
|
-
};
|
|
2674
|
-
const de_DomainInfo = (output, context) => {
|
|
2675
|
-
return {
|
|
2676
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2677
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2678
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2679
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2680
|
-
};
|
|
2681
|
-
};
|
|
2682
|
-
const de_DomainInfoList = (output, context) => {
|
|
2683
|
-
const retVal = (output || [])
|
|
2684
|
-
.filter((e) => e != null)
|
|
2685
|
-
.map((entry) => {
|
|
2686
|
-
if (entry === null) {
|
|
2687
|
-
return null;
|
|
2688
|
-
}
|
|
2689
|
-
return de_DomainInfo(entry, context);
|
|
2690
|
-
});
|
|
2691
|
-
return retVal;
|
|
2692
|
-
};
|
|
2693
|
-
const de_DomainInfos = (output, context) => {
|
|
2694
|
-
return {
|
|
2695
|
-
domainInfos: output.domainInfos != null ? de_DomainInfoList(output.domainInfos, context) : undefined,
|
|
2696
|
-
nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
|
|
2697
|
-
};
|
|
2698
|
-
};
|
|
2699
|
-
const de_ExternalWorkflowExecutionCancelRequestedEventAttributes = (output, context) => {
|
|
2700
|
-
return {
|
|
2701
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2702
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2703
|
-
};
|
|
2704
|
-
};
|
|
2705
|
-
const de_ExternalWorkflowExecutionSignaledEventAttributes = (output, context) => {
|
|
2706
|
-
return {
|
|
2707
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2708
|
-
workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
|
|
2709
|
-
};
|
|
2710
|
-
};
|
|
2711
|
-
const de_FailWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
2712
|
-
return {
|
|
2713
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2714
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2715
|
-
};
|
|
2716
|
-
};
|
|
2717
|
-
const de_History = (output, context) => {
|
|
2718
|
-
return {
|
|
2719
|
-
events: output.events != null ? de_HistoryEventList(output.events, context) : undefined,
|
|
2720
|
-
nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
|
|
2721
|
-
};
|
|
2722
|
-
};
|
|
2723
|
-
const de_HistoryEvent = (output, context) => {
|
|
2724
|
-
return {
|
|
2725
|
-
activityTaskCancelRequestedEventAttributes: output.activityTaskCancelRequestedEventAttributes != null
|
|
2726
|
-
? de_ActivityTaskCancelRequestedEventAttributes(output.activityTaskCancelRequestedEventAttributes, context)
|
|
2727
|
-
: undefined,
|
|
2728
|
-
activityTaskCanceledEventAttributes: output.activityTaskCanceledEventAttributes != null
|
|
2729
|
-
? de_ActivityTaskCanceledEventAttributes(output.activityTaskCanceledEventAttributes, context)
|
|
2730
|
-
: undefined,
|
|
2731
|
-
activityTaskCompletedEventAttributes: output.activityTaskCompletedEventAttributes != null
|
|
2732
|
-
? de_ActivityTaskCompletedEventAttributes(output.activityTaskCompletedEventAttributes, context)
|
|
2733
|
-
: undefined,
|
|
2734
|
-
activityTaskFailedEventAttributes: output.activityTaskFailedEventAttributes != null
|
|
2735
|
-
? de_ActivityTaskFailedEventAttributes(output.activityTaskFailedEventAttributes, context)
|
|
2736
|
-
: undefined,
|
|
2737
|
-
activityTaskScheduledEventAttributes: output.activityTaskScheduledEventAttributes != null
|
|
2738
|
-
? de_ActivityTaskScheduledEventAttributes(output.activityTaskScheduledEventAttributes, context)
|
|
2739
|
-
: undefined,
|
|
2740
|
-
activityTaskStartedEventAttributes: output.activityTaskStartedEventAttributes != null
|
|
2741
|
-
? de_ActivityTaskStartedEventAttributes(output.activityTaskStartedEventAttributes, context)
|
|
2742
|
-
: undefined,
|
|
2743
|
-
activityTaskTimedOutEventAttributes: output.activityTaskTimedOutEventAttributes != null
|
|
2744
|
-
? de_ActivityTaskTimedOutEventAttributes(output.activityTaskTimedOutEventAttributes, context)
|
|
2745
|
-
: undefined,
|
|
2746
|
-
cancelTimerFailedEventAttributes: output.cancelTimerFailedEventAttributes != null
|
|
2747
|
-
? de_CancelTimerFailedEventAttributes(output.cancelTimerFailedEventAttributes, context)
|
|
2748
|
-
: undefined,
|
|
2749
|
-
cancelWorkflowExecutionFailedEventAttributes: output.cancelWorkflowExecutionFailedEventAttributes != null
|
|
2750
|
-
? de_CancelWorkflowExecutionFailedEventAttributes(output.cancelWorkflowExecutionFailedEventAttributes, context)
|
|
2751
|
-
: undefined,
|
|
2752
|
-
childWorkflowExecutionCanceledEventAttributes: output.childWorkflowExecutionCanceledEventAttributes != null
|
|
2753
|
-
? de_ChildWorkflowExecutionCanceledEventAttributes(output.childWorkflowExecutionCanceledEventAttributes, context)
|
|
2754
|
-
: undefined,
|
|
2755
|
-
childWorkflowExecutionCompletedEventAttributes: output.childWorkflowExecutionCompletedEventAttributes != null
|
|
2756
|
-
? de_ChildWorkflowExecutionCompletedEventAttributes(output.childWorkflowExecutionCompletedEventAttributes, context)
|
|
2757
|
-
: undefined,
|
|
2758
|
-
childWorkflowExecutionFailedEventAttributes: output.childWorkflowExecutionFailedEventAttributes != null
|
|
2759
|
-
? de_ChildWorkflowExecutionFailedEventAttributes(output.childWorkflowExecutionFailedEventAttributes, context)
|
|
2760
|
-
: undefined,
|
|
2761
|
-
childWorkflowExecutionStartedEventAttributes: output.childWorkflowExecutionStartedEventAttributes != null
|
|
2762
|
-
? de_ChildWorkflowExecutionStartedEventAttributes(output.childWorkflowExecutionStartedEventAttributes, context)
|
|
2763
|
-
: undefined,
|
|
2764
|
-
childWorkflowExecutionTerminatedEventAttributes: output.childWorkflowExecutionTerminatedEventAttributes != null
|
|
2765
|
-
? de_ChildWorkflowExecutionTerminatedEventAttributes(output.childWorkflowExecutionTerminatedEventAttributes, context)
|
|
2766
|
-
: undefined,
|
|
2767
|
-
childWorkflowExecutionTimedOutEventAttributes: output.childWorkflowExecutionTimedOutEventAttributes != null
|
|
2768
|
-
? de_ChildWorkflowExecutionTimedOutEventAttributes(output.childWorkflowExecutionTimedOutEventAttributes, context)
|
|
2769
|
-
: undefined,
|
|
2770
|
-
completeWorkflowExecutionFailedEventAttributes: output.completeWorkflowExecutionFailedEventAttributes != null
|
|
2771
|
-
? de_CompleteWorkflowExecutionFailedEventAttributes(output.completeWorkflowExecutionFailedEventAttributes, context)
|
|
2772
|
-
: undefined,
|
|
2773
|
-
continueAsNewWorkflowExecutionFailedEventAttributes: output.continueAsNewWorkflowExecutionFailedEventAttributes != null
|
|
2774
|
-
? de_ContinueAsNewWorkflowExecutionFailedEventAttributes(output.continueAsNewWorkflowExecutionFailedEventAttributes, context)
|
|
2775
|
-
: undefined,
|
|
2776
|
-
decisionTaskCompletedEventAttributes: output.decisionTaskCompletedEventAttributes != null
|
|
2777
|
-
? de_DecisionTaskCompletedEventAttributes(output.decisionTaskCompletedEventAttributes, context)
|
|
2778
|
-
: undefined,
|
|
2779
|
-
decisionTaskScheduledEventAttributes: output.decisionTaskScheduledEventAttributes != null
|
|
2780
|
-
? de_DecisionTaskScheduledEventAttributes(output.decisionTaskScheduledEventAttributes, context)
|
|
2781
|
-
: undefined,
|
|
2782
|
-
decisionTaskStartedEventAttributes: output.decisionTaskStartedEventAttributes != null
|
|
2783
|
-
? de_DecisionTaskStartedEventAttributes(output.decisionTaskStartedEventAttributes, context)
|
|
2784
|
-
: undefined,
|
|
2785
|
-
decisionTaskTimedOutEventAttributes: output.decisionTaskTimedOutEventAttributes != null
|
|
2786
|
-
? de_DecisionTaskTimedOutEventAttributes(output.decisionTaskTimedOutEventAttributes, context)
|
|
2787
|
-
: undefined,
|
|
2788
|
-
eventId: (0, smithy_client_1.expectLong)(output.eventId),
|
|
2789
|
-
eventTimestamp: output.eventTimestamp != null
|
|
2790
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTimestamp)))
|
|
2791
|
-
: undefined,
|
|
2792
|
-
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
2793
|
-
externalWorkflowExecutionCancelRequestedEventAttributes: output.externalWorkflowExecutionCancelRequestedEventAttributes != null
|
|
2794
|
-
? de_ExternalWorkflowExecutionCancelRequestedEventAttributes(output.externalWorkflowExecutionCancelRequestedEventAttributes, context)
|
|
2795
|
-
: undefined,
|
|
2796
|
-
externalWorkflowExecutionSignaledEventAttributes: output.externalWorkflowExecutionSignaledEventAttributes != null
|
|
2797
|
-
? de_ExternalWorkflowExecutionSignaledEventAttributes(output.externalWorkflowExecutionSignaledEventAttributes, context)
|
|
2798
|
-
: undefined,
|
|
2799
|
-
failWorkflowExecutionFailedEventAttributes: output.failWorkflowExecutionFailedEventAttributes != null
|
|
2800
|
-
? de_FailWorkflowExecutionFailedEventAttributes(output.failWorkflowExecutionFailedEventAttributes, context)
|
|
2801
|
-
: undefined,
|
|
2802
|
-
lambdaFunctionCompletedEventAttributes: output.lambdaFunctionCompletedEventAttributes != null
|
|
2803
|
-
? de_LambdaFunctionCompletedEventAttributes(output.lambdaFunctionCompletedEventAttributes, context)
|
|
2804
|
-
: undefined,
|
|
2805
|
-
lambdaFunctionFailedEventAttributes: output.lambdaFunctionFailedEventAttributes != null
|
|
2806
|
-
? de_LambdaFunctionFailedEventAttributes(output.lambdaFunctionFailedEventAttributes, context)
|
|
2807
|
-
: undefined,
|
|
2808
|
-
lambdaFunctionScheduledEventAttributes: output.lambdaFunctionScheduledEventAttributes != null
|
|
2809
|
-
? de_LambdaFunctionScheduledEventAttributes(output.lambdaFunctionScheduledEventAttributes, context)
|
|
2810
|
-
: undefined,
|
|
2811
|
-
lambdaFunctionStartedEventAttributes: output.lambdaFunctionStartedEventAttributes != null
|
|
2812
|
-
? de_LambdaFunctionStartedEventAttributes(output.lambdaFunctionStartedEventAttributes, context)
|
|
2813
|
-
: undefined,
|
|
2814
|
-
lambdaFunctionTimedOutEventAttributes: output.lambdaFunctionTimedOutEventAttributes != null
|
|
2815
|
-
? de_LambdaFunctionTimedOutEventAttributes(output.lambdaFunctionTimedOutEventAttributes, context)
|
|
2816
|
-
: undefined,
|
|
2817
|
-
markerRecordedEventAttributes: output.markerRecordedEventAttributes != null
|
|
2818
|
-
? de_MarkerRecordedEventAttributes(output.markerRecordedEventAttributes, context)
|
|
2819
|
-
: undefined,
|
|
2820
|
-
recordMarkerFailedEventAttributes: output.recordMarkerFailedEventAttributes != null
|
|
2821
|
-
? de_RecordMarkerFailedEventAttributes(output.recordMarkerFailedEventAttributes, context)
|
|
2822
|
-
: undefined,
|
|
2823
|
-
requestCancelActivityTaskFailedEventAttributes: output.requestCancelActivityTaskFailedEventAttributes != null
|
|
2824
|
-
? de_RequestCancelActivityTaskFailedEventAttributes(output.requestCancelActivityTaskFailedEventAttributes, context)
|
|
2825
|
-
: undefined,
|
|
2826
|
-
requestCancelExternalWorkflowExecutionFailedEventAttributes: output.requestCancelExternalWorkflowExecutionFailedEventAttributes != null
|
|
2827
|
-
? de_RequestCancelExternalWorkflowExecutionFailedEventAttributes(output.requestCancelExternalWorkflowExecutionFailedEventAttributes, context)
|
|
2828
|
-
: undefined,
|
|
2829
|
-
requestCancelExternalWorkflowExecutionInitiatedEventAttributes: output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes != null
|
|
2830
|
-
? de_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes(output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes, context)
|
|
2831
|
-
: undefined,
|
|
2832
|
-
scheduleActivityTaskFailedEventAttributes: output.scheduleActivityTaskFailedEventAttributes != null
|
|
2833
|
-
? de_ScheduleActivityTaskFailedEventAttributes(output.scheduleActivityTaskFailedEventAttributes, context)
|
|
2834
|
-
: undefined,
|
|
2835
|
-
scheduleLambdaFunctionFailedEventAttributes: output.scheduleLambdaFunctionFailedEventAttributes != null
|
|
2836
|
-
? de_ScheduleLambdaFunctionFailedEventAttributes(output.scheduleLambdaFunctionFailedEventAttributes, context)
|
|
2837
|
-
: undefined,
|
|
2838
|
-
signalExternalWorkflowExecutionFailedEventAttributes: output.signalExternalWorkflowExecutionFailedEventAttributes != null
|
|
2839
|
-
? de_SignalExternalWorkflowExecutionFailedEventAttributes(output.signalExternalWorkflowExecutionFailedEventAttributes, context)
|
|
2840
|
-
: undefined,
|
|
2841
|
-
signalExternalWorkflowExecutionInitiatedEventAttributes: output.signalExternalWorkflowExecutionInitiatedEventAttributes != null
|
|
2842
|
-
? de_SignalExternalWorkflowExecutionInitiatedEventAttributes(output.signalExternalWorkflowExecutionInitiatedEventAttributes, context)
|
|
2843
|
-
: undefined,
|
|
2844
|
-
startChildWorkflowExecutionFailedEventAttributes: output.startChildWorkflowExecutionFailedEventAttributes != null
|
|
2845
|
-
? de_StartChildWorkflowExecutionFailedEventAttributes(output.startChildWorkflowExecutionFailedEventAttributes, context)
|
|
2846
|
-
: undefined,
|
|
2847
|
-
startChildWorkflowExecutionInitiatedEventAttributes: output.startChildWorkflowExecutionInitiatedEventAttributes != null
|
|
2848
|
-
? de_StartChildWorkflowExecutionInitiatedEventAttributes(output.startChildWorkflowExecutionInitiatedEventAttributes, context)
|
|
2849
|
-
: undefined,
|
|
2850
|
-
startLambdaFunctionFailedEventAttributes: output.startLambdaFunctionFailedEventAttributes != null
|
|
2851
|
-
? de_StartLambdaFunctionFailedEventAttributes(output.startLambdaFunctionFailedEventAttributes, context)
|
|
2852
|
-
: undefined,
|
|
2853
|
-
startTimerFailedEventAttributes: output.startTimerFailedEventAttributes != null
|
|
2854
|
-
? de_StartTimerFailedEventAttributes(output.startTimerFailedEventAttributes, context)
|
|
2855
|
-
: undefined,
|
|
2856
|
-
timerCanceledEventAttributes: output.timerCanceledEventAttributes != null
|
|
2857
|
-
? de_TimerCanceledEventAttributes(output.timerCanceledEventAttributes, context)
|
|
2858
|
-
: undefined,
|
|
2859
|
-
timerFiredEventAttributes: output.timerFiredEventAttributes != null
|
|
2860
|
-
? de_TimerFiredEventAttributes(output.timerFiredEventAttributes, context)
|
|
2861
|
-
: undefined,
|
|
2862
|
-
timerStartedEventAttributes: output.timerStartedEventAttributes != null
|
|
2863
|
-
? de_TimerStartedEventAttributes(output.timerStartedEventAttributes, context)
|
|
2864
|
-
: undefined,
|
|
2865
|
-
workflowExecutionCancelRequestedEventAttributes: output.workflowExecutionCancelRequestedEventAttributes != null
|
|
2866
|
-
? de_WorkflowExecutionCancelRequestedEventAttributes(output.workflowExecutionCancelRequestedEventAttributes, context)
|
|
2867
|
-
: undefined,
|
|
2868
|
-
workflowExecutionCanceledEventAttributes: output.workflowExecutionCanceledEventAttributes != null
|
|
2869
|
-
? de_WorkflowExecutionCanceledEventAttributes(output.workflowExecutionCanceledEventAttributes, context)
|
|
2870
|
-
: undefined,
|
|
2871
|
-
workflowExecutionCompletedEventAttributes: output.workflowExecutionCompletedEventAttributes != null
|
|
2872
|
-
? de_WorkflowExecutionCompletedEventAttributes(output.workflowExecutionCompletedEventAttributes, context)
|
|
2873
|
-
: undefined,
|
|
2874
|
-
workflowExecutionContinuedAsNewEventAttributes: output.workflowExecutionContinuedAsNewEventAttributes != null
|
|
2875
|
-
? de_WorkflowExecutionContinuedAsNewEventAttributes(output.workflowExecutionContinuedAsNewEventAttributes, context)
|
|
2876
|
-
: undefined,
|
|
2877
|
-
workflowExecutionFailedEventAttributes: output.workflowExecutionFailedEventAttributes != null
|
|
2878
|
-
? de_WorkflowExecutionFailedEventAttributes(output.workflowExecutionFailedEventAttributes, context)
|
|
2879
|
-
: undefined,
|
|
2880
|
-
workflowExecutionSignaledEventAttributes: output.workflowExecutionSignaledEventAttributes != null
|
|
2881
|
-
? de_WorkflowExecutionSignaledEventAttributes(output.workflowExecutionSignaledEventAttributes, context)
|
|
2882
|
-
: undefined,
|
|
2883
|
-
workflowExecutionStartedEventAttributes: output.workflowExecutionStartedEventAttributes != null
|
|
2884
|
-
? de_WorkflowExecutionStartedEventAttributes(output.workflowExecutionStartedEventAttributes, context)
|
|
2885
|
-
: undefined,
|
|
2886
|
-
workflowExecutionTerminatedEventAttributes: output.workflowExecutionTerminatedEventAttributes != null
|
|
2887
|
-
? de_WorkflowExecutionTerminatedEventAttributes(output.workflowExecutionTerminatedEventAttributes, context)
|
|
2888
|
-
: undefined,
|
|
2889
|
-
workflowExecutionTimedOutEventAttributes: output.workflowExecutionTimedOutEventAttributes != null
|
|
2890
|
-
? de_WorkflowExecutionTimedOutEventAttributes(output.workflowExecutionTimedOutEventAttributes, context)
|
|
2891
|
-
: undefined,
|
|
2892
|
-
};
|
|
2893
|
-
};
|
|
2894
|
-
const de_HistoryEventList = (output, context) => {
|
|
2895
|
-
const retVal = (output || [])
|
|
2896
|
-
.filter((e) => e != null)
|
|
2897
|
-
.map((entry) => {
|
|
2898
|
-
if (entry === null) {
|
|
2899
|
-
return null;
|
|
2900
|
-
}
|
|
2901
|
-
return de_HistoryEvent(entry, context);
|
|
2902
|
-
});
|
|
2903
|
-
return retVal;
|
|
2904
|
-
};
|
|
2905
|
-
const de_LambdaFunctionCompletedEventAttributes = (output, context) => {
|
|
2906
|
-
return {
|
|
2907
|
-
result: (0, smithy_client_1.expectString)(output.result),
|
|
2908
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2909
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2910
|
-
};
|
|
2911
|
-
};
|
|
2912
|
-
const de_LambdaFunctionFailedEventAttributes = (output, context) => {
|
|
2913
|
-
return {
|
|
2914
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2915
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2916
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2917
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2918
|
-
};
|
|
2919
|
-
};
|
|
2920
|
-
const de_LambdaFunctionScheduledEventAttributes = (output, context) => {
|
|
2921
|
-
return {
|
|
2922
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
2923
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2924
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2925
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
2926
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2927
|
-
startToCloseTimeout: (0, smithy_client_1.expectString)(output.startToCloseTimeout),
|
|
2928
|
-
};
|
|
2929
|
-
};
|
|
2930
|
-
const de_LambdaFunctionStartedEventAttributes = (output, context) => {
|
|
2931
|
-
return {
|
|
2932
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2933
|
-
};
|
|
2934
|
-
};
|
|
2935
|
-
const de_LambdaFunctionTimedOutEventAttributes = (output, context) => {
|
|
2936
|
-
return {
|
|
2937
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
2938
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
2939
|
-
timeoutType: (0, smithy_client_1.expectString)(output.timeoutType),
|
|
2940
|
-
};
|
|
2941
|
-
};
|
|
2942
|
-
const de_LimitExceededFault = (output, context) => {
|
|
2943
|
-
return {
|
|
2944
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2945
|
-
};
|
|
2946
|
-
};
|
|
2947
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
2948
|
-
return {
|
|
2949
|
-
tags: output.tags != null ? de_ResourceTagList(output.tags, context) : undefined,
|
|
2950
|
-
};
|
|
2951
|
-
};
|
|
2952
|
-
const de_MarkerRecordedEventAttributes = (output, context) => {
|
|
2953
|
-
return {
|
|
2954
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2955
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2956
|
-
markerName: (0, smithy_client_1.expectString)(output.markerName),
|
|
2957
|
-
};
|
|
2958
|
-
};
|
|
2959
|
-
const de_OperationNotPermittedFault = (output, context) => {
|
|
2960
|
-
return {
|
|
2961
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2962
|
-
};
|
|
2963
|
-
};
|
|
2964
|
-
const de_PendingTaskCount = (output, context) => {
|
|
2965
|
-
return {
|
|
2966
|
-
count: (0, smithy_client_1.expectInt32)(output.count),
|
|
2967
|
-
truncated: (0, smithy_client_1.expectBoolean)(output.truncated),
|
|
2968
|
-
};
|
|
2969
|
-
};
|
|
2970
|
-
const de_RecordMarkerFailedEventAttributes = (output, context) => {
|
|
2971
|
-
return {
|
|
2972
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2973
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2974
|
-
markerName: (0, smithy_client_1.expectString)(output.markerName),
|
|
2975
|
-
};
|
|
2976
|
-
};
|
|
2977
|
-
const de_RequestCancelActivityTaskFailedEventAttributes = (output, context) => {
|
|
2978
|
-
return {
|
|
2979
|
-
activityId: (0, smithy_client_1.expectString)(output.activityId),
|
|
2980
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2981
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2982
|
-
};
|
|
2983
|
-
};
|
|
2984
|
-
const de_RequestCancelExternalWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
2985
|
-
return {
|
|
2986
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2987
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
2988
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2989
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
2990
|
-
runId: (0, smithy_client_1.expectString)(output.runId),
|
|
2991
|
-
workflowId: (0, smithy_client_1.expectString)(output.workflowId),
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
const de_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = (output, context) => {
|
|
2995
|
-
return {
|
|
2996
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
2997
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
2998
|
-
runId: (0, smithy_client_1.expectString)(output.runId),
|
|
2999
|
-
workflowId: (0, smithy_client_1.expectString)(output.workflowId),
|
|
3000
|
-
};
|
|
3001
|
-
};
|
|
3002
|
-
const de_ResourceTag = (output, context) => {
|
|
3003
|
-
return {
|
|
3004
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
3005
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
3006
|
-
};
|
|
3007
|
-
};
|
|
3008
|
-
const de_ResourceTagList = (output, context) => {
|
|
3009
|
-
const retVal = (output || [])
|
|
3010
|
-
.filter((e) => e != null)
|
|
3011
|
-
.map((entry) => {
|
|
3012
|
-
if (entry === null) {
|
|
3013
|
-
return null;
|
|
3014
|
-
}
|
|
3015
|
-
return de_ResourceTag(entry, context);
|
|
3016
|
-
});
|
|
3017
|
-
return retVal;
|
|
3018
|
-
};
|
|
3019
|
-
const de_Run = (output, context) => {
|
|
3020
|
-
return {
|
|
3021
|
-
runId: (0, smithy_client_1.expectString)(output.runId),
|
|
3022
|
-
};
|
|
3023
|
-
};
|
|
3024
|
-
const de_ScheduleActivityTaskFailedEventAttributes = (output, context) => {
|
|
3025
|
-
return {
|
|
3026
|
-
activityId: (0, smithy_client_1.expectString)(output.activityId),
|
|
3027
|
-
activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
|
|
3028
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3029
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3030
|
-
};
|
|
3031
|
-
};
|
|
3032
|
-
const de_ScheduleLambdaFunctionFailedEventAttributes = (output, context) => {
|
|
3033
|
-
return {
|
|
3034
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3035
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3036
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
3037
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3038
|
-
};
|
|
3039
|
-
};
|
|
3040
|
-
const de_SignalExternalWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
3041
|
-
return {
|
|
3042
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3043
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
3044
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3045
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
3046
|
-
runId: (0, smithy_client_1.expectString)(output.runId),
|
|
3047
|
-
workflowId: (0, smithy_client_1.expectString)(output.workflowId),
|
|
3048
|
-
};
|
|
3049
|
-
};
|
|
3050
|
-
const de_SignalExternalWorkflowExecutionInitiatedEventAttributes = (output, context) => {
|
|
3051
|
-
return {
|
|
3052
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
3053
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3054
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
3055
|
-
runId: (0, smithy_client_1.expectString)(output.runId),
|
|
3056
|
-
signalName: (0, smithy_client_1.expectString)(output.signalName),
|
|
3057
|
-
workflowId: (0, smithy_client_1.expectString)(output.workflowId),
|
|
3058
|
-
};
|
|
3059
|
-
};
|
|
3060
|
-
const de_StartChildWorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
3061
|
-
return {
|
|
3062
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3063
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
3064
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3065
|
-
initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
|
|
3066
|
-
workflowId: (0, smithy_client_1.expectString)(output.workflowId),
|
|
3067
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
3068
|
-
};
|
|
3069
|
-
};
|
|
3070
|
-
const de_StartChildWorkflowExecutionInitiatedEventAttributes = (output, context) => {
|
|
3071
|
-
return {
|
|
3072
|
-
childPolicy: (0, smithy_client_1.expectString)(output.childPolicy),
|
|
3073
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
3074
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3075
|
-
executionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.executionStartToCloseTimeout),
|
|
3076
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
3077
|
-
lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
|
|
3078
|
-
tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
|
|
3079
|
-
taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
|
|
3080
|
-
taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
|
|
3081
|
-
taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
|
|
3082
|
-
workflowId: (0, smithy_client_1.expectString)(output.workflowId),
|
|
3083
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
3084
|
-
};
|
|
3085
|
-
};
|
|
3086
|
-
const de_StartLambdaFunctionFailedEventAttributes = (output, context) => {
|
|
3087
|
-
return {
|
|
3088
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3089
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3090
|
-
scheduledEventId: (0, smithy_client_1.expectLong)(output.scheduledEventId),
|
|
3091
|
-
};
|
|
3092
|
-
};
|
|
3093
|
-
const de_StartTimerFailedEventAttributes = (output, context) => {
|
|
3094
|
-
return {
|
|
3095
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3096
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3097
|
-
timerId: (0, smithy_client_1.expectString)(output.timerId),
|
|
3098
|
-
};
|
|
3099
|
-
};
|
|
3100
|
-
const de_TagList = (output, context) => {
|
|
3101
|
-
const retVal = (output || [])
|
|
3102
|
-
.filter((e) => e != null)
|
|
3103
|
-
.map((entry) => {
|
|
3104
|
-
if (entry === null) {
|
|
3105
|
-
return null;
|
|
3106
|
-
}
|
|
3107
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3108
|
-
});
|
|
3109
|
-
return retVal;
|
|
3110
|
-
};
|
|
3111
|
-
const de_TaskList = (output, context) => {
|
|
3112
|
-
return {
|
|
3113
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3114
|
-
};
|
|
3115
|
-
};
|
|
3116
|
-
const de_TimerCanceledEventAttributes = (output, context) => {
|
|
3117
|
-
return {
|
|
3118
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3119
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
3120
|
-
timerId: (0, smithy_client_1.expectString)(output.timerId),
|
|
3121
|
-
};
|
|
3122
|
-
};
|
|
3123
|
-
const de_TimerFiredEventAttributes = (output, context) => {
|
|
3124
|
-
return {
|
|
3125
|
-
startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
|
|
3126
|
-
timerId: (0, smithy_client_1.expectString)(output.timerId),
|
|
3127
|
-
};
|
|
3128
|
-
};
|
|
3129
|
-
const de_TimerStartedEventAttributes = (output, context) => {
|
|
3130
|
-
return {
|
|
3131
|
-
control: (0, smithy_client_1.expectString)(output.control),
|
|
3132
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3133
|
-
startToFireTimeout: (0, smithy_client_1.expectString)(output.startToFireTimeout),
|
|
3134
|
-
timerId: (0, smithy_client_1.expectString)(output.timerId),
|
|
3135
|
-
};
|
|
3136
|
-
};
|
|
3137
|
-
const de_TooManyTagsFault = (output, context) => {
|
|
3138
|
-
return {
|
|
3139
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3140
|
-
};
|
|
3141
|
-
};
|
|
3142
|
-
const de_TypeAlreadyExistsFault = (output, context) => {
|
|
3143
|
-
return {
|
|
3144
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3145
|
-
};
|
|
3146
|
-
};
|
|
3147
|
-
const de_TypeDeprecatedFault = (output, context) => {
|
|
3148
|
-
return {
|
|
3149
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3150
|
-
};
|
|
3151
|
-
};
|
|
3152
|
-
const de_UnknownResourceFault = (output, context) => {
|
|
3153
|
-
return {
|
|
3154
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3155
|
-
};
|
|
3156
|
-
};
|
|
3157
|
-
const de_WorkflowExecution = (output, context) => {
|
|
3158
|
-
return {
|
|
3159
|
-
runId: (0, smithy_client_1.expectString)(output.runId),
|
|
3160
|
-
workflowId: (0, smithy_client_1.expectString)(output.workflowId),
|
|
3161
|
-
};
|
|
3162
|
-
};
|
|
3163
|
-
const de_WorkflowExecutionAlreadyStartedFault = (output, context) => {
|
|
3164
|
-
return {
|
|
3165
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3166
|
-
};
|
|
3167
|
-
};
|
|
3168
|
-
const de_WorkflowExecutionCanceledEventAttributes = (output, context) => {
|
|
3169
|
-
return {
|
|
3170
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3171
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
3172
|
-
};
|
|
3173
|
-
};
|
|
3174
|
-
const de_WorkflowExecutionCancelRequestedEventAttributes = (output, context) => {
|
|
3175
|
-
return {
|
|
3176
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3177
|
-
externalInitiatedEventId: (0, smithy_client_1.expectLong)(output.externalInitiatedEventId),
|
|
3178
|
-
externalWorkflowExecution: output.externalWorkflowExecution != null
|
|
3179
|
-
? de_WorkflowExecution(output.externalWorkflowExecution, context)
|
|
3180
|
-
: undefined,
|
|
3181
|
-
};
|
|
3182
|
-
};
|
|
3183
|
-
const de_WorkflowExecutionCompletedEventAttributes = (output, context) => {
|
|
3184
|
-
return {
|
|
3185
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3186
|
-
result: (0, smithy_client_1.expectString)(output.result),
|
|
3187
|
-
};
|
|
3188
|
-
};
|
|
3189
|
-
const de_WorkflowExecutionConfiguration = (output, context) => {
|
|
3190
|
-
return {
|
|
3191
|
-
childPolicy: (0, smithy_client_1.expectString)(output.childPolicy),
|
|
3192
|
-
executionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.executionStartToCloseTimeout),
|
|
3193
|
-
lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
|
|
3194
|
-
taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
|
|
3195
|
-
taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
|
|
3196
|
-
taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
|
|
3197
|
-
};
|
|
3198
|
-
};
|
|
3199
|
-
const de_WorkflowExecutionContinuedAsNewEventAttributes = (output, context) => {
|
|
3200
|
-
return {
|
|
3201
|
-
childPolicy: (0, smithy_client_1.expectString)(output.childPolicy),
|
|
3202
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3203
|
-
executionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.executionStartToCloseTimeout),
|
|
3204
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
3205
|
-
lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
|
|
3206
|
-
newExecutionRunId: (0, smithy_client_1.expectString)(output.newExecutionRunId),
|
|
3207
|
-
tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
|
|
3208
|
-
taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
|
|
3209
|
-
taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
|
|
3210
|
-
taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
|
|
3211
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
3212
|
-
};
|
|
3213
|
-
};
|
|
3214
|
-
const de_WorkflowExecutionCount = (output, context) => {
|
|
3215
|
-
return {
|
|
3216
|
-
count: (0, smithy_client_1.expectInt32)(output.count),
|
|
3217
|
-
truncated: (0, smithy_client_1.expectBoolean)(output.truncated),
|
|
3218
|
-
};
|
|
3219
|
-
};
|
|
3220
|
-
const de_WorkflowExecutionDetail = (output, context) => {
|
|
3221
|
-
return {
|
|
3222
|
-
executionConfiguration: output.executionConfiguration != null
|
|
3223
|
-
? de_WorkflowExecutionConfiguration(output.executionConfiguration, context)
|
|
3224
|
-
: undefined,
|
|
3225
|
-
executionInfo: output.executionInfo != null ? de_WorkflowExecutionInfo(output.executionInfo, context) : undefined,
|
|
3226
|
-
latestActivityTaskTimestamp: output.latestActivityTaskTimestamp != null
|
|
3227
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.latestActivityTaskTimestamp)))
|
|
3228
|
-
: undefined,
|
|
3229
|
-
latestExecutionContext: (0, smithy_client_1.expectString)(output.latestExecutionContext),
|
|
3230
|
-
openCounts: output.openCounts != null ? de_WorkflowExecutionOpenCounts(output.openCounts, context) : undefined,
|
|
3231
|
-
};
|
|
3232
|
-
};
|
|
3233
|
-
const de_WorkflowExecutionFailedEventAttributes = (output, context) => {
|
|
3234
|
-
return {
|
|
3235
|
-
decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
|
|
3236
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
3237
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
3238
|
-
};
|
|
3239
|
-
};
|
|
3240
|
-
const de_WorkflowExecutionInfo = (output, context) => {
|
|
3241
|
-
return {
|
|
3242
|
-
cancelRequested: (0, smithy_client_1.expectBoolean)(output.cancelRequested),
|
|
3243
|
-
closeStatus: (0, smithy_client_1.expectString)(output.closeStatus),
|
|
3244
|
-
closeTimestamp: output.closeTimestamp != null
|
|
3245
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.closeTimestamp)))
|
|
3246
|
-
: undefined,
|
|
3247
|
-
execution: output.execution != null ? de_WorkflowExecution(output.execution, context) : undefined,
|
|
3248
|
-
executionStatus: (0, smithy_client_1.expectString)(output.executionStatus),
|
|
3249
|
-
parent: output.parent != null ? de_WorkflowExecution(output.parent, context) : undefined,
|
|
3250
|
-
startTimestamp: output.startTimestamp != null
|
|
3251
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTimestamp)))
|
|
3252
|
-
: undefined,
|
|
3253
|
-
tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
|
|
3254
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
3255
|
-
};
|
|
3256
|
-
};
|
|
3257
|
-
const de_WorkflowExecutionInfoList = (output, context) => {
|
|
3258
|
-
const retVal = (output || [])
|
|
3259
|
-
.filter((e) => e != null)
|
|
3260
|
-
.map((entry) => {
|
|
3261
|
-
if (entry === null) {
|
|
3262
|
-
return null;
|
|
3263
|
-
}
|
|
3264
|
-
return de_WorkflowExecutionInfo(entry, context);
|
|
3265
|
-
});
|
|
3266
|
-
return retVal;
|
|
3267
|
-
};
|
|
3268
|
-
const de_WorkflowExecutionInfos = (output, context) => {
|
|
3269
|
-
return {
|
|
3270
|
-
executionInfos: output.executionInfos != null ? de_WorkflowExecutionInfoList(output.executionInfos, context) : undefined,
|
|
3271
|
-
nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
|
|
3272
|
-
};
|
|
3273
|
-
};
|
|
3274
|
-
const de_WorkflowExecutionOpenCounts = (output, context) => {
|
|
3275
|
-
return {
|
|
3276
|
-
openActivityTasks: (0, smithy_client_1.expectInt32)(output.openActivityTasks),
|
|
3277
|
-
openChildWorkflowExecutions: (0, smithy_client_1.expectInt32)(output.openChildWorkflowExecutions),
|
|
3278
|
-
openDecisionTasks: (0, smithy_client_1.expectInt32)(output.openDecisionTasks),
|
|
3279
|
-
openLambdaFunctions: (0, smithy_client_1.expectInt32)(output.openLambdaFunctions),
|
|
3280
|
-
openTimers: (0, smithy_client_1.expectInt32)(output.openTimers),
|
|
3281
|
-
};
|
|
3282
|
-
};
|
|
3283
|
-
const de_WorkflowExecutionSignaledEventAttributes = (output, context) => {
|
|
3284
|
-
return {
|
|
3285
|
-
externalInitiatedEventId: (0, smithy_client_1.expectLong)(output.externalInitiatedEventId),
|
|
3286
|
-
externalWorkflowExecution: output.externalWorkflowExecution != null
|
|
3287
|
-
? de_WorkflowExecution(output.externalWorkflowExecution, context)
|
|
3288
|
-
: undefined,
|
|
3289
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
3290
|
-
signalName: (0, smithy_client_1.expectString)(output.signalName),
|
|
3291
|
-
};
|
|
3292
|
-
};
|
|
3293
|
-
const de_WorkflowExecutionStartedEventAttributes = (output, context) => {
|
|
3294
|
-
return {
|
|
3295
|
-
childPolicy: (0, smithy_client_1.expectString)(output.childPolicy),
|
|
3296
|
-
continuedExecutionRunId: (0, smithy_client_1.expectString)(output.continuedExecutionRunId),
|
|
3297
|
-
executionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.executionStartToCloseTimeout),
|
|
3298
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
3299
|
-
lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
|
|
3300
|
-
parentInitiatedEventId: (0, smithy_client_1.expectLong)(output.parentInitiatedEventId),
|
|
3301
|
-
parentWorkflowExecution: output.parentWorkflowExecution != null
|
|
3302
|
-
? de_WorkflowExecution(output.parentWorkflowExecution, context)
|
|
3303
|
-
: undefined,
|
|
3304
|
-
tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
|
|
3305
|
-
taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
|
|
3306
|
-
taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
|
|
3307
|
-
taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
|
|
3308
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
3309
|
-
};
|
|
3310
|
-
};
|
|
3311
|
-
const de_WorkflowExecutionTerminatedEventAttributes = (output, context) => {
|
|
3312
|
-
return {
|
|
3313
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
3314
|
-
childPolicy: (0, smithy_client_1.expectString)(output.childPolicy),
|
|
3315
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
3316
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
3317
|
-
};
|
|
3318
|
-
};
|
|
3319
|
-
const de_WorkflowExecutionTimedOutEventAttributes = (output, context) => {
|
|
3320
|
-
return {
|
|
3321
|
-
childPolicy: (0, smithy_client_1.expectString)(output.childPolicy),
|
|
3322
|
-
timeoutType: (0, smithy_client_1.expectString)(output.timeoutType),
|
|
3323
|
-
};
|
|
3324
|
-
};
|
|
3325
|
-
const de_WorkflowType = (output, context) => {
|
|
3326
|
-
return {
|
|
3327
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3328
|
-
version: (0, smithy_client_1.expectString)(output.version),
|
|
3329
|
-
};
|
|
3330
|
-
};
|
|
3331
|
-
const de_WorkflowTypeConfiguration = (output, context) => {
|
|
3332
|
-
return {
|
|
3333
|
-
defaultChildPolicy: (0, smithy_client_1.expectString)(output.defaultChildPolicy),
|
|
3334
|
-
defaultExecutionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.defaultExecutionStartToCloseTimeout),
|
|
3335
|
-
defaultLambdaRole: (0, smithy_client_1.expectString)(output.defaultLambdaRole),
|
|
3336
|
-
defaultTaskList: output.defaultTaskList != null ? de_TaskList(output.defaultTaskList, context) : undefined,
|
|
3337
|
-
defaultTaskPriority: (0, smithy_client_1.expectString)(output.defaultTaskPriority),
|
|
3338
|
-
defaultTaskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.defaultTaskStartToCloseTimeout),
|
|
3339
|
-
};
|
|
3340
|
-
};
|
|
3341
|
-
const de_WorkflowTypeDetail = (output, context) => {
|
|
3342
|
-
return {
|
|
3343
|
-
configuration: output.configuration != null ? de_WorkflowTypeConfiguration(output.configuration, context) : undefined,
|
|
3344
|
-
typeInfo: output.typeInfo != null ? de_WorkflowTypeInfo(output.typeInfo, context) : undefined,
|
|
3345
|
-
};
|
|
3346
|
-
};
|
|
3347
|
-
const de_WorkflowTypeInfo = (output, context) => {
|
|
3348
|
-
return {
|
|
3349
|
-
creationDate: output.creationDate != null
|
|
3350
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
3351
|
-
: undefined,
|
|
3352
|
-
deprecationDate: output.deprecationDate != null
|
|
3353
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deprecationDate)))
|
|
3354
|
-
: undefined,
|
|
3355
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
3356
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3357
|
-
workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
|
|
3358
|
-
};
|
|
3359
|
-
};
|
|
3360
|
-
const de_WorkflowTypeInfoList = (output, context) => {
|
|
3361
|
-
const retVal = (output || [])
|
|
3362
|
-
.filter((e) => e != null)
|
|
3363
|
-
.map((entry) => {
|
|
3364
|
-
if (entry === null) {
|
|
3365
|
-
return null;
|
|
3366
|
-
}
|
|
3367
|
-
return de_WorkflowTypeInfo(entry, context);
|
|
3368
|
-
});
|
|
3369
|
-
return retVal;
|
|
3370
|
-
};
|
|
3371
|
-
const de_WorkflowTypeInfos = (output, context) => {
|
|
3372
|
-
return {
|
|
3373
|
-
nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
|
|
3374
|
-
typeInfos: output.typeInfos != null ? de_WorkflowTypeInfoList(output.typeInfos, context) : undefined,
|
|
3375
|
-
};
|
|
3376
|
-
};
|
|
3377
|
-
const deserializeMetadata = (output) => ({
|
|
3378
|
-
httpStatusCode: output.statusCode,
|
|
3379
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3380
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3381
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3382
|
-
});
|
|
3383
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3384
|
-
if (streamBody instanceof Uint8Array) {
|
|
3385
|
-
return Promise.resolve(streamBody);
|
|
3386
|
-
}
|
|
3387
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3388
|
-
};
|
|
3389
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3390
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3391
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3392
|
-
const contents = {
|
|
3393
|
-
protocol,
|
|
3394
|
-
hostname,
|
|
3395
|
-
port,
|
|
3396
|
-
method: "POST",
|
|
3397
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3398
|
-
headers,
|
|
3399
|
-
};
|
|
3400
|
-
if (resolvedHostname !== undefined) {
|
|
3401
|
-
contents.hostname = resolvedHostname;
|
|
3402
|
-
}
|
|
3403
|
-
if (body !== undefined) {
|
|
3404
|
-
contents.body = body;
|
|
3405
|
-
}
|
|
3406
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3407
|
-
};
|
|
1968
|
+
}
|
|
3408
1969
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3409
1970
|
if (encoded.length) {
|
|
3410
1971
|
return JSON.parse(encoded);
|