@aws-sdk/client-sfn 3.927.0 → 3.928.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/index.js +2040 -2279
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/SFNClient.js +2 -0
- package/dist-es/commands/CreateActivityCommand.js +3 -9
- package/dist-es/commands/CreateStateMachineAliasCommand.js +3 -10
- package/dist-es/commands/CreateStateMachineCommand.js +3 -10
- package/dist-es/commands/DeleteActivityCommand.js +3 -9
- package/dist-es/commands/DeleteStateMachineAliasCommand.js +3 -9
- package/dist-es/commands/DeleteStateMachineCommand.js +3 -9
- package/dist-es/commands/DeleteStateMachineVersionCommand.js +3 -9
- package/dist-es/commands/DescribeActivityCommand.js +3 -9
- package/dist-es/commands/DescribeExecutionCommand.js +3 -10
- package/dist-es/commands/DescribeMapRunCommand.js +3 -9
- package/dist-es/commands/DescribeStateMachineAliasCommand.js +3 -10
- package/dist-es/commands/DescribeStateMachineCommand.js +3 -10
- package/dist-es/commands/DescribeStateMachineForExecutionCommand.js +3 -10
- package/dist-es/commands/GetActivityTaskCommand.js +3 -10
- package/dist-es/commands/GetExecutionHistoryCommand.js +3 -10
- package/dist-es/commands/ListActivitiesCommand.js +3 -9
- package/dist-es/commands/ListExecutionsCommand.js +3 -9
- package/dist-es/commands/ListMapRunsCommand.js +3 -9
- package/dist-es/commands/ListStateMachineAliasesCommand.js +3 -9
- package/dist-es/commands/ListStateMachineVersionsCommand.js +3 -9
- package/dist-es/commands/ListStateMachinesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PublishStateMachineVersionCommand.js +3 -10
- package/dist-es/commands/RedriveExecutionCommand.js +3 -9
- package/dist-es/commands/SendTaskFailureCommand.js +3 -10
- package/dist-es/commands/SendTaskHeartbeatCommand.js +3 -9
- package/dist-es/commands/SendTaskSuccessCommand.js +3 -10
- package/dist-es/commands/StartExecutionCommand.js +3 -10
- package/dist-es/commands/StartSyncExecutionCommand.js +3 -10
- package/dist-es/commands/StopExecutionCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TestStateCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateMapRunCommand.js +3 -9
- package/dist-es/commands/UpdateStateMachineAliasCommand.js +3 -10
- package/dist-es/commands/UpdateStateMachineCommand.js +3 -10
- package/dist-es/commands/ValidateStateMachineDefinitionCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -333
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1867 -0
- package/dist-types/SFNClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -204
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +235 -0
- package/dist-types/ts3.4/SFNClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -151
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +242 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -1539
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -335
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -449
|
@@ -1,1539 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { ActivityAlreadyExists, ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ConflictException, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, ExecutionNotRedrivable, InvalidArn, InvalidDefinition, InvalidEncryptionConfiguration, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, KmsAccessDeniedException, KmsInvalidStateException, KmsThrottlingException, MissingRequiredParameter, ResourceNotFound, ServiceQuotaExceededException, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { SFNServiceException as __BaseException } from "../models/SFNServiceException";
|
|
7
|
-
export const se_CreateActivityCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("CreateActivity");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_CreateStateMachineCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("CreateStateMachine");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(_json(input));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_CreateStateMachineAliasCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("CreateStateMachineAlias");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(_json(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_DeleteActivityCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("DeleteActivity");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_DeleteStateMachineCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DeleteStateMachine");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_DeleteStateMachineAliasCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DeleteStateMachineAlias");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_DeleteStateMachineVersionCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteStateMachineVersion");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(_json(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_DescribeActivityCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("DescribeActivity");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_DescribeExecutionCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("DescribeExecution");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_DescribeMapRunCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("DescribeMapRun");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_DescribeStateMachineCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("DescribeStateMachine");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_DescribeStateMachineAliasCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DescribeStateMachineAlias");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_DescribeStateMachineForExecutionCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DescribeStateMachineForExecution");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_GetActivityTaskCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("GetActivityTask");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(_json(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_GetExecutionHistoryCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("GetExecutionHistory");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_ListActivitiesCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("ListActivities");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_ListExecutionsCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("ListExecutions");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(_json(input));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
export const se_ListMapRunsCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("ListMapRuns");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(_json(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
export const se_ListStateMachineAliasesCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("ListStateMachineAliases");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(_json(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
export const se_ListStateMachinesCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("ListStateMachines");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(_json(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
export const se_ListStateMachineVersionsCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("ListStateMachineVersions");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(_json(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
134
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(_json(input));
|
|
137
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
-
};
|
|
139
|
-
export const se_PublishStateMachineVersionCommand = async (input, context) => {
|
|
140
|
-
const headers = sharedHeaders("PublishStateMachineVersion");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(_json(input));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
export const se_RedriveExecutionCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("RedriveExecution");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(se_RedriveExecutionInput(input, context));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
export const se_SendTaskFailureCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("SendTaskFailure");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify(_json(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
export const se_SendTaskHeartbeatCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("SendTaskHeartbeat");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(_json(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
export const se_SendTaskSuccessCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("SendTaskSuccess");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(_json(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
export const se_StartExecutionCommand = async (input, context) => {
|
|
170
|
-
const headers = sharedHeaders("StartExecution");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(_json(input));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
export const se_StartSyncExecutionCommand = async (input, context) => {
|
|
176
|
-
const headers = sharedHeaders("StartSyncExecution");
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(_json(input));
|
|
179
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
180
|
-
if (context.disableHostPrefix !== true) {
|
|
181
|
-
resolvedHostname = "sync-" + resolvedHostname;
|
|
182
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
183
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
187
|
-
};
|
|
188
|
-
export const se_StopExecutionCommand = async (input, context) => {
|
|
189
|
-
const headers = sharedHeaders("StopExecution");
|
|
190
|
-
let body;
|
|
191
|
-
body = JSON.stringify(_json(input));
|
|
192
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
-
};
|
|
194
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
195
|
-
const headers = sharedHeaders("TagResource");
|
|
196
|
-
let body;
|
|
197
|
-
body = JSON.stringify(_json(input));
|
|
198
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
|
-
};
|
|
200
|
-
export const se_TestStateCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("TestState");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify(_json(input));
|
|
204
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
205
|
-
if (context.disableHostPrefix !== true) {
|
|
206
|
-
resolvedHostname = "sync-" + resolvedHostname;
|
|
207
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
208
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
212
|
-
};
|
|
213
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
214
|
-
const headers = sharedHeaders("UntagResource");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify(_json(input));
|
|
217
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
-
};
|
|
219
|
-
export const se_UpdateMapRunCommand = async (input, context) => {
|
|
220
|
-
const headers = sharedHeaders("UpdateMapRun");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify(se_UpdateMapRunInput(input, context));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
export const se_UpdateStateMachineCommand = async (input, context) => {
|
|
226
|
-
const headers = sharedHeaders("UpdateStateMachine");
|
|
227
|
-
let body;
|
|
228
|
-
body = JSON.stringify(_json(input));
|
|
229
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
|
-
};
|
|
231
|
-
export const se_UpdateStateMachineAliasCommand = async (input, context) => {
|
|
232
|
-
const headers = sharedHeaders("UpdateStateMachineAlias");
|
|
233
|
-
let body;
|
|
234
|
-
body = JSON.stringify(_json(input));
|
|
235
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
|
-
};
|
|
237
|
-
export const se_ValidateStateMachineDefinitionCommand = async (input, context) => {
|
|
238
|
-
const headers = sharedHeaders("ValidateStateMachineDefinition");
|
|
239
|
-
let body;
|
|
240
|
-
body = JSON.stringify(_json(input));
|
|
241
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
242
|
-
};
|
|
243
|
-
export const de_CreateActivityCommand = async (output, context) => {
|
|
244
|
-
if (output.statusCode >= 300) {
|
|
245
|
-
return de_CommandError(output, context);
|
|
246
|
-
}
|
|
247
|
-
const data = await parseBody(output.body, context);
|
|
248
|
-
let contents = {};
|
|
249
|
-
contents = de_CreateActivityOutput(data, context);
|
|
250
|
-
const response = {
|
|
251
|
-
$metadata: deserializeMetadata(output),
|
|
252
|
-
...contents,
|
|
253
|
-
};
|
|
254
|
-
return response;
|
|
255
|
-
};
|
|
256
|
-
export const de_CreateStateMachineCommand = async (output, context) => {
|
|
257
|
-
if (output.statusCode >= 300) {
|
|
258
|
-
return de_CommandError(output, context);
|
|
259
|
-
}
|
|
260
|
-
const data = await parseBody(output.body, context);
|
|
261
|
-
let contents = {};
|
|
262
|
-
contents = de_CreateStateMachineOutput(data, context);
|
|
263
|
-
const response = {
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
...contents,
|
|
266
|
-
};
|
|
267
|
-
return response;
|
|
268
|
-
};
|
|
269
|
-
export const de_CreateStateMachineAliasCommand = async (output, context) => {
|
|
270
|
-
if (output.statusCode >= 300) {
|
|
271
|
-
return de_CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const data = await parseBody(output.body, context);
|
|
274
|
-
let contents = {};
|
|
275
|
-
contents = de_CreateStateMachineAliasOutput(data, context);
|
|
276
|
-
const response = {
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
...contents,
|
|
279
|
-
};
|
|
280
|
-
return response;
|
|
281
|
-
};
|
|
282
|
-
export const de_DeleteActivityCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const data = await parseBody(output.body, context);
|
|
287
|
-
let contents = {};
|
|
288
|
-
contents = _json(data);
|
|
289
|
-
const response = {
|
|
290
|
-
$metadata: deserializeMetadata(output),
|
|
291
|
-
...contents,
|
|
292
|
-
};
|
|
293
|
-
return response;
|
|
294
|
-
};
|
|
295
|
-
export const de_DeleteStateMachineCommand = async (output, context) => {
|
|
296
|
-
if (output.statusCode >= 300) {
|
|
297
|
-
return de_CommandError(output, context);
|
|
298
|
-
}
|
|
299
|
-
const data = await parseBody(output.body, context);
|
|
300
|
-
let contents = {};
|
|
301
|
-
contents = _json(data);
|
|
302
|
-
const response = {
|
|
303
|
-
$metadata: deserializeMetadata(output),
|
|
304
|
-
...contents,
|
|
305
|
-
};
|
|
306
|
-
return response;
|
|
307
|
-
};
|
|
308
|
-
export const de_DeleteStateMachineAliasCommand = async (output, context) => {
|
|
309
|
-
if (output.statusCode >= 300) {
|
|
310
|
-
return de_CommandError(output, context);
|
|
311
|
-
}
|
|
312
|
-
const data = await parseBody(output.body, context);
|
|
313
|
-
let contents = {};
|
|
314
|
-
contents = _json(data);
|
|
315
|
-
const response = {
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
...contents,
|
|
318
|
-
};
|
|
319
|
-
return response;
|
|
320
|
-
};
|
|
321
|
-
export const de_DeleteStateMachineVersionCommand = async (output, context) => {
|
|
322
|
-
if (output.statusCode >= 300) {
|
|
323
|
-
return de_CommandError(output, context);
|
|
324
|
-
}
|
|
325
|
-
const data = await parseBody(output.body, context);
|
|
326
|
-
let contents = {};
|
|
327
|
-
contents = _json(data);
|
|
328
|
-
const response = {
|
|
329
|
-
$metadata: deserializeMetadata(output),
|
|
330
|
-
...contents,
|
|
331
|
-
};
|
|
332
|
-
return response;
|
|
333
|
-
};
|
|
334
|
-
export const de_DescribeActivityCommand = async (output, context) => {
|
|
335
|
-
if (output.statusCode >= 300) {
|
|
336
|
-
return de_CommandError(output, context);
|
|
337
|
-
}
|
|
338
|
-
const data = await parseBody(output.body, context);
|
|
339
|
-
let contents = {};
|
|
340
|
-
contents = de_DescribeActivityOutput(data, context);
|
|
341
|
-
const response = {
|
|
342
|
-
$metadata: deserializeMetadata(output),
|
|
343
|
-
...contents,
|
|
344
|
-
};
|
|
345
|
-
return response;
|
|
346
|
-
};
|
|
347
|
-
export const de_DescribeExecutionCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const data = await parseBody(output.body, context);
|
|
352
|
-
let contents = {};
|
|
353
|
-
contents = de_DescribeExecutionOutput(data, context);
|
|
354
|
-
const response = {
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
...contents,
|
|
357
|
-
};
|
|
358
|
-
return response;
|
|
359
|
-
};
|
|
360
|
-
export const de_DescribeMapRunCommand = async (output, context) => {
|
|
361
|
-
if (output.statusCode >= 300) {
|
|
362
|
-
return de_CommandError(output, context);
|
|
363
|
-
}
|
|
364
|
-
const data = await parseBody(output.body, context);
|
|
365
|
-
let contents = {};
|
|
366
|
-
contents = de_DescribeMapRunOutput(data, context);
|
|
367
|
-
const response = {
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
...contents,
|
|
370
|
-
};
|
|
371
|
-
return response;
|
|
372
|
-
};
|
|
373
|
-
export const de_DescribeStateMachineCommand = async (output, context) => {
|
|
374
|
-
if (output.statusCode >= 300) {
|
|
375
|
-
return de_CommandError(output, context);
|
|
376
|
-
}
|
|
377
|
-
const data = await parseBody(output.body, context);
|
|
378
|
-
let contents = {};
|
|
379
|
-
contents = de_DescribeStateMachineOutput(data, context);
|
|
380
|
-
const response = {
|
|
381
|
-
$metadata: deserializeMetadata(output),
|
|
382
|
-
...contents,
|
|
383
|
-
};
|
|
384
|
-
return response;
|
|
385
|
-
};
|
|
386
|
-
export const de_DescribeStateMachineAliasCommand = async (output, context) => {
|
|
387
|
-
if (output.statusCode >= 300) {
|
|
388
|
-
return de_CommandError(output, context);
|
|
389
|
-
}
|
|
390
|
-
const data = await parseBody(output.body, context);
|
|
391
|
-
let contents = {};
|
|
392
|
-
contents = de_DescribeStateMachineAliasOutput(data, context);
|
|
393
|
-
const response = {
|
|
394
|
-
$metadata: deserializeMetadata(output),
|
|
395
|
-
...contents,
|
|
396
|
-
};
|
|
397
|
-
return response;
|
|
398
|
-
};
|
|
399
|
-
export const de_DescribeStateMachineForExecutionCommand = async (output, context) => {
|
|
400
|
-
if (output.statusCode >= 300) {
|
|
401
|
-
return de_CommandError(output, context);
|
|
402
|
-
}
|
|
403
|
-
const data = await parseBody(output.body, context);
|
|
404
|
-
let contents = {};
|
|
405
|
-
contents = de_DescribeStateMachineForExecutionOutput(data, context);
|
|
406
|
-
const response = {
|
|
407
|
-
$metadata: deserializeMetadata(output),
|
|
408
|
-
...contents,
|
|
409
|
-
};
|
|
410
|
-
return response;
|
|
411
|
-
};
|
|
412
|
-
export const de_GetActivityTaskCommand = async (output, context) => {
|
|
413
|
-
if (output.statusCode >= 300) {
|
|
414
|
-
return de_CommandError(output, context);
|
|
415
|
-
}
|
|
416
|
-
const data = await parseBody(output.body, context);
|
|
417
|
-
let contents = {};
|
|
418
|
-
contents = _json(data);
|
|
419
|
-
const response = {
|
|
420
|
-
$metadata: deserializeMetadata(output),
|
|
421
|
-
...contents,
|
|
422
|
-
};
|
|
423
|
-
return response;
|
|
424
|
-
};
|
|
425
|
-
export const de_GetExecutionHistoryCommand = async (output, context) => {
|
|
426
|
-
if (output.statusCode >= 300) {
|
|
427
|
-
return de_CommandError(output, context);
|
|
428
|
-
}
|
|
429
|
-
const data = await parseBody(output.body, context);
|
|
430
|
-
let contents = {};
|
|
431
|
-
contents = de_GetExecutionHistoryOutput(data, context);
|
|
432
|
-
const response = {
|
|
433
|
-
$metadata: deserializeMetadata(output),
|
|
434
|
-
...contents,
|
|
435
|
-
};
|
|
436
|
-
return response;
|
|
437
|
-
};
|
|
438
|
-
export const de_ListActivitiesCommand = async (output, context) => {
|
|
439
|
-
if (output.statusCode >= 300) {
|
|
440
|
-
return de_CommandError(output, context);
|
|
441
|
-
}
|
|
442
|
-
const data = await parseBody(output.body, context);
|
|
443
|
-
let contents = {};
|
|
444
|
-
contents = de_ListActivitiesOutput(data, context);
|
|
445
|
-
const response = {
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
...contents,
|
|
448
|
-
};
|
|
449
|
-
return response;
|
|
450
|
-
};
|
|
451
|
-
export const de_ListExecutionsCommand = async (output, context) => {
|
|
452
|
-
if (output.statusCode >= 300) {
|
|
453
|
-
return de_CommandError(output, context);
|
|
454
|
-
}
|
|
455
|
-
const data = await parseBody(output.body, context);
|
|
456
|
-
let contents = {};
|
|
457
|
-
contents = de_ListExecutionsOutput(data, context);
|
|
458
|
-
const response = {
|
|
459
|
-
$metadata: deserializeMetadata(output),
|
|
460
|
-
...contents,
|
|
461
|
-
};
|
|
462
|
-
return response;
|
|
463
|
-
};
|
|
464
|
-
export const de_ListMapRunsCommand = async (output, context) => {
|
|
465
|
-
if (output.statusCode >= 300) {
|
|
466
|
-
return de_CommandError(output, context);
|
|
467
|
-
}
|
|
468
|
-
const data = await parseBody(output.body, context);
|
|
469
|
-
let contents = {};
|
|
470
|
-
contents = de_ListMapRunsOutput(data, context);
|
|
471
|
-
const response = {
|
|
472
|
-
$metadata: deserializeMetadata(output),
|
|
473
|
-
...contents,
|
|
474
|
-
};
|
|
475
|
-
return response;
|
|
476
|
-
};
|
|
477
|
-
export const de_ListStateMachineAliasesCommand = async (output, context) => {
|
|
478
|
-
if (output.statusCode >= 300) {
|
|
479
|
-
return de_CommandError(output, context);
|
|
480
|
-
}
|
|
481
|
-
const data = await parseBody(output.body, context);
|
|
482
|
-
let contents = {};
|
|
483
|
-
contents = de_ListStateMachineAliasesOutput(data, context);
|
|
484
|
-
const response = {
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
...contents,
|
|
487
|
-
};
|
|
488
|
-
return response;
|
|
489
|
-
};
|
|
490
|
-
export const de_ListStateMachinesCommand = async (output, context) => {
|
|
491
|
-
if (output.statusCode >= 300) {
|
|
492
|
-
return de_CommandError(output, context);
|
|
493
|
-
}
|
|
494
|
-
const data = await parseBody(output.body, context);
|
|
495
|
-
let contents = {};
|
|
496
|
-
contents = de_ListStateMachinesOutput(data, context);
|
|
497
|
-
const response = {
|
|
498
|
-
$metadata: deserializeMetadata(output),
|
|
499
|
-
...contents,
|
|
500
|
-
};
|
|
501
|
-
return response;
|
|
502
|
-
};
|
|
503
|
-
export const de_ListStateMachineVersionsCommand = async (output, context) => {
|
|
504
|
-
if (output.statusCode >= 300) {
|
|
505
|
-
return de_CommandError(output, context);
|
|
506
|
-
}
|
|
507
|
-
const data = await parseBody(output.body, context);
|
|
508
|
-
let contents = {};
|
|
509
|
-
contents = de_ListStateMachineVersionsOutput(data, context);
|
|
510
|
-
const response = {
|
|
511
|
-
$metadata: deserializeMetadata(output),
|
|
512
|
-
...contents,
|
|
513
|
-
};
|
|
514
|
-
return response;
|
|
515
|
-
};
|
|
516
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
517
|
-
if (output.statusCode >= 300) {
|
|
518
|
-
return de_CommandError(output, context);
|
|
519
|
-
}
|
|
520
|
-
const data = await parseBody(output.body, context);
|
|
521
|
-
let contents = {};
|
|
522
|
-
contents = _json(data);
|
|
523
|
-
const response = {
|
|
524
|
-
$metadata: deserializeMetadata(output),
|
|
525
|
-
...contents,
|
|
526
|
-
};
|
|
527
|
-
return response;
|
|
528
|
-
};
|
|
529
|
-
export const de_PublishStateMachineVersionCommand = async (output, context) => {
|
|
530
|
-
if (output.statusCode >= 300) {
|
|
531
|
-
return de_CommandError(output, context);
|
|
532
|
-
}
|
|
533
|
-
const data = await parseBody(output.body, context);
|
|
534
|
-
let contents = {};
|
|
535
|
-
contents = de_PublishStateMachineVersionOutput(data, context);
|
|
536
|
-
const response = {
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
...contents,
|
|
539
|
-
};
|
|
540
|
-
return response;
|
|
541
|
-
};
|
|
542
|
-
export const de_RedriveExecutionCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const data = await parseBody(output.body, context);
|
|
547
|
-
let contents = {};
|
|
548
|
-
contents = de_RedriveExecutionOutput(data, context);
|
|
549
|
-
const response = {
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
...contents,
|
|
552
|
-
};
|
|
553
|
-
return response;
|
|
554
|
-
};
|
|
555
|
-
export const de_SendTaskFailureCommand = async (output, context) => {
|
|
556
|
-
if (output.statusCode >= 300) {
|
|
557
|
-
return de_CommandError(output, context);
|
|
558
|
-
}
|
|
559
|
-
const data = await parseBody(output.body, context);
|
|
560
|
-
let contents = {};
|
|
561
|
-
contents = _json(data);
|
|
562
|
-
const response = {
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
...contents,
|
|
565
|
-
};
|
|
566
|
-
return response;
|
|
567
|
-
};
|
|
568
|
-
export const de_SendTaskHeartbeatCommand = async (output, context) => {
|
|
569
|
-
if (output.statusCode >= 300) {
|
|
570
|
-
return de_CommandError(output, context);
|
|
571
|
-
}
|
|
572
|
-
const data = await parseBody(output.body, context);
|
|
573
|
-
let contents = {};
|
|
574
|
-
contents = _json(data);
|
|
575
|
-
const response = {
|
|
576
|
-
$metadata: deserializeMetadata(output),
|
|
577
|
-
...contents,
|
|
578
|
-
};
|
|
579
|
-
return response;
|
|
580
|
-
};
|
|
581
|
-
export const de_SendTaskSuccessCommand = async (output, context) => {
|
|
582
|
-
if (output.statusCode >= 300) {
|
|
583
|
-
return de_CommandError(output, context);
|
|
584
|
-
}
|
|
585
|
-
const data = await parseBody(output.body, context);
|
|
586
|
-
let contents = {};
|
|
587
|
-
contents = _json(data);
|
|
588
|
-
const response = {
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
...contents,
|
|
591
|
-
};
|
|
592
|
-
return response;
|
|
593
|
-
};
|
|
594
|
-
export const de_StartExecutionCommand = async (output, context) => {
|
|
595
|
-
if (output.statusCode >= 300) {
|
|
596
|
-
return de_CommandError(output, context);
|
|
597
|
-
}
|
|
598
|
-
const data = await parseBody(output.body, context);
|
|
599
|
-
let contents = {};
|
|
600
|
-
contents = de_StartExecutionOutput(data, context);
|
|
601
|
-
const response = {
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
...contents,
|
|
604
|
-
};
|
|
605
|
-
return response;
|
|
606
|
-
};
|
|
607
|
-
export const de_StartSyncExecutionCommand = async (output, context) => {
|
|
608
|
-
if (output.statusCode >= 300) {
|
|
609
|
-
return de_CommandError(output, context);
|
|
610
|
-
}
|
|
611
|
-
const data = await parseBody(output.body, context);
|
|
612
|
-
let contents = {};
|
|
613
|
-
contents = de_StartSyncExecutionOutput(data, context);
|
|
614
|
-
const response = {
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
...contents,
|
|
617
|
-
};
|
|
618
|
-
return response;
|
|
619
|
-
};
|
|
620
|
-
export const de_StopExecutionCommand = async (output, context) => {
|
|
621
|
-
if (output.statusCode >= 300) {
|
|
622
|
-
return de_CommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const data = await parseBody(output.body, context);
|
|
625
|
-
let contents = {};
|
|
626
|
-
contents = de_StopExecutionOutput(data, context);
|
|
627
|
-
const response = {
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
...contents,
|
|
630
|
-
};
|
|
631
|
-
return response;
|
|
632
|
-
};
|
|
633
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
634
|
-
if (output.statusCode >= 300) {
|
|
635
|
-
return de_CommandError(output, context);
|
|
636
|
-
}
|
|
637
|
-
const data = await parseBody(output.body, context);
|
|
638
|
-
let contents = {};
|
|
639
|
-
contents = _json(data);
|
|
640
|
-
const response = {
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
...contents,
|
|
643
|
-
};
|
|
644
|
-
return response;
|
|
645
|
-
};
|
|
646
|
-
export const de_TestStateCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode >= 300) {
|
|
648
|
-
return de_CommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
const data = await parseBody(output.body, context);
|
|
651
|
-
let contents = {};
|
|
652
|
-
contents = _json(data);
|
|
653
|
-
const response = {
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
...contents,
|
|
656
|
-
};
|
|
657
|
-
return response;
|
|
658
|
-
};
|
|
659
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
660
|
-
if (output.statusCode >= 300) {
|
|
661
|
-
return de_CommandError(output, context);
|
|
662
|
-
}
|
|
663
|
-
const data = await parseBody(output.body, context);
|
|
664
|
-
let contents = {};
|
|
665
|
-
contents = _json(data);
|
|
666
|
-
const response = {
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
668
|
-
...contents,
|
|
669
|
-
};
|
|
670
|
-
return response;
|
|
671
|
-
};
|
|
672
|
-
export const de_UpdateMapRunCommand = async (output, context) => {
|
|
673
|
-
if (output.statusCode >= 300) {
|
|
674
|
-
return de_CommandError(output, context);
|
|
675
|
-
}
|
|
676
|
-
const data = await parseBody(output.body, context);
|
|
677
|
-
let contents = {};
|
|
678
|
-
contents = _json(data);
|
|
679
|
-
const response = {
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
...contents,
|
|
682
|
-
};
|
|
683
|
-
return response;
|
|
684
|
-
};
|
|
685
|
-
export const de_UpdateStateMachineCommand = async (output, context) => {
|
|
686
|
-
if (output.statusCode >= 300) {
|
|
687
|
-
return de_CommandError(output, context);
|
|
688
|
-
}
|
|
689
|
-
const data = await parseBody(output.body, context);
|
|
690
|
-
let contents = {};
|
|
691
|
-
contents = de_UpdateStateMachineOutput(data, context);
|
|
692
|
-
const response = {
|
|
693
|
-
$metadata: deserializeMetadata(output),
|
|
694
|
-
...contents,
|
|
695
|
-
};
|
|
696
|
-
return response;
|
|
697
|
-
};
|
|
698
|
-
export const de_UpdateStateMachineAliasCommand = async (output, context) => {
|
|
699
|
-
if (output.statusCode >= 300) {
|
|
700
|
-
return de_CommandError(output, context);
|
|
701
|
-
}
|
|
702
|
-
const data = await parseBody(output.body, context);
|
|
703
|
-
let contents = {};
|
|
704
|
-
contents = de_UpdateStateMachineAliasOutput(data, context);
|
|
705
|
-
const response = {
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
...contents,
|
|
708
|
-
};
|
|
709
|
-
return response;
|
|
710
|
-
};
|
|
711
|
-
export const de_ValidateStateMachineDefinitionCommand = async (output, context) => {
|
|
712
|
-
if (output.statusCode >= 300) {
|
|
713
|
-
return de_CommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const data = await parseBody(output.body, context);
|
|
716
|
-
let contents = {};
|
|
717
|
-
contents = _json(data);
|
|
718
|
-
const response = {
|
|
719
|
-
$metadata: deserializeMetadata(output),
|
|
720
|
-
...contents,
|
|
721
|
-
};
|
|
722
|
-
return response;
|
|
723
|
-
};
|
|
724
|
-
const de_CommandError = async (output, context) => {
|
|
725
|
-
const parsedOutput = {
|
|
726
|
-
...output,
|
|
727
|
-
body: await parseErrorBody(output.body, context),
|
|
728
|
-
};
|
|
729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
-
switch (errorCode) {
|
|
731
|
-
case "ActivityAlreadyExists":
|
|
732
|
-
case "com.amazonaws.sfn#ActivityAlreadyExists":
|
|
733
|
-
throw await de_ActivityAlreadyExistsRes(parsedOutput, context);
|
|
734
|
-
case "ActivityLimitExceeded":
|
|
735
|
-
case "com.amazonaws.sfn#ActivityLimitExceeded":
|
|
736
|
-
throw await de_ActivityLimitExceededRes(parsedOutput, context);
|
|
737
|
-
case "InvalidEncryptionConfiguration":
|
|
738
|
-
case "com.amazonaws.sfn#InvalidEncryptionConfiguration":
|
|
739
|
-
throw await de_InvalidEncryptionConfigurationRes(parsedOutput, context);
|
|
740
|
-
case "InvalidName":
|
|
741
|
-
case "com.amazonaws.sfn#InvalidName":
|
|
742
|
-
throw await de_InvalidNameRes(parsedOutput, context);
|
|
743
|
-
case "KmsAccessDeniedException":
|
|
744
|
-
case "com.amazonaws.sfn#KmsAccessDeniedException":
|
|
745
|
-
throw await de_KmsAccessDeniedExceptionRes(parsedOutput, context);
|
|
746
|
-
case "KmsThrottlingException":
|
|
747
|
-
case "com.amazonaws.sfn#KmsThrottlingException":
|
|
748
|
-
throw await de_KmsThrottlingExceptionRes(parsedOutput, context);
|
|
749
|
-
case "TooManyTags":
|
|
750
|
-
case "com.amazonaws.sfn#TooManyTags":
|
|
751
|
-
throw await de_TooManyTagsRes(parsedOutput, context);
|
|
752
|
-
case "ConflictException":
|
|
753
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
754
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
755
|
-
case "InvalidArn":
|
|
756
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
757
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
758
|
-
case "InvalidDefinition":
|
|
759
|
-
case "com.amazonaws.sfn#InvalidDefinition":
|
|
760
|
-
throw await de_InvalidDefinitionRes(parsedOutput, context);
|
|
761
|
-
case "InvalidLoggingConfiguration":
|
|
762
|
-
case "com.amazonaws.sfn#InvalidLoggingConfiguration":
|
|
763
|
-
throw await de_InvalidLoggingConfigurationRes(parsedOutput, context);
|
|
764
|
-
case "InvalidTracingConfiguration":
|
|
765
|
-
case "com.amazonaws.sfn#InvalidTracingConfiguration":
|
|
766
|
-
throw await de_InvalidTracingConfigurationRes(parsedOutput, context);
|
|
767
|
-
case "StateMachineAlreadyExists":
|
|
768
|
-
case "com.amazonaws.sfn#StateMachineAlreadyExists":
|
|
769
|
-
throw await de_StateMachineAlreadyExistsRes(parsedOutput, context);
|
|
770
|
-
case "StateMachineDeleting":
|
|
771
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
772
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
773
|
-
case "StateMachineLimitExceeded":
|
|
774
|
-
case "com.amazonaws.sfn#StateMachineLimitExceeded":
|
|
775
|
-
throw await de_StateMachineLimitExceededRes(parsedOutput, context);
|
|
776
|
-
case "StateMachineTypeNotSupported":
|
|
777
|
-
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
778
|
-
throw await de_StateMachineTypeNotSupportedRes(parsedOutput, context);
|
|
779
|
-
case "ValidationException":
|
|
780
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ResourceNotFound":
|
|
783
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
784
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
785
|
-
case "ServiceQuotaExceededException":
|
|
786
|
-
case "com.amazonaws.sfn#ServiceQuotaExceededException":
|
|
787
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ActivityDoesNotExist":
|
|
789
|
-
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
790
|
-
throw await de_ActivityDoesNotExistRes(parsedOutput, context);
|
|
791
|
-
case "ExecutionDoesNotExist":
|
|
792
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
793
|
-
throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
|
|
794
|
-
case "KmsInvalidStateException":
|
|
795
|
-
case "com.amazonaws.sfn#KmsInvalidStateException":
|
|
796
|
-
throw await de_KmsInvalidStateExceptionRes(parsedOutput, context);
|
|
797
|
-
case "StateMachineDoesNotExist":
|
|
798
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
799
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
800
|
-
case "ActivityWorkerLimitExceeded":
|
|
801
|
-
case "com.amazonaws.sfn#ActivityWorkerLimitExceeded":
|
|
802
|
-
throw await de_ActivityWorkerLimitExceededRes(parsedOutput, context);
|
|
803
|
-
case "InvalidToken":
|
|
804
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
805
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
806
|
-
case "ExecutionLimitExceeded":
|
|
807
|
-
case "com.amazonaws.sfn#ExecutionLimitExceeded":
|
|
808
|
-
throw await de_ExecutionLimitExceededRes(parsedOutput, context);
|
|
809
|
-
case "ExecutionNotRedrivable":
|
|
810
|
-
case "com.amazonaws.sfn#ExecutionNotRedrivable":
|
|
811
|
-
throw await de_ExecutionNotRedrivableRes(parsedOutput, context);
|
|
812
|
-
case "TaskDoesNotExist":
|
|
813
|
-
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
814
|
-
throw await de_TaskDoesNotExistRes(parsedOutput, context);
|
|
815
|
-
case "TaskTimedOut":
|
|
816
|
-
case "com.amazonaws.sfn#TaskTimedOut":
|
|
817
|
-
throw await de_TaskTimedOutRes(parsedOutput, context);
|
|
818
|
-
case "InvalidOutput":
|
|
819
|
-
case "com.amazonaws.sfn#InvalidOutput":
|
|
820
|
-
throw await de_InvalidOutputRes(parsedOutput, context);
|
|
821
|
-
case "ExecutionAlreadyExists":
|
|
822
|
-
case "com.amazonaws.sfn#ExecutionAlreadyExists":
|
|
823
|
-
throw await de_ExecutionAlreadyExistsRes(parsedOutput, context);
|
|
824
|
-
case "InvalidExecutionInput":
|
|
825
|
-
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
826
|
-
throw await de_InvalidExecutionInputRes(parsedOutput, context);
|
|
827
|
-
case "MissingRequiredParameter":
|
|
828
|
-
case "com.amazonaws.sfn#MissingRequiredParameter":
|
|
829
|
-
throw await de_MissingRequiredParameterRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode,
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
const de_ActivityAlreadyExistsRes = async (parsedOutput, context) => {
|
|
840
|
-
const body = parsedOutput.body;
|
|
841
|
-
const deserialized = _json(body);
|
|
842
|
-
const exception = new ActivityAlreadyExists({
|
|
843
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
844
|
-
...deserialized,
|
|
845
|
-
});
|
|
846
|
-
return __decorateServiceException(exception, body);
|
|
847
|
-
};
|
|
848
|
-
const de_ActivityDoesNotExistRes = async (parsedOutput, context) => {
|
|
849
|
-
const body = parsedOutput.body;
|
|
850
|
-
const deserialized = _json(body);
|
|
851
|
-
const exception = new ActivityDoesNotExist({
|
|
852
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
853
|
-
...deserialized,
|
|
854
|
-
});
|
|
855
|
-
return __decorateServiceException(exception, body);
|
|
856
|
-
};
|
|
857
|
-
const de_ActivityLimitExceededRes = async (parsedOutput, context) => {
|
|
858
|
-
const body = parsedOutput.body;
|
|
859
|
-
const deserialized = _json(body);
|
|
860
|
-
const exception = new ActivityLimitExceeded({
|
|
861
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
862
|
-
...deserialized,
|
|
863
|
-
});
|
|
864
|
-
return __decorateServiceException(exception, body);
|
|
865
|
-
};
|
|
866
|
-
const de_ActivityWorkerLimitExceededRes = async (parsedOutput, context) => {
|
|
867
|
-
const body = parsedOutput.body;
|
|
868
|
-
const deserialized = _json(body);
|
|
869
|
-
const exception = new ActivityWorkerLimitExceeded({
|
|
870
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
871
|
-
...deserialized,
|
|
872
|
-
});
|
|
873
|
-
return __decorateServiceException(exception, body);
|
|
874
|
-
};
|
|
875
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
876
|
-
const body = parsedOutput.body;
|
|
877
|
-
const deserialized = _json(body);
|
|
878
|
-
const exception = new ConflictException({
|
|
879
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
880
|
-
...deserialized,
|
|
881
|
-
});
|
|
882
|
-
return __decorateServiceException(exception, body);
|
|
883
|
-
};
|
|
884
|
-
const de_ExecutionAlreadyExistsRes = async (parsedOutput, context) => {
|
|
885
|
-
const body = parsedOutput.body;
|
|
886
|
-
const deserialized = _json(body);
|
|
887
|
-
const exception = new ExecutionAlreadyExists({
|
|
888
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
889
|
-
...deserialized,
|
|
890
|
-
});
|
|
891
|
-
return __decorateServiceException(exception, body);
|
|
892
|
-
};
|
|
893
|
-
const de_ExecutionDoesNotExistRes = async (parsedOutput, context) => {
|
|
894
|
-
const body = parsedOutput.body;
|
|
895
|
-
const deserialized = _json(body);
|
|
896
|
-
const exception = new ExecutionDoesNotExist({
|
|
897
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
898
|
-
...deserialized,
|
|
899
|
-
});
|
|
900
|
-
return __decorateServiceException(exception, body);
|
|
901
|
-
};
|
|
902
|
-
const de_ExecutionLimitExceededRes = async (parsedOutput, context) => {
|
|
903
|
-
const body = parsedOutput.body;
|
|
904
|
-
const deserialized = _json(body);
|
|
905
|
-
const exception = new ExecutionLimitExceeded({
|
|
906
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
907
|
-
...deserialized,
|
|
908
|
-
});
|
|
909
|
-
return __decorateServiceException(exception, body);
|
|
910
|
-
};
|
|
911
|
-
const de_ExecutionNotRedrivableRes = async (parsedOutput, context) => {
|
|
912
|
-
const body = parsedOutput.body;
|
|
913
|
-
const deserialized = _json(body);
|
|
914
|
-
const exception = new ExecutionNotRedrivable({
|
|
915
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
916
|
-
...deserialized,
|
|
917
|
-
});
|
|
918
|
-
return __decorateServiceException(exception, body);
|
|
919
|
-
};
|
|
920
|
-
const de_InvalidArnRes = async (parsedOutput, context) => {
|
|
921
|
-
const body = parsedOutput.body;
|
|
922
|
-
const deserialized = _json(body);
|
|
923
|
-
const exception = new InvalidArn({
|
|
924
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
925
|
-
...deserialized,
|
|
926
|
-
});
|
|
927
|
-
return __decorateServiceException(exception, body);
|
|
928
|
-
};
|
|
929
|
-
const de_InvalidDefinitionRes = async (parsedOutput, context) => {
|
|
930
|
-
const body = parsedOutput.body;
|
|
931
|
-
const deserialized = _json(body);
|
|
932
|
-
const exception = new InvalidDefinition({
|
|
933
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
934
|
-
...deserialized,
|
|
935
|
-
});
|
|
936
|
-
return __decorateServiceException(exception, body);
|
|
937
|
-
};
|
|
938
|
-
const de_InvalidEncryptionConfigurationRes = async (parsedOutput, context) => {
|
|
939
|
-
const body = parsedOutput.body;
|
|
940
|
-
const deserialized = _json(body);
|
|
941
|
-
const exception = new InvalidEncryptionConfiguration({
|
|
942
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
943
|
-
...deserialized,
|
|
944
|
-
});
|
|
945
|
-
return __decorateServiceException(exception, body);
|
|
946
|
-
};
|
|
947
|
-
const de_InvalidExecutionInputRes = async (parsedOutput, context) => {
|
|
948
|
-
const body = parsedOutput.body;
|
|
949
|
-
const deserialized = _json(body);
|
|
950
|
-
const exception = new InvalidExecutionInput({
|
|
951
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
952
|
-
...deserialized,
|
|
953
|
-
});
|
|
954
|
-
return __decorateServiceException(exception, body);
|
|
955
|
-
};
|
|
956
|
-
const de_InvalidLoggingConfigurationRes = async (parsedOutput, context) => {
|
|
957
|
-
const body = parsedOutput.body;
|
|
958
|
-
const deserialized = _json(body);
|
|
959
|
-
const exception = new InvalidLoggingConfiguration({
|
|
960
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
961
|
-
...deserialized,
|
|
962
|
-
});
|
|
963
|
-
return __decorateServiceException(exception, body);
|
|
964
|
-
};
|
|
965
|
-
const de_InvalidNameRes = async (parsedOutput, context) => {
|
|
966
|
-
const body = parsedOutput.body;
|
|
967
|
-
const deserialized = _json(body);
|
|
968
|
-
const exception = new InvalidName({
|
|
969
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
970
|
-
...deserialized,
|
|
971
|
-
});
|
|
972
|
-
return __decorateServiceException(exception, body);
|
|
973
|
-
};
|
|
974
|
-
const de_InvalidOutputRes = async (parsedOutput, context) => {
|
|
975
|
-
const body = parsedOutput.body;
|
|
976
|
-
const deserialized = _json(body);
|
|
977
|
-
const exception = new InvalidOutput({
|
|
978
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
979
|
-
...deserialized,
|
|
980
|
-
});
|
|
981
|
-
return __decorateServiceException(exception, body);
|
|
982
|
-
};
|
|
983
|
-
const de_InvalidTokenRes = async (parsedOutput, context) => {
|
|
984
|
-
const body = parsedOutput.body;
|
|
985
|
-
const deserialized = _json(body);
|
|
986
|
-
const exception = new InvalidToken({
|
|
987
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
988
|
-
...deserialized,
|
|
989
|
-
});
|
|
990
|
-
return __decorateServiceException(exception, body);
|
|
991
|
-
};
|
|
992
|
-
const de_InvalidTracingConfigurationRes = async (parsedOutput, context) => {
|
|
993
|
-
const body = parsedOutput.body;
|
|
994
|
-
const deserialized = _json(body);
|
|
995
|
-
const exception = new InvalidTracingConfiguration({
|
|
996
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
997
|
-
...deserialized,
|
|
998
|
-
});
|
|
999
|
-
return __decorateServiceException(exception, body);
|
|
1000
|
-
};
|
|
1001
|
-
const de_KmsAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1002
|
-
const body = parsedOutput.body;
|
|
1003
|
-
const deserialized = _json(body);
|
|
1004
|
-
const exception = new KmsAccessDeniedException({
|
|
1005
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1006
|
-
...deserialized,
|
|
1007
|
-
});
|
|
1008
|
-
return __decorateServiceException(exception, body);
|
|
1009
|
-
};
|
|
1010
|
-
const de_KmsInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1011
|
-
const body = parsedOutput.body;
|
|
1012
|
-
const deserialized = _json(body);
|
|
1013
|
-
const exception = new KmsInvalidStateException({
|
|
1014
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1015
|
-
...deserialized,
|
|
1016
|
-
});
|
|
1017
|
-
return __decorateServiceException(exception, body);
|
|
1018
|
-
};
|
|
1019
|
-
const de_KmsThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1020
|
-
const body = parsedOutput.body;
|
|
1021
|
-
const deserialized = _json(body);
|
|
1022
|
-
const exception = new KmsThrottlingException({
|
|
1023
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1024
|
-
...deserialized,
|
|
1025
|
-
});
|
|
1026
|
-
return __decorateServiceException(exception, body);
|
|
1027
|
-
};
|
|
1028
|
-
const de_MissingRequiredParameterRes = async (parsedOutput, context) => {
|
|
1029
|
-
const body = parsedOutput.body;
|
|
1030
|
-
const deserialized = _json(body);
|
|
1031
|
-
const exception = new MissingRequiredParameter({
|
|
1032
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1033
|
-
...deserialized,
|
|
1034
|
-
});
|
|
1035
|
-
return __decorateServiceException(exception, body);
|
|
1036
|
-
};
|
|
1037
|
-
const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
1038
|
-
const body = parsedOutput.body;
|
|
1039
|
-
const deserialized = _json(body);
|
|
1040
|
-
const exception = new ResourceNotFound({
|
|
1041
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1042
|
-
...deserialized,
|
|
1043
|
-
});
|
|
1044
|
-
return __decorateServiceException(exception, body);
|
|
1045
|
-
};
|
|
1046
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1047
|
-
const body = parsedOutput.body;
|
|
1048
|
-
const deserialized = _json(body);
|
|
1049
|
-
const exception = new ServiceQuotaExceededException({
|
|
1050
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
|
-
...deserialized,
|
|
1052
|
-
});
|
|
1053
|
-
return __decorateServiceException(exception, body);
|
|
1054
|
-
};
|
|
1055
|
-
const de_StateMachineAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1056
|
-
const body = parsedOutput.body;
|
|
1057
|
-
const deserialized = _json(body);
|
|
1058
|
-
const exception = new StateMachineAlreadyExists({
|
|
1059
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1060
|
-
...deserialized,
|
|
1061
|
-
});
|
|
1062
|
-
return __decorateServiceException(exception, body);
|
|
1063
|
-
};
|
|
1064
|
-
const de_StateMachineDeletingRes = async (parsedOutput, context) => {
|
|
1065
|
-
const body = parsedOutput.body;
|
|
1066
|
-
const deserialized = _json(body);
|
|
1067
|
-
const exception = new StateMachineDeleting({
|
|
1068
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
|
-
...deserialized,
|
|
1070
|
-
});
|
|
1071
|
-
return __decorateServiceException(exception, body);
|
|
1072
|
-
};
|
|
1073
|
-
const de_StateMachineDoesNotExistRes = async (parsedOutput, context) => {
|
|
1074
|
-
const body = parsedOutput.body;
|
|
1075
|
-
const deserialized = _json(body);
|
|
1076
|
-
const exception = new StateMachineDoesNotExist({
|
|
1077
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
|
-
...deserialized,
|
|
1079
|
-
});
|
|
1080
|
-
return __decorateServiceException(exception, body);
|
|
1081
|
-
};
|
|
1082
|
-
const de_StateMachineLimitExceededRes = async (parsedOutput, context) => {
|
|
1083
|
-
const body = parsedOutput.body;
|
|
1084
|
-
const deserialized = _json(body);
|
|
1085
|
-
const exception = new StateMachineLimitExceeded({
|
|
1086
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1087
|
-
...deserialized,
|
|
1088
|
-
});
|
|
1089
|
-
return __decorateServiceException(exception, body);
|
|
1090
|
-
};
|
|
1091
|
-
const de_StateMachineTypeNotSupportedRes = async (parsedOutput, context) => {
|
|
1092
|
-
const body = parsedOutput.body;
|
|
1093
|
-
const deserialized = _json(body);
|
|
1094
|
-
const exception = new StateMachineTypeNotSupported({
|
|
1095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
|
-
...deserialized,
|
|
1097
|
-
});
|
|
1098
|
-
return __decorateServiceException(exception, body);
|
|
1099
|
-
};
|
|
1100
|
-
const de_TaskDoesNotExistRes = async (parsedOutput, context) => {
|
|
1101
|
-
const body = parsedOutput.body;
|
|
1102
|
-
const deserialized = _json(body);
|
|
1103
|
-
const exception = new TaskDoesNotExist({
|
|
1104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
-
...deserialized,
|
|
1106
|
-
});
|
|
1107
|
-
return __decorateServiceException(exception, body);
|
|
1108
|
-
};
|
|
1109
|
-
const de_TaskTimedOutRes = async (parsedOutput, context) => {
|
|
1110
|
-
const body = parsedOutput.body;
|
|
1111
|
-
const deserialized = _json(body);
|
|
1112
|
-
const exception = new TaskTimedOut({
|
|
1113
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1114
|
-
...deserialized,
|
|
1115
|
-
});
|
|
1116
|
-
return __decorateServiceException(exception, body);
|
|
1117
|
-
};
|
|
1118
|
-
const de_TooManyTagsRes = async (parsedOutput, context) => {
|
|
1119
|
-
const body = parsedOutput.body;
|
|
1120
|
-
const deserialized = _json(body);
|
|
1121
|
-
const exception = new TooManyTags({
|
|
1122
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
|
-
...deserialized,
|
|
1124
|
-
});
|
|
1125
|
-
return __decorateServiceException(exception, body);
|
|
1126
|
-
};
|
|
1127
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1128
|
-
const body = parsedOutput.body;
|
|
1129
|
-
const deserialized = _json(body);
|
|
1130
|
-
const exception = new ValidationException({
|
|
1131
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1132
|
-
...deserialized,
|
|
1133
|
-
});
|
|
1134
|
-
return __decorateServiceException(exception, body);
|
|
1135
|
-
};
|
|
1136
|
-
const se_RedriveExecutionInput = (input, context) => {
|
|
1137
|
-
return take(input, {
|
|
1138
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1139
|
-
executionArn: [],
|
|
1140
|
-
});
|
|
1141
|
-
};
|
|
1142
|
-
const se_UpdateMapRunInput = (input, context) => {
|
|
1143
|
-
return take(input, {
|
|
1144
|
-
mapRunArn: [],
|
|
1145
|
-
maxConcurrency: [],
|
|
1146
|
-
toleratedFailureCount: [],
|
|
1147
|
-
toleratedFailurePercentage: __serializeFloat,
|
|
1148
|
-
});
|
|
1149
|
-
};
|
|
1150
|
-
const de_ActivityList = (output, context) => {
|
|
1151
|
-
const retVal = (output || [])
|
|
1152
|
-
.filter((e) => e != null)
|
|
1153
|
-
.map((entry) => {
|
|
1154
|
-
return de_ActivityListItem(entry, context);
|
|
1155
|
-
});
|
|
1156
|
-
return retVal;
|
|
1157
|
-
};
|
|
1158
|
-
const de_ActivityListItem = (output, context) => {
|
|
1159
|
-
return take(output, {
|
|
1160
|
-
activityArn: __expectString,
|
|
1161
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1162
|
-
name: __expectString,
|
|
1163
|
-
});
|
|
1164
|
-
};
|
|
1165
|
-
const de_CreateActivityOutput = (output, context) => {
|
|
1166
|
-
return take(output, {
|
|
1167
|
-
activityArn: __expectString,
|
|
1168
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1169
|
-
});
|
|
1170
|
-
};
|
|
1171
|
-
const de_CreateStateMachineAliasOutput = (output, context) => {
|
|
1172
|
-
return take(output, {
|
|
1173
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1174
|
-
stateMachineAliasArn: __expectString,
|
|
1175
|
-
});
|
|
1176
|
-
};
|
|
1177
|
-
const de_CreateStateMachineOutput = (output, context) => {
|
|
1178
|
-
return take(output, {
|
|
1179
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1180
|
-
stateMachineArn: __expectString,
|
|
1181
|
-
stateMachineVersionArn: __expectString,
|
|
1182
|
-
});
|
|
1183
|
-
};
|
|
1184
|
-
const de_DescribeActivityOutput = (output, context) => {
|
|
1185
|
-
return take(output, {
|
|
1186
|
-
activityArn: __expectString,
|
|
1187
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1188
|
-
encryptionConfiguration: _json,
|
|
1189
|
-
name: __expectString,
|
|
1190
|
-
});
|
|
1191
|
-
};
|
|
1192
|
-
const de_DescribeExecutionOutput = (output, context) => {
|
|
1193
|
-
return take(output, {
|
|
1194
|
-
cause: __expectString,
|
|
1195
|
-
error: __expectString,
|
|
1196
|
-
executionArn: __expectString,
|
|
1197
|
-
input: __expectString,
|
|
1198
|
-
inputDetails: _json,
|
|
1199
|
-
mapRunArn: __expectString,
|
|
1200
|
-
name: __expectString,
|
|
1201
|
-
output: __expectString,
|
|
1202
|
-
outputDetails: _json,
|
|
1203
|
-
redriveCount: __expectInt32,
|
|
1204
|
-
redriveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1205
|
-
redriveStatus: __expectString,
|
|
1206
|
-
redriveStatusReason: __expectString,
|
|
1207
|
-
startDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1208
|
-
stateMachineAliasArn: __expectString,
|
|
1209
|
-
stateMachineArn: __expectString,
|
|
1210
|
-
stateMachineVersionArn: __expectString,
|
|
1211
|
-
status: __expectString,
|
|
1212
|
-
stopDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1213
|
-
traceHeader: __expectString,
|
|
1214
|
-
});
|
|
1215
|
-
};
|
|
1216
|
-
const de_DescribeMapRunOutput = (output, context) => {
|
|
1217
|
-
return take(output, {
|
|
1218
|
-
executionArn: __expectString,
|
|
1219
|
-
executionCounts: _json,
|
|
1220
|
-
itemCounts: _json,
|
|
1221
|
-
mapRunArn: __expectString,
|
|
1222
|
-
maxConcurrency: __expectInt32,
|
|
1223
|
-
redriveCount: __expectInt32,
|
|
1224
|
-
redriveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1225
|
-
startDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1226
|
-
status: __expectString,
|
|
1227
|
-
stopDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1228
|
-
toleratedFailureCount: __expectLong,
|
|
1229
|
-
toleratedFailurePercentage: __limitedParseFloat32,
|
|
1230
|
-
});
|
|
1231
|
-
};
|
|
1232
|
-
const de_DescribeStateMachineAliasOutput = (output, context) => {
|
|
1233
|
-
return take(output, {
|
|
1234
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1235
|
-
description: __expectString,
|
|
1236
|
-
name: __expectString,
|
|
1237
|
-
routingConfiguration: _json,
|
|
1238
|
-
stateMachineAliasArn: __expectString,
|
|
1239
|
-
updateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1240
|
-
});
|
|
1241
|
-
};
|
|
1242
|
-
const de_DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
1243
|
-
return take(output, {
|
|
1244
|
-
definition: __expectString,
|
|
1245
|
-
encryptionConfiguration: _json,
|
|
1246
|
-
label: __expectString,
|
|
1247
|
-
loggingConfiguration: _json,
|
|
1248
|
-
mapRunArn: __expectString,
|
|
1249
|
-
name: __expectString,
|
|
1250
|
-
revisionId: __expectString,
|
|
1251
|
-
roleArn: __expectString,
|
|
1252
|
-
stateMachineArn: __expectString,
|
|
1253
|
-
tracingConfiguration: _json,
|
|
1254
|
-
updateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1255
|
-
variableReferences: _json,
|
|
1256
|
-
});
|
|
1257
|
-
};
|
|
1258
|
-
const de_DescribeStateMachineOutput = (output, context) => {
|
|
1259
|
-
return take(output, {
|
|
1260
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1261
|
-
definition: __expectString,
|
|
1262
|
-
description: __expectString,
|
|
1263
|
-
encryptionConfiguration: _json,
|
|
1264
|
-
label: __expectString,
|
|
1265
|
-
loggingConfiguration: _json,
|
|
1266
|
-
name: __expectString,
|
|
1267
|
-
revisionId: __expectString,
|
|
1268
|
-
roleArn: __expectString,
|
|
1269
|
-
stateMachineArn: __expectString,
|
|
1270
|
-
status: __expectString,
|
|
1271
|
-
tracingConfiguration: _json,
|
|
1272
|
-
type: __expectString,
|
|
1273
|
-
variableReferences: _json,
|
|
1274
|
-
});
|
|
1275
|
-
};
|
|
1276
|
-
const de_ExecutionList = (output, context) => {
|
|
1277
|
-
const retVal = (output || [])
|
|
1278
|
-
.filter((e) => e != null)
|
|
1279
|
-
.map((entry) => {
|
|
1280
|
-
return de_ExecutionListItem(entry, context);
|
|
1281
|
-
});
|
|
1282
|
-
return retVal;
|
|
1283
|
-
};
|
|
1284
|
-
const de_ExecutionListItem = (output, context) => {
|
|
1285
|
-
return take(output, {
|
|
1286
|
-
executionArn: __expectString,
|
|
1287
|
-
itemCount: __expectInt32,
|
|
1288
|
-
mapRunArn: __expectString,
|
|
1289
|
-
name: __expectString,
|
|
1290
|
-
redriveCount: __expectInt32,
|
|
1291
|
-
redriveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1292
|
-
startDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1293
|
-
stateMachineAliasArn: __expectString,
|
|
1294
|
-
stateMachineArn: __expectString,
|
|
1295
|
-
stateMachineVersionArn: __expectString,
|
|
1296
|
-
status: __expectString,
|
|
1297
|
-
stopDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1298
|
-
});
|
|
1299
|
-
};
|
|
1300
|
-
const de_GetExecutionHistoryOutput = (output, context) => {
|
|
1301
|
-
return take(output, {
|
|
1302
|
-
events: (_) => de_HistoryEventList(_, context),
|
|
1303
|
-
nextToken: __expectString,
|
|
1304
|
-
});
|
|
1305
|
-
};
|
|
1306
|
-
const de_HistoryEvent = (output, context) => {
|
|
1307
|
-
return take(output, {
|
|
1308
|
-
activityFailedEventDetails: _json,
|
|
1309
|
-
activityScheduleFailedEventDetails: _json,
|
|
1310
|
-
activityScheduledEventDetails: _json,
|
|
1311
|
-
activityStartedEventDetails: _json,
|
|
1312
|
-
activitySucceededEventDetails: _json,
|
|
1313
|
-
activityTimedOutEventDetails: _json,
|
|
1314
|
-
evaluationFailedEventDetails: _json,
|
|
1315
|
-
executionAbortedEventDetails: _json,
|
|
1316
|
-
executionFailedEventDetails: _json,
|
|
1317
|
-
executionRedrivenEventDetails: _json,
|
|
1318
|
-
executionStartedEventDetails: _json,
|
|
1319
|
-
executionSucceededEventDetails: _json,
|
|
1320
|
-
executionTimedOutEventDetails: _json,
|
|
1321
|
-
id: __expectLong,
|
|
1322
|
-
lambdaFunctionFailedEventDetails: _json,
|
|
1323
|
-
lambdaFunctionScheduleFailedEventDetails: _json,
|
|
1324
|
-
lambdaFunctionScheduledEventDetails: _json,
|
|
1325
|
-
lambdaFunctionStartFailedEventDetails: _json,
|
|
1326
|
-
lambdaFunctionSucceededEventDetails: _json,
|
|
1327
|
-
lambdaFunctionTimedOutEventDetails: _json,
|
|
1328
|
-
mapIterationAbortedEventDetails: _json,
|
|
1329
|
-
mapIterationFailedEventDetails: _json,
|
|
1330
|
-
mapIterationStartedEventDetails: _json,
|
|
1331
|
-
mapIterationSucceededEventDetails: _json,
|
|
1332
|
-
mapRunFailedEventDetails: _json,
|
|
1333
|
-
mapRunRedrivenEventDetails: _json,
|
|
1334
|
-
mapRunStartedEventDetails: _json,
|
|
1335
|
-
mapStateStartedEventDetails: _json,
|
|
1336
|
-
previousEventId: __expectLong,
|
|
1337
|
-
stateEnteredEventDetails: _json,
|
|
1338
|
-
stateExitedEventDetails: _json,
|
|
1339
|
-
taskFailedEventDetails: _json,
|
|
1340
|
-
taskScheduledEventDetails: _json,
|
|
1341
|
-
taskStartFailedEventDetails: _json,
|
|
1342
|
-
taskStartedEventDetails: _json,
|
|
1343
|
-
taskSubmitFailedEventDetails: _json,
|
|
1344
|
-
taskSubmittedEventDetails: _json,
|
|
1345
|
-
taskSucceededEventDetails: _json,
|
|
1346
|
-
taskTimedOutEventDetails: _json,
|
|
1347
|
-
timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1348
|
-
type: __expectString,
|
|
1349
|
-
});
|
|
1350
|
-
};
|
|
1351
|
-
const de_HistoryEventList = (output, context) => {
|
|
1352
|
-
const retVal = (output || [])
|
|
1353
|
-
.filter((e) => e != null)
|
|
1354
|
-
.map((entry) => {
|
|
1355
|
-
return de_HistoryEvent(entry, context);
|
|
1356
|
-
});
|
|
1357
|
-
return retVal;
|
|
1358
|
-
};
|
|
1359
|
-
const de_ListActivitiesOutput = (output, context) => {
|
|
1360
|
-
return take(output, {
|
|
1361
|
-
activities: (_) => de_ActivityList(_, context),
|
|
1362
|
-
nextToken: __expectString,
|
|
1363
|
-
});
|
|
1364
|
-
};
|
|
1365
|
-
const de_ListExecutionsOutput = (output, context) => {
|
|
1366
|
-
return take(output, {
|
|
1367
|
-
executions: (_) => de_ExecutionList(_, context),
|
|
1368
|
-
nextToken: __expectString,
|
|
1369
|
-
});
|
|
1370
|
-
};
|
|
1371
|
-
const de_ListMapRunsOutput = (output, context) => {
|
|
1372
|
-
return take(output, {
|
|
1373
|
-
mapRuns: (_) => de_MapRunList(_, context),
|
|
1374
|
-
nextToken: __expectString,
|
|
1375
|
-
});
|
|
1376
|
-
};
|
|
1377
|
-
const de_ListStateMachineAliasesOutput = (output, context) => {
|
|
1378
|
-
return take(output, {
|
|
1379
|
-
nextToken: __expectString,
|
|
1380
|
-
stateMachineAliases: (_) => de_StateMachineAliasList(_, context),
|
|
1381
|
-
});
|
|
1382
|
-
};
|
|
1383
|
-
const de_ListStateMachinesOutput = (output, context) => {
|
|
1384
|
-
return take(output, {
|
|
1385
|
-
nextToken: __expectString,
|
|
1386
|
-
stateMachines: (_) => de_StateMachineList(_, context),
|
|
1387
|
-
});
|
|
1388
|
-
};
|
|
1389
|
-
const de_ListStateMachineVersionsOutput = (output, context) => {
|
|
1390
|
-
return take(output, {
|
|
1391
|
-
nextToken: __expectString,
|
|
1392
|
-
stateMachineVersions: (_) => de_StateMachineVersionList(_, context),
|
|
1393
|
-
});
|
|
1394
|
-
};
|
|
1395
|
-
const de_MapRunList = (output, context) => {
|
|
1396
|
-
const retVal = (output || [])
|
|
1397
|
-
.filter((e) => e != null)
|
|
1398
|
-
.map((entry) => {
|
|
1399
|
-
return de_MapRunListItem(entry, context);
|
|
1400
|
-
});
|
|
1401
|
-
return retVal;
|
|
1402
|
-
};
|
|
1403
|
-
const de_MapRunListItem = (output, context) => {
|
|
1404
|
-
return take(output, {
|
|
1405
|
-
executionArn: __expectString,
|
|
1406
|
-
mapRunArn: __expectString,
|
|
1407
|
-
startDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1408
|
-
stateMachineArn: __expectString,
|
|
1409
|
-
stopDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1410
|
-
});
|
|
1411
|
-
};
|
|
1412
|
-
const de_PublishStateMachineVersionOutput = (output, context) => {
|
|
1413
|
-
return take(output, {
|
|
1414
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1415
|
-
stateMachineVersionArn: __expectString,
|
|
1416
|
-
});
|
|
1417
|
-
};
|
|
1418
|
-
const de_RedriveExecutionOutput = (output, context) => {
|
|
1419
|
-
return take(output, {
|
|
1420
|
-
redriveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1421
|
-
});
|
|
1422
|
-
};
|
|
1423
|
-
const de_StartExecutionOutput = (output, context) => {
|
|
1424
|
-
return take(output, {
|
|
1425
|
-
executionArn: __expectString,
|
|
1426
|
-
startDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1427
|
-
});
|
|
1428
|
-
};
|
|
1429
|
-
const de_StartSyncExecutionOutput = (output, context) => {
|
|
1430
|
-
return take(output, {
|
|
1431
|
-
billingDetails: _json,
|
|
1432
|
-
cause: __expectString,
|
|
1433
|
-
error: __expectString,
|
|
1434
|
-
executionArn: __expectString,
|
|
1435
|
-
input: __expectString,
|
|
1436
|
-
inputDetails: _json,
|
|
1437
|
-
name: __expectString,
|
|
1438
|
-
output: __expectString,
|
|
1439
|
-
outputDetails: _json,
|
|
1440
|
-
startDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1441
|
-
stateMachineArn: __expectString,
|
|
1442
|
-
status: __expectString,
|
|
1443
|
-
stopDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1444
|
-
traceHeader: __expectString,
|
|
1445
|
-
});
|
|
1446
|
-
};
|
|
1447
|
-
const de_StateMachineAliasList = (output, context) => {
|
|
1448
|
-
const retVal = (output || [])
|
|
1449
|
-
.filter((e) => e != null)
|
|
1450
|
-
.map((entry) => {
|
|
1451
|
-
return de_StateMachineAliasListItem(entry, context);
|
|
1452
|
-
});
|
|
1453
|
-
return retVal;
|
|
1454
|
-
};
|
|
1455
|
-
const de_StateMachineAliasListItem = (output, context) => {
|
|
1456
|
-
return take(output, {
|
|
1457
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1458
|
-
stateMachineAliasArn: __expectString,
|
|
1459
|
-
});
|
|
1460
|
-
};
|
|
1461
|
-
const de_StateMachineList = (output, context) => {
|
|
1462
|
-
const retVal = (output || [])
|
|
1463
|
-
.filter((e) => e != null)
|
|
1464
|
-
.map((entry) => {
|
|
1465
|
-
return de_StateMachineListItem(entry, context);
|
|
1466
|
-
});
|
|
1467
|
-
return retVal;
|
|
1468
|
-
};
|
|
1469
|
-
const de_StateMachineListItem = (output, context) => {
|
|
1470
|
-
return take(output, {
|
|
1471
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1472
|
-
name: __expectString,
|
|
1473
|
-
stateMachineArn: __expectString,
|
|
1474
|
-
type: __expectString,
|
|
1475
|
-
});
|
|
1476
|
-
};
|
|
1477
|
-
const de_StateMachineVersionList = (output, context) => {
|
|
1478
|
-
const retVal = (output || [])
|
|
1479
|
-
.filter((e) => e != null)
|
|
1480
|
-
.map((entry) => {
|
|
1481
|
-
return de_StateMachineVersionListItem(entry, context);
|
|
1482
|
-
});
|
|
1483
|
-
return retVal;
|
|
1484
|
-
};
|
|
1485
|
-
const de_StateMachineVersionListItem = (output, context) => {
|
|
1486
|
-
return take(output, {
|
|
1487
|
-
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1488
|
-
stateMachineVersionArn: __expectString,
|
|
1489
|
-
});
|
|
1490
|
-
};
|
|
1491
|
-
const de_StopExecutionOutput = (output, context) => {
|
|
1492
|
-
return take(output, {
|
|
1493
|
-
stopDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1494
|
-
});
|
|
1495
|
-
};
|
|
1496
|
-
const de_UpdateStateMachineAliasOutput = (output, context) => {
|
|
1497
|
-
return take(output, {
|
|
1498
|
-
updateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1499
|
-
});
|
|
1500
|
-
};
|
|
1501
|
-
const de_UpdateStateMachineOutput = (output, context) => {
|
|
1502
|
-
return take(output, {
|
|
1503
|
-
revisionId: __expectString,
|
|
1504
|
-
stateMachineVersionArn: __expectString,
|
|
1505
|
-
updateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1506
|
-
});
|
|
1507
|
-
};
|
|
1508
|
-
const deserializeMetadata = (output) => ({
|
|
1509
|
-
httpStatusCode: output.statusCode,
|
|
1510
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1511
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1512
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1513
|
-
});
|
|
1514
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1515
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1516
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1517
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1518
|
-
const contents = {
|
|
1519
|
-
protocol,
|
|
1520
|
-
hostname,
|
|
1521
|
-
port,
|
|
1522
|
-
method: "POST",
|
|
1523
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1524
|
-
headers,
|
|
1525
|
-
};
|
|
1526
|
-
if (resolvedHostname !== undefined) {
|
|
1527
|
-
contents.hostname = resolvedHostname;
|
|
1528
|
-
}
|
|
1529
|
-
if (body !== undefined) {
|
|
1530
|
-
contents.body = body;
|
|
1531
|
-
}
|
|
1532
|
-
return new __HttpRequest(contents);
|
|
1533
|
-
};
|
|
1534
|
-
function sharedHeaders(operation) {
|
|
1535
|
-
return {
|
|
1536
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1537
|
-
"x-amz-target": `AWSStepFunctions.${operation}`,
|
|
1538
|
-
};
|
|
1539
|
-
}
|