@aws-sdk/client-sfn 3.186.0 → 3.190.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist-es/SFN.js +94 -101
- package/dist-es/SFNClient.js +22 -28
- package/dist-es/commands/CreateActivityCommand.js +21 -28
- package/dist-es/commands/CreateStateMachineCommand.js +21 -28
- package/dist-es/commands/DeleteActivityCommand.js +21 -28
- package/dist-es/commands/DeleteStateMachineCommand.js +21 -28
- package/dist-es/commands/DescribeActivityCommand.js +21 -28
- package/dist-es/commands/DescribeExecutionCommand.js +21 -28
- package/dist-es/commands/DescribeStateMachineCommand.js +21 -28
- package/dist-es/commands/DescribeStateMachineForExecutionCommand.js +21 -28
- package/dist-es/commands/GetActivityTaskCommand.js +21 -28
- package/dist-es/commands/GetExecutionHistoryCommand.js +21 -28
- package/dist-es/commands/ListActivitiesCommand.js +21 -28
- package/dist-es/commands/ListExecutionsCommand.js +21 -28
- package/dist-es/commands/ListStateMachinesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/SendTaskFailureCommand.js +21 -28
- package/dist-es/commands/SendTaskHeartbeatCommand.js +21 -28
- package/dist-es/commands/SendTaskSuccessCommand.js +21 -28
- package/dist-es/commands/StartExecutionCommand.js +21 -28
- package/dist-es/commands/StartSyncExecutionCommand.js +21 -28
- package/dist-es/commands/StopExecutionCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateStateMachineCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SFNServiceException.js +5 -10
- package/dist-es/models/models_0.js +660 -404
- package/dist-es/pagination/GetExecutionHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListActivitiesPaginator.js +25 -68
- package/dist-es/pagination/ListExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListStateMachinesPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +1656 -2103
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,2003 +1,1579 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, InvalidArn, InvalidDefinition, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, MissingRequiredParameter, ResourceNotFound, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, } from "../models/models_0";
|
|
5
4
|
import { SFNServiceException as __BaseException } from "../models/SFNServiceException";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
});
|
|
181
|
-
}); };
|
|
182
|
-
export var serializeAws_json1_0SendTaskSuccessCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
-
var headers, body;
|
|
184
|
-
return __generator(this, function (_a) {
|
|
185
|
-
headers = {
|
|
186
|
-
"content-type": "application/x-amz-json-1.0",
|
|
187
|
-
"x-amz-target": "AWSStepFunctions.SendTaskSuccess",
|
|
188
|
-
};
|
|
189
|
-
body = JSON.stringify(serializeAws_json1_0SendTaskSuccessInput(input, context));
|
|
190
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
|
-
});
|
|
192
|
-
}); };
|
|
193
|
-
export var serializeAws_json1_0StartExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
-
var headers, body;
|
|
195
|
-
return __generator(this, function (_a) {
|
|
196
|
-
headers = {
|
|
197
|
-
"content-type": "application/x-amz-json-1.0",
|
|
198
|
-
"x-amz-target": "AWSStepFunctions.StartExecution",
|
|
199
|
-
};
|
|
200
|
-
body = JSON.stringify(serializeAws_json1_0StartExecutionInput(input, context));
|
|
201
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
|
-
});
|
|
203
|
-
}); };
|
|
204
|
-
export var serializeAws_json1_0StartSyncExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
-
var headers, body, resolvedHostname;
|
|
206
|
-
return __generator(this, function (_a) {
|
|
207
|
-
switch (_a.label) {
|
|
208
|
-
case 0:
|
|
209
|
-
headers = {
|
|
210
|
-
"content-type": "application/x-amz-json-1.0",
|
|
211
|
-
"x-amz-target": "AWSStepFunctions.StartSyncExecution",
|
|
212
|
-
};
|
|
213
|
-
body = JSON.stringify(serializeAws_json1_0StartSyncExecutionInput(input, context));
|
|
214
|
-
return [4, context.endpoint()];
|
|
215
|
-
case 1:
|
|
216
|
-
resolvedHostname = (_a.sent()).hostname;
|
|
217
|
-
if (context.disableHostPrefix !== true) {
|
|
218
|
-
resolvedHostname = "sync-" + resolvedHostname;
|
|
219
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
220
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return [2, buildHttpRpcRequest(context, headers, "/", resolvedHostname, body)];
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
}); };
|
|
227
|
-
export var serializeAws_json1_0StopExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
228
|
-
var headers, body;
|
|
229
|
-
return __generator(this, function (_a) {
|
|
230
|
-
headers = {
|
|
231
|
-
"content-type": "application/x-amz-json-1.0",
|
|
232
|
-
"x-amz-target": "AWSStepFunctions.StopExecution",
|
|
233
|
-
};
|
|
234
|
-
body = JSON.stringify(serializeAws_json1_0StopExecutionInput(input, context));
|
|
235
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
236
|
-
});
|
|
237
|
-
}); };
|
|
238
|
-
export var serializeAws_json1_0TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
|
-
var headers, body;
|
|
240
|
-
return __generator(this, function (_a) {
|
|
241
|
-
headers = {
|
|
242
|
-
"content-type": "application/x-amz-json-1.0",
|
|
243
|
-
"x-amz-target": "AWSStepFunctions.TagResource",
|
|
244
|
-
};
|
|
245
|
-
body = JSON.stringify(serializeAws_json1_0TagResourceInput(input, context));
|
|
246
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
247
|
-
});
|
|
248
|
-
}); };
|
|
249
|
-
export var serializeAws_json1_0UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
-
var headers, body;
|
|
251
|
-
return __generator(this, function (_a) {
|
|
252
|
-
headers = {
|
|
253
|
-
"content-type": "application/x-amz-json-1.0",
|
|
254
|
-
"x-amz-target": "AWSStepFunctions.UntagResource",
|
|
255
|
-
};
|
|
256
|
-
body = JSON.stringify(serializeAws_json1_0UntagResourceInput(input, context));
|
|
257
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
258
|
-
});
|
|
259
|
-
}); };
|
|
260
|
-
export var serializeAws_json1_0UpdateStateMachineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
261
|
-
var headers, body;
|
|
262
|
-
return __generator(this, function (_a) {
|
|
263
|
-
headers = {
|
|
264
|
-
"content-type": "application/x-amz-json-1.0",
|
|
265
|
-
"x-amz-target": "AWSStepFunctions.UpdateStateMachine",
|
|
266
|
-
};
|
|
267
|
-
body = JSON.stringify(serializeAws_json1_0UpdateStateMachineInput(input, context));
|
|
268
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
269
|
-
});
|
|
270
|
-
}); };
|
|
271
|
-
export var deserializeAws_json1_0CreateActivityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
272
|
-
var data, contents, response;
|
|
273
|
-
return __generator(this, function (_a) {
|
|
274
|
-
switch (_a.label) {
|
|
275
|
-
case 0:
|
|
276
|
-
if (output.statusCode >= 300) {
|
|
277
|
-
return [2, deserializeAws_json1_0CreateActivityCommandError(output, context)];
|
|
278
|
-
}
|
|
279
|
-
return [4, parseBody(output.body, context)];
|
|
280
|
-
case 1:
|
|
281
|
-
data = _a.sent();
|
|
282
|
-
contents = {};
|
|
283
|
-
contents = deserializeAws_json1_0CreateActivityOutput(data, context);
|
|
284
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
285
|
-
return [2, Promise.resolve(response)];
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
}); };
|
|
289
|
-
var deserializeAws_json1_0CreateActivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
290
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
291
|
-
var _c;
|
|
292
|
-
return __generator(this, function (_d) {
|
|
293
|
-
switch (_d.label) {
|
|
294
|
-
case 0:
|
|
295
|
-
_a = [__assign({}, output)];
|
|
296
|
-
_c = {};
|
|
297
|
-
return [4, parseErrorBody(output.body, context)];
|
|
298
|
-
case 1:
|
|
299
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
300
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
301
|
-
_b = errorCode;
|
|
302
|
-
switch (_b) {
|
|
303
|
-
case "ActivityLimitExceeded": return [3, 2];
|
|
304
|
-
case "com.amazonaws.sfn#ActivityLimitExceeded": return [3, 2];
|
|
305
|
-
case "InvalidName": return [3, 4];
|
|
306
|
-
case "com.amazonaws.sfn#InvalidName": return [3, 4];
|
|
307
|
-
case "TooManyTags": return [3, 6];
|
|
308
|
-
case "com.amazonaws.sfn#TooManyTags": return [3, 6];
|
|
309
|
-
}
|
|
310
|
-
return [3, 8];
|
|
311
|
-
case 2: return [4, deserializeAws_json1_0ActivityLimitExceededResponse(parsedOutput, context)];
|
|
312
|
-
case 3: throw _d.sent();
|
|
313
|
-
case 4: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
314
|
-
case 5: throw _d.sent();
|
|
315
|
-
case 6: return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
316
|
-
case 7: throw _d.sent();
|
|
317
|
-
case 8:
|
|
318
|
-
parsedBody = parsedOutput.body;
|
|
319
|
-
throwDefaultError({
|
|
320
|
-
output: output,
|
|
321
|
-
parsedBody: parsedBody,
|
|
322
|
-
exceptionCtor: __BaseException,
|
|
323
|
-
errorCode: errorCode,
|
|
324
|
-
});
|
|
325
|
-
_d.label = 9;
|
|
326
|
-
case 9: return [2];
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
}); };
|
|
330
|
-
export var deserializeAws_json1_0CreateStateMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
-
var data, contents, response;
|
|
332
|
-
return __generator(this, function (_a) {
|
|
333
|
-
switch (_a.label) {
|
|
334
|
-
case 0:
|
|
335
|
-
if (output.statusCode >= 300) {
|
|
336
|
-
return [2, deserializeAws_json1_0CreateStateMachineCommandError(output, context)];
|
|
337
|
-
}
|
|
338
|
-
return [4, parseBody(output.body, context)];
|
|
339
|
-
case 1:
|
|
340
|
-
data = _a.sent();
|
|
341
|
-
contents = {};
|
|
342
|
-
contents = deserializeAws_json1_0CreateStateMachineOutput(data, context);
|
|
343
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
344
|
-
return [2, Promise.resolve(response)];
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
}); };
|
|
348
|
-
var deserializeAws_json1_0CreateStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
349
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
350
|
-
var _c;
|
|
351
|
-
return __generator(this, function (_d) {
|
|
352
|
-
switch (_d.label) {
|
|
353
|
-
case 0:
|
|
354
|
-
_a = [__assign({}, output)];
|
|
355
|
-
_c = {};
|
|
356
|
-
return [4, parseErrorBody(output.body, context)];
|
|
357
|
-
case 1:
|
|
358
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
359
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
|
-
_b = errorCode;
|
|
361
|
-
switch (_b) {
|
|
362
|
-
case "InvalidArn": return [3, 2];
|
|
363
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
364
|
-
case "InvalidDefinition": return [3, 4];
|
|
365
|
-
case "com.amazonaws.sfn#InvalidDefinition": return [3, 4];
|
|
366
|
-
case "InvalidLoggingConfiguration": return [3, 6];
|
|
367
|
-
case "com.amazonaws.sfn#InvalidLoggingConfiguration": return [3, 6];
|
|
368
|
-
case "InvalidName": return [3, 8];
|
|
369
|
-
case "com.amazonaws.sfn#InvalidName": return [3, 8];
|
|
370
|
-
case "InvalidTracingConfiguration": return [3, 10];
|
|
371
|
-
case "com.amazonaws.sfn#InvalidTracingConfiguration": return [3, 10];
|
|
372
|
-
case "StateMachineAlreadyExists": return [3, 12];
|
|
373
|
-
case "com.amazonaws.sfn#StateMachineAlreadyExists": return [3, 12];
|
|
374
|
-
case "StateMachineDeleting": return [3, 14];
|
|
375
|
-
case "com.amazonaws.sfn#StateMachineDeleting": return [3, 14];
|
|
376
|
-
case "StateMachineLimitExceeded": return [3, 16];
|
|
377
|
-
case "com.amazonaws.sfn#StateMachineLimitExceeded": return [3, 16];
|
|
378
|
-
case "StateMachineTypeNotSupported": return [3, 18];
|
|
379
|
-
case "com.amazonaws.sfn#StateMachineTypeNotSupported": return [3, 18];
|
|
380
|
-
case "TooManyTags": return [3, 20];
|
|
381
|
-
case "com.amazonaws.sfn#TooManyTags": return [3, 20];
|
|
382
|
-
}
|
|
383
|
-
return [3, 22];
|
|
384
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
385
|
-
case 3: throw _d.sent();
|
|
386
|
-
case 4: return [4, deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context)];
|
|
387
|
-
case 5: throw _d.sent();
|
|
388
|
-
case 6: return [4, deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context)];
|
|
389
|
-
case 7: throw _d.sent();
|
|
390
|
-
case 8: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
391
|
-
case 9: throw _d.sent();
|
|
392
|
-
case 10: return [4, deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)];
|
|
393
|
-
case 11: throw _d.sent();
|
|
394
|
-
case 12: return [4, deserializeAws_json1_0StateMachineAlreadyExistsResponse(parsedOutput, context)];
|
|
395
|
-
case 13: throw _d.sent();
|
|
396
|
-
case 14: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
397
|
-
case 15: throw _d.sent();
|
|
398
|
-
case 16: return [4, deserializeAws_json1_0StateMachineLimitExceededResponse(parsedOutput, context)];
|
|
399
|
-
case 17: throw _d.sent();
|
|
400
|
-
case 18: return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
401
|
-
case 19: throw _d.sent();
|
|
402
|
-
case 20: return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
403
|
-
case 21: throw _d.sent();
|
|
404
|
-
case 22:
|
|
405
|
-
parsedBody = parsedOutput.body;
|
|
406
|
-
throwDefaultError({
|
|
407
|
-
output: output,
|
|
408
|
-
parsedBody: parsedBody,
|
|
409
|
-
exceptionCtor: __BaseException,
|
|
410
|
-
errorCode: errorCode,
|
|
411
|
-
});
|
|
412
|
-
_d.label = 23;
|
|
413
|
-
case 23: return [2];
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
}); };
|
|
417
|
-
export var deserializeAws_json1_0DeleteActivityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
418
|
-
var data, contents, response;
|
|
419
|
-
return __generator(this, function (_a) {
|
|
420
|
-
switch (_a.label) {
|
|
421
|
-
case 0:
|
|
422
|
-
if (output.statusCode >= 300) {
|
|
423
|
-
return [2, deserializeAws_json1_0DeleteActivityCommandError(output, context)];
|
|
424
|
-
}
|
|
425
|
-
return [4, parseBody(output.body, context)];
|
|
426
|
-
case 1:
|
|
427
|
-
data = _a.sent();
|
|
428
|
-
contents = {};
|
|
429
|
-
contents = deserializeAws_json1_0DeleteActivityOutput(data, context);
|
|
430
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
431
|
-
return [2, Promise.resolve(response)];
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
}); };
|
|
435
|
-
var deserializeAws_json1_0DeleteActivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
436
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
437
|
-
var _c;
|
|
438
|
-
return __generator(this, function (_d) {
|
|
439
|
-
switch (_d.label) {
|
|
440
|
-
case 0:
|
|
441
|
-
_a = [__assign({}, output)];
|
|
442
|
-
_c = {};
|
|
443
|
-
return [4, parseErrorBody(output.body, context)];
|
|
444
|
-
case 1:
|
|
445
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
446
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
|
-
_b = errorCode;
|
|
448
|
-
switch (_b) {
|
|
449
|
-
case "InvalidArn": return [3, 2];
|
|
450
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
451
|
-
}
|
|
452
|
-
return [3, 4];
|
|
453
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
454
|
-
case 3: throw _d.sent();
|
|
455
|
-
case 4:
|
|
456
|
-
parsedBody = parsedOutput.body;
|
|
457
|
-
throwDefaultError({
|
|
458
|
-
output: output,
|
|
459
|
-
parsedBody: parsedBody,
|
|
460
|
-
exceptionCtor: __BaseException,
|
|
461
|
-
errorCode: errorCode,
|
|
462
|
-
});
|
|
463
|
-
_d.label = 5;
|
|
464
|
-
case 5: return [2];
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
}); };
|
|
468
|
-
export var deserializeAws_json1_0DeleteStateMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
469
|
-
var data, contents, response;
|
|
470
|
-
return __generator(this, function (_a) {
|
|
471
|
-
switch (_a.label) {
|
|
472
|
-
case 0:
|
|
473
|
-
if (output.statusCode >= 300) {
|
|
474
|
-
return [2, deserializeAws_json1_0DeleteStateMachineCommandError(output, context)];
|
|
475
|
-
}
|
|
476
|
-
return [4, parseBody(output.body, context)];
|
|
477
|
-
case 1:
|
|
478
|
-
data = _a.sent();
|
|
479
|
-
contents = {};
|
|
480
|
-
contents = deserializeAws_json1_0DeleteStateMachineOutput(data, context);
|
|
481
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
482
|
-
return [2, Promise.resolve(response)];
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
}); };
|
|
486
|
-
var deserializeAws_json1_0DeleteStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
487
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
488
|
-
var _c;
|
|
489
|
-
return __generator(this, function (_d) {
|
|
490
|
-
switch (_d.label) {
|
|
491
|
-
case 0:
|
|
492
|
-
_a = [__assign({}, output)];
|
|
493
|
-
_c = {};
|
|
494
|
-
return [4, parseErrorBody(output.body, context)];
|
|
495
|
-
case 1:
|
|
496
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
-
_b = errorCode;
|
|
499
|
-
switch (_b) {
|
|
500
|
-
case "InvalidArn": return [3, 2];
|
|
501
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
502
|
-
}
|
|
503
|
-
return [3, 4];
|
|
504
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
505
|
-
case 3: throw _d.sent();
|
|
506
|
-
case 4:
|
|
507
|
-
parsedBody = parsedOutput.body;
|
|
508
|
-
throwDefaultError({
|
|
509
|
-
output: output,
|
|
510
|
-
parsedBody: parsedBody,
|
|
511
|
-
exceptionCtor: __BaseException,
|
|
512
|
-
errorCode: errorCode,
|
|
513
|
-
});
|
|
514
|
-
_d.label = 5;
|
|
515
|
-
case 5: return [2];
|
|
516
|
-
}
|
|
517
|
-
});
|
|
518
|
-
}); };
|
|
519
|
-
export var deserializeAws_json1_0DescribeActivityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
-
var data, contents, response;
|
|
521
|
-
return __generator(this, function (_a) {
|
|
522
|
-
switch (_a.label) {
|
|
523
|
-
case 0:
|
|
524
|
-
if (output.statusCode >= 300) {
|
|
525
|
-
return [2, deserializeAws_json1_0DescribeActivityCommandError(output, context)];
|
|
526
|
-
}
|
|
527
|
-
return [4, parseBody(output.body, context)];
|
|
528
|
-
case 1:
|
|
529
|
-
data = _a.sent();
|
|
530
|
-
contents = {};
|
|
531
|
-
contents = deserializeAws_json1_0DescribeActivityOutput(data, context);
|
|
532
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
533
|
-
return [2, Promise.resolve(response)];
|
|
534
|
-
}
|
|
535
|
-
});
|
|
536
|
-
}); };
|
|
537
|
-
var deserializeAws_json1_0DescribeActivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
538
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
539
|
-
var _c;
|
|
540
|
-
return __generator(this, function (_d) {
|
|
541
|
-
switch (_d.label) {
|
|
542
|
-
case 0:
|
|
543
|
-
_a = [__assign({}, output)];
|
|
544
|
-
_c = {};
|
|
545
|
-
return [4, parseErrorBody(output.body, context)];
|
|
546
|
-
case 1:
|
|
547
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
548
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
|
-
_b = errorCode;
|
|
550
|
-
switch (_b) {
|
|
551
|
-
case "ActivityDoesNotExist": return [3, 2];
|
|
552
|
-
case "com.amazonaws.sfn#ActivityDoesNotExist": return [3, 2];
|
|
553
|
-
case "InvalidArn": return [3, 4];
|
|
554
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
555
|
-
}
|
|
556
|
-
return [3, 6];
|
|
557
|
-
case 2: return [4, deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context)];
|
|
558
|
-
case 3: throw _d.sent();
|
|
559
|
-
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
560
|
-
case 5: throw _d.sent();
|
|
561
|
-
case 6:
|
|
562
|
-
parsedBody = parsedOutput.body;
|
|
563
|
-
throwDefaultError({
|
|
564
|
-
output: output,
|
|
565
|
-
parsedBody: parsedBody,
|
|
566
|
-
exceptionCtor: __BaseException,
|
|
567
|
-
errorCode: errorCode,
|
|
568
|
-
});
|
|
569
|
-
_d.label = 7;
|
|
570
|
-
case 7: return [2];
|
|
571
|
-
}
|
|
572
|
-
});
|
|
573
|
-
}); };
|
|
574
|
-
export var deserializeAws_json1_0DescribeExecutionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
575
|
-
var data, contents, response;
|
|
576
|
-
return __generator(this, function (_a) {
|
|
577
|
-
switch (_a.label) {
|
|
578
|
-
case 0:
|
|
579
|
-
if (output.statusCode >= 300) {
|
|
580
|
-
return [2, deserializeAws_json1_0DescribeExecutionCommandError(output, context)];
|
|
581
|
-
}
|
|
582
|
-
return [4, parseBody(output.body, context)];
|
|
583
|
-
case 1:
|
|
584
|
-
data = _a.sent();
|
|
585
|
-
contents = {};
|
|
586
|
-
contents = deserializeAws_json1_0DescribeExecutionOutput(data, context);
|
|
587
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
588
|
-
return [2, Promise.resolve(response)];
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
}); };
|
|
592
|
-
var deserializeAws_json1_0DescribeExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
593
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
594
|
-
var _c;
|
|
595
|
-
return __generator(this, function (_d) {
|
|
596
|
-
switch (_d.label) {
|
|
597
|
-
case 0:
|
|
598
|
-
_a = [__assign({}, output)];
|
|
599
|
-
_c = {};
|
|
600
|
-
return [4, parseErrorBody(output.body, context)];
|
|
601
|
-
case 1:
|
|
602
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
603
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
|
-
_b = errorCode;
|
|
605
|
-
switch (_b) {
|
|
606
|
-
case "ExecutionDoesNotExist": return [3, 2];
|
|
607
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist": return [3, 2];
|
|
608
|
-
case "InvalidArn": return [3, 4];
|
|
609
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
610
|
-
}
|
|
611
|
-
return [3, 6];
|
|
612
|
-
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
613
|
-
case 3: throw _d.sent();
|
|
614
|
-
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
615
|
-
case 5: throw _d.sent();
|
|
616
|
-
case 6:
|
|
617
|
-
parsedBody = parsedOutput.body;
|
|
618
|
-
throwDefaultError({
|
|
619
|
-
output: output,
|
|
620
|
-
parsedBody: parsedBody,
|
|
621
|
-
exceptionCtor: __BaseException,
|
|
622
|
-
errorCode: errorCode,
|
|
623
|
-
});
|
|
624
|
-
_d.label = 7;
|
|
625
|
-
case 7: return [2];
|
|
626
|
-
}
|
|
627
|
-
});
|
|
628
|
-
}); };
|
|
629
|
-
export var deserializeAws_json1_0DescribeStateMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
630
|
-
var data, contents, response;
|
|
631
|
-
return __generator(this, function (_a) {
|
|
632
|
-
switch (_a.label) {
|
|
633
|
-
case 0:
|
|
634
|
-
if (output.statusCode >= 300) {
|
|
635
|
-
return [2, deserializeAws_json1_0DescribeStateMachineCommandError(output, context)];
|
|
636
|
-
}
|
|
637
|
-
return [4, parseBody(output.body, context)];
|
|
638
|
-
case 1:
|
|
639
|
-
data = _a.sent();
|
|
640
|
-
contents = {};
|
|
641
|
-
contents = deserializeAws_json1_0DescribeStateMachineOutput(data, context);
|
|
642
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
643
|
-
return [2, Promise.resolve(response)];
|
|
644
|
-
}
|
|
645
|
-
});
|
|
646
|
-
}); };
|
|
647
|
-
var deserializeAws_json1_0DescribeStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
648
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
649
|
-
var _c;
|
|
650
|
-
return __generator(this, function (_d) {
|
|
651
|
-
switch (_d.label) {
|
|
652
|
-
case 0:
|
|
653
|
-
_a = [__assign({}, output)];
|
|
654
|
-
_c = {};
|
|
655
|
-
return [4, parseErrorBody(output.body, context)];
|
|
656
|
-
case 1:
|
|
657
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
658
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
_b = errorCode;
|
|
660
|
-
switch (_b) {
|
|
661
|
-
case "InvalidArn": return [3, 2];
|
|
662
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
663
|
-
case "StateMachineDoesNotExist": return [3, 4];
|
|
664
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 4];
|
|
665
|
-
}
|
|
666
|
-
return [3, 6];
|
|
667
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
668
|
-
case 3: throw _d.sent();
|
|
669
|
-
case 4: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
670
|
-
case 5: throw _d.sent();
|
|
671
|
-
case 6:
|
|
672
|
-
parsedBody = parsedOutput.body;
|
|
673
|
-
throwDefaultError({
|
|
674
|
-
output: output,
|
|
675
|
-
parsedBody: parsedBody,
|
|
676
|
-
exceptionCtor: __BaseException,
|
|
677
|
-
errorCode: errorCode,
|
|
678
|
-
});
|
|
679
|
-
_d.label = 7;
|
|
680
|
-
case 7: return [2];
|
|
681
|
-
}
|
|
682
|
-
});
|
|
683
|
-
}); };
|
|
684
|
-
export var deserializeAws_json1_0DescribeStateMachineForExecutionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
685
|
-
var data, contents, response;
|
|
686
|
-
return __generator(this, function (_a) {
|
|
687
|
-
switch (_a.label) {
|
|
688
|
-
case 0:
|
|
689
|
-
if (output.statusCode >= 300) {
|
|
690
|
-
return [2, deserializeAws_json1_0DescribeStateMachineForExecutionCommandError(output, context)];
|
|
691
|
-
}
|
|
692
|
-
return [4, parseBody(output.body, context)];
|
|
693
|
-
case 1:
|
|
694
|
-
data = _a.sent();
|
|
695
|
-
contents = {};
|
|
696
|
-
contents = deserializeAws_json1_0DescribeStateMachineForExecutionOutput(data, context);
|
|
697
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
698
|
-
return [2, Promise.resolve(response)];
|
|
699
|
-
}
|
|
700
|
-
});
|
|
701
|
-
}); };
|
|
702
|
-
var deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
703
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
704
|
-
var _c;
|
|
705
|
-
return __generator(this, function (_d) {
|
|
706
|
-
switch (_d.label) {
|
|
707
|
-
case 0:
|
|
708
|
-
_a = [__assign({}, output)];
|
|
709
|
-
_c = {};
|
|
710
|
-
return [4, parseErrorBody(output.body, context)];
|
|
711
|
-
case 1:
|
|
712
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
-
_b = errorCode;
|
|
715
|
-
switch (_b) {
|
|
716
|
-
case "ExecutionDoesNotExist": return [3, 2];
|
|
717
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist": return [3, 2];
|
|
718
|
-
case "InvalidArn": return [3, 4];
|
|
719
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
720
|
-
}
|
|
721
|
-
return [3, 6];
|
|
722
|
-
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
723
|
-
case 3: throw _d.sent();
|
|
724
|
-
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
725
|
-
case 5: throw _d.sent();
|
|
726
|
-
case 6:
|
|
727
|
-
parsedBody = parsedOutput.body;
|
|
728
|
-
throwDefaultError({
|
|
729
|
-
output: output,
|
|
730
|
-
parsedBody: parsedBody,
|
|
731
|
-
exceptionCtor: __BaseException,
|
|
732
|
-
errorCode: errorCode,
|
|
733
|
-
});
|
|
734
|
-
_d.label = 7;
|
|
735
|
-
case 7: return [2];
|
|
736
|
-
}
|
|
737
|
-
});
|
|
738
|
-
}); };
|
|
739
|
-
export var deserializeAws_json1_0GetActivityTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
740
|
-
var data, contents, response;
|
|
741
|
-
return __generator(this, function (_a) {
|
|
742
|
-
switch (_a.label) {
|
|
743
|
-
case 0:
|
|
744
|
-
if (output.statusCode >= 300) {
|
|
745
|
-
return [2, deserializeAws_json1_0GetActivityTaskCommandError(output, context)];
|
|
746
|
-
}
|
|
747
|
-
return [4, parseBody(output.body, context)];
|
|
748
|
-
case 1:
|
|
749
|
-
data = _a.sent();
|
|
750
|
-
contents = {};
|
|
751
|
-
contents = deserializeAws_json1_0GetActivityTaskOutput(data, context);
|
|
752
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
753
|
-
return [2, Promise.resolve(response)];
|
|
754
|
-
}
|
|
755
|
-
});
|
|
756
|
-
}); };
|
|
757
|
-
var deserializeAws_json1_0GetActivityTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
758
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
759
|
-
var _c;
|
|
760
|
-
return __generator(this, function (_d) {
|
|
761
|
-
switch (_d.label) {
|
|
762
|
-
case 0:
|
|
763
|
-
_a = [__assign({}, output)];
|
|
764
|
-
_c = {};
|
|
765
|
-
return [4, parseErrorBody(output.body, context)];
|
|
766
|
-
case 1:
|
|
767
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
_b = errorCode;
|
|
770
|
-
switch (_b) {
|
|
771
|
-
case "ActivityDoesNotExist": return [3, 2];
|
|
772
|
-
case "com.amazonaws.sfn#ActivityDoesNotExist": return [3, 2];
|
|
773
|
-
case "ActivityWorkerLimitExceeded": return [3, 4];
|
|
774
|
-
case "com.amazonaws.sfn#ActivityWorkerLimitExceeded": return [3, 4];
|
|
775
|
-
case "InvalidArn": return [3, 6];
|
|
776
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 6];
|
|
777
|
-
}
|
|
778
|
-
return [3, 8];
|
|
779
|
-
case 2: return [4, deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context)];
|
|
780
|
-
case 3: throw _d.sent();
|
|
781
|
-
case 4: return [4, deserializeAws_json1_0ActivityWorkerLimitExceededResponse(parsedOutput, context)];
|
|
782
|
-
case 5: throw _d.sent();
|
|
783
|
-
case 6: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
784
|
-
case 7: throw _d.sent();
|
|
785
|
-
case 8:
|
|
786
|
-
parsedBody = parsedOutput.body;
|
|
787
|
-
throwDefaultError({
|
|
788
|
-
output: output,
|
|
789
|
-
parsedBody: parsedBody,
|
|
790
|
-
exceptionCtor: __BaseException,
|
|
791
|
-
errorCode: errorCode,
|
|
792
|
-
});
|
|
793
|
-
_d.label = 9;
|
|
794
|
-
case 9: return [2];
|
|
795
|
-
}
|
|
796
|
-
});
|
|
797
|
-
}); };
|
|
798
|
-
export var deserializeAws_json1_0GetExecutionHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
799
|
-
var data, contents, response;
|
|
800
|
-
return __generator(this, function (_a) {
|
|
801
|
-
switch (_a.label) {
|
|
802
|
-
case 0:
|
|
803
|
-
if (output.statusCode >= 300) {
|
|
804
|
-
return [2, deserializeAws_json1_0GetExecutionHistoryCommandError(output, context)];
|
|
805
|
-
}
|
|
806
|
-
return [4, parseBody(output.body, context)];
|
|
807
|
-
case 1:
|
|
808
|
-
data = _a.sent();
|
|
809
|
-
contents = {};
|
|
810
|
-
contents = deserializeAws_json1_0GetExecutionHistoryOutput(data, context);
|
|
811
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
812
|
-
return [2, Promise.resolve(response)];
|
|
813
|
-
}
|
|
814
|
-
});
|
|
815
|
-
}); };
|
|
816
|
-
var deserializeAws_json1_0GetExecutionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
817
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
818
|
-
var _c;
|
|
819
|
-
return __generator(this, function (_d) {
|
|
820
|
-
switch (_d.label) {
|
|
821
|
-
case 0:
|
|
822
|
-
_a = [__assign({}, output)];
|
|
823
|
-
_c = {};
|
|
824
|
-
return [4, parseErrorBody(output.body, context)];
|
|
825
|
-
case 1:
|
|
826
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
_b = errorCode;
|
|
829
|
-
switch (_b) {
|
|
830
|
-
case "ExecutionDoesNotExist": return [3, 2];
|
|
831
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist": return [3, 2];
|
|
832
|
-
case "InvalidArn": return [3, 4];
|
|
833
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
834
|
-
case "InvalidToken": return [3, 6];
|
|
835
|
-
case "com.amazonaws.sfn#InvalidToken": return [3, 6];
|
|
836
|
-
}
|
|
837
|
-
return [3, 8];
|
|
838
|
-
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
839
|
-
case 3: throw _d.sent();
|
|
840
|
-
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
841
|
-
case 5: throw _d.sent();
|
|
842
|
-
case 6: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
843
|
-
case 7: throw _d.sent();
|
|
844
|
-
case 8:
|
|
845
|
-
parsedBody = parsedOutput.body;
|
|
846
|
-
throwDefaultError({
|
|
847
|
-
output: output,
|
|
848
|
-
parsedBody: parsedBody,
|
|
849
|
-
exceptionCtor: __BaseException,
|
|
850
|
-
errorCode: errorCode,
|
|
851
|
-
});
|
|
852
|
-
_d.label = 9;
|
|
853
|
-
case 9: return [2];
|
|
854
|
-
}
|
|
855
|
-
});
|
|
856
|
-
}); };
|
|
857
|
-
export var deserializeAws_json1_0ListActivitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
858
|
-
var data, contents, response;
|
|
859
|
-
return __generator(this, function (_a) {
|
|
860
|
-
switch (_a.label) {
|
|
861
|
-
case 0:
|
|
862
|
-
if (output.statusCode >= 300) {
|
|
863
|
-
return [2, deserializeAws_json1_0ListActivitiesCommandError(output, context)];
|
|
864
|
-
}
|
|
865
|
-
return [4, parseBody(output.body, context)];
|
|
866
|
-
case 1:
|
|
867
|
-
data = _a.sent();
|
|
868
|
-
contents = {};
|
|
869
|
-
contents = deserializeAws_json1_0ListActivitiesOutput(data, context);
|
|
870
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
871
|
-
return [2, Promise.resolve(response)];
|
|
872
|
-
}
|
|
873
|
-
});
|
|
874
|
-
}); };
|
|
875
|
-
var deserializeAws_json1_0ListActivitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
876
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
877
|
-
var _c;
|
|
878
|
-
return __generator(this, function (_d) {
|
|
879
|
-
switch (_d.label) {
|
|
880
|
-
case 0:
|
|
881
|
-
_a = [__assign({}, output)];
|
|
882
|
-
_c = {};
|
|
883
|
-
return [4, parseErrorBody(output.body, context)];
|
|
884
|
-
case 1:
|
|
885
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
886
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
-
_b = errorCode;
|
|
888
|
-
switch (_b) {
|
|
889
|
-
case "InvalidToken": return [3, 2];
|
|
890
|
-
case "com.amazonaws.sfn#InvalidToken": return [3, 2];
|
|
891
|
-
}
|
|
892
|
-
return [3, 4];
|
|
893
|
-
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
894
|
-
case 3: throw _d.sent();
|
|
895
|
-
case 4:
|
|
896
|
-
parsedBody = parsedOutput.body;
|
|
897
|
-
throwDefaultError({
|
|
898
|
-
output: output,
|
|
899
|
-
parsedBody: parsedBody,
|
|
900
|
-
exceptionCtor: __BaseException,
|
|
901
|
-
errorCode: errorCode,
|
|
902
|
-
});
|
|
903
|
-
_d.label = 5;
|
|
904
|
-
case 5: return [2];
|
|
905
|
-
}
|
|
906
|
-
});
|
|
907
|
-
}); };
|
|
908
|
-
export var deserializeAws_json1_0ListExecutionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
909
|
-
var data, contents, response;
|
|
910
|
-
return __generator(this, function (_a) {
|
|
911
|
-
switch (_a.label) {
|
|
912
|
-
case 0:
|
|
913
|
-
if (output.statusCode >= 300) {
|
|
914
|
-
return [2, deserializeAws_json1_0ListExecutionsCommandError(output, context)];
|
|
915
|
-
}
|
|
916
|
-
return [4, parseBody(output.body, context)];
|
|
917
|
-
case 1:
|
|
918
|
-
data = _a.sent();
|
|
919
|
-
contents = {};
|
|
920
|
-
contents = deserializeAws_json1_0ListExecutionsOutput(data, context);
|
|
921
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
922
|
-
return [2, Promise.resolve(response)];
|
|
923
|
-
}
|
|
924
|
-
});
|
|
925
|
-
}); };
|
|
926
|
-
var deserializeAws_json1_0ListExecutionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
927
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
928
|
-
var _c;
|
|
929
|
-
return __generator(this, function (_d) {
|
|
930
|
-
switch (_d.label) {
|
|
931
|
-
case 0:
|
|
932
|
-
_a = [__assign({}, output)];
|
|
933
|
-
_c = {};
|
|
934
|
-
return [4, parseErrorBody(output.body, context)];
|
|
935
|
-
case 1:
|
|
936
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
937
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
-
_b = errorCode;
|
|
939
|
-
switch (_b) {
|
|
940
|
-
case "InvalidArn": return [3, 2];
|
|
941
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
942
|
-
case "InvalidToken": return [3, 4];
|
|
943
|
-
case "com.amazonaws.sfn#InvalidToken": return [3, 4];
|
|
944
|
-
case "StateMachineDoesNotExist": return [3, 6];
|
|
945
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 6];
|
|
946
|
-
case "StateMachineTypeNotSupported": return [3, 8];
|
|
947
|
-
case "com.amazonaws.sfn#StateMachineTypeNotSupported": return [3, 8];
|
|
948
|
-
}
|
|
949
|
-
return [3, 10];
|
|
950
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
951
|
-
case 3: throw _d.sent();
|
|
952
|
-
case 4: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
953
|
-
case 5: throw _d.sent();
|
|
954
|
-
case 6: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
955
|
-
case 7: throw _d.sent();
|
|
956
|
-
case 8: return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
957
|
-
case 9: throw _d.sent();
|
|
958
|
-
case 10:
|
|
959
|
-
parsedBody = parsedOutput.body;
|
|
960
|
-
throwDefaultError({
|
|
961
|
-
output: output,
|
|
962
|
-
parsedBody: parsedBody,
|
|
963
|
-
exceptionCtor: __BaseException,
|
|
964
|
-
errorCode: errorCode,
|
|
965
|
-
});
|
|
966
|
-
_d.label = 11;
|
|
967
|
-
case 11: return [2];
|
|
5
|
+
export const serializeAws_json1_0CreateActivityCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.0",
|
|
8
|
+
"x-amz-target": "AWSStepFunctions.CreateActivity",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_0CreateActivityInput(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_0CreateStateMachineCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.0",
|
|
17
|
+
"x-amz-target": "AWSStepFunctions.CreateStateMachine",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_0CreateStateMachineInput(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_0DeleteActivityCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.0",
|
|
26
|
+
"x-amz-target": "AWSStepFunctions.DeleteActivity",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_0DeleteActivityInput(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_0DeleteStateMachineCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.0",
|
|
35
|
+
"x-amz-target": "AWSStepFunctions.DeleteStateMachine",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_0DeleteStateMachineInput(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_0DescribeActivityCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.0",
|
|
44
|
+
"x-amz-target": "AWSStepFunctions.DescribeActivity",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_0DescribeActivityInput(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_0DescribeExecutionCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.0",
|
|
53
|
+
"x-amz-target": "AWSStepFunctions.DescribeExecution",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_0DescribeExecutionInput(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_0DescribeStateMachineCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.0",
|
|
62
|
+
"x-amz-target": "AWSStepFunctions.DescribeStateMachine",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_0DescribeStateMachineInput(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_0DescribeStateMachineForExecutionCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.0",
|
|
71
|
+
"x-amz-target": "AWSStepFunctions.DescribeStateMachineForExecution",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_0DescribeStateMachineForExecutionInput(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_0GetActivityTaskCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.0",
|
|
80
|
+
"x-amz-target": "AWSStepFunctions.GetActivityTask",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_0GetActivityTaskInput(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_0GetExecutionHistoryCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.0",
|
|
89
|
+
"x-amz-target": "AWSStepFunctions.GetExecutionHistory",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_0GetExecutionHistoryInput(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_0ListActivitiesCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.0",
|
|
98
|
+
"x-amz-target": "AWSStepFunctions.ListActivities",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_0ListActivitiesInput(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_0ListExecutionsCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.0",
|
|
107
|
+
"x-amz-target": "AWSStepFunctions.ListExecutions",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_0ListExecutionsInput(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_0ListStateMachinesCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.0",
|
|
116
|
+
"x-amz-target": "AWSStepFunctions.ListStateMachines",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_0ListStateMachinesInput(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.0",
|
|
125
|
+
"x-amz-target": "AWSStepFunctions.ListTagsForResource",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceInput(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
131
|
+
export const serializeAws_json1_0SendTaskFailureCommand = async (input, context) => {
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/x-amz-json-1.0",
|
|
134
|
+
"x-amz-target": "AWSStepFunctions.SendTaskFailure",
|
|
135
|
+
};
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(serializeAws_json1_0SendTaskFailureInput(input, context));
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
export const serializeAws_json1_0SendTaskHeartbeatCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.0",
|
|
143
|
+
"x-amz-target": "AWSStepFunctions.SendTaskHeartbeat",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_0SendTaskHeartbeatInput(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
export const serializeAws_json1_0SendTaskSuccessCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.0",
|
|
152
|
+
"x-amz-target": "AWSStepFunctions.SendTaskSuccess",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_0SendTaskSuccessInput(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
export const serializeAws_json1_0StartExecutionCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.0",
|
|
161
|
+
"x-amz-target": "AWSStepFunctions.StartExecution",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_0StartExecutionInput(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const serializeAws_json1_0StartSyncExecutionCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.0",
|
|
170
|
+
"x-amz-target": "AWSStepFunctions.StartSyncExecution",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_0StartSyncExecutionInput(input, context));
|
|
174
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
175
|
+
if (context.disableHostPrefix !== true) {
|
|
176
|
+
resolvedHostname = "sync-" + resolvedHostname;
|
|
177
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
178
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
968
179
|
}
|
|
180
|
+
}
|
|
181
|
+
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
182
|
+
};
|
|
183
|
+
export const serializeAws_json1_0StopExecutionCommand = async (input, context) => {
|
|
184
|
+
const headers = {
|
|
185
|
+
"content-type": "application/x-amz-json-1.0",
|
|
186
|
+
"x-amz-target": "AWSStepFunctions.StopExecution",
|
|
187
|
+
};
|
|
188
|
+
let body;
|
|
189
|
+
body = JSON.stringify(serializeAws_json1_0StopExecutionInput(input, context));
|
|
190
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
+
};
|
|
192
|
+
export const serializeAws_json1_0TagResourceCommand = async (input, context) => {
|
|
193
|
+
const headers = {
|
|
194
|
+
"content-type": "application/x-amz-json-1.0",
|
|
195
|
+
"x-amz-target": "AWSStepFunctions.TagResource",
|
|
196
|
+
};
|
|
197
|
+
let body;
|
|
198
|
+
body = JSON.stringify(serializeAws_json1_0TagResourceInput(input, context));
|
|
199
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
200
|
+
};
|
|
201
|
+
export const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
|
|
202
|
+
const headers = {
|
|
203
|
+
"content-type": "application/x-amz-json-1.0",
|
|
204
|
+
"x-amz-target": "AWSStepFunctions.UntagResource",
|
|
205
|
+
};
|
|
206
|
+
let body;
|
|
207
|
+
body = JSON.stringify(serializeAws_json1_0UntagResourceInput(input, context));
|
|
208
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
+
};
|
|
210
|
+
export const serializeAws_json1_0UpdateStateMachineCommand = async (input, context) => {
|
|
211
|
+
const headers = {
|
|
212
|
+
"content-type": "application/x-amz-json-1.0",
|
|
213
|
+
"x-amz-target": "AWSStepFunctions.UpdateStateMachine",
|
|
214
|
+
};
|
|
215
|
+
let body;
|
|
216
|
+
body = JSON.stringify(serializeAws_json1_0UpdateStateMachineInput(input, context));
|
|
217
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
+
};
|
|
219
|
+
export const deserializeAws_json1_0CreateActivityCommand = async (output, context) => {
|
|
220
|
+
if (output.statusCode >= 300) {
|
|
221
|
+
return deserializeAws_json1_0CreateActivityCommandError(output, context);
|
|
222
|
+
}
|
|
223
|
+
const data = await parseBody(output.body, context);
|
|
224
|
+
let contents = {};
|
|
225
|
+
contents = deserializeAws_json1_0CreateActivityOutput(data, context);
|
|
226
|
+
const response = {
|
|
227
|
+
$metadata: deserializeMetadata(output),
|
|
228
|
+
...contents,
|
|
229
|
+
};
|
|
230
|
+
return Promise.resolve(response);
|
|
231
|
+
};
|
|
232
|
+
const deserializeAws_json1_0CreateActivityCommandError = async (output, context) => {
|
|
233
|
+
const parsedOutput = {
|
|
234
|
+
...output,
|
|
235
|
+
body: await parseErrorBody(output.body, context),
|
|
236
|
+
};
|
|
237
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
|
+
switch (errorCode) {
|
|
239
|
+
case "ActivityLimitExceeded":
|
|
240
|
+
case "com.amazonaws.sfn#ActivityLimitExceeded":
|
|
241
|
+
throw await deserializeAws_json1_0ActivityLimitExceededResponse(parsedOutput, context);
|
|
242
|
+
case "InvalidName":
|
|
243
|
+
case "com.amazonaws.sfn#InvalidName":
|
|
244
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
245
|
+
case "TooManyTags":
|
|
246
|
+
case "com.amazonaws.sfn#TooManyTags":
|
|
247
|
+
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
248
|
+
default:
|
|
249
|
+
const parsedBody = parsedOutput.body;
|
|
250
|
+
throwDefaultError({
|
|
251
|
+
output,
|
|
252
|
+
parsedBody,
|
|
253
|
+
exceptionCtor: __BaseException,
|
|
254
|
+
errorCode,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
export const deserializeAws_json1_0CreateStateMachineCommand = async (output, context) => {
|
|
259
|
+
if (output.statusCode >= 300) {
|
|
260
|
+
return deserializeAws_json1_0CreateStateMachineCommandError(output, context);
|
|
261
|
+
}
|
|
262
|
+
const data = await parseBody(output.body, context);
|
|
263
|
+
let contents = {};
|
|
264
|
+
contents = deserializeAws_json1_0CreateStateMachineOutput(data, context);
|
|
265
|
+
const response = {
|
|
266
|
+
$metadata: deserializeMetadata(output),
|
|
267
|
+
...contents,
|
|
268
|
+
};
|
|
269
|
+
return Promise.resolve(response);
|
|
270
|
+
};
|
|
271
|
+
const deserializeAws_json1_0CreateStateMachineCommandError = async (output, context) => {
|
|
272
|
+
const parsedOutput = {
|
|
273
|
+
...output,
|
|
274
|
+
body: await parseErrorBody(output.body, context),
|
|
275
|
+
};
|
|
276
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
|
+
switch (errorCode) {
|
|
278
|
+
case "InvalidArn":
|
|
279
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
280
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
281
|
+
case "InvalidDefinition":
|
|
282
|
+
case "com.amazonaws.sfn#InvalidDefinition":
|
|
283
|
+
throw await deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context);
|
|
284
|
+
case "InvalidLoggingConfiguration":
|
|
285
|
+
case "com.amazonaws.sfn#InvalidLoggingConfiguration":
|
|
286
|
+
throw await deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context);
|
|
287
|
+
case "InvalidName":
|
|
288
|
+
case "com.amazonaws.sfn#InvalidName":
|
|
289
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
290
|
+
case "InvalidTracingConfiguration":
|
|
291
|
+
case "com.amazonaws.sfn#InvalidTracingConfiguration":
|
|
292
|
+
throw await deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context);
|
|
293
|
+
case "StateMachineAlreadyExists":
|
|
294
|
+
case "com.amazonaws.sfn#StateMachineAlreadyExists":
|
|
295
|
+
throw await deserializeAws_json1_0StateMachineAlreadyExistsResponse(parsedOutput, context);
|
|
296
|
+
case "StateMachineDeleting":
|
|
297
|
+
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
298
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
299
|
+
case "StateMachineLimitExceeded":
|
|
300
|
+
case "com.amazonaws.sfn#StateMachineLimitExceeded":
|
|
301
|
+
throw await deserializeAws_json1_0StateMachineLimitExceededResponse(parsedOutput, context);
|
|
302
|
+
case "StateMachineTypeNotSupported":
|
|
303
|
+
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
304
|
+
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
305
|
+
case "TooManyTags":
|
|
306
|
+
case "com.amazonaws.sfn#TooManyTags":
|
|
307
|
+
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
308
|
+
default:
|
|
309
|
+
const parsedBody = parsedOutput.body;
|
|
310
|
+
throwDefaultError({
|
|
311
|
+
output,
|
|
312
|
+
parsedBody,
|
|
313
|
+
exceptionCtor: __BaseException,
|
|
314
|
+
errorCode,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
export const deserializeAws_json1_0DeleteActivityCommand = async (output, context) => {
|
|
319
|
+
if (output.statusCode >= 300) {
|
|
320
|
+
return deserializeAws_json1_0DeleteActivityCommandError(output, context);
|
|
321
|
+
}
|
|
322
|
+
const data = await parseBody(output.body, context);
|
|
323
|
+
let contents = {};
|
|
324
|
+
contents = deserializeAws_json1_0DeleteActivityOutput(data, context);
|
|
325
|
+
const response = {
|
|
326
|
+
$metadata: deserializeMetadata(output),
|
|
327
|
+
...contents,
|
|
328
|
+
};
|
|
329
|
+
return Promise.resolve(response);
|
|
330
|
+
};
|
|
331
|
+
const deserializeAws_json1_0DeleteActivityCommandError = async (output, context) => {
|
|
332
|
+
const parsedOutput = {
|
|
333
|
+
...output,
|
|
334
|
+
body: await parseErrorBody(output.body, context),
|
|
335
|
+
};
|
|
336
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
337
|
+
switch (errorCode) {
|
|
338
|
+
case "InvalidArn":
|
|
339
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
340
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
341
|
+
default:
|
|
342
|
+
const parsedBody = parsedOutput.body;
|
|
343
|
+
throwDefaultError({
|
|
344
|
+
output,
|
|
345
|
+
parsedBody,
|
|
346
|
+
exceptionCtor: __BaseException,
|
|
347
|
+
errorCode,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
export const deserializeAws_json1_0DeleteStateMachineCommand = async (output, context) => {
|
|
352
|
+
if (output.statusCode >= 300) {
|
|
353
|
+
return deserializeAws_json1_0DeleteStateMachineCommandError(output, context);
|
|
354
|
+
}
|
|
355
|
+
const data = await parseBody(output.body, context);
|
|
356
|
+
let contents = {};
|
|
357
|
+
contents = deserializeAws_json1_0DeleteStateMachineOutput(data, context);
|
|
358
|
+
const response = {
|
|
359
|
+
$metadata: deserializeMetadata(output),
|
|
360
|
+
...contents,
|
|
361
|
+
};
|
|
362
|
+
return Promise.resolve(response);
|
|
363
|
+
};
|
|
364
|
+
const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, context) => {
|
|
365
|
+
const parsedOutput = {
|
|
366
|
+
...output,
|
|
367
|
+
body: await parseErrorBody(output.body, context),
|
|
368
|
+
};
|
|
369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
|
+
switch (errorCode) {
|
|
371
|
+
case "InvalidArn":
|
|
372
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
373
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
374
|
+
default:
|
|
375
|
+
const parsedBody = parsedOutput.body;
|
|
376
|
+
throwDefaultError({
|
|
377
|
+
output,
|
|
378
|
+
parsedBody,
|
|
379
|
+
exceptionCtor: __BaseException,
|
|
380
|
+
errorCode,
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
export const deserializeAws_json1_0DescribeActivityCommand = async (output, context) => {
|
|
385
|
+
if (output.statusCode >= 300) {
|
|
386
|
+
return deserializeAws_json1_0DescribeActivityCommandError(output, context);
|
|
387
|
+
}
|
|
388
|
+
const data = await parseBody(output.body, context);
|
|
389
|
+
let contents = {};
|
|
390
|
+
contents = deserializeAws_json1_0DescribeActivityOutput(data, context);
|
|
391
|
+
const response = {
|
|
392
|
+
$metadata: deserializeMetadata(output),
|
|
393
|
+
...contents,
|
|
394
|
+
};
|
|
395
|
+
return Promise.resolve(response);
|
|
396
|
+
};
|
|
397
|
+
const deserializeAws_json1_0DescribeActivityCommandError = async (output, context) => {
|
|
398
|
+
const parsedOutput = {
|
|
399
|
+
...output,
|
|
400
|
+
body: await parseErrorBody(output.body, context),
|
|
401
|
+
};
|
|
402
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
403
|
+
switch (errorCode) {
|
|
404
|
+
case "ActivityDoesNotExist":
|
|
405
|
+
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
406
|
+
throw await deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context);
|
|
407
|
+
case "InvalidArn":
|
|
408
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
409
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
410
|
+
default:
|
|
411
|
+
const parsedBody = parsedOutput.body;
|
|
412
|
+
throwDefaultError({
|
|
413
|
+
output,
|
|
414
|
+
parsedBody,
|
|
415
|
+
exceptionCtor: __BaseException,
|
|
416
|
+
errorCode,
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
export const deserializeAws_json1_0DescribeExecutionCommand = async (output, context) => {
|
|
421
|
+
if (output.statusCode >= 300) {
|
|
422
|
+
return deserializeAws_json1_0DescribeExecutionCommandError(output, context);
|
|
423
|
+
}
|
|
424
|
+
const data = await parseBody(output.body, context);
|
|
425
|
+
let contents = {};
|
|
426
|
+
contents = deserializeAws_json1_0DescribeExecutionOutput(data, context);
|
|
427
|
+
const response = {
|
|
428
|
+
$metadata: deserializeMetadata(output),
|
|
429
|
+
...contents,
|
|
430
|
+
};
|
|
431
|
+
return Promise.resolve(response);
|
|
432
|
+
};
|
|
433
|
+
const deserializeAws_json1_0DescribeExecutionCommandError = async (output, context) => {
|
|
434
|
+
const parsedOutput = {
|
|
435
|
+
...output,
|
|
436
|
+
body: await parseErrorBody(output.body, context),
|
|
437
|
+
};
|
|
438
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
+
switch (errorCode) {
|
|
440
|
+
case "ExecutionDoesNotExist":
|
|
441
|
+
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
442
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
443
|
+
case "InvalidArn":
|
|
444
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
445
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
446
|
+
default:
|
|
447
|
+
const parsedBody = parsedOutput.body;
|
|
448
|
+
throwDefaultError({
|
|
449
|
+
output,
|
|
450
|
+
parsedBody,
|
|
451
|
+
exceptionCtor: __BaseException,
|
|
452
|
+
errorCode,
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
export const deserializeAws_json1_0DescribeStateMachineCommand = async (output, context) => {
|
|
457
|
+
if (output.statusCode >= 300) {
|
|
458
|
+
return deserializeAws_json1_0DescribeStateMachineCommandError(output, context);
|
|
459
|
+
}
|
|
460
|
+
const data = await parseBody(output.body, context);
|
|
461
|
+
let contents = {};
|
|
462
|
+
contents = deserializeAws_json1_0DescribeStateMachineOutput(data, context);
|
|
463
|
+
const response = {
|
|
464
|
+
$metadata: deserializeMetadata(output),
|
|
465
|
+
...contents,
|
|
466
|
+
};
|
|
467
|
+
return Promise.resolve(response);
|
|
468
|
+
};
|
|
469
|
+
const deserializeAws_json1_0DescribeStateMachineCommandError = async (output, context) => {
|
|
470
|
+
const parsedOutput = {
|
|
471
|
+
...output,
|
|
472
|
+
body: await parseErrorBody(output.body, context),
|
|
473
|
+
};
|
|
474
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
|
+
switch (errorCode) {
|
|
476
|
+
case "InvalidArn":
|
|
477
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
478
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
479
|
+
case "StateMachineDoesNotExist":
|
|
480
|
+
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
481
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
482
|
+
default:
|
|
483
|
+
const parsedBody = parsedOutput.body;
|
|
484
|
+
throwDefaultError({
|
|
485
|
+
output,
|
|
486
|
+
parsedBody,
|
|
487
|
+
exceptionCtor: __BaseException,
|
|
488
|
+
errorCode,
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
export const deserializeAws_json1_0DescribeStateMachineForExecutionCommand = async (output, context) => {
|
|
493
|
+
if (output.statusCode >= 300) {
|
|
494
|
+
return deserializeAws_json1_0DescribeStateMachineForExecutionCommandError(output, context);
|
|
495
|
+
}
|
|
496
|
+
const data = await parseBody(output.body, context);
|
|
497
|
+
let contents = {};
|
|
498
|
+
contents = deserializeAws_json1_0DescribeStateMachineForExecutionOutput(data, context);
|
|
499
|
+
const response = {
|
|
500
|
+
$metadata: deserializeMetadata(output),
|
|
501
|
+
...contents,
|
|
502
|
+
};
|
|
503
|
+
return Promise.resolve(response);
|
|
504
|
+
};
|
|
505
|
+
const deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = async (output, context) => {
|
|
506
|
+
const parsedOutput = {
|
|
507
|
+
...output,
|
|
508
|
+
body: await parseErrorBody(output.body, context),
|
|
509
|
+
};
|
|
510
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
|
+
switch (errorCode) {
|
|
512
|
+
case "ExecutionDoesNotExist":
|
|
513
|
+
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
514
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
515
|
+
case "InvalidArn":
|
|
516
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
517
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
518
|
+
default:
|
|
519
|
+
const parsedBody = parsedOutput.body;
|
|
520
|
+
throwDefaultError({
|
|
521
|
+
output,
|
|
522
|
+
parsedBody,
|
|
523
|
+
exceptionCtor: __BaseException,
|
|
524
|
+
errorCode,
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
export const deserializeAws_json1_0GetActivityTaskCommand = async (output, context) => {
|
|
529
|
+
if (output.statusCode >= 300) {
|
|
530
|
+
return deserializeAws_json1_0GetActivityTaskCommandError(output, context);
|
|
531
|
+
}
|
|
532
|
+
const data = await parseBody(output.body, context);
|
|
533
|
+
let contents = {};
|
|
534
|
+
contents = deserializeAws_json1_0GetActivityTaskOutput(data, context);
|
|
535
|
+
const response = {
|
|
536
|
+
$metadata: deserializeMetadata(output),
|
|
537
|
+
...contents,
|
|
538
|
+
};
|
|
539
|
+
return Promise.resolve(response);
|
|
540
|
+
};
|
|
541
|
+
const deserializeAws_json1_0GetActivityTaskCommandError = async (output, context) => {
|
|
542
|
+
const parsedOutput = {
|
|
543
|
+
...output,
|
|
544
|
+
body: await parseErrorBody(output.body, context),
|
|
545
|
+
};
|
|
546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
+
switch (errorCode) {
|
|
548
|
+
case "ActivityDoesNotExist":
|
|
549
|
+
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
550
|
+
throw await deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context);
|
|
551
|
+
case "ActivityWorkerLimitExceeded":
|
|
552
|
+
case "com.amazonaws.sfn#ActivityWorkerLimitExceeded":
|
|
553
|
+
throw await deserializeAws_json1_0ActivityWorkerLimitExceededResponse(parsedOutput, context);
|
|
554
|
+
case "InvalidArn":
|
|
555
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
556
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
557
|
+
default:
|
|
558
|
+
const parsedBody = parsedOutput.body;
|
|
559
|
+
throwDefaultError({
|
|
560
|
+
output,
|
|
561
|
+
parsedBody,
|
|
562
|
+
exceptionCtor: __BaseException,
|
|
563
|
+
errorCode,
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
export const deserializeAws_json1_0GetExecutionHistoryCommand = async (output, context) => {
|
|
568
|
+
if (output.statusCode >= 300) {
|
|
569
|
+
return deserializeAws_json1_0GetExecutionHistoryCommandError(output, context);
|
|
570
|
+
}
|
|
571
|
+
const data = await parseBody(output.body, context);
|
|
572
|
+
let contents = {};
|
|
573
|
+
contents = deserializeAws_json1_0GetExecutionHistoryOutput(data, context);
|
|
574
|
+
const response = {
|
|
575
|
+
$metadata: deserializeMetadata(output),
|
|
576
|
+
...contents,
|
|
577
|
+
};
|
|
578
|
+
return Promise.resolve(response);
|
|
579
|
+
};
|
|
580
|
+
const deserializeAws_json1_0GetExecutionHistoryCommandError = async (output, context) => {
|
|
581
|
+
const parsedOutput = {
|
|
582
|
+
...output,
|
|
583
|
+
body: await parseErrorBody(output.body, context),
|
|
584
|
+
};
|
|
585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
+
switch (errorCode) {
|
|
587
|
+
case "ExecutionDoesNotExist":
|
|
588
|
+
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
589
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
590
|
+
case "InvalidArn":
|
|
591
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
592
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
593
|
+
case "InvalidToken":
|
|
594
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
595
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
596
|
+
default:
|
|
597
|
+
const parsedBody = parsedOutput.body;
|
|
598
|
+
throwDefaultError({
|
|
599
|
+
output,
|
|
600
|
+
parsedBody,
|
|
601
|
+
exceptionCtor: __BaseException,
|
|
602
|
+
errorCode,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
export const deserializeAws_json1_0ListActivitiesCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode >= 300) {
|
|
608
|
+
return deserializeAws_json1_0ListActivitiesCommandError(output, context);
|
|
609
|
+
}
|
|
610
|
+
const data = await parseBody(output.body, context);
|
|
611
|
+
let contents = {};
|
|
612
|
+
contents = deserializeAws_json1_0ListActivitiesOutput(data, context);
|
|
613
|
+
const response = {
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
...contents,
|
|
616
|
+
};
|
|
617
|
+
return Promise.resolve(response);
|
|
618
|
+
};
|
|
619
|
+
const deserializeAws_json1_0ListActivitiesCommandError = async (output, context) => {
|
|
620
|
+
const parsedOutput = {
|
|
621
|
+
...output,
|
|
622
|
+
body: await parseErrorBody(output.body, context),
|
|
623
|
+
};
|
|
624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
+
switch (errorCode) {
|
|
626
|
+
case "InvalidToken":
|
|
627
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
628
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
629
|
+
default:
|
|
630
|
+
const parsedBody = parsedOutput.body;
|
|
631
|
+
throwDefaultError({
|
|
632
|
+
output,
|
|
633
|
+
parsedBody,
|
|
634
|
+
exceptionCtor: __BaseException,
|
|
635
|
+
errorCode,
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
export const deserializeAws_json1_0ListExecutionsCommand = async (output, context) => {
|
|
640
|
+
if (output.statusCode >= 300) {
|
|
641
|
+
return deserializeAws_json1_0ListExecutionsCommandError(output, context);
|
|
642
|
+
}
|
|
643
|
+
const data = await parseBody(output.body, context);
|
|
644
|
+
let contents = {};
|
|
645
|
+
contents = deserializeAws_json1_0ListExecutionsOutput(data, context);
|
|
646
|
+
const response = {
|
|
647
|
+
$metadata: deserializeMetadata(output),
|
|
648
|
+
...contents,
|
|
649
|
+
};
|
|
650
|
+
return Promise.resolve(response);
|
|
651
|
+
};
|
|
652
|
+
const deserializeAws_json1_0ListExecutionsCommandError = async (output, context) => {
|
|
653
|
+
const parsedOutput = {
|
|
654
|
+
...output,
|
|
655
|
+
body: await parseErrorBody(output.body, context),
|
|
656
|
+
};
|
|
657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
+
switch (errorCode) {
|
|
659
|
+
case "InvalidArn":
|
|
660
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
661
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
662
|
+
case "InvalidToken":
|
|
663
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
664
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
665
|
+
case "StateMachineDoesNotExist":
|
|
666
|
+
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
667
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
668
|
+
case "StateMachineTypeNotSupported":
|
|
669
|
+
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
670
|
+
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
671
|
+
default:
|
|
672
|
+
const parsedBody = parsedOutput.body;
|
|
673
|
+
throwDefaultError({
|
|
674
|
+
output,
|
|
675
|
+
parsedBody,
|
|
676
|
+
exceptionCtor: __BaseException,
|
|
677
|
+
errorCode,
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
export const deserializeAws_json1_0ListStateMachinesCommand = async (output, context) => {
|
|
682
|
+
if (output.statusCode >= 300) {
|
|
683
|
+
return deserializeAws_json1_0ListStateMachinesCommandError(output, context);
|
|
684
|
+
}
|
|
685
|
+
const data = await parseBody(output.body, context);
|
|
686
|
+
let contents = {};
|
|
687
|
+
contents = deserializeAws_json1_0ListStateMachinesOutput(data, context);
|
|
688
|
+
const response = {
|
|
689
|
+
$metadata: deserializeMetadata(output),
|
|
690
|
+
...contents,
|
|
691
|
+
};
|
|
692
|
+
return Promise.resolve(response);
|
|
693
|
+
};
|
|
694
|
+
const deserializeAws_json1_0ListStateMachinesCommandError = async (output, context) => {
|
|
695
|
+
const parsedOutput = {
|
|
696
|
+
...output,
|
|
697
|
+
body: await parseErrorBody(output.body, context),
|
|
698
|
+
};
|
|
699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
+
switch (errorCode) {
|
|
701
|
+
case "InvalidToken":
|
|
702
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
703
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
704
|
+
default:
|
|
705
|
+
const parsedBody = parsedOutput.body;
|
|
706
|
+
throwDefaultError({
|
|
707
|
+
output,
|
|
708
|
+
parsedBody,
|
|
709
|
+
exceptionCtor: __BaseException,
|
|
710
|
+
errorCode,
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
export const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode >= 300) {
|
|
716
|
+
return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const data = await parseBody(output.body, context);
|
|
719
|
+
let contents = {};
|
|
720
|
+
contents = deserializeAws_json1_0ListTagsForResourceOutput(data, context);
|
|
721
|
+
const response = {
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
...contents,
|
|
724
|
+
};
|
|
725
|
+
return Promise.resolve(response);
|
|
726
|
+
};
|
|
727
|
+
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
728
|
+
const parsedOutput = {
|
|
729
|
+
...output,
|
|
730
|
+
body: await parseErrorBody(output.body, context),
|
|
731
|
+
};
|
|
732
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
+
switch (errorCode) {
|
|
734
|
+
case "InvalidArn":
|
|
735
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
736
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
737
|
+
case "ResourceNotFound":
|
|
738
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
739
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
740
|
+
default:
|
|
741
|
+
const parsedBody = parsedOutput.body;
|
|
742
|
+
throwDefaultError({
|
|
743
|
+
output,
|
|
744
|
+
parsedBody,
|
|
745
|
+
exceptionCtor: __BaseException,
|
|
746
|
+
errorCode,
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
export const deserializeAws_json1_0SendTaskFailureCommand = async (output, context) => {
|
|
751
|
+
if (output.statusCode >= 300) {
|
|
752
|
+
return deserializeAws_json1_0SendTaskFailureCommandError(output, context);
|
|
753
|
+
}
|
|
754
|
+
const data = await parseBody(output.body, context);
|
|
755
|
+
let contents = {};
|
|
756
|
+
contents = deserializeAws_json1_0SendTaskFailureOutput(data, context);
|
|
757
|
+
const response = {
|
|
758
|
+
$metadata: deserializeMetadata(output),
|
|
759
|
+
...contents,
|
|
760
|
+
};
|
|
761
|
+
return Promise.resolve(response);
|
|
762
|
+
};
|
|
763
|
+
const deserializeAws_json1_0SendTaskFailureCommandError = async (output, context) => {
|
|
764
|
+
const parsedOutput = {
|
|
765
|
+
...output,
|
|
766
|
+
body: await parseErrorBody(output.body, context),
|
|
767
|
+
};
|
|
768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
+
switch (errorCode) {
|
|
770
|
+
case "InvalidToken":
|
|
771
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
772
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
773
|
+
case "TaskDoesNotExist":
|
|
774
|
+
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
775
|
+
throw await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context);
|
|
776
|
+
case "TaskTimedOut":
|
|
777
|
+
case "com.amazonaws.sfn#TaskTimedOut":
|
|
778
|
+
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
779
|
+
default:
|
|
780
|
+
const parsedBody = parsedOutput.body;
|
|
781
|
+
throwDefaultError({
|
|
782
|
+
output,
|
|
783
|
+
parsedBody,
|
|
784
|
+
exceptionCtor: __BaseException,
|
|
785
|
+
errorCode,
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
export const deserializeAws_json1_0SendTaskHeartbeatCommand = async (output, context) => {
|
|
790
|
+
if (output.statusCode >= 300) {
|
|
791
|
+
return deserializeAws_json1_0SendTaskHeartbeatCommandError(output, context);
|
|
792
|
+
}
|
|
793
|
+
const data = await parseBody(output.body, context);
|
|
794
|
+
let contents = {};
|
|
795
|
+
contents = deserializeAws_json1_0SendTaskHeartbeatOutput(data, context);
|
|
796
|
+
const response = {
|
|
797
|
+
$metadata: deserializeMetadata(output),
|
|
798
|
+
...contents,
|
|
799
|
+
};
|
|
800
|
+
return Promise.resolve(response);
|
|
801
|
+
};
|
|
802
|
+
const deserializeAws_json1_0SendTaskHeartbeatCommandError = async (output, context) => {
|
|
803
|
+
const parsedOutput = {
|
|
804
|
+
...output,
|
|
805
|
+
body: await parseErrorBody(output.body, context),
|
|
806
|
+
};
|
|
807
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
+
switch (errorCode) {
|
|
809
|
+
case "InvalidToken":
|
|
810
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
811
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
812
|
+
case "TaskDoesNotExist":
|
|
813
|
+
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
814
|
+
throw await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context);
|
|
815
|
+
case "TaskTimedOut":
|
|
816
|
+
case "com.amazonaws.sfn#TaskTimedOut":
|
|
817
|
+
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
818
|
+
default:
|
|
819
|
+
const parsedBody = parsedOutput.body;
|
|
820
|
+
throwDefaultError({
|
|
821
|
+
output,
|
|
822
|
+
parsedBody,
|
|
823
|
+
exceptionCtor: __BaseException,
|
|
824
|
+
errorCode,
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
export const deserializeAws_json1_0SendTaskSuccessCommand = async (output, context) => {
|
|
829
|
+
if (output.statusCode >= 300) {
|
|
830
|
+
return deserializeAws_json1_0SendTaskSuccessCommandError(output, context);
|
|
831
|
+
}
|
|
832
|
+
const data = await parseBody(output.body, context);
|
|
833
|
+
let contents = {};
|
|
834
|
+
contents = deserializeAws_json1_0SendTaskSuccessOutput(data, context);
|
|
835
|
+
const response = {
|
|
836
|
+
$metadata: deserializeMetadata(output),
|
|
837
|
+
...contents,
|
|
838
|
+
};
|
|
839
|
+
return Promise.resolve(response);
|
|
840
|
+
};
|
|
841
|
+
const deserializeAws_json1_0SendTaskSuccessCommandError = async (output, context) => {
|
|
842
|
+
const parsedOutput = {
|
|
843
|
+
...output,
|
|
844
|
+
body: await parseErrorBody(output.body, context),
|
|
845
|
+
};
|
|
846
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
|
+
switch (errorCode) {
|
|
848
|
+
case "InvalidOutput":
|
|
849
|
+
case "com.amazonaws.sfn#InvalidOutput":
|
|
850
|
+
throw await deserializeAws_json1_0InvalidOutputResponse(parsedOutput, context);
|
|
851
|
+
case "InvalidToken":
|
|
852
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
853
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
854
|
+
case "TaskDoesNotExist":
|
|
855
|
+
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
856
|
+
throw await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context);
|
|
857
|
+
case "TaskTimedOut":
|
|
858
|
+
case "com.amazonaws.sfn#TaskTimedOut":
|
|
859
|
+
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
860
|
+
default:
|
|
861
|
+
const parsedBody = parsedOutput.body;
|
|
862
|
+
throwDefaultError({
|
|
863
|
+
output,
|
|
864
|
+
parsedBody,
|
|
865
|
+
exceptionCtor: __BaseException,
|
|
866
|
+
errorCode,
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
export const deserializeAws_json1_0StartExecutionCommand = async (output, context) => {
|
|
871
|
+
if (output.statusCode >= 300) {
|
|
872
|
+
return deserializeAws_json1_0StartExecutionCommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
const data = await parseBody(output.body, context);
|
|
875
|
+
let contents = {};
|
|
876
|
+
contents = deserializeAws_json1_0StartExecutionOutput(data, context);
|
|
877
|
+
const response = {
|
|
878
|
+
$metadata: deserializeMetadata(output),
|
|
879
|
+
...contents,
|
|
880
|
+
};
|
|
881
|
+
return Promise.resolve(response);
|
|
882
|
+
};
|
|
883
|
+
const deserializeAws_json1_0StartExecutionCommandError = async (output, context) => {
|
|
884
|
+
const parsedOutput = {
|
|
885
|
+
...output,
|
|
886
|
+
body: await parseErrorBody(output.body, context),
|
|
887
|
+
};
|
|
888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
+
switch (errorCode) {
|
|
890
|
+
case "ExecutionAlreadyExists":
|
|
891
|
+
case "com.amazonaws.sfn#ExecutionAlreadyExists":
|
|
892
|
+
throw await deserializeAws_json1_0ExecutionAlreadyExistsResponse(parsedOutput, context);
|
|
893
|
+
case "ExecutionLimitExceeded":
|
|
894
|
+
case "com.amazonaws.sfn#ExecutionLimitExceeded":
|
|
895
|
+
throw await deserializeAws_json1_0ExecutionLimitExceededResponse(parsedOutput, context);
|
|
896
|
+
case "InvalidArn":
|
|
897
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
898
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
899
|
+
case "InvalidExecutionInput":
|
|
900
|
+
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
901
|
+
throw await deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context);
|
|
902
|
+
case "InvalidName":
|
|
903
|
+
case "com.amazonaws.sfn#InvalidName":
|
|
904
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
905
|
+
case "StateMachineDeleting":
|
|
906
|
+
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
907
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
908
|
+
case "StateMachineDoesNotExist":
|
|
909
|
+
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
910
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
911
|
+
default:
|
|
912
|
+
const parsedBody = parsedOutput.body;
|
|
913
|
+
throwDefaultError({
|
|
914
|
+
output,
|
|
915
|
+
parsedBody,
|
|
916
|
+
exceptionCtor: __BaseException,
|
|
917
|
+
errorCode,
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
export const deserializeAws_json1_0StartSyncExecutionCommand = async (output, context) => {
|
|
922
|
+
if (output.statusCode >= 300) {
|
|
923
|
+
return deserializeAws_json1_0StartSyncExecutionCommandError(output, context);
|
|
924
|
+
}
|
|
925
|
+
const data = await parseBody(output.body, context);
|
|
926
|
+
let contents = {};
|
|
927
|
+
contents = deserializeAws_json1_0StartSyncExecutionOutput(data, context);
|
|
928
|
+
const response = {
|
|
929
|
+
$metadata: deserializeMetadata(output),
|
|
930
|
+
...contents,
|
|
931
|
+
};
|
|
932
|
+
return Promise.resolve(response);
|
|
933
|
+
};
|
|
934
|
+
const deserializeAws_json1_0StartSyncExecutionCommandError = async (output, context) => {
|
|
935
|
+
const parsedOutput = {
|
|
936
|
+
...output,
|
|
937
|
+
body: await parseErrorBody(output.body, context),
|
|
938
|
+
};
|
|
939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
+
switch (errorCode) {
|
|
941
|
+
case "InvalidArn":
|
|
942
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
943
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
944
|
+
case "InvalidExecutionInput":
|
|
945
|
+
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
946
|
+
throw await deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context);
|
|
947
|
+
case "InvalidName":
|
|
948
|
+
case "com.amazonaws.sfn#InvalidName":
|
|
949
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
950
|
+
case "StateMachineDeleting":
|
|
951
|
+
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
952
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
953
|
+
case "StateMachineDoesNotExist":
|
|
954
|
+
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
955
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
956
|
+
case "StateMachineTypeNotSupported":
|
|
957
|
+
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
958
|
+
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
959
|
+
default:
|
|
960
|
+
const parsedBody = parsedOutput.body;
|
|
961
|
+
throwDefaultError({
|
|
962
|
+
output,
|
|
963
|
+
parsedBody,
|
|
964
|
+
exceptionCtor: __BaseException,
|
|
965
|
+
errorCode,
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
};
|
|
969
|
+
export const deserializeAws_json1_0StopExecutionCommand = async (output, context) => {
|
|
970
|
+
if (output.statusCode >= 300) {
|
|
971
|
+
return deserializeAws_json1_0StopExecutionCommandError(output, context);
|
|
972
|
+
}
|
|
973
|
+
const data = await parseBody(output.body, context);
|
|
974
|
+
let contents = {};
|
|
975
|
+
contents = deserializeAws_json1_0StopExecutionOutput(data, context);
|
|
976
|
+
const response = {
|
|
977
|
+
$metadata: deserializeMetadata(output),
|
|
978
|
+
...contents,
|
|
979
|
+
};
|
|
980
|
+
return Promise.resolve(response);
|
|
981
|
+
};
|
|
982
|
+
const deserializeAws_json1_0StopExecutionCommandError = async (output, context) => {
|
|
983
|
+
const parsedOutput = {
|
|
984
|
+
...output,
|
|
985
|
+
body: await parseErrorBody(output.body, context),
|
|
986
|
+
};
|
|
987
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
|
+
switch (errorCode) {
|
|
989
|
+
case "ExecutionDoesNotExist":
|
|
990
|
+
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
991
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
992
|
+
case "InvalidArn":
|
|
993
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
994
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
995
|
+
default:
|
|
996
|
+
const parsedBody = parsedOutput.body;
|
|
997
|
+
throwDefaultError({
|
|
998
|
+
output,
|
|
999
|
+
parsedBody,
|
|
1000
|
+
exceptionCtor: __BaseException,
|
|
1001
|
+
errorCode,
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
export const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
1006
|
+
if (output.statusCode >= 300) {
|
|
1007
|
+
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
1008
|
+
}
|
|
1009
|
+
const data = await parseBody(output.body, context);
|
|
1010
|
+
let contents = {};
|
|
1011
|
+
contents = deserializeAws_json1_0TagResourceOutput(data, context);
|
|
1012
|
+
const response = {
|
|
1013
|
+
$metadata: deserializeMetadata(output),
|
|
1014
|
+
...contents,
|
|
1015
|
+
};
|
|
1016
|
+
return Promise.resolve(response);
|
|
1017
|
+
};
|
|
1018
|
+
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
1019
|
+
const parsedOutput = {
|
|
1020
|
+
...output,
|
|
1021
|
+
body: await parseErrorBody(output.body, context),
|
|
1022
|
+
};
|
|
1023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
+
switch (errorCode) {
|
|
1025
|
+
case "InvalidArn":
|
|
1026
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
1027
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1028
|
+
case "ResourceNotFound":
|
|
1029
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1030
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1031
|
+
case "TooManyTags":
|
|
1032
|
+
case "com.amazonaws.sfn#TooManyTags":
|
|
1033
|
+
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
1034
|
+
default:
|
|
1035
|
+
const parsedBody = parsedOutput.body;
|
|
1036
|
+
throwDefaultError({
|
|
1037
|
+
output,
|
|
1038
|
+
parsedBody,
|
|
1039
|
+
exceptionCtor: __BaseException,
|
|
1040
|
+
errorCode,
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
export const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
1045
|
+
if (output.statusCode >= 300) {
|
|
1046
|
+
return deserializeAws_json1_0UntagResourceCommandError(output, context);
|
|
1047
|
+
}
|
|
1048
|
+
const data = await parseBody(output.body, context);
|
|
1049
|
+
let contents = {};
|
|
1050
|
+
contents = deserializeAws_json1_0UntagResourceOutput(data, context);
|
|
1051
|
+
const response = {
|
|
1052
|
+
$metadata: deserializeMetadata(output),
|
|
1053
|
+
...contents,
|
|
1054
|
+
};
|
|
1055
|
+
return Promise.resolve(response);
|
|
1056
|
+
};
|
|
1057
|
+
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
1058
|
+
const parsedOutput = {
|
|
1059
|
+
...output,
|
|
1060
|
+
body: await parseErrorBody(output.body, context),
|
|
1061
|
+
};
|
|
1062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
+
switch (errorCode) {
|
|
1064
|
+
case "InvalidArn":
|
|
1065
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
1066
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1067
|
+
case "ResourceNotFound":
|
|
1068
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1069
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1070
|
+
default:
|
|
1071
|
+
const parsedBody = parsedOutput.body;
|
|
1072
|
+
throwDefaultError({
|
|
1073
|
+
output,
|
|
1074
|
+
parsedBody,
|
|
1075
|
+
exceptionCtor: __BaseException,
|
|
1076
|
+
errorCode,
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
export const deserializeAws_json1_0UpdateStateMachineCommand = async (output, context) => {
|
|
1081
|
+
if (output.statusCode >= 300) {
|
|
1082
|
+
return deserializeAws_json1_0UpdateStateMachineCommandError(output, context);
|
|
1083
|
+
}
|
|
1084
|
+
const data = await parseBody(output.body, context);
|
|
1085
|
+
let contents = {};
|
|
1086
|
+
contents = deserializeAws_json1_0UpdateStateMachineOutput(data, context);
|
|
1087
|
+
const response = {
|
|
1088
|
+
$metadata: deserializeMetadata(output),
|
|
1089
|
+
...contents,
|
|
1090
|
+
};
|
|
1091
|
+
return Promise.resolve(response);
|
|
1092
|
+
};
|
|
1093
|
+
const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, context) => {
|
|
1094
|
+
const parsedOutput = {
|
|
1095
|
+
...output,
|
|
1096
|
+
body: await parseErrorBody(output.body, context),
|
|
1097
|
+
};
|
|
1098
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
|
+
switch (errorCode) {
|
|
1100
|
+
case "InvalidArn":
|
|
1101
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
1102
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1103
|
+
case "InvalidDefinition":
|
|
1104
|
+
case "com.amazonaws.sfn#InvalidDefinition":
|
|
1105
|
+
throw await deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context);
|
|
1106
|
+
case "InvalidLoggingConfiguration":
|
|
1107
|
+
case "com.amazonaws.sfn#InvalidLoggingConfiguration":
|
|
1108
|
+
throw await deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context);
|
|
1109
|
+
case "InvalidTracingConfiguration":
|
|
1110
|
+
case "com.amazonaws.sfn#InvalidTracingConfiguration":
|
|
1111
|
+
throw await deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context);
|
|
1112
|
+
case "MissingRequiredParameter":
|
|
1113
|
+
case "com.amazonaws.sfn#MissingRequiredParameter":
|
|
1114
|
+
throw await deserializeAws_json1_0MissingRequiredParameterResponse(parsedOutput, context);
|
|
1115
|
+
case "StateMachineDeleting":
|
|
1116
|
+
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1117
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
1118
|
+
case "StateMachineDoesNotExist":
|
|
1119
|
+
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1120
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1121
|
+
default:
|
|
1122
|
+
const parsedBody = parsedOutput.body;
|
|
1123
|
+
throwDefaultError({
|
|
1124
|
+
output,
|
|
1125
|
+
parsedBody,
|
|
1126
|
+
exceptionCtor: __BaseException,
|
|
1127
|
+
errorCode,
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
const deserializeAws_json1_0ActivityDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1132
|
+
const body = parsedOutput.body;
|
|
1133
|
+
const deserialized = deserializeAws_json1_0ActivityDoesNotExist(body, context);
|
|
1134
|
+
const exception = new ActivityDoesNotExist({
|
|
1135
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1136
|
+
...deserialized,
|
|
1137
|
+
});
|
|
1138
|
+
return __decorateServiceException(exception, body);
|
|
1139
|
+
};
|
|
1140
|
+
const deserializeAws_json1_0ActivityLimitExceededResponse = async (parsedOutput, context) => {
|
|
1141
|
+
const body = parsedOutput.body;
|
|
1142
|
+
const deserialized = deserializeAws_json1_0ActivityLimitExceeded(body, context);
|
|
1143
|
+
const exception = new ActivityLimitExceeded({
|
|
1144
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1145
|
+
...deserialized,
|
|
1146
|
+
});
|
|
1147
|
+
return __decorateServiceException(exception, body);
|
|
1148
|
+
};
|
|
1149
|
+
const deserializeAws_json1_0ActivityWorkerLimitExceededResponse = async (parsedOutput, context) => {
|
|
1150
|
+
const body = parsedOutput.body;
|
|
1151
|
+
const deserialized = deserializeAws_json1_0ActivityWorkerLimitExceeded(body, context);
|
|
1152
|
+
const exception = new ActivityWorkerLimitExceeded({
|
|
1153
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1154
|
+
...deserialized,
|
|
1155
|
+
});
|
|
1156
|
+
return __decorateServiceException(exception, body);
|
|
1157
|
+
};
|
|
1158
|
+
const deserializeAws_json1_0ExecutionAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
1159
|
+
const body = parsedOutput.body;
|
|
1160
|
+
const deserialized = deserializeAws_json1_0ExecutionAlreadyExists(body, context);
|
|
1161
|
+
const exception = new ExecutionAlreadyExists({
|
|
1162
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1163
|
+
...deserialized,
|
|
1164
|
+
});
|
|
1165
|
+
return __decorateServiceException(exception, body);
|
|
1166
|
+
};
|
|
1167
|
+
const deserializeAws_json1_0ExecutionDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1168
|
+
const body = parsedOutput.body;
|
|
1169
|
+
const deserialized = deserializeAws_json1_0ExecutionDoesNotExist(body, context);
|
|
1170
|
+
const exception = new ExecutionDoesNotExist({
|
|
1171
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1172
|
+
...deserialized,
|
|
1173
|
+
});
|
|
1174
|
+
return __decorateServiceException(exception, body);
|
|
1175
|
+
};
|
|
1176
|
+
const deserializeAws_json1_0ExecutionLimitExceededResponse = async (parsedOutput, context) => {
|
|
1177
|
+
const body = parsedOutput.body;
|
|
1178
|
+
const deserialized = deserializeAws_json1_0ExecutionLimitExceeded(body, context);
|
|
1179
|
+
const exception = new ExecutionLimitExceeded({
|
|
1180
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1181
|
+
...deserialized,
|
|
1182
|
+
});
|
|
1183
|
+
return __decorateServiceException(exception, body);
|
|
1184
|
+
};
|
|
1185
|
+
const deserializeAws_json1_0InvalidArnResponse = async (parsedOutput, context) => {
|
|
1186
|
+
const body = parsedOutput.body;
|
|
1187
|
+
const deserialized = deserializeAws_json1_0InvalidArn(body, context);
|
|
1188
|
+
const exception = new InvalidArn({
|
|
1189
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1190
|
+
...deserialized,
|
|
1191
|
+
});
|
|
1192
|
+
return __decorateServiceException(exception, body);
|
|
1193
|
+
};
|
|
1194
|
+
const deserializeAws_json1_0InvalidDefinitionResponse = async (parsedOutput, context) => {
|
|
1195
|
+
const body = parsedOutput.body;
|
|
1196
|
+
const deserialized = deserializeAws_json1_0InvalidDefinition(body, context);
|
|
1197
|
+
const exception = new InvalidDefinition({
|
|
1198
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
|
+
...deserialized,
|
|
1200
|
+
});
|
|
1201
|
+
return __decorateServiceException(exception, body);
|
|
1202
|
+
};
|
|
1203
|
+
const deserializeAws_json1_0InvalidExecutionInputResponse = async (parsedOutput, context) => {
|
|
1204
|
+
const body = parsedOutput.body;
|
|
1205
|
+
const deserialized = deserializeAws_json1_0InvalidExecutionInput(body, context);
|
|
1206
|
+
const exception = new InvalidExecutionInput({
|
|
1207
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1208
|
+
...deserialized,
|
|
1209
|
+
});
|
|
1210
|
+
return __decorateServiceException(exception, body);
|
|
1211
|
+
};
|
|
1212
|
+
const deserializeAws_json1_0InvalidLoggingConfigurationResponse = async (parsedOutput, context) => {
|
|
1213
|
+
const body = parsedOutput.body;
|
|
1214
|
+
const deserialized = deserializeAws_json1_0InvalidLoggingConfiguration(body, context);
|
|
1215
|
+
const exception = new InvalidLoggingConfiguration({
|
|
1216
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1217
|
+
...deserialized,
|
|
1218
|
+
});
|
|
1219
|
+
return __decorateServiceException(exception, body);
|
|
1220
|
+
};
|
|
1221
|
+
const deserializeAws_json1_0InvalidNameResponse = async (parsedOutput, context) => {
|
|
1222
|
+
const body = parsedOutput.body;
|
|
1223
|
+
const deserialized = deserializeAws_json1_0InvalidName(body, context);
|
|
1224
|
+
const exception = new InvalidName({
|
|
1225
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1226
|
+
...deserialized,
|
|
1227
|
+
});
|
|
1228
|
+
return __decorateServiceException(exception, body);
|
|
1229
|
+
};
|
|
1230
|
+
const deserializeAws_json1_0InvalidOutputResponse = async (parsedOutput, context) => {
|
|
1231
|
+
const body = parsedOutput.body;
|
|
1232
|
+
const deserialized = deserializeAws_json1_0InvalidOutput(body, context);
|
|
1233
|
+
const exception = new InvalidOutput({
|
|
1234
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1235
|
+
...deserialized,
|
|
1236
|
+
});
|
|
1237
|
+
return __decorateServiceException(exception, body);
|
|
1238
|
+
};
|
|
1239
|
+
const deserializeAws_json1_0InvalidTokenResponse = async (parsedOutput, context) => {
|
|
1240
|
+
const body = parsedOutput.body;
|
|
1241
|
+
const deserialized = deserializeAws_json1_0InvalidToken(body, context);
|
|
1242
|
+
const exception = new InvalidToken({
|
|
1243
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1244
|
+
...deserialized,
|
|
1245
|
+
});
|
|
1246
|
+
return __decorateServiceException(exception, body);
|
|
1247
|
+
};
|
|
1248
|
+
const deserializeAws_json1_0InvalidTracingConfigurationResponse = async (parsedOutput, context) => {
|
|
1249
|
+
const body = parsedOutput.body;
|
|
1250
|
+
const deserialized = deserializeAws_json1_0InvalidTracingConfiguration(body, context);
|
|
1251
|
+
const exception = new InvalidTracingConfiguration({
|
|
1252
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
|
+
...deserialized,
|
|
1254
|
+
});
|
|
1255
|
+
return __decorateServiceException(exception, body);
|
|
1256
|
+
};
|
|
1257
|
+
const deserializeAws_json1_0MissingRequiredParameterResponse = async (parsedOutput, context) => {
|
|
1258
|
+
const body = parsedOutput.body;
|
|
1259
|
+
const deserialized = deserializeAws_json1_0MissingRequiredParameter(body, context);
|
|
1260
|
+
const exception = new MissingRequiredParameter({
|
|
1261
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
|
+
...deserialized,
|
|
1263
|
+
});
|
|
1264
|
+
return __decorateServiceException(exception, body);
|
|
1265
|
+
};
|
|
1266
|
+
const deserializeAws_json1_0ResourceNotFoundResponse = async (parsedOutput, context) => {
|
|
1267
|
+
const body = parsedOutput.body;
|
|
1268
|
+
const deserialized = deserializeAws_json1_0ResourceNotFound(body, context);
|
|
1269
|
+
const exception = new ResourceNotFound({
|
|
1270
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1271
|
+
...deserialized,
|
|
1272
|
+
});
|
|
1273
|
+
return __decorateServiceException(exception, body);
|
|
1274
|
+
};
|
|
1275
|
+
const deserializeAws_json1_0StateMachineAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
1276
|
+
const body = parsedOutput.body;
|
|
1277
|
+
const deserialized = deserializeAws_json1_0StateMachineAlreadyExists(body, context);
|
|
1278
|
+
const exception = new StateMachineAlreadyExists({
|
|
1279
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1280
|
+
...deserialized,
|
|
969
1281
|
});
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
}
|
|
979
|
-
return [4, parseBody(output.body, context)];
|
|
980
|
-
case 1:
|
|
981
|
-
data = _a.sent();
|
|
982
|
-
contents = {};
|
|
983
|
-
contents = deserializeAws_json1_0ListStateMachinesOutput(data, context);
|
|
984
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
985
|
-
return [2, Promise.resolve(response)];
|
|
986
|
-
}
|
|
987
|
-
});
|
|
988
|
-
}); };
|
|
989
|
-
var deserializeAws_json1_0ListStateMachinesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
990
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
991
|
-
var _c;
|
|
992
|
-
return __generator(this, function (_d) {
|
|
993
|
-
switch (_d.label) {
|
|
994
|
-
case 0:
|
|
995
|
-
_a = [__assign({}, output)];
|
|
996
|
-
_c = {};
|
|
997
|
-
return [4, parseErrorBody(output.body, context)];
|
|
998
|
-
case 1:
|
|
999
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1000
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
-
_b = errorCode;
|
|
1002
|
-
switch (_b) {
|
|
1003
|
-
case "InvalidToken": return [3, 2];
|
|
1004
|
-
case "com.amazonaws.sfn#InvalidToken": return [3, 2];
|
|
1005
|
-
}
|
|
1006
|
-
return [3, 4];
|
|
1007
|
-
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1008
|
-
case 3: throw _d.sent();
|
|
1009
|
-
case 4:
|
|
1010
|
-
parsedBody = parsedOutput.body;
|
|
1011
|
-
throwDefaultError({
|
|
1012
|
-
output: output,
|
|
1013
|
-
parsedBody: parsedBody,
|
|
1014
|
-
exceptionCtor: __BaseException,
|
|
1015
|
-
errorCode: errorCode,
|
|
1016
|
-
});
|
|
1017
|
-
_d.label = 5;
|
|
1018
|
-
case 5: return [2];
|
|
1019
|
-
}
|
|
1020
|
-
});
|
|
1021
|
-
}); };
|
|
1022
|
-
export var deserializeAws_json1_0ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1023
|
-
var data, contents, response;
|
|
1024
|
-
return __generator(this, function (_a) {
|
|
1025
|
-
switch (_a.label) {
|
|
1026
|
-
case 0:
|
|
1027
|
-
if (output.statusCode >= 300) {
|
|
1028
|
-
return [2, deserializeAws_json1_0ListTagsForResourceCommandError(output, context)];
|
|
1029
|
-
}
|
|
1030
|
-
return [4, parseBody(output.body, context)];
|
|
1031
|
-
case 1:
|
|
1032
|
-
data = _a.sent();
|
|
1033
|
-
contents = {};
|
|
1034
|
-
contents = deserializeAws_json1_0ListTagsForResourceOutput(data, context);
|
|
1035
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1036
|
-
return [2, Promise.resolve(response)];
|
|
1037
|
-
}
|
|
1038
|
-
});
|
|
1039
|
-
}); };
|
|
1040
|
-
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1041
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1042
|
-
var _c;
|
|
1043
|
-
return __generator(this, function (_d) {
|
|
1044
|
-
switch (_d.label) {
|
|
1045
|
-
case 0:
|
|
1046
|
-
_a = [__assign({}, output)];
|
|
1047
|
-
_c = {};
|
|
1048
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1049
|
-
case 1:
|
|
1050
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1051
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
-
_b = errorCode;
|
|
1053
|
-
switch (_b) {
|
|
1054
|
-
case "InvalidArn": return [3, 2];
|
|
1055
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
1056
|
-
case "ResourceNotFound": return [3, 4];
|
|
1057
|
-
case "com.amazonaws.sfn#ResourceNotFound": return [3, 4];
|
|
1058
|
-
}
|
|
1059
|
-
return [3, 6];
|
|
1060
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1061
|
-
case 3: throw _d.sent();
|
|
1062
|
-
case 4: return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1063
|
-
case 5: throw _d.sent();
|
|
1064
|
-
case 6:
|
|
1065
|
-
parsedBody = parsedOutput.body;
|
|
1066
|
-
throwDefaultError({
|
|
1067
|
-
output: output,
|
|
1068
|
-
parsedBody: parsedBody,
|
|
1069
|
-
exceptionCtor: __BaseException,
|
|
1070
|
-
errorCode: errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
_d.label = 7;
|
|
1073
|
-
case 7: return [2];
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
}); };
|
|
1077
|
-
export var deserializeAws_json1_0SendTaskFailureCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1078
|
-
var data, contents, response;
|
|
1079
|
-
return __generator(this, function (_a) {
|
|
1080
|
-
switch (_a.label) {
|
|
1081
|
-
case 0:
|
|
1082
|
-
if (output.statusCode >= 300) {
|
|
1083
|
-
return [2, deserializeAws_json1_0SendTaskFailureCommandError(output, context)];
|
|
1084
|
-
}
|
|
1085
|
-
return [4, parseBody(output.body, context)];
|
|
1086
|
-
case 1:
|
|
1087
|
-
data = _a.sent();
|
|
1088
|
-
contents = {};
|
|
1089
|
-
contents = deserializeAws_json1_0SendTaskFailureOutput(data, context);
|
|
1090
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1091
|
-
return [2, Promise.resolve(response)];
|
|
1092
|
-
}
|
|
1093
|
-
});
|
|
1094
|
-
}); };
|
|
1095
|
-
var deserializeAws_json1_0SendTaskFailureCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1096
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1097
|
-
var _c;
|
|
1098
|
-
return __generator(this, function (_d) {
|
|
1099
|
-
switch (_d.label) {
|
|
1100
|
-
case 0:
|
|
1101
|
-
_a = [__assign({}, output)];
|
|
1102
|
-
_c = {};
|
|
1103
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1104
|
-
case 1:
|
|
1105
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
-
_b = errorCode;
|
|
1108
|
-
switch (_b) {
|
|
1109
|
-
case "InvalidToken": return [3, 2];
|
|
1110
|
-
case "com.amazonaws.sfn#InvalidToken": return [3, 2];
|
|
1111
|
-
case "TaskDoesNotExist": return [3, 4];
|
|
1112
|
-
case "com.amazonaws.sfn#TaskDoesNotExist": return [3, 4];
|
|
1113
|
-
case "TaskTimedOut": return [3, 6];
|
|
1114
|
-
case "com.amazonaws.sfn#TaskTimedOut": return [3, 6];
|
|
1115
|
-
}
|
|
1116
|
-
return [3, 8];
|
|
1117
|
-
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1118
|
-
case 3: throw _d.sent();
|
|
1119
|
-
case 4: return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1120
|
-
case 5: throw _d.sent();
|
|
1121
|
-
case 6: return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1122
|
-
case 7: throw _d.sent();
|
|
1123
|
-
case 8:
|
|
1124
|
-
parsedBody = parsedOutput.body;
|
|
1125
|
-
throwDefaultError({
|
|
1126
|
-
output: output,
|
|
1127
|
-
parsedBody: parsedBody,
|
|
1128
|
-
exceptionCtor: __BaseException,
|
|
1129
|
-
errorCode: errorCode,
|
|
1130
|
-
});
|
|
1131
|
-
_d.label = 9;
|
|
1132
|
-
case 9: return [2];
|
|
1133
|
-
}
|
|
1134
|
-
});
|
|
1135
|
-
}); };
|
|
1136
|
-
export var deserializeAws_json1_0SendTaskHeartbeatCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1137
|
-
var data, contents, response;
|
|
1138
|
-
return __generator(this, function (_a) {
|
|
1139
|
-
switch (_a.label) {
|
|
1140
|
-
case 0:
|
|
1141
|
-
if (output.statusCode >= 300) {
|
|
1142
|
-
return [2, deserializeAws_json1_0SendTaskHeartbeatCommandError(output, context)];
|
|
1143
|
-
}
|
|
1144
|
-
return [4, parseBody(output.body, context)];
|
|
1145
|
-
case 1:
|
|
1146
|
-
data = _a.sent();
|
|
1147
|
-
contents = {};
|
|
1148
|
-
contents = deserializeAws_json1_0SendTaskHeartbeatOutput(data, context);
|
|
1149
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1150
|
-
return [2, Promise.resolve(response)];
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
}); };
|
|
1154
|
-
var deserializeAws_json1_0SendTaskHeartbeatCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1155
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1156
|
-
var _c;
|
|
1157
|
-
return __generator(this, function (_d) {
|
|
1158
|
-
switch (_d.label) {
|
|
1159
|
-
case 0:
|
|
1160
|
-
_a = [__assign({}, output)];
|
|
1161
|
-
_c = {};
|
|
1162
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1163
|
-
case 1:
|
|
1164
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1165
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
_b = errorCode;
|
|
1167
|
-
switch (_b) {
|
|
1168
|
-
case "InvalidToken": return [3, 2];
|
|
1169
|
-
case "com.amazonaws.sfn#InvalidToken": return [3, 2];
|
|
1170
|
-
case "TaskDoesNotExist": return [3, 4];
|
|
1171
|
-
case "com.amazonaws.sfn#TaskDoesNotExist": return [3, 4];
|
|
1172
|
-
case "TaskTimedOut": return [3, 6];
|
|
1173
|
-
case "com.amazonaws.sfn#TaskTimedOut": return [3, 6];
|
|
1174
|
-
}
|
|
1175
|
-
return [3, 8];
|
|
1176
|
-
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1177
|
-
case 3: throw _d.sent();
|
|
1178
|
-
case 4: return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1179
|
-
case 5: throw _d.sent();
|
|
1180
|
-
case 6: return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1181
|
-
case 7: throw _d.sent();
|
|
1182
|
-
case 8:
|
|
1183
|
-
parsedBody = parsedOutput.body;
|
|
1184
|
-
throwDefaultError({
|
|
1185
|
-
output: output,
|
|
1186
|
-
parsedBody: parsedBody,
|
|
1187
|
-
exceptionCtor: __BaseException,
|
|
1188
|
-
errorCode: errorCode,
|
|
1189
|
-
});
|
|
1190
|
-
_d.label = 9;
|
|
1191
|
-
case 9: return [2];
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
}); };
|
|
1195
|
-
export var deserializeAws_json1_0SendTaskSuccessCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1196
|
-
var data, contents, response;
|
|
1197
|
-
return __generator(this, function (_a) {
|
|
1198
|
-
switch (_a.label) {
|
|
1199
|
-
case 0:
|
|
1200
|
-
if (output.statusCode >= 300) {
|
|
1201
|
-
return [2, deserializeAws_json1_0SendTaskSuccessCommandError(output, context)];
|
|
1202
|
-
}
|
|
1203
|
-
return [4, parseBody(output.body, context)];
|
|
1204
|
-
case 1:
|
|
1205
|
-
data = _a.sent();
|
|
1206
|
-
contents = {};
|
|
1207
|
-
contents = deserializeAws_json1_0SendTaskSuccessOutput(data, context);
|
|
1208
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1209
|
-
return [2, Promise.resolve(response)];
|
|
1210
|
-
}
|
|
1211
|
-
});
|
|
1212
|
-
}); };
|
|
1213
|
-
var deserializeAws_json1_0SendTaskSuccessCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1214
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1215
|
-
var _c;
|
|
1216
|
-
return __generator(this, function (_d) {
|
|
1217
|
-
switch (_d.label) {
|
|
1218
|
-
case 0:
|
|
1219
|
-
_a = [__assign({}, output)];
|
|
1220
|
-
_c = {};
|
|
1221
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1222
|
-
case 1:
|
|
1223
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1224
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
-
_b = errorCode;
|
|
1226
|
-
switch (_b) {
|
|
1227
|
-
case "InvalidOutput": return [3, 2];
|
|
1228
|
-
case "com.amazonaws.sfn#InvalidOutput": return [3, 2];
|
|
1229
|
-
case "InvalidToken": return [3, 4];
|
|
1230
|
-
case "com.amazonaws.sfn#InvalidToken": return [3, 4];
|
|
1231
|
-
case "TaskDoesNotExist": return [3, 6];
|
|
1232
|
-
case "com.amazonaws.sfn#TaskDoesNotExist": return [3, 6];
|
|
1233
|
-
case "TaskTimedOut": return [3, 8];
|
|
1234
|
-
case "com.amazonaws.sfn#TaskTimedOut": return [3, 8];
|
|
1235
|
-
}
|
|
1236
|
-
return [3, 10];
|
|
1237
|
-
case 2: return [4, deserializeAws_json1_0InvalidOutputResponse(parsedOutput, context)];
|
|
1238
|
-
case 3: throw _d.sent();
|
|
1239
|
-
case 4: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1240
|
-
case 5: throw _d.sent();
|
|
1241
|
-
case 6: return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1242
|
-
case 7: throw _d.sent();
|
|
1243
|
-
case 8: return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1244
|
-
case 9: throw _d.sent();
|
|
1245
|
-
case 10:
|
|
1246
|
-
parsedBody = parsedOutput.body;
|
|
1247
|
-
throwDefaultError({
|
|
1248
|
-
output: output,
|
|
1249
|
-
parsedBody: parsedBody,
|
|
1250
|
-
exceptionCtor: __BaseException,
|
|
1251
|
-
errorCode: errorCode,
|
|
1252
|
-
});
|
|
1253
|
-
_d.label = 11;
|
|
1254
|
-
case 11: return [2];
|
|
1255
|
-
}
|
|
1256
|
-
});
|
|
1257
|
-
}); };
|
|
1258
|
-
export var deserializeAws_json1_0StartExecutionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1259
|
-
var data, contents, response;
|
|
1260
|
-
return __generator(this, function (_a) {
|
|
1261
|
-
switch (_a.label) {
|
|
1262
|
-
case 0:
|
|
1263
|
-
if (output.statusCode >= 300) {
|
|
1264
|
-
return [2, deserializeAws_json1_0StartExecutionCommandError(output, context)];
|
|
1265
|
-
}
|
|
1266
|
-
return [4, parseBody(output.body, context)];
|
|
1267
|
-
case 1:
|
|
1268
|
-
data = _a.sent();
|
|
1269
|
-
contents = {};
|
|
1270
|
-
contents = deserializeAws_json1_0StartExecutionOutput(data, context);
|
|
1271
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1272
|
-
return [2, Promise.resolve(response)];
|
|
1273
|
-
}
|
|
1274
|
-
});
|
|
1275
|
-
}); };
|
|
1276
|
-
var deserializeAws_json1_0StartExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1277
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1278
|
-
var _c;
|
|
1279
|
-
return __generator(this, function (_d) {
|
|
1280
|
-
switch (_d.label) {
|
|
1281
|
-
case 0:
|
|
1282
|
-
_a = [__assign({}, output)];
|
|
1283
|
-
_c = {};
|
|
1284
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1285
|
-
case 1:
|
|
1286
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1287
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
-
_b = errorCode;
|
|
1289
|
-
switch (_b) {
|
|
1290
|
-
case "ExecutionAlreadyExists": return [3, 2];
|
|
1291
|
-
case "com.amazonaws.sfn#ExecutionAlreadyExists": return [3, 2];
|
|
1292
|
-
case "ExecutionLimitExceeded": return [3, 4];
|
|
1293
|
-
case "com.amazonaws.sfn#ExecutionLimitExceeded": return [3, 4];
|
|
1294
|
-
case "InvalidArn": return [3, 6];
|
|
1295
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 6];
|
|
1296
|
-
case "InvalidExecutionInput": return [3, 8];
|
|
1297
|
-
case "com.amazonaws.sfn#InvalidExecutionInput": return [3, 8];
|
|
1298
|
-
case "InvalidName": return [3, 10];
|
|
1299
|
-
case "com.amazonaws.sfn#InvalidName": return [3, 10];
|
|
1300
|
-
case "StateMachineDeleting": return [3, 12];
|
|
1301
|
-
case "com.amazonaws.sfn#StateMachineDeleting": return [3, 12];
|
|
1302
|
-
case "StateMachineDoesNotExist": return [3, 14];
|
|
1303
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 14];
|
|
1304
|
-
}
|
|
1305
|
-
return [3, 16];
|
|
1306
|
-
case 2: return [4, deserializeAws_json1_0ExecutionAlreadyExistsResponse(parsedOutput, context)];
|
|
1307
|
-
case 3: throw _d.sent();
|
|
1308
|
-
case 4: return [4, deserializeAws_json1_0ExecutionLimitExceededResponse(parsedOutput, context)];
|
|
1309
|
-
case 5: throw _d.sent();
|
|
1310
|
-
case 6: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1311
|
-
case 7: throw _d.sent();
|
|
1312
|
-
case 8: return [4, deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context)];
|
|
1313
|
-
case 9: throw _d.sent();
|
|
1314
|
-
case 10: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
1315
|
-
case 11: throw _d.sent();
|
|
1316
|
-
case 12: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1317
|
-
case 13: throw _d.sent();
|
|
1318
|
-
case 14: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1319
|
-
case 15: throw _d.sent();
|
|
1320
|
-
case 16:
|
|
1321
|
-
parsedBody = parsedOutput.body;
|
|
1322
|
-
throwDefaultError({
|
|
1323
|
-
output: output,
|
|
1324
|
-
parsedBody: parsedBody,
|
|
1325
|
-
exceptionCtor: __BaseException,
|
|
1326
|
-
errorCode: errorCode,
|
|
1327
|
-
});
|
|
1328
|
-
_d.label = 17;
|
|
1329
|
-
case 17: return [2];
|
|
1330
|
-
}
|
|
1331
|
-
});
|
|
1332
|
-
}); };
|
|
1333
|
-
export var deserializeAws_json1_0StartSyncExecutionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1334
|
-
var data, contents, response;
|
|
1335
|
-
return __generator(this, function (_a) {
|
|
1336
|
-
switch (_a.label) {
|
|
1337
|
-
case 0:
|
|
1338
|
-
if (output.statusCode >= 300) {
|
|
1339
|
-
return [2, deserializeAws_json1_0StartSyncExecutionCommandError(output, context)];
|
|
1340
|
-
}
|
|
1341
|
-
return [4, parseBody(output.body, context)];
|
|
1342
|
-
case 1:
|
|
1343
|
-
data = _a.sent();
|
|
1344
|
-
contents = {};
|
|
1345
|
-
contents = deserializeAws_json1_0StartSyncExecutionOutput(data, context);
|
|
1346
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1347
|
-
return [2, Promise.resolve(response)];
|
|
1348
|
-
}
|
|
1349
|
-
});
|
|
1350
|
-
}); };
|
|
1351
|
-
var deserializeAws_json1_0StartSyncExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1352
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1353
|
-
var _c;
|
|
1354
|
-
return __generator(this, function (_d) {
|
|
1355
|
-
switch (_d.label) {
|
|
1356
|
-
case 0:
|
|
1357
|
-
_a = [__assign({}, output)];
|
|
1358
|
-
_c = {};
|
|
1359
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1360
|
-
case 1:
|
|
1361
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1362
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
-
_b = errorCode;
|
|
1364
|
-
switch (_b) {
|
|
1365
|
-
case "InvalidArn": return [3, 2];
|
|
1366
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
1367
|
-
case "InvalidExecutionInput": return [3, 4];
|
|
1368
|
-
case "com.amazonaws.sfn#InvalidExecutionInput": return [3, 4];
|
|
1369
|
-
case "InvalidName": return [3, 6];
|
|
1370
|
-
case "com.amazonaws.sfn#InvalidName": return [3, 6];
|
|
1371
|
-
case "StateMachineDeleting": return [3, 8];
|
|
1372
|
-
case "com.amazonaws.sfn#StateMachineDeleting": return [3, 8];
|
|
1373
|
-
case "StateMachineDoesNotExist": return [3, 10];
|
|
1374
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 10];
|
|
1375
|
-
case "StateMachineTypeNotSupported": return [3, 12];
|
|
1376
|
-
case "com.amazonaws.sfn#StateMachineTypeNotSupported": return [3, 12];
|
|
1377
|
-
}
|
|
1378
|
-
return [3, 14];
|
|
1379
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1380
|
-
case 3: throw _d.sent();
|
|
1381
|
-
case 4: return [4, deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context)];
|
|
1382
|
-
case 5: throw _d.sent();
|
|
1383
|
-
case 6: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
1384
|
-
case 7: throw _d.sent();
|
|
1385
|
-
case 8: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1386
|
-
case 9: throw _d.sent();
|
|
1387
|
-
case 10: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1388
|
-
case 11: throw _d.sent();
|
|
1389
|
-
case 12: return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
1390
|
-
case 13: throw _d.sent();
|
|
1391
|
-
case 14:
|
|
1392
|
-
parsedBody = parsedOutput.body;
|
|
1393
|
-
throwDefaultError({
|
|
1394
|
-
output: output,
|
|
1395
|
-
parsedBody: parsedBody,
|
|
1396
|
-
exceptionCtor: __BaseException,
|
|
1397
|
-
errorCode: errorCode,
|
|
1398
|
-
});
|
|
1399
|
-
_d.label = 15;
|
|
1400
|
-
case 15: return [2];
|
|
1401
|
-
}
|
|
1402
|
-
});
|
|
1403
|
-
}); };
|
|
1404
|
-
export var deserializeAws_json1_0StopExecutionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1405
|
-
var data, contents, response;
|
|
1406
|
-
return __generator(this, function (_a) {
|
|
1407
|
-
switch (_a.label) {
|
|
1408
|
-
case 0:
|
|
1409
|
-
if (output.statusCode >= 300) {
|
|
1410
|
-
return [2, deserializeAws_json1_0StopExecutionCommandError(output, context)];
|
|
1411
|
-
}
|
|
1412
|
-
return [4, parseBody(output.body, context)];
|
|
1413
|
-
case 1:
|
|
1414
|
-
data = _a.sent();
|
|
1415
|
-
contents = {};
|
|
1416
|
-
contents = deserializeAws_json1_0StopExecutionOutput(data, context);
|
|
1417
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1418
|
-
return [2, Promise.resolve(response)];
|
|
1419
|
-
}
|
|
1420
|
-
});
|
|
1421
|
-
}); };
|
|
1422
|
-
var deserializeAws_json1_0StopExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1423
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1424
|
-
var _c;
|
|
1425
|
-
return __generator(this, function (_d) {
|
|
1426
|
-
switch (_d.label) {
|
|
1427
|
-
case 0:
|
|
1428
|
-
_a = [__assign({}, output)];
|
|
1429
|
-
_c = {};
|
|
1430
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1431
|
-
case 1:
|
|
1432
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
_b = errorCode;
|
|
1435
|
-
switch (_b) {
|
|
1436
|
-
case "ExecutionDoesNotExist": return [3, 2];
|
|
1437
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist": return [3, 2];
|
|
1438
|
-
case "InvalidArn": return [3, 4];
|
|
1439
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
1440
|
-
}
|
|
1441
|
-
return [3, 6];
|
|
1442
|
-
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
1443
|
-
case 3: throw _d.sent();
|
|
1444
|
-
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1445
|
-
case 5: throw _d.sent();
|
|
1446
|
-
case 6:
|
|
1447
|
-
parsedBody = parsedOutput.body;
|
|
1448
|
-
throwDefaultError({
|
|
1449
|
-
output: output,
|
|
1450
|
-
parsedBody: parsedBody,
|
|
1451
|
-
exceptionCtor: __BaseException,
|
|
1452
|
-
errorCode: errorCode,
|
|
1453
|
-
});
|
|
1454
|
-
_d.label = 7;
|
|
1455
|
-
case 7: return [2];
|
|
1456
|
-
}
|
|
1457
|
-
});
|
|
1458
|
-
}); };
|
|
1459
|
-
export var deserializeAws_json1_0TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1460
|
-
var data, contents, response;
|
|
1461
|
-
return __generator(this, function (_a) {
|
|
1462
|
-
switch (_a.label) {
|
|
1463
|
-
case 0:
|
|
1464
|
-
if (output.statusCode >= 300) {
|
|
1465
|
-
return [2, deserializeAws_json1_0TagResourceCommandError(output, context)];
|
|
1466
|
-
}
|
|
1467
|
-
return [4, parseBody(output.body, context)];
|
|
1468
|
-
case 1:
|
|
1469
|
-
data = _a.sent();
|
|
1470
|
-
contents = {};
|
|
1471
|
-
contents = deserializeAws_json1_0TagResourceOutput(data, context);
|
|
1472
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1473
|
-
return [2, Promise.resolve(response)];
|
|
1474
|
-
}
|
|
1475
|
-
});
|
|
1476
|
-
}); };
|
|
1477
|
-
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1478
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1479
|
-
var _c;
|
|
1480
|
-
return __generator(this, function (_d) {
|
|
1481
|
-
switch (_d.label) {
|
|
1482
|
-
case 0:
|
|
1483
|
-
_a = [__assign({}, output)];
|
|
1484
|
-
_c = {};
|
|
1485
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1486
|
-
case 1:
|
|
1487
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1488
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
_b = errorCode;
|
|
1490
|
-
switch (_b) {
|
|
1491
|
-
case "InvalidArn": return [3, 2];
|
|
1492
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
1493
|
-
case "ResourceNotFound": return [3, 4];
|
|
1494
|
-
case "com.amazonaws.sfn#ResourceNotFound": return [3, 4];
|
|
1495
|
-
case "TooManyTags": return [3, 6];
|
|
1496
|
-
case "com.amazonaws.sfn#TooManyTags": return [3, 6];
|
|
1497
|
-
}
|
|
1498
|
-
return [3, 8];
|
|
1499
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1500
|
-
case 3: throw _d.sent();
|
|
1501
|
-
case 4: return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1502
|
-
case 5: throw _d.sent();
|
|
1503
|
-
case 6: return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
1504
|
-
case 7: throw _d.sent();
|
|
1505
|
-
case 8:
|
|
1506
|
-
parsedBody = parsedOutput.body;
|
|
1507
|
-
throwDefaultError({
|
|
1508
|
-
output: output,
|
|
1509
|
-
parsedBody: parsedBody,
|
|
1510
|
-
exceptionCtor: __BaseException,
|
|
1511
|
-
errorCode: errorCode,
|
|
1512
|
-
});
|
|
1513
|
-
_d.label = 9;
|
|
1514
|
-
case 9: return [2];
|
|
1515
|
-
}
|
|
1516
|
-
});
|
|
1517
|
-
}); };
|
|
1518
|
-
export var deserializeAws_json1_0UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1519
|
-
var data, contents, response;
|
|
1520
|
-
return __generator(this, function (_a) {
|
|
1521
|
-
switch (_a.label) {
|
|
1522
|
-
case 0:
|
|
1523
|
-
if (output.statusCode >= 300) {
|
|
1524
|
-
return [2, deserializeAws_json1_0UntagResourceCommandError(output, context)];
|
|
1525
|
-
}
|
|
1526
|
-
return [4, parseBody(output.body, context)];
|
|
1527
|
-
case 1:
|
|
1528
|
-
data = _a.sent();
|
|
1529
|
-
contents = {};
|
|
1530
|
-
contents = deserializeAws_json1_0UntagResourceOutput(data, context);
|
|
1531
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1532
|
-
return [2, Promise.resolve(response)];
|
|
1533
|
-
}
|
|
1534
|
-
});
|
|
1535
|
-
}); };
|
|
1536
|
-
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1537
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1538
|
-
var _c;
|
|
1539
|
-
return __generator(this, function (_d) {
|
|
1540
|
-
switch (_d.label) {
|
|
1541
|
-
case 0:
|
|
1542
|
-
_a = [__assign({}, output)];
|
|
1543
|
-
_c = {};
|
|
1544
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1545
|
-
case 1:
|
|
1546
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
|
-
_b = errorCode;
|
|
1549
|
-
switch (_b) {
|
|
1550
|
-
case "InvalidArn": return [3, 2];
|
|
1551
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
1552
|
-
case "ResourceNotFound": return [3, 4];
|
|
1553
|
-
case "com.amazonaws.sfn#ResourceNotFound": return [3, 4];
|
|
1554
|
-
}
|
|
1555
|
-
return [3, 6];
|
|
1556
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1557
|
-
case 3: throw _d.sent();
|
|
1558
|
-
case 4: return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1559
|
-
case 5: throw _d.sent();
|
|
1560
|
-
case 6:
|
|
1561
|
-
parsedBody = parsedOutput.body;
|
|
1562
|
-
throwDefaultError({
|
|
1563
|
-
output: output,
|
|
1564
|
-
parsedBody: parsedBody,
|
|
1565
|
-
exceptionCtor: __BaseException,
|
|
1566
|
-
errorCode: errorCode,
|
|
1567
|
-
});
|
|
1568
|
-
_d.label = 7;
|
|
1569
|
-
case 7: return [2];
|
|
1570
|
-
}
|
|
1571
|
-
});
|
|
1572
|
-
}); };
|
|
1573
|
-
export var deserializeAws_json1_0UpdateStateMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1574
|
-
var data, contents, response;
|
|
1575
|
-
return __generator(this, function (_a) {
|
|
1576
|
-
switch (_a.label) {
|
|
1577
|
-
case 0:
|
|
1578
|
-
if (output.statusCode >= 300) {
|
|
1579
|
-
return [2, deserializeAws_json1_0UpdateStateMachineCommandError(output, context)];
|
|
1580
|
-
}
|
|
1581
|
-
return [4, parseBody(output.body, context)];
|
|
1582
|
-
case 1:
|
|
1583
|
-
data = _a.sent();
|
|
1584
|
-
contents = {};
|
|
1585
|
-
contents = deserializeAws_json1_0UpdateStateMachineOutput(data, context);
|
|
1586
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1587
|
-
return [2, Promise.resolve(response)];
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1590
|
-
}); };
|
|
1591
|
-
var deserializeAws_json1_0UpdateStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1592
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1593
|
-
var _c;
|
|
1594
|
-
return __generator(this, function (_d) {
|
|
1595
|
-
switch (_d.label) {
|
|
1596
|
-
case 0:
|
|
1597
|
-
_a = [__assign({}, output)];
|
|
1598
|
-
_c = {};
|
|
1599
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1600
|
-
case 1:
|
|
1601
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1602
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
-
_b = errorCode;
|
|
1604
|
-
switch (_b) {
|
|
1605
|
-
case "InvalidArn": return [3, 2];
|
|
1606
|
-
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
1607
|
-
case "InvalidDefinition": return [3, 4];
|
|
1608
|
-
case "com.amazonaws.sfn#InvalidDefinition": return [3, 4];
|
|
1609
|
-
case "InvalidLoggingConfiguration": return [3, 6];
|
|
1610
|
-
case "com.amazonaws.sfn#InvalidLoggingConfiguration": return [3, 6];
|
|
1611
|
-
case "InvalidTracingConfiguration": return [3, 8];
|
|
1612
|
-
case "com.amazonaws.sfn#InvalidTracingConfiguration": return [3, 8];
|
|
1613
|
-
case "MissingRequiredParameter": return [3, 10];
|
|
1614
|
-
case "com.amazonaws.sfn#MissingRequiredParameter": return [3, 10];
|
|
1615
|
-
case "StateMachineDeleting": return [3, 12];
|
|
1616
|
-
case "com.amazonaws.sfn#StateMachineDeleting": return [3, 12];
|
|
1617
|
-
case "StateMachineDoesNotExist": return [3, 14];
|
|
1618
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 14];
|
|
1619
|
-
}
|
|
1620
|
-
return [3, 16];
|
|
1621
|
-
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1622
|
-
case 3: throw _d.sent();
|
|
1623
|
-
case 4: return [4, deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context)];
|
|
1624
|
-
case 5: throw _d.sent();
|
|
1625
|
-
case 6: return [4, deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context)];
|
|
1626
|
-
case 7: throw _d.sent();
|
|
1627
|
-
case 8: return [4, deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)];
|
|
1628
|
-
case 9: throw _d.sent();
|
|
1629
|
-
case 10: return [4, deserializeAws_json1_0MissingRequiredParameterResponse(parsedOutput, context)];
|
|
1630
|
-
case 11: throw _d.sent();
|
|
1631
|
-
case 12: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1632
|
-
case 13: throw _d.sent();
|
|
1633
|
-
case 14: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1634
|
-
case 15: throw _d.sent();
|
|
1635
|
-
case 16:
|
|
1636
|
-
parsedBody = parsedOutput.body;
|
|
1637
|
-
throwDefaultError({
|
|
1638
|
-
output: output,
|
|
1639
|
-
parsedBody: parsedBody,
|
|
1640
|
-
exceptionCtor: __BaseException,
|
|
1641
|
-
errorCode: errorCode,
|
|
1642
|
-
});
|
|
1643
|
-
_d.label = 17;
|
|
1644
|
-
case 17: return [2];
|
|
1645
|
-
}
|
|
1646
|
-
});
|
|
1647
|
-
}); };
|
|
1648
|
-
var deserializeAws_json1_0ActivityDoesNotExistResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1649
|
-
var body, deserialized, exception;
|
|
1650
|
-
return __generator(this, function (_a) {
|
|
1651
|
-
body = parsedOutput.body;
|
|
1652
|
-
deserialized = deserializeAws_json1_0ActivityDoesNotExist(body, context);
|
|
1653
|
-
exception = new ActivityDoesNotExist(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1654
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1655
|
-
});
|
|
1656
|
-
}); };
|
|
1657
|
-
var deserializeAws_json1_0ActivityLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1658
|
-
var body, deserialized, exception;
|
|
1659
|
-
return __generator(this, function (_a) {
|
|
1660
|
-
body = parsedOutput.body;
|
|
1661
|
-
deserialized = deserializeAws_json1_0ActivityLimitExceeded(body, context);
|
|
1662
|
-
exception = new ActivityLimitExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1663
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1664
|
-
});
|
|
1665
|
-
}); };
|
|
1666
|
-
var deserializeAws_json1_0ActivityWorkerLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1667
|
-
var body, deserialized, exception;
|
|
1668
|
-
return __generator(this, function (_a) {
|
|
1669
|
-
body = parsedOutput.body;
|
|
1670
|
-
deserialized = deserializeAws_json1_0ActivityWorkerLimitExceeded(body, context);
|
|
1671
|
-
exception = new ActivityWorkerLimitExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1672
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1673
|
-
});
|
|
1674
|
-
}); };
|
|
1675
|
-
var deserializeAws_json1_0ExecutionAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1676
|
-
var body, deserialized, exception;
|
|
1677
|
-
return __generator(this, function (_a) {
|
|
1678
|
-
body = parsedOutput.body;
|
|
1679
|
-
deserialized = deserializeAws_json1_0ExecutionAlreadyExists(body, context);
|
|
1680
|
-
exception = new ExecutionAlreadyExists(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1681
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1682
|
-
});
|
|
1683
|
-
}); };
|
|
1684
|
-
var deserializeAws_json1_0ExecutionDoesNotExistResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1685
|
-
var body, deserialized, exception;
|
|
1686
|
-
return __generator(this, function (_a) {
|
|
1687
|
-
body = parsedOutput.body;
|
|
1688
|
-
deserialized = deserializeAws_json1_0ExecutionDoesNotExist(body, context);
|
|
1689
|
-
exception = new ExecutionDoesNotExist(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1690
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1691
|
-
});
|
|
1692
|
-
}); };
|
|
1693
|
-
var deserializeAws_json1_0ExecutionLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1694
|
-
var body, deserialized, exception;
|
|
1695
|
-
return __generator(this, function (_a) {
|
|
1696
|
-
body = parsedOutput.body;
|
|
1697
|
-
deserialized = deserializeAws_json1_0ExecutionLimitExceeded(body, context);
|
|
1698
|
-
exception = new ExecutionLimitExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1699
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1700
|
-
});
|
|
1701
|
-
}); };
|
|
1702
|
-
var deserializeAws_json1_0InvalidArnResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1703
|
-
var body, deserialized, exception;
|
|
1704
|
-
return __generator(this, function (_a) {
|
|
1705
|
-
body = parsedOutput.body;
|
|
1706
|
-
deserialized = deserializeAws_json1_0InvalidArn(body, context);
|
|
1707
|
-
exception = new InvalidArn(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1708
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1709
|
-
});
|
|
1710
|
-
}); };
|
|
1711
|
-
var deserializeAws_json1_0InvalidDefinitionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1712
|
-
var body, deserialized, exception;
|
|
1713
|
-
return __generator(this, function (_a) {
|
|
1714
|
-
body = parsedOutput.body;
|
|
1715
|
-
deserialized = deserializeAws_json1_0InvalidDefinition(body, context);
|
|
1716
|
-
exception = new InvalidDefinition(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1717
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1718
|
-
});
|
|
1719
|
-
}); };
|
|
1720
|
-
var deserializeAws_json1_0InvalidExecutionInputResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1721
|
-
var body, deserialized, exception;
|
|
1722
|
-
return __generator(this, function (_a) {
|
|
1723
|
-
body = parsedOutput.body;
|
|
1724
|
-
deserialized = deserializeAws_json1_0InvalidExecutionInput(body, context);
|
|
1725
|
-
exception = new InvalidExecutionInput(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1726
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1727
|
-
});
|
|
1728
|
-
}); };
|
|
1729
|
-
var deserializeAws_json1_0InvalidLoggingConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1730
|
-
var body, deserialized, exception;
|
|
1731
|
-
return __generator(this, function (_a) {
|
|
1732
|
-
body = parsedOutput.body;
|
|
1733
|
-
deserialized = deserializeAws_json1_0InvalidLoggingConfiguration(body, context);
|
|
1734
|
-
exception = new InvalidLoggingConfiguration(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1735
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1736
|
-
});
|
|
1737
|
-
}); };
|
|
1738
|
-
var deserializeAws_json1_0InvalidNameResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1739
|
-
var body, deserialized, exception;
|
|
1740
|
-
return __generator(this, function (_a) {
|
|
1741
|
-
body = parsedOutput.body;
|
|
1742
|
-
deserialized = deserializeAws_json1_0InvalidName(body, context);
|
|
1743
|
-
exception = new InvalidName(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1744
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1745
|
-
});
|
|
1746
|
-
}); };
|
|
1747
|
-
var deserializeAws_json1_0InvalidOutputResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var body, deserialized, exception;
|
|
1749
|
-
return __generator(this, function (_a) {
|
|
1750
|
-
body = parsedOutput.body;
|
|
1751
|
-
deserialized = deserializeAws_json1_0InvalidOutput(body, context);
|
|
1752
|
-
exception = new InvalidOutput(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1753
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1754
|
-
});
|
|
1755
|
-
}); };
|
|
1756
|
-
var deserializeAws_json1_0InvalidTokenResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1757
|
-
var body, deserialized, exception;
|
|
1758
|
-
return __generator(this, function (_a) {
|
|
1759
|
-
body = parsedOutput.body;
|
|
1760
|
-
deserialized = deserializeAws_json1_0InvalidToken(body, context);
|
|
1761
|
-
exception = new InvalidToken(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1762
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1763
|
-
});
|
|
1764
|
-
}); };
|
|
1765
|
-
var deserializeAws_json1_0InvalidTracingConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1766
|
-
var body, deserialized, exception;
|
|
1767
|
-
return __generator(this, function (_a) {
|
|
1768
|
-
body = parsedOutput.body;
|
|
1769
|
-
deserialized = deserializeAws_json1_0InvalidTracingConfiguration(body, context);
|
|
1770
|
-
exception = new InvalidTracingConfiguration(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1771
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1772
|
-
});
|
|
1773
|
-
}); };
|
|
1774
|
-
var deserializeAws_json1_0MissingRequiredParameterResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1775
|
-
var body, deserialized, exception;
|
|
1776
|
-
return __generator(this, function (_a) {
|
|
1777
|
-
body = parsedOutput.body;
|
|
1778
|
-
deserialized = deserializeAws_json1_0MissingRequiredParameter(body, context);
|
|
1779
|
-
exception = new MissingRequiredParameter(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1780
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1781
|
-
});
|
|
1782
|
-
}); };
|
|
1783
|
-
var deserializeAws_json1_0ResourceNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1784
|
-
var body, deserialized, exception;
|
|
1785
|
-
return __generator(this, function (_a) {
|
|
1786
|
-
body = parsedOutput.body;
|
|
1787
|
-
deserialized = deserializeAws_json1_0ResourceNotFound(body, context);
|
|
1788
|
-
exception = new ResourceNotFound(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1789
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1790
|
-
});
|
|
1791
|
-
}); };
|
|
1792
|
-
var deserializeAws_json1_0StateMachineAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1793
|
-
var body, deserialized, exception;
|
|
1794
|
-
return __generator(this, function (_a) {
|
|
1795
|
-
body = parsedOutput.body;
|
|
1796
|
-
deserialized = deserializeAws_json1_0StateMachineAlreadyExists(body, context);
|
|
1797
|
-
exception = new StateMachineAlreadyExists(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1798
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1799
|
-
});
|
|
1800
|
-
}); };
|
|
1801
|
-
var deserializeAws_json1_0StateMachineDeletingResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
|
-
var body, deserialized, exception;
|
|
1803
|
-
return __generator(this, function (_a) {
|
|
1804
|
-
body = parsedOutput.body;
|
|
1805
|
-
deserialized = deserializeAws_json1_0StateMachineDeleting(body, context);
|
|
1806
|
-
exception = new StateMachineDeleting(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1807
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1282
|
+
return __decorateServiceException(exception, body);
|
|
1283
|
+
};
|
|
1284
|
+
const deserializeAws_json1_0StateMachineDeletingResponse = async (parsedOutput, context) => {
|
|
1285
|
+
const body = parsedOutput.body;
|
|
1286
|
+
const deserialized = deserializeAws_json1_0StateMachineDeleting(body, context);
|
|
1287
|
+
const exception = new StateMachineDeleting({
|
|
1288
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1289
|
+
...deserialized,
|
|
1808
1290
|
});
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1291
|
+
return __decorateServiceException(exception, body);
|
|
1292
|
+
};
|
|
1293
|
+
const deserializeAws_json1_0StateMachineDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1294
|
+
const body = parsedOutput.body;
|
|
1295
|
+
const deserialized = deserializeAws_json1_0StateMachineDoesNotExist(body, context);
|
|
1296
|
+
const exception = new StateMachineDoesNotExist({
|
|
1297
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1298
|
+
...deserialized,
|
|
1817
1299
|
});
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1300
|
+
return __decorateServiceException(exception, body);
|
|
1301
|
+
};
|
|
1302
|
+
const deserializeAws_json1_0StateMachineLimitExceededResponse = async (parsedOutput, context) => {
|
|
1303
|
+
const body = parsedOutput.body;
|
|
1304
|
+
const deserialized = deserializeAws_json1_0StateMachineLimitExceeded(body, context);
|
|
1305
|
+
const exception = new StateMachineLimitExceeded({
|
|
1306
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1307
|
+
...deserialized,
|
|
1826
1308
|
});
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1309
|
+
return __decorateServiceException(exception, body);
|
|
1310
|
+
};
|
|
1311
|
+
const deserializeAws_json1_0StateMachineTypeNotSupportedResponse = async (parsedOutput, context) => {
|
|
1312
|
+
const body = parsedOutput.body;
|
|
1313
|
+
const deserialized = deserializeAws_json1_0StateMachineTypeNotSupported(body, context);
|
|
1314
|
+
const exception = new StateMachineTypeNotSupported({
|
|
1315
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1316
|
+
...deserialized,
|
|
1835
1317
|
});
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1318
|
+
return __decorateServiceException(exception, body);
|
|
1319
|
+
};
|
|
1320
|
+
const deserializeAws_json1_0TaskDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1321
|
+
const body = parsedOutput.body;
|
|
1322
|
+
const deserialized = deserializeAws_json1_0TaskDoesNotExist(body, context);
|
|
1323
|
+
const exception = new TaskDoesNotExist({
|
|
1324
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1325
|
+
...deserialized,
|
|
1844
1326
|
});
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1327
|
+
return __decorateServiceException(exception, body);
|
|
1328
|
+
};
|
|
1329
|
+
const deserializeAws_json1_0TaskTimedOutResponse = async (parsedOutput, context) => {
|
|
1330
|
+
const body = parsedOutput.body;
|
|
1331
|
+
const deserialized = deserializeAws_json1_0TaskTimedOut(body, context);
|
|
1332
|
+
const exception = new TaskTimedOut({
|
|
1333
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1334
|
+
...deserialized,
|
|
1853
1335
|
});
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1336
|
+
return __decorateServiceException(exception, body);
|
|
1337
|
+
};
|
|
1338
|
+
const deserializeAws_json1_0TooManyTagsResponse = async (parsedOutput, context) => {
|
|
1339
|
+
const body = parsedOutput.body;
|
|
1340
|
+
const deserialized = deserializeAws_json1_0TooManyTags(body, context);
|
|
1341
|
+
const exception = new TooManyTags({
|
|
1342
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1343
|
+
...deserialized,
|
|
1862
1344
|
});
|
|
1863
|
-
|
|
1864
|
-
var serializeAws_json1_0CloudWatchLogsLogGroup = function (input, context) {
|
|
1865
|
-
return __assign({}, (input.logGroupArn != null && { logGroupArn: input.logGroupArn }));
|
|
1345
|
+
return __decorateServiceException(exception, body);
|
|
1866
1346
|
};
|
|
1867
|
-
|
|
1868
|
-
return
|
|
1347
|
+
const serializeAws_json1_0CloudWatchLogsLogGroup = (input, context) => {
|
|
1348
|
+
return {
|
|
1349
|
+
...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
|
|
1350
|
+
};
|
|
1869
1351
|
};
|
|
1870
|
-
|
|
1871
|
-
return
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
})), (input.type != null && { type: input.type }));
|
|
1352
|
+
const serializeAws_json1_0CreateActivityInput = (input, context) => {
|
|
1353
|
+
return {
|
|
1354
|
+
...(input.name != null && { name: input.name }),
|
|
1355
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1356
|
+
};
|
|
1876
1357
|
};
|
|
1877
|
-
|
|
1878
|
-
return
|
|
1358
|
+
const serializeAws_json1_0CreateStateMachineInput = (input, context) => {
|
|
1359
|
+
return {
|
|
1360
|
+
...(input.definition != null && { definition: input.definition }),
|
|
1361
|
+
...(input.loggingConfiguration != null && {
|
|
1362
|
+
loggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.loggingConfiguration, context),
|
|
1363
|
+
}),
|
|
1364
|
+
...(input.name != null && { name: input.name }),
|
|
1365
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1366
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1367
|
+
...(input.tracingConfiguration != null && {
|
|
1368
|
+
tracingConfiguration: serializeAws_json1_0TracingConfiguration(input.tracingConfiguration, context),
|
|
1369
|
+
}),
|
|
1370
|
+
...(input.type != null && { type: input.type }),
|
|
1371
|
+
};
|
|
1879
1372
|
};
|
|
1880
|
-
|
|
1881
|
-
return
|
|
1373
|
+
const serializeAws_json1_0DeleteActivityInput = (input, context) => {
|
|
1374
|
+
return {
|
|
1375
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1376
|
+
};
|
|
1882
1377
|
};
|
|
1883
|
-
|
|
1884
|
-
return
|
|
1378
|
+
const serializeAws_json1_0DeleteStateMachineInput = (input, context) => {
|
|
1379
|
+
return {
|
|
1380
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1381
|
+
};
|
|
1885
1382
|
};
|
|
1886
|
-
|
|
1887
|
-
return
|
|
1383
|
+
const serializeAws_json1_0DescribeActivityInput = (input, context) => {
|
|
1384
|
+
return {
|
|
1385
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1386
|
+
};
|
|
1888
1387
|
};
|
|
1889
|
-
|
|
1890
|
-
return
|
|
1388
|
+
const serializeAws_json1_0DescribeExecutionInput = (input, context) => {
|
|
1389
|
+
return {
|
|
1390
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1391
|
+
};
|
|
1891
1392
|
};
|
|
1892
|
-
|
|
1893
|
-
return
|
|
1393
|
+
const serializeAws_json1_0DescribeStateMachineForExecutionInput = (input, context) => {
|
|
1394
|
+
return {
|
|
1395
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1396
|
+
};
|
|
1894
1397
|
};
|
|
1895
|
-
|
|
1896
|
-
return
|
|
1398
|
+
const serializeAws_json1_0DescribeStateMachineInput = (input, context) => {
|
|
1399
|
+
return {
|
|
1400
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1401
|
+
};
|
|
1897
1402
|
};
|
|
1898
|
-
|
|
1899
|
-
return
|
|
1403
|
+
const serializeAws_json1_0GetActivityTaskInput = (input, context) => {
|
|
1404
|
+
return {
|
|
1405
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1406
|
+
...(input.workerName != null && { workerName: input.workerName }),
|
|
1407
|
+
};
|
|
1900
1408
|
};
|
|
1901
|
-
|
|
1902
|
-
return
|
|
1409
|
+
const serializeAws_json1_0GetExecutionHistoryInput = (input, context) => {
|
|
1410
|
+
return {
|
|
1411
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1412
|
+
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1413
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1414
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1415
|
+
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
1416
|
+
};
|
|
1903
1417
|
};
|
|
1904
|
-
|
|
1905
|
-
return
|
|
1418
|
+
const serializeAws_json1_0ListActivitiesInput = (input, context) => {
|
|
1419
|
+
return {
|
|
1420
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1421
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1422
|
+
};
|
|
1906
1423
|
};
|
|
1907
|
-
|
|
1908
|
-
return
|
|
1424
|
+
const serializeAws_json1_0ListExecutionsInput = (input, context) => {
|
|
1425
|
+
return {
|
|
1426
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1427
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1428
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1429
|
+
...(input.statusFilter != null && { statusFilter: input.statusFilter }),
|
|
1430
|
+
};
|
|
1909
1431
|
};
|
|
1910
|
-
|
|
1911
|
-
return
|
|
1432
|
+
const serializeAws_json1_0ListStateMachinesInput = (input, context) => {
|
|
1433
|
+
return {
|
|
1434
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1435
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
|
|
1439
|
+
return {
|
|
1440
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1441
|
+
};
|
|
1912
1442
|
};
|
|
1913
|
-
|
|
1914
|
-
return
|
|
1915
|
-
|
|
1916
|
-
|
|
1443
|
+
const serializeAws_json1_0LogDestination = (input, context) => {
|
|
1444
|
+
return {
|
|
1445
|
+
...(input.cloudWatchLogsLogGroup != null && {
|
|
1446
|
+
cloudWatchLogsLogGroup: serializeAws_json1_0CloudWatchLogsLogGroup(input.cloudWatchLogsLogGroup, context),
|
|
1447
|
+
}),
|
|
1448
|
+
};
|
|
1917
1449
|
};
|
|
1918
|
-
|
|
1450
|
+
const serializeAws_json1_0LogDestinationList = (input, context) => {
|
|
1919
1451
|
return input
|
|
1920
|
-
.filter(
|
|
1921
|
-
.map(
|
|
1452
|
+
.filter((e) => e != null)
|
|
1453
|
+
.map((entry) => {
|
|
1922
1454
|
return serializeAws_json1_0LogDestination(entry, context);
|
|
1923
1455
|
});
|
|
1924
1456
|
};
|
|
1925
|
-
|
|
1926
|
-
return
|
|
1927
|
-
|
|
1928
|
-
|
|
1457
|
+
const serializeAws_json1_0LoggingConfiguration = (input, context) => {
|
|
1458
|
+
return {
|
|
1459
|
+
...(input.destinations != null && {
|
|
1460
|
+
destinations: serializeAws_json1_0LogDestinationList(input.destinations, context),
|
|
1461
|
+
}),
|
|
1462
|
+
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1463
|
+
...(input.level != null && { level: input.level }),
|
|
1464
|
+
};
|
|
1929
1465
|
};
|
|
1930
|
-
|
|
1931
|
-
return
|
|
1466
|
+
const serializeAws_json1_0SendTaskFailureInput = (input, context) => {
|
|
1467
|
+
return {
|
|
1468
|
+
...(input.cause != null && { cause: input.cause }),
|
|
1469
|
+
...(input.error != null && { error: input.error }),
|
|
1470
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1471
|
+
};
|
|
1932
1472
|
};
|
|
1933
|
-
|
|
1934
|
-
return
|
|
1473
|
+
const serializeAws_json1_0SendTaskHeartbeatInput = (input, context) => {
|
|
1474
|
+
return {
|
|
1475
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1476
|
+
};
|
|
1935
1477
|
};
|
|
1936
|
-
|
|
1937
|
-
return
|
|
1478
|
+
const serializeAws_json1_0SendTaskSuccessInput = (input, context) => {
|
|
1479
|
+
return {
|
|
1480
|
+
...(input.output != null && { output: input.output }),
|
|
1481
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1482
|
+
};
|
|
1938
1483
|
};
|
|
1939
|
-
|
|
1940
|
-
return
|
|
1484
|
+
const serializeAws_json1_0StartExecutionInput = (input, context) => {
|
|
1485
|
+
return {
|
|
1486
|
+
...(input.input != null && { input: input.input }),
|
|
1487
|
+
...(input.name != null && { name: input.name }),
|
|
1488
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1489
|
+
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1490
|
+
};
|
|
1941
1491
|
};
|
|
1942
|
-
|
|
1943
|
-
return
|
|
1492
|
+
const serializeAws_json1_0StartSyncExecutionInput = (input, context) => {
|
|
1493
|
+
return {
|
|
1494
|
+
...(input.input != null && { input: input.input }),
|
|
1495
|
+
...(input.name != null && { name: input.name }),
|
|
1496
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1497
|
+
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1498
|
+
};
|
|
1944
1499
|
};
|
|
1945
|
-
|
|
1946
|
-
return
|
|
1500
|
+
const serializeAws_json1_0StopExecutionInput = (input, context) => {
|
|
1501
|
+
return {
|
|
1502
|
+
...(input.cause != null && { cause: input.cause }),
|
|
1503
|
+
...(input.error != null && { error: input.error }),
|
|
1504
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1505
|
+
};
|
|
1947
1506
|
};
|
|
1948
|
-
|
|
1949
|
-
return
|
|
1507
|
+
const serializeAws_json1_0Tag = (input, context) => {
|
|
1508
|
+
return {
|
|
1509
|
+
...(input.key != null && { key: input.key }),
|
|
1510
|
+
...(input.value != null && { value: input.value }),
|
|
1511
|
+
};
|
|
1950
1512
|
};
|
|
1951
|
-
|
|
1513
|
+
const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
1952
1514
|
return input
|
|
1953
|
-
.filter(
|
|
1954
|
-
.map(
|
|
1515
|
+
.filter((e) => e != null)
|
|
1516
|
+
.map((entry) => {
|
|
1955
1517
|
return entry;
|
|
1956
1518
|
});
|
|
1957
1519
|
};
|
|
1958
|
-
|
|
1520
|
+
const serializeAws_json1_0TagList = (input, context) => {
|
|
1959
1521
|
return input
|
|
1960
|
-
.filter(
|
|
1961
|
-
.map(
|
|
1522
|
+
.filter((e) => e != null)
|
|
1523
|
+
.map((entry) => {
|
|
1962
1524
|
return serializeAws_json1_0Tag(entry, context);
|
|
1963
1525
|
});
|
|
1964
1526
|
};
|
|
1965
|
-
|
|
1966
|
-
return
|
|
1527
|
+
const serializeAws_json1_0TagResourceInput = (input, context) => {
|
|
1528
|
+
return {
|
|
1529
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1530
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1531
|
+
};
|
|
1967
1532
|
};
|
|
1968
|
-
|
|
1969
|
-
return
|
|
1533
|
+
const serializeAws_json1_0TracingConfiguration = (input, context) => {
|
|
1534
|
+
return {
|
|
1535
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1536
|
+
};
|
|
1970
1537
|
};
|
|
1971
|
-
|
|
1972
|
-
return
|
|
1538
|
+
const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
1539
|
+
return {
|
|
1540
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1541
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
|
|
1542
|
+
};
|
|
1973
1543
|
};
|
|
1974
|
-
|
|
1975
|
-
return
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1544
|
+
const serializeAws_json1_0UpdateStateMachineInput = (input, context) => {
|
|
1545
|
+
return {
|
|
1546
|
+
...(input.definition != null && { definition: input.definition }),
|
|
1547
|
+
...(input.loggingConfiguration != null && {
|
|
1548
|
+
loggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.loggingConfiguration, context),
|
|
1549
|
+
}),
|
|
1550
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1551
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1552
|
+
...(input.tracingConfiguration != null && {
|
|
1553
|
+
tracingConfiguration: serializeAws_json1_0TracingConfiguration(input.tracingConfiguration, context),
|
|
1554
|
+
}),
|
|
1555
|
+
};
|
|
1980
1556
|
};
|
|
1981
|
-
|
|
1557
|
+
const deserializeAws_json1_0ActivityDoesNotExist = (output, context) => {
|
|
1982
1558
|
return {
|
|
1983
1559
|
message: __expectString(output.message),
|
|
1984
1560
|
};
|
|
1985
1561
|
};
|
|
1986
|
-
|
|
1562
|
+
const deserializeAws_json1_0ActivityFailedEventDetails = (output, context) => {
|
|
1987
1563
|
return {
|
|
1988
1564
|
cause: __expectString(output.cause),
|
|
1989
1565
|
error: __expectString(output.error),
|
|
1990
1566
|
};
|
|
1991
1567
|
};
|
|
1992
|
-
|
|
1568
|
+
const deserializeAws_json1_0ActivityLimitExceeded = (output, context) => {
|
|
1993
1569
|
return {
|
|
1994
1570
|
message: __expectString(output.message),
|
|
1995
1571
|
};
|
|
1996
1572
|
};
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
.filter(
|
|
2000
|
-
.map(
|
|
1573
|
+
const deserializeAws_json1_0ActivityList = (output, context) => {
|
|
1574
|
+
const retVal = (output || [])
|
|
1575
|
+
.filter((e) => e != null)
|
|
1576
|
+
.map((entry) => {
|
|
2001
1577
|
if (entry === null) {
|
|
2002
1578
|
return null;
|
|
2003
1579
|
}
|
|
@@ -2005,7 +1581,7 @@ var deserializeAws_json1_0ActivityList = function (output, context) {
|
|
|
2005
1581
|
});
|
|
2006
1582
|
return retVal;
|
|
2007
1583
|
};
|
|
2008
|
-
|
|
1584
|
+
const deserializeAws_json1_0ActivityListItem = (output, context) => {
|
|
2009
1585
|
return {
|
|
2010
1586
|
activityArn: __expectString(output.activityArn),
|
|
2011
1587
|
creationDate: output.creationDate != null
|
|
@@ -2014,7 +1590,7 @@ var deserializeAws_json1_0ActivityListItem = function (output, context) {
|
|
|
2014
1590
|
name: __expectString(output.name),
|
|
2015
1591
|
};
|
|
2016
1592
|
};
|
|
2017
|
-
|
|
1593
|
+
const deserializeAws_json1_0ActivityScheduledEventDetails = (output, context) => {
|
|
2018
1594
|
return {
|
|
2019
1595
|
heartbeatInSeconds: __expectLong(output.heartbeatInSeconds),
|
|
2020
1596
|
input: __expectString(output.input),
|
|
@@ -2025,18 +1601,18 @@ var deserializeAws_json1_0ActivityScheduledEventDetails = function (output, cont
|
|
|
2025
1601
|
timeoutInSeconds: __expectLong(output.timeoutInSeconds),
|
|
2026
1602
|
};
|
|
2027
1603
|
};
|
|
2028
|
-
|
|
1604
|
+
const deserializeAws_json1_0ActivityScheduleFailedEventDetails = (output, context) => {
|
|
2029
1605
|
return {
|
|
2030
1606
|
cause: __expectString(output.cause),
|
|
2031
1607
|
error: __expectString(output.error),
|
|
2032
1608
|
};
|
|
2033
1609
|
};
|
|
2034
|
-
|
|
1610
|
+
const deserializeAws_json1_0ActivityStartedEventDetails = (output, context) => {
|
|
2035
1611
|
return {
|
|
2036
1612
|
workerName: __expectString(output.workerName),
|
|
2037
1613
|
};
|
|
2038
1614
|
};
|
|
2039
|
-
|
|
1615
|
+
const deserializeAws_json1_0ActivitySucceededEventDetails = (output, context) => {
|
|
2040
1616
|
return {
|
|
2041
1617
|
output: __expectString(output.output),
|
|
2042
1618
|
outputDetails: output.outputDetails != null
|
|
@@ -2044,34 +1620,34 @@ var deserializeAws_json1_0ActivitySucceededEventDetails = function (output, cont
|
|
|
2044
1620
|
: undefined,
|
|
2045
1621
|
};
|
|
2046
1622
|
};
|
|
2047
|
-
|
|
1623
|
+
const deserializeAws_json1_0ActivityTimedOutEventDetails = (output, context) => {
|
|
2048
1624
|
return {
|
|
2049
1625
|
cause: __expectString(output.cause),
|
|
2050
1626
|
error: __expectString(output.error),
|
|
2051
1627
|
};
|
|
2052
1628
|
};
|
|
2053
|
-
|
|
1629
|
+
const deserializeAws_json1_0ActivityWorkerLimitExceeded = (output, context) => {
|
|
2054
1630
|
return {
|
|
2055
1631
|
message: __expectString(output.message),
|
|
2056
1632
|
};
|
|
2057
1633
|
};
|
|
2058
|
-
|
|
1634
|
+
const deserializeAws_json1_0BillingDetails = (output, context) => {
|
|
2059
1635
|
return {
|
|
2060
1636
|
billedDurationInMilliseconds: __expectLong(output.billedDurationInMilliseconds),
|
|
2061
1637
|
billedMemoryUsedInMB: __expectLong(output.billedMemoryUsedInMB),
|
|
2062
1638
|
};
|
|
2063
1639
|
};
|
|
2064
|
-
|
|
1640
|
+
const deserializeAws_json1_0CloudWatchEventsExecutionDataDetails = (output, context) => {
|
|
2065
1641
|
return {
|
|
2066
1642
|
included: __expectBoolean(output.included),
|
|
2067
1643
|
};
|
|
2068
1644
|
};
|
|
2069
|
-
|
|
1645
|
+
const deserializeAws_json1_0CloudWatchLogsLogGroup = (output, context) => {
|
|
2070
1646
|
return {
|
|
2071
1647
|
logGroupArn: __expectString(output.logGroupArn),
|
|
2072
1648
|
};
|
|
2073
1649
|
};
|
|
2074
|
-
|
|
1650
|
+
const deserializeAws_json1_0CreateActivityOutput = (output, context) => {
|
|
2075
1651
|
return {
|
|
2076
1652
|
activityArn: __expectString(output.activityArn),
|
|
2077
1653
|
creationDate: output.creationDate != null
|
|
@@ -2079,7 +1655,7 @@ var deserializeAws_json1_0CreateActivityOutput = function (output, context) {
|
|
|
2079
1655
|
: undefined,
|
|
2080
1656
|
};
|
|
2081
1657
|
};
|
|
2082
|
-
|
|
1658
|
+
const deserializeAws_json1_0CreateStateMachineOutput = (output, context) => {
|
|
2083
1659
|
return {
|
|
2084
1660
|
creationDate: output.creationDate != null
|
|
2085
1661
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
@@ -2087,13 +1663,13 @@ var deserializeAws_json1_0CreateStateMachineOutput = function (output, context)
|
|
|
2087
1663
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
2088
1664
|
};
|
|
2089
1665
|
};
|
|
2090
|
-
|
|
1666
|
+
const deserializeAws_json1_0DeleteActivityOutput = (output, context) => {
|
|
2091
1667
|
return {};
|
|
2092
1668
|
};
|
|
2093
|
-
|
|
1669
|
+
const deserializeAws_json1_0DeleteStateMachineOutput = (output, context) => {
|
|
2094
1670
|
return {};
|
|
2095
1671
|
};
|
|
2096
|
-
|
|
1672
|
+
const deserializeAws_json1_0DescribeActivityOutput = (output, context) => {
|
|
2097
1673
|
return {
|
|
2098
1674
|
activityArn: __expectString(output.activityArn),
|
|
2099
1675
|
creationDate: output.creationDate != null
|
|
@@ -2102,7 +1678,7 @@ var deserializeAws_json1_0DescribeActivityOutput = function (output, context) {
|
|
|
2102
1678
|
name: __expectString(output.name),
|
|
2103
1679
|
};
|
|
2104
1680
|
};
|
|
2105
|
-
|
|
1681
|
+
const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
|
|
2106
1682
|
return {
|
|
2107
1683
|
executionArn: __expectString(output.executionArn),
|
|
2108
1684
|
input: __expectString(output.input),
|
|
@@ -2121,7 +1697,7 @@ var deserializeAws_json1_0DescribeExecutionOutput = function (output, context) {
|
|
|
2121
1697
|
traceHeader: __expectString(output.traceHeader),
|
|
2122
1698
|
};
|
|
2123
1699
|
};
|
|
2124
|
-
|
|
1700
|
+
const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
2125
1701
|
return {
|
|
2126
1702
|
definition: __expectString(output.definition),
|
|
2127
1703
|
loggingConfiguration: output.loggingConfiguration != null
|
|
@@ -2136,7 +1712,7 @@ var deserializeAws_json1_0DescribeStateMachineForExecutionOutput = function (out
|
|
|
2136
1712
|
updateDate: output.updateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate))) : undefined,
|
|
2137
1713
|
};
|
|
2138
1714
|
};
|
|
2139
|
-
|
|
1715
|
+
const deserializeAws_json1_0DescribeStateMachineOutput = (output, context) => {
|
|
2140
1716
|
return {
|
|
2141
1717
|
creationDate: output.creationDate != null
|
|
2142
1718
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
@@ -2155,37 +1731,37 @@ var deserializeAws_json1_0DescribeStateMachineOutput = function (output, context
|
|
|
2155
1731
|
type: __expectString(output.type),
|
|
2156
1732
|
};
|
|
2157
1733
|
};
|
|
2158
|
-
|
|
1734
|
+
const deserializeAws_json1_0ExecutionAbortedEventDetails = (output, context) => {
|
|
2159
1735
|
return {
|
|
2160
1736
|
cause: __expectString(output.cause),
|
|
2161
1737
|
error: __expectString(output.error),
|
|
2162
1738
|
};
|
|
2163
1739
|
};
|
|
2164
|
-
|
|
1740
|
+
const deserializeAws_json1_0ExecutionAlreadyExists = (output, context) => {
|
|
2165
1741
|
return {
|
|
2166
1742
|
message: __expectString(output.message),
|
|
2167
1743
|
};
|
|
2168
1744
|
};
|
|
2169
|
-
|
|
1745
|
+
const deserializeAws_json1_0ExecutionDoesNotExist = (output, context) => {
|
|
2170
1746
|
return {
|
|
2171
1747
|
message: __expectString(output.message),
|
|
2172
1748
|
};
|
|
2173
1749
|
};
|
|
2174
|
-
|
|
1750
|
+
const deserializeAws_json1_0ExecutionFailedEventDetails = (output, context) => {
|
|
2175
1751
|
return {
|
|
2176
1752
|
cause: __expectString(output.cause),
|
|
2177
1753
|
error: __expectString(output.error),
|
|
2178
1754
|
};
|
|
2179
1755
|
};
|
|
2180
|
-
|
|
1756
|
+
const deserializeAws_json1_0ExecutionLimitExceeded = (output, context) => {
|
|
2181
1757
|
return {
|
|
2182
1758
|
message: __expectString(output.message),
|
|
2183
1759
|
};
|
|
2184
1760
|
};
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
.filter(
|
|
2188
|
-
.map(
|
|
1761
|
+
const deserializeAws_json1_0ExecutionList = (output, context) => {
|
|
1762
|
+
const retVal = (output || [])
|
|
1763
|
+
.filter((e) => e != null)
|
|
1764
|
+
.map((entry) => {
|
|
2189
1765
|
if (entry === null) {
|
|
2190
1766
|
return null;
|
|
2191
1767
|
}
|
|
@@ -2193,7 +1769,7 @@ var deserializeAws_json1_0ExecutionList = function (output, context) {
|
|
|
2193
1769
|
});
|
|
2194
1770
|
return retVal;
|
|
2195
1771
|
};
|
|
2196
|
-
|
|
1772
|
+
const deserializeAws_json1_0ExecutionListItem = (output, context) => {
|
|
2197
1773
|
return {
|
|
2198
1774
|
executionArn: __expectString(output.executionArn),
|
|
2199
1775
|
name: __expectString(output.name),
|
|
@@ -2203,7 +1779,7 @@ var deserializeAws_json1_0ExecutionListItem = function (output, context) {
|
|
|
2203
1779
|
stopDate: output.stopDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate))) : undefined,
|
|
2204
1780
|
};
|
|
2205
1781
|
};
|
|
2206
|
-
|
|
1782
|
+
const deserializeAws_json1_0ExecutionStartedEventDetails = (output, context) => {
|
|
2207
1783
|
return {
|
|
2208
1784
|
input: __expectString(output.input),
|
|
2209
1785
|
inputDetails: output.inputDetails != null
|
|
@@ -2212,7 +1788,7 @@ var deserializeAws_json1_0ExecutionStartedEventDetails = function (output, conte
|
|
|
2212
1788
|
roleArn: __expectString(output.roleArn),
|
|
2213
1789
|
};
|
|
2214
1790
|
};
|
|
2215
|
-
|
|
1791
|
+
const deserializeAws_json1_0ExecutionSucceededEventDetails = (output, context) => {
|
|
2216
1792
|
return {
|
|
2217
1793
|
output: __expectString(output.output),
|
|
2218
1794
|
outputDetails: output.outputDetails != null
|
|
@@ -2220,25 +1796,25 @@ var deserializeAws_json1_0ExecutionSucceededEventDetails = function (output, con
|
|
|
2220
1796
|
: undefined,
|
|
2221
1797
|
};
|
|
2222
1798
|
};
|
|
2223
|
-
|
|
1799
|
+
const deserializeAws_json1_0ExecutionTimedOutEventDetails = (output, context) => {
|
|
2224
1800
|
return {
|
|
2225
1801
|
cause: __expectString(output.cause),
|
|
2226
1802
|
error: __expectString(output.error),
|
|
2227
1803
|
};
|
|
2228
1804
|
};
|
|
2229
|
-
|
|
1805
|
+
const deserializeAws_json1_0GetActivityTaskOutput = (output, context) => {
|
|
2230
1806
|
return {
|
|
2231
1807
|
input: __expectString(output.input),
|
|
2232
1808
|
taskToken: __expectString(output.taskToken),
|
|
2233
1809
|
};
|
|
2234
1810
|
};
|
|
2235
|
-
|
|
1811
|
+
const deserializeAws_json1_0GetExecutionHistoryOutput = (output, context) => {
|
|
2236
1812
|
return {
|
|
2237
1813
|
events: output.events != null ? deserializeAws_json1_0HistoryEventList(output.events, context) : undefined,
|
|
2238
1814
|
nextToken: __expectString(output.nextToken),
|
|
2239
1815
|
};
|
|
2240
1816
|
};
|
|
2241
|
-
|
|
1817
|
+
const deserializeAws_json1_0HistoryEvent = (output, context) => {
|
|
2242
1818
|
return {
|
|
2243
1819
|
activityFailedEventDetails: output.activityFailedEventDetails != null
|
|
2244
1820
|
? deserializeAws_json1_0ActivityFailedEventDetails(output.activityFailedEventDetails, context)
|
|
@@ -2342,15 +1918,15 @@ var deserializeAws_json1_0HistoryEvent = function (output, context) {
|
|
|
2342
1918
|
type: __expectString(output.type),
|
|
2343
1919
|
};
|
|
2344
1920
|
};
|
|
2345
|
-
|
|
1921
|
+
const deserializeAws_json1_0HistoryEventExecutionDataDetails = (output, context) => {
|
|
2346
1922
|
return {
|
|
2347
1923
|
truncated: __expectBoolean(output.truncated),
|
|
2348
1924
|
};
|
|
2349
1925
|
};
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
.filter(
|
|
2353
|
-
.map(
|
|
1926
|
+
const deserializeAws_json1_0HistoryEventList = (output, context) => {
|
|
1927
|
+
const retVal = (output || [])
|
|
1928
|
+
.filter((e) => e != null)
|
|
1929
|
+
.map((entry) => {
|
|
2354
1930
|
if (entry === null) {
|
|
2355
1931
|
return null;
|
|
2356
1932
|
}
|
|
@@ -2358,53 +1934,53 @@ var deserializeAws_json1_0HistoryEventList = function (output, context) {
|
|
|
2358
1934
|
});
|
|
2359
1935
|
return retVal;
|
|
2360
1936
|
};
|
|
2361
|
-
|
|
1937
|
+
const deserializeAws_json1_0InvalidArn = (output, context) => {
|
|
2362
1938
|
return {
|
|
2363
1939
|
message: __expectString(output.message),
|
|
2364
1940
|
};
|
|
2365
1941
|
};
|
|
2366
|
-
|
|
1942
|
+
const deserializeAws_json1_0InvalidDefinition = (output, context) => {
|
|
2367
1943
|
return {
|
|
2368
1944
|
message: __expectString(output.message),
|
|
2369
1945
|
};
|
|
2370
1946
|
};
|
|
2371
|
-
|
|
1947
|
+
const deserializeAws_json1_0InvalidExecutionInput = (output, context) => {
|
|
2372
1948
|
return {
|
|
2373
1949
|
message: __expectString(output.message),
|
|
2374
1950
|
};
|
|
2375
1951
|
};
|
|
2376
|
-
|
|
1952
|
+
const deserializeAws_json1_0InvalidLoggingConfiguration = (output, context) => {
|
|
2377
1953
|
return {
|
|
2378
1954
|
message: __expectString(output.message),
|
|
2379
1955
|
};
|
|
2380
1956
|
};
|
|
2381
|
-
|
|
1957
|
+
const deserializeAws_json1_0InvalidName = (output, context) => {
|
|
2382
1958
|
return {
|
|
2383
1959
|
message: __expectString(output.message),
|
|
2384
1960
|
};
|
|
2385
1961
|
};
|
|
2386
|
-
|
|
1962
|
+
const deserializeAws_json1_0InvalidOutput = (output, context) => {
|
|
2387
1963
|
return {
|
|
2388
1964
|
message: __expectString(output.message),
|
|
2389
1965
|
};
|
|
2390
1966
|
};
|
|
2391
|
-
|
|
1967
|
+
const deserializeAws_json1_0InvalidToken = (output, context) => {
|
|
2392
1968
|
return {
|
|
2393
1969
|
message: __expectString(output.message),
|
|
2394
1970
|
};
|
|
2395
1971
|
};
|
|
2396
|
-
|
|
1972
|
+
const deserializeAws_json1_0InvalidTracingConfiguration = (output, context) => {
|
|
2397
1973
|
return {
|
|
2398
1974
|
message: __expectString(output.message),
|
|
2399
1975
|
};
|
|
2400
1976
|
};
|
|
2401
|
-
|
|
1977
|
+
const deserializeAws_json1_0LambdaFunctionFailedEventDetails = (output, context) => {
|
|
2402
1978
|
return {
|
|
2403
1979
|
cause: __expectString(output.cause),
|
|
2404
1980
|
error: __expectString(output.error),
|
|
2405
1981
|
};
|
|
2406
1982
|
};
|
|
2407
|
-
|
|
1983
|
+
const deserializeAws_json1_0LambdaFunctionScheduledEventDetails = (output, context) => {
|
|
2408
1984
|
return {
|
|
2409
1985
|
input: __expectString(output.input),
|
|
2410
1986
|
inputDetails: output.inputDetails != null
|
|
@@ -2414,19 +1990,19 @@ var deserializeAws_json1_0LambdaFunctionScheduledEventDetails = function (output
|
|
|
2414
1990
|
timeoutInSeconds: __expectLong(output.timeoutInSeconds),
|
|
2415
1991
|
};
|
|
2416
1992
|
};
|
|
2417
|
-
|
|
1993
|
+
const deserializeAws_json1_0LambdaFunctionScheduleFailedEventDetails = (output, context) => {
|
|
2418
1994
|
return {
|
|
2419
1995
|
cause: __expectString(output.cause),
|
|
2420
1996
|
error: __expectString(output.error),
|
|
2421
1997
|
};
|
|
2422
1998
|
};
|
|
2423
|
-
|
|
1999
|
+
const deserializeAws_json1_0LambdaFunctionStartFailedEventDetails = (output, context) => {
|
|
2424
2000
|
return {
|
|
2425
2001
|
cause: __expectString(output.cause),
|
|
2426
2002
|
error: __expectString(output.error),
|
|
2427
2003
|
};
|
|
2428
2004
|
};
|
|
2429
|
-
|
|
2005
|
+
const deserializeAws_json1_0LambdaFunctionSucceededEventDetails = (output, context) => {
|
|
2430
2006
|
return {
|
|
2431
2007
|
output: __expectString(output.output),
|
|
2432
2008
|
outputDetails: output.outputDetails != null
|
|
@@ -2434,46 +2010,46 @@ var deserializeAws_json1_0LambdaFunctionSucceededEventDetails = function (output
|
|
|
2434
2010
|
: undefined,
|
|
2435
2011
|
};
|
|
2436
2012
|
};
|
|
2437
|
-
|
|
2013
|
+
const deserializeAws_json1_0LambdaFunctionTimedOutEventDetails = (output, context) => {
|
|
2438
2014
|
return {
|
|
2439
2015
|
cause: __expectString(output.cause),
|
|
2440
2016
|
error: __expectString(output.error),
|
|
2441
2017
|
};
|
|
2442
2018
|
};
|
|
2443
|
-
|
|
2019
|
+
const deserializeAws_json1_0ListActivitiesOutput = (output, context) => {
|
|
2444
2020
|
return {
|
|
2445
2021
|
activities: output.activities != null ? deserializeAws_json1_0ActivityList(output.activities, context) : undefined,
|
|
2446
2022
|
nextToken: __expectString(output.nextToken),
|
|
2447
2023
|
};
|
|
2448
2024
|
};
|
|
2449
|
-
|
|
2025
|
+
const deserializeAws_json1_0ListExecutionsOutput = (output, context) => {
|
|
2450
2026
|
return {
|
|
2451
2027
|
executions: output.executions != null ? deserializeAws_json1_0ExecutionList(output.executions, context) : undefined,
|
|
2452
2028
|
nextToken: __expectString(output.nextToken),
|
|
2453
2029
|
};
|
|
2454
2030
|
};
|
|
2455
|
-
|
|
2031
|
+
const deserializeAws_json1_0ListStateMachinesOutput = (output, context) => {
|
|
2456
2032
|
return {
|
|
2457
2033
|
nextToken: __expectString(output.nextToken),
|
|
2458
2034
|
stateMachines: output.stateMachines != null ? deserializeAws_json1_0StateMachineList(output.stateMachines, context) : undefined,
|
|
2459
2035
|
};
|
|
2460
2036
|
};
|
|
2461
|
-
|
|
2037
|
+
const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
|
|
2462
2038
|
return {
|
|
2463
2039
|
tags: output.tags != null ? deserializeAws_json1_0TagList(output.tags, context) : undefined,
|
|
2464
2040
|
};
|
|
2465
2041
|
};
|
|
2466
|
-
|
|
2042
|
+
const deserializeAws_json1_0LogDestination = (output, context) => {
|
|
2467
2043
|
return {
|
|
2468
2044
|
cloudWatchLogsLogGroup: output.cloudWatchLogsLogGroup != null
|
|
2469
2045
|
? deserializeAws_json1_0CloudWatchLogsLogGroup(output.cloudWatchLogsLogGroup, context)
|
|
2470
2046
|
: undefined,
|
|
2471
2047
|
};
|
|
2472
2048
|
};
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
.filter(
|
|
2476
|
-
.map(
|
|
2049
|
+
const deserializeAws_json1_0LogDestinationList = (output, context) => {
|
|
2050
|
+
const retVal = (output || [])
|
|
2051
|
+
.filter((e) => e != null)
|
|
2052
|
+
.map((entry) => {
|
|
2477
2053
|
if (entry === null) {
|
|
2478
2054
|
return null;
|
|
2479
2055
|
}
|
|
@@ -2481,51 +2057,51 @@ var deserializeAws_json1_0LogDestinationList = function (output, context) {
|
|
|
2481
2057
|
});
|
|
2482
2058
|
return retVal;
|
|
2483
2059
|
};
|
|
2484
|
-
|
|
2060
|
+
const deserializeAws_json1_0LoggingConfiguration = (output, context) => {
|
|
2485
2061
|
return {
|
|
2486
2062
|
destinations: output.destinations != null ? deserializeAws_json1_0LogDestinationList(output.destinations, context) : undefined,
|
|
2487
2063
|
includeExecutionData: __expectBoolean(output.includeExecutionData),
|
|
2488
2064
|
level: __expectString(output.level),
|
|
2489
2065
|
};
|
|
2490
2066
|
};
|
|
2491
|
-
|
|
2067
|
+
const deserializeAws_json1_0MapIterationEventDetails = (output, context) => {
|
|
2492
2068
|
return {
|
|
2493
2069
|
index: __expectInt32(output.index),
|
|
2494
2070
|
name: __expectString(output.name),
|
|
2495
2071
|
};
|
|
2496
2072
|
};
|
|
2497
|
-
|
|
2073
|
+
const deserializeAws_json1_0MapStateStartedEventDetails = (output, context) => {
|
|
2498
2074
|
return {
|
|
2499
2075
|
length: __expectInt32(output.length),
|
|
2500
2076
|
};
|
|
2501
2077
|
};
|
|
2502
|
-
|
|
2078
|
+
const deserializeAws_json1_0MissingRequiredParameter = (output, context) => {
|
|
2503
2079
|
return {
|
|
2504
2080
|
message: __expectString(output.message),
|
|
2505
2081
|
};
|
|
2506
2082
|
};
|
|
2507
|
-
|
|
2083
|
+
const deserializeAws_json1_0ResourceNotFound = (output, context) => {
|
|
2508
2084
|
return {
|
|
2509
2085
|
message: __expectString(output.message),
|
|
2510
2086
|
resourceName: __expectString(output.resourceName),
|
|
2511
2087
|
};
|
|
2512
2088
|
};
|
|
2513
|
-
|
|
2089
|
+
const deserializeAws_json1_0SendTaskFailureOutput = (output, context) => {
|
|
2514
2090
|
return {};
|
|
2515
2091
|
};
|
|
2516
|
-
|
|
2092
|
+
const deserializeAws_json1_0SendTaskHeartbeatOutput = (output, context) => {
|
|
2517
2093
|
return {};
|
|
2518
2094
|
};
|
|
2519
|
-
|
|
2095
|
+
const deserializeAws_json1_0SendTaskSuccessOutput = (output, context) => {
|
|
2520
2096
|
return {};
|
|
2521
2097
|
};
|
|
2522
|
-
|
|
2098
|
+
const deserializeAws_json1_0StartExecutionOutput = (output, context) => {
|
|
2523
2099
|
return {
|
|
2524
2100
|
executionArn: __expectString(output.executionArn),
|
|
2525
2101
|
startDate: output.startDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate))) : undefined,
|
|
2526
2102
|
};
|
|
2527
2103
|
};
|
|
2528
|
-
|
|
2104
|
+
const deserializeAws_json1_0StartSyncExecutionOutput = (output, context) => {
|
|
2529
2105
|
return {
|
|
2530
2106
|
billingDetails: output.billingDetails != null ? deserializeAws_json1_0BillingDetails(output.billingDetails, context) : undefined,
|
|
2531
2107
|
cause: __expectString(output.cause),
|
|
@@ -2547,7 +2123,7 @@ var deserializeAws_json1_0StartSyncExecutionOutput = function (output, context)
|
|
|
2547
2123
|
traceHeader: __expectString(output.traceHeader),
|
|
2548
2124
|
};
|
|
2549
2125
|
};
|
|
2550
|
-
|
|
2126
|
+
const deserializeAws_json1_0StateEnteredEventDetails = (output, context) => {
|
|
2551
2127
|
return {
|
|
2552
2128
|
input: __expectString(output.input),
|
|
2553
2129
|
inputDetails: output.inputDetails != null
|
|
@@ -2556,7 +2132,7 @@ var deserializeAws_json1_0StateEnteredEventDetails = function (output, context)
|
|
|
2556
2132
|
name: __expectString(output.name),
|
|
2557
2133
|
};
|
|
2558
2134
|
};
|
|
2559
|
-
|
|
2135
|
+
const deserializeAws_json1_0StateExitedEventDetails = (output, context) => {
|
|
2560
2136
|
return {
|
|
2561
2137
|
name: __expectString(output.name),
|
|
2562
2138
|
output: __expectString(output.output),
|
|
@@ -2565,30 +2141,30 @@ var deserializeAws_json1_0StateExitedEventDetails = function (output, context) {
|
|
|
2565
2141
|
: undefined,
|
|
2566
2142
|
};
|
|
2567
2143
|
};
|
|
2568
|
-
|
|
2144
|
+
const deserializeAws_json1_0StateMachineAlreadyExists = (output, context) => {
|
|
2569
2145
|
return {
|
|
2570
2146
|
message: __expectString(output.message),
|
|
2571
2147
|
};
|
|
2572
2148
|
};
|
|
2573
|
-
|
|
2149
|
+
const deserializeAws_json1_0StateMachineDeleting = (output, context) => {
|
|
2574
2150
|
return {
|
|
2575
2151
|
message: __expectString(output.message),
|
|
2576
2152
|
};
|
|
2577
2153
|
};
|
|
2578
|
-
|
|
2154
|
+
const deserializeAws_json1_0StateMachineDoesNotExist = (output, context) => {
|
|
2579
2155
|
return {
|
|
2580
2156
|
message: __expectString(output.message),
|
|
2581
2157
|
};
|
|
2582
2158
|
};
|
|
2583
|
-
|
|
2159
|
+
const deserializeAws_json1_0StateMachineLimitExceeded = (output, context) => {
|
|
2584
2160
|
return {
|
|
2585
2161
|
message: __expectString(output.message),
|
|
2586
2162
|
};
|
|
2587
2163
|
};
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
.filter(
|
|
2591
|
-
.map(
|
|
2164
|
+
const deserializeAws_json1_0StateMachineList = (output, context) => {
|
|
2165
|
+
const retVal = (output || [])
|
|
2166
|
+
.filter((e) => e != null)
|
|
2167
|
+
.map((entry) => {
|
|
2592
2168
|
if (entry === null) {
|
|
2593
2169
|
return null;
|
|
2594
2170
|
}
|
|
@@ -2596,7 +2172,7 @@ var deserializeAws_json1_0StateMachineList = function (output, context) {
|
|
|
2596
2172
|
});
|
|
2597
2173
|
return retVal;
|
|
2598
2174
|
};
|
|
2599
|
-
|
|
2175
|
+
const deserializeAws_json1_0StateMachineListItem = (output, context) => {
|
|
2600
2176
|
return {
|
|
2601
2177
|
creationDate: output.creationDate != null
|
|
2602
2178
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
@@ -2606,26 +2182,26 @@ var deserializeAws_json1_0StateMachineListItem = function (output, context) {
|
|
|
2606
2182
|
type: __expectString(output.type),
|
|
2607
2183
|
};
|
|
2608
2184
|
};
|
|
2609
|
-
|
|
2185
|
+
const deserializeAws_json1_0StateMachineTypeNotSupported = (output, context) => {
|
|
2610
2186
|
return {
|
|
2611
2187
|
message: __expectString(output.message),
|
|
2612
2188
|
};
|
|
2613
2189
|
};
|
|
2614
|
-
|
|
2190
|
+
const deserializeAws_json1_0StopExecutionOutput = (output, context) => {
|
|
2615
2191
|
return {
|
|
2616
2192
|
stopDate: output.stopDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate))) : undefined,
|
|
2617
2193
|
};
|
|
2618
2194
|
};
|
|
2619
|
-
|
|
2195
|
+
const deserializeAws_json1_0Tag = (output, context) => {
|
|
2620
2196
|
return {
|
|
2621
2197
|
key: __expectString(output.key),
|
|
2622
2198
|
value: __expectString(output.value),
|
|
2623
2199
|
};
|
|
2624
2200
|
};
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
.filter(
|
|
2628
|
-
.map(
|
|
2201
|
+
const deserializeAws_json1_0TagList = (output, context) => {
|
|
2202
|
+
const retVal = (output || [])
|
|
2203
|
+
.filter((e) => e != null)
|
|
2204
|
+
.map((entry) => {
|
|
2629
2205
|
if (entry === null) {
|
|
2630
2206
|
return null;
|
|
2631
2207
|
}
|
|
@@ -2633,15 +2209,15 @@ var deserializeAws_json1_0TagList = function (output, context) {
|
|
|
2633
2209
|
});
|
|
2634
2210
|
return retVal;
|
|
2635
2211
|
};
|
|
2636
|
-
|
|
2212
|
+
const deserializeAws_json1_0TagResourceOutput = (output, context) => {
|
|
2637
2213
|
return {};
|
|
2638
2214
|
};
|
|
2639
|
-
|
|
2215
|
+
const deserializeAws_json1_0TaskDoesNotExist = (output, context) => {
|
|
2640
2216
|
return {
|
|
2641
2217
|
message: __expectString(output.message),
|
|
2642
2218
|
};
|
|
2643
2219
|
};
|
|
2644
|
-
|
|
2220
|
+
const deserializeAws_json1_0TaskFailedEventDetails = (output, context) => {
|
|
2645
2221
|
return {
|
|
2646
2222
|
cause: __expectString(output.cause),
|
|
2647
2223
|
error: __expectString(output.error),
|
|
@@ -2649,7 +2225,7 @@ var deserializeAws_json1_0TaskFailedEventDetails = function (output, context) {
|
|
|
2649
2225
|
resourceType: __expectString(output.resourceType),
|
|
2650
2226
|
};
|
|
2651
2227
|
};
|
|
2652
|
-
|
|
2228
|
+
const deserializeAws_json1_0TaskScheduledEventDetails = (output, context) => {
|
|
2653
2229
|
return {
|
|
2654
2230
|
heartbeatInSeconds: __expectLong(output.heartbeatInSeconds),
|
|
2655
2231
|
parameters: __expectString(output.parameters),
|
|
@@ -2659,13 +2235,13 @@ var deserializeAws_json1_0TaskScheduledEventDetails = function (output, context)
|
|
|
2659
2235
|
timeoutInSeconds: __expectLong(output.timeoutInSeconds),
|
|
2660
2236
|
};
|
|
2661
2237
|
};
|
|
2662
|
-
|
|
2238
|
+
const deserializeAws_json1_0TaskStartedEventDetails = (output, context) => {
|
|
2663
2239
|
return {
|
|
2664
2240
|
resource: __expectString(output.resource),
|
|
2665
2241
|
resourceType: __expectString(output.resourceType),
|
|
2666
2242
|
};
|
|
2667
2243
|
};
|
|
2668
|
-
|
|
2244
|
+
const deserializeAws_json1_0TaskStartFailedEventDetails = (output, context) => {
|
|
2669
2245
|
return {
|
|
2670
2246
|
cause: __expectString(output.cause),
|
|
2671
2247
|
error: __expectString(output.error),
|
|
@@ -2673,7 +2249,7 @@ var deserializeAws_json1_0TaskStartFailedEventDetails = function (output, contex
|
|
|
2673
2249
|
resourceType: __expectString(output.resourceType),
|
|
2674
2250
|
};
|
|
2675
2251
|
};
|
|
2676
|
-
|
|
2252
|
+
const deserializeAws_json1_0TaskSubmitFailedEventDetails = (output, context) => {
|
|
2677
2253
|
return {
|
|
2678
2254
|
cause: __expectString(output.cause),
|
|
2679
2255
|
error: __expectString(output.error),
|
|
@@ -2681,7 +2257,7 @@ var deserializeAws_json1_0TaskSubmitFailedEventDetails = function (output, conte
|
|
|
2681
2257
|
resourceType: __expectString(output.resourceType),
|
|
2682
2258
|
};
|
|
2683
2259
|
};
|
|
2684
|
-
|
|
2260
|
+
const deserializeAws_json1_0TaskSubmittedEventDetails = (output, context) => {
|
|
2685
2261
|
return {
|
|
2686
2262
|
output: __expectString(output.output),
|
|
2687
2263
|
outputDetails: output.outputDetails != null
|
|
@@ -2691,7 +2267,7 @@ var deserializeAws_json1_0TaskSubmittedEventDetails = function (output, context)
|
|
|
2691
2267
|
resourceType: __expectString(output.resourceType),
|
|
2692
2268
|
};
|
|
2693
2269
|
};
|
|
2694
|
-
|
|
2270
|
+
const deserializeAws_json1_0TaskSucceededEventDetails = (output, context) => {
|
|
2695
2271
|
return {
|
|
2696
2272
|
output: __expectString(output.output),
|
|
2697
2273
|
outputDetails: output.outputDetails != null
|
|
@@ -2701,12 +2277,12 @@ var deserializeAws_json1_0TaskSucceededEventDetails = function (output, context)
|
|
|
2701
2277
|
resourceType: __expectString(output.resourceType),
|
|
2702
2278
|
};
|
|
2703
2279
|
};
|
|
2704
|
-
|
|
2280
|
+
const deserializeAws_json1_0TaskTimedOut = (output, context) => {
|
|
2705
2281
|
return {
|
|
2706
2282
|
message: __expectString(output.message),
|
|
2707
2283
|
};
|
|
2708
2284
|
};
|
|
2709
|
-
|
|
2285
|
+
const deserializeAws_json1_0TaskTimedOutEventDetails = (output, context) => {
|
|
2710
2286
|
return {
|
|
2711
2287
|
cause: __expectString(output.cause),
|
|
2712
2288
|
error: __expectString(output.error),
|
|
@@ -2714,94 +2290,71 @@ var deserializeAws_json1_0TaskTimedOutEventDetails = function (output, context)
|
|
|
2714
2290
|
resourceType: __expectString(output.resourceType),
|
|
2715
2291
|
};
|
|
2716
2292
|
};
|
|
2717
|
-
|
|
2293
|
+
const deserializeAws_json1_0TooManyTags = (output, context) => {
|
|
2718
2294
|
return {
|
|
2719
2295
|
message: __expectString(output.message),
|
|
2720
2296
|
resourceName: __expectString(output.resourceName),
|
|
2721
2297
|
};
|
|
2722
2298
|
};
|
|
2723
|
-
|
|
2299
|
+
const deserializeAws_json1_0TracingConfiguration = (output, context) => {
|
|
2724
2300
|
return {
|
|
2725
2301
|
enabled: __expectBoolean(output.enabled),
|
|
2726
2302
|
};
|
|
2727
2303
|
};
|
|
2728
|
-
|
|
2304
|
+
const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
|
|
2729
2305
|
return {};
|
|
2730
2306
|
};
|
|
2731
|
-
|
|
2307
|
+
const deserializeAws_json1_0UpdateStateMachineOutput = (output, context) => {
|
|
2732
2308
|
return {
|
|
2733
2309
|
updateDate: output.updateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate))) : undefined,
|
|
2734
2310
|
};
|
|
2735
2311
|
};
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
});
|
|
2744
|
-
};
|
|
2745
|
-
var collectBody = function (streamBody, context) {
|
|
2746
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2312
|
+
const deserializeMetadata = (output) => ({
|
|
2313
|
+
httpStatusCode: output.statusCode,
|
|
2314
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2315
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2316
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2317
|
+
});
|
|
2318
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2747
2319
|
if (streamBody instanceof Uint8Array) {
|
|
2748
2320
|
return Promise.resolve(streamBody);
|
|
2749
2321
|
}
|
|
2750
2322
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2751
2323
|
};
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
};
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
if (resolvedHostname !== undefined) {
|
|
2771
|
-
contents.hostname = resolvedHostname;
|
|
2772
|
-
}
|
|
2773
|
-
if (body !== undefined) {
|
|
2774
|
-
contents.body = body;
|
|
2775
|
-
}
|
|
2776
|
-
return [2, new __HttpRequest(contents)];
|
|
2777
|
-
}
|
|
2778
|
-
});
|
|
2779
|
-
}); };
|
|
2780
|
-
var parseBody = function (streamBody, context) {
|
|
2781
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2782
|
-
if (encoded.length) {
|
|
2783
|
-
return JSON.parse(encoded);
|
|
2784
|
-
}
|
|
2785
|
-
return {};
|
|
2786
|
-
});
|
|
2324
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2325
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2326
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2327
|
+
const contents = {
|
|
2328
|
+
protocol,
|
|
2329
|
+
hostname,
|
|
2330
|
+
port,
|
|
2331
|
+
method: "POST",
|
|
2332
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2333
|
+
headers,
|
|
2334
|
+
};
|
|
2335
|
+
if (resolvedHostname !== undefined) {
|
|
2336
|
+
contents.hostname = resolvedHostname;
|
|
2337
|
+
}
|
|
2338
|
+
if (body !== undefined) {
|
|
2339
|
+
contents.body = body;
|
|
2340
|
+
}
|
|
2341
|
+
return new __HttpRequest(contents);
|
|
2787
2342
|
};
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
2804
|
-
var cleanValue = rawValue;
|
|
2343
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2344
|
+
if (encoded.length) {
|
|
2345
|
+
return JSON.parse(encoded);
|
|
2346
|
+
}
|
|
2347
|
+
return {};
|
|
2348
|
+
});
|
|
2349
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2350
|
+
const value = await parseBody(errorBody, context);
|
|
2351
|
+
value.message = value.message ?? value.Message;
|
|
2352
|
+
return value;
|
|
2353
|
+
};
|
|
2354
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2355
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2356
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2357
|
+
let cleanValue = rawValue;
|
|
2805
2358
|
if (typeof cleanValue === "number") {
|
|
2806
2359
|
cleanValue = cleanValue.toString();
|
|
2807
2360
|
}
|
|
@@ -2816,7 +2369,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2816
2369
|
}
|
|
2817
2370
|
return cleanValue;
|
|
2818
2371
|
};
|
|
2819
|
-
|
|
2372
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2820
2373
|
if (headerKey !== undefined) {
|
|
2821
2374
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2822
2375
|
}
|