@aws-sdk/client-sfn 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/SFN.js +1 -83
- package/dist-cjs/SFNClient.js +1 -43
- package/dist-cjs/commands/CreateActivityCommand.js +1 -28
- package/dist-cjs/commands/CreateStateMachineAliasCommand.js +1 -29
- package/dist-cjs/commands/CreateStateMachineCommand.js +1 -29
- package/dist-cjs/commands/DeleteActivityCommand.js +1 -28
- package/dist-cjs/commands/DeleteStateMachineAliasCommand.js +1 -28
- package/dist-cjs/commands/DeleteStateMachineCommand.js +1 -28
- package/dist-cjs/commands/DeleteStateMachineVersionCommand.js +1 -28
- package/dist-cjs/commands/DescribeActivityCommand.js +1 -28
- package/dist-cjs/commands/DescribeExecutionCommand.js +1 -29
- package/dist-cjs/commands/DescribeMapRunCommand.js +1 -28
- package/dist-cjs/commands/DescribeStateMachineAliasCommand.js +1 -29
- package/dist-cjs/commands/DescribeStateMachineCommand.js +1 -29
- package/dist-cjs/commands/DescribeStateMachineForExecutionCommand.js +1 -29
- package/dist-cjs/commands/GetActivityTaskCommand.js +1 -29
- package/dist-cjs/commands/GetExecutionHistoryCommand.js +1 -29
- package/dist-cjs/commands/ListActivitiesCommand.js +1 -28
- package/dist-cjs/commands/ListExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListMapRunsCommand.js +1 -28
- package/dist-cjs/commands/ListStateMachineAliasesCommand.js +1 -28
- package/dist-cjs/commands/ListStateMachineVersionsCommand.js +1 -28
- package/dist-cjs/commands/ListStateMachinesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PublishStateMachineVersionCommand.js +1 -29
- package/dist-cjs/commands/RedriveExecutionCommand.js +1 -28
- package/dist-cjs/commands/SendTaskFailureCommand.js +1 -29
- package/dist-cjs/commands/SendTaskHeartbeatCommand.js +1 -28
- package/dist-cjs/commands/SendTaskSuccessCommand.js +1 -29
- package/dist-cjs/commands/StartExecutionCommand.js +1 -29
- package/dist-cjs/commands/StartSyncExecutionCommand.js +1 -29
- package/dist-cjs/commands/StopExecutionCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TestStateCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateMapRunCommand.js +1 -28
- package/dist-cjs/commands/UpdateStateMachineAliasCommand.js +1 -29
- package/dist-cjs/commands/UpdateStateMachineCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -39
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +4364 -11
- package/dist-cjs/models/SFNServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -843
- package/dist-cjs/pagination/GetExecutionHistoryPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListActivitiesPaginator.js +1 -7
- package/dist-cjs/pagination/ListExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMapRunsPaginator.js +1 -7
- package/dist-cjs/pagination/ListStateMachinesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_json1_0.js +1 -2453
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2453 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetActivityTaskCommand = exports.de_DescribeStateMachineForExecutionCommand = exports.de_DescribeStateMachineAliasCommand = exports.de_DescribeStateMachineCommand = exports.de_DescribeMapRunCommand = exports.de_DescribeExecutionCommand = exports.de_DescribeActivityCommand = exports.de_DeleteStateMachineVersionCommand = exports.de_DeleteStateMachineAliasCommand = exports.de_DeleteStateMachineCommand = exports.de_DeleteActivityCommand = exports.de_CreateStateMachineAliasCommand = exports.de_CreateStateMachineCommand = exports.de_CreateActivityCommand = exports.se_UpdateStateMachineAliasCommand = exports.se_UpdateStateMachineCommand = exports.se_UpdateMapRunCommand = exports.se_UntagResourceCommand = exports.se_TestStateCommand = exports.se_TagResourceCommand = exports.se_StopExecutionCommand = exports.se_StartSyncExecutionCommand = exports.se_StartExecutionCommand = exports.se_SendTaskSuccessCommand = exports.se_SendTaskHeartbeatCommand = exports.se_SendTaskFailureCommand = exports.se_RedriveExecutionCommand = exports.se_PublishStateMachineVersionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStateMachineVersionsCommand = exports.se_ListStateMachinesCommand = exports.se_ListStateMachineAliasesCommand = exports.se_ListMapRunsCommand = exports.se_ListExecutionsCommand = exports.se_ListActivitiesCommand = exports.se_GetExecutionHistoryCommand = exports.se_GetActivityTaskCommand = exports.se_DescribeStateMachineForExecutionCommand = exports.se_DescribeStateMachineAliasCommand = exports.se_DescribeStateMachineCommand = exports.se_DescribeMapRunCommand = exports.se_DescribeExecutionCommand = exports.se_DescribeActivityCommand = exports.se_DeleteStateMachineVersionCommand = exports.se_DeleteStateMachineAliasCommand = exports.se_DeleteStateMachineCommand = exports.se_DeleteActivityCommand = exports.se_CreateStateMachineAliasCommand = exports.se_CreateStateMachineCommand = exports.se_CreateActivityCommand = void 0;
|
|
4
|
-
exports.de_UpdateStateMachineAliasCommand = exports.de_UpdateStateMachineCommand = exports.de_UpdateMapRunCommand = exports.de_UntagResourceCommand = exports.de_TestStateCommand = exports.de_TagResourceCommand = exports.de_StopExecutionCommand = exports.de_StartSyncExecutionCommand = exports.de_StartExecutionCommand = exports.de_SendTaskSuccessCommand = exports.de_SendTaskHeartbeatCommand = exports.de_SendTaskFailureCommand = exports.de_RedriveExecutionCommand = exports.de_PublishStateMachineVersionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStateMachineVersionsCommand = exports.de_ListStateMachinesCommand = exports.de_ListStateMachineAliasesCommand = exports.de_ListMapRunsCommand = exports.de_ListExecutionsCommand = exports.de_ListActivitiesCommand = exports.de_GetExecutionHistoryCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const SFNServiceException_1 = require("../models/SFNServiceException");
|
|
10
|
-
const se_CreateActivityCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("CreateActivity");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_CreateActivityCommand = se_CreateActivityCommand;
|
|
17
|
-
const se_CreateStateMachineCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("CreateStateMachine");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_CreateStateMachineCommand = se_CreateStateMachineCommand;
|
|
24
|
-
const se_CreateStateMachineAliasCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateStateMachineAlias");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateStateMachineAliasCommand = se_CreateStateMachineAliasCommand;
|
|
31
|
-
const se_DeleteActivityCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DeleteActivity");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_DeleteActivityCommand = se_DeleteActivityCommand;
|
|
38
|
-
const se_DeleteStateMachineCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("DeleteStateMachine");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_DeleteStateMachineCommand = se_DeleteStateMachineCommand;
|
|
45
|
-
const se_DeleteStateMachineAliasCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("DeleteStateMachineAlias");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_DeleteStateMachineAliasCommand = se_DeleteStateMachineAliasCommand;
|
|
52
|
-
const se_DeleteStateMachineVersionCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("DeleteStateMachineVersion");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_DeleteStateMachineVersionCommand = se_DeleteStateMachineVersionCommand;
|
|
59
|
-
const se_DescribeActivityCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("DescribeActivity");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_DescribeActivityCommand = se_DescribeActivityCommand;
|
|
66
|
-
const se_DescribeExecutionCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DescribeExecution");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_DescribeExecutionCommand = se_DescribeExecutionCommand;
|
|
73
|
-
const se_DescribeMapRunCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DescribeMapRun");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_DescribeMapRunCommand = se_DescribeMapRunCommand;
|
|
80
|
-
const se_DescribeStateMachineCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("DescribeStateMachine");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_DescribeStateMachineCommand = se_DescribeStateMachineCommand;
|
|
87
|
-
const se_DescribeStateMachineAliasCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("DescribeStateMachineAlias");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_DescribeStateMachineAliasCommand = se_DescribeStateMachineAliasCommand;
|
|
94
|
-
const se_DescribeStateMachineForExecutionCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("DescribeStateMachineForExecution");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_DescribeStateMachineForExecutionCommand = se_DescribeStateMachineForExecutionCommand;
|
|
101
|
-
const se_GetActivityTaskCommand = async (input, context) => {
|
|
102
|
-
const headers = sharedHeaders("GetActivityTask");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
-
};
|
|
107
|
-
exports.se_GetActivityTaskCommand = se_GetActivityTaskCommand;
|
|
108
|
-
const se_GetExecutionHistoryCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("GetExecutionHistory");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
exports.se_GetExecutionHistoryCommand = se_GetExecutionHistoryCommand;
|
|
115
|
-
const se_ListActivitiesCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("ListActivities");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
exports.se_ListActivitiesCommand = se_ListActivitiesCommand;
|
|
122
|
-
const se_ListExecutionsCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("ListExecutions");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
exports.se_ListExecutionsCommand = se_ListExecutionsCommand;
|
|
129
|
-
const se_ListMapRunsCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("ListMapRuns");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.se_ListMapRunsCommand = se_ListMapRunsCommand;
|
|
136
|
-
const se_ListStateMachineAliasesCommand = async (input, context) => {
|
|
137
|
-
const headers = sharedHeaders("ListStateMachineAliases");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
exports.se_ListStateMachineAliasesCommand = se_ListStateMachineAliasesCommand;
|
|
143
|
-
const se_ListStateMachinesCommand = async (input, context) => {
|
|
144
|
-
const headers = sharedHeaders("ListStateMachines");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
-
};
|
|
149
|
-
exports.se_ListStateMachinesCommand = se_ListStateMachinesCommand;
|
|
150
|
-
const se_ListStateMachineVersionsCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("ListStateMachineVersions");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
exports.se_ListStateMachineVersionsCommand = se_ListStateMachineVersionsCommand;
|
|
157
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
164
|
-
const se_PublishStateMachineVersionCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("PublishStateMachineVersion");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
exports.se_PublishStateMachineVersionCommand = se_PublishStateMachineVersionCommand;
|
|
171
|
-
const se_RedriveExecutionCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("RedriveExecution");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify(se_RedriveExecutionInput(input, context));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
exports.se_RedriveExecutionCommand = se_RedriveExecutionCommand;
|
|
178
|
-
const se_SendTaskFailureCommand = async (input, context) => {
|
|
179
|
-
const headers = sharedHeaders("SendTaskFailure");
|
|
180
|
-
let body;
|
|
181
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
|
-
};
|
|
184
|
-
exports.se_SendTaskFailureCommand = se_SendTaskFailureCommand;
|
|
185
|
-
const se_SendTaskHeartbeatCommand = async (input, context) => {
|
|
186
|
-
const headers = sharedHeaders("SendTaskHeartbeat");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
|
-
};
|
|
191
|
-
exports.se_SendTaskHeartbeatCommand = se_SendTaskHeartbeatCommand;
|
|
192
|
-
const se_SendTaskSuccessCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("SendTaskSuccess");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
exports.se_SendTaskSuccessCommand = se_SendTaskSuccessCommand;
|
|
199
|
-
const se_StartExecutionCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("StartExecution");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.se_StartExecutionCommand = se_StartExecutionCommand;
|
|
206
|
-
const se_StartSyncExecutionCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("StartSyncExecution");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
211
|
-
if (context.disableHostPrefix !== true) {
|
|
212
|
-
resolvedHostname = "sync-" + resolvedHostname;
|
|
213
|
-
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
214
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
218
|
-
};
|
|
219
|
-
exports.se_StartSyncExecutionCommand = se_StartSyncExecutionCommand;
|
|
220
|
-
const se_StopExecutionCommand = async (input, context) => {
|
|
221
|
-
const headers = sharedHeaders("StopExecution");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
exports.se_StopExecutionCommand = se_StopExecutionCommand;
|
|
227
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
228
|
-
const headers = sharedHeaders("TagResource");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
234
|
-
const se_TestStateCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("TestState");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
239
|
-
if (context.disableHostPrefix !== true) {
|
|
240
|
-
resolvedHostname = "sync-" + resolvedHostname;
|
|
241
|
-
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
242
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
246
|
-
};
|
|
247
|
-
exports.se_TestStateCommand = se_TestStateCommand;
|
|
248
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
249
|
-
const headers = sharedHeaders("UntagResource");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
255
|
-
const se_UpdateMapRunCommand = async (input, context) => {
|
|
256
|
-
const headers = sharedHeaders("UpdateMapRun");
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify(se_UpdateMapRunInput(input, context));
|
|
259
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
-
};
|
|
261
|
-
exports.se_UpdateMapRunCommand = se_UpdateMapRunCommand;
|
|
262
|
-
const se_UpdateStateMachineCommand = async (input, context) => {
|
|
263
|
-
const headers = sharedHeaders("UpdateStateMachine");
|
|
264
|
-
let body;
|
|
265
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
-
};
|
|
268
|
-
exports.se_UpdateStateMachineCommand = se_UpdateStateMachineCommand;
|
|
269
|
-
const se_UpdateStateMachineAliasCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("UpdateStateMachineAlias");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
exports.se_UpdateStateMachineAliasCommand = se_UpdateStateMachineAliasCommand;
|
|
276
|
-
const de_CreateActivityCommand = async (output, context) => {
|
|
277
|
-
if (output.statusCode >= 300) {
|
|
278
|
-
return de_CreateActivityCommandError(output, context);
|
|
279
|
-
}
|
|
280
|
-
const data = await parseBody(output.body, context);
|
|
281
|
-
let contents = {};
|
|
282
|
-
contents = de_CreateActivityOutput(data, context);
|
|
283
|
-
const response = {
|
|
284
|
-
$metadata: deserializeMetadata(output),
|
|
285
|
-
...contents,
|
|
286
|
-
};
|
|
287
|
-
return response;
|
|
288
|
-
};
|
|
289
|
-
exports.de_CreateActivityCommand = de_CreateActivityCommand;
|
|
290
|
-
const de_CreateActivityCommandError = async (output, context) => {
|
|
291
|
-
const parsedOutput = {
|
|
292
|
-
...output,
|
|
293
|
-
body: await parseErrorBody(output.body, context),
|
|
294
|
-
};
|
|
295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
296
|
-
switch (errorCode) {
|
|
297
|
-
case "ActivityLimitExceeded":
|
|
298
|
-
case "com.amazonaws.sfn#ActivityLimitExceeded":
|
|
299
|
-
throw await de_ActivityLimitExceededRes(parsedOutput, context);
|
|
300
|
-
case "InvalidName":
|
|
301
|
-
case "com.amazonaws.sfn#InvalidName":
|
|
302
|
-
throw await de_InvalidNameRes(parsedOutput, context);
|
|
303
|
-
case "TooManyTags":
|
|
304
|
-
case "com.amazonaws.sfn#TooManyTags":
|
|
305
|
-
throw await de_TooManyTagsRes(parsedOutput, context);
|
|
306
|
-
default:
|
|
307
|
-
const parsedBody = parsedOutput.body;
|
|
308
|
-
return throwDefaultError({
|
|
309
|
-
output,
|
|
310
|
-
parsedBody,
|
|
311
|
-
errorCode,
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
const de_CreateStateMachineCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode >= 300) {
|
|
317
|
-
return de_CreateStateMachineCommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const data = await parseBody(output.body, context);
|
|
320
|
-
let contents = {};
|
|
321
|
-
contents = de_CreateStateMachineOutput(data, context);
|
|
322
|
-
const response = {
|
|
323
|
-
$metadata: deserializeMetadata(output),
|
|
324
|
-
...contents,
|
|
325
|
-
};
|
|
326
|
-
return response;
|
|
327
|
-
};
|
|
328
|
-
exports.de_CreateStateMachineCommand = de_CreateStateMachineCommand;
|
|
329
|
-
const de_CreateStateMachineCommandError = async (output, context) => {
|
|
330
|
-
const parsedOutput = {
|
|
331
|
-
...output,
|
|
332
|
-
body: await parseErrorBody(output.body, context),
|
|
333
|
-
};
|
|
334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
|
-
switch (errorCode) {
|
|
336
|
-
case "ConflictException":
|
|
337
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
338
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
339
|
-
case "InvalidArn":
|
|
340
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
341
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
342
|
-
case "InvalidDefinition":
|
|
343
|
-
case "com.amazonaws.sfn#InvalidDefinition":
|
|
344
|
-
throw await de_InvalidDefinitionRes(parsedOutput, context);
|
|
345
|
-
case "InvalidLoggingConfiguration":
|
|
346
|
-
case "com.amazonaws.sfn#InvalidLoggingConfiguration":
|
|
347
|
-
throw await de_InvalidLoggingConfigurationRes(parsedOutput, context);
|
|
348
|
-
case "InvalidName":
|
|
349
|
-
case "com.amazonaws.sfn#InvalidName":
|
|
350
|
-
throw await de_InvalidNameRes(parsedOutput, context);
|
|
351
|
-
case "InvalidTracingConfiguration":
|
|
352
|
-
case "com.amazonaws.sfn#InvalidTracingConfiguration":
|
|
353
|
-
throw await de_InvalidTracingConfigurationRes(parsedOutput, context);
|
|
354
|
-
case "StateMachineAlreadyExists":
|
|
355
|
-
case "com.amazonaws.sfn#StateMachineAlreadyExists":
|
|
356
|
-
throw await de_StateMachineAlreadyExistsRes(parsedOutput, context);
|
|
357
|
-
case "StateMachineDeleting":
|
|
358
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
359
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
360
|
-
case "StateMachineLimitExceeded":
|
|
361
|
-
case "com.amazonaws.sfn#StateMachineLimitExceeded":
|
|
362
|
-
throw await de_StateMachineLimitExceededRes(parsedOutput, context);
|
|
363
|
-
case "StateMachineTypeNotSupported":
|
|
364
|
-
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
365
|
-
throw await de_StateMachineTypeNotSupportedRes(parsedOutput, context);
|
|
366
|
-
case "TooManyTags":
|
|
367
|
-
case "com.amazonaws.sfn#TooManyTags":
|
|
368
|
-
throw await de_TooManyTagsRes(parsedOutput, context);
|
|
369
|
-
case "ValidationException":
|
|
370
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
372
|
-
default:
|
|
373
|
-
const parsedBody = parsedOutput.body;
|
|
374
|
-
return throwDefaultError({
|
|
375
|
-
output,
|
|
376
|
-
parsedBody,
|
|
377
|
-
errorCode,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
const de_CreateStateMachineAliasCommand = async (output, context) => {
|
|
382
|
-
if (output.statusCode >= 300) {
|
|
383
|
-
return de_CreateStateMachineAliasCommandError(output, context);
|
|
384
|
-
}
|
|
385
|
-
const data = await parseBody(output.body, context);
|
|
386
|
-
let contents = {};
|
|
387
|
-
contents = de_CreateStateMachineAliasOutput(data, context);
|
|
388
|
-
const response = {
|
|
389
|
-
$metadata: deserializeMetadata(output),
|
|
390
|
-
...contents,
|
|
391
|
-
};
|
|
392
|
-
return response;
|
|
393
|
-
};
|
|
394
|
-
exports.de_CreateStateMachineAliasCommand = de_CreateStateMachineAliasCommand;
|
|
395
|
-
const de_CreateStateMachineAliasCommandError = async (output, context) => {
|
|
396
|
-
const parsedOutput = {
|
|
397
|
-
...output,
|
|
398
|
-
body: await parseErrorBody(output.body, context),
|
|
399
|
-
};
|
|
400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
401
|
-
switch (errorCode) {
|
|
402
|
-
case "ConflictException":
|
|
403
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
404
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
405
|
-
case "InvalidArn":
|
|
406
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
407
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
408
|
-
case "InvalidName":
|
|
409
|
-
case "com.amazonaws.sfn#InvalidName":
|
|
410
|
-
throw await de_InvalidNameRes(parsedOutput, context);
|
|
411
|
-
case "ResourceNotFound":
|
|
412
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
413
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
414
|
-
case "ServiceQuotaExceededException":
|
|
415
|
-
case "com.amazonaws.sfn#ServiceQuotaExceededException":
|
|
416
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
417
|
-
case "StateMachineDeleting":
|
|
418
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
419
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
420
|
-
case "ValidationException":
|
|
421
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
422
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
423
|
-
default:
|
|
424
|
-
const parsedBody = parsedOutput.body;
|
|
425
|
-
return throwDefaultError({
|
|
426
|
-
output,
|
|
427
|
-
parsedBody,
|
|
428
|
-
errorCode,
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
const de_DeleteActivityCommand = async (output, context) => {
|
|
433
|
-
if (output.statusCode >= 300) {
|
|
434
|
-
return de_DeleteActivityCommandError(output, context);
|
|
435
|
-
}
|
|
436
|
-
const data = await parseBody(output.body, context);
|
|
437
|
-
let contents = {};
|
|
438
|
-
contents = (0, smithy_client_1._json)(data);
|
|
439
|
-
const response = {
|
|
440
|
-
$metadata: deserializeMetadata(output),
|
|
441
|
-
...contents,
|
|
442
|
-
};
|
|
443
|
-
return response;
|
|
444
|
-
};
|
|
445
|
-
exports.de_DeleteActivityCommand = de_DeleteActivityCommand;
|
|
446
|
-
const de_DeleteActivityCommandError = async (output, context) => {
|
|
447
|
-
const parsedOutput = {
|
|
448
|
-
...output,
|
|
449
|
-
body: await parseErrorBody(output.body, context),
|
|
450
|
-
};
|
|
451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
452
|
-
switch (errorCode) {
|
|
453
|
-
case "InvalidArn":
|
|
454
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
455
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
456
|
-
default:
|
|
457
|
-
const parsedBody = parsedOutput.body;
|
|
458
|
-
return throwDefaultError({
|
|
459
|
-
output,
|
|
460
|
-
parsedBody,
|
|
461
|
-
errorCode,
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
const de_DeleteStateMachineCommand = async (output, context) => {
|
|
466
|
-
if (output.statusCode >= 300) {
|
|
467
|
-
return de_DeleteStateMachineCommandError(output, context);
|
|
468
|
-
}
|
|
469
|
-
const data = await parseBody(output.body, context);
|
|
470
|
-
let contents = {};
|
|
471
|
-
contents = (0, smithy_client_1._json)(data);
|
|
472
|
-
const response = {
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
...contents,
|
|
475
|
-
};
|
|
476
|
-
return response;
|
|
477
|
-
};
|
|
478
|
-
exports.de_DeleteStateMachineCommand = de_DeleteStateMachineCommand;
|
|
479
|
-
const de_DeleteStateMachineCommandError = async (output, context) => {
|
|
480
|
-
const parsedOutput = {
|
|
481
|
-
...output,
|
|
482
|
-
body: await parseErrorBody(output.body, context),
|
|
483
|
-
};
|
|
484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
-
switch (errorCode) {
|
|
486
|
-
case "InvalidArn":
|
|
487
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
488
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
489
|
-
case "ValidationException":
|
|
490
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode,
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
const de_DeleteStateMachineAliasCommand = async (output, context) => {
|
|
502
|
-
if (output.statusCode >= 300) {
|
|
503
|
-
return de_DeleteStateMachineAliasCommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
const data = await parseBody(output.body, context);
|
|
506
|
-
let contents = {};
|
|
507
|
-
contents = (0, smithy_client_1._json)(data);
|
|
508
|
-
const response = {
|
|
509
|
-
$metadata: deserializeMetadata(output),
|
|
510
|
-
...contents,
|
|
511
|
-
};
|
|
512
|
-
return response;
|
|
513
|
-
};
|
|
514
|
-
exports.de_DeleteStateMachineAliasCommand = de_DeleteStateMachineAliasCommand;
|
|
515
|
-
const de_DeleteStateMachineAliasCommandError = async (output, context) => {
|
|
516
|
-
const parsedOutput = {
|
|
517
|
-
...output,
|
|
518
|
-
body: await parseErrorBody(output.body, context),
|
|
519
|
-
};
|
|
520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
-
switch (errorCode) {
|
|
522
|
-
case "ConflictException":
|
|
523
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
524
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
525
|
-
case "InvalidArn":
|
|
526
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
527
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
528
|
-
case "ResourceNotFound":
|
|
529
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
530
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
531
|
-
case "ValidationException":
|
|
532
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
533
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
534
|
-
default:
|
|
535
|
-
const parsedBody = parsedOutput.body;
|
|
536
|
-
return throwDefaultError({
|
|
537
|
-
output,
|
|
538
|
-
parsedBody,
|
|
539
|
-
errorCode,
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
const de_DeleteStateMachineVersionCommand = async (output, context) => {
|
|
544
|
-
if (output.statusCode >= 300) {
|
|
545
|
-
return de_DeleteStateMachineVersionCommandError(output, context);
|
|
546
|
-
}
|
|
547
|
-
const data = await parseBody(output.body, context);
|
|
548
|
-
let contents = {};
|
|
549
|
-
contents = (0, smithy_client_1._json)(data);
|
|
550
|
-
const response = {
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
...contents,
|
|
553
|
-
};
|
|
554
|
-
return response;
|
|
555
|
-
};
|
|
556
|
-
exports.de_DeleteStateMachineVersionCommand = de_DeleteStateMachineVersionCommand;
|
|
557
|
-
const de_DeleteStateMachineVersionCommandError = async (output, context) => {
|
|
558
|
-
const parsedOutput = {
|
|
559
|
-
...output,
|
|
560
|
-
body: await parseErrorBody(output.body, context),
|
|
561
|
-
};
|
|
562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
563
|
-
switch (errorCode) {
|
|
564
|
-
case "ConflictException":
|
|
565
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
566
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
567
|
-
case "InvalidArn":
|
|
568
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
569
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
570
|
-
case "ValidationException":
|
|
571
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
572
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
573
|
-
default:
|
|
574
|
-
const parsedBody = parsedOutput.body;
|
|
575
|
-
return throwDefaultError({
|
|
576
|
-
output,
|
|
577
|
-
parsedBody,
|
|
578
|
-
errorCode,
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
const de_DescribeActivityCommand = async (output, context) => {
|
|
583
|
-
if (output.statusCode >= 300) {
|
|
584
|
-
return de_DescribeActivityCommandError(output, context);
|
|
585
|
-
}
|
|
586
|
-
const data = await parseBody(output.body, context);
|
|
587
|
-
let contents = {};
|
|
588
|
-
contents = de_DescribeActivityOutput(data, context);
|
|
589
|
-
const response = {
|
|
590
|
-
$metadata: deserializeMetadata(output),
|
|
591
|
-
...contents,
|
|
592
|
-
};
|
|
593
|
-
return response;
|
|
594
|
-
};
|
|
595
|
-
exports.de_DescribeActivityCommand = de_DescribeActivityCommand;
|
|
596
|
-
const de_DescribeActivityCommandError = async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context),
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "ActivityDoesNotExist":
|
|
604
|
-
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
605
|
-
throw await de_ActivityDoesNotExistRes(parsedOutput, context);
|
|
606
|
-
case "InvalidArn":
|
|
607
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
608
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
609
|
-
default:
|
|
610
|
-
const parsedBody = parsedOutput.body;
|
|
611
|
-
return throwDefaultError({
|
|
612
|
-
output,
|
|
613
|
-
parsedBody,
|
|
614
|
-
errorCode,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
const de_DescribeExecutionCommand = async (output, context) => {
|
|
619
|
-
if (output.statusCode >= 300) {
|
|
620
|
-
return de_DescribeExecutionCommandError(output, context);
|
|
621
|
-
}
|
|
622
|
-
const data = await parseBody(output.body, context);
|
|
623
|
-
let contents = {};
|
|
624
|
-
contents = de_DescribeExecutionOutput(data, context);
|
|
625
|
-
const response = {
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
...contents,
|
|
628
|
-
};
|
|
629
|
-
return response;
|
|
630
|
-
};
|
|
631
|
-
exports.de_DescribeExecutionCommand = de_DescribeExecutionCommand;
|
|
632
|
-
const de_DescribeExecutionCommandError = async (output, context) => {
|
|
633
|
-
const parsedOutput = {
|
|
634
|
-
...output,
|
|
635
|
-
body: await parseErrorBody(output.body, context),
|
|
636
|
-
};
|
|
637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
switch (errorCode) {
|
|
639
|
-
case "ExecutionDoesNotExist":
|
|
640
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
641
|
-
throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
|
|
642
|
-
case "InvalidArn":
|
|
643
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
644
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
const de_DescribeMapRunCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode >= 300) {
|
|
656
|
-
return de_DescribeMapRunCommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const data = await parseBody(output.body, context);
|
|
659
|
-
let contents = {};
|
|
660
|
-
contents = de_DescribeMapRunOutput(data, context);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
...contents,
|
|
664
|
-
};
|
|
665
|
-
return response;
|
|
666
|
-
};
|
|
667
|
-
exports.de_DescribeMapRunCommand = de_DescribeMapRunCommand;
|
|
668
|
-
const de_DescribeMapRunCommandError = async (output, context) => {
|
|
669
|
-
const parsedOutput = {
|
|
670
|
-
...output,
|
|
671
|
-
body: await parseErrorBody(output.body, context),
|
|
672
|
-
};
|
|
673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "InvalidArn":
|
|
676
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
677
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
678
|
-
case "ResourceNotFound":
|
|
679
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
680
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
681
|
-
default:
|
|
682
|
-
const parsedBody = parsedOutput.body;
|
|
683
|
-
return throwDefaultError({
|
|
684
|
-
output,
|
|
685
|
-
parsedBody,
|
|
686
|
-
errorCode,
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
const de_DescribeStateMachineCommand = async (output, context) => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return de_DescribeStateMachineCommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data = await parseBody(output.body, context);
|
|
695
|
-
let contents = {};
|
|
696
|
-
contents = de_DescribeStateMachineOutput(data, context);
|
|
697
|
-
const response = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents,
|
|
700
|
-
};
|
|
701
|
-
return response;
|
|
702
|
-
};
|
|
703
|
-
exports.de_DescribeStateMachineCommand = de_DescribeStateMachineCommand;
|
|
704
|
-
const de_DescribeStateMachineCommandError = async (output, context) => {
|
|
705
|
-
const parsedOutput = {
|
|
706
|
-
...output,
|
|
707
|
-
body: await parseErrorBody(output.body, context),
|
|
708
|
-
};
|
|
709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
710
|
-
switch (errorCode) {
|
|
711
|
-
case "InvalidArn":
|
|
712
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
713
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
714
|
-
case "StateMachineDoesNotExist":
|
|
715
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
716
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode,
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
const de_DescribeStateMachineAliasCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_DescribeStateMachineAliasCommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = de_DescribeStateMachineAliasOutput(data, context);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
exports.de_DescribeStateMachineAliasCommand = de_DescribeStateMachineAliasCommand;
|
|
740
|
-
const de_DescribeStateMachineAliasCommandError = async (output, context) => {
|
|
741
|
-
const parsedOutput = {
|
|
742
|
-
...output,
|
|
743
|
-
body: await parseErrorBody(output.body, context),
|
|
744
|
-
};
|
|
745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
|
-
switch (errorCode) {
|
|
747
|
-
case "InvalidArn":
|
|
748
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
749
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
750
|
-
case "ResourceNotFound":
|
|
751
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
752
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
753
|
-
case "ValidationException":
|
|
754
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
755
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
756
|
-
default:
|
|
757
|
-
const parsedBody = parsedOutput.body;
|
|
758
|
-
return throwDefaultError({
|
|
759
|
-
output,
|
|
760
|
-
parsedBody,
|
|
761
|
-
errorCode,
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
const de_DescribeStateMachineForExecutionCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode >= 300) {
|
|
767
|
-
return de_DescribeStateMachineForExecutionCommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const data = await parseBody(output.body, context);
|
|
770
|
-
let contents = {};
|
|
771
|
-
contents = de_DescribeStateMachineForExecutionOutput(data, context);
|
|
772
|
-
const response = {
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
...contents,
|
|
775
|
-
};
|
|
776
|
-
return response;
|
|
777
|
-
};
|
|
778
|
-
exports.de_DescribeStateMachineForExecutionCommand = de_DescribeStateMachineForExecutionCommand;
|
|
779
|
-
const de_DescribeStateMachineForExecutionCommandError = async (output, context) => {
|
|
780
|
-
const parsedOutput = {
|
|
781
|
-
...output,
|
|
782
|
-
body: await parseErrorBody(output.body, context),
|
|
783
|
-
};
|
|
784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
-
switch (errorCode) {
|
|
786
|
-
case "ExecutionDoesNotExist":
|
|
787
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
788
|
-
throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
|
|
789
|
-
case "InvalidArn":
|
|
790
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
791
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
792
|
-
default:
|
|
793
|
-
const parsedBody = parsedOutput.body;
|
|
794
|
-
return throwDefaultError({
|
|
795
|
-
output,
|
|
796
|
-
parsedBody,
|
|
797
|
-
errorCode,
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
const de_GetActivityTaskCommand = async (output, context) => {
|
|
802
|
-
if (output.statusCode >= 300) {
|
|
803
|
-
return de_GetActivityTaskCommandError(output, context);
|
|
804
|
-
}
|
|
805
|
-
const data = await parseBody(output.body, context);
|
|
806
|
-
let contents = {};
|
|
807
|
-
contents = (0, smithy_client_1._json)(data);
|
|
808
|
-
const response = {
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
...contents,
|
|
811
|
-
};
|
|
812
|
-
return response;
|
|
813
|
-
};
|
|
814
|
-
exports.de_GetActivityTaskCommand = de_GetActivityTaskCommand;
|
|
815
|
-
const de_GetActivityTaskCommandError = async (output, context) => {
|
|
816
|
-
const parsedOutput = {
|
|
817
|
-
...output,
|
|
818
|
-
body: await parseErrorBody(output.body, context),
|
|
819
|
-
};
|
|
820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
-
switch (errorCode) {
|
|
822
|
-
case "ActivityDoesNotExist":
|
|
823
|
-
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
824
|
-
throw await de_ActivityDoesNotExistRes(parsedOutput, context);
|
|
825
|
-
case "ActivityWorkerLimitExceeded":
|
|
826
|
-
case "com.amazonaws.sfn#ActivityWorkerLimitExceeded":
|
|
827
|
-
throw await de_ActivityWorkerLimitExceededRes(parsedOutput, context);
|
|
828
|
-
case "InvalidArn":
|
|
829
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
830
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
831
|
-
default:
|
|
832
|
-
const parsedBody = parsedOutput.body;
|
|
833
|
-
return throwDefaultError({
|
|
834
|
-
output,
|
|
835
|
-
parsedBody,
|
|
836
|
-
errorCode,
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
};
|
|
840
|
-
const de_GetExecutionHistoryCommand = async (output, context) => {
|
|
841
|
-
if (output.statusCode >= 300) {
|
|
842
|
-
return de_GetExecutionHistoryCommandError(output, context);
|
|
843
|
-
}
|
|
844
|
-
const data = await parseBody(output.body, context);
|
|
845
|
-
let contents = {};
|
|
846
|
-
contents = de_GetExecutionHistoryOutput(data, context);
|
|
847
|
-
const response = {
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
...contents,
|
|
850
|
-
};
|
|
851
|
-
return response;
|
|
852
|
-
};
|
|
853
|
-
exports.de_GetExecutionHistoryCommand = de_GetExecutionHistoryCommand;
|
|
854
|
-
const de_GetExecutionHistoryCommandError = async (output, context) => {
|
|
855
|
-
const parsedOutput = {
|
|
856
|
-
...output,
|
|
857
|
-
body: await parseErrorBody(output.body, context),
|
|
858
|
-
};
|
|
859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
-
switch (errorCode) {
|
|
861
|
-
case "ExecutionDoesNotExist":
|
|
862
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
863
|
-
throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
|
|
864
|
-
case "InvalidArn":
|
|
865
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
866
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
867
|
-
case "InvalidToken":
|
|
868
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
869
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
870
|
-
default:
|
|
871
|
-
const parsedBody = parsedOutput.body;
|
|
872
|
-
return throwDefaultError({
|
|
873
|
-
output,
|
|
874
|
-
parsedBody,
|
|
875
|
-
errorCode,
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
const de_ListActivitiesCommand = async (output, context) => {
|
|
880
|
-
if (output.statusCode >= 300) {
|
|
881
|
-
return de_ListActivitiesCommandError(output, context);
|
|
882
|
-
}
|
|
883
|
-
const data = await parseBody(output.body, context);
|
|
884
|
-
let contents = {};
|
|
885
|
-
contents = de_ListActivitiesOutput(data, context);
|
|
886
|
-
const response = {
|
|
887
|
-
$metadata: deserializeMetadata(output),
|
|
888
|
-
...contents,
|
|
889
|
-
};
|
|
890
|
-
return response;
|
|
891
|
-
};
|
|
892
|
-
exports.de_ListActivitiesCommand = de_ListActivitiesCommand;
|
|
893
|
-
const de_ListActivitiesCommandError = async (output, context) => {
|
|
894
|
-
const parsedOutput = {
|
|
895
|
-
...output,
|
|
896
|
-
body: await parseErrorBody(output.body, context),
|
|
897
|
-
};
|
|
898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
|
-
switch (errorCode) {
|
|
900
|
-
case "InvalidToken":
|
|
901
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
902
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody,
|
|
908
|
-
errorCode,
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
const de_ListExecutionsCommand = async (output, context) => {
|
|
913
|
-
if (output.statusCode >= 300) {
|
|
914
|
-
return de_ListExecutionsCommandError(output, context);
|
|
915
|
-
}
|
|
916
|
-
const data = await parseBody(output.body, context);
|
|
917
|
-
let contents = {};
|
|
918
|
-
contents = de_ListExecutionsOutput(data, context);
|
|
919
|
-
const response = {
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
...contents,
|
|
922
|
-
};
|
|
923
|
-
return response;
|
|
924
|
-
};
|
|
925
|
-
exports.de_ListExecutionsCommand = de_ListExecutionsCommand;
|
|
926
|
-
const de_ListExecutionsCommandError = async (output, context) => {
|
|
927
|
-
const parsedOutput = {
|
|
928
|
-
...output,
|
|
929
|
-
body: await parseErrorBody(output.body, context),
|
|
930
|
-
};
|
|
931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
|
-
switch (errorCode) {
|
|
933
|
-
case "InvalidArn":
|
|
934
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
935
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
936
|
-
case "InvalidToken":
|
|
937
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
938
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
939
|
-
case "ResourceNotFound":
|
|
940
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
941
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
942
|
-
case "StateMachineDoesNotExist":
|
|
943
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
944
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
945
|
-
case "StateMachineTypeNotSupported":
|
|
946
|
-
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
947
|
-
throw await de_StateMachineTypeNotSupportedRes(parsedOutput, context);
|
|
948
|
-
case "ValidationException":
|
|
949
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
950
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
951
|
-
default:
|
|
952
|
-
const parsedBody = parsedOutput.body;
|
|
953
|
-
return throwDefaultError({
|
|
954
|
-
output,
|
|
955
|
-
parsedBody,
|
|
956
|
-
errorCode,
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
|
-
const de_ListMapRunsCommand = async (output, context) => {
|
|
961
|
-
if (output.statusCode >= 300) {
|
|
962
|
-
return de_ListMapRunsCommandError(output, context);
|
|
963
|
-
}
|
|
964
|
-
const data = await parseBody(output.body, context);
|
|
965
|
-
let contents = {};
|
|
966
|
-
contents = de_ListMapRunsOutput(data, context);
|
|
967
|
-
const response = {
|
|
968
|
-
$metadata: deserializeMetadata(output),
|
|
969
|
-
...contents,
|
|
970
|
-
};
|
|
971
|
-
return response;
|
|
972
|
-
};
|
|
973
|
-
exports.de_ListMapRunsCommand = de_ListMapRunsCommand;
|
|
974
|
-
const de_ListMapRunsCommandError = async (output, context) => {
|
|
975
|
-
const parsedOutput = {
|
|
976
|
-
...output,
|
|
977
|
-
body: await parseErrorBody(output.body, context),
|
|
978
|
-
};
|
|
979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
|
-
switch (errorCode) {
|
|
981
|
-
case "ExecutionDoesNotExist":
|
|
982
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
983
|
-
throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
|
|
984
|
-
case "InvalidArn":
|
|
985
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
986
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
987
|
-
case "InvalidToken":
|
|
988
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
989
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode,
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
const de_ListStateMachineAliasesCommand = async (output, context) => {
|
|
1000
|
-
if (output.statusCode >= 300) {
|
|
1001
|
-
return de_ListStateMachineAliasesCommandError(output, context);
|
|
1002
|
-
}
|
|
1003
|
-
const data = await parseBody(output.body, context);
|
|
1004
|
-
let contents = {};
|
|
1005
|
-
contents = de_ListStateMachineAliasesOutput(data, context);
|
|
1006
|
-
const response = {
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
...contents,
|
|
1009
|
-
};
|
|
1010
|
-
return response;
|
|
1011
|
-
};
|
|
1012
|
-
exports.de_ListStateMachineAliasesCommand = de_ListStateMachineAliasesCommand;
|
|
1013
|
-
const de_ListStateMachineAliasesCommandError = async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context),
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "InvalidArn":
|
|
1021
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1022
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1023
|
-
case "InvalidToken":
|
|
1024
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
1025
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
1026
|
-
case "ResourceNotFound":
|
|
1027
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1028
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1029
|
-
case "StateMachineDeleting":
|
|
1030
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1031
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
1032
|
-
case "StateMachineDoesNotExist":
|
|
1033
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1034
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
1035
|
-
default:
|
|
1036
|
-
const parsedBody = parsedOutput.body;
|
|
1037
|
-
return throwDefaultError({
|
|
1038
|
-
output,
|
|
1039
|
-
parsedBody,
|
|
1040
|
-
errorCode,
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
|
-
const de_ListStateMachinesCommand = async (output, context) => {
|
|
1045
|
-
if (output.statusCode >= 300) {
|
|
1046
|
-
return de_ListStateMachinesCommandError(output, context);
|
|
1047
|
-
}
|
|
1048
|
-
const data = await parseBody(output.body, context);
|
|
1049
|
-
let contents = {};
|
|
1050
|
-
contents = de_ListStateMachinesOutput(data, context);
|
|
1051
|
-
const response = {
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
...contents,
|
|
1054
|
-
};
|
|
1055
|
-
return response;
|
|
1056
|
-
};
|
|
1057
|
-
exports.de_ListStateMachinesCommand = de_ListStateMachinesCommand;
|
|
1058
|
-
const de_ListStateMachinesCommandError = async (output, context) => {
|
|
1059
|
-
const parsedOutput = {
|
|
1060
|
-
...output,
|
|
1061
|
-
body: await parseErrorBody(output.body, context),
|
|
1062
|
-
};
|
|
1063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
|
-
switch (errorCode) {
|
|
1065
|
-
case "InvalidToken":
|
|
1066
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
1067
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
1068
|
-
default:
|
|
1069
|
-
const parsedBody = parsedOutput.body;
|
|
1070
|
-
return throwDefaultError({
|
|
1071
|
-
output,
|
|
1072
|
-
parsedBody,
|
|
1073
|
-
errorCode,
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
};
|
|
1077
|
-
const de_ListStateMachineVersionsCommand = async (output, context) => {
|
|
1078
|
-
if (output.statusCode >= 300) {
|
|
1079
|
-
return de_ListStateMachineVersionsCommandError(output, context);
|
|
1080
|
-
}
|
|
1081
|
-
const data = await parseBody(output.body, context);
|
|
1082
|
-
let contents = {};
|
|
1083
|
-
contents = de_ListStateMachineVersionsOutput(data, context);
|
|
1084
|
-
const response = {
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
...contents,
|
|
1087
|
-
};
|
|
1088
|
-
return response;
|
|
1089
|
-
};
|
|
1090
|
-
exports.de_ListStateMachineVersionsCommand = de_ListStateMachineVersionsCommand;
|
|
1091
|
-
const de_ListStateMachineVersionsCommandError = async (output, context) => {
|
|
1092
|
-
const parsedOutput = {
|
|
1093
|
-
...output,
|
|
1094
|
-
body: await parseErrorBody(output.body, context),
|
|
1095
|
-
};
|
|
1096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
-
switch (errorCode) {
|
|
1098
|
-
case "InvalidArn":
|
|
1099
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1100
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1101
|
-
case "InvalidToken":
|
|
1102
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
1103
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1117
|
-
if (output.statusCode >= 300) {
|
|
1118
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1119
|
-
}
|
|
1120
|
-
const data = await parseBody(output.body, context);
|
|
1121
|
-
let contents = {};
|
|
1122
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1123
|
-
const response = {
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
...contents,
|
|
1126
|
-
};
|
|
1127
|
-
return response;
|
|
1128
|
-
};
|
|
1129
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1130
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1131
|
-
const parsedOutput = {
|
|
1132
|
-
...output,
|
|
1133
|
-
body: await parseErrorBody(output.body, context),
|
|
1134
|
-
};
|
|
1135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
|
-
switch (errorCode) {
|
|
1137
|
-
case "InvalidArn":
|
|
1138
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1139
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1140
|
-
case "ResourceNotFound":
|
|
1141
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1142
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1143
|
-
default:
|
|
1144
|
-
const parsedBody = parsedOutput.body;
|
|
1145
|
-
return throwDefaultError({
|
|
1146
|
-
output,
|
|
1147
|
-
parsedBody,
|
|
1148
|
-
errorCode,
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
};
|
|
1152
|
-
const de_PublishStateMachineVersionCommand = async (output, context) => {
|
|
1153
|
-
if (output.statusCode >= 300) {
|
|
1154
|
-
return de_PublishStateMachineVersionCommandError(output, context);
|
|
1155
|
-
}
|
|
1156
|
-
const data = await parseBody(output.body, context);
|
|
1157
|
-
let contents = {};
|
|
1158
|
-
contents = de_PublishStateMachineVersionOutput(data, context);
|
|
1159
|
-
const response = {
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
...contents,
|
|
1162
|
-
};
|
|
1163
|
-
return response;
|
|
1164
|
-
};
|
|
1165
|
-
exports.de_PublishStateMachineVersionCommand = de_PublishStateMachineVersionCommand;
|
|
1166
|
-
const de_PublishStateMachineVersionCommandError = async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context),
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "ConflictException":
|
|
1174
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
1175
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "InvalidArn":
|
|
1177
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1178
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1179
|
-
case "ServiceQuotaExceededException":
|
|
1180
|
-
case "com.amazonaws.sfn#ServiceQuotaExceededException":
|
|
1181
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "StateMachineDeleting":
|
|
1183
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1184
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
1185
|
-
case "StateMachineDoesNotExist":
|
|
1186
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1187
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
1188
|
-
case "ValidationException":
|
|
1189
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1190
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode,
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
};
|
|
1200
|
-
const de_RedriveExecutionCommand = async (output, context) => {
|
|
1201
|
-
if (output.statusCode >= 300) {
|
|
1202
|
-
return de_RedriveExecutionCommandError(output, context);
|
|
1203
|
-
}
|
|
1204
|
-
const data = await parseBody(output.body, context);
|
|
1205
|
-
let contents = {};
|
|
1206
|
-
contents = de_RedriveExecutionOutput(data, context);
|
|
1207
|
-
const response = {
|
|
1208
|
-
$metadata: deserializeMetadata(output),
|
|
1209
|
-
...contents,
|
|
1210
|
-
};
|
|
1211
|
-
return response;
|
|
1212
|
-
};
|
|
1213
|
-
exports.de_RedriveExecutionCommand = de_RedriveExecutionCommand;
|
|
1214
|
-
const de_RedriveExecutionCommandError = async (output, context) => {
|
|
1215
|
-
const parsedOutput = {
|
|
1216
|
-
...output,
|
|
1217
|
-
body: await parseErrorBody(output.body, context),
|
|
1218
|
-
};
|
|
1219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
-
switch (errorCode) {
|
|
1221
|
-
case "ExecutionDoesNotExist":
|
|
1222
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
1223
|
-
throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
|
|
1224
|
-
case "ExecutionLimitExceeded":
|
|
1225
|
-
case "com.amazonaws.sfn#ExecutionLimitExceeded":
|
|
1226
|
-
throw await de_ExecutionLimitExceededRes(parsedOutput, context);
|
|
1227
|
-
case "ExecutionNotRedrivable":
|
|
1228
|
-
case "com.amazonaws.sfn#ExecutionNotRedrivable":
|
|
1229
|
-
throw await de_ExecutionNotRedrivableRes(parsedOutput, context);
|
|
1230
|
-
case "InvalidArn":
|
|
1231
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1232
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1233
|
-
default:
|
|
1234
|
-
const parsedBody = parsedOutput.body;
|
|
1235
|
-
return throwDefaultError({
|
|
1236
|
-
output,
|
|
1237
|
-
parsedBody,
|
|
1238
|
-
errorCode,
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
const de_SendTaskFailureCommand = async (output, context) => {
|
|
1243
|
-
if (output.statusCode >= 300) {
|
|
1244
|
-
return de_SendTaskFailureCommandError(output, context);
|
|
1245
|
-
}
|
|
1246
|
-
const data = await parseBody(output.body, context);
|
|
1247
|
-
let contents = {};
|
|
1248
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1249
|
-
const response = {
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
...contents,
|
|
1252
|
-
};
|
|
1253
|
-
return response;
|
|
1254
|
-
};
|
|
1255
|
-
exports.de_SendTaskFailureCommand = de_SendTaskFailureCommand;
|
|
1256
|
-
const de_SendTaskFailureCommandError = async (output, context) => {
|
|
1257
|
-
const parsedOutput = {
|
|
1258
|
-
...output,
|
|
1259
|
-
body: await parseErrorBody(output.body, context),
|
|
1260
|
-
};
|
|
1261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
-
switch (errorCode) {
|
|
1263
|
-
case "InvalidToken":
|
|
1264
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
1265
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
1266
|
-
case "TaskDoesNotExist":
|
|
1267
|
-
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
1268
|
-
throw await de_TaskDoesNotExistRes(parsedOutput, context);
|
|
1269
|
-
case "TaskTimedOut":
|
|
1270
|
-
case "com.amazonaws.sfn#TaskTimedOut":
|
|
1271
|
-
throw await de_TaskTimedOutRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode,
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
|
-
const de_SendTaskHeartbeatCommand = async (output, context) => {
|
|
1282
|
-
if (output.statusCode >= 300) {
|
|
1283
|
-
return de_SendTaskHeartbeatCommandError(output, context);
|
|
1284
|
-
}
|
|
1285
|
-
const data = await parseBody(output.body, context);
|
|
1286
|
-
let contents = {};
|
|
1287
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1288
|
-
const response = {
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
...contents,
|
|
1291
|
-
};
|
|
1292
|
-
return response;
|
|
1293
|
-
};
|
|
1294
|
-
exports.de_SendTaskHeartbeatCommand = de_SendTaskHeartbeatCommand;
|
|
1295
|
-
const de_SendTaskHeartbeatCommandError = async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context),
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "InvalidToken":
|
|
1303
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
1304
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
1305
|
-
case "TaskDoesNotExist":
|
|
1306
|
-
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
1307
|
-
throw await de_TaskDoesNotExistRes(parsedOutput, context);
|
|
1308
|
-
case "TaskTimedOut":
|
|
1309
|
-
case "com.amazonaws.sfn#TaskTimedOut":
|
|
1310
|
-
throw await de_TaskTimedOutRes(parsedOutput, context);
|
|
1311
|
-
default:
|
|
1312
|
-
const parsedBody = parsedOutput.body;
|
|
1313
|
-
return throwDefaultError({
|
|
1314
|
-
output,
|
|
1315
|
-
parsedBody,
|
|
1316
|
-
errorCode,
|
|
1317
|
-
});
|
|
1318
|
-
}
|
|
1319
|
-
};
|
|
1320
|
-
const de_SendTaskSuccessCommand = async (output, context) => {
|
|
1321
|
-
if (output.statusCode >= 300) {
|
|
1322
|
-
return de_SendTaskSuccessCommandError(output, context);
|
|
1323
|
-
}
|
|
1324
|
-
const data = await parseBody(output.body, context);
|
|
1325
|
-
let contents = {};
|
|
1326
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1327
|
-
const response = {
|
|
1328
|
-
$metadata: deserializeMetadata(output),
|
|
1329
|
-
...contents,
|
|
1330
|
-
};
|
|
1331
|
-
return response;
|
|
1332
|
-
};
|
|
1333
|
-
exports.de_SendTaskSuccessCommand = de_SendTaskSuccessCommand;
|
|
1334
|
-
const de_SendTaskSuccessCommandError = async (output, context) => {
|
|
1335
|
-
const parsedOutput = {
|
|
1336
|
-
...output,
|
|
1337
|
-
body: await parseErrorBody(output.body, context),
|
|
1338
|
-
};
|
|
1339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "InvalidOutput":
|
|
1342
|
-
case "com.amazonaws.sfn#InvalidOutput":
|
|
1343
|
-
throw await de_InvalidOutputRes(parsedOutput, context);
|
|
1344
|
-
case "InvalidToken":
|
|
1345
|
-
case "com.amazonaws.sfn#InvalidToken":
|
|
1346
|
-
throw await de_InvalidTokenRes(parsedOutput, context);
|
|
1347
|
-
case "TaskDoesNotExist":
|
|
1348
|
-
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
1349
|
-
throw await de_TaskDoesNotExistRes(parsedOutput, context);
|
|
1350
|
-
case "TaskTimedOut":
|
|
1351
|
-
case "com.amazonaws.sfn#TaskTimedOut":
|
|
1352
|
-
throw await de_TaskTimedOutRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode,
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
};
|
|
1362
|
-
const de_StartExecutionCommand = async (output, context) => {
|
|
1363
|
-
if (output.statusCode >= 300) {
|
|
1364
|
-
return de_StartExecutionCommandError(output, context);
|
|
1365
|
-
}
|
|
1366
|
-
const data = await parseBody(output.body, context);
|
|
1367
|
-
let contents = {};
|
|
1368
|
-
contents = de_StartExecutionOutput(data, context);
|
|
1369
|
-
const response = {
|
|
1370
|
-
$metadata: deserializeMetadata(output),
|
|
1371
|
-
...contents,
|
|
1372
|
-
};
|
|
1373
|
-
return response;
|
|
1374
|
-
};
|
|
1375
|
-
exports.de_StartExecutionCommand = de_StartExecutionCommand;
|
|
1376
|
-
const de_StartExecutionCommandError = async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context),
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "ExecutionAlreadyExists":
|
|
1384
|
-
case "com.amazonaws.sfn#ExecutionAlreadyExists":
|
|
1385
|
-
throw await de_ExecutionAlreadyExistsRes(parsedOutput, context);
|
|
1386
|
-
case "ExecutionLimitExceeded":
|
|
1387
|
-
case "com.amazonaws.sfn#ExecutionLimitExceeded":
|
|
1388
|
-
throw await de_ExecutionLimitExceededRes(parsedOutput, context);
|
|
1389
|
-
case "InvalidArn":
|
|
1390
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1391
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1392
|
-
case "InvalidExecutionInput":
|
|
1393
|
-
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
1394
|
-
throw await de_InvalidExecutionInputRes(parsedOutput, context);
|
|
1395
|
-
case "InvalidName":
|
|
1396
|
-
case "com.amazonaws.sfn#InvalidName":
|
|
1397
|
-
throw await de_InvalidNameRes(parsedOutput, context);
|
|
1398
|
-
case "StateMachineDeleting":
|
|
1399
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1400
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
1401
|
-
case "StateMachineDoesNotExist":
|
|
1402
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1403
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
1404
|
-
case "ValidationException":
|
|
1405
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1406
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1407
|
-
default:
|
|
1408
|
-
const parsedBody = parsedOutput.body;
|
|
1409
|
-
return throwDefaultError({
|
|
1410
|
-
output,
|
|
1411
|
-
parsedBody,
|
|
1412
|
-
errorCode,
|
|
1413
|
-
});
|
|
1414
|
-
}
|
|
1415
|
-
};
|
|
1416
|
-
const de_StartSyncExecutionCommand = async (output, context) => {
|
|
1417
|
-
if (output.statusCode >= 300) {
|
|
1418
|
-
return de_StartSyncExecutionCommandError(output, context);
|
|
1419
|
-
}
|
|
1420
|
-
const data = await parseBody(output.body, context);
|
|
1421
|
-
let contents = {};
|
|
1422
|
-
contents = de_StartSyncExecutionOutput(data, context);
|
|
1423
|
-
const response = {
|
|
1424
|
-
$metadata: deserializeMetadata(output),
|
|
1425
|
-
...contents,
|
|
1426
|
-
};
|
|
1427
|
-
return response;
|
|
1428
|
-
};
|
|
1429
|
-
exports.de_StartSyncExecutionCommand = de_StartSyncExecutionCommand;
|
|
1430
|
-
const de_StartSyncExecutionCommandError = async (output, context) => {
|
|
1431
|
-
const parsedOutput = {
|
|
1432
|
-
...output,
|
|
1433
|
-
body: await parseErrorBody(output.body, context),
|
|
1434
|
-
};
|
|
1435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
|
-
switch (errorCode) {
|
|
1437
|
-
case "InvalidArn":
|
|
1438
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1439
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1440
|
-
case "InvalidExecutionInput":
|
|
1441
|
-
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
1442
|
-
throw await de_InvalidExecutionInputRes(parsedOutput, context);
|
|
1443
|
-
case "InvalidName":
|
|
1444
|
-
case "com.amazonaws.sfn#InvalidName":
|
|
1445
|
-
throw await de_InvalidNameRes(parsedOutput, context);
|
|
1446
|
-
case "StateMachineDeleting":
|
|
1447
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1448
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
1449
|
-
case "StateMachineDoesNotExist":
|
|
1450
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1451
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
1452
|
-
case "StateMachineTypeNotSupported":
|
|
1453
|
-
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
1454
|
-
throw await de_StateMachineTypeNotSupportedRes(parsedOutput, context);
|
|
1455
|
-
default:
|
|
1456
|
-
const parsedBody = parsedOutput.body;
|
|
1457
|
-
return throwDefaultError({
|
|
1458
|
-
output,
|
|
1459
|
-
parsedBody,
|
|
1460
|
-
errorCode,
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
};
|
|
1464
|
-
const de_StopExecutionCommand = async (output, context) => {
|
|
1465
|
-
if (output.statusCode >= 300) {
|
|
1466
|
-
return de_StopExecutionCommandError(output, context);
|
|
1467
|
-
}
|
|
1468
|
-
const data = await parseBody(output.body, context);
|
|
1469
|
-
let contents = {};
|
|
1470
|
-
contents = de_StopExecutionOutput(data, context);
|
|
1471
|
-
const response = {
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
...contents,
|
|
1474
|
-
};
|
|
1475
|
-
return response;
|
|
1476
|
-
};
|
|
1477
|
-
exports.de_StopExecutionCommand = de_StopExecutionCommand;
|
|
1478
|
-
const de_StopExecutionCommandError = async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context),
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "ExecutionDoesNotExist":
|
|
1486
|
-
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
1487
|
-
throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
|
|
1488
|
-
case "InvalidArn":
|
|
1489
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1490
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1491
|
-
case "ValidationException":
|
|
1492
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1493
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1494
|
-
default:
|
|
1495
|
-
const parsedBody = parsedOutput.body;
|
|
1496
|
-
return throwDefaultError({
|
|
1497
|
-
output,
|
|
1498
|
-
parsedBody,
|
|
1499
|
-
errorCode,
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
};
|
|
1503
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1504
|
-
if (output.statusCode >= 300) {
|
|
1505
|
-
return de_TagResourceCommandError(output, context);
|
|
1506
|
-
}
|
|
1507
|
-
const data = await parseBody(output.body, context);
|
|
1508
|
-
let contents = {};
|
|
1509
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1510
|
-
const response = {
|
|
1511
|
-
$metadata: deserializeMetadata(output),
|
|
1512
|
-
...contents,
|
|
1513
|
-
};
|
|
1514
|
-
return response;
|
|
1515
|
-
};
|
|
1516
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1517
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1518
|
-
const parsedOutput = {
|
|
1519
|
-
...output,
|
|
1520
|
-
body: await parseErrorBody(output.body, context),
|
|
1521
|
-
};
|
|
1522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
|
-
switch (errorCode) {
|
|
1524
|
-
case "InvalidArn":
|
|
1525
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1526
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1527
|
-
case "ResourceNotFound":
|
|
1528
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1529
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1530
|
-
case "TooManyTags":
|
|
1531
|
-
case "com.amazonaws.sfn#TooManyTags":
|
|
1532
|
-
throw await de_TooManyTagsRes(parsedOutput, context);
|
|
1533
|
-
default:
|
|
1534
|
-
const parsedBody = parsedOutput.body;
|
|
1535
|
-
return throwDefaultError({
|
|
1536
|
-
output,
|
|
1537
|
-
parsedBody,
|
|
1538
|
-
errorCode,
|
|
1539
|
-
});
|
|
1540
|
-
}
|
|
1541
|
-
};
|
|
1542
|
-
const de_TestStateCommand = async (output, context) => {
|
|
1543
|
-
if (output.statusCode >= 300) {
|
|
1544
|
-
return de_TestStateCommandError(output, context);
|
|
1545
|
-
}
|
|
1546
|
-
const data = await parseBody(output.body, context);
|
|
1547
|
-
let contents = {};
|
|
1548
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1549
|
-
const response = {
|
|
1550
|
-
$metadata: deserializeMetadata(output),
|
|
1551
|
-
...contents,
|
|
1552
|
-
};
|
|
1553
|
-
return response;
|
|
1554
|
-
};
|
|
1555
|
-
exports.de_TestStateCommand = de_TestStateCommand;
|
|
1556
|
-
const de_TestStateCommandError = async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context),
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "InvalidArn":
|
|
1564
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1565
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1566
|
-
case "InvalidDefinition":
|
|
1567
|
-
case "com.amazonaws.sfn#InvalidDefinition":
|
|
1568
|
-
throw await de_InvalidDefinitionRes(parsedOutput, context);
|
|
1569
|
-
case "InvalidExecutionInput":
|
|
1570
|
-
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
1571
|
-
throw await de_InvalidExecutionInputRes(parsedOutput, context);
|
|
1572
|
-
case "ValidationException":
|
|
1573
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode,
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode >= 300) {
|
|
1586
|
-
return de_UntagResourceCommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const data = await parseBody(output.body, context);
|
|
1589
|
-
let contents = {};
|
|
1590
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1591
|
-
const response = {
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
...contents,
|
|
1594
|
-
};
|
|
1595
|
-
return response;
|
|
1596
|
-
};
|
|
1597
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1598
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context),
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "InvalidArn":
|
|
1606
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1607
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1608
|
-
case "ResourceNotFound":
|
|
1609
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1610
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1611
|
-
default:
|
|
1612
|
-
const parsedBody = parsedOutput.body;
|
|
1613
|
-
return throwDefaultError({
|
|
1614
|
-
output,
|
|
1615
|
-
parsedBody,
|
|
1616
|
-
errorCode,
|
|
1617
|
-
});
|
|
1618
|
-
}
|
|
1619
|
-
};
|
|
1620
|
-
const de_UpdateMapRunCommand = async (output, context) => {
|
|
1621
|
-
if (output.statusCode >= 300) {
|
|
1622
|
-
return de_UpdateMapRunCommandError(output, context);
|
|
1623
|
-
}
|
|
1624
|
-
const data = await parseBody(output.body, context);
|
|
1625
|
-
let contents = {};
|
|
1626
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1627
|
-
const response = {
|
|
1628
|
-
$metadata: deserializeMetadata(output),
|
|
1629
|
-
...contents,
|
|
1630
|
-
};
|
|
1631
|
-
return response;
|
|
1632
|
-
};
|
|
1633
|
-
exports.de_UpdateMapRunCommand = de_UpdateMapRunCommand;
|
|
1634
|
-
const de_UpdateMapRunCommandError = async (output, context) => {
|
|
1635
|
-
const parsedOutput = {
|
|
1636
|
-
...output,
|
|
1637
|
-
body: await parseErrorBody(output.body, context),
|
|
1638
|
-
};
|
|
1639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
-
switch (errorCode) {
|
|
1641
|
-
case "InvalidArn":
|
|
1642
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1643
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1644
|
-
case "ResourceNotFound":
|
|
1645
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1646
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1647
|
-
case "ValidationException":
|
|
1648
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1650
|
-
default:
|
|
1651
|
-
const parsedBody = parsedOutput.body;
|
|
1652
|
-
return throwDefaultError({
|
|
1653
|
-
output,
|
|
1654
|
-
parsedBody,
|
|
1655
|
-
errorCode,
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
};
|
|
1659
|
-
const de_UpdateStateMachineCommand = async (output, context) => {
|
|
1660
|
-
if (output.statusCode >= 300) {
|
|
1661
|
-
return de_UpdateStateMachineCommandError(output, context);
|
|
1662
|
-
}
|
|
1663
|
-
const data = await parseBody(output.body, context);
|
|
1664
|
-
let contents = {};
|
|
1665
|
-
contents = de_UpdateStateMachineOutput(data, context);
|
|
1666
|
-
const response = {
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
...contents,
|
|
1669
|
-
};
|
|
1670
|
-
return response;
|
|
1671
|
-
};
|
|
1672
|
-
exports.de_UpdateStateMachineCommand = de_UpdateStateMachineCommand;
|
|
1673
|
-
const de_UpdateStateMachineCommandError = async (output, context) => {
|
|
1674
|
-
const parsedOutput = {
|
|
1675
|
-
...output,
|
|
1676
|
-
body: await parseErrorBody(output.body, context),
|
|
1677
|
-
};
|
|
1678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
|
-
switch (errorCode) {
|
|
1680
|
-
case "ConflictException":
|
|
1681
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
1682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "InvalidArn":
|
|
1684
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1685
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1686
|
-
case "InvalidDefinition":
|
|
1687
|
-
case "com.amazonaws.sfn#InvalidDefinition":
|
|
1688
|
-
throw await de_InvalidDefinitionRes(parsedOutput, context);
|
|
1689
|
-
case "InvalidLoggingConfiguration":
|
|
1690
|
-
case "com.amazonaws.sfn#InvalidLoggingConfiguration":
|
|
1691
|
-
throw await de_InvalidLoggingConfigurationRes(parsedOutput, context);
|
|
1692
|
-
case "InvalidTracingConfiguration":
|
|
1693
|
-
case "com.amazonaws.sfn#InvalidTracingConfiguration":
|
|
1694
|
-
throw await de_InvalidTracingConfigurationRes(parsedOutput, context);
|
|
1695
|
-
case "MissingRequiredParameter":
|
|
1696
|
-
case "com.amazonaws.sfn#MissingRequiredParameter":
|
|
1697
|
-
throw await de_MissingRequiredParameterRes(parsedOutput, context);
|
|
1698
|
-
case "ServiceQuotaExceededException":
|
|
1699
|
-
case "com.amazonaws.sfn#ServiceQuotaExceededException":
|
|
1700
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "StateMachineDeleting":
|
|
1702
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1703
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
1704
|
-
case "StateMachineDoesNotExist":
|
|
1705
|
-
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1706
|
-
throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
|
|
1707
|
-
case "ValidationException":
|
|
1708
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
|
-
const de_UpdateStateMachineAliasCommand = async (output, context) => {
|
|
1720
|
-
if (output.statusCode >= 300) {
|
|
1721
|
-
return de_UpdateStateMachineAliasCommandError(output, context);
|
|
1722
|
-
}
|
|
1723
|
-
const data = await parseBody(output.body, context);
|
|
1724
|
-
let contents = {};
|
|
1725
|
-
contents = de_UpdateStateMachineAliasOutput(data, context);
|
|
1726
|
-
const response = {
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
...contents,
|
|
1729
|
-
};
|
|
1730
|
-
return response;
|
|
1731
|
-
};
|
|
1732
|
-
exports.de_UpdateStateMachineAliasCommand = de_UpdateStateMachineAliasCommand;
|
|
1733
|
-
const de_UpdateStateMachineAliasCommandError = async (output, context) => {
|
|
1734
|
-
const parsedOutput = {
|
|
1735
|
-
...output,
|
|
1736
|
-
body: await parseErrorBody(output.body, context),
|
|
1737
|
-
};
|
|
1738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
-
switch (errorCode) {
|
|
1740
|
-
case "ConflictException":
|
|
1741
|
-
case "com.amazonaws.sfn#ConflictException":
|
|
1742
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "InvalidArn":
|
|
1744
|
-
case "com.amazonaws.sfn#InvalidArn":
|
|
1745
|
-
throw await de_InvalidArnRes(parsedOutput, context);
|
|
1746
|
-
case "ResourceNotFound":
|
|
1747
|
-
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1748
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1749
|
-
case "StateMachineDeleting":
|
|
1750
|
-
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1751
|
-
throw await de_StateMachineDeletingRes(parsedOutput, context);
|
|
1752
|
-
case "ValidationException":
|
|
1753
|
-
case "com.amazonaws.sfn#ValidationException":
|
|
1754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1755
|
-
default:
|
|
1756
|
-
const parsedBody = parsedOutput.body;
|
|
1757
|
-
return throwDefaultError({
|
|
1758
|
-
output,
|
|
1759
|
-
parsedBody,
|
|
1760
|
-
errorCode,
|
|
1761
|
-
});
|
|
1762
|
-
}
|
|
1763
|
-
};
|
|
1764
|
-
const de_ActivityDoesNotExistRes = async (parsedOutput, context) => {
|
|
1765
|
-
const body = parsedOutput.body;
|
|
1766
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1767
|
-
const exception = new models_0_1.ActivityDoesNotExist({
|
|
1768
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1769
|
-
...deserialized,
|
|
1770
|
-
});
|
|
1771
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1772
|
-
};
|
|
1773
|
-
const de_ActivityLimitExceededRes = async (parsedOutput, context) => {
|
|
1774
|
-
const body = parsedOutput.body;
|
|
1775
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1776
|
-
const exception = new models_0_1.ActivityLimitExceeded({
|
|
1777
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1778
|
-
...deserialized,
|
|
1779
|
-
});
|
|
1780
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1781
|
-
};
|
|
1782
|
-
const de_ActivityWorkerLimitExceededRes = async (parsedOutput, context) => {
|
|
1783
|
-
const body = parsedOutput.body;
|
|
1784
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1785
|
-
const exception = new models_0_1.ActivityWorkerLimitExceeded({
|
|
1786
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1787
|
-
...deserialized,
|
|
1788
|
-
});
|
|
1789
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1790
|
-
};
|
|
1791
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1792
|
-
const body = parsedOutput.body;
|
|
1793
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1794
|
-
const exception = new models_0_1.ConflictException({
|
|
1795
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1796
|
-
...deserialized,
|
|
1797
|
-
});
|
|
1798
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1799
|
-
};
|
|
1800
|
-
const de_ExecutionAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1801
|
-
const body = parsedOutput.body;
|
|
1802
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1803
|
-
const exception = new models_0_1.ExecutionAlreadyExists({
|
|
1804
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1805
|
-
...deserialized,
|
|
1806
|
-
});
|
|
1807
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1808
|
-
};
|
|
1809
|
-
const de_ExecutionDoesNotExistRes = async (parsedOutput, context) => {
|
|
1810
|
-
const body = parsedOutput.body;
|
|
1811
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1812
|
-
const exception = new models_0_1.ExecutionDoesNotExist({
|
|
1813
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1814
|
-
...deserialized,
|
|
1815
|
-
});
|
|
1816
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1817
|
-
};
|
|
1818
|
-
const de_ExecutionLimitExceededRes = async (parsedOutput, context) => {
|
|
1819
|
-
const body = parsedOutput.body;
|
|
1820
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1821
|
-
const exception = new models_0_1.ExecutionLimitExceeded({
|
|
1822
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1823
|
-
...deserialized,
|
|
1824
|
-
});
|
|
1825
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1826
|
-
};
|
|
1827
|
-
const de_ExecutionNotRedrivableRes = async (parsedOutput, context) => {
|
|
1828
|
-
const body = parsedOutput.body;
|
|
1829
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1830
|
-
const exception = new models_0_1.ExecutionNotRedrivable({
|
|
1831
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1832
|
-
...deserialized,
|
|
1833
|
-
});
|
|
1834
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1835
|
-
};
|
|
1836
|
-
const de_InvalidArnRes = async (parsedOutput, context) => {
|
|
1837
|
-
const body = parsedOutput.body;
|
|
1838
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1839
|
-
const exception = new models_0_1.InvalidArn({
|
|
1840
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1841
|
-
...deserialized,
|
|
1842
|
-
});
|
|
1843
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1844
|
-
};
|
|
1845
|
-
const de_InvalidDefinitionRes = async (parsedOutput, context) => {
|
|
1846
|
-
const body = parsedOutput.body;
|
|
1847
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1848
|
-
const exception = new models_0_1.InvalidDefinition({
|
|
1849
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1850
|
-
...deserialized,
|
|
1851
|
-
});
|
|
1852
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1853
|
-
};
|
|
1854
|
-
const de_InvalidExecutionInputRes = async (parsedOutput, context) => {
|
|
1855
|
-
const body = parsedOutput.body;
|
|
1856
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1857
|
-
const exception = new models_0_1.InvalidExecutionInput({
|
|
1858
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1859
|
-
...deserialized,
|
|
1860
|
-
});
|
|
1861
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1862
|
-
};
|
|
1863
|
-
const de_InvalidLoggingConfigurationRes = async (parsedOutput, context) => {
|
|
1864
|
-
const body = parsedOutput.body;
|
|
1865
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1866
|
-
const exception = new models_0_1.InvalidLoggingConfiguration({
|
|
1867
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1868
|
-
...deserialized,
|
|
1869
|
-
});
|
|
1870
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1871
|
-
};
|
|
1872
|
-
const de_InvalidNameRes = async (parsedOutput, context) => {
|
|
1873
|
-
const body = parsedOutput.body;
|
|
1874
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1875
|
-
const exception = new models_0_1.InvalidName({
|
|
1876
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1877
|
-
...deserialized,
|
|
1878
|
-
});
|
|
1879
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1880
|
-
};
|
|
1881
|
-
const de_InvalidOutputRes = async (parsedOutput, context) => {
|
|
1882
|
-
const body = parsedOutput.body;
|
|
1883
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1884
|
-
const exception = new models_0_1.InvalidOutput({
|
|
1885
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1886
|
-
...deserialized,
|
|
1887
|
-
});
|
|
1888
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1889
|
-
};
|
|
1890
|
-
const de_InvalidTokenRes = async (parsedOutput, context) => {
|
|
1891
|
-
const body = parsedOutput.body;
|
|
1892
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1893
|
-
const exception = new models_0_1.InvalidToken({
|
|
1894
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1895
|
-
...deserialized,
|
|
1896
|
-
});
|
|
1897
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1898
|
-
};
|
|
1899
|
-
const de_InvalidTracingConfigurationRes = async (parsedOutput, context) => {
|
|
1900
|
-
const body = parsedOutput.body;
|
|
1901
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1902
|
-
const exception = new models_0_1.InvalidTracingConfiguration({
|
|
1903
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1904
|
-
...deserialized,
|
|
1905
|
-
});
|
|
1906
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1907
|
-
};
|
|
1908
|
-
const de_MissingRequiredParameterRes = async (parsedOutput, context) => {
|
|
1909
|
-
const body = parsedOutput.body;
|
|
1910
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1911
|
-
const exception = new models_0_1.MissingRequiredParameter({
|
|
1912
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1913
|
-
...deserialized,
|
|
1914
|
-
});
|
|
1915
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1916
|
-
};
|
|
1917
|
-
const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
1918
|
-
const body = parsedOutput.body;
|
|
1919
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1920
|
-
const exception = new models_0_1.ResourceNotFound({
|
|
1921
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1922
|
-
...deserialized,
|
|
1923
|
-
});
|
|
1924
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1925
|
-
};
|
|
1926
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1927
|
-
const body = parsedOutput.body;
|
|
1928
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1929
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1930
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1931
|
-
...deserialized,
|
|
1932
|
-
});
|
|
1933
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1934
|
-
};
|
|
1935
|
-
const de_StateMachineAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1936
|
-
const body = parsedOutput.body;
|
|
1937
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1938
|
-
const exception = new models_0_1.StateMachineAlreadyExists({
|
|
1939
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1940
|
-
...deserialized,
|
|
1941
|
-
});
|
|
1942
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1943
|
-
};
|
|
1944
|
-
const de_StateMachineDeletingRes = async (parsedOutput, context) => {
|
|
1945
|
-
const body = parsedOutput.body;
|
|
1946
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1947
|
-
const exception = new models_0_1.StateMachineDeleting({
|
|
1948
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1949
|
-
...deserialized,
|
|
1950
|
-
});
|
|
1951
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1952
|
-
};
|
|
1953
|
-
const de_StateMachineDoesNotExistRes = async (parsedOutput, context) => {
|
|
1954
|
-
const body = parsedOutput.body;
|
|
1955
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1956
|
-
const exception = new models_0_1.StateMachineDoesNotExist({
|
|
1957
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1958
|
-
...deserialized,
|
|
1959
|
-
});
|
|
1960
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1961
|
-
};
|
|
1962
|
-
const de_StateMachineLimitExceededRes = async (parsedOutput, context) => {
|
|
1963
|
-
const body = parsedOutput.body;
|
|
1964
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1965
|
-
const exception = new models_0_1.StateMachineLimitExceeded({
|
|
1966
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1967
|
-
...deserialized,
|
|
1968
|
-
});
|
|
1969
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1970
|
-
};
|
|
1971
|
-
const de_StateMachineTypeNotSupportedRes = async (parsedOutput, context) => {
|
|
1972
|
-
const body = parsedOutput.body;
|
|
1973
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1974
|
-
const exception = new models_0_1.StateMachineTypeNotSupported({
|
|
1975
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1976
|
-
...deserialized,
|
|
1977
|
-
});
|
|
1978
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1979
|
-
};
|
|
1980
|
-
const de_TaskDoesNotExistRes = async (parsedOutput, context) => {
|
|
1981
|
-
const body = parsedOutput.body;
|
|
1982
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1983
|
-
const exception = new models_0_1.TaskDoesNotExist({
|
|
1984
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1985
|
-
...deserialized,
|
|
1986
|
-
});
|
|
1987
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1988
|
-
};
|
|
1989
|
-
const de_TaskTimedOutRes = async (parsedOutput, context) => {
|
|
1990
|
-
const body = parsedOutput.body;
|
|
1991
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1992
|
-
const exception = new models_0_1.TaskTimedOut({
|
|
1993
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1994
|
-
...deserialized,
|
|
1995
|
-
});
|
|
1996
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1997
|
-
};
|
|
1998
|
-
const de_TooManyTagsRes = async (parsedOutput, context) => {
|
|
1999
|
-
const body = parsedOutput.body;
|
|
2000
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2001
|
-
const exception = new models_0_1.TooManyTags({
|
|
2002
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2003
|
-
...deserialized,
|
|
2004
|
-
});
|
|
2005
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2006
|
-
};
|
|
2007
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2008
|
-
const body = parsedOutput.body;
|
|
2009
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2010
|
-
const exception = new models_0_1.ValidationException({
|
|
2011
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2012
|
-
...deserialized,
|
|
2013
|
-
});
|
|
2014
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2015
|
-
};
|
|
2016
|
-
const se_RedriveExecutionInput = (input, context) => {
|
|
2017
|
-
return (0, smithy_client_1.take)(input, {
|
|
2018
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2019
|
-
executionArn: [],
|
|
2020
|
-
});
|
|
2021
|
-
};
|
|
2022
|
-
const se_UpdateMapRunInput = (input, context) => {
|
|
2023
|
-
return (0, smithy_client_1.take)(input, {
|
|
2024
|
-
mapRunArn: [],
|
|
2025
|
-
maxConcurrency: [],
|
|
2026
|
-
toleratedFailureCount: [],
|
|
2027
|
-
toleratedFailurePercentage: smithy_client_1.serializeFloat,
|
|
2028
|
-
});
|
|
2029
|
-
};
|
|
2030
|
-
const de_ActivityList = (output, context) => {
|
|
2031
|
-
const retVal = (output || [])
|
|
2032
|
-
.filter((e) => e != null)
|
|
2033
|
-
.map((entry) => {
|
|
2034
|
-
return de_ActivityListItem(entry, context);
|
|
2035
|
-
});
|
|
2036
|
-
return retVal;
|
|
2037
|
-
};
|
|
2038
|
-
const de_ActivityListItem = (output, context) => {
|
|
2039
|
-
return (0, smithy_client_1.take)(output, {
|
|
2040
|
-
activityArn: smithy_client_1.expectString,
|
|
2041
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2042
|
-
name: smithy_client_1.expectString,
|
|
2043
|
-
});
|
|
2044
|
-
};
|
|
2045
|
-
const de_CreateActivityOutput = (output, context) => {
|
|
2046
|
-
return (0, smithy_client_1.take)(output, {
|
|
2047
|
-
activityArn: smithy_client_1.expectString,
|
|
2048
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2049
|
-
});
|
|
2050
|
-
};
|
|
2051
|
-
const de_CreateStateMachineAliasOutput = (output, context) => {
|
|
2052
|
-
return (0, smithy_client_1.take)(output, {
|
|
2053
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2054
|
-
stateMachineAliasArn: smithy_client_1.expectString,
|
|
2055
|
-
});
|
|
2056
|
-
};
|
|
2057
|
-
const de_CreateStateMachineOutput = (output, context) => {
|
|
2058
|
-
return (0, smithy_client_1.take)(output, {
|
|
2059
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2060
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2061
|
-
stateMachineVersionArn: smithy_client_1.expectString,
|
|
2062
|
-
});
|
|
2063
|
-
};
|
|
2064
|
-
const de_DescribeActivityOutput = (output, context) => {
|
|
2065
|
-
return (0, smithy_client_1.take)(output, {
|
|
2066
|
-
activityArn: smithy_client_1.expectString,
|
|
2067
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2068
|
-
name: smithy_client_1.expectString,
|
|
2069
|
-
});
|
|
2070
|
-
};
|
|
2071
|
-
const de_DescribeExecutionOutput = (output, context) => {
|
|
2072
|
-
return (0, smithy_client_1.take)(output, {
|
|
2073
|
-
cause: smithy_client_1.expectString,
|
|
2074
|
-
error: smithy_client_1.expectString,
|
|
2075
|
-
executionArn: smithy_client_1.expectString,
|
|
2076
|
-
input: smithy_client_1.expectString,
|
|
2077
|
-
inputDetails: smithy_client_1._json,
|
|
2078
|
-
mapRunArn: smithy_client_1.expectString,
|
|
2079
|
-
name: smithy_client_1.expectString,
|
|
2080
|
-
output: smithy_client_1.expectString,
|
|
2081
|
-
outputDetails: smithy_client_1._json,
|
|
2082
|
-
redriveCount: smithy_client_1.expectInt32,
|
|
2083
|
-
redriveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2084
|
-
redriveStatus: smithy_client_1.expectString,
|
|
2085
|
-
redriveStatusReason: smithy_client_1.expectString,
|
|
2086
|
-
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2087
|
-
stateMachineAliasArn: smithy_client_1.expectString,
|
|
2088
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2089
|
-
stateMachineVersionArn: smithy_client_1.expectString,
|
|
2090
|
-
status: smithy_client_1.expectString,
|
|
2091
|
-
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2092
|
-
traceHeader: smithy_client_1.expectString,
|
|
2093
|
-
});
|
|
2094
|
-
};
|
|
2095
|
-
const de_DescribeMapRunOutput = (output, context) => {
|
|
2096
|
-
return (0, smithy_client_1.take)(output, {
|
|
2097
|
-
executionArn: smithy_client_1.expectString,
|
|
2098
|
-
executionCounts: smithy_client_1._json,
|
|
2099
|
-
itemCounts: smithy_client_1._json,
|
|
2100
|
-
mapRunArn: smithy_client_1.expectString,
|
|
2101
|
-
maxConcurrency: smithy_client_1.expectInt32,
|
|
2102
|
-
redriveCount: smithy_client_1.expectInt32,
|
|
2103
|
-
redriveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2104
|
-
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2105
|
-
status: smithy_client_1.expectString,
|
|
2106
|
-
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2107
|
-
toleratedFailureCount: smithy_client_1.expectLong,
|
|
2108
|
-
toleratedFailurePercentage: smithy_client_1.limitedParseFloat32,
|
|
2109
|
-
});
|
|
2110
|
-
};
|
|
2111
|
-
const de_DescribeStateMachineAliasOutput = (output, context) => {
|
|
2112
|
-
return (0, smithy_client_1.take)(output, {
|
|
2113
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2114
|
-
description: smithy_client_1.expectString,
|
|
2115
|
-
name: smithy_client_1.expectString,
|
|
2116
|
-
routingConfiguration: smithy_client_1._json,
|
|
2117
|
-
stateMachineAliasArn: smithy_client_1.expectString,
|
|
2118
|
-
updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2119
|
-
});
|
|
2120
|
-
};
|
|
2121
|
-
const de_DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
2122
|
-
return (0, smithy_client_1.take)(output, {
|
|
2123
|
-
definition: smithy_client_1.expectString,
|
|
2124
|
-
label: smithy_client_1.expectString,
|
|
2125
|
-
loggingConfiguration: smithy_client_1._json,
|
|
2126
|
-
mapRunArn: smithy_client_1.expectString,
|
|
2127
|
-
name: smithy_client_1.expectString,
|
|
2128
|
-
revisionId: smithy_client_1.expectString,
|
|
2129
|
-
roleArn: smithy_client_1.expectString,
|
|
2130
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2131
|
-
tracingConfiguration: smithy_client_1._json,
|
|
2132
|
-
updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2133
|
-
});
|
|
2134
|
-
};
|
|
2135
|
-
const de_DescribeStateMachineOutput = (output, context) => {
|
|
2136
|
-
return (0, smithy_client_1.take)(output, {
|
|
2137
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2138
|
-
definition: smithy_client_1.expectString,
|
|
2139
|
-
description: smithy_client_1.expectString,
|
|
2140
|
-
label: smithy_client_1.expectString,
|
|
2141
|
-
loggingConfiguration: smithy_client_1._json,
|
|
2142
|
-
name: smithy_client_1.expectString,
|
|
2143
|
-
revisionId: smithy_client_1.expectString,
|
|
2144
|
-
roleArn: smithy_client_1.expectString,
|
|
2145
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2146
|
-
status: smithy_client_1.expectString,
|
|
2147
|
-
tracingConfiguration: smithy_client_1._json,
|
|
2148
|
-
type: smithy_client_1.expectString,
|
|
2149
|
-
});
|
|
2150
|
-
};
|
|
2151
|
-
const de_ExecutionList = (output, context) => {
|
|
2152
|
-
const retVal = (output || [])
|
|
2153
|
-
.filter((e) => e != null)
|
|
2154
|
-
.map((entry) => {
|
|
2155
|
-
return de_ExecutionListItem(entry, context);
|
|
2156
|
-
});
|
|
2157
|
-
return retVal;
|
|
2158
|
-
};
|
|
2159
|
-
const de_ExecutionListItem = (output, context) => {
|
|
2160
|
-
return (0, smithy_client_1.take)(output, {
|
|
2161
|
-
executionArn: smithy_client_1.expectString,
|
|
2162
|
-
itemCount: smithy_client_1.expectInt32,
|
|
2163
|
-
mapRunArn: smithy_client_1.expectString,
|
|
2164
|
-
name: smithy_client_1.expectString,
|
|
2165
|
-
redriveCount: smithy_client_1.expectInt32,
|
|
2166
|
-
redriveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2167
|
-
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2168
|
-
stateMachineAliasArn: smithy_client_1.expectString,
|
|
2169
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2170
|
-
stateMachineVersionArn: smithy_client_1.expectString,
|
|
2171
|
-
status: smithy_client_1.expectString,
|
|
2172
|
-
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2173
|
-
});
|
|
2174
|
-
};
|
|
2175
|
-
const de_GetExecutionHistoryOutput = (output, context) => {
|
|
2176
|
-
return (0, smithy_client_1.take)(output, {
|
|
2177
|
-
events: (_) => de_HistoryEventList(_, context),
|
|
2178
|
-
nextToken: smithy_client_1.expectString,
|
|
2179
|
-
});
|
|
2180
|
-
};
|
|
2181
|
-
const de_HistoryEvent = (output, context) => {
|
|
2182
|
-
return (0, smithy_client_1.take)(output, {
|
|
2183
|
-
activityFailedEventDetails: smithy_client_1._json,
|
|
2184
|
-
activityScheduleFailedEventDetails: smithy_client_1._json,
|
|
2185
|
-
activityScheduledEventDetails: smithy_client_1._json,
|
|
2186
|
-
activityStartedEventDetails: smithy_client_1._json,
|
|
2187
|
-
activitySucceededEventDetails: smithy_client_1._json,
|
|
2188
|
-
activityTimedOutEventDetails: smithy_client_1._json,
|
|
2189
|
-
executionAbortedEventDetails: smithy_client_1._json,
|
|
2190
|
-
executionFailedEventDetails: smithy_client_1._json,
|
|
2191
|
-
executionRedrivenEventDetails: smithy_client_1._json,
|
|
2192
|
-
executionStartedEventDetails: smithy_client_1._json,
|
|
2193
|
-
executionSucceededEventDetails: smithy_client_1._json,
|
|
2194
|
-
executionTimedOutEventDetails: smithy_client_1._json,
|
|
2195
|
-
id: smithy_client_1.expectLong,
|
|
2196
|
-
lambdaFunctionFailedEventDetails: smithy_client_1._json,
|
|
2197
|
-
lambdaFunctionScheduleFailedEventDetails: smithy_client_1._json,
|
|
2198
|
-
lambdaFunctionScheduledEventDetails: smithy_client_1._json,
|
|
2199
|
-
lambdaFunctionStartFailedEventDetails: smithy_client_1._json,
|
|
2200
|
-
lambdaFunctionSucceededEventDetails: smithy_client_1._json,
|
|
2201
|
-
lambdaFunctionTimedOutEventDetails: smithy_client_1._json,
|
|
2202
|
-
mapIterationAbortedEventDetails: smithy_client_1._json,
|
|
2203
|
-
mapIterationFailedEventDetails: smithy_client_1._json,
|
|
2204
|
-
mapIterationStartedEventDetails: smithy_client_1._json,
|
|
2205
|
-
mapIterationSucceededEventDetails: smithy_client_1._json,
|
|
2206
|
-
mapRunFailedEventDetails: smithy_client_1._json,
|
|
2207
|
-
mapRunRedrivenEventDetails: smithy_client_1._json,
|
|
2208
|
-
mapRunStartedEventDetails: smithy_client_1._json,
|
|
2209
|
-
mapStateStartedEventDetails: smithy_client_1._json,
|
|
2210
|
-
previousEventId: smithy_client_1.expectLong,
|
|
2211
|
-
stateEnteredEventDetails: smithy_client_1._json,
|
|
2212
|
-
stateExitedEventDetails: smithy_client_1._json,
|
|
2213
|
-
taskFailedEventDetails: smithy_client_1._json,
|
|
2214
|
-
taskScheduledEventDetails: smithy_client_1._json,
|
|
2215
|
-
taskStartFailedEventDetails: smithy_client_1._json,
|
|
2216
|
-
taskStartedEventDetails: smithy_client_1._json,
|
|
2217
|
-
taskSubmitFailedEventDetails: smithy_client_1._json,
|
|
2218
|
-
taskSubmittedEventDetails: smithy_client_1._json,
|
|
2219
|
-
taskSucceededEventDetails: smithy_client_1._json,
|
|
2220
|
-
taskTimedOutEventDetails: smithy_client_1._json,
|
|
2221
|
-
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2222
|
-
type: smithy_client_1.expectString,
|
|
2223
|
-
});
|
|
2224
|
-
};
|
|
2225
|
-
const de_HistoryEventList = (output, context) => {
|
|
2226
|
-
const retVal = (output || [])
|
|
2227
|
-
.filter((e) => e != null)
|
|
2228
|
-
.map((entry) => {
|
|
2229
|
-
return de_HistoryEvent(entry, context);
|
|
2230
|
-
});
|
|
2231
|
-
return retVal;
|
|
2232
|
-
};
|
|
2233
|
-
const de_ListActivitiesOutput = (output, context) => {
|
|
2234
|
-
return (0, smithy_client_1.take)(output, {
|
|
2235
|
-
activities: (_) => de_ActivityList(_, context),
|
|
2236
|
-
nextToken: smithy_client_1.expectString,
|
|
2237
|
-
});
|
|
2238
|
-
};
|
|
2239
|
-
const de_ListExecutionsOutput = (output, context) => {
|
|
2240
|
-
return (0, smithy_client_1.take)(output, {
|
|
2241
|
-
executions: (_) => de_ExecutionList(_, context),
|
|
2242
|
-
nextToken: smithy_client_1.expectString,
|
|
2243
|
-
});
|
|
2244
|
-
};
|
|
2245
|
-
const de_ListMapRunsOutput = (output, context) => {
|
|
2246
|
-
return (0, smithy_client_1.take)(output, {
|
|
2247
|
-
mapRuns: (_) => de_MapRunList(_, context),
|
|
2248
|
-
nextToken: smithy_client_1.expectString,
|
|
2249
|
-
});
|
|
2250
|
-
};
|
|
2251
|
-
const de_ListStateMachineAliasesOutput = (output, context) => {
|
|
2252
|
-
return (0, smithy_client_1.take)(output, {
|
|
2253
|
-
nextToken: smithy_client_1.expectString,
|
|
2254
|
-
stateMachineAliases: (_) => de_StateMachineAliasList(_, context),
|
|
2255
|
-
});
|
|
2256
|
-
};
|
|
2257
|
-
const de_ListStateMachinesOutput = (output, context) => {
|
|
2258
|
-
return (0, smithy_client_1.take)(output, {
|
|
2259
|
-
nextToken: smithy_client_1.expectString,
|
|
2260
|
-
stateMachines: (_) => de_StateMachineList(_, context),
|
|
2261
|
-
});
|
|
2262
|
-
};
|
|
2263
|
-
const de_ListStateMachineVersionsOutput = (output, context) => {
|
|
2264
|
-
return (0, smithy_client_1.take)(output, {
|
|
2265
|
-
nextToken: smithy_client_1.expectString,
|
|
2266
|
-
stateMachineVersions: (_) => de_StateMachineVersionList(_, context),
|
|
2267
|
-
});
|
|
2268
|
-
};
|
|
2269
|
-
const de_MapRunList = (output, context) => {
|
|
2270
|
-
const retVal = (output || [])
|
|
2271
|
-
.filter((e) => e != null)
|
|
2272
|
-
.map((entry) => {
|
|
2273
|
-
return de_MapRunListItem(entry, context);
|
|
2274
|
-
});
|
|
2275
|
-
return retVal;
|
|
2276
|
-
};
|
|
2277
|
-
const de_MapRunListItem = (output, context) => {
|
|
2278
|
-
return (0, smithy_client_1.take)(output, {
|
|
2279
|
-
executionArn: smithy_client_1.expectString,
|
|
2280
|
-
mapRunArn: smithy_client_1.expectString,
|
|
2281
|
-
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2282
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2283
|
-
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2284
|
-
});
|
|
2285
|
-
};
|
|
2286
|
-
const de_PublishStateMachineVersionOutput = (output, context) => {
|
|
2287
|
-
return (0, smithy_client_1.take)(output, {
|
|
2288
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2289
|
-
stateMachineVersionArn: smithy_client_1.expectString,
|
|
2290
|
-
});
|
|
2291
|
-
};
|
|
2292
|
-
const de_RedriveExecutionOutput = (output, context) => {
|
|
2293
|
-
return (0, smithy_client_1.take)(output, {
|
|
2294
|
-
redriveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2295
|
-
});
|
|
2296
|
-
};
|
|
2297
|
-
const de_StartExecutionOutput = (output, context) => {
|
|
2298
|
-
return (0, smithy_client_1.take)(output, {
|
|
2299
|
-
executionArn: smithy_client_1.expectString,
|
|
2300
|
-
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2301
|
-
});
|
|
2302
|
-
};
|
|
2303
|
-
const de_StartSyncExecutionOutput = (output, context) => {
|
|
2304
|
-
return (0, smithy_client_1.take)(output, {
|
|
2305
|
-
billingDetails: smithy_client_1._json,
|
|
2306
|
-
cause: smithy_client_1.expectString,
|
|
2307
|
-
error: smithy_client_1.expectString,
|
|
2308
|
-
executionArn: smithy_client_1.expectString,
|
|
2309
|
-
input: smithy_client_1.expectString,
|
|
2310
|
-
inputDetails: smithy_client_1._json,
|
|
2311
|
-
name: smithy_client_1.expectString,
|
|
2312
|
-
output: smithy_client_1.expectString,
|
|
2313
|
-
outputDetails: smithy_client_1._json,
|
|
2314
|
-
startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2315
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2316
|
-
status: smithy_client_1.expectString,
|
|
2317
|
-
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2318
|
-
traceHeader: smithy_client_1.expectString,
|
|
2319
|
-
});
|
|
2320
|
-
};
|
|
2321
|
-
const de_StateMachineAliasList = (output, context) => {
|
|
2322
|
-
const retVal = (output || [])
|
|
2323
|
-
.filter((e) => e != null)
|
|
2324
|
-
.map((entry) => {
|
|
2325
|
-
return de_StateMachineAliasListItem(entry, context);
|
|
2326
|
-
});
|
|
2327
|
-
return retVal;
|
|
2328
|
-
};
|
|
2329
|
-
const de_StateMachineAliasListItem = (output, context) => {
|
|
2330
|
-
return (0, smithy_client_1.take)(output, {
|
|
2331
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2332
|
-
stateMachineAliasArn: smithy_client_1.expectString,
|
|
2333
|
-
});
|
|
2334
|
-
};
|
|
2335
|
-
const de_StateMachineList = (output, context) => {
|
|
2336
|
-
const retVal = (output || [])
|
|
2337
|
-
.filter((e) => e != null)
|
|
2338
|
-
.map((entry) => {
|
|
2339
|
-
return de_StateMachineListItem(entry, context);
|
|
2340
|
-
});
|
|
2341
|
-
return retVal;
|
|
2342
|
-
};
|
|
2343
|
-
const de_StateMachineListItem = (output, context) => {
|
|
2344
|
-
return (0, smithy_client_1.take)(output, {
|
|
2345
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2346
|
-
name: smithy_client_1.expectString,
|
|
2347
|
-
stateMachineArn: smithy_client_1.expectString,
|
|
2348
|
-
type: smithy_client_1.expectString,
|
|
2349
|
-
});
|
|
2350
|
-
};
|
|
2351
|
-
const de_StateMachineVersionList = (output, context) => {
|
|
2352
|
-
const retVal = (output || [])
|
|
2353
|
-
.filter((e) => e != null)
|
|
2354
|
-
.map((entry) => {
|
|
2355
|
-
return de_StateMachineVersionListItem(entry, context);
|
|
2356
|
-
});
|
|
2357
|
-
return retVal;
|
|
2358
|
-
};
|
|
2359
|
-
const de_StateMachineVersionListItem = (output, context) => {
|
|
2360
|
-
return (0, smithy_client_1.take)(output, {
|
|
2361
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2362
|
-
stateMachineVersionArn: smithy_client_1.expectString,
|
|
2363
|
-
});
|
|
2364
|
-
};
|
|
2365
|
-
const de_StopExecutionOutput = (output, context) => {
|
|
2366
|
-
return (0, smithy_client_1.take)(output, {
|
|
2367
|
-
stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2368
|
-
});
|
|
2369
|
-
};
|
|
2370
|
-
const de_UpdateStateMachineAliasOutput = (output, context) => {
|
|
2371
|
-
return (0, smithy_client_1.take)(output, {
|
|
2372
|
-
updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2373
|
-
});
|
|
2374
|
-
};
|
|
2375
|
-
const de_UpdateStateMachineOutput = (output, context) => {
|
|
2376
|
-
return (0, smithy_client_1.take)(output, {
|
|
2377
|
-
revisionId: smithy_client_1.expectString,
|
|
2378
|
-
stateMachineVersionArn: smithy_client_1.expectString,
|
|
2379
|
-
updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2380
|
-
});
|
|
2381
|
-
};
|
|
2382
|
-
const deserializeMetadata = (output) => ({
|
|
2383
|
-
httpStatusCode: output.statusCode,
|
|
2384
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2385
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2386
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2387
|
-
});
|
|
2388
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2389
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(SFNServiceException_1.SFNServiceException);
|
|
2390
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2391
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2392
|
-
const contents = {
|
|
2393
|
-
protocol,
|
|
2394
|
-
hostname,
|
|
2395
|
-
port,
|
|
2396
|
-
method: "POST",
|
|
2397
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2398
|
-
headers,
|
|
2399
|
-
};
|
|
2400
|
-
if (resolvedHostname !== undefined) {
|
|
2401
|
-
contents.hostname = resolvedHostname;
|
|
2402
|
-
}
|
|
2403
|
-
if (body !== undefined) {
|
|
2404
|
-
contents.body = body;
|
|
2405
|
-
}
|
|
2406
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
2407
|
-
};
|
|
2408
|
-
function sharedHeaders(operation) {
|
|
2409
|
-
return {
|
|
2410
|
-
"content-type": "application/x-amz-json-1.0",
|
|
2411
|
-
"x-amz-target": `AWSStepFunctions.${operation}`,
|
|
2412
|
-
};
|
|
2413
|
-
}
|
|
2414
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2415
|
-
if (encoded.length) {
|
|
2416
|
-
return JSON.parse(encoded);
|
|
2417
|
-
}
|
|
2418
|
-
return {};
|
|
2419
|
-
});
|
|
2420
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2421
|
-
const value = await parseBody(errorBody, context);
|
|
2422
|
-
value.message = value.message ?? value.Message;
|
|
2423
|
-
return value;
|
|
2424
|
-
};
|
|
2425
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2426
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2427
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2428
|
-
let cleanValue = rawValue;
|
|
2429
|
-
if (typeof cleanValue === "number") {
|
|
2430
|
-
cleanValue = cleanValue.toString();
|
|
2431
|
-
}
|
|
2432
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2433
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2434
|
-
}
|
|
2435
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2436
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2437
|
-
}
|
|
2438
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2439
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2440
|
-
}
|
|
2441
|
-
return cleanValue;
|
|
2442
|
-
};
|
|
2443
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2444
|
-
if (headerKey !== undefined) {
|
|
2445
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2446
|
-
}
|
|
2447
|
-
if (data.code !== undefined) {
|
|
2448
|
-
return sanitizeErrorCode(data.code);
|
|
2449
|
-
}
|
|
2450
|
-
if (data["__type"] !== undefined) {
|
|
2451
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2452
|
-
}
|
|
2453
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|