@aws-sdk/client-sfn 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_0.js +327 -1211
- package/dist-es/protocols/Aws_json1_0.js +328 -1212
- package/package.json +6 -6
|
@@ -7,212 +7,149 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SFNServiceException_1 = require("../models/SFNServiceException");
|
|
9
9
|
const se_CreateActivityCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.0",
|
|
12
|
-
"x-amz-target": "AWSStepFunctions.CreateActivity",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CreateActivity");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CreateActivityCommand = se_CreateActivityCommand;
|
|
19
16
|
const se_CreateStateMachineCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.0",
|
|
22
|
-
"x-amz-target": "AWSStepFunctions.CreateStateMachine",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateStateMachine");
|
|
24
18
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateStateMachineCommand = se_CreateStateMachineCommand;
|
|
29
23
|
const se_DeleteActivityCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.0",
|
|
32
|
-
"x-amz-target": "AWSStepFunctions.DeleteActivity",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DeleteActivity");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_DeleteActivityCommand = se_DeleteActivityCommand;
|
|
39
30
|
const se_DeleteStateMachineCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.0",
|
|
42
|
-
"x-amz-target": "AWSStepFunctions.DeleteStateMachine",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteStateMachine");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_DeleteStateMachineCommand = se_DeleteStateMachineCommand;
|
|
49
37
|
const se_DescribeActivityCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.0",
|
|
52
|
-
"x-amz-target": "AWSStepFunctions.DescribeActivity",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DescribeActivity");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DescribeActivityCommand = se_DescribeActivityCommand;
|
|
59
44
|
const se_DescribeExecutionCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.0",
|
|
62
|
-
"x-amz-target": "AWSStepFunctions.DescribeExecution",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DescribeExecution");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DescribeExecutionCommand = se_DescribeExecutionCommand;
|
|
69
51
|
const se_DescribeMapRunCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "AWSStepFunctions.DescribeMapRun",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DescribeMapRun");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DescribeMapRunCommand = se_DescribeMapRunCommand;
|
|
79
58
|
const se_DescribeStateMachineCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.0",
|
|
82
|
-
"x-amz-target": "AWSStepFunctions.DescribeStateMachine",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DescribeStateMachine");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DescribeStateMachineCommand = se_DescribeStateMachineCommand;
|
|
89
65
|
const se_DescribeStateMachineForExecutionCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.0",
|
|
92
|
-
"x-amz-target": "AWSStepFunctions.DescribeStateMachineForExecution",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeStateMachineForExecution");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DescribeStateMachineForExecutionCommand = se_DescribeStateMachineForExecutionCommand;
|
|
99
72
|
const se_GetActivityTaskCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.0",
|
|
102
|
-
"x-amz-target": "AWSStepFunctions.GetActivityTask",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("GetActivityTask");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_GetActivityTaskCommand = se_GetActivityTaskCommand;
|
|
109
79
|
const se_GetExecutionHistoryCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.0",
|
|
112
|
-
"x-amz-target": "AWSStepFunctions.GetExecutionHistory",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("GetExecutionHistory");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_GetExecutionHistoryCommand = se_GetExecutionHistoryCommand;
|
|
119
86
|
const se_ListActivitiesCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.0",
|
|
122
|
-
"x-amz-target": "AWSStepFunctions.ListActivities",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("ListActivities");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_ListActivitiesCommand = se_ListActivitiesCommand;
|
|
129
93
|
const se_ListExecutionsCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.0",
|
|
132
|
-
"x-amz-target": "AWSStepFunctions.ListExecutions",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("ListExecutions");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_ListExecutionsCommand = se_ListExecutionsCommand;
|
|
139
100
|
const se_ListMapRunsCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.0",
|
|
142
|
-
"x-amz-target": "AWSStepFunctions.ListMapRuns",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("ListMapRuns");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_ListMapRunsCommand = se_ListMapRunsCommand;
|
|
149
107
|
const se_ListStateMachinesCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.0",
|
|
152
|
-
"x-amz-target": "AWSStepFunctions.ListStateMachines",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ListStateMachines");
|
|
154
109
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_ListStateMachinesCommand = se_ListStateMachinesCommand;
|
|
159
114
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.0",
|
|
162
|
-
"x-amz-target": "AWSStepFunctions.ListTagsForResource",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
164
116
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
169
121
|
const se_SendTaskFailureCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.0",
|
|
172
|
-
"x-amz-target": "AWSStepFunctions.SendTaskFailure",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("SendTaskFailure");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_SendTaskFailureCommand = se_SendTaskFailureCommand;
|
|
179
128
|
const se_SendTaskHeartbeatCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.0",
|
|
182
|
-
"x-amz-target": "AWSStepFunctions.SendTaskHeartbeat",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("SendTaskHeartbeat");
|
|
184
130
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_SendTaskHeartbeatCommand = se_SendTaskHeartbeatCommand;
|
|
189
135
|
const se_SendTaskSuccessCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.0",
|
|
192
|
-
"x-amz-target": "AWSStepFunctions.SendTaskSuccess",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("SendTaskSuccess");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_SendTaskSuccessCommand = se_SendTaskSuccessCommand;
|
|
199
142
|
const se_StartExecutionCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.0",
|
|
202
|
-
"x-amz-target": "AWSStepFunctions.StartExecution",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("StartExecution");
|
|
204
144
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_StartExecutionCommand = se_StartExecutionCommand;
|
|
209
149
|
const se_StartSyncExecutionCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.0",
|
|
212
|
-
"x-amz-target": "AWSStepFunctions.StartSyncExecution",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("StartSyncExecution");
|
|
214
151
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
153
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
217
154
|
if (context.disableHostPrefix !== true) {
|
|
218
155
|
resolvedHostname = "sync-" + resolvedHostname;
|
|
@@ -224,52 +161,37 @@ const se_StartSyncExecutionCommand = async (input, context) => {
|
|
|
224
161
|
};
|
|
225
162
|
exports.se_StartSyncExecutionCommand = se_StartSyncExecutionCommand;
|
|
226
163
|
const se_StopExecutionCommand = async (input, context) => {
|
|
227
|
-
const headers =
|
|
228
|
-
"content-type": "application/x-amz-json-1.0",
|
|
229
|
-
"x-amz-target": "AWSStepFunctions.StopExecution",
|
|
230
|
-
};
|
|
164
|
+
const headers = sharedHeaders("StopExecution");
|
|
231
165
|
let body;
|
|
232
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
233
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
168
|
};
|
|
235
169
|
exports.se_StopExecutionCommand = se_StopExecutionCommand;
|
|
236
170
|
const se_TagResourceCommand = async (input, context) => {
|
|
237
|
-
const headers =
|
|
238
|
-
"content-type": "application/x-amz-json-1.0",
|
|
239
|
-
"x-amz-target": "AWSStepFunctions.TagResource",
|
|
240
|
-
};
|
|
171
|
+
const headers = sharedHeaders("TagResource");
|
|
241
172
|
let body;
|
|
242
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
243
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
175
|
};
|
|
245
176
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
246
177
|
const se_UntagResourceCommand = async (input, context) => {
|
|
247
|
-
const headers =
|
|
248
|
-
"content-type": "application/x-amz-json-1.0",
|
|
249
|
-
"x-amz-target": "AWSStepFunctions.UntagResource",
|
|
250
|
-
};
|
|
178
|
+
const headers = sharedHeaders("UntagResource");
|
|
251
179
|
let body;
|
|
252
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
182
|
};
|
|
255
183
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
256
184
|
const se_UpdateMapRunCommand = async (input, context) => {
|
|
257
|
-
const headers =
|
|
258
|
-
"content-type": "application/x-amz-json-1.0",
|
|
259
|
-
"x-amz-target": "AWSStepFunctions.UpdateMapRun",
|
|
260
|
-
};
|
|
185
|
+
const headers = sharedHeaders("UpdateMapRun");
|
|
261
186
|
let body;
|
|
262
187
|
body = JSON.stringify(se_UpdateMapRunInput(input, context));
|
|
263
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
189
|
};
|
|
265
190
|
exports.se_UpdateMapRunCommand = se_UpdateMapRunCommand;
|
|
266
191
|
const se_UpdateStateMachineCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.0",
|
|
269
|
-
"x-amz-target": "AWSStepFunctions.UpdateStateMachine",
|
|
270
|
-
};
|
|
192
|
+
const headers = sharedHeaders("UpdateStateMachine");
|
|
271
193
|
let body;
|
|
272
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
273
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
196
|
};
|
|
275
197
|
exports.se_UpdateStateMachineCommand = se_UpdateStateMachineCommand;
|
|
@@ -284,7 +206,7 @@ const de_CreateActivityCommand = async (output, context) => {
|
|
|
284
206
|
$metadata: deserializeMetadata(output),
|
|
285
207
|
...contents,
|
|
286
208
|
};
|
|
287
|
-
return
|
|
209
|
+
return response;
|
|
288
210
|
};
|
|
289
211
|
exports.de_CreateActivityCommand = de_CreateActivityCommand;
|
|
290
212
|
const de_CreateActivityCommandError = async (output, context) => {
|
|
@@ -305,10 +227,9 @@ const de_CreateActivityCommandError = async (output, context) => {
|
|
|
305
227
|
throw await de_TooManyTagsRes(parsedOutput, context);
|
|
306
228
|
default:
|
|
307
229
|
const parsedBody = parsedOutput.body;
|
|
308
|
-
|
|
230
|
+
return throwDefaultError({
|
|
309
231
|
output,
|
|
310
232
|
parsedBody,
|
|
311
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
312
233
|
errorCode,
|
|
313
234
|
});
|
|
314
235
|
}
|
|
@@ -324,7 +245,7 @@ const de_CreateStateMachineCommand = async (output, context) => {
|
|
|
324
245
|
$metadata: deserializeMetadata(output),
|
|
325
246
|
...contents,
|
|
326
247
|
};
|
|
327
|
-
return
|
|
248
|
+
return response;
|
|
328
249
|
};
|
|
329
250
|
exports.de_CreateStateMachineCommand = de_CreateStateMachineCommand;
|
|
330
251
|
const de_CreateStateMachineCommandError = async (output, context) => {
|
|
@@ -366,10 +287,9 @@ const de_CreateStateMachineCommandError = async (output, context) => {
|
|
|
366
287
|
throw await de_TooManyTagsRes(parsedOutput, context);
|
|
367
288
|
default:
|
|
368
289
|
const parsedBody = parsedOutput.body;
|
|
369
|
-
|
|
290
|
+
return throwDefaultError({
|
|
370
291
|
output,
|
|
371
292
|
parsedBody,
|
|
372
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
373
293
|
errorCode,
|
|
374
294
|
});
|
|
375
295
|
}
|
|
@@ -380,12 +300,12 @@ const de_DeleteActivityCommand = async (output, context) => {
|
|
|
380
300
|
}
|
|
381
301
|
const data = await parseBody(output.body, context);
|
|
382
302
|
let contents = {};
|
|
383
|
-
contents =
|
|
303
|
+
contents = (0, smithy_client_1._json)(data);
|
|
384
304
|
const response = {
|
|
385
305
|
$metadata: deserializeMetadata(output),
|
|
386
306
|
...contents,
|
|
387
307
|
};
|
|
388
|
-
return
|
|
308
|
+
return response;
|
|
389
309
|
};
|
|
390
310
|
exports.de_DeleteActivityCommand = de_DeleteActivityCommand;
|
|
391
311
|
const de_DeleteActivityCommandError = async (output, context) => {
|
|
@@ -400,10 +320,9 @@ const de_DeleteActivityCommandError = async (output, context) => {
|
|
|
400
320
|
throw await de_InvalidArnRes(parsedOutput, context);
|
|
401
321
|
default:
|
|
402
322
|
const parsedBody = parsedOutput.body;
|
|
403
|
-
|
|
323
|
+
return throwDefaultError({
|
|
404
324
|
output,
|
|
405
325
|
parsedBody,
|
|
406
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
407
326
|
errorCode,
|
|
408
327
|
});
|
|
409
328
|
}
|
|
@@ -414,12 +333,12 @@ const de_DeleteStateMachineCommand = async (output, context) => {
|
|
|
414
333
|
}
|
|
415
334
|
const data = await parseBody(output.body, context);
|
|
416
335
|
let contents = {};
|
|
417
|
-
contents =
|
|
336
|
+
contents = (0, smithy_client_1._json)(data);
|
|
418
337
|
const response = {
|
|
419
338
|
$metadata: deserializeMetadata(output),
|
|
420
339
|
...contents,
|
|
421
340
|
};
|
|
422
|
-
return
|
|
341
|
+
return response;
|
|
423
342
|
};
|
|
424
343
|
exports.de_DeleteStateMachineCommand = de_DeleteStateMachineCommand;
|
|
425
344
|
const de_DeleteStateMachineCommandError = async (output, context) => {
|
|
@@ -437,10 +356,9 @@ const de_DeleteStateMachineCommandError = async (output, context) => {
|
|
|
437
356
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
438
357
|
default:
|
|
439
358
|
const parsedBody = parsedOutput.body;
|
|
440
|
-
|
|
359
|
+
return throwDefaultError({
|
|
441
360
|
output,
|
|
442
361
|
parsedBody,
|
|
443
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
444
362
|
errorCode,
|
|
445
363
|
});
|
|
446
364
|
}
|
|
@@ -456,7 +374,7 @@ const de_DescribeActivityCommand = async (output, context) => {
|
|
|
456
374
|
$metadata: deserializeMetadata(output),
|
|
457
375
|
...contents,
|
|
458
376
|
};
|
|
459
|
-
return
|
|
377
|
+
return response;
|
|
460
378
|
};
|
|
461
379
|
exports.de_DescribeActivityCommand = de_DescribeActivityCommand;
|
|
462
380
|
const de_DescribeActivityCommandError = async (output, context) => {
|
|
@@ -474,10 +392,9 @@ const de_DescribeActivityCommandError = async (output, context) => {
|
|
|
474
392
|
throw await de_InvalidArnRes(parsedOutput, context);
|
|
475
393
|
default:
|
|
476
394
|
const parsedBody = parsedOutput.body;
|
|
477
|
-
|
|
395
|
+
return throwDefaultError({
|
|
478
396
|
output,
|
|
479
397
|
parsedBody,
|
|
480
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
481
398
|
errorCode,
|
|
482
399
|
});
|
|
483
400
|
}
|
|
@@ -493,7 +410,7 @@ const de_DescribeExecutionCommand = async (output, context) => {
|
|
|
493
410
|
$metadata: deserializeMetadata(output),
|
|
494
411
|
...contents,
|
|
495
412
|
};
|
|
496
|
-
return
|
|
413
|
+
return response;
|
|
497
414
|
};
|
|
498
415
|
exports.de_DescribeExecutionCommand = de_DescribeExecutionCommand;
|
|
499
416
|
const de_DescribeExecutionCommandError = async (output, context) => {
|
|
@@ -511,10 +428,9 @@ const de_DescribeExecutionCommandError = async (output, context) => {
|
|
|
511
428
|
throw await de_InvalidArnRes(parsedOutput, context);
|
|
512
429
|
default:
|
|
513
430
|
const parsedBody = parsedOutput.body;
|
|
514
|
-
|
|
431
|
+
return throwDefaultError({
|
|
515
432
|
output,
|
|
516
433
|
parsedBody,
|
|
517
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
518
434
|
errorCode,
|
|
519
435
|
});
|
|
520
436
|
}
|
|
@@ -530,7 +446,7 @@ const de_DescribeMapRunCommand = async (output, context) => {
|
|
|
530
446
|
$metadata: deserializeMetadata(output),
|
|
531
447
|
...contents,
|
|
532
448
|
};
|
|
533
|
-
return
|
|
449
|
+
return response;
|
|
534
450
|
};
|
|
535
451
|
exports.de_DescribeMapRunCommand = de_DescribeMapRunCommand;
|
|
536
452
|
const de_DescribeMapRunCommandError = async (output, context) => {
|
|
@@ -548,10 +464,9 @@ const de_DescribeMapRunCommandError = async (output, context) => {
|
|
|
548
464
|
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
549
465
|
default:
|
|
550
466
|
const parsedBody = parsedOutput.body;
|
|
551
|
-
|
|
467
|
+
return throwDefaultError({
|
|
552
468
|
output,
|
|
553
469
|
parsedBody,
|
|
554
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
555
470
|
errorCode,
|
|
556
471
|
});
|
|
557
472
|
}
|
|
@@ -567,7 +482,7 @@ const de_DescribeStateMachineCommand = async (output, context) => {
|
|
|
567
482
|
$metadata: deserializeMetadata(output),
|
|
568
483
|
...contents,
|
|
569
484
|
};
|
|
570
|
-
return
|
|
485
|
+
return response;
|
|
571
486
|
};
|
|
572
487
|
exports.de_DescribeStateMachineCommand = de_DescribeStateMachineCommand;
|
|
573
488
|
const de_DescribeStateMachineCommandError = async (output, context) => {
|
|
@@ -585,10 +500,9 @@ const de_DescribeStateMachineCommandError = async (output, context) => {
|
|
|
585
500
|
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
586
501
|
default:
|
|
587
502
|
const parsedBody = parsedOutput.body;
|
|
588
|
-
|
|
503
|
+
return throwDefaultError({
|
|
589
504
|
output,
|
|
590
505
|
parsedBody,
|
|
591
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
592
506
|
errorCode,
|
|
593
507
|
});
|
|
594
508
|
}
|
|
@@ -604,7 +518,7 @@ const de_DescribeStateMachineForExecutionCommand = async (output, context) => {
|
|
|
604
518
|
$metadata: deserializeMetadata(output),
|
|
605
519
|
...contents,
|
|
606
520
|
};
|
|
607
|
-
return
|
|
521
|
+
return response;
|
|
608
522
|
};
|
|
609
523
|
exports.de_DescribeStateMachineForExecutionCommand = de_DescribeStateMachineForExecutionCommand;
|
|
610
524
|
const de_DescribeStateMachineForExecutionCommandError = async (output, context) => {
|
|
@@ -622,10 +536,9 @@ const de_DescribeStateMachineForExecutionCommandError = async (output, context)
|
|
|
622
536
|
throw await de_InvalidArnRes(parsedOutput, context);
|
|
623
537
|
default:
|
|
624
538
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
|
|
539
|
+
return throwDefaultError({
|
|
626
540
|
output,
|
|
627
541
|
parsedBody,
|
|
628
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
629
542
|
errorCode,
|
|
630
543
|
});
|
|
631
544
|
}
|
|
@@ -636,12 +549,12 @@ const de_GetActivityTaskCommand = async (output, context) => {
|
|
|
636
549
|
}
|
|
637
550
|
const data = await parseBody(output.body, context);
|
|
638
551
|
let contents = {};
|
|
639
|
-
contents =
|
|
552
|
+
contents = (0, smithy_client_1._json)(data);
|
|
640
553
|
const response = {
|
|
641
554
|
$metadata: deserializeMetadata(output),
|
|
642
555
|
...contents,
|
|
643
556
|
};
|
|
644
|
-
return
|
|
557
|
+
return response;
|
|
645
558
|
};
|
|
646
559
|
exports.de_GetActivityTaskCommand = de_GetActivityTaskCommand;
|
|
647
560
|
const de_GetActivityTaskCommandError = async (output, context) => {
|
|
@@ -662,10 +575,9 @@ const de_GetActivityTaskCommandError = async (output, context) => {
|
|
|
662
575
|
throw await de_InvalidArnRes(parsedOutput, context);
|
|
663
576
|
default:
|
|
664
577
|
const parsedBody = parsedOutput.body;
|
|
665
|
-
|
|
578
|
+
return throwDefaultError({
|
|
666
579
|
output,
|
|
667
580
|
parsedBody,
|
|
668
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
669
581
|
errorCode,
|
|
670
582
|
});
|
|
671
583
|
}
|
|
@@ -681,7 +593,7 @@ const de_GetExecutionHistoryCommand = async (output, context) => {
|
|
|
681
593
|
$metadata: deserializeMetadata(output),
|
|
682
594
|
...contents,
|
|
683
595
|
};
|
|
684
|
-
return
|
|
596
|
+
return response;
|
|
685
597
|
};
|
|
686
598
|
exports.de_GetExecutionHistoryCommand = de_GetExecutionHistoryCommand;
|
|
687
599
|
const de_GetExecutionHistoryCommandError = async (output, context) => {
|
|
@@ -702,10 +614,9 @@ const de_GetExecutionHistoryCommandError = async (output, context) => {
|
|
|
702
614
|
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
703
615
|
default:
|
|
704
616
|
const parsedBody = parsedOutput.body;
|
|
705
|
-
|
|
617
|
+
return throwDefaultError({
|
|
706
618
|
output,
|
|
707
619
|
parsedBody,
|
|
708
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
709
620
|
errorCode,
|
|
710
621
|
});
|
|
711
622
|
}
|
|
@@ -721,7 +632,7 @@ const de_ListActivitiesCommand = async (output, context) => {
|
|
|
721
632
|
$metadata: deserializeMetadata(output),
|
|
722
633
|
...contents,
|
|
723
634
|
};
|
|
724
|
-
return
|
|
635
|
+
return response;
|
|
725
636
|
};
|
|
726
637
|
exports.de_ListActivitiesCommand = de_ListActivitiesCommand;
|
|
727
638
|
const de_ListActivitiesCommandError = async (output, context) => {
|
|
@@ -736,10 +647,9 @@ const de_ListActivitiesCommandError = async (output, context) => {
|
|
|
736
647
|
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
737
648
|
default:
|
|
738
649
|
const parsedBody = parsedOutput.body;
|
|
739
|
-
|
|
650
|
+
return throwDefaultError({
|
|
740
651
|
output,
|
|
741
652
|
parsedBody,
|
|
742
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
743
653
|
errorCode,
|
|
744
654
|
});
|
|
745
655
|
}
|
|
@@ -755,7 +665,7 @@ const de_ListExecutionsCommand = async (output, context) => {
|
|
|
755
665
|
$metadata: deserializeMetadata(output),
|
|
756
666
|
...contents,
|
|
757
667
|
};
|
|
758
|
-
return
|
|
668
|
+
return response;
|
|
759
669
|
};
|
|
760
670
|
exports.de_ListExecutionsCommand = de_ListExecutionsCommand;
|
|
761
671
|
const de_ListExecutionsCommandError = async (output, context) => {
|
|
@@ -785,10 +695,9 @@ const de_ListExecutionsCommandError = async (output, context) => {
|
|
|
785
695
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
786
696
|
default:
|
|
787
697
|
const parsedBody = parsedOutput.body;
|
|
788
|
-
|
|
698
|
+
return throwDefaultError({
|
|
789
699
|
output,
|
|
790
700
|
parsedBody,
|
|
791
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
792
701
|
errorCode,
|
|
793
702
|
});
|
|
794
703
|
}
|
|
@@ -804,7 +713,7 @@ const de_ListMapRunsCommand = async (output, context) => {
|
|
|
804
713
|
$metadata: deserializeMetadata(output),
|
|
805
714
|
...contents,
|
|
806
715
|
};
|
|
807
|
-
return
|
|
716
|
+
return response;
|
|
808
717
|
};
|
|
809
718
|
exports.de_ListMapRunsCommand = de_ListMapRunsCommand;
|
|
810
719
|
const de_ListMapRunsCommandError = async (output, context) => {
|
|
@@ -825,10 +734,9 @@ const de_ListMapRunsCommandError = async (output, context) => {
|
|
|
825
734
|
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
826
735
|
default:
|
|
827
736
|
const parsedBody = parsedOutput.body;
|
|
828
|
-
|
|
737
|
+
return throwDefaultError({
|
|
829
738
|
output,
|
|
830
739
|
parsedBody,
|
|
831
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
832
740
|
errorCode,
|
|
833
741
|
});
|
|
834
742
|
}
|
|
@@ -844,7 +752,7 @@ const de_ListStateMachinesCommand = async (output, context) => {
|
|
|
844
752
|
$metadata: deserializeMetadata(output),
|
|
845
753
|
...contents,
|
|
846
754
|
};
|
|
847
|
-
return
|
|
755
|
+
return response;
|
|
848
756
|
};
|
|
849
757
|
exports.de_ListStateMachinesCommand = de_ListStateMachinesCommand;
|
|
850
758
|
const de_ListStateMachinesCommandError = async (output, context) => {
|
|
@@ -859,10 +767,9 @@ const de_ListStateMachinesCommandError = async (output, context) => {
|
|
|
859
767
|
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
860
768
|
default:
|
|
861
769
|
const parsedBody = parsedOutput.body;
|
|
862
|
-
|
|
770
|
+
return throwDefaultError({
|
|
863
771
|
output,
|
|
864
772
|
parsedBody,
|
|
865
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
866
773
|
errorCode,
|
|
867
774
|
});
|
|
868
775
|
}
|
|
@@ -873,12 +780,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
873
780
|
}
|
|
874
781
|
const data = await parseBody(output.body, context);
|
|
875
782
|
let contents = {};
|
|
876
|
-
contents =
|
|
783
|
+
contents = (0, smithy_client_1._json)(data);
|
|
877
784
|
const response = {
|
|
878
785
|
$metadata: deserializeMetadata(output),
|
|
879
786
|
...contents,
|
|
880
787
|
};
|
|
881
|
-
return
|
|
788
|
+
return response;
|
|
882
789
|
};
|
|
883
790
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
884
791
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -896,10 +803,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
896
803
|
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
897
804
|
default:
|
|
898
805
|
const parsedBody = parsedOutput.body;
|
|
899
|
-
|
|
806
|
+
return throwDefaultError({
|
|
900
807
|
output,
|
|
901
808
|
parsedBody,
|
|
902
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
903
809
|
errorCode,
|
|
904
810
|
});
|
|
905
811
|
}
|
|
@@ -910,12 +816,12 @@ const de_SendTaskFailureCommand = async (output, context) => {
|
|
|
910
816
|
}
|
|
911
817
|
const data = await parseBody(output.body, context);
|
|
912
818
|
let contents = {};
|
|
913
|
-
contents =
|
|
819
|
+
contents = (0, smithy_client_1._json)(data);
|
|
914
820
|
const response = {
|
|
915
821
|
$metadata: deserializeMetadata(output),
|
|
916
822
|
...contents,
|
|
917
823
|
};
|
|
918
|
-
return
|
|
824
|
+
return response;
|
|
919
825
|
};
|
|
920
826
|
exports.de_SendTaskFailureCommand = de_SendTaskFailureCommand;
|
|
921
827
|
const de_SendTaskFailureCommandError = async (output, context) => {
|
|
@@ -936,10 +842,9 @@ const de_SendTaskFailureCommandError = async (output, context) => {
|
|
|
936
842
|
throw await de_TaskTimedOutRes(parsedOutput, context);
|
|
937
843
|
default:
|
|
938
844
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
845
|
+
return throwDefaultError({
|
|
940
846
|
output,
|
|
941
847
|
parsedBody,
|
|
942
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
943
848
|
errorCode,
|
|
944
849
|
});
|
|
945
850
|
}
|
|
@@ -950,12 +855,12 @@ const de_SendTaskHeartbeatCommand = async (output, context) => {
|
|
|
950
855
|
}
|
|
951
856
|
const data = await parseBody(output.body, context);
|
|
952
857
|
let contents = {};
|
|
953
|
-
contents =
|
|
858
|
+
contents = (0, smithy_client_1._json)(data);
|
|
954
859
|
const response = {
|
|
955
860
|
$metadata: deserializeMetadata(output),
|
|
956
861
|
...contents,
|
|
957
862
|
};
|
|
958
|
-
return
|
|
863
|
+
return response;
|
|
959
864
|
};
|
|
960
865
|
exports.de_SendTaskHeartbeatCommand = de_SendTaskHeartbeatCommand;
|
|
961
866
|
const de_SendTaskHeartbeatCommandError = async (output, context) => {
|
|
@@ -976,10 +881,9 @@ const de_SendTaskHeartbeatCommandError = async (output, context) => {
|
|
|
976
881
|
throw await de_TaskTimedOutRes(parsedOutput, context);
|
|
977
882
|
default:
|
|
978
883
|
const parsedBody = parsedOutput.body;
|
|
979
|
-
|
|
884
|
+
return throwDefaultError({
|
|
980
885
|
output,
|
|
981
886
|
parsedBody,
|
|
982
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
983
887
|
errorCode,
|
|
984
888
|
});
|
|
985
889
|
}
|
|
@@ -990,12 +894,12 @@ const de_SendTaskSuccessCommand = async (output, context) => {
|
|
|
990
894
|
}
|
|
991
895
|
const data = await parseBody(output.body, context);
|
|
992
896
|
let contents = {};
|
|
993
|
-
contents =
|
|
897
|
+
contents = (0, smithy_client_1._json)(data);
|
|
994
898
|
const response = {
|
|
995
899
|
$metadata: deserializeMetadata(output),
|
|
996
900
|
...contents,
|
|
997
901
|
};
|
|
998
|
-
return
|
|
902
|
+
return response;
|
|
999
903
|
};
|
|
1000
904
|
exports.de_SendTaskSuccessCommand = de_SendTaskSuccessCommand;
|
|
1001
905
|
const de_SendTaskSuccessCommandError = async (output, context) => {
|
|
@@ -1019,10 +923,9 @@ const de_SendTaskSuccessCommandError = async (output, context) => {
|
|
|
1019
923
|
throw await de_TaskTimedOutRes(parsedOutput, context);
|
|
1020
924
|
default:
|
|
1021
925
|
const parsedBody = parsedOutput.body;
|
|
1022
|
-
|
|
926
|
+
return throwDefaultError({
|
|
1023
927
|
output,
|
|
1024
928
|
parsedBody,
|
|
1025
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1026
929
|
errorCode,
|
|
1027
930
|
});
|
|
1028
931
|
}
|
|
@@ -1038,7 +941,7 @@ const de_StartExecutionCommand = async (output, context) => {
|
|
|
1038
941
|
$metadata: deserializeMetadata(output),
|
|
1039
942
|
...contents,
|
|
1040
943
|
};
|
|
1041
|
-
return
|
|
944
|
+
return response;
|
|
1042
945
|
};
|
|
1043
946
|
exports.de_StartExecutionCommand = de_StartExecutionCommand;
|
|
1044
947
|
const de_StartExecutionCommandError = async (output, context) => {
|
|
@@ -1074,10 +977,9 @@ const de_StartExecutionCommandError = async (output, context) => {
|
|
|
1074
977
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1075
978
|
default:
|
|
1076
979
|
const parsedBody = parsedOutput.body;
|
|
1077
|
-
|
|
980
|
+
return throwDefaultError({
|
|
1078
981
|
output,
|
|
1079
982
|
parsedBody,
|
|
1080
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1081
983
|
errorCode,
|
|
1082
984
|
});
|
|
1083
985
|
}
|
|
@@ -1093,7 +995,7 @@ const de_StartSyncExecutionCommand = async (output, context) => {
|
|
|
1093
995
|
$metadata: deserializeMetadata(output),
|
|
1094
996
|
...contents,
|
|
1095
997
|
};
|
|
1096
|
-
return
|
|
998
|
+
return response;
|
|
1097
999
|
};
|
|
1098
1000
|
exports.de_StartSyncExecutionCommand = de_StartSyncExecutionCommand;
|
|
1099
1001
|
const de_StartSyncExecutionCommandError = async (output, context) => {
|
|
@@ -1123,10 +1025,9 @@ const de_StartSyncExecutionCommandError = async (output, context) => {
|
|
|
1123
1025
|
throw await de_StateMachineTypeNotSupportedRes(parsedOutput, context);
|
|
1124
1026
|
default:
|
|
1125
1027
|
const parsedBody = parsedOutput.body;
|
|
1126
|
-
|
|
1028
|
+
return throwDefaultError({
|
|
1127
1029
|
output,
|
|
1128
1030
|
parsedBody,
|
|
1129
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1130
1031
|
errorCode,
|
|
1131
1032
|
});
|
|
1132
1033
|
}
|
|
@@ -1142,7 +1043,7 @@ const de_StopExecutionCommand = async (output, context) => {
|
|
|
1142
1043
|
$metadata: deserializeMetadata(output),
|
|
1143
1044
|
...contents,
|
|
1144
1045
|
};
|
|
1145
|
-
return
|
|
1046
|
+
return response;
|
|
1146
1047
|
};
|
|
1147
1048
|
exports.de_StopExecutionCommand = de_StopExecutionCommand;
|
|
1148
1049
|
const de_StopExecutionCommandError = async (output, context) => {
|
|
@@ -1163,10 +1064,9 @@ const de_StopExecutionCommandError = async (output, context) => {
|
|
|
1163
1064
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1164
1065
|
default:
|
|
1165
1066
|
const parsedBody = parsedOutput.body;
|
|
1166
|
-
|
|
1067
|
+
return throwDefaultError({
|
|
1167
1068
|
output,
|
|
1168
1069
|
parsedBody,
|
|
1169
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1170
1070
|
errorCode,
|
|
1171
1071
|
});
|
|
1172
1072
|
}
|
|
@@ -1177,12 +1077,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1177
1077
|
}
|
|
1178
1078
|
const data = await parseBody(output.body, context);
|
|
1179
1079
|
let contents = {};
|
|
1180
|
-
contents =
|
|
1080
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1181
1081
|
const response = {
|
|
1182
1082
|
$metadata: deserializeMetadata(output),
|
|
1183
1083
|
...contents,
|
|
1184
1084
|
};
|
|
1185
|
-
return
|
|
1085
|
+
return response;
|
|
1186
1086
|
};
|
|
1187
1087
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1188
1088
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1203,10 +1103,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1203
1103
|
throw await de_TooManyTagsRes(parsedOutput, context);
|
|
1204
1104
|
default:
|
|
1205
1105
|
const parsedBody = parsedOutput.body;
|
|
1206
|
-
|
|
1106
|
+
return throwDefaultError({
|
|
1207
1107
|
output,
|
|
1208
1108
|
parsedBody,
|
|
1209
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1210
1109
|
errorCode,
|
|
1211
1110
|
});
|
|
1212
1111
|
}
|
|
@@ -1217,12 +1116,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1217
1116
|
}
|
|
1218
1117
|
const data = await parseBody(output.body, context);
|
|
1219
1118
|
let contents = {};
|
|
1220
|
-
contents =
|
|
1119
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1221
1120
|
const response = {
|
|
1222
1121
|
$metadata: deserializeMetadata(output),
|
|
1223
1122
|
...contents,
|
|
1224
1123
|
};
|
|
1225
|
-
return
|
|
1124
|
+
return response;
|
|
1226
1125
|
};
|
|
1227
1126
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1228
1127
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1240,10 +1139,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1240
1139
|
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1241
1140
|
default:
|
|
1242
1141
|
const parsedBody = parsedOutput.body;
|
|
1243
|
-
|
|
1142
|
+
return throwDefaultError({
|
|
1244
1143
|
output,
|
|
1245
1144
|
parsedBody,
|
|
1246
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1247
1145
|
errorCode,
|
|
1248
1146
|
});
|
|
1249
1147
|
}
|
|
@@ -1254,12 +1152,12 @@ const de_UpdateMapRunCommand = async (output, context) => {
|
|
|
1254
1152
|
}
|
|
1255
1153
|
const data = await parseBody(output.body, context);
|
|
1256
1154
|
let contents = {};
|
|
1257
|
-
contents =
|
|
1155
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1258
1156
|
const response = {
|
|
1259
1157
|
$metadata: deserializeMetadata(output),
|
|
1260
1158
|
...contents,
|
|
1261
1159
|
};
|
|
1262
|
-
return
|
|
1160
|
+
return response;
|
|
1263
1161
|
};
|
|
1264
1162
|
exports.de_UpdateMapRunCommand = de_UpdateMapRunCommand;
|
|
1265
1163
|
const de_UpdateMapRunCommandError = async (output, context) => {
|
|
@@ -1280,10 +1178,9 @@ const de_UpdateMapRunCommandError = async (output, context) => {
|
|
|
1280
1178
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1281
1179
|
default:
|
|
1282
1180
|
const parsedBody = parsedOutput.body;
|
|
1283
|
-
|
|
1181
|
+
return throwDefaultError({
|
|
1284
1182
|
output,
|
|
1285
1183
|
parsedBody,
|
|
1286
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1287
1184
|
errorCode,
|
|
1288
1185
|
});
|
|
1289
1186
|
}
|
|
@@ -1299,7 +1196,7 @@ const de_UpdateStateMachineCommand = async (output, context) => {
|
|
|
1299
1196
|
$metadata: deserializeMetadata(output),
|
|
1300
1197
|
...contents,
|
|
1301
1198
|
};
|
|
1302
|
-
return
|
|
1199
|
+
return response;
|
|
1303
1200
|
};
|
|
1304
1201
|
exports.de_UpdateStateMachineCommand = de_UpdateStateMachineCommand;
|
|
1305
1202
|
const de_UpdateStateMachineCommandError = async (output, context) => {
|
|
@@ -1335,17 +1232,16 @@ const de_UpdateStateMachineCommandError = async (output, context) => {
|
|
|
1335
1232
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
1233
|
default:
|
|
1337
1234
|
const parsedBody = parsedOutput.body;
|
|
1338
|
-
|
|
1235
|
+
return throwDefaultError({
|
|
1339
1236
|
output,
|
|
1340
1237
|
parsedBody,
|
|
1341
|
-
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1342
1238
|
errorCode,
|
|
1343
1239
|
});
|
|
1344
1240
|
}
|
|
1345
1241
|
};
|
|
1346
1242
|
const de_ActivityDoesNotExistRes = async (parsedOutput, context) => {
|
|
1347
1243
|
const body = parsedOutput.body;
|
|
1348
|
-
const deserialized =
|
|
1244
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1349
1245
|
const exception = new models_0_1.ActivityDoesNotExist({
|
|
1350
1246
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1351
1247
|
...deserialized,
|
|
@@ -1354,7 +1250,7 @@ const de_ActivityDoesNotExistRes = async (parsedOutput, context) => {
|
|
|
1354
1250
|
};
|
|
1355
1251
|
const de_ActivityLimitExceededRes = async (parsedOutput, context) => {
|
|
1356
1252
|
const body = parsedOutput.body;
|
|
1357
|
-
const deserialized =
|
|
1253
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1358
1254
|
const exception = new models_0_1.ActivityLimitExceeded({
|
|
1359
1255
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1360
1256
|
...deserialized,
|
|
@@ -1363,7 +1259,7 @@ const de_ActivityLimitExceededRes = async (parsedOutput, context) => {
|
|
|
1363
1259
|
};
|
|
1364
1260
|
const de_ActivityWorkerLimitExceededRes = async (parsedOutput, context) => {
|
|
1365
1261
|
const body = parsedOutput.body;
|
|
1366
|
-
const deserialized =
|
|
1262
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1367
1263
|
const exception = new models_0_1.ActivityWorkerLimitExceeded({
|
|
1368
1264
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1369
1265
|
...deserialized,
|
|
@@ -1372,7 +1268,7 @@ const de_ActivityWorkerLimitExceededRes = async (parsedOutput, context) => {
|
|
|
1372
1268
|
};
|
|
1373
1269
|
const de_ExecutionAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1374
1270
|
const body = parsedOutput.body;
|
|
1375
|
-
const deserialized =
|
|
1271
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1376
1272
|
const exception = new models_0_1.ExecutionAlreadyExists({
|
|
1377
1273
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1378
1274
|
...deserialized,
|
|
@@ -1381,7 +1277,7 @@ const de_ExecutionAlreadyExistsRes = async (parsedOutput, context) => {
|
|
|
1381
1277
|
};
|
|
1382
1278
|
const de_ExecutionDoesNotExistRes = async (parsedOutput, context) => {
|
|
1383
1279
|
const body = parsedOutput.body;
|
|
1384
|
-
const deserialized =
|
|
1280
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1385
1281
|
const exception = new models_0_1.ExecutionDoesNotExist({
|
|
1386
1282
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1387
1283
|
...deserialized,
|
|
@@ -1390,7 +1286,7 @@ const de_ExecutionDoesNotExistRes = async (parsedOutput, context) => {
|
|
|
1390
1286
|
};
|
|
1391
1287
|
const de_ExecutionLimitExceededRes = async (parsedOutput, context) => {
|
|
1392
1288
|
const body = parsedOutput.body;
|
|
1393
|
-
const deserialized =
|
|
1289
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1394
1290
|
const exception = new models_0_1.ExecutionLimitExceeded({
|
|
1395
1291
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1396
1292
|
...deserialized,
|
|
@@ -1399,7 +1295,7 @@ const de_ExecutionLimitExceededRes = async (parsedOutput, context) => {
|
|
|
1399
1295
|
};
|
|
1400
1296
|
const de_InvalidArnRes = async (parsedOutput, context) => {
|
|
1401
1297
|
const body = parsedOutput.body;
|
|
1402
|
-
const deserialized =
|
|
1298
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1403
1299
|
const exception = new models_0_1.InvalidArn({
|
|
1404
1300
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1405
1301
|
...deserialized,
|
|
@@ -1408,7 +1304,7 @@ const de_InvalidArnRes = async (parsedOutput, context) => {
|
|
|
1408
1304
|
};
|
|
1409
1305
|
const de_InvalidDefinitionRes = async (parsedOutput, context) => {
|
|
1410
1306
|
const body = parsedOutput.body;
|
|
1411
|
-
const deserialized =
|
|
1307
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1412
1308
|
const exception = new models_0_1.InvalidDefinition({
|
|
1413
1309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1414
1310
|
...deserialized,
|
|
@@ -1417,7 +1313,7 @@ const de_InvalidDefinitionRes = async (parsedOutput, context) => {
|
|
|
1417
1313
|
};
|
|
1418
1314
|
const de_InvalidExecutionInputRes = async (parsedOutput, context) => {
|
|
1419
1315
|
const body = parsedOutput.body;
|
|
1420
|
-
const deserialized =
|
|
1316
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1421
1317
|
const exception = new models_0_1.InvalidExecutionInput({
|
|
1422
1318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1423
1319
|
...deserialized,
|
|
@@ -1426,7 +1322,7 @@ const de_InvalidExecutionInputRes = async (parsedOutput, context) => {
|
|
|
1426
1322
|
};
|
|
1427
1323
|
const de_InvalidLoggingConfigurationRes = async (parsedOutput, context) => {
|
|
1428
1324
|
const body = parsedOutput.body;
|
|
1429
|
-
const deserialized =
|
|
1325
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1430
1326
|
const exception = new models_0_1.InvalidLoggingConfiguration({
|
|
1431
1327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1432
1328
|
...deserialized,
|
|
@@ -1435,7 +1331,7 @@ const de_InvalidLoggingConfigurationRes = async (parsedOutput, context) => {
|
|
|
1435
1331
|
};
|
|
1436
1332
|
const de_InvalidNameRes = async (parsedOutput, context) => {
|
|
1437
1333
|
const body = parsedOutput.body;
|
|
1438
|
-
const deserialized =
|
|
1334
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1439
1335
|
const exception = new models_0_1.InvalidName({
|
|
1440
1336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1441
1337
|
...deserialized,
|
|
@@ -1444,7 +1340,7 @@ const de_InvalidNameRes = async (parsedOutput, context) => {
|
|
|
1444
1340
|
};
|
|
1445
1341
|
const de_InvalidOutputRes = async (parsedOutput, context) => {
|
|
1446
1342
|
const body = parsedOutput.body;
|
|
1447
|
-
const deserialized =
|
|
1343
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1448
1344
|
const exception = new models_0_1.InvalidOutput({
|
|
1449
1345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1450
1346
|
...deserialized,
|
|
@@ -1453,7 +1349,7 @@ const de_InvalidOutputRes = async (parsedOutput, context) => {
|
|
|
1453
1349
|
};
|
|
1454
1350
|
const de_InvalidTokenRes = async (parsedOutput, context) => {
|
|
1455
1351
|
const body = parsedOutput.body;
|
|
1456
|
-
const deserialized =
|
|
1352
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1457
1353
|
const exception = new models_0_1.InvalidToken({
|
|
1458
1354
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1459
1355
|
...deserialized,
|
|
@@ -1462,7 +1358,7 @@ const de_InvalidTokenRes = async (parsedOutput, context) => {
|
|
|
1462
1358
|
};
|
|
1463
1359
|
const de_InvalidTracingConfigurationRes = async (parsedOutput, context) => {
|
|
1464
1360
|
const body = parsedOutput.body;
|
|
1465
|
-
const deserialized =
|
|
1361
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1466
1362
|
const exception = new models_0_1.InvalidTracingConfiguration({
|
|
1467
1363
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1468
1364
|
...deserialized,
|
|
@@ -1471,7 +1367,7 @@ const de_InvalidTracingConfigurationRes = async (parsedOutput, context) => {
|
|
|
1471
1367
|
};
|
|
1472
1368
|
const de_MissingRequiredParameterRes = async (parsedOutput, context) => {
|
|
1473
1369
|
const body = parsedOutput.body;
|
|
1474
|
-
const deserialized =
|
|
1370
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1475
1371
|
const exception = new models_0_1.MissingRequiredParameter({
|
|
1476
1372
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1477
1373
|
...deserialized,
|
|
@@ -1480,7 +1376,7 @@ const de_MissingRequiredParameterRes = async (parsedOutput, context) => {
|
|
|
1480
1376
|
};
|
|
1481
1377
|
const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
1482
1378
|
const body = parsedOutput.body;
|
|
1483
|
-
const deserialized =
|
|
1379
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1484
1380
|
const exception = new models_0_1.ResourceNotFound({
|
|
1485
1381
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1486
1382
|
...deserialized,
|
|
@@ -1489,7 +1385,7 @@ const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
|
1489
1385
|
};
|
|
1490
1386
|
const de_StateMachineAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1491
1387
|
const body = parsedOutput.body;
|
|
1492
|
-
const deserialized =
|
|
1388
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1493
1389
|
const exception = new models_0_1.StateMachineAlreadyExists({
|
|
1494
1390
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1495
1391
|
...deserialized,
|
|
@@ -1498,7 +1394,7 @@ const de_StateMachineAlreadyExistsRes = async (parsedOutput, context) => {
|
|
|
1498
1394
|
};
|
|
1499
1395
|
const de_StateMachineDeletingRes = async (parsedOutput, context) => {
|
|
1500
1396
|
const body = parsedOutput.body;
|
|
1501
|
-
const deserialized =
|
|
1397
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1502
1398
|
const exception = new models_0_1.StateMachineDeleting({
|
|
1503
1399
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1504
1400
|
...deserialized,
|
|
@@ -1507,7 +1403,7 @@ const de_StateMachineDeletingRes = async (parsedOutput, context) => {
|
|
|
1507
1403
|
};
|
|
1508
1404
|
const de_StateMachineDoesNotExistRes = async (parsedOutput, context) => {
|
|
1509
1405
|
const body = parsedOutput.body;
|
|
1510
|
-
const deserialized =
|
|
1406
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1511
1407
|
const exception = new models_0_1.StateMachineDoesNotExist({
|
|
1512
1408
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1513
1409
|
...deserialized,
|
|
@@ -1516,7 +1412,7 @@ const de_StateMachineDoesNotExistRes = async (parsedOutput, context) => {
|
|
|
1516
1412
|
};
|
|
1517
1413
|
const de_StateMachineLimitExceededRes = async (parsedOutput, context) => {
|
|
1518
1414
|
const body = parsedOutput.body;
|
|
1519
|
-
const deserialized =
|
|
1415
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1520
1416
|
const exception = new models_0_1.StateMachineLimitExceeded({
|
|
1521
1417
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1522
1418
|
...deserialized,
|
|
@@ -1525,7 +1421,7 @@ const de_StateMachineLimitExceededRes = async (parsedOutput, context) => {
|
|
|
1525
1421
|
};
|
|
1526
1422
|
const de_StateMachineTypeNotSupportedRes = async (parsedOutput, context) => {
|
|
1527
1423
|
const body = parsedOutput.body;
|
|
1528
|
-
const deserialized =
|
|
1424
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1529
1425
|
const exception = new models_0_1.StateMachineTypeNotSupported({
|
|
1530
1426
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1531
1427
|
...deserialized,
|
|
@@ -1534,7 +1430,7 @@ const de_StateMachineTypeNotSupportedRes = async (parsedOutput, context) => {
|
|
|
1534
1430
|
};
|
|
1535
1431
|
const de_TaskDoesNotExistRes = async (parsedOutput, context) => {
|
|
1536
1432
|
const body = parsedOutput.body;
|
|
1537
|
-
const deserialized =
|
|
1433
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1538
1434
|
const exception = new models_0_1.TaskDoesNotExist({
|
|
1539
1435
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1540
1436
|
...deserialized,
|
|
@@ -1543,7 +1439,7 @@ const de_TaskDoesNotExistRes = async (parsedOutput, context) => {
|
|
|
1543
1439
|
};
|
|
1544
1440
|
const de_TaskTimedOutRes = async (parsedOutput, context) => {
|
|
1545
1441
|
const body = parsedOutput.body;
|
|
1546
|
-
const deserialized =
|
|
1442
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1547
1443
|
const exception = new models_0_1.TaskTimedOut({
|
|
1548
1444
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1549
1445
|
...deserialized,
|
|
@@ -1552,7 +1448,7 @@ const de_TaskTimedOutRes = async (parsedOutput, context) => {
|
|
|
1552
1448
|
};
|
|
1553
1449
|
const de_TooManyTagsRes = async (parsedOutput, context) => {
|
|
1554
1450
|
const body = parsedOutput.body;
|
|
1555
|
-
const deserialized =
|
|
1451
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1556
1452
|
const exception = new models_0_1.TooManyTags({
|
|
1557
1453
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1558
1454
|
...deserialized,
|
|
@@ -1561,1067 +1457,280 @@ const de_TooManyTagsRes = async (parsedOutput, context) => {
|
|
|
1561
1457
|
};
|
|
1562
1458
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1563
1459
|
const body = parsedOutput.body;
|
|
1564
|
-
const deserialized =
|
|
1460
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1565
1461
|
const exception = new models_0_1.ValidationException({
|
|
1566
1462
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1567
1463
|
...deserialized,
|
|
1568
1464
|
});
|
|
1569
1465
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1570
1466
|
};
|
|
1571
|
-
const se_CloudWatchLogsLogGroup = (input, context) => {
|
|
1572
|
-
return {
|
|
1573
|
-
...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
|
|
1574
|
-
};
|
|
1575
|
-
};
|
|
1576
|
-
const se_CreateActivityInput = (input, context) => {
|
|
1577
|
-
return {
|
|
1578
|
-
...(input.name != null && { name: input.name }),
|
|
1579
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1580
|
-
};
|
|
1581
|
-
};
|
|
1582
|
-
const se_CreateStateMachineInput = (input, context) => {
|
|
1583
|
-
return {
|
|
1584
|
-
...(input.definition != null && { definition: input.definition }),
|
|
1585
|
-
...(input.loggingConfiguration != null && {
|
|
1586
|
-
loggingConfiguration: se_LoggingConfiguration(input.loggingConfiguration, context),
|
|
1587
|
-
}),
|
|
1588
|
-
...(input.name != null && { name: input.name }),
|
|
1589
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1590
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1591
|
-
...(input.tracingConfiguration != null && {
|
|
1592
|
-
tracingConfiguration: se_TracingConfiguration(input.tracingConfiguration, context),
|
|
1593
|
-
}),
|
|
1594
|
-
...(input.type != null && { type: input.type }),
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
const se_DeleteActivityInput = (input, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
const se_DeleteStateMachineInput = (input, context) => {
|
|
1603
|
-
return {
|
|
1604
|
-
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
const se_DescribeActivityInput = (input, context) => {
|
|
1608
|
-
return {
|
|
1609
|
-
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1610
|
-
};
|
|
1611
|
-
};
|
|
1612
|
-
const se_DescribeExecutionInput = (input, context) => {
|
|
1613
|
-
return {
|
|
1614
|
-
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1615
|
-
};
|
|
1616
|
-
};
|
|
1617
|
-
const se_DescribeMapRunInput = (input, context) => {
|
|
1618
|
-
return {
|
|
1619
|
-
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1620
|
-
};
|
|
1621
|
-
};
|
|
1622
|
-
const se_DescribeStateMachineForExecutionInput = (input, context) => {
|
|
1623
|
-
return {
|
|
1624
|
-
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1625
|
-
};
|
|
1626
|
-
};
|
|
1627
|
-
const se_DescribeStateMachineInput = (input, context) => {
|
|
1628
|
-
return {
|
|
1629
|
-
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1630
|
-
};
|
|
1631
|
-
};
|
|
1632
|
-
const se_GetActivityTaskInput = (input, context) => {
|
|
1633
|
-
return {
|
|
1634
|
-
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1635
|
-
...(input.workerName != null && { workerName: input.workerName }),
|
|
1636
|
-
};
|
|
1637
|
-
};
|
|
1638
|
-
const se_GetExecutionHistoryInput = (input, context) => {
|
|
1639
|
-
return {
|
|
1640
|
-
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1641
|
-
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1642
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1643
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1644
|
-
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
1645
|
-
};
|
|
1646
|
-
};
|
|
1647
|
-
const se_ListActivitiesInput = (input, context) => {
|
|
1648
|
-
return {
|
|
1649
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1650
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
const se_ListExecutionsInput = (input, context) => {
|
|
1654
|
-
return {
|
|
1655
|
-
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1656
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1657
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1658
|
-
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1659
|
-
...(input.statusFilter != null && { statusFilter: input.statusFilter }),
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
const se_ListMapRunsInput = (input, context) => {
|
|
1663
|
-
return {
|
|
1664
|
-
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1665
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1666
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
const se_ListStateMachinesInput = (input, context) => {
|
|
1670
|
-
return {
|
|
1671
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1672
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1673
|
-
};
|
|
1674
|
-
};
|
|
1675
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
1676
|
-
return {
|
|
1677
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1678
|
-
};
|
|
1679
|
-
};
|
|
1680
|
-
const se_LogDestination = (input, context) => {
|
|
1681
|
-
return {
|
|
1682
|
-
...(input.cloudWatchLogsLogGroup != null && {
|
|
1683
|
-
cloudWatchLogsLogGroup: se_CloudWatchLogsLogGroup(input.cloudWatchLogsLogGroup, context),
|
|
1684
|
-
}),
|
|
1685
|
-
};
|
|
1686
|
-
};
|
|
1687
|
-
const se_LogDestinationList = (input, context) => {
|
|
1688
|
-
return input
|
|
1689
|
-
.filter((e) => e != null)
|
|
1690
|
-
.map((entry) => {
|
|
1691
|
-
return se_LogDestination(entry, context);
|
|
1692
|
-
});
|
|
1693
|
-
};
|
|
1694
|
-
const se_LoggingConfiguration = (input, context) => {
|
|
1695
|
-
return {
|
|
1696
|
-
...(input.destinations != null && { destinations: se_LogDestinationList(input.destinations, context) }),
|
|
1697
|
-
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1698
|
-
...(input.level != null && { level: input.level }),
|
|
1699
|
-
};
|
|
1700
|
-
};
|
|
1701
|
-
const se_SendTaskFailureInput = (input, context) => {
|
|
1702
|
-
return {
|
|
1703
|
-
...(input.cause != null && { cause: input.cause }),
|
|
1704
|
-
...(input.error != null && { error: input.error }),
|
|
1705
|
-
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1706
|
-
};
|
|
1707
|
-
};
|
|
1708
|
-
const se_SendTaskHeartbeatInput = (input, context) => {
|
|
1709
|
-
return {
|
|
1710
|
-
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1711
|
-
};
|
|
1712
|
-
};
|
|
1713
|
-
const se_SendTaskSuccessInput = (input, context) => {
|
|
1714
|
-
return {
|
|
1715
|
-
...(input.output != null && { output: input.output }),
|
|
1716
|
-
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1717
|
-
};
|
|
1718
|
-
};
|
|
1719
|
-
const se_StartExecutionInput = (input, context) => {
|
|
1720
|
-
return {
|
|
1721
|
-
...(input.input != null && { input: input.input }),
|
|
1722
|
-
...(input.name != null && { name: input.name }),
|
|
1723
|
-
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1724
|
-
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1725
|
-
};
|
|
1726
|
-
};
|
|
1727
|
-
const se_StartSyncExecutionInput = (input, context) => {
|
|
1728
|
-
return {
|
|
1729
|
-
...(input.input != null && { input: input.input }),
|
|
1730
|
-
...(input.name != null && { name: input.name }),
|
|
1731
|
-
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1732
|
-
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1733
|
-
};
|
|
1734
|
-
};
|
|
1735
|
-
const se_StopExecutionInput = (input, context) => {
|
|
1736
|
-
return {
|
|
1737
|
-
...(input.cause != null && { cause: input.cause }),
|
|
1738
|
-
...(input.error != null && { error: input.error }),
|
|
1739
|
-
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1740
|
-
};
|
|
1741
|
-
};
|
|
1742
|
-
const se_Tag = (input, context) => {
|
|
1743
|
-
return {
|
|
1744
|
-
...(input.key != null && { key: input.key }),
|
|
1745
|
-
...(input.value != null && { value: input.value }),
|
|
1746
|
-
};
|
|
1747
|
-
};
|
|
1748
|
-
const se_TagKeyList = (input, context) => {
|
|
1749
|
-
return input
|
|
1750
|
-
.filter((e) => e != null)
|
|
1751
|
-
.map((entry) => {
|
|
1752
|
-
return entry;
|
|
1753
|
-
});
|
|
1754
|
-
};
|
|
1755
|
-
const se_TagList = (input, context) => {
|
|
1756
|
-
return input
|
|
1757
|
-
.filter((e) => e != null)
|
|
1758
|
-
.map((entry) => {
|
|
1759
|
-
return se_Tag(entry, context);
|
|
1760
|
-
});
|
|
1761
|
-
};
|
|
1762
|
-
const se_TagResourceInput = (input, context) => {
|
|
1763
|
-
return {
|
|
1764
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1765
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1766
|
-
};
|
|
1767
|
-
};
|
|
1768
|
-
const se_TracingConfiguration = (input, context) => {
|
|
1769
|
-
return {
|
|
1770
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1771
|
-
};
|
|
1772
|
-
};
|
|
1773
|
-
const se_UntagResourceInput = (input, context) => {
|
|
1774
|
-
return {
|
|
1775
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1776
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
1467
|
const se_UpdateMapRunInput = (input, context) => {
|
|
1780
|
-
return {
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
}),
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const se_UpdateStateMachineInput = (input, context) => {
|
|
1790
|
-
return {
|
|
1791
|
-
...(input.definition != null && { definition: input.definition }),
|
|
1792
|
-
...(input.loggingConfiguration != null && {
|
|
1793
|
-
loggingConfiguration: se_LoggingConfiguration(input.loggingConfiguration, context),
|
|
1794
|
-
}),
|
|
1795
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1796
|
-
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1797
|
-
...(input.tracingConfiguration != null && {
|
|
1798
|
-
tracingConfiguration: se_TracingConfiguration(input.tracingConfiguration, context),
|
|
1799
|
-
}),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const de_ActivityDoesNotExist = (output, context) => {
|
|
1803
|
-
return {
|
|
1804
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1805
|
-
};
|
|
1806
|
-
};
|
|
1807
|
-
const de_ActivityFailedEventDetails = (output, context) => {
|
|
1808
|
-
return {
|
|
1809
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
1810
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
1811
|
-
};
|
|
1812
|
-
};
|
|
1813
|
-
const de_ActivityLimitExceeded = (output, context) => {
|
|
1814
|
-
return {
|
|
1815
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1816
|
-
};
|
|
1468
|
+
return (0, smithy_client_1.take)(input, {
|
|
1469
|
+
mapRunArn: [],
|
|
1470
|
+
maxConcurrency: [],
|
|
1471
|
+
toleratedFailureCount: [],
|
|
1472
|
+
toleratedFailurePercentage: smithy_client_1.serializeFloat,
|
|
1473
|
+
});
|
|
1817
1474
|
};
|
|
1818
1475
|
const de_ActivityList = (output, context) => {
|
|
1819
1476
|
const retVal = (output || [])
|
|
1820
1477
|
.filter((e) => e != null)
|
|
1821
1478
|
.map((entry) => {
|
|
1822
|
-
if (entry === null) {
|
|
1823
|
-
return null;
|
|
1824
|
-
}
|
|
1825
1479
|
return de_ActivityListItem(entry, context);
|
|
1826
1480
|
});
|
|
1827
1481
|
return retVal;
|
|
1828
1482
|
};
|
|
1829
1483
|
const de_ActivityListItem = (output, context) => {
|
|
1830
|
-
return {
|
|
1831
|
-
activityArn:
|
|
1832
|
-
creationDate:
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1836
|
-
};
|
|
1837
|
-
};
|
|
1838
|
-
const de_ActivityScheduledEventDetails = (output, context) => {
|
|
1839
|
-
return {
|
|
1840
|
-
heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
|
|
1841
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
1842
|
-
inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
|
|
1843
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
1844
|
-
timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
|
|
1845
|
-
};
|
|
1846
|
-
};
|
|
1847
|
-
const de_ActivityScheduleFailedEventDetails = (output, context) => {
|
|
1848
|
-
return {
|
|
1849
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
1850
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
1851
|
-
};
|
|
1852
|
-
};
|
|
1853
|
-
const de_ActivityStartedEventDetails = (output, context) => {
|
|
1854
|
-
return {
|
|
1855
|
-
workerName: (0, smithy_client_1.expectString)(output.workerName),
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
const de_ActivitySucceededEventDetails = (output, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
output: (0, smithy_client_1.expectString)(output.output),
|
|
1861
|
-
outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
|
|
1862
|
-
};
|
|
1863
|
-
};
|
|
1864
|
-
const de_ActivityTimedOutEventDetails = (output, context) => {
|
|
1865
|
-
return {
|
|
1866
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
1867
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
1868
|
-
};
|
|
1869
|
-
};
|
|
1870
|
-
const de_ActivityWorkerLimitExceeded = (output, context) => {
|
|
1871
|
-
return {
|
|
1872
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1873
|
-
};
|
|
1874
|
-
};
|
|
1875
|
-
const de_BillingDetails = (output, context) => {
|
|
1876
|
-
return {
|
|
1877
|
-
billedDurationInMilliseconds: (0, smithy_client_1.expectLong)(output.billedDurationInMilliseconds),
|
|
1878
|
-
billedMemoryUsedInMB: (0, smithy_client_1.expectLong)(output.billedMemoryUsedInMB),
|
|
1879
|
-
};
|
|
1880
|
-
};
|
|
1881
|
-
const de_CloudWatchEventsExecutionDataDetails = (output, context) => {
|
|
1882
|
-
return {
|
|
1883
|
-
included: (0, smithy_client_1.expectBoolean)(output.included),
|
|
1884
|
-
};
|
|
1885
|
-
};
|
|
1886
|
-
const de_CloudWatchLogsLogGroup = (output, context) => {
|
|
1887
|
-
return {
|
|
1888
|
-
logGroupArn: (0, smithy_client_1.expectString)(output.logGroupArn),
|
|
1889
|
-
};
|
|
1484
|
+
return (0, smithy_client_1.take)(output, {
|
|
1485
|
+
activityArn: smithy_client_1.expectString,
|
|
1486
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1487
|
+
name: smithy_client_1.expectString,
|
|
1488
|
+
});
|
|
1890
1489
|
};
|
|
1891
1490
|
const de_CreateActivityOutput = (output, context) => {
|
|
1892
|
-
return {
|
|
1893
|
-
activityArn:
|
|
1894
|
-
creationDate:
|
|
1895
|
-
|
|
1896
|
-
: undefined,
|
|
1897
|
-
};
|
|
1491
|
+
return (0, smithy_client_1.take)(output, {
|
|
1492
|
+
activityArn: smithy_client_1.expectString,
|
|
1493
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1494
|
+
});
|
|
1898
1495
|
};
|
|
1899
1496
|
const de_CreateStateMachineOutput = (output, context) => {
|
|
1900
|
-
return {
|
|
1901
|
-
creationDate:
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1905
|
-
};
|
|
1906
|
-
};
|
|
1907
|
-
const de_DeleteActivityOutput = (output, context) => {
|
|
1908
|
-
return {};
|
|
1909
|
-
};
|
|
1910
|
-
const de_DeleteStateMachineOutput = (output, context) => {
|
|
1911
|
-
return {};
|
|
1497
|
+
return (0, smithy_client_1.take)(output, {
|
|
1498
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1499
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1500
|
+
});
|
|
1912
1501
|
};
|
|
1913
1502
|
const de_DescribeActivityOutput = (output, context) => {
|
|
1914
|
-
return {
|
|
1915
|
-
activityArn:
|
|
1916
|
-
creationDate:
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1920
|
-
};
|
|
1503
|
+
return (0, smithy_client_1.take)(output, {
|
|
1504
|
+
activityArn: smithy_client_1.expectString,
|
|
1505
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1506
|
+
name: smithy_client_1.expectString,
|
|
1507
|
+
});
|
|
1921
1508
|
};
|
|
1922
1509
|
const de_DescribeExecutionOutput = (output, context) => {
|
|
1923
|
-
return {
|
|
1924
|
-
cause:
|
|
1925
|
-
error:
|
|
1926
|
-
executionArn:
|
|
1927
|
-
input:
|
|
1928
|
-
inputDetails:
|
|
1929
|
-
mapRunArn:
|
|
1930
|
-
name:
|
|
1931
|
-
output:
|
|
1932
|
-
outputDetails:
|
|
1933
|
-
startDate:
|
|
1934
|
-
stateMachineArn:
|
|
1935
|
-
status:
|
|
1936
|
-
stopDate:
|
|
1937
|
-
traceHeader:
|
|
1938
|
-
};
|
|
1510
|
+
return (0, smithy_client_1.take)(output, {
|
|
1511
|
+
cause: smithy_client_1.expectString,
|
|
1512
|
+
error: smithy_client_1.expectString,
|
|
1513
|
+
executionArn: smithy_client_1.expectString,
|
|
1514
|
+
input: smithy_client_1.expectString,
|
|
1515
|
+
inputDetails: smithy_client_1._json,
|
|
1516
|
+
mapRunArn: smithy_client_1.expectString,
|
|
1517
|
+
name: smithy_client_1.expectString,
|
|
1518
|
+
output: smithy_client_1.expectString,
|
|
1519
|
+
outputDetails: smithy_client_1._json,
|
|
1520
|
+
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1521
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1522
|
+
status: smithy_client_1.expectString,
|
|
1523
|
+
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1524
|
+
traceHeader: smithy_client_1.expectString,
|
|
1525
|
+
});
|
|
1939
1526
|
};
|
|
1940
1527
|
const de_DescribeMapRunOutput = (output, context) => {
|
|
1941
|
-
return {
|
|
1942
|
-
executionArn:
|
|
1943
|
-
executionCounts:
|
|
1944
|
-
itemCounts:
|
|
1945
|
-
mapRunArn:
|
|
1946
|
-
maxConcurrency:
|
|
1947
|
-
startDate:
|
|
1948
|
-
status:
|
|
1949
|
-
stopDate:
|
|
1950
|
-
toleratedFailureCount:
|
|
1951
|
-
toleratedFailurePercentage:
|
|
1952
|
-
};
|
|
1528
|
+
return (0, smithy_client_1.take)(output, {
|
|
1529
|
+
executionArn: smithy_client_1.expectString,
|
|
1530
|
+
executionCounts: smithy_client_1._json,
|
|
1531
|
+
itemCounts: smithy_client_1._json,
|
|
1532
|
+
mapRunArn: smithy_client_1.expectString,
|
|
1533
|
+
maxConcurrency: smithy_client_1.expectInt32,
|
|
1534
|
+
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1535
|
+
status: smithy_client_1.expectString,
|
|
1536
|
+
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1537
|
+
toleratedFailureCount: smithy_client_1.expectLong,
|
|
1538
|
+
toleratedFailurePercentage: smithy_client_1.limitedParseFloat32,
|
|
1539
|
+
});
|
|
1953
1540
|
};
|
|
1954
1541
|
const de_DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
1955
|
-
return {
|
|
1956
|
-
definition:
|
|
1957
|
-
label:
|
|
1958
|
-
loggingConfiguration:
|
|
1959
|
-
mapRunArn:
|
|
1960
|
-
name:
|
|
1961
|
-
roleArn:
|
|
1962
|
-
stateMachineArn:
|
|
1963
|
-
tracingConfiguration:
|
|
1964
|
-
updateDate:
|
|
1965
|
-
};
|
|
1542
|
+
return (0, smithy_client_1.take)(output, {
|
|
1543
|
+
definition: smithy_client_1.expectString,
|
|
1544
|
+
label: smithy_client_1.expectString,
|
|
1545
|
+
loggingConfiguration: smithy_client_1._json,
|
|
1546
|
+
mapRunArn: smithy_client_1.expectString,
|
|
1547
|
+
name: smithy_client_1.expectString,
|
|
1548
|
+
roleArn: smithy_client_1.expectString,
|
|
1549
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1550
|
+
tracingConfiguration: smithy_client_1._json,
|
|
1551
|
+
updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1552
|
+
});
|
|
1966
1553
|
};
|
|
1967
1554
|
const de_DescribeStateMachineOutput = (output, context) => {
|
|
1968
|
-
return {
|
|
1969
|
-
creationDate:
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1981
|
-
};
|
|
1982
|
-
};
|
|
1983
|
-
const de_ExecutionAbortedEventDetails = (output, context) => {
|
|
1984
|
-
return {
|
|
1985
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
1986
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
1987
|
-
};
|
|
1988
|
-
};
|
|
1989
|
-
const de_ExecutionAlreadyExists = (output, context) => {
|
|
1990
|
-
return {
|
|
1991
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
const de_ExecutionDoesNotExist = (output, context) => {
|
|
1995
|
-
return {
|
|
1996
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1997
|
-
};
|
|
1998
|
-
};
|
|
1999
|
-
const de_ExecutionFailedEventDetails = (output, context) => {
|
|
2000
|
-
return {
|
|
2001
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2002
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2003
|
-
};
|
|
2004
|
-
};
|
|
2005
|
-
const de_ExecutionLimitExceeded = (output, context) => {
|
|
2006
|
-
return {
|
|
2007
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2008
|
-
};
|
|
1555
|
+
return (0, smithy_client_1.take)(output, {
|
|
1556
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1557
|
+
definition: smithy_client_1.expectString,
|
|
1558
|
+
label: smithy_client_1.expectString,
|
|
1559
|
+
loggingConfiguration: smithy_client_1._json,
|
|
1560
|
+
name: smithy_client_1.expectString,
|
|
1561
|
+
roleArn: smithy_client_1.expectString,
|
|
1562
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1563
|
+
status: smithy_client_1.expectString,
|
|
1564
|
+
tracingConfiguration: smithy_client_1._json,
|
|
1565
|
+
type: smithy_client_1.expectString,
|
|
1566
|
+
});
|
|
2009
1567
|
};
|
|
2010
1568
|
const de_ExecutionList = (output, context) => {
|
|
2011
1569
|
const retVal = (output || [])
|
|
2012
1570
|
.filter((e) => e != null)
|
|
2013
1571
|
.map((entry) => {
|
|
2014
|
-
if (entry === null) {
|
|
2015
|
-
return null;
|
|
2016
|
-
}
|
|
2017
1572
|
return de_ExecutionListItem(entry, context);
|
|
2018
1573
|
});
|
|
2019
1574
|
return retVal;
|
|
2020
1575
|
};
|
|
2021
1576
|
const de_ExecutionListItem = (output, context) => {
|
|
2022
|
-
return {
|
|
2023
|
-
executionArn:
|
|
2024
|
-
itemCount:
|
|
2025
|
-
mapRunArn:
|
|
2026
|
-
name:
|
|
2027
|
-
startDate:
|
|
2028
|
-
stateMachineArn:
|
|
2029
|
-
status:
|
|
2030
|
-
stopDate:
|
|
2031
|
-
};
|
|
2032
|
-
};
|
|
2033
|
-
const de_ExecutionStartedEventDetails = (output, context) => {
|
|
2034
|
-
return {
|
|
2035
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
2036
|
-
inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
|
|
2037
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2038
|
-
};
|
|
2039
|
-
};
|
|
2040
|
-
const de_ExecutionSucceededEventDetails = (output, context) => {
|
|
2041
|
-
return {
|
|
2042
|
-
output: (0, smithy_client_1.expectString)(output.output),
|
|
2043
|
-
outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
|
|
2044
|
-
};
|
|
2045
|
-
};
|
|
2046
|
-
const de_ExecutionTimedOutEventDetails = (output, context) => {
|
|
2047
|
-
return {
|
|
2048
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2049
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2050
|
-
};
|
|
2051
|
-
};
|
|
2052
|
-
const de_GetActivityTaskOutput = (output, context) => {
|
|
2053
|
-
return {
|
|
2054
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
2055
|
-
taskToken: (0, smithy_client_1.expectString)(output.taskToken),
|
|
2056
|
-
};
|
|
1577
|
+
return (0, smithy_client_1.take)(output, {
|
|
1578
|
+
executionArn: smithy_client_1.expectString,
|
|
1579
|
+
itemCount: smithy_client_1.expectInt32,
|
|
1580
|
+
mapRunArn: smithy_client_1.expectString,
|
|
1581
|
+
name: smithy_client_1.expectString,
|
|
1582
|
+
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1583
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1584
|
+
status: smithy_client_1.expectString,
|
|
1585
|
+
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1586
|
+
});
|
|
2057
1587
|
};
|
|
2058
1588
|
const de_GetExecutionHistoryOutput = (output, context) => {
|
|
2059
|
-
return {
|
|
2060
|
-
events:
|
|
2061
|
-
nextToken:
|
|
2062
|
-
};
|
|
1589
|
+
return (0, smithy_client_1.take)(output, {
|
|
1590
|
+
events: (_) => de_HistoryEventList(_, context),
|
|
1591
|
+
nextToken: smithy_client_1.expectString,
|
|
1592
|
+
});
|
|
2063
1593
|
};
|
|
2064
1594
|
const de_HistoryEvent = (output, context) => {
|
|
2065
|
-
return {
|
|
2066
|
-
activityFailedEventDetails:
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
: undefined,
|
|
2106
|
-
lambdaFunctionScheduledEventDetails: output.lambdaFunctionScheduledEventDetails != null
|
|
2107
|
-
? de_LambdaFunctionScheduledEventDetails(output.lambdaFunctionScheduledEventDetails, context)
|
|
2108
|
-
: undefined,
|
|
2109
|
-
lambdaFunctionStartFailedEventDetails: output.lambdaFunctionStartFailedEventDetails != null
|
|
2110
|
-
? de_LambdaFunctionStartFailedEventDetails(output.lambdaFunctionStartFailedEventDetails, context)
|
|
2111
|
-
: undefined,
|
|
2112
|
-
lambdaFunctionSucceededEventDetails: output.lambdaFunctionSucceededEventDetails != null
|
|
2113
|
-
? de_LambdaFunctionSucceededEventDetails(output.lambdaFunctionSucceededEventDetails, context)
|
|
2114
|
-
: undefined,
|
|
2115
|
-
lambdaFunctionTimedOutEventDetails: output.lambdaFunctionTimedOutEventDetails != null
|
|
2116
|
-
? de_LambdaFunctionTimedOutEventDetails(output.lambdaFunctionTimedOutEventDetails, context)
|
|
2117
|
-
: undefined,
|
|
2118
|
-
mapIterationAbortedEventDetails: output.mapIterationAbortedEventDetails != null
|
|
2119
|
-
? de_MapIterationEventDetails(output.mapIterationAbortedEventDetails, context)
|
|
2120
|
-
: undefined,
|
|
2121
|
-
mapIterationFailedEventDetails: output.mapIterationFailedEventDetails != null
|
|
2122
|
-
? de_MapIterationEventDetails(output.mapIterationFailedEventDetails, context)
|
|
2123
|
-
: undefined,
|
|
2124
|
-
mapIterationStartedEventDetails: output.mapIterationStartedEventDetails != null
|
|
2125
|
-
? de_MapIterationEventDetails(output.mapIterationStartedEventDetails, context)
|
|
2126
|
-
: undefined,
|
|
2127
|
-
mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails != null
|
|
2128
|
-
? de_MapIterationEventDetails(output.mapIterationSucceededEventDetails, context)
|
|
2129
|
-
: undefined,
|
|
2130
|
-
mapRunFailedEventDetails: output.mapRunFailedEventDetails != null
|
|
2131
|
-
? de_MapRunFailedEventDetails(output.mapRunFailedEventDetails, context)
|
|
2132
|
-
: undefined,
|
|
2133
|
-
mapRunStartedEventDetails: output.mapRunStartedEventDetails != null
|
|
2134
|
-
? de_MapRunStartedEventDetails(output.mapRunStartedEventDetails, context)
|
|
2135
|
-
: undefined,
|
|
2136
|
-
mapStateStartedEventDetails: output.mapStateStartedEventDetails != null
|
|
2137
|
-
? de_MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
|
|
2138
|
-
: undefined,
|
|
2139
|
-
previousEventId: (0, smithy_client_1.expectLong)(output.previousEventId),
|
|
2140
|
-
stateEnteredEventDetails: output.stateEnteredEventDetails != null
|
|
2141
|
-
? de_StateEnteredEventDetails(output.stateEnteredEventDetails, context)
|
|
2142
|
-
: undefined,
|
|
2143
|
-
stateExitedEventDetails: output.stateExitedEventDetails != null
|
|
2144
|
-
? de_StateExitedEventDetails(output.stateExitedEventDetails, context)
|
|
2145
|
-
: undefined,
|
|
2146
|
-
taskFailedEventDetails: output.taskFailedEventDetails != null
|
|
2147
|
-
? de_TaskFailedEventDetails(output.taskFailedEventDetails, context)
|
|
2148
|
-
: undefined,
|
|
2149
|
-
taskScheduledEventDetails: output.taskScheduledEventDetails != null
|
|
2150
|
-
? de_TaskScheduledEventDetails(output.taskScheduledEventDetails, context)
|
|
2151
|
-
: undefined,
|
|
2152
|
-
taskStartFailedEventDetails: output.taskStartFailedEventDetails != null
|
|
2153
|
-
? de_TaskStartFailedEventDetails(output.taskStartFailedEventDetails, context)
|
|
2154
|
-
: undefined,
|
|
2155
|
-
taskStartedEventDetails: output.taskStartedEventDetails != null
|
|
2156
|
-
? de_TaskStartedEventDetails(output.taskStartedEventDetails, context)
|
|
2157
|
-
: undefined,
|
|
2158
|
-
taskSubmitFailedEventDetails: output.taskSubmitFailedEventDetails != null
|
|
2159
|
-
? de_TaskSubmitFailedEventDetails(output.taskSubmitFailedEventDetails, context)
|
|
2160
|
-
: undefined,
|
|
2161
|
-
taskSubmittedEventDetails: output.taskSubmittedEventDetails != null
|
|
2162
|
-
? de_TaskSubmittedEventDetails(output.taskSubmittedEventDetails, context)
|
|
2163
|
-
: undefined,
|
|
2164
|
-
taskSucceededEventDetails: output.taskSucceededEventDetails != null
|
|
2165
|
-
? de_TaskSucceededEventDetails(output.taskSucceededEventDetails, context)
|
|
2166
|
-
: undefined,
|
|
2167
|
-
taskTimedOutEventDetails: output.taskTimedOutEventDetails != null
|
|
2168
|
-
? de_TaskTimedOutEventDetails(output.taskTimedOutEventDetails, context)
|
|
2169
|
-
: undefined,
|
|
2170
|
-
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
2171
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2172
|
-
};
|
|
2173
|
-
};
|
|
2174
|
-
const de_HistoryEventExecutionDataDetails = (output, context) => {
|
|
2175
|
-
return {
|
|
2176
|
-
truncated: (0, smithy_client_1.expectBoolean)(output.truncated),
|
|
2177
|
-
};
|
|
1595
|
+
return (0, smithy_client_1.take)(output, {
|
|
1596
|
+
activityFailedEventDetails: smithy_client_1._json,
|
|
1597
|
+
activityScheduleFailedEventDetails: smithy_client_1._json,
|
|
1598
|
+
activityScheduledEventDetails: smithy_client_1._json,
|
|
1599
|
+
activityStartedEventDetails: smithy_client_1._json,
|
|
1600
|
+
activitySucceededEventDetails: smithy_client_1._json,
|
|
1601
|
+
activityTimedOutEventDetails: smithy_client_1._json,
|
|
1602
|
+
executionAbortedEventDetails: smithy_client_1._json,
|
|
1603
|
+
executionFailedEventDetails: smithy_client_1._json,
|
|
1604
|
+
executionStartedEventDetails: smithy_client_1._json,
|
|
1605
|
+
executionSucceededEventDetails: smithy_client_1._json,
|
|
1606
|
+
executionTimedOutEventDetails: smithy_client_1._json,
|
|
1607
|
+
id: smithy_client_1.expectLong,
|
|
1608
|
+
lambdaFunctionFailedEventDetails: smithy_client_1._json,
|
|
1609
|
+
lambdaFunctionScheduleFailedEventDetails: smithy_client_1._json,
|
|
1610
|
+
lambdaFunctionScheduledEventDetails: smithy_client_1._json,
|
|
1611
|
+
lambdaFunctionStartFailedEventDetails: smithy_client_1._json,
|
|
1612
|
+
lambdaFunctionSucceededEventDetails: smithy_client_1._json,
|
|
1613
|
+
lambdaFunctionTimedOutEventDetails: smithy_client_1._json,
|
|
1614
|
+
mapIterationAbortedEventDetails: smithy_client_1._json,
|
|
1615
|
+
mapIterationFailedEventDetails: smithy_client_1._json,
|
|
1616
|
+
mapIterationStartedEventDetails: smithy_client_1._json,
|
|
1617
|
+
mapIterationSucceededEventDetails: smithy_client_1._json,
|
|
1618
|
+
mapRunFailedEventDetails: smithy_client_1._json,
|
|
1619
|
+
mapRunStartedEventDetails: smithy_client_1._json,
|
|
1620
|
+
mapStateStartedEventDetails: smithy_client_1._json,
|
|
1621
|
+
previousEventId: smithy_client_1.expectLong,
|
|
1622
|
+
stateEnteredEventDetails: smithy_client_1._json,
|
|
1623
|
+
stateExitedEventDetails: smithy_client_1._json,
|
|
1624
|
+
taskFailedEventDetails: smithy_client_1._json,
|
|
1625
|
+
taskScheduledEventDetails: smithy_client_1._json,
|
|
1626
|
+
taskStartFailedEventDetails: smithy_client_1._json,
|
|
1627
|
+
taskStartedEventDetails: smithy_client_1._json,
|
|
1628
|
+
taskSubmitFailedEventDetails: smithy_client_1._json,
|
|
1629
|
+
taskSubmittedEventDetails: smithy_client_1._json,
|
|
1630
|
+
taskSucceededEventDetails: smithy_client_1._json,
|
|
1631
|
+
taskTimedOutEventDetails: smithy_client_1._json,
|
|
1632
|
+
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1633
|
+
type: smithy_client_1.expectString,
|
|
1634
|
+
});
|
|
2178
1635
|
};
|
|
2179
1636
|
const de_HistoryEventList = (output, context) => {
|
|
2180
1637
|
const retVal = (output || [])
|
|
2181
1638
|
.filter((e) => e != null)
|
|
2182
1639
|
.map((entry) => {
|
|
2183
|
-
if (entry === null) {
|
|
2184
|
-
return null;
|
|
2185
|
-
}
|
|
2186
1640
|
return de_HistoryEvent(entry, context);
|
|
2187
1641
|
});
|
|
2188
1642
|
return retVal;
|
|
2189
1643
|
};
|
|
2190
|
-
const de_InvalidArn = (output, context) => {
|
|
2191
|
-
return {
|
|
2192
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2193
|
-
};
|
|
2194
|
-
};
|
|
2195
|
-
const de_InvalidDefinition = (output, context) => {
|
|
2196
|
-
return {
|
|
2197
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2198
|
-
};
|
|
2199
|
-
};
|
|
2200
|
-
const de_InvalidExecutionInput = (output, context) => {
|
|
2201
|
-
return {
|
|
2202
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2203
|
-
};
|
|
2204
|
-
};
|
|
2205
|
-
const de_InvalidLoggingConfiguration = (output, context) => {
|
|
2206
|
-
return {
|
|
2207
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2208
|
-
};
|
|
2209
|
-
};
|
|
2210
|
-
const de_InvalidName = (output, context) => {
|
|
2211
|
-
return {
|
|
2212
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2213
|
-
};
|
|
2214
|
-
};
|
|
2215
|
-
const de_InvalidOutput = (output, context) => {
|
|
2216
|
-
return {
|
|
2217
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2218
|
-
};
|
|
2219
|
-
};
|
|
2220
|
-
const de_InvalidToken = (output, context) => {
|
|
2221
|
-
return {
|
|
2222
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2223
|
-
};
|
|
2224
|
-
};
|
|
2225
|
-
const de_InvalidTracingConfiguration = (output, context) => {
|
|
2226
|
-
return {
|
|
2227
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2228
|
-
};
|
|
2229
|
-
};
|
|
2230
|
-
const de_LambdaFunctionFailedEventDetails = (output, context) => {
|
|
2231
|
-
return {
|
|
2232
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2233
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2234
|
-
};
|
|
2235
|
-
};
|
|
2236
|
-
const de_LambdaFunctionScheduledEventDetails = (output, context) => {
|
|
2237
|
-
return {
|
|
2238
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
2239
|
-
inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
|
|
2240
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2241
|
-
taskCredentials: output.taskCredentials != null ? de_TaskCredentials(output.taskCredentials, context) : undefined,
|
|
2242
|
-
timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
|
|
2243
|
-
};
|
|
2244
|
-
};
|
|
2245
|
-
const de_LambdaFunctionScheduleFailedEventDetails = (output, context) => {
|
|
2246
|
-
return {
|
|
2247
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2248
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2249
|
-
};
|
|
2250
|
-
};
|
|
2251
|
-
const de_LambdaFunctionStartFailedEventDetails = (output, context) => {
|
|
2252
|
-
return {
|
|
2253
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2254
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
const de_LambdaFunctionSucceededEventDetails = (output, context) => {
|
|
2258
|
-
return {
|
|
2259
|
-
output: (0, smithy_client_1.expectString)(output.output),
|
|
2260
|
-
outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
|
|
2261
|
-
};
|
|
2262
|
-
};
|
|
2263
|
-
const de_LambdaFunctionTimedOutEventDetails = (output, context) => {
|
|
2264
|
-
return {
|
|
2265
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2266
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2267
|
-
};
|
|
2268
|
-
};
|
|
2269
1644
|
const de_ListActivitiesOutput = (output, context) => {
|
|
2270
|
-
return {
|
|
2271
|
-
activities:
|
|
2272
|
-
nextToken:
|
|
2273
|
-
};
|
|
1645
|
+
return (0, smithy_client_1.take)(output, {
|
|
1646
|
+
activities: (_) => de_ActivityList(_, context),
|
|
1647
|
+
nextToken: smithy_client_1.expectString,
|
|
1648
|
+
});
|
|
2274
1649
|
};
|
|
2275
1650
|
const de_ListExecutionsOutput = (output, context) => {
|
|
2276
|
-
return {
|
|
2277
|
-
executions:
|
|
2278
|
-
nextToken:
|
|
2279
|
-
};
|
|
1651
|
+
return (0, smithy_client_1.take)(output, {
|
|
1652
|
+
executions: (_) => de_ExecutionList(_, context),
|
|
1653
|
+
nextToken: smithy_client_1.expectString,
|
|
1654
|
+
});
|
|
2280
1655
|
};
|
|
2281
1656
|
const de_ListMapRunsOutput = (output, context) => {
|
|
2282
|
-
return {
|
|
2283
|
-
mapRuns:
|
|
2284
|
-
nextToken:
|
|
2285
|
-
};
|
|
1657
|
+
return (0, smithy_client_1.take)(output, {
|
|
1658
|
+
mapRuns: (_) => de_MapRunList(_, context),
|
|
1659
|
+
nextToken: smithy_client_1.expectString,
|
|
1660
|
+
});
|
|
2286
1661
|
};
|
|
2287
1662
|
const de_ListStateMachinesOutput = (output, context) => {
|
|
2288
|
-
return {
|
|
2289
|
-
nextToken:
|
|
2290
|
-
stateMachines:
|
|
2291
|
-
};
|
|
2292
|
-
};
|
|
2293
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
2294
|
-
return {
|
|
2295
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
2296
|
-
};
|
|
2297
|
-
};
|
|
2298
|
-
const de_LogDestination = (output, context) => {
|
|
2299
|
-
return {
|
|
2300
|
-
cloudWatchLogsLogGroup: output.cloudWatchLogsLogGroup != null
|
|
2301
|
-
? de_CloudWatchLogsLogGroup(output.cloudWatchLogsLogGroup, context)
|
|
2302
|
-
: undefined,
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
const de_LogDestinationList = (output, context) => {
|
|
2306
|
-
const retVal = (output || [])
|
|
2307
|
-
.filter((e) => e != null)
|
|
2308
|
-
.map((entry) => {
|
|
2309
|
-
if (entry === null) {
|
|
2310
|
-
return null;
|
|
2311
|
-
}
|
|
2312
|
-
return de_LogDestination(entry, context);
|
|
1663
|
+
return (0, smithy_client_1.take)(output, {
|
|
1664
|
+
nextToken: smithy_client_1.expectString,
|
|
1665
|
+
stateMachines: (_) => de_StateMachineList(_, context),
|
|
2313
1666
|
});
|
|
2314
|
-
return retVal;
|
|
2315
|
-
};
|
|
2316
|
-
const de_LoggingConfiguration = (output, context) => {
|
|
2317
|
-
return {
|
|
2318
|
-
destinations: output.destinations != null ? de_LogDestinationList(output.destinations, context) : undefined,
|
|
2319
|
-
includeExecutionData: (0, smithy_client_1.expectBoolean)(output.includeExecutionData),
|
|
2320
|
-
level: (0, smithy_client_1.expectString)(output.level),
|
|
2321
|
-
};
|
|
2322
|
-
};
|
|
2323
|
-
const de_MapIterationEventDetails = (output, context) => {
|
|
2324
|
-
return {
|
|
2325
|
-
index: (0, smithy_client_1.expectInt32)(output.index),
|
|
2326
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2327
|
-
};
|
|
2328
|
-
};
|
|
2329
|
-
const de_MapRunExecutionCounts = (output, context) => {
|
|
2330
|
-
return {
|
|
2331
|
-
aborted: (0, smithy_client_1.expectLong)(output.aborted),
|
|
2332
|
-
failed: (0, smithy_client_1.expectLong)(output.failed),
|
|
2333
|
-
pending: (0, smithy_client_1.expectLong)(output.pending),
|
|
2334
|
-
resultsWritten: (0, smithy_client_1.expectLong)(output.resultsWritten),
|
|
2335
|
-
running: (0, smithy_client_1.expectLong)(output.running),
|
|
2336
|
-
succeeded: (0, smithy_client_1.expectLong)(output.succeeded),
|
|
2337
|
-
timedOut: (0, smithy_client_1.expectLong)(output.timedOut),
|
|
2338
|
-
total: (0, smithy_client_1.expectLong)(output.total),
|
|
2339
|
-
};
|
|
2340
|
-
};
|
|
2341
|
-
const de_MapRunFailedEventDetails = (output, context) => {
|
|
2342
|
-
return {
|
|
2343
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2344
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2345
|
-
};
|
|
2346
|
-
};
|
|
2347
|
-
const de_MapRunItemCounts = (output, context) => {
|
|
2348
|
-
return {
|
|
2349
|
-
aborted: (0, smithy_client_1.expectLong)(output.aborted),
|
|
2350
|
-
failed: (0, smithy_client_1.expectLong)(output.failed),
|
|
2351
|
-
pending: (0, smithy_client_1.expectLong)(output.pending),
|
|
2352
|
-
resultsWritten: (0, smithy_client_1.expectLong)(output.resultsWritten),
|
|
2353
|
-
running: (0, smithy_client_1.expectLong)(output.running),
|
|
2354
|
-
succeeded: (0, smithy_client_1.expectLong)(output.succeeded),
|
|
2355
|
-
timedOut: (0, smithy_client_1.expectLong)(output.timedOut),
|
|
2356
|
-
total: (0, smithy_client_1.expectLong)(output.total),
|
|
2357
|
-
};
|
|
2358
1667
|
};
|
|
2359
1668
|
const de_MapRunList = (output, context) => {
|
|
2360
1669
|
const retVal = (output || [])
|
|
2361
1670
|
.filter((e) => e != null)
|
|
2362
1671
|
.map((entry) => {
|
|
2363
|
-
if (entry === null) {
|
|
2364
|
-
return null;
|
|
2365
|
-
}
|
|
2366
1672
|
return de_MapRunListItem(entry, context);
|
|
2367
1673
|
});
|
|
2368
1674
|
return retVal;
|
|
2369
1675
|
};
|
|
2370
1676
|
const de_MapRunListItem = (output, context) => {
|
|
2371
|
-
return {
|
|
2372
|
-
executionArn:
|
|
2373
|
-
mapRunArn:
|
|
2374
|
-
startDate:
|
|
2375
|
-
stateMachineArn:
|
|
2376
|
-
stopDate:
|
|
2377
|
-
};
|
|
2378
|
-
};
|
|
2379
|
-
const de_MapRunStartedEventDetails = (output, context) => {
|
|
2380
|
-
return {
|
|
2381
|
-
mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
|
|
2382
|
-
};
|
|
2383
|
-
};
|
|
2384
|
-
const de_MapStateStartedEventDetails = (output, context) => {
|
|
2385
|
-
return {
|
|
2386
|
-
length: (0, smithy_client_1.expectInt32)(output.length),
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
const de_MissingRequiredParameter = (output, context) => {
|
|
2390
|
-
return {
|
|
2391
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2392
|
-
};
|
|
2393
|
-
};
|
|
2394
|
-
const de_ResourceNotFound = (output, context) => {
|
|
2395
|
-
return {
|
|
2396
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2397
|
-
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
2398
|
-
};
|
|
2399
|
-
};
|
|
2400
|
-
const de_SendTaskFailureOutput = (output, context) => {
|
|
2401
|
-
return {};
|
|
2402
|
-
};
|
|
2403
|
-
const de_SendTaskHeartbeatOutput = (output, context) => {
|
|
2404
|
-
return {};
|
|
2405
|
-
};
|
|
2406
|
-
const de_SendTaskSuccessOutput = (output, context) => {
|
|
2407
|
-
return {};
|
|
1677
|
+
return (0, smithy_client_1.take)(output, {
|
|
1678
|
+
executionArn: smithy_client_1.expectString,
|
|
1679
|
+
mapRunArn: smithy_client_1.expectString,
|
|
1680
|
+
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1681
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1682
|
+
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1683
|
+
});
|
|
2408
1684
|
};
|
|
2409
1685
|
const de_StartExecutionOutput = (output, context) => {
|
|
2410
|
-
return {
|
|
2411
|
-
executionArn:
|
|
2412
|
-
startDate:
|
|
2413
|
-
};
|
|
1686
|
+
return (0, smithy_client_1.take)(output, {
|
|
1687
|
+
executionArn: smithy_client_1.expectString,
|
|
1688
|
+
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1689
|
+
});
|
|
2414
1690
|
};
|
|
2415
1691
|
const de_StartSyncExecutionOutput = (output, context) => {
|
|
2416
|
-
return {
|
|
2417
|
-
billingDetails:
|
|
2418
|
-
cause:
|
|
2419
|
-
error:
|
|
2420
|
-
executionArn:
|
|
2421
|
-
input:
|
|
2422
|
-
inputDetails:
|
|
2423
|
-
name:
|
|
2424
|
-
output:
|
|
2425
|
-
outputDetails:
|
|
2426
|
-
startDate:
|
|
2427
|
-
stateMachineArn:
|
|
2428
|
-
status:
|
|
2429
|
-
stopDate:
|
|
2430
|
-
traceHeader:
|
|
2431
|
-
};
|
|
2432
|
-
};
|
|
2433
|
-
const de_StateEnteredEventDetails = (output, context) => {
|
|
2434
|
-
return {
|
|
2435
|
-
input: (0, smithy_client_1.expectString)(output.input),
|
|
2436
|
-
inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
|
|
2437
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2438
|
-
};
|
|
2439
|
-
};
|
|
2440
|
-
const de_StateExitedEventDetails = (output, context) => {
|
|
2441
|
-
return {
|
|
2442
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2443
|
-
output: (0, smithy_client_1.expectString)(output.output),
|
|
2444
|
-
outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
|
|
2445
|
-
};
|
|
2446
|
-
};
|
|
2447
|
-
const de_StateMachineAlreadyExists = (output, context) => {
|
|
2448
|
-
return {
|
|
2449
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2450
|
-
};
|
|
2451
|
-
};
|
|
2452
|
-
const de_StateMachineDeleting = (output, context) => {
|
|
2453
|
-
return {
|
|
2454
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2455
|
-
};
|
|
2456
|
-
};
|
|
2457
|
-
const de_StateMachineDoesNotExist = (output, context) => {
|
|
2458
|
-
return {
|
|
2459
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2460
|
-
};
|
|
2461
|
-
};
|
|
2462
|
-
const de_StateMachineLimitExceeded = (output, context) => {
|
|
2463
|
-
return {
|
|
2464
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2465
|
-
};
|
|
1692
|
+
return (0, smithy_client_1.take)(output, {
|
|
1693
|
+
billingDetails: smithy_client_1._json,
|
|
1694
|
+
cause: smithy_client_1.expectString,
|
|
1695
|
+
error: smithy_client_1.expectString,
|
|
1696
|
+
executionArn: smithy_client_1.expectString,
|
|
1697
|
+
input: smithy_client_1.expectString,
|
|
1698
|
+
inputDetails: smithy_client_1._json,
|
|
1699
|
+
name: smithy_client_1.expectString,
|
|
1700
|
+
output: smithy_client_1.expectString,
|
|
1701
|
+
outputDetails: smithy_client_1._json,
|
|
1702
|
+
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1703
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1704
|
+
status: smithy_client_1.expectString,
|
|
1705
|
+
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1706
|
+
traceHeader: smithy_client_1.expectString,
|
|
1707
|
+
});
|
|
2466
1708
|
};
|
|
2467
1709
|
const de_StateMachineList = (output, context) => {
|
|
2468
1710
|
const retVal = (output || [])
|
|
2469
1711
|
.filter((e) => e != null)
|
|
2470
1712
|
.map((entry) => {
|
|
2471
|
-
if (entry === null) {
|
|
2472
|
-
return null;
|
|
2473
|
-
}
|
|
2474
1713
|
return de_StateMachineListItem(entry, context);
|
|
2475
1714
|
});
|
|
2476
1715
|
return retVal;
|
|
2477
1716
|
};
|
|
2478
1717
|
const de_StateMachineListItem = (output, context) => {
|
|
2479
|
-
return {
|
|
2480
|
-
creationDate:
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2486
|
-
};
|
|
2487
|
-
};
|
|
2488
|
-
const de_StateMachineTypeNotSupported = (output, context) => {
|
|
2489
|
-
return {
|
|
2490
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2491
|
-
};
|
|
1718
|
+
return (0, smithy_client_1.take)(output, {
|
|
1719
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1720
|
+
name: smithy_client_1.expectString,
|
|
1721
|
+
stateMachineArn: smithy_client_1.expectString,
|
|
1722
|
+
type: smithy_client_1.expectString,
|
|
1723
|
+
});
|
|
2492
1724
|
};
|
|
2493
1725
|
const de_StopExecutionOutput = (output, context) => {
|
|
2494
|
-
return {
|
|
2495
|
-
stopDate:
|
|
2496
|
-
};
|
|
2497
|
-
};
|
|
2498
|
-
const de_Tag = (output, context) => {
|
|
2499
|
-
return {
|
|
2500
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
2501
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2502
|
-
};
|
|
2503
|
-
};
|
|
2504
|
-
const de_TagList = (output, context) => {
|
|
2505
|
-
const retVal = (output || [])
|
|
2506
|
-
.filter((e) => e != null)
|
|
2507
|
-
.map((entry) => {
|
|
2508
|
-
if (entry === null) {
|
|
2509
|
-
return null;
|
|
2510
|
-
}
|
|
2511
|
-
return de_Tag(entry, context);
|
|
1726
|
+
return (0, smithy_client_1.take)(output, {
|
|
1727
|
+
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2512
1728
|
});
|
|
2513
|
-
return retVal;
|
|
2514
|
-
};
|
|
2515
|
-
const de_TagResourceOutput = (output, context) => {
|
|
2516
|
-
return {};
|
|
2517
|
-
};
|
|
2518
|
-
const de_TaskCredentials = (output, context) => {
|
|
2519
|
-
return {
|
|
2520
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2521
|
-
};
|
|
2522
|
-
};
|
|
2523
|
-
const de_TaskDoesNotExist = (output, context) => {
|
|
2524
|
-
return {
|
|
2525
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2526
|
-
};
|
|
2527
|
-
};
|
|
2528
|
-
const de_TaskFailedEventDetails = (output, context) => {
|
|
2529
|
-
return {
|
|
2530
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2531
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2532
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2533
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2534
|
-
};
|
|
2535
|
-
};
|
|
2536
|
-
const de_TaskScheduledEventDetails = (output, context) => {
|
|
2537
|
-
return {
|
|
2538
|
-
heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
|
|
2539
|
-
parameters: (0, smithy_client_1.expectString)(output.parameters),
|
|
2540
|
-
region: (0, smithy_client_1.expectString)(output.region),
|
|
2541
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2542
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2543
|
-
taskCredentials: output.taskCredentials != null ? de_TaskCredentials(output.taskCredentials, context) : undefined,
|
|
2544
|
-
timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
|
|
2545
|
-
};
|
|
2546
|
-
};
|
|
2547
|
-
const de_TaskStartedEventDetails = (output, context) => {
|
|
2548
|
-
return {
|
|
2549
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2550
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2551
|
-
};
|
|
2552
|
-
};
|
|
2553
|
-
const de_TaskStartFailedEventDetails = (output, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2556
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2557
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2558
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2559
|
-
};
|
|
2560
|
-
};
|
|
2561
|
-
const de_TaskSubmitFailedEventDetails = (output, context) => {
|
|
2562
|
-
return {
|
|
2563
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2564
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2565
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2566
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2567
|
-
};
|
|
2568
|
-
};
|
|
2569
|
-
const de_TaskSubmittedEventDetails = (output, context) => {
|
|
2570
|
-
return {
|
|
2571
|
-
output: (0, smithy_client_1.expectString)(output.output),
|
|
2572
|
-
outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
|
|
2573
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2574
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2575
|
-
};
|
|
2576
|
-
};
|
|
2577
|
-
const de_TaskSucceededEventDetails = (output, context) => {
|
|
2578
|
-
return {
|
|
2579
|
-
output: (0, smithy_client_1.expectString)(output.output),
|
|
2580
|
-
outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
|
|
2581
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2582
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2583
|
-
};
|
|
2584
|
-
};
|
|
2585
|
-
const de_TaskTimedOut = (output, context) => {
|
|
2586
|
-
return {
|
|
2587
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2588
|
-
};
|
|
2589
|
-
};
|
|
2590
|
-
const de_TaskTimedOutEventDetails = (output, context) => {
|
|
2591
|
-
return {
|
|
2592
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2593
|
-
error: (0, smithy_client_1.expectString)(output.error),
|
|
2594
|
-
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2595
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2596
|
-
};
|
|
2597
|
-
};
|
|
2598
|
-
const de_TooManyTags = (output, context) => {
|
|
2599
|
-
return {
|
|
2600
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2601
|
-
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
2602
|
-
};
|
|
2603
|
-
};
|
|
2604
|
-
const de_TracingConfiguration = (output, context) => {
|
|
2605
|
-
return {
|
|
2606
|
-
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2607
|
-
};
|
|
2608
|
-
};
|
|
2609
|
-
const de_UntagResourceOutput = (output, context) => {
|
|
2610
|
-
return {};
|
|
2611
|
-
};
|
|
2612
|
-
const de_UpdateMapRunOutput = (output, context) => {
|
|
2613
|
-
return {};
|
|
2614
1729
|
};
|
|
2615
1730
|
const de_UpdateStateMachineOutput = (output, context) => {
|
|
2616
|
-
return {
|
|
2617
|
-
updateDate:
|
|
2618
|
-
};
|
|
2619
|
-
};
|
|
2620
|
-
const de_ValidationException = (output, context) => {
|
|
2621
|
-
return {
|
|
2622
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2623
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2624
|
-
};
|
|
1731
|
+
return (0, smithy_client_1.take)(output, {
|
|
1732
|
+
updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1733
|
+
});
|
|
2625
1734
|
};
|
|
2626
1735
|
const deserializeMetadata = (output) => ({
|
|
2627
1736
|
httpStatusCode: output.statusCode,
|
|
@@ -2636,6 +1745,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2636
1745
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2637
1746
|
};
|
|
2638
1747
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1748
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SFNServiceException_1.SFNServiceException);
|
|
2639
1749
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2640
1750
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2641
1751
|
const contents = {
|
|
@@ -2654,6 +1764,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2654
1764
|
}
|
|
2655
1765
|
return new protocol_http_1.HttpRequest(contents);
|
|
2656
1766
|
};
|
|
1767
|
+
function sharedHeaders(operation) {
|
|
1768
|
+
return {
|
|
1769
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1770
|
+
"x-amz-target": `AWSStepFunctions.${operation}`,
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
2657
1773
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2658
1774
|
if (encoded.length) {
|
|
2659
1775
|
return JSON.parse(encoded);
|