@aws-sdk/client-migrationhuborchestrator 3.306.0 → 3.310.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/commands/CreateWorkflowCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkflowStepCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkflowStepGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkflowCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkflowStepCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkflowStepGroupCommand.js +2 -2
- package/dist-cjs/commands/GetTemplateCommand.js +2 -2
- package/dist-cjs/commands/GetTemplateStepCommand.js +2 -2
- package/dist-cjs/commands/GetTemplateStepGroupCommand.js +2 -2
- package/dist-cjs/commands/GetWorkflowCommand.js +2 -2
- package/dist-cjs/commands/GetWorkflowStepCommand.js +2 -2
- package/dist-cjs/commands/GetWorkflowStepGroupCommand.js +2 -2
- package/dist-cjs/commands/ListPluginsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTemplateStepGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListTemplateStepsCommand.js +2 -2
- package/dist-cjs/commands/ListTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListWorkflowStepGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListWorkflowStepsCommand.js +2 -2
- package/dist-cjs/commands/ListWorkflowsCommand.js +2 -2
- package/dist-cjs/commands/RetryWorkflowStepCommand.js +2 -2
- package/dist-cjs/commands/StartWorkflowCommand.js +2 -2
- package/dist-cjs/commands/StopWorkflowCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkflowCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkflowStepCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkflowStepGroupCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +432 -442
- package/dist-es/commands/CreateWorkflowCommand.js +3 -3
- package/dist-es/commands/CreateWorkflowStepCommand.js +3 -3
- package/dist-es/commands/CreateWorkflowStepGroupCommand.js +3 -3
- package/dist-es/commands/DeleteWorkflowCommand.js +3 -3
- package/dist-es/commands/DeleteWorkflowStepCommand.js +3 -3
- package/dist-es/commands/DeleteWorkflowStepGroupCommand.js +3 -3
- package/dist-es/commands/GetTemplateCommand.js +3 -3
- package/dist-es/commands/GetTemplateStepCommand.js +3 -3
- package/dist-es/commands/GetTemplateStepGroupCommand.js +3 -3
- package/dist-es/commands/GetWorkflowCommand.js +3 -3
- package/dist-es/commands/GetWorkflowStepCommand.js +3 -3
- package/dist-es/commands/GetWorkflowStepGroupCommand.js +3 -3
- package/dist-es/commands/ListPluginsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTemplateStepGroupsCommand.js +3 -3
- package/dist-es/commands/ListTemplateStepsCommand.js +3 -3
- package/dist-es/commands/ListTemplatesCommand.js +3 -3
- package/dist-es/commands/ListWorkflowStepGroupsCommand.js +3 -3
- package/dist-es/commands/ListWorkflowStepsCommand.js +3 -3
- package/dist-es/commands/ListWorkflowsCommand.js +3 -3
- package/dist-es/commands/RetryWorkflowStepCommand.js +3 -3
- package/dist-es/commands/StartWorkflowCommand.js +3 -3
- package/dist-es/commands/StopWorkflowCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateWorkflowCommand.js +3 -3
- package/dist-es/commands/UpdateWorkflowStepCommand.js +3 -3
- package/dist-es/commands/UpdateWorkflowStepGroupCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +374 -384
- package/dist-types/protocols/Aws_restJson1.d.ts +224 -56
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +56 -56
- package/package.json +35 -35
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_StartWorkflowCommand = exports.de_RetryWorkflowStepCommand = exports.de_ListWorkflowStepsCommand = exports.de_ListWorkflowStepGroupsCommand = exports.de_ListWorkflowsCommand = exports.de_ListTemplateStepsCommand = exports.de_ListTemplateStepGroupsCommand = exports.de_ListTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPluginsCommand = exports.de_GetWorkflowStepGroupCommand = exports.de_GetWorkflowStepCommand = exports.de_GetWorkflowCommand = exports.de_GetTemplateStepGroupCommand = exports.de_GetTemplateStepCommand = exports.de_GetTemplateCommand = exports.de_DeleteWorkflowStepGroupCommand = exports.de_DeleteWorkflowStepCommand = exports.de_DeleteWorkflowCommand = exports.de_CreateWorkflowStepGroupCommand = exports.de_CreateWorkflowStepCommand = exports.de_CreateWorkflowCommand = exports.se_UpdateWorkflowStepGroupCommand = exports.se_UpdateWorkflowStepCommand = exports.se_UpdateWorkflowCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopWorkflowCommand = exports.se_StartWorkflowCommand = exports.se_RetryWorkflowStepCommand = exports.se_ListWorkflowStepsCommand = exports.se_ListWorkflowStepGroupsCommand = exports.se_ListWorkflowsCommand = exports.se_ListTemplateStepsCommand = exports.se_ListTemplateStepGroupsCommand = exports.se_ListTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPluginsCommand = exports.se_GetWorkflowStepGroupCommand = exports.se_GetWorkflowStepCommand = exports.se_GetWorkflowCommand = exports.se_GetTemplateStepGroupCommand = exports.se_GetTemplateStepCommand = exports.se_GetTemplateCommand = exports.se_DeleteWorkflowStepGroupCommand = exports.se_DeleteWorkflowStepCommand = exports.se_DeleteWorkflowCommand = exports.se_CreateWorkflowStepGroupCommand = exports.se_CreateWorkflowStepCommand = exports.se_CreateWorkflowCommand = void 0;
|
|
4
|
+
exports.de_UpdateWorkflowStepGroupCommand = exports.de_UpdateWorkflowStepCommand = exports.de_UpdateWorkflowCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopWorkflowCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const MigrationHubOrchestratorServiceException_1 = require("../models/MigrationHubOrchestratorServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateWorkflowCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -16,12 +16,10 @@ const serializeAws_restJson1CreateWorkflowCommand = async (input, context) => {
|
|
|
16
16
|
body = JSON.stringify({
|
|
17
17
|
...(input.applicationConfigurationId != null && { applicationConfigurationId: input.applicationConfigurationId }),
|
|
18
18
|
...(input.description != null && { description: input.description }),
|
|
19
|
-
...(input.inputParameters != null && {
|
|
20
|
-
inputParameters: serializeAws_restJson1StepInputParameters(input.inputParameters, context),
|
|
21
|
-
}),
|
|
19
|
+
...(input.inputParameters != null && { inputParameters: se_StepInputParameters(input.inputParameters, context) }),
|
|
22
20
|
...(input.name != null && { name: input.name }),
|
|
23
|
-
...(input.stepTargets != null && { stepTargets:
|
|
24
|
-
...(input.tags != null && { tags:
|
|
21
|
+
...(input.stepTargets != null && { stepTargets: se_StringList(input.stepTargets, context) }),
|
|
22
|
+
...(input.tags != null && { tags: se_StringMap(input.tags, context) }),
|
|
25
23
|
...(input.templateId != null && { templateId: input.templateId }),
|
|
26
24
|
});
|
|
27
25
|
return new protocol_http_1.HttpRequest({
|
|
@@ -34,8 +32,8 @@ const serializeAws_restJson1CreateWorkflowCommand = async (input, context) => {
|
|
|
34
32
|
body,
|
|
35
33
|
});
|
|
36
34
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
35
|
+
exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
|
|
36
|
+
const se_CreateWorkflowStepCommand = async (input, context) => {
|
|
39
37
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
40
38
|
const headers = {
|
|
41
39
|
"content-type": "application/json",
|
|
@@ -45,15 +43,15 @@ const serializeAws_restJson1CreateWorkflowStepCommand = async (input, context) =
|
|
|
45
43
|
body = JSON.stringify({
|
|
46
44
|
...(input.description != null && { description: input.description }),
|
|
47
45
|
...(input.name != null && { name: input.name }),
|
|
48
|
-
...(input.next != null && { next:
|
|
49
|
-
...(input.outputs != null && { outputs:
|
|
50
|
-
...(input.previous != null && { previous:
|
|
46
|
+
...(input.next != null && { next: se_StringList(input.next, context) }),
|
|
47
|
+
...(input.outputs != null && { outputs: se_WorkflowStepOutputList(input.outputs, context) }),
|
|
48
|
+
...(input.previous != null && { previous: se_StringList(input.previous, context) }),
|
|
51
49
|
...(input.stepActionType != null && { stepActionType: input.stepActionType }),
|
|
52
50
|
...(input.stepGroupId != null && { stepGroupId: input.stepGroupId }),
|
|
53
|
-
...(input.stepTarget != null && { stepTarget:
|
|
51
|
+
...(input.stepTarget != null && { stepTarget: se_StringList(input.stepTarget, context) }),
|
|
54
52
|
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
55
53
|
...(input.workflowStepAutomationConfiguration != null && {
|
|
56
|
-
workflowStepAutomationConfiguration:
|
|
54
|
+
workflowStepAutomationConfiguration: se_WorkflowStepAutomationConfiguration(input.workflowStepAutomationConfiguration, context),
|
|
57
55
|
}),
|
|
58
56
|
});
|
|
59
57
|
return new protocol_http_1.HttpRequest({
|
|
@@ -66,8 +64,8 @@ const serializeAws_restJson1CreateWorkflowStepCommand = async (input, context) =
|
|
|
66
64
|
body,
|
|
67
65
|
});
|
|
68
66
|
};
|
|
69
|
-
exports.
|
|
70
|
-
const
|
|
67
|
+
exports.se_CreateWorkflowStepCommand = se_CreateWorkflowStepCommand;
|
|
68
|
+
const se_CreateWorkflowStepGroupCommand = async (input, context) => {
|
|
71
69
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
72
70
|
const headers = {
|
|
73
71
|
"content-type": "application/json",
|
|
@@ -77,8 +75,8 @@ const serializeAws_restJson1CreateWorkflowStepGroupCommand = async (input, conte
|
|
|
77
75
|
body = JSON.stringify({
|
|
78
76
|
...(input.description != null && { description: input.description }),
|
|
79
77
|
...(input.name != null && { name: input.name }),
|
|
80
|
-
...(input.next != null && { next:
|
|
81
|
-
...(input.previous != null && { previous:
|
|
78
|
+
...(input.next != null && { next: se_StringList(input.next, context) }),
|
|
79
|
+
...(input.previous != null && { previous: se_StringList(input.previous, context) }),
|
|
82
80
|
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
83
81
|
});
|
|
84
82
|
return new protocol_http_1.HttpRequest({
|
|
@@ -91,8 +89,8 @@ const serializeAws_restJson1CreateWorkflowStepGroupCommand = async (input, conte
|
|
|
91
89
|
body,
|
|
92
90
|
});
|
|
93
91
|
};
|
|
94
|
-
exports.
|
|
95
|
-
const
|
|
92
|
+
exports.se_CreateWorkflowStepGroupCommand = se_CreateWorkflowStepGroupCommand;
|
|
93
|
+
const se_DeleteWorkflowCommand = async (input, context) => {
|
|
96
94
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
97
95
|
const headers = {};
|
|
98
96
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
|
|
@@ -108,8 +106,8 @@ const serializeAws_restJson1DeleteWorkflowCommand = async (input, context) => {
|
|
|
108
106
|
body,
|
|
109
107
|
});
|
|
110
108
|
};
|
|
111
|
-
exports.
|
|
112
|
-
const
|
|
109
|
+
exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
|
|
110
|
+
const se_DeleteWorkflowStepCommand = async (input, context) => {
|
|
113
111
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
114
112
|
const headers = {};
|
|
115
113
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
|
|
@@ -130,8 +128,8 @@ const serializeAws_restJson1DeleteWorkflowStepCommand = async (input, context) =
|
|
|
130
128
|
body,
|
|
131
129
|
});
|
|
132
130
|
};
|
|
133
|
-
exports.
|
|
134
|
-
const
|
|
131
|
+
exports.se_DeleteWorkflowStepCommand = se_DeleteWorkflowStepCommand;
|
|
132
|
+
const se_DeleteWorkflowStepGroupCommand = async (input, context) => {
|
|
135
133
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
134
|
const headers = {};
|
|
137
135
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
|
|
@@ -151,8 +149,8 @@ const serializeAws_restJson1DeleteWorkflowStepGroupCommand = async (input, conte
|
|
|
151
149
|
body,
|
|
152
150
|
});
|
|
153
151
|
};
|
|
154
|
-
exports.
|
|
155
|
-
const
|
|
152
|
+
exports.se_DeleteWorkflowStepGroupCommand = se_DeleteWorkflowStepGroupCommand;
|
|
153
|
+
const se_GetTemplateCommand = async (input, context) => {
|
|
156
154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
155
|
const headers = {};
|
|
158
156
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplate/{id}";
|
|
@@ -168,8 +166,8 @@ const serializeAws_restJson1GetTemplateCommand = async (input, context) => {
|
|
|
168
166
|
body,
|
|
169
167
|
});
|
|
170
168
|
};
|
|
171
|
-
exports.
|
|
172
|
-
const
|
|
169
|
+
exports.se_GetTemplateCommand = se_GetTemplateCommand;
|
|
170
|
+
const se_GetTemplateStepCommand = async (input, context) => {
|
|
173
171
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
172
|
const headers = {};
|
|
175
173
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestep/{id}";
|
|
@@ -190,8 +188,8 @@ const serializeAws_restJson1GetTemplateStepCommand = async (input, context) => {
|
|
|
190
188
|
body,
|
|
191
189
|
});
|
|
192
190
|
};
|
|
193
|
-
exports.
|
|
194
|
-
const
|
|
191
|
+
exports.se_GetTemplateStepCommand = se_GetTemplateStepCommand;
|
|
192
|
+
const se_GetTemplateStepGroupCommand = async (input, context) => {
|
|
195
193
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
194
|
const headers = {};
|
|
197
195
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{templateId}/stepgroups/{id}";
|
|
@@ -208,8 +206,8 @@ const serializeAws_restJson1GetTemplateStepGroupCommand = async (input, context)
|
|
|
208
206
|
body,
|
|
209
207
|
});
|
|
210
208
|
};
|
|
211
|
-
exports.
|
|
212
|
-
const
|
|
209
|
+
exports.se_GetTemplateStepGroupCommand = se_GetTemplateStepGroupCommand;
|
|
210
|
+
const se_GetWorkflowCommand = async (input, context) => {
|
|
213
211
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
212
|
const headers = {};
|
|
215
213
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
|
|
@@ -225,8 +223,8 @@ const serializeAws_restJson1GetWorkflowCommand = async (input, context) => {
|
|
|
225
223
|
body,
|
|
226
224
|
});
|
|
227
225
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
226
|
+
exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
|
|
227
|
+
const se_GetWorkflowStepCommand = async (input, context) => {
|
|
230
228
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
231
229
|
const headers = {};
|
|
232
230
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
|
|
@@ -247,8 +245,8 @@ const serializeAws_restJson1GetWorkflowStepCommand = async (input, context) => {
|
|
|
247
245
|
body,
|
|
248
246
|
});
|
|
249
247
|
};
|
|
250
|
-
exports.
|
|
251
|
-
const
|
|
248
|
+
exports.se_GetWorkflowStepCommand = se_GetWorkflowStepCommand;
|
|
249
|
+
const se_GetWorkflowStepGroupCommand = async (input, context) => {
|
|
252
250
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
251
|
const headers = {};
|
|
254
252
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
|
|
@@ -268,8 +266,8 @@ const serializeAws_restJson1GetWorkflowStepGroupCommand = async (input, context)
|
|
|
268
266
|
body,
|
|
269
267
|
});
|
|
270
268
|
};
|
|
271
|
-
exports.
|
|
272
|
-
const
|
|
269
|
+
exports.se_GetWorkflowStepGroupCommand = se_GetWorkflowStepGroupCommand;
|
|
270
|
+
const se_ListPluginsCommand = async (input, context) => {
|
|
273
271
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
272
|
const headers = {};
|
|
275
273
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/plugins";
|
|
@@ -289,8 +287,8 @@ const serializeAws_restJson1ListPluginsCommand = async (input, context) => {
|
|
|
289
287
|
body,
|
|
290
288
|
});
|
|
291
289
|
};
|
|
292
|
-
exports.
|
|
293
|
-
const
|
|
290
|
+
exports.se_ListPluginsCommand = se_ListPluginsCommand;
|
|
291
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
294
292
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
295
293
|
const headers = {};
|
|
296
294
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -306,8 +304,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
306
304
|
body,
|
|
307
305
|
});
|
|
308
306
|
};
|
|
309
|
-
exports.
|
|
310
|
-
const
|
|
307
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
308
|
+
const se_ListTemplatesCommand = async (input, context) => {
|
|
311
309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
310
|
const headers = {};
|
|
313
311
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplates";
|
|
@@ -328,8 +326,8 @@ const serializeAws_restJson1ListTemplatesCommand = async (input, context) => {
|
|
|
328
326
|
body,
|
|
329
327
|
});
|
|
330
328
|
};
|
|
331
|
-
exports.
|
|
332
|
-
const
|
|
329
|
+
exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
|
|
330
|
+
const se_ListTemplateStepGroupsCommand = async (input, context) => {
|
|
333
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
332
|
const headers = {};
|
|
335
333
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestepgroups/{templateId}";
|
|
@@ -350,8 +348,8 @@ const serializeAws_restJson1ListTemplateStepGroupsCommand = async (input, contex
|
|
|
350
348
|
body,
|
|
351
349
|
});
|
|
352
350
|
};
|
|
353
|
-
exports.
|
|
354
|
-
const
|
|
351
|
+
exports.se_ListTemplateStepGroupsCommand = se_ListTemplateStepGroupsCommand;
|
|
352
|
+
const se_ListTemplateStepsCommand = async (input, context) => {
|
|
355
353
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
356
354
|
const headers = {};
|
|
357
355
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatesteps";
|
|
@@ -373,8 +371,8 @@ const serializeAws_restJson1ListTemplateStepsCommand = async (input, context) =>
|
|
|
373
371
|
body,
|
|
374
372
|
});
|
|
375
373
|
};
|
|
376
|
-
exports.
|
|
377
|
-
const
|
|
374
|
+
exports.se_ListTemplateStepsCommand = se_ListTemplateStepsCommand;
|
|
375
|
+
const se_ListWorkflowsCommand = async (input, context) => {
|
|
378
376
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
377
|
const headers = {};
|
|
380
378
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflows";
|
|
@@ -398,8 +396,8 @@ const serializeAws_restJson1ListWorkflowsCommand = async (input, context) => {
|
|
|
398
396
|
body,
|
|
399
397
|
});
|
|
400
398
|
};
|
|
401
|
-
exports.
|
|
402
|
-
const
|
|
399
|
+
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
400
|
+
const se_ListWorkflowStepGroupsCommand = async (input, context) => {
|
|
403
401
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
404
402
|
const headers = {};
|
|
405
403
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroups";
|
|
@@ -420,8 +418,8 @@ const serializeAws_restJson1ListWorkflowStepGroupsCommand = async (input, contex
|
|
|
420
418
|
body,
|
|
421
419
|
});
|
|
422
420
|
};
|
|
423
|
-
exports.
|
|
424
|
-
const
|
|
421
|
+
exports.se_ListWorkflowStepGroupsCommand = se_ListWorkflowStepGroupsCommand;
|
|
422
|
+
const se_ListWorkflowStepsCommand = async (input, context) => {
|
|
425
423
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
426
424
|
const headers = {};
|
|
427
425
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -444,8 +442,8 @@ const serializeAws_restJson1ListWorkflowStepsCommand = async (input, context) =>
|
|
|
444
442
|
body,
|
|
445
443
|
});
|
|
446
444
|
};
|
|
447
|
-
exports.
|
|
448
|
-
const
|
|
445
|
+
exports.se_ListWorkflowStepsCommand = se_ListWorkflowStepsCommand;
|
|
446
|
+
const se_RetryWorkflowStepCommand = async (input, context) => {
|
|
449
447
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
450
448
|
const headers = {};
|
|
451
449
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/retryworkflowstep/{id}";
|
|
@@ -466,8 +464,8 @@ const serializeAws_restJson1RetryWorkflowStepCommand = async (input, context) =>
|
|
|
466
464
|
body,
|
|
467
465
|
});
|
|
468
466
|
};
|
|
469
|
-
exports.
|
|
470
|
-
const
|
|
467
|
+
exports.se_RetryWorkflowStepCommand = se_RetryWorkflowStepCommand;
|
|
468
|
+
const se_StartWorkflowCommand = async (input, context) => {
|
|
471
469
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
472
470
|
const headers = {};
|
|
473
471
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/start";
|
|
@@ -483,8 +481,8 @@ const serializeAws_restJson1StartWorkflowCommand = async (input, context) => {
|
|
|
483
481
|
body,
|
|
484
482
|
});
|
|
485
483
|
};
|
|
486
|
-
exports.
|
|
487
|
-
const
|
|
484
|
+
exports.se_StartWorkflowCommand = se_StartWorkflowCommand;
|
|
485
|
+
const se_StopWorkflowCommand = async (input, context) => {
|
|
488
486
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
489
487
|
const headers = {};
|
|
490
488
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/stop";
|
|
@@ -500,8 +498,8 @@ const serializeAws_restJson1StopWorkflowCommand = async (input, context) => {
|
|
|
500
498
|
body,
|
|
501
499
|
});
|
|
502
500
|
};
|
|
503
|
-
exports.
|
|
504
|
-
const
|
|
501
|
+
exports.se_StopWorkflowCommand = se_StopWorkflowCommand;
|
|
502
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
505
503
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
506
504
|
const headers = {
|
|
507
505
|
"content-type": "application/json",
|
|
@@ -510,7 +508,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
510
508
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
511
509
|
let body;
|
|
512
510
|
body = JSON.stringify({
|
|
513
|
-
...(input.tags != null && { tags:
|
|
511
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
514
512
|
});
|
|
515
513
|
return new protocol_http_1.HttpRequest({
|
|
516
514
|
protocol,
|
|
@@ -522,8 +520,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
522
520
|
body,
|
|
523
521
|
});
|
|
524
522
|
};
|
|
525
|
-
exports.
|
|
526
|
-
const
|
|
523
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
524
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
527
525
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
528
526
|
const headers = {};
|
|
529
527
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -546,8 +544,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
546
544
|
body,
|
|
547
545
|
});
|
|
548
546
|
};
|
|
549
|
-
exports.
|
|
550
|
-
const
|
|
547
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
548
|
+
const se_UpdateWorkflowCommand = async (input, context) => {
|
|
551
549
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
552
550
|
const headers = {
|
|
553
551
|
"content-type": "application/json",
|
|
@@ -557,11 +555,9 @@ const serializeAws_restJson1UpdateWorkflowCommand = async (input, context) => {
|
|
|
557
555
|
let body;
|
|
558
556
|
body = JSON.stringify({
|
|
559
557
|
...(input.description != null && { description: input.description }),
|
|
560
|
-
...(input.inputParameters != null && {
|
|
561
|
-
inputParameters: serializeAws_restJson1StepInputParameters(input.inputParameters, context),
|
|
562
|
-
}),
|
|
558
|
+
...(input.inputParameters != null && { inputParameters: se_StepInputParameters(input.inputParameters, context) }),
|
|
563
559
|
...(input.name != null && { name: input.name }),
|
|
564
|
-
...(input.stepTargets != null && { stepTargets:
|
|
560
|
+
...(input.stepTargets != null && { stepTargets: se_StringList(input.stepTargets, context) }),
|
|
565
561
|
});
|
|
566
562
|
return new protocol_http_1.HttpRequest({
|
|
567
563
|
protocol,
|
|
@@ -573,8 +569,8 @@ const serializeAws_restJson1UpdateWorkflowCommand = async (input, context) => {
|
|
|
573
569
|
body,
|
|
574
570
|
});
|
|
575
571
|
};
|
|
576
|
-
exports.
|
|
577
|
-
const
|
|
572
|
+
exports.se_UpdateWorkflowCommand = se_UpdateWorkflowCommand;
|
|
573
|
+
const se_UpdateWorkflowStepCommand = async (input, context) => {
|
|
578
574
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
579
575
|
const headers = {
|
|
580
576
|
"content-type": "application/json",
|
|
@@ -585,16 +581,16 @@ const serializeAws_restJson1UpdateWorkflowStepCommand = async (input, context) =
|
|
|
585
581
|
body = JSON.stringify({
|
|
586
582
|
...(input.description != null && { description: input.description }),
|
|
587
583
|
...(input.name != null && { name: input.name }),
|
|
588
|
-
...(input.next != null && { next:
|
|
589
|
-
...(input.outputs != null && { outputs:
|
|
590
|
-
...(input.previous != null && { previous:
|
|
584
|
+
...(input.next != null && { next: se_StringList(input.next, context) }),
|
|
585
|
+
...(input.outputs != null && { outputs: se_WorkflowStepOutputList(input.outputs, context) }),
|
|
586
|
+
...(input.previous != null && { previous: se_StringList(input.previous, context) }),
|
|
591
587
|
...(input.status != null && { status: input.status }),
|
|
592
588
|
...(input.stepActionType != null && { stepActionType: input.stepActionType }),
|
|
593
589
|
...(input.stepGroupId != null && { stepGroupId: input.stepGroupId }),
|
|
594
|
-
...(input.stepTarget != null && { stepTarget:
|
|
590
|
+
...(input.stepTarget != null && { stepTarget: se_StringList(input.stepTarget, context) }),
|
|
595
591
|
...(input.workflowId != null && { workflowId: input.workflowId }),
|
|
596
592
|
...(input.workflowStepAutomationConfiguration != null && {
|
|
597
|
-
workflowStepAutomationConfiguration:
|
|
593
|
+
workflowStepAutomationConfiguration: se_WorkflowStepAutomationConfiguration(input.workflowStepAutomationConfiguration, context),
|
|
598
594
|
}),
|
|
599
595
|
});
|
|
600
596
|
return new protocol_http_1.HttpRequest({
|
|
@@ -607,8 +603,8 @@ const serializeAws_restJson1UpdateWorkflowStepCommand = async (input, context) =
|
|
|
607
603
|
body,
|
|
608
604
|
});
|
|
609
605
|
};
|
|
610
|
-
exports.
|
|
611
|
-
const
|
|
606
|
+
exports.se_UpdateWorkflowStepCommand = se_UpdateWorkflowStepCommand;
|
|
607
|
+
const se_UpdateWorkflowStepGroupCommand = async (input, context) => {
|
|
612
608
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
613
609
|
const headers = {
|
|
614
610
|
"content-type": "application/json",
|
|
@@ -622,8 +618,8 @@ const serializeAws_restJson1UpdateWorkflowStepGroupCommand = async (input, conte
|
|
|
622
618
|
body = JSON.stringify({
|
|
623
619
|
...(input.description != null && { description: input.description }),
|
|
624
620
|
...(input.name != null && { name: input.name }),
|
|
625
|
-
...(input.next != null && { next:
|
|
626
|
-
...(input.previous != null && { previous:
|
|
621
|
+
...(input.next != null && { next: se_StringList(input.next, context) }),
|
|
622
|
+
...(input.previous != null && { previous: se_StringList(input.previous, context) }),
|
|
627
623
|
});
|
|
628
624
|
return new protocol_http_1.HttpRequest({
|
|
629
625
|
protocol,
|
|
@@ -636,10 +632,10 @@ const serializeAws_restJson1UpdateWorkflowStepGroupCommand = async (input, conte
|
|
|
636
632
|
body,
|
|
637
633
|
});
|
|
638
634
|
};
|
|
639
|
-
exports.
|
|
640
|
-
const
|
|
635
|
+
exports.se_UpdateWorkflowStepGroupCommand = se_UpdateWorkflowStepGroupCommand;
|
|
636
|
+
const de_CreateWorkflowCommand = async (output, context) => {
|
|
641
637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
-
return
|
|
638
|
+
return de_CreateWorkflowCommandError(output, context);
|
|
643
639
|
}
|
|
644
640
|
const contents = map({
|
|
645
641
|
$metadata: deserializeMetadata(output),
|
|
@@ -667,21 +663,21 @@ const deserializeAws_restJson1CreateWorkflowCommand = async (output, context) =>
|
|
|
667
663
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
668
664
|
}
|
|
669
665
|
if (data.stepTargets != null) {
|
|
670
|
-
contents.stepTargets =
|
|
666
|
+
contents.stepTargets = de_StringList(data.stepTargets, context);
|
|
671
667
|
}
|
|
672
668
|
if (data.tags != null) {
|
|
673
|
-
contents.tags =
|
|
669
|
+
contents.tags = de_StringMap(data.tags, context);
|
|
674
670
|
}
|
|
675
671
|
if (data.templateId != null) {
|
|
676
672
|
contents.templateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
677
673
|
}
|
|
678
674
|
if (data.workflowInputs != null) {
|
|
679
|
-
contents.workflowInputs =
|
|
675
|
+
contents.workflowInputs = de_StepInputParameters(data.workflowInputs, context);
|
|
680
676
|
}
|
|
681
677
|
return contents;
|
|
682
678
|
};
|
|
683
|
-
exports.
|
|
684
|
-
const
|
|
679
|
+
exports.de_CreateWorkflowCommand = de_CreateWorkflowCommand;
|
|
680
|
+
const de_CreateWorkflowCommandError = async (output, context) => {
|
|
685
681
|
const parsedOutput = {
|
|
686
682
|
...output,
|
|
687
683
|
body: await parseErrorBody(output.body, context),
|
|
@@ -690,16 +686,16 @@ const deserializeAws_restJson1CreateWorkflowCommandError = async (output, contex
|
|
|
690
686
|
switch (errorCode) {
|
|
691
687
|
case "AccessDeniedException":
|
|
692
688
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
693
|
-
throw await
|
|
689
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
694
690
|
case "InternalServerException":
|
|
695
691
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
696
|
-
throw await
|
|
692
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
697
693
|
case "ThrottlingException":
|
|
698
694
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
699
|
-
throw await
|
|
695
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
696
|
case "ValidationException":
|
|
701
697
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
702
|
-
throw await
|
|
698
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
699
|
default:
|
|
704
700
|
const parsedBody = parsedOutput.body;
|
|
705
701
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -710,9 +706,9 @@ const deserializeAws_restJson1CreateWorkflowCommandError = async (output, contex
|
|
|
710
706
|
});
|
|
711
707
|
}
|
|
712
708
|
};
|
|
713
|
-
const
|
|
709
|
+
const de_CreateWorkflowStepCommand = async (output, context) => {
|
|
714
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return
|
|
711
|
+
return de_CreateWorkflowStepCommandError(output, context);
|
|
716
712
|
}
|
|
717
713
|
const contents = map({
|
|
718
714
|
$metadata: deserializeMetadata(output),
|
|
@@ -732,8 +728,8 @@ const deserializeAws_restJson1CreateWorkflowStepCommand = async (output, context
|
|
|
732
728
|
}
|
|
733
729
|
return contents;
|
|
734
730
|
};
|
|
735
|
-
exports.
|
|
736
|
-
const
|
|
731
|
+
exports.de_CreateWorkflowStepCommand = de_CreateWorkflowStepCommand;
|
|
732
|
+
const de_CreateWorkflowStepCommandError = async (output, context) => {
|
|
737
733
|
const parsedOutput = {
|
|
738
734
|
...output,
|
|
739
735
|
body: await parseErrorBody(output.body, context),
|
|
@@ -742,16 +738,16 @@ const deserializeAws_restJson1CreateWorkflowStepCommandError = async (output, co
|
|
|
742
738
|
switch (errorCode) {
|
|
743
739
|
case "AccessDeniedException":
|
|
744
740
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
745
|
-
throw await
|
|
741
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
746
742
|
case "InternalServerException":
|
|
747
743
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
748
|
-
throw await
|
|
744
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
749
745
|
case "ThrottlingException":
|
|
750
746
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
751
|
-
throw await
|
|
747
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
752
748
|
case "ValidationException":
|
|
753
749
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
754
|
-
throw await
|
|
750
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
755
751
|
default:
|
|
756
752
|
const parsedBody = parsedOutput.body;
|
|
757
753
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -762,9 +758,9 @@ const deserializeAws_restJson1CreateWorkflowStepCommandError = async (output, co
|
|
|
762
758
|
});
|
|
763
759
|
}
|
|
764
760
|
};
|
|
765
|
-
const
|
|
761
|
+
const de_CreateWorkflowStepGroupCommand = async (output, context) => {
|
|
766
762
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return
|
|
763
|
+
return de_CreateWorkflowStepGroupCommandError(output, context);
|
|
768
764
|
}
|
|
769
765
|
const contents = map({
|
|
770
766
|
$metadata: deserializeMetadata(output),
|
|
@@ -783,21 +779,21 @@ const deserializeAws_restJson1CreateWorkflowStepGroupCommand = async (output, co
|
|
|
783
779
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
784
780
|
}
|
|
785
781
|
if (data.next != null) {
|
|
786
|
-
contents.next =
|
|
782
|
+
contents.next = de_StringList(data.next, context);
|
|
787
783
|
}
|
|
788
784
|
if (data.previous != null) {
|
|
789
|
-
contents.previous =
|
|
785
|
+
contents.previous = de_StringList(data.previous, context);
|
|
790
786
|
}
|
|
791
787
|
if (data.tools != null) {
|
|
792
|
-
contents.tools =
|
|
788
|
+
contents.tools = de_ToolsList(data.tools, context);
|
|
793
789
|
}
|
|
794
790
|
if (data.workflowId != null) {
|
|
795
791
|
contents.workflowId = (0, smithy_client_1.expectString)(data.workflowId);
|
|
796
792
|
}
|
|
797
793
|
return contents;
|
|
798
794
|
};
|
|
799
|
-
exports.
|
|
800
|
-
const
|
|
795
|
+
exports.de_CreateWorkflowStepGroupCommand = de_CreateWorkflowStepGroupCommand;
|
|
796
|
+
const de_CreateWorkflowStepGroupCommandError = async (output, context) => {
|
|
801
797
|
const parsedOutput = {
|
|
802
798
|
...output,
|
|
803
799
|
body: await parseErrorBody(output.body, context),
|
|
@@ -806,16 +802,16 @@ const deserializeAws_restJson1CreateWorkflowStepGroupCommandError = async (outpu
|
|
|
806
802
|
switch (errorCode) {
|
|
807
803
|
case "AccessDeniedException":
|
|
808
804
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
809
|
-
throw await
|
|
805
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
810
806
|
case "InternalServerException":
|
|
811
807
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
812
|
-
throw await
|
|
808
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
813
809
|
case "ThrottlingException":
|
|
814
810
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
815
|
-
throw await
|
|
811
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
816
812
|
case "ValidationException":
|
|
817
813
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
818
|
-
throw await
|
|
814
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
815
|
default:
|
|
820
816
|
const parsedBody = parsedOutput.body;
|
|
821
817
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -826,9 +822,9 @@ const deserializeAws_restJson1CreateWorkflowStepGroupCommandError = async (outpu
|
|
|
826
822
|
});
|
|
827
823
|
}
|
|
828
824
|
};
|
|
829
|
-
const
|
|
825
|
+
const de_DeleteWorkflowCommand = async (output, context) => {
|
|
830
826
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
831
|
-
return
|
|
827
|
+
return de_DeleteWorkflowCommandError(output, context);
|
|
832
828
|
}
|
|
833
829
|
const contents = map({
|
|
834
830
|
$metadata: deserializeMetadata(output),
|
|
@@ -845,8 +841,8 @@ const deserializeAws_restJson1DeleteWorkflowCommand = async (output, context) =>
|
|
|
845
841
|
}
|
|
846
842
|
return contents;
|
|
847
843
|
};
|
|
848
|
-
exports.
|
|
849
|
-
const
|
|
844
|
+
exports.de_DeleteWorkflowCommand = de_DeleteWorkflowCommand;
|
|
845
|
+
const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
850
846
|
const parsedOutput = {
|
|
851
847
|
...output,
|
|
852
848
|
body: await parseErrorBody(output.body, context),
|
|
@@ -855,19 +851,19 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
|
|
|
855
851
|
switch (errorCode) {
|
|
856
852
|
case "AccessDeniedException":
|
|
857
853
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
858
|
-
throw await
|
|
854
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
855
|
case "InternalServerException":
|
|
860
856
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
861
|
-
throw await
|
|
857
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
862
858
|
case "ResourceNotFoundException":
|
|
863
859
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
864
|
-
throw await
|
|
860
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
865
861
|
case "ThrottlingException":
|
|
866
862
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
867
|
-
throw await
|
|
863
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
868
864
|
case "ValidationException":
|
|
869
865
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
870
|
-
throw await
|
|
866
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
871
867
|
default:
|
|
872
868
|
const parsedBody = parsedOutput.body;
|
|
873
869
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -878,9 +874,9 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
|
|
|
878
874
|
});
|
|
879
875
|
}
|
|
880
876
|
};
|
|
881
|
-
const
|
|
877
|
+
const de_DeleteWorkflowStepCommand = async (output, context) => {
|
|
882
878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
883
|
-
return
|
|
879
|
+
return de_DeleteWorkflowStepCommandError(output, context);
|
|
884
880
|
}
|
|
885
881
|
const contents = map({
|
|
886
882
|
$metadata: deserializeMetadata(output),
|
|
@@ -888,8 +884,8 @@ const deserializeAws_restJson1DeleteWorkflowStepCommand = async (output, context
|
|
|
888
884
|
await collectBody(output.body, context);
|
|
889
885
|
return contents;
|
|
890
886
|
};
|
|
891
|
-
exports.
|
|
892
|
-
const
|
|
887
|
+
exports.de_DeleteWorkflowStepCommand = de_DeleteWorkflowStepCommand;
|
|
888
|
+
const de_DeleteWorkflowStepCommandError = async (output, context) => {
|
|
893
889
|
const parsedOutput = {
|
|
894
890
|
...output,
|
|
895
891
|
body: await parseErrorBody(output.body, context),
|
|
@@ -898,19 +894,19 @@ const deserializeAws_restJson1DeleteWorkflowStepCommandError = async (output, co
|
|
|
898
894
|
switch (errorCode) {
|
|
899
895
|
case "AccessDeniedException":
|
|
900
896
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
901
|
-
throw await
|
|
897
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
902
898
|
case "InternalServerException":
|
|
903
899
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
904
|
-
throw await
|
|
900
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
905
901
|
case "ResourceNotFoundException":
|
|
906
902
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
907
|
-
throw await
|
|
903
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
908
904
|
case "ThrottlingException":
|
|
909
905
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
910
|
-
throw await
|
|
906
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
911
907
|
case "ValidationException":
|
|
912
908
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
913
|
-
throw await
|
|
909
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
910
|
default:
|
|
915
911
|
const parsedBody = parsedOutput.body;
|
|
916
912
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -921,9 +917,9 @@ const deserializeAws_restJson1DeleteWorkflowStepCommandError = async (output, co
|
|
|
921
917
|
});
|
|
922
918
|
}
|
|
923
919
|
};
|
|
924
|
-
const
|
|
920
|
+
const de_DeleteWorkflowStepGroupCommand = async (output, context) => {
|
|
925
921
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
926
|
-
return
|
|
922
|
+
return de_DeleteWorkflowStepGroupCommandError(output, context);
|
|
927
923
|
}
|
|
928
924
|
const contents = map({
|
|
929
925
|
$metadata: deserializeMetadata(output),
|
|
@@ -931,8 +927,8 @@ const deserializeAws_restJson1DeleteWorkflowStepGroupCommand = async (output, co
|
|
|
931
927
|
await collectBody(output.body, context);
|
|
932
928
|
return contents;
|
|
933
929
|
};
|
|
934
|
-
exports.
|
|
935
|
-
const
|
|
930
|
+
exports.de_DeleteWorkflowStepGroupCommand = de_DeleteWorkflowStepGroupCommand;
|
|
931
|
+
const de_DeleteWorkflowStepGroupCommandError = async (output, context) => {
|
|
936
932
|
const parsedOutput = {
|
|
937
933
|
...output,
|
|
938
934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -941,19 +937,19 @@ const deserializeAws_restJson1DeleteWorkflowStepGroupCommandError = async (outpu
|
|
|
941
937
|
switch (errorCode) {
|
|
942
938
|
case "AccessDeniedException":
|
|
943
939
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
944
|
-
throw await
|
|
940
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
945
941
|
case "InternalServerException":
|
|
946
942
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
947
|
-
throw await
|
|
943
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
948
944
|
case "ResourceNotFoundException":
|
|
949
945
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
950
|
-
throw await
|
|
946
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
951
947
|
case "ThrottlingException":
|
|
952
948
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
953
|
-
throw await
|
|
949
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
954
950
|
case "ValidationException":
|
|
955
951
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
956
|
-
throw await
|
|
952
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
957
953
|
default:
|
|
958
954
|
const parsedBody = parsedOutput.body;
|
|
959
955
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -964,9 +960,9 @@ const deserializeAws_restJson1DeleteWorkflowStepGroupCommandError = async (outpu
|
|
|
964
960
|
});
|
|
965
961
|
}
|
|
966
962
|
};
|
|
967
|
-
const
|
|
963
|
+
const de_GetTemplateCommand = async (output, context) => {
|
|
968
964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
969
|
-
return
|
|
965
|
+
return de_GetTemplateCommandError(output, context);
|
|
970
966
|
}
|
|
971
967
|
const contents = map({
|
|
972
968
|
$metadata: deserializeMetadata(output),
|
|
@@ -982,7 +978,7 @@ const deserializeAws_restJson1GetTemplateCommand = async (output, context) => {
|
|
|
982
978
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
983
979
|
}
|
|
984
980
|
if (data.inputs != null) {
|
|
985
|
-
contents.inputs =
|
|
981
|
+
contents.inputs = de_TemplateInputList(data.inputs, context);
|
|
986
982
|
}
|
|
987
983
|
if (data.name != null) {
|
|
988
984
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
@@ -991,12 +987,12 @@ const deserializeAws_restJson1GetTemplateCommand = async (output, context) => {
|
|
|
991
987
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
992
988
|
}
|
|
993
989
|
if (data.tools != null) {
|
|
994
|
-
contents.tools =
|
|
990
|
+
contents.tools = de_ToolsList(data.tools, context);
|
|
995
991
|
}
|
|
996
992
|
return contents;
|
|
997
993
|
};
|
|
998
|
-
exports.
|
|
999
|
-
const
|
|
994
|
+
exports.de_GetTemplateCommand = de_GetTemplateCommand;
|
|
995
|
+
const de_GetTemplateCommandError = async (output, context) => {
|
|
1000
996
|
const parsedOutput = {
|
|
1001
997
|
...output,
|
|
1002
998
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1005,16 +1001,16 @@ const deserializeAws_restJson1GetTemplateCommandError = async (output, context)
|
|
|
1005
1001
|
switch (errorCode) {
|
|
1006
1002
|
case "AccessDeniedException":
|
|
1007
1003
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1008
|
-
throw await
|
|
1004
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1009
1005
|
case "InternalServerException":
|
|
1010
1006
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1011
|
-
throw await
|
|
1007
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1012
1008
|
case "ResourceNotFoundException":
|
|
1013
1009
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1014
|
-
throw await
|
|
1010
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1015
1011
|
case "ThrottlingException":
|
|
1016
1012
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1017
|
-
throw await
|
|
1013
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1018
1014
|
default:
|
|
1019
1015
|
const parsedBody = parsedOutput.body;
|
|
1020
1016
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1025,9 +1021,9 @@ const deserializeAws_restJson1GetTemplateCommandError = async (output, context)
|
|
|
1025
1021
|
});
|
|
1026
1022
|
}
|
|
1027
1023
|
};
|
|
1028
|
-
const
|
|
1024
|
+
const de_GetTemplateStepCommand = async (output, context) => {
|
|
1029
1025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
1026
|
+
return de_GetTemplateStepCommandError(output, context);
|
|
1031
1027
|
}
|
|
1032
1028
|
const contents = map({
|
|
1033
1029
|
$metadata: deserializeMetadata(output),
|
|
@@ -1046,19 +1042,19 @@ const deserializeAws_restJson1GetTemplateStepCommand = async (output, context) =
|
|
|
1046
1042
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1047
1043
|
}
|
|
1048
1044
|
if (data.next != null) {
|
|
1049
|
-
contents.next =
|
|
1045
|
+
contents.next = de_StringList(data.next, context);
|
|
1050
1046
|
}
|
|
1051
1047
|
if (data.outputs != null) {
|
|
1052
|
-
contents.outputs =
|
|
1048
|
+
contents.outputs = de_StepOutputList(data.outputs, context);
|
|
1053
1049
|
}
|
|
1054
1050
|
if (data.previous != null) {
|
|
1055
|
-
contents.previous =
|
|
1051
|
+
contents.previous = de_StringList(data.previous, context);
|
|
1056
1052
|
}
|
|
1057
1053
|
if (data.stepActionType != null) {
|
|
1058
1054
|
contents.stepActionType = (0, smithy_client_1.expectString)(data.stepActionType);
|
|
1059
1055
|
}
|
|
1060
1056
|
if (data.stepAutomationConfiguration != null) {
|
|
1061
|
-
contents.stepAutomationConfiguration =
|
|
1057
|
+
contents.stepAutomationConfiguration = de_StepAutomationConfiguration(data.stepAutomationConfiguration, context);
|
|
1062
1058
|
}
|
|
1063
1059
|
if (data.stepGroupId != null) {
|
|
1064
1060
|
contents.stepGroupId = (0, smithy_client_1.expectString)(data.stepGroupId);
|
|
@@ -1068,8 +1064,8 @@ const deserializeAws_restJson1GetTemplateStepCommand = async (output, context) =
|
|
|
1068
1064
|
}
|
|
1069
1065
|
return contents;
|
|
1070
1066
|
};
|
|
1071
|
-
exports.
|
|
1072
|
-
const
|
|
1067
|
+
exports.de_GetTemplateStepCommand = de_GetTemplateStepCommand;
|
|
1068
|
+
const de_GetTemplateStepCommandError = async (output, context) => {
|
|
1073
1069
|
const parsedOutput = {
|
|
1074
1070
|
...output,
|
|
1075
1071
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1078,19 +1074,19 @@ const deserializeAws_restJson1GetTemplateStepCommandError = async (output, conte
|
|
|
1078
1074
|
switch (errorCode) {
|
|
1079
1075
|
case "AccessDeniedException":
|
|
1080
1076
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1081
|
-
throw await
|
|
1077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1082
1078
|
case "InternalServerException":
|
|
1083
1079
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1084
|
-
throw await
|
|
1080
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1085
1081
|
case "ResourceNotFoundException":
|
|
1086
1082
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1087
|
-
throw await
|
|
1083
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1088
1084
|
case "ThrottlingException":
|
|
1089
1085
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1090
|
-
throw await
|
|
1086
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1091
1087
|
case "ValidationException":
|
|
1092
1088
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1093
|
-
throw await
|
|
1089
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1094
1090
|
default:
|
|
1095
1091
|
const parsedBody = parsedOutput.body;
|
|
1096
1092
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1101,9 +1097,9 @@ const deserializeAws_restJson1GetTemplateStepCommandError = async (output, conte
|
|
|
1101
1097
|
});
|
|
1102
1098
|
}
|
|
1103
1099
|
};
|
|
1104
|
-
const
|
|
1100
|
+
const de_GetTemplateStepGroupCommand = async (output, context) => {
|
|
1105
1101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
|
-
return
|
|
1102
|
+
return de_GetTemplateStepGroupCommandError(output, context);
|
|
1107
1103
|
}
|
|
1108
1104
|
const contents = map({
|
|
1109
1105
|
$metadata: deserializeMetadata(output),
|
|
@@ -1125,10 +1121,10 @@ const deserializeAws_restJson1GetTemplateStepGroupCommand = async (output, conte
|
|
|
1125
1121
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1126
1122
|
}
|
|
1127
1123
|
if (data.next != null) {
|
|
1128
|
-
contents.next =
|
|
1124
|
+
contents.next = de_StringList(data.next, context);
|
|
1129
1125
|
}
|
|
1130
1126
|
if (data.previous != null) {
|
|
1131
|
-
contents.previous =
|
|
1127
|
+
contents.previous = de_StringList(data.previous, context);
|
|
1132
1128
|
}
|
|
1133
1129
|
if (data.status != null) {
|
|
1134
1130
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
@@ -1137,12 +1133,12 @@ const deserializeAws_restJson1GetTemplateStepGroupCommand = async (output, conte
|
|
|
1137
1133
|
contents.templateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
1138
1134
|
}
|
|
1139
1135
|
if (data.tools != null) {
|
|
1140
|
-
contents.tools =
|
|
1136
|
+
contents.tools = de_ToolsList(data.tools, context);
|
|
1141
1137
|
}
|
|
1142
1138
|
return contents;
|
|
1143
1139
|
};
|
|
1144
|
-
exports.
|
|
1145
|
-
const
|
|
1140
|
+
exports.de_GetTemplateStepGroupCommand = de_GetTemplateStepGroupCommand;
|
|
1141
|
+
const de_GetTemplateStepGroupCommandError = async (output, context) => {
|
|
1146
1142
|
const parsedOutput = {
|
|
1147
1143
|
...output,
|
|
1148
1144
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1151,19 +1147,19 @@ const deserializeAws_restJson1GetTemplateStepGroupCommandError = async (output,
|
|
|
1151
1147
|
switch (errorCode) {
|
|
1152
1148
|
case "AccessDeniedException":
|
|
1153
1149
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1154
|
-
throw await
|
|
1150
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1155
1151
|
case "InternalServerException":
|
|
1156
1152
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1157
|
-
throw await
|
|
1153
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1158
1154
|
case "ResourceNotFoundException":
|
|
1159
1155
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1160
|
-
throw await
|
|
1156
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1161
1157
|
case "ThrottlingException":
|
|
1162
1158
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1163
|
-
throw await
|
|
1159
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1164
1160
|
case "ValidationException":
|
|
1165
1161
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1166
|
-
throw await
|
|
1162
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1167
1163
|
default:
|
|
1168
1164
|
const parsedBody = parsedOutput.body;
|
|
1169
1165
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1174,9 +1170,9 @@ const deserializeAws_restJson1GetTemplateStepGroupCommandError = async (output,
|
|
|
1174
1170
|
});
|
|
1175
1171
|
}
|
|
1176
1172
|
};
|
|
1177
|
-
const
|
|
1173
|
+
const de_GetWorkflowCommand = async (output, context) => {
|
|
1178
1174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1179
|
-
return
|
|
1175
|
+
return de_GetWorkflowCommandError(output, context);
|
|
1180
1176
|
}
|
|
1181
1177
|
const contents = map({
|
|
1182
1178
|
$metadata: deserializeMetadata(output),
|
|
@@ -1225,13 +1221,13 @@ const deserializeAws_restJson1GetWorkflowCommand = async (output, context) => {
|
|
|
1225
1221
|
contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
|
|
1226
1222
|
}
|
|
1227
1223
|
if (data.tags != null) {
|
|
1228
|
-
contents.tags =
|
|
1224
|
+
contents.tags = de_StringMap(data.tags, context);
|
|
1229
1225
|
}
|
|
1230
1226
|
if (data.templateId != null) {
|
|
1231
1227
|
contents.templateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
1232
1228
|
}
|
|
1233
1229
|
if (data.tools != null) {
|
|
1234
|
-
contents.tools =
|
|
1230
|
+
contents.tools = de_ToolsList(data.tools, context);
|
|
1235
1231
|
}
|
|
1236
1232
|
if (data.totalSteps != null) {
|
|
1237
1233
|
contents.totalSteps = (0, smithy_client_1.expectInt32)(data.totalSteps);
|
|
@@ -1240,12 +1236,12 @@ const deserializeAws_restJson1GetWorkflowCommand = async (output, context) => {
|
|
|
1240
1236
|
contents.workflowBucket = (0, smithy_client_1.expectString)(data.workflowBucket);
|
|
1241
1237
|
}
|
|
1242
1238
|
if (data.workflowInputs != null) {
|
|
1243
|
-
contents.workflowInputs =
|
|
1239
|
+
contents.workflowInputs = de_StepInputParameters(data.workflowInputs, context);
|
|
1244
1240
|
}
|
|
1245
1241
|
return contents;
|
|
1246
1242
|
};
|
|
1247
|
-
exports.
|
|
1248
|
-
const
|
|
1243
|
+
exports.de_GetWorkflowCommand = de_GetWorkflowCommand;
|
|
1244
|
+
const de_GetWorkflowCommandError = async (output, context) => {
|
|
1249
1245
|
const parsedOutput = {
|
|
1250
1246
|
...output,
|
|
1251
1247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1254,19 +1250,19 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
|
|
|
1254
1250
|
switch (errorCode) {
|
|
1255
1251
|
case "AccessDeniedException":
|
|
1256
1252
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1257
|
-
throw await
|
|
1253
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1258
1254
|
case "InternalServerException":
|
|
1259
1255
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1260
|
-
throw await
|
|
1256
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1261
1257
|
case "ResourceNotFoundException":
|
|
1262
1258
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1263
|
-
throw await
|
|
1259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1264
1260
|
case "ThrottlingException":
|
|
1265
1261
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1266
|
-
throw await
|
|
1262
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1267
1263
|
case "ValidationException":
|
|
1268
1264
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1269
|
-
throw await
|
|
1265
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
1266
|
default:
|
|
1271
1267
|
const parsedBody = parsedOutput.body;
|
|
1272
1268
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1277,9 +1273,9 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
|
|
|
1277
1273
|
});
|
|
1278
1274
|
}
|
|
1279
1275
|
};
|
|
1280
|
-
const
|
|
1276
|
+
const de_GetWorkflowStepCommand = async (output, context) => {
|
|
1281
1277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
1278
|
+
return de_GetWorkflowStepCommandError(output, context);
|
|
1283
1279
|
}
|
|
1284
1280
|
const contents = map({
|
|
1285
1281
|
$metadata: deserializeMetadata(output),
|
|
@@ -1301,7 +1297,7 @@ const deserializeAws_restJson1GetWorkflowStepCommand = async (output, context) =
|
|
|
1301
1297
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1302
1298
|
}
|
|
1303
1299
|
if (data.next != null) {
|
|
1304
|
-
contents.next =
|
|
1300
|
+
contents.next = de_StringList(data.next, context);
|
|
1305
1301
|
}
|
|
1306
1302
|
if (data.noOfSrvCompleted != null) {
|
|
1307
1303
|
contents.noOfSrvCompleted = (0, smithy_client_1.expectInt32)(data.noOfSrvCompleted);
|
|
@@ -1310,13 +1306,13 @@ const deserializeAws_restJson1GetWorkflowStepCommand = async (output, context) =
|
|
|
1310
1306
|
contents.noOfSrvFailed = (0, smithy_client_1.expectInt32)(data.noOfSrvFailed);
|
|
1311
1307
|
}
|
|
1312
1308
|
if (data.outputs != null) {
|
|
1313
|
-
contents.outputs =
|
|
1309
|
+
contents.outputs = de_WorkflowStepOutputList(data.outputs, context);
|
|
1314
1310
|
}
|
|
1315
1311
|
if (data.owner != null) {
|
|
1316
1312
|
contents.owner = (0, smithy_client_1.expectString)(data.owner);
|
|
1317
1313
|
}
|
|
1318
1314
|
if (data.previous != null) {
|
|
1319
|
-
contents.previous =
|
|
1315
|
+
contents.previous = de_StringList(data.previous, context);
|
|
1320
1316
|
}
|
|
1321
1317
|
if (data.scriptOutputLocation != null) {
|
|
1322
1318
|
contents.scriptOutputLocation = (0, smithy_client_1.expectString)(data.scriptOutputLocation);
|
|
@@ -1337,7 +1333,7 @@ const deserializeAws_restJson1GetWorkflowStepCommand = async (output, context) =
|
|
|
1337
1333
|
contents.stepId = (0, smithy_client_1.expectString)(data.stepId);
|
|
1338
1334
|
}
|
|
1339
1335
|
if (data.stepTarget != null) {
|
|
1340
|
-
contents.stepTarget =
|
|
1336
|
+
contents.stepTarget = de_StringList(data.stepTarget, context);
|
|
1341
1337
|
}
|
|
1342
1338
|
if (data.totalNoOfSrv != null) {
|
|
1343
1339
|
contents.totalNoOfSrv = (0, smithy_client_1.expectInt32)(data.totalNoOfSrv);
|
|
@@ -1346,12 +1342,12 @@ const deserializeAws_restJson1GetWorkflowStepCommand = async (output, context) =
|
|
|
1346
1342
|
contents.workflowId = (0, smithy_client_1.expectString)(data.workflowId);
|
|
1347
1343
|
}
|
|
1348
1344
|
if (data.workflowStepAutomationConfiguration != null) {
|
|
1349
|
-
contents.workflowStepAutomationConfiguration =
|
|
1345
|
+
contents.workflowStepAutomationConfiguration = de_WorkflowStepAutomationConfiguration(data.workflowStepAutomationConfiguration, context);
|
|
1350
1346
|
}
|
|
1351
1347
|
return contents;
|
|
1352
1348
|
};
|
|
1353
|
-
exports.
|
|
1354
|
-
const
|
|
1349
|
+
exports.de_GetWorkflowStepCommand = de_GetWorkflowStepCommand;
|
|
1350
|
+
const de_GetWorkflowStepCommandError = async (output, context) => {
|
|
1355
1351
|
const parsedOutput = {
|
|
1356
1352
|
...output,
|
|
1357
1353
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1360,16 +1356,16 @@ const deserializeAws_restJson1GetWorkflowStepCommandError = async (output, conte
|
|
|
1360
1356
|
switch (errorCode) {
|
|
1361
1357
|
case "AccessDeniedException":
|
|
1362
1358
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1363
|
-
throw await
|
|
1359
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1364
1360
|
case "InternalServerException":
|
|
1365
1361
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1366
|
-
throw await
|
|
1362
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1367
1363
|
case "ResourceNotFoundException":
|
|
1368
1364
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1369
|
-
throw await
|
|
1365
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1370
1366
|
case "ThrottlingException":
|
|
1371
1367
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1372
|
-
throw await
|
|
1368
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1373
1369
|
default:
|
|
1374
1370
|
const parsedBody = parsedOutput.body;
|
|
1375
1371
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1380,9 +1376,9 @@ const deserializeAws_restJson1GetWorkflowStepCommandError = async (output, conte
|
|
|
1380
1376
|
});
|
|
1381
1377
|
}
|
|
1382
1378
|
};
|
|
1383
|
-
const
|
|
1379
|
+
const de_GetWorkflowStepGroupCommand = async (output, context) => {
|
|
1384
1380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1385
|
-
return
|
|
1381
|
+
return de_GetWorkflowStepGroupCommandError(output, context);
|
|
1386
1382
|
}
|
|
1387
1383
|
const contents = map({
|
|
1388
1384
|
$metadata: deserializeMetadata(output),
|
|
@@ -1407,27 +1403,27 @@ const deserializeAws_restJson1GetWorkflowStepGroupCommand = async (output, conte
|
|
|
1407
1403
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1408
1404
|
}
|
|
1409
1405
|
if (data.next != null) {
|
|
1410
|
-
contents.next =
|
|
1406
|
+
contents.next = de_StringList(data.next, context);
|
|
1411
1407
|
}
|
|
1412
1408
|
if (data.owner != null) {
|
|
1413
1409
|
contents.owner = (0, smithy_client_1.expectString)(data.owner);
|
|
1414
1410
|
}
|
|
1415
1411
|
if (data.previous != null) {
|
|
1416
|
-
contents.previous =
|
|
1412
|
+
contents.previous = de_StringList(data.previous, context);
|
|
1417
1413
|
}
|
|
1418
1414
|
if (data.status != null) {
|
|
1419
1415
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1420
1416
|
}
|
|
1421
1417
|
if (data.tools != null) {
|
|
1422
|
-
contents.tools =
|
|
1418
|
+
contents.tools = de_ToolsList(data.tools, context);
|
|
1423
1419
|
}
|
|
1424
1420
|
if (data.workflowId != null) {
|
|
1425
1421
|
contents.workflowId = (0, smithy_client_1.expectString)(data.workflowId);
|
|
1426
1422
|
}
|
|
1427
1423
|
return contents;
|
|
1428
1424
|
};
|
|
1429
|
-
exports.
|
|
1430
|
-
const
|
|
1425
|
+
exports.de_GetWorkflowStepGroupCommand = de_GetWorkflowStepGroupCommand;
|
|
1426
|
+
const de_GetWorkflowStepGroupCommandError = async (output, context) => {
|
|
1431
1427
|
const parsedOutput = {
|
|
1432
1428
|
...output,
|
|
1433
1429
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1436,19 +1432,19 @@ const deserializeAws_restJson1GetWorkflowStepGroupCommandError = async (output,
|
|
|
1436
1432
|
switch (errorCode) {
|
|
1437
1433
|
case "AccessDeniedException":
|
|
1438
1434
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1439
|
-
throw await
|
|
1435
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1440
1436
|
case "InternalServerException":
|
|
1441
1437
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1442
|
-
throw await
|
|
1438
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1443
1439
|
case "ResourceNotFoundException":
|
|
1444
1440
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1445
|
-
throw await
|
|
1441
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1446
1442
|
case "ThrottlingException":
|
|
1447
1443
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1448
|
-
throw await
|
|
1444
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1449
1445
|
case "ValidationException":
|
|
1450
1446
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1451
|
-
throw await
|
|
1447
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1452
1448
|
default:
|
|
1453
1449
|
const parsedBody = parsedOutput.body;
|
|
1454
1450
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1459,9 +1455,9 @@ const deserializeAws_restJson1GetWorkflowStepGroupCommandError = async (output,
|
|
|
1459
1455
|
});
|
|
1460
1456
|
}
|
|
1461
1457
|
};
|
|
1462
|
-
const
|
|
1458
|
+
const de_ListPluginsCommand = async (output, context) => {
|
|
1463
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1464
|
-
return
|
|
1460
|
+
return de_ListPluginsCommandError(output, context);
|
|
1465
1461
|
}
|
|
1466
1462
|
const contents = map({
|
|
1467
1463
|
$metadata: deserializeMetadata(output),
|
|
@@ -1471,12 +1467,12 @@ const deserializeAws_restJson1ListPluginsCommand = async (output, context) => {
|
|
|
1471
1467
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1472
1468
|
}
|
|
1473
1469
|
if (data.plugins != null) {
|
|
1474
|
-
contents.plugins =
|
|
1470
|
+
contents.plugins = de_PluginSummaries(data.plugins, context);
|
|
1475
1471
|
}
|
|
1476
1472
|
return contents;
|
|
1477
1473
|
};
|
|
1478
|
-
exports.
|
|
1479
|
-
const
|
|
1474
|
+
exports.de_ListPluginsCommand = de_ListPluginsCommand;
|
|
1475
|
+
const de_ListPluginsCommandError = async (output, context) => {
|
|
1480
1476
|
const parsedOutput = {
|
|
1481
1477
|
...output,
|
|
1482
1478
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1485,13 +1481,13 @@ const deserializeAws_restJson1ListPluginsCommandError = async (output, context)
|
|
|
1485
1481
|
switch (errorCode) {
|
|
1486
1482
|
case "AccessDeniedException":
|
|
1487
1483
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1488
|
-
throw await
|
|
1484
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1489
1485
|
case "InternalServerException":
|
|
1490
1486
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1491
|
-
throw await
|
|
1487
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1492
1488
|
case "ValidationException":
|
|
1493
1489
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1494
|
-
throw await
|
|
1490
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1495
1491
|
default:
|
|
1496
1492
|
const parsedBody = parsedOutput.body;
|
|
1497
1493
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1502,21 +1498,21 @@ const deserializeAws_restJson1ListPluginsCommandError = async (output, context)
|
|
|
1502
1498
|
});
|
|
1503
1499
|
}
|
|
1504
1500
|
};
|
|
1505
|
-
const
|
|
1501
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1506
1502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1507
|
-
return
|
|
1503
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1508
1504
|
}
|
|
1509
1505
|
const contents = map({
|
|
1510
1506
|
$metadata: deserializeMetadata(output),
|
|
1511
1507
|
});
|
|
1512
1508
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1513
1509
|
if (data.tags != null) {
|
|
1514
|
-
contents.tags =
|
|
1510
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1515
1511
|
}
|
|
1516
1512
|
return contents;
|
|
1517
1513
|
};
|
|
1518
|
-
exports.
|
|
1519
|
-
const
|
|
1514
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1515
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1520
1516
|
const parsedOutput = {
|
|
1521
1517
|
...output,
|
|
1522
1518
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1525,10 +1521,10 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1525
1521
|
switch (errorCode) {
|
|
1526
1522
|
case "ResourceNotFoundException":
|
|
1527
1523
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1528
|
-
throw await
|
|
1524
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1529
1525
|
case "ValidationException":
|
|
1530
1526
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1531
|
-
throw await
|
|
1527
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1532
1528
|
default:
|
|
1533
1529
|
const parsedBody = parsedOutput.body;
|
|
1534
1530
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1539,9 +1535,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1539
1535
|
});
|
|
1540
1536
|
}
|
|
1541
1537
|
};
|
|
1542
|
-
const
|
|
1538
|
+
const de_ListTemplatesCommand = async (output, context) => {
|
|
1543
1539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
|
-
return
|
|
1540
|
+
return de_ListTemplatesCommandError(output, context);
|
|
1545
1541
|
}
|
|
1546
1542
|
const contents = map({
|
|
1547
1543
|
$metadata: deserializeMetadata(output),
|
|
@@ -1551,12 +1547,12 @@ const deserializeAws_restJson1ListTemplatesCommand = async (output, context) =>
|
|
|
1551
1547
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1552
1548
|
}
|
|
1553
1549
|
if (data.templateSummary != null) {
|
|
1554
|
-
contents.templateSummary =
|
|
1550
|
+
contents.templateSummary = de_TemplateSummaryList(data.templateSummary, context);
|
|
1555
1551
|
}
|
|
1556
1552
|
return contents;
|
|
1557
1553
|
};
|
|
1558
|
-
exports.
|
|
1559
|
-
const
|
|
1554
|
+
exports.de_ListTemplatesCommand = de_ListTemplatesCommand;
|
|
1555
|
+
const de_ListTemplatesCommandError = async (output, context) => {
|
|
1560
1556
|
const parsedOutput = {
|
|
1561
1557
|
...output,
|
|
1562
1558
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1565,13 +1561,13 @@ const deserializeAws_restJson1ListTemplatesCommandError = async (output, context
|
|
|
1565
1561
|
switch (errorCode) {
|
|
1566
1562
|
case "AccessDeniedException":
|
|
1567
1563
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1568
|
-
throw await
|
|
1564
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1569
1565
|
case "InternalServerException":
|
|
1570
1566
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1571
|
-
throw await
|
|
1567
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1572
1568
|
case "ThrottlingException":
|
|
1573
1569
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1574
|
-
throw await
|
|
1570
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1575
1571
|
default:
|
|
1576
1572
|
const parsedBody = parsedOutput.body;
|
|
1577
1573
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1582,9 +1578,9 @@ const deserializeAws_restJson1ListTemplatesCommandError = async (output, context
|
|
|
1582
1578
|
});
|
|
1583
1579
|
}
|
|
1584
1580
|
};
|
|
1585
|
-
const
|
|
1581
|
+
const de_ListTemplateStepGroupsCommand = async (output, context) => {
|
|
1586
1582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1587
|
-
return
|
|
1583
|
+
return de_ListTemplateStepGroupsCommandError(output, context);
|
|
1588
1584
|
}
|
|
1589
1585
|
const contents = map({
|
|
1590
1586
|
$metadata: deserializeMetadata(output),
|
|
@@ -1594,12 +1590,12 @@ const deserializeAws_restJson1ListTemplateStepGroupsCommand = async (output, con
|
|
|
1594
1590
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1595
1591
|
}
|
|
1596
1592
|
if (data.templateStepGroupSummary != null) {
|
|
1597
|
-
contents.templateStepGroupSummary =
|
|
1593
|
+
contents.templateStepGroupSummary = de_TemplateStepGroupSummaryList(data.templateStepGroupSummary, context);
|
|
1598
1594
|
}
|
|
1599
1595
|
return contents;
|
|
1600
1596
|
};
|
|
1601
|
-
exports.
|
|
1602
|
-
const
|
|
1597
|
+
exports.de_ListTemplateStepGroupsCommand = de_ListTemplateStepGroupsCommand;
|
|
1598
|
+
const de_ListTemplateStepGroupsCommandError = async (output, context) => {
|
|
1603
1599
|
const parsedOutput = {
|
|
1604
1600
|
...output,
|
|
1605
1601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1608,16 +1604,16 @@ const deserializeAws_restJson1ListTemplateStepGroupsCommandError = async (output
|
|
|
1608
1604
|
switch (errorCode) {
|
|
1609
1605
|
case "AccessDeniedException":
|
|
1610
1606
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1611
|
-
throw await
|
|
1607
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1612
1608
|
case "InternalServerException":
|
|
1613
1609
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1614
|
-
throw await
|
|
1610
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1615
1611
|
case "ResourceNotFoundException":
|
|
1616
1612
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1617
|
-
throw await
|
|
1613
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1618
1614
|
case "ThrottlingException":
|
|
1619
1615
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1620
|
-
throw await
|
|
1616
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1621
1617
|
default:
|
|
1622
1618
|
const parsedBody = parsedOutput.body;
|
|
1623
1619
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1628,9 +1624,9 @@ const deserializeAws_restJson1ListTemplateStepGroupsCommandError = async (output
|
|
|
1628
1624
|
});
|
|
1629
1625
|
}
|
|
1630
1626
|
};
|
|
1631
|
-
const
|
|
1627
|
+
const de_ListTemplateStepsCommand = async (output, context) => {
|
|
1632
1628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1633
|
-
return
|
|
1629
|
+
return de_ListTemplateStepsCommandError(output, context);
|
|
1634
1630
|
}
|
|
1635
1631
|
const contents = map({
|
|
1636
1632
|
$metadata: deserializeMetadata(output),
|
|
@@ -1640,12 +1636,12 @@ const deserializeAws_restJson1ListTemplateStepsCommand = async (output, context)
|
|
|
1640
1636
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1641
1637
|
}
|
|
1642
1638
|
if (data.templateStepSummaryList != null) {
|
|
1643
|
-
contents.templateStepSummaryList =
|
|
1639
|
+
contents.templateStepSummaryList = de_TemplateStepSummaryList(data.templateStepSummaryList, context);
|
|
1644
1640
|
}
|
|
1645
1641
|
return contents;
|
|
1646
1642
|
};
|
|
1647
|
-
exports.
|
|
1648
|
-
const
|
|
1643
|
+
exports.de_ListTemplateStepsCommand = de_ListTemplateStepsCommand;
|
|
1644
|
+
const de_ListTemplateStepsCommandError = async (output, context) => {
|
|
1649
1645
|
const parsedOutput = {
|
|
1650
1646
|
...output,
|
|
1651
1647
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1654,19 +1650,19 @@ const deserializeAws_restJson1ListTemplateStepsCommandError = async (output, con
|
|
|
1654
1650
|
switch (errorCode) {
|
|
1655
1651
|
case "AccessDeniedException":
|
|
1656
1652
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1657
|
-
throw await
|
|
1653
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1658
1654
|
case "InternalServerException":
|
|
1659
1655
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1660
|
-
throw await
|
|
1656
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1661
1657
|
case "ResourceNotFoundException":
|
|
1662
1658
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1663
|
-
throw await
|
|
1659
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1664
1660
|
case "ThrottlingException":
|
|
1665
1661
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1666
|
-
throw await
|
|
1662
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1667
1663
|
case "ValidationException":
|
|
1668
1664
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1669
|
-
throw await
|
|
1665
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1670
1666
|
default:
|
|
1671
1667
|
const parsedBody = parsedOutput.body;
|
|
1672
1668
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1677,24 +1673,24 @@ const deserializeAws_restJson1ListTemplateStepsCommandError = async (output, con
|
|
|
1677
1673
|
});
|
|
1678
1674
|
}
|
|
1679
1675
|
};
|
|
1680
|
-
const
|
|
1676
|
+
const de_ListWorkflowsCommand = async (output, context) => {
|
|
1681
1677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1682
|
-
return
|
|
1678
|
+
return de_ListWorkflowsCommandError(output, context);
|
|
1683
1679
|
}
|
|
1684
1680
|
const contents = map({
|
|
1685
1681
|
$metadata: deserializeMetadata(output),
|
|
1686
1682
|
});
|
|
1687
1683
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1688
1684
|
if (data.migrationWorkflowSummary != null) {
|
|
1689
|
-
contents.migrationWorkflowSummary =
|
|
1685
|
+
contents.migrationWorkflowSummary = de_MigrationWorkflowSummaryList(data.migrationWorkflowSummary, context);
|
|
1690
1686
|
}
|
|
1691
1687
|
if (data.nextToken != null) {
|
|
1692
1688
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1693
1689
|
}
|
|
1694
1690
|
return contents;
|
|
1695
1691
|
};
|
|
1696
|
-
exports.
|
|
1697
|
-
const
|
|
1692
|
+
exports.de_ListWorkflowsCommand = de_ListWorkflowsCommand;
|
|
1693
|
+
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
1698
1694
|
const parsedOutput = {
|
|
1699
1695
|
...output,
|
|
1700
1696
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1703,19 +1699,19 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
|
|
|
1703
1699
|
switch (errorCode) {
|
|
1704
1700
|
case "AccessDeniedException":
|
|
1705
1701
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1706
|
-
throw await
|
|
1702
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1707
1703
|
case "InternalServerException":
|
|
1708
1704
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1709
|
-
throw await
|
|
1705
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1710
1706
|
case "ResourceNotFoundException":
|
|
1711
1707
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1712
|
-
throw await
|
|
1708
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1713
1709
|
case "ThrottlingException":
|
|
1714
1710
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1715
|
-
throw await
|
|
1711
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1716
1712
|
case "ValidationException":
|
|
1717
1713
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1718
|
-
throw await
|
|
1714
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1719
1715
|
default:
|
|
1720
1716
|
const parsedBody = parsedOutput.body;
|
|
1721
1717
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1726,9 +1722,9 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
|
|
|
1726
1722
|
});
|
|
1727
1723
|
}
|
|
1728
1724
|
};
|
|
1729
|
-
const
|
|
1725
|
+
const de_ListWorkflowStepGroupsCommand = async (output, context) => {
|
|
1730
1726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1731
|
-
return
|
|
1727
|
+
return de_ListWorkflowStepGroupsCommandError(output, context);
|
|
1732
1728
|
}
|
|
1733
1729
|
const contents = map({
|
|
1734
1730
|
$metadata: deserializeMetadata(output),
|
|
@@ -1738,12 +1734,12 @@ const deserializeAws_restJson1ListWorkflowStepGroupsCommand = async (output, con
|
|
|
1738
1734
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1739
1735
|
}
|
|
1740
1736
|
if (data.workflowStepGroupsSummary != null) {
|
|
1741
|
-
contents.workflowStepGroupsSummary =
|
|
1737
|
+
contents.workflowStepGroupsSummary = de_WorkflowStepGroupsSummaryList(data.workflowStepGroupsSummary, context);
|
|
1742
1738
|
}
|
|
1743
1739
|
return contents;
|
|
1744
1740
|
};
|
|
1745
|
-
exports.
|
|
1746
|
-
const
|
|
1741
|
+
exports.de_ListWorkflowStepGroupsCommand = de_ListWorkflowStepGroupsCommand;
|
|
1742
|
+
const de_ListWorkflowStepGroupsCommandError = async (output, context) => {
|
|
1747
1743
|
const parsedOutput = {
|
|
1748
1744
|
...output,
|
|
1749
1745
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1752,19 +1748,19 @@ const deserializeAws_restJson1ListWorkflowStepGroupsCommandError = async (output
|
|
|
1752
1748
|
switch (errorCode) {
|
|
1753
1749
|
case "AccessDeniedException":
|
|
1754
1750
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1755
|
-
throw await
|
|
1751
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1756
1752
|
case "InternalServerException":
|
|
1757
1753
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1758
|
-
throw await
|
|
1754
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1759
1755
|
case "ResourceNotFoundException":
|
|
1760
1756
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1761
|
-
throw await
|
|
1757
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1762
1758
|
case "ThrottlingException":
|
|
1763
1759
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1764
|
-
throw await
|
|
1760
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1765
1761
|
case "ValidationException":
|
|
1766
1762
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1767
|
-
throw await
|
|
1763
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1768
1764
|
default:
|
|
1769
1765
|
const parsedBody = parsedOutput.body;
|
|
1770
1766
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1775,9 +1771,9 @@ const deserializeAws_restJson1ListWorkflowStepGroupsCommandError = async (output
|
|
|
1775
1771
|
});
|
|
1776
1772
|
}
|
|
1777
1773
|
};
|
|
1778
|
-
const
|
|
1774
|
+
const de_ListWorkflowStepsCommand = async (output, context) => {
|
|
1779
1775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
1776
|
+
return de_ListWorkflowStepsCommandError(output, context);
|
|
1781
1777
|
}
|
|
1782
1778
|
const contents = map({
|
|
1783
1779
|
$metadata: deserializeMetadata(output),
|
|
@@ -1787,12 +1783,12 @@ const deserializeAws_restJson1ListWorkflowStepsCommand = async (output, context)
|
|
|
1787
1783
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1788
1784
|
}
|
|
1789
1785
|
if (data.workflowStepsSummary != null) {
|
|
1790
|
-
contents.workflowStepsSummary =
|
|
1786
|
+
contents.workflowStepsSummary = de_WorkflowStepsSummaryList(data.workflowStepsSummary, context);
|
|
1791
1787
|
}
|
|
1792
1788
|
return contents;
|
|
1793
1789
|
};
|
|
1794
|
-
exports.
|
|
1795
|
-
const
|
|
1790
|
+
exports.de_ListWorkflowStepsCommand = de_ListWorkflowStepsCommand;
|
|
1791
|
+
const de_ListWorkflowStepsCommandError = async (output, context) => {
|
|
1796
1792
|
const parsedOutput = {
|
|
1797
1793
|
...output,
|
|
1798
1794
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1801,16 +1797,16 @@ const deserializeAws_restJson1ListWorkflowStepsCommandError = async (output, con
|
|
|
1801
1797
|
switch (errorCode) {
|
|
1802
1798
|
case "AccessDeniedException":
|
|
1803
1799
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1804
|
-
throw await
|
|
1800
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1805
1801
|
case "InternalServerException":
|
|
1806
1802
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1807
|
-
throw await
|
|
1803
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1808
1804
|
case "ThrottlingException":
|
|
1809
1805
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1810
|
-
throw await
|
|
1806
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1811
1807
|
case "ValidationException":
|
|
1812
1808
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1813
|
-
throw await
|
|
1809
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1814
1810
|
default:
|
|
1815
1811
|
const parsedBody = parsedOutput.body;
|
|
1816
1812
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1821,9 +1817,9 @@ const deserializeAws_restJson1ListWorkflowStepsCommandError = async (output, con
|
|
|
1821
1817
|
});
|
|
1822
1818
|
}
|
|
1823
1819
|
};
|
|
1824
|
-
const
|
|
1820
|
+
const de_RetryWorkflowStepCommand = async (output, context) => {
|
|
1825
1821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
|
-
return
|
|
1822
|
+
return de_RetryWorkflowStepCommandError(output, context);
|
|
1827
1823
|
}
|
|
1828
1824
|
const contents = map({
|
|
1829
1825
|
$metadata: deserializeMetadata(output),
|
|
@@ -1843,8 +1839,8 @@ const deserializeAws_restJson1RetryWorkflowStepCommand = async (output, context)
|
|
|
1843
1839
|
}
|
|
1844
1840
|
return contents;
|
|
1845
1841
|
};
|
|
1846
|
-
exports.
|
|
1847
|
-
const
|
|
1842
|
+
exports.de_RetryWorkflowStepCommand = de_RetryWorkflowStepCommand;
|
|
1843
|
+
const de_RetryWorkflowStepCommandError = async (output, context) => {
|
|
1848
1844
|
const parsedOutput = {
|
|
1849
1845
|
...output,
|
|
1850
1846
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1853,16 +1849,16 @@ const deserializeAws_restJson1RetryWorkflowStepCommandError = async (output, con
|
|
|
1853
1849
|
switch (errorCode) {
|
|
1854
1850
|
case "AccessDeniedException":
|
|
1855
1851
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1856
|
-
throw await
|
|
1852
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1857
1853
|
case "InternalServerException":
|
|
1858
1854
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1859
|
-
throw await
|
|
1855
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1860
1856
|
case "ResourceNotFoundException":
|
|
1861
1857
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1862
|
-
throw await
|
|
1858
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1863
1859
|
case "ThrottlingException":
|
|
1864
1860
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1865
|
-
throw await
|
|
1861
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1866
1862
|
default:
|
|
1867
1863
|
const parsedBody = parsedOutput.body;
|
|
1868
1864
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1873,9 +1869,9 @@ const deserializeAws_restJson1RetryWorkflowStepCommandError = async (output, con
|
|
|
1873
1869
|
});
|
|
1874
1870
|
}
|
|
1875
1871
|
};
|
|
1876
|
-
const
|
|
1872
|
+
const de_StartWorkflowCommand = async (output, context) => {
|
|
1877
1873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1878
|
-
return
|
|
1874
|
+
return de_StartWorkflowCommandError(output, context);
|
|
1879
1875
|
}
|
|
1880
1876
|
const contents = map({
|
|
1881
1877
|
$metadata: deserializeMetadata(output),
|
|
@@ -1898,8 +1894,8 @@ const deserializeAws_restJson1StartWorkflowCommand = async (output, context) =>
|
|
|
1898
1894
|
}
|
|
1899
1895
|
return contents;
|
|
1900
1896
|
};
|
|
1901
|
-
exports.
|
|
1902
|
-
const
|
|
1897
|
+
exports.de_StartWorkflowCommand = de_StartWorkflowCommand;
|
|
1898
|
+
const de_StartWorkflowCommandError = async (output, context) => {
|
|
1903
1899
|
const parsedOutput = {
|
|
1904
1900
|
...output,
|
|
1905
1901
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1908,19 +1904,19 @@ const deserializeAws_restJson1StartWorkflowCommandError = async (output, context
|
|
|
1908
1904
|
switch (errorCode) {
|
|
1909
1905
|
case "AccessDeniedException":
|
|
1910
1906
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1911
|
-
throw await
|
|
1907
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1912
1908
|
case "InternalServerException":
|
|
1913
1909
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1914
|
-
throw await
|
|
1910
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1915
1911
|
case "ResourceNotFoundException":
|
|
1916
1912
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1917
|
-
throw await
|
|
1913
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1918
1914
|
case "ThrottlingException":
|
|
1919
1915
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1920
|
-
throw await
|
|
1916
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1921
1917
|
case "ValidationException":
|
|
1922
1918
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1923
|
-
throw await
|
|
1919
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1924
1920
|
default:
|
|
1925
1921
|
const parsedBody = parsedOutput.body;
|
|
1926
1922
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1931,9 +1927,9 @@ const deserializeAws_restJson1StartWorkflowCommandError = async (output, context
|
|
|
1931
1927
|
});
|
|
1932
1928
|
}
|
|
1933
1929
|
};
|
|
1934
|
-
const
|
|
1930
|
+
const de_StopWorkflowCommand = async (output, context) => {
|
|
1935
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
1932
|
+
return de_StopWorkflowCommandError(output, context);
|
|
1937
1933
|
}
|
|
1938
1934
|
const contents = map({
|
|
1939
1935
|
$metadata: deserializeMetadata(output),
|
|
@@ -1956,8 +1952,8 @@ const deserializeAws_restJson1StopWorkflowCommand = async (output, context) => {
|
|
|
1956
1952
|
}
|
|
1957
1953
|
return contents;
|
|
1958
1954
|
};
|
|
1959
|
-
exports.
|
|
1960
|
-
const
|
|
1955
|
+
exports.de_StopWorkflowCommand = de_StopWorkflowCommand;
|
|
1956
|
+
const de_StopWorkflowCommandError = async (output, context) => {
|
|
1961
1957
|
const parsedOutput = {
|
|
1962
1958
|
...output,
|
|
1963
1959
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1966,19 +1962,19 @@ const deserializeAws_restJson1StopWorkflowCommandError = async (output, context)
|
|
|
1966
1962
|
switch (errorCode) {
|
|
1967
1963
|
case "AccessDeniedException":
|
|
1968
1964
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
1969
|
-
throw await
|
|
1965
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1970
1966
|
case "InternalServerException":
|
|
1971
1967
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
1972
|
-
throw await
|
|
1968
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1973
1969
|
case "ResourceNotFoundException":
|
|
1974
1970
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
1975
|
-
throw await
|
|
1971
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1976
1972
|
case "ThrottlingException":
|
|
1977
1973
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
1978
|
-
throw await
|
|
1974
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1979
1975
|
case "ValidationException":
|
|
1980
1976
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
1981
|
-
throw await
|
|
1977
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1982
1978
|
default:
|
|
1983
1979
|
const parsedBody = parsedOutput.body;
|
|
1984
1980
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1989,9 +1985,9 @@ const deserializeAws_restJson1StopWorkflowCommandError = async (output, context)
|
|
|
1989
1985
|
});
|
|
1990
1986
|
}
|
|
1991
1987
|
};
|
|
1992
|
-
const
|
|
1988
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1993
1989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
1990
|
+
return de_TagResourceCommandError(output, context);
|
|
1995
1991
|
}
|
|
1996
1992
|
const contents = map({
|
|
1997
1993
|
$metadata: deserializeMetadata(output),
|
|
@@ -1999,8 +1995,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1999
1995
|
await collectBody(output.body, context);
|
|
2000
1996
|
return contents;
|
|
2001
1997
|
};
|
|
2002
|
-
exports.
|
|
2003
|
-
const
|
|
1998
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1999
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2004
2000
|
const parsedOutput = {
|
|
2005
2001
|
...output,
|
|
2006
2002
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2009,10 +2005,10 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2009
2005
|
switch (errorCode) {
|
|
2010
2006
|
case "ResourceNotFoundException":
|
|
2011
2007
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
2012
|
-
throw await
|
|
2008
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2013
2009
|
case "ValidationException":
|
|
2014
2010
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
2015
|
-
throw await
|
|
2011
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2016
2012
|
default:
|
|
2017
2013
|
const parsedBody = parsedOutput.body;
|
|
2018
2014
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2023,9 +2019,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2023
2019
|
});
|
|
2024
2020
|
}
|
|
2025
2021
|
};
|
|
2026
|
-
const
|
|
2022
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2027
2023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2028
|
-
return
|
|
2024
|
+
return de_UntagResourceCommandError(output, context);
|
|
2029
2025
|
}
|
|
2030
2026
|
const contents = map({
|
|
2031
2027
|
$metadata: deserializeMetadata(output),
|
|
@@ -2033,8 +2029,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2033
2029
|
await collectBody(output.body, context);
|
|
2034
2030
|
return contents;
|
|
2035
2031
|
};
|
|
2036
|
-
exports.
|
|
2037
|
-
const
|
|
2032
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2033
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2038
2034
|
const parsedOutput = {
|
|
2039
2035
|
...output,
|
|
2040
2036
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2043,10 +2039,10 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2043
2039
|
switch (errorCode) {
|
|
2044
2040
|
case "ResourceNotFoundException":
|
|
2045
2041
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
2046
|
-
throw await
|
|
2042
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2047
2043
|
case "ValidationException":
|
|
2048
2044
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
2049
|
-
throw await
|
|
2045
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2050
2046
|
default:
|
|
2051
2047
|
const parsedBody = parsedOutput.body;
|
|
2052
2048
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2057,9 +2053,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2057
2053
|
});
|
|
2058
2054
|
}
|
|
2059
2055
|
};
|
|
2060
|
-
const
|
|
2056
|
+
const de_UpdateWorkflowCommand = async (output, context) => {
|
|
2061
2057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2062
|
-
return
|
|
2058
|
+
return de_UpdateWorkflowCommandError(output, context);
|
|
2063
2059
|
}
|
|
2064
2060
|
const contents = map({
|
|
2065
2061
|
$metadata: deserializeMetadata(output),
|
|
@@ -2090,21 +2086,21 @@ const deserializeAws_restJson1UpdateWorkflowCommand = async (output, context) =>
|
|
|
2090
2086
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2091
2087
|
}
|
|
2092
2088
|
if (data.stepTargets != null) {
|
|
2093
|
-
contents.stepTargets =
|
|
2089
|
+
contents.stepTargets = de_StringList(data.stepTargets, context);
|
|
2094
2090
|
}
|
|
2095
2091
|
if (data.tags != null) {
|
|
2096
|
-
contents.tags =
|
|
2092
|
+
contents.tags = de_StringMap(data.tags, context);
|
|
2097
2093
|
}
|
|
2098
2094
|
if (data.templateId != null) {
|
|
2099
2095
|
contents.templateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
2100
2096
|
}
|
|
2101
2097
|
if (data.workflowInputs != null) {
|
|
2102
|
-
contents.workflowInputs =
|
|
2098
|
+
contents.workflowInputs = de_StepInputParameters(data.workflowInputs, context);
|
|
2103
2099
|
}
|
|
2104
2100
|
return contents;
|
|
2105
2101
|
};
|
|
2106
|
-
exports.
|
|
2107
|
-
const
|
|
2102
|
+
exports.de_UpdateWorkflowCommand = de_UpdateWorkflowCommand;
|
|
2103
|
+
const de_UpdateWorkflowCommandError = async (output, context) => {
|
|
2108
2104
|
const parsedOutput = {
|
|
2109
2105
|
...output,
|
|
2110
2106
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2113,19 +2109,19 @@ const deserializeAws_restJson1UpdateWorkflowCommandError = async (output, contex
|
|
|
2113
2109
|
switch (errorCode) {
|
|
2114
2110
|
case "AccessDeniedException":
|
|
2115
2111
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
2116
|
-
throw await
|
|
2112
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2117
2113
|
case "InternalServerException":
|
|
2118
2114
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
2119
|
-
throw await
|
|
2115
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2120
2116
|
case "ResourceNotFoundException":
|
|
2121
2117
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
2122
|
-
throw await
|
|
2118
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2123
2119
|
case "ThrottlingException":
|
|
2124
2120
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
2125
|
-
throw await
|
|
2121
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2126
2122
|
case "ValidationException":
|
|
2127
2123
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
2128
|
-
throw await
|
|
2124
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2129
2125
|
default:
|
|
2130
2126
|
const parsedBody = parsedOutput.body;
|
|
2131
2127
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2136,9 +2132,9 @@ const deserializeAws_restJson1UpdateWorkflowCommandError = async (output, contex
|
|
|
2136
2132
|
});
|
|
2137
2133
|
}
|
|
2138
2134
|
};
|
|
2139
|
-
const
|
|
2135
|
+
const de_UpdateWorkflowStepCommand = async (output, context) => {
|
|
2140
2136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2141
|
-
return
|
|
2137
|
+
return de_UpdateWorkflowStepCommandError(output, context);
|
|
2142
2138
|
}
|
|
2143
2139
|
const contents = map({
|
|
2144
2140
|
$metadata: deserializeMetadata(output),
|
|
@@ -2158,8 +2154,8 @@ const deserializeAws_restJson1UpdateWorkflowStepCommand = async (output, context
|
|
|
2158
2154
|
}
|
|
2159
2155
|
return contents;
|
|
2160
2156
|
};
|
|
2161
|
-
exports.
|
|
2162
|
-
const
|
|
2157
|
+
exports.de_UpdateWorkflowStepCommand = de_UpdateWorkflowStepCommand;
|
|
2158
|
+
const de_UpdateWorkflowStepCommandError = async (output, context) => {
|
|
2163
2159
|
const parsedOutput = {
|
|
2164
2160
|
...output,
|
|
2165
2161
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2168,16 +2164,16 @@ const deserializeAws_restJson1UpdateWorkflowStepCommandError = async (output, co
|
|
|
2168
2164
|
switch (errorCode) {
|
|
2169
2165
|
case "AccessDeniedException":
|
|
2170
2166
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
2171
|
-
throw await
|
|
2167
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2172
2168
|
case "InternalServerException":
|
|
2173
2169
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
2174
|
-
throw await
|
|
2170
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2175
2171
|
case "ThrottlingException":
|
|
2176
2172
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
2177
|
-
throw await
|
|
2173
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2178
2174
|
case "ValidationException":
|
|
2179
2175
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
2180
|
-
throw await
|
|
2176
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2181
2177
|
default:
|
|
2182
2178
|
const parsedBody = parsedOutput.body;
|
|
2183
2179
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2188,9 +2184,9 @@ const deserializeAws_restJson1UpdateWorkflowStepCommandError = async (output, co
|
|
|
2188
2184
|
});
|
|
2189
2185
|
}
|
|
2190
2186
|
};
|
|
2191
|
-
const
|
|
2187
|
+
const de_UpdateWorkflowStepGroupCommand = async (output, context) => {
|
|
2192
2188
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2193
|
-
return
|
|
2189
|
+
return de_UpdateWorkflowStepGroupCommandError(output, context);
|
|
2194
2190
|
}
|
|
2195
2191
|
const contents = map({
|
|
2196
2192
|
$metadata: deserializeMetadata(output),
|
|
@@ -2209,21 +2205,21 @@ const deserializeAws_restJson1UpdateWorkflowStepGroupCommand = async (output, co
|
|
|
2209
2205
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2210
2206
|
}
|
|
2211
2207
|
if (data.next != null) {
|
|
2212
|
-
contents.next =
|
|
2208
|
+
contents.next = de_StringList(data.next, context);
|
|
2213
2209
|
}
|
|
2214
2210
|
if (data.previous != null) {
|
|
2215
|
-
contents.previous =
|
|
2211
|
+
contents.previous = de_StringList(data.previous, context);
|
|
2216
2212
|
}
|
|
2217
2213
|
if (data.tools != null) {
|
|
2218
|
-
contents.tools =
|
|
2214
|
+
contents.tools = de_ToolsList(data.tools, context);
|
|
2219
2215
|
}
|
|
2220
2216
|
if (data.workflowId != null) {
|
|
2221
2217
|
contents.workflowId = (0, smithy_client_1.expectString)(data.workflowId);
|
|
2222
2218
|
}
|
|
2223
2219
|
return contents;
|
|
2224
2220
|
};
|
|
2225
|
-
exports.
|
|
2226
|
-
const
|
|
2221
|
+
exports.de_UpdateWorkflowStepGroupCommand = de_UpdateWorkflowStepGroupCommand;
|
|
2222
|
+
const de_UpdateWorkflowStepGroupCommandError = async (output, context) => {
|
|
2227
2223
|
const parsedOutput = {
|
|
2228
2224
|
...output,
|
|
2229
2225
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2232,19 +2228,19 @@ const deserializeAws_restJson1UpdateWorkflowStepGroupCommandError = async (outpu
|
|
|
2232
2228
|
switch (errorCode) {
|
|
2233
2229
|
case "AccessDeniedException":
|
|
2234
2230
|
case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
|
|
2235
|
-
throw await
|
|
2231
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2236
2232
|
case "InternalServerException":
|
|
2237
2233
|
case "com.amazonaws.migrationhuborchestrator#InternalServerException":
|
|
2238
|
-
throw await
|
|
2234
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2239
2235
|
case "ResourceNotFoundException":
|
|
2240
2236
|
case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
|
|
2241
|
-
throw await
|
|
2237
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2242
2238
|
case "ThrottlingException":
|
|
2243
2239
|
case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
|
|
2244
|
-
throw await
|
|
2240
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2245
2241
|
case "ValidationException":
|
|
2246
2242
|
case "com.amazonaws.migrationhuborchestrator#ValidationException":
|
|
2247
|
-
throw await
|
|
2243
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2248
2244
|
default:
|
|
2249
2245
|
const parsedBody = parsedOutput.body;
|
|
2250
2246
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2256,7 +2252,7 @@ const deserializeAws_restJson1UpdateWorkflowStepGroupCommandError = async (outpu
|
|
|
2256
2252
|
}
|
|
2257
2253
|
};
|
|
2258
2254
|
const map = smithy_client_1.map;
|
|
2259
|
-
const
|
|
2255
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2260
2256
|
const contents = map({});
|
|
2261
2257
|
const data = parsedOutput.body;
|
|
2262
2258
|
if (data.message != null) {
|
|
@@ -2268,7 +2264,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2268
2264
|
});
|
|
2269
2265
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2270
2266
|
};
|
|
2271
|
-
const
|
|
2267
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2272
2268
|
const contents = map({});
|
|
2273
2269
|
const data = parsedOutput.body;
|
|
2274
2270
|
if (data.message != null) {
|
|
@@ -2280,7 +2276,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2280
2276
|
});
|
|
2281
2277
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2282
2278
|
};
|
|
2283
|
-
const
|
|
2279
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2284
2280
|
const contents = map({});
|
|
2285
2281
|
const data = parsedOutput.body;
|
|
2286
2282
|
if (data.message != null) {
|
|
@@ -2292,7 +2288,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2292
2288
|
});
|
|
2293
2289
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2294
2290
|
};
|
|
2295
|
-
const
|
|
2291
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2296
2292
|
const contents = map({});
|
|
2297
2293
|
const data = parsedOutput.body;
|
|
2298
2294
|
if (data.message != null) {
|
|
@@ -2304,7 +2300,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2304
2300
|
});
|
|
2305
2301
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2306
2302
|
};
|
|
2307
|
-
const
|
|
2303
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2308
2304
|
const contents = map({});
|
|
2309
2305
|
const data = parsedOutput.body;
|
|
2310
2306
|
if (data.message != null) {
|
|
@@ -2316,44 +2312,44 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2316
2312
|
});
|
|
2317
2313
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2318
2314
|
};
|
|
2319
|
-
const
|
|
2315
|
+
const se_PlatformCommand = (input, context) => {
|
|
2320
2316
|
return {
|
|
2321
2317
|
...(input.linux != null && { linux: input.linux }),
|
|
2322
2318
|
...(input.windows != null && { windows: input.windows }),
|
|
2323
2319
|
};
|
|
2324
2320
|
};
|
|
2325
|
-
const
|
|
2321
|
+
const se_PlatformScriptKey = (input, context) => {
|
|
2326
2322
|
return {
|
|
2327
2323
|
...(input.linux != null && { linux: input.linux }),
|
|
2328
2324
|
...(input.windows != null && { windows: input.windows }),
|
|
2329
2325
|
};
|
|
2330
2326
|
};
|
|
2331
|
-
const
|
|
2327
|
+
const se_StepInput = (input, context) => {
|
|
2332
2328
|
return models_0_1.StepInput.visit(input, {
|
|
2333
2329
|
integerValue: (value) => ({ integerValue: value }),
|
|
2334
|
-
listOfStringsValue: (value) => ({ listOfStringsValue:
|
|
2335
|
-
mapOfStringValue: (value) => ({ mapOfStringValue:
|
|
2330
|
+
listOfStringsValue: (value) => ({ listOfStringsValue: se_StringList(value, context) }),
|
|
2331
|
+
mapOfStringValue: (value) => ({ mapOfStringValue: se_StringMap(value, context) }),
|
|
2336
2332
|
stringValue: (value) => ({ stringValue: value }),
|
|
2337
2333
|
_: (name, value) => ({ name: value }),
|
|
2338
2334
|
});
|
|
2339
2335
|
};
|
|
2340
|
-
const
|
|
2336
|
+
const se_StepInputParameters = (input, context) => {
|
|
2341
2337
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2342
2338
|
if (value === null) {
|
|
2343
2339
|
return acc;
|
|
2344
2340
|
}
|
|
2345
|
-
acc[key] =
|
|
2341
|
+
acc[key] = se_StepInput(value, context);
|
|
2346
2342
|
return acc;
|
|
2347
2343
|
}, {});
|
|
2348
2344
|
};
|
|
2349
|
-
const
|
|
2345
|
+
const se_StringList = (input, context) => {
|
|
2350
2346
|
return input
|
|
2351
2347
|
.filter((e) => e != null)
|
|
2352
2348
|
.map((entry) => {
|
|
2353
2349
|
return entry;
|
|
2354
2350
|
});
|
|
2355
2351
|
};
|
|
2356
|
-
const
|
|
2352
|
+
const se_StringMap = (input, context) => {
|
|
2357
2353
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2358
2354
|
if (value === null) {
|
|
2359
2355
|
return acc;
|
|
@@ -2362,7 +2358,7 @@ const serializeAws_restJson1StringMap = (input, context) => {
|
|
|
2362
2358
|
return acc;
|
|
2363
2359
|
}, {});
|
|
2364
2360
|
};
|
|
2365
|
-
const
|
|
2361
|
+
const se_TagMap = (input, context) => {
|
|
2366
2362
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2367
2363
|
if (value === null) {
|
|
2368
2364
|
return acc;
|
|
@@ -2371,41 +2367,41 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2371
2367
|
return acc;
|
|
2372
2368
|
}, {});
|
|
2373
2369
|
};
|
|
2374
|
-
const
|
|
2370
|
+
const se_WorkflowStepAutomationConfiguration = (input, context) => {
|
|
2375
2371
|
return {
|
|
2376
|
-
...(input.command != null && { command:
|
|
2372
|
+
...(input.command != null && { command: se_PlatformCommand(input.command, context) }),
|
|
2377
2373
|
...(input.runEnvironment != null && { runEnvironment: input.runEnvironment }),
|
|
2378
2374
|
...(input.scriptLocationS3Bucket != null && { scriptLocationS3Bucket: input.scriptLocationS3Bucket }),
|
|
2379
2375
|
...(input.scriptLocationS3Key != null && {
|
|
2380
|
-
scriptLocationS3Key:
|
|
2376
|
+
scriptLocationS3Key: se_PlatformScriptKey(input.scriptLocationS3Key, context),
|
|
2381
2377
|
}),
|
|
2382
2378
|
...(input.targetType != null && { targetType: input.targetType }),
|
|
2383
2379
|
};
|
|
2384
2380
|
};
|
|
2385
|
-
const
|
|
2381
|
+
const se_WorkflowStepOutput = (input, context) => {
|
|
2386
2382
|
return {
|
|
2387
2383
|
...(input.dataType != null && { dataType: input.dataType }),
|
|
2388
2384
|
...(input.name != null && { name: input.name }),
|
|
2389
2385
|
...(input.required != null && { required: input.required }),
|
|
2390
|
-
...(input.value != null && { value:
|
|
2386
|
+
...(input.value != null && { value: se_WorkflowStepOutputUnion(input.value, context) }),
|
|
2391
2387
|
};
|
|
2392
2388
|
};
|
|
2393
|
-
const
|
|
2389
|
+
const se_WorkflowStepOutputList = (input, context) => {
|
|
2394
2390
|
return input
|
|
2395
2391
|
.filter((e) => e != null)
|
|
2396
2392
|
.map((entry) => {
|
|
2397
|
-
return
|
|
2393
|
+
return se_WorkflowStepOutput(entry, context);
|
|
2398
2394
|
});
|
|
2399
2395
|
};
|
|
2400
|
-
const
|
|
2396
|
+
const se_WorkflowStepOutputUnion = (input, context) => {
|
|
2401
2397
|
return models_0_1.WorkflowStepOutputUnion.visit(input, {
|
|
2402
2398
|
integerValue: (value) => ({ integerValue: value }),
|
|
2403
|
-
listOfStringValue: (value) => ({ listOfStringValue:
|
|
2399
|
+
listOfStringValue: (value) => ({ listOfStringValue: se_StringList(value, context) }),
|
|
2404
2400
|
stringValue: (value) => ({ stringValue: value }),
|
|
2405
2401
|
_: (name, value) => ({ name: value }),
|
|
2406
2402
|
});
|
|
2407
2403
|
};
|
|
2408
|
-
const
|
|
2404
|
+
const de_MigrationWorkflowSummary = (output, context) => {
|
|
2409
2405
|
return {
|
|
2410
2406
|
adsApplicationConfigurationName: (0, smithy_client_1.expectString)(output.adsApplicationConfigurationName),
|
|
2411
2407
|
completedSteps: (0, smithy_client_1.expectInt32)(output.completedSteps),
|
|
@@ -2421,41 +2417,41 @@ const deserializeAws_restJson1MigrationWorkflowSummary = (output, context) => {
|
|
|
2421
2417
|
totalSteps: (0, smithy_client_1.expectInt32)(output.totalSteps),
|
|
2422
2418
|
};
|
|
2423
2419
|
};
|
|
2424
|
-
const
|
|
2420
|
+
const de_MigrationWorkflowSummaryList = (output, context) => {
|
|
2425
2421
|
const retVal = (output || [])
|
|
2426
2422
|
.filter((e) => e != null)
|
|
2427
2423
|
.map((entry) => {
|
|
2428
2424
|
if (entry === null) {
|
|
2429
2425
|
return null;
|
|
2430
2426
|
}
|
|
2431
|
-
return
|
|
2427
|
+
return de_MigrationWorkflowSummary(entry, context);
|
|
2432
2428
|
});
|
|
2433
2429
|
return retVal;
|
|
2434
2430
|
};
|
|
2435
|
-
const
|
|
2431
|
+
const de_PlatformCommand = (output, context) => {
|
|
2436
2432
|
return {
|
|
2437
2433
|
linux: (0, smithy_client_1.expectString)(output.linux),
|
|
2438
2434
|
windows: (0, smithy_client_1.expectString)(output.windows),
|
|
2439
2435
|
};
|
|
2440
2436
|
};
|
|
2441
|
-
const
|
|
2437
|
+
const de_PlatformScriptKey = (output, context) => {
|
|
2442
2438
|
return {
|
|
2443
2439
|
linux: (0, smithy_client_1.expectString)(output.linux),
|
|
2444
2440
|
windows: (0, smithy_client_1.expectString)(output.windows),
|
|
2445
2441
|
};
|
|
2446
2442
|
};
|
|
2447
|
-
const
|
|
2443
|
+
const de_PluginSummaries = (output, context) => {
|
|
2448
2444
|
const retVal = (output || [])
|
|
2449
2445
|
.filter((e) => e != null)
|
|
2450
2446
|
.map((entry) => {
|
|
2451
2447
|
if (entry === null) {
|
|
2452
2448
|
return null;
|
|
2453
2449
|
}
|
|
2454
|
-
return
|
|
2450
|
+
return de_PluginSummary(entry, context);
|
|
2455
2451
|
});
|
|
2456
2452
|
return retVal;
|
|
2457
2453
|
};
|
|
2458
|
-
const
|
|
2454
|
+
const de_PluginSummary = (output, context) => {
|
|
2459
2455
|
return {
|
|
2460
2456
|
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
2461
2457
|
ipAddress: (0, smithy_client_1.expectString)(output.ipAddress),
|
|
@@ -2465,29 +2461,27 @@ const deserializeAws_restJson1PluginSummary = (output, context) => {
|
|
|
2465
2461
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
2466
2462
|
};
|
|
2467
2463
|
};
|
|
2468
|
-
const
|
|
2464
|
+
const de_StepAutomationConfiguration = (output, context) => {
|
|
2469
2465
|
return {
|
|
2470
|
-
command: output.command != null ?
|
|
2466
|
+
command: output.command != null ? de_PlatformCommand(output.command, context) : undefined,
|
|
2471
2467
|
runEnvironment: (0, smithy_client_1.expectString)(output.runEnvironment),
|
|
2472
2468
|
scriptLocationS3Bucket: (0, smithy_client_1.expectString)(output.scriptLocationS3Bucket),
|
|
2473
|
-
scriptLocationS3Key: output.scriptLocationS3Key != null
|
|
2474
|
-
? deserializeAws_restJson1PlatformScriptKey(output.scriptLocationS3Key, context)
|
|
2475
|
-
: undefined,
|
|
2469
|
+
scriptLocationS3Key: output.scriptLocationS3Key != null ? de_PlatformScriptKey(output.scriptLocationS3Key, context) : undefined,
|
|
2476
2470
|
targetType: (0, smithy_client_1.expectString)(output.targetType),
|
|
2477
2471
|
};
|
|
2478
2472
|
};
|
|
2479
|
-
const
|
|
2473
|
+
const de_StepInput = (output, context) => {
|
|
2480
2474
|
if ((0, smithy_client_1.expectInt32)(output.integerValue) !== undefined) {
|
|
2481
2475
|
return { integerValue: (0, smithy_client_1.expectInt32)(output.integerValue) };
|
|
2482
2476
|
}
|
|
2483
2477
|
if (output.listOfStringsValue != null) {
|
|
2484
2478
|
return {
|
|
2485
|
-
listOfStringsValue:
|
|
2479
|
+
listOfStringsValue: de_StringList(output.listOfStringsValue, context),
|
|
2486
2480
|
};
|
|
2487
2481
|
}
|
|
2488
2482
|
if (output.mapOfStringValue != null) {
|
|
2489
2483
|
return {
|
|
2490
|
-
mapOfStringValue:
|
|
2484
|
+
mapOfStringValue: de_StringMap(output.mapOfStringValue, context),
|
|
2491
2485
|
};
|
|
2492
2486
|
}
|
|
2493
2487
|
if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
|
|
@@ -2495,34 +2489,34 @@ const deserializeAws_restJson1StepInput = (output, context) => {
|
|
|
2495
2489
|
}
|
|
2496
2490
|
return { $unknown: Object.entries(output)[0] };
|
|
2497
2491
|
};
|
|
2498
|
-
const
|
|
2492
|
+
const de_StepInputParameters = (output, context) => {
|
|
2499
2493
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2500
2494
|
if (value === null) {
|
|
2501
2495
|
return acc;
|
|
2502
2496
|
}
|
|
2503
|
-
acc[key] =
|
|
2497
|
+
acc[key] = de_StepInput((0, smithy_client_1.expectUnion)(value), context);
|
|
2504
2498
|
return acc;
|
|
2505
2499
|
}, {});
|
|
2506
2500
|
};
|
|
2507
|
-
const
|
|
2501
|
+
const de_StepOutput = (output, context) => {
|
|
2508
2502
|
return {
|
|
2509
2503
|
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
2510
2504
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2511
2505
|
required: (0, smithy_client_1.expectBoolean)(output.required),
|
|
2512
2506
|
};
|
|
2513
2507
|
};
|
|
2514
|
-
const
|
|
2508
|
+
const de_StepOutputList = (output, context) => {
|
|
2515
2509
|
const retVal = (output || [])
|
|
2516
2510
|
.filter((e) => e != null)
|
|
2517
2511
|
.map((entry) => {
|
|
2518
2512
|
if (entry === null) {
|
|
2519
2513
|
return null;
|
|
2520
2514
|
}
|
|
2521
|
-
return
|
|
2515
|
+
return de_StepOutput(entry, context);
|
|
2522
2516
|
});
|
|
2523
2517
|
return retVal;
|
|
2524
2518
|
};
|
|
2525
|
-
const
|
|
2519
|
+
const de_StringList = (output, context) => {
|
|
2526
2520
|
const retVal = (output || [])
|
|
2527
2521
|
.filter((e) => e != null)
|
|
2528
2522
|
.map((entry) => {
|
|
@@ -2533,7 +2527,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
2533
2527
|
});
|
|
2534
2528
|
return retVal;
|
|
2535
2529
|
};
|
|
2536
|
-
const
|
|
2530
|
+
const de_StringMap = (output, context) => {
|
|
2537
2531
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2538
2532
|
if (value === null) {
|
|
2539
2533
|
return acc;
|
|
@@ -2542,7 +2536,7 @@ const deserializeAws_restJson1StringMap = (output, context) => {
|
|
|
2542
2536
|
return acc;
|
|
2543
2537
|
}, {});
|
|
2544
2538
|
};
|
|
2545
|
-
const
|
|
2539
|
+
const de_TagMap = (output, context) => {
|
|
2546
2540
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2547
2541
|
if (value === null) {
|
|
2548
2542
|
return acc;
|
|
@@ -2551,68 +2545,68 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2551
2545
|
return acc;
|
|
2552
2546
|
}, {});
|
|
2553
2547
|
};
|
|
2554
|
-
const
|
|
2548
|
+
const de_TemplateInput = (output, context) => {
|
|
2555
2549
|
return {
|
|
2556
2550
|
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
2557
2551
|
inputName: (0, smithy_client_1.expectString)(output.inputName),
|
|
2558
2552
|
required: (0, smithy_client_1.expectBoolean)(output.required),
|
|
2559
2553
|
};
|
|
2560
2554
|
};
|
|
2561
|
-
const
|
|
2555
|
+
const de_TemplateInputList = (output, context) => {
|
|
2562
2556
|
const retVal = (output || [])
|
|
2563
2557
|
.filter((e) => e != null)
|
|
2564
2558
|
.map((entry) => {
|
|
2565
2559
|
if (entry === null) {
|
|
2566
2560
|
return null;
|
|
2567
2561
|
}
|
|
2568
|
-
return
|
|
2562
|
+
return de_TemplateInput(entry, context);
|
|
2569
2563
|
});
|
|
2570
2564
|
return retVal;
|
|
2571
2565
|
};
|
|
2572
|
-
const
|
|
2566
|
+
const de_TemplateStepGroupSummary = (output, context) => {
|
|
2573
2567
|
return {
|
|
2574
2568
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2575
2569
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2576
|
-
next: output.next != null ?
|
|
2577
|
-
previous: output.previous != null ?
|
|
2570
|
+
next: output.next != null ? de_StringList(output.next, context) : undefined,
|
|
2571
|
+
previous: output.previous != null ? de_StringList(output.previous, context) : undefined,
|
|
2578
2572
|
};
|
|
2579
2573
|
};
|
|
2580
|
-
const
|
|
2574
|
+
const de_TemplateStepGroupSummaryList = (output, context) => {
|
|
2581
2575
|
const retVal = (output || [])
|
|
2582
2576
|
.filter((e) => e != null)
|
|
2583
2577
|
.map((entry) => {
|
|
2584
2578
|
if (entry === null) {
|
|
2585
2579
|
return null;
|
|
2586
2580
|
}
|
|
2587
|
-
return
|
|
2581
|
+
return de_TemplateStepGroupSummary(entry, context);
|
|
2588
2582
|
});
|
|
2589
2583
|
return retVal;
|
|
2590
2584
|
};
|
|
2591
|
-
const
|
|
2585
|
+
const de_TemplateStepSummary = (output, context) => {
|
|
2592
2586
|
return {
|
|
2593
2587
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2594
2588
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2595
|
-
next: output.next != null ?
|
|
2589
|
+
next: output.next != null ? de_StringList(output.next, context) : undefined,
|
|
2596
2590
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
2597
|
-
previous: output.previous != null ?
|
|
2591
|
+
previous: output.previous != null ? de_StringList(output.previous, context) : undefined,
|
|
2598
2592
|
stepActionType: (0, smithy_client_1.expectString)(output.stepActionType),
|
|
2599
2593
|
stepGroupId: (0, smithy_client_1.expectString)(output.stepGroupId),
|
|
2600
2594
|
targetType: (0, smithy_client_1.expectString)(output.targetType),
|
|
2601
2595
|
templateId: (0, smithy_client_1.expectString)(output.templateId),
|
|
2602
2596
|
};
|
|
2603
2597
|
};
|
|
2604
|
-
const
|
|
2598
|
+
const de_TemplateStepSummaryList = (output, context) => {
|
|
2605
2599
|
const retVal = (output || [])
|
|
2606
2600
|
.filter((e) => e != null)
|
|
2607
2601
|
.map((entry) => {
|
|
2608
2602
|
if (entry === null) {
|
|
2609
2603
|
return null;
|
|
2610
2604
|
}
|
|
2611
|
-
return
|
|
2605
|
+
return de_TemplateStepSummary(entry, context);
|
|
2612
2606
|
});
|
|
2613
2607
|
return retVal;
|
|
2614
2608
|
};
|
|
2615
|
-
const
|
|
2609
|
+
const de_TemplateSummary = (output, context) => {
|
|
2616
2610
|
return {
|
|
2617
2611
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2618
2612
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -2620,94 +2614,90 @@ const deserializeAws_restJson1TemplateSummary = (output, context) => {
|
|
|
2620
2614
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2621
2615
|
};
|
|
2622
2616
|
};
|
|
2623
|
-
const
|
|
2617
|
+
const de_TemplateSummaryList = (output, context) => {
|
|
2624
2618
|
const retVal = (output || [])
|
|
2625
2619
|
.filter((e) => e != null)
|
|
2626
2620
|
.map((entry) => {
|
|
2627
2621
|
if (entry === null) {
|
|
2628
2622
|
return null;
|
|
2629
2623
|
}
|
|
2630
|
-
return
|
|
2624
|
+
return de_TemplateSummary(entry, context);
|
|
2631
2625
|
});
|
|
2632
2626
|
return retVal;
|
|
2633
2627
|
};
|
|
2634
|
-
const
|
|
2628
|
+
const de_Tool = (output, context) => {
|
|
2635
2629
|
return {
|
|
2636
2630
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2637
2631
|
url: (0, smithy_client_1.expectString)(output.url),
|
|
2638
2632
|
};
|
|
2639
2633
|
};
|
|
2640
|
-
const
|
|
2634
|
+
const de_ToolsList = (output, context) => {
|
|
2641
2635
|
const retVal = (output || [])
|
|
2642
2636
|
.filter((e) => e != null)
|
|
2643
2637
|
.map((entry) => {
|
|
2644
2638
|
if (entry === null) {
|
|
2645
2639
|
return null;
|
|
2646
2640
|
}
|
|
2647
|
-
return
|
|
2641
|
+
return de_Tool(entry, context);
|
|
2648
2642
|
});
|
|
2649
2643
|
return retVal;
|
|
2650
2644
|
};
|
|
2651
|
-
const
|
|
2645
|
+
const de_WorkflowStepAutomationConfiguration = (output, context) => {
|
|
2652
2646
|
return {
|
|
2653
|
-
command: output.command != null ?
|
|
2647
|
+
command: output.command != null ? de_PlatformCommand(output.command, context) : undefined,
|
|
2654
2648
|
runEnvironment: (0, smithy_client_1.expectString)(output.runEnvironment),
|
|
2655
2649
|
scriptLocationS3Bucket: (0, smithy_client_1.expectString)(output.scriptLocationS3Bucket),
|
|
2656
|
-
scriptLocationS3Key: output.scriptLocationS3Key != null
|
|
2657
|
-
? deserializeAws_restJson1PlatformScriptKey(output.scriptLocationS3Key, context)
|
|
2658
|
-
: undefined,
|
|
2650
|
+
scriptLocationS3Key: output.scriptLocationS3Key != null ? de_PlatformScriptKey(output.scriptLocationS3Key, context) : undefined,
|
|
2659
2651
|
targetType: (0, smithy_client_1.expectString)(output.targetType),
|
|
2660
2652
|
};
|
|
2661
2653
|
};
|
|
2662
|
-
const
|
|
2654
|
+
const de_WorkflowStepGroupsSummaryList = (output, context) => {
|
|
2663
2655
|
const retVal = (output || [])
|
|
2664
2656
|
.filter((e) => e != null)
|
|
2665
2657
|
.map((entry) => {
|
|
2666
2658
|
if (entry === null) {
|
|
2667
2659
|
return null;
|
|
2668
2660
|
}
|
|
2669
|
-
return
|
|
2661
|
+
return de_WorkflowStepGroupSummary(entry, context);
|
|
2670
2662
|
});
|
|
2671
2663
|
return retVal;
|
|
2672
2664
|
};
|
|
2673
|
-
const
|
|
2665
|
+
const de_WorkflowStepGroupSummary = (output, context) => {
|
|
2674
2666
|
return {
|
|
2675
2667
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2676
2668
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2677
|
-
next: output.next != null ?
|
|
2669
|
+
next: output.next != null ? de_StringList(output.next, context) : undefined,
|
|
2678
2670
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
2679
|
-
previous: output.previous != null ?
|
|
2671
|
+
previous: output.previous != null ? de_StringList(output.previous, context) : undefined,
|
|
2680
2672
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2681
2673
|
};
|
|
2682
2674
|
};
|
|
2683
|
-
const
|
|
2675
|
+
const de_WorkflowStepOutput = (output, context) => {
|
|
2684
2676
|
return {
|
|
2685
2677
|
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
2686
2678
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2687
2679
|
required: (0, smithy_client_1.expectBoolean)(output.required),
|
|
2688
|
-
value: output.value != null
|
|
2689
|
-
? deserializeAws_restJson1WorkflowStepOutputUnion((0, smithy_client_1.expectUnion)(output.value), context)
|
|
2690
|
-
: undefined,
|
|
2680
|
+
value: output.value != null ? de_WorkflowStepOutputUnion((0, smithy_client_1.expectUnion)(output.value), context) : undefined,
|
|
2691
2681
|
};
|
|
2692
2682
|
};
|
|
2693
|
-
const
|
|
2683
|
+
const de_WorkflowStepOutputList = (output, context) => {
|
|
2694
2684
|
const retVal = (output || [])
|
|
2695
2685
|
.filter((e) => e != null)
|
|
2696
2686
|
.map((entry) => {
|
|
2697
2687
|
if (entry === null) {
|
|
2698
2688
|
return null;
|
|
2699
2689
|
}
|
|
2700
|
-
return
|
|
2690
|
+
return de_WorkflowStepOutput(entry, context);
|
|
2701
2691
|
});
|
|
2702
2692
|
return retVal;
|
|
2703
2693
|
};
|
|
2704
|
-
const
|
|
2694
|
+
const de_WorkflowStepOutputUnion = (output, context) => {
|
|
2705
2695
|
if ((0, smithy_client_1.expectInt32)(output.integerValue) !== undefined) {
|
|
2706
2696
|
return { integerValue: (0, smithy_client_1.expectInt32)(output.integerValue) };
|
|
2707
2697
|
}
|
|
2708
2698
|
if (output.listOfStringValue != null) {
|
|
2709
2699
|
return {
|
|
2710
|
-
listOfStringValue:
|
|
2700
|
+
listOfStringValue: de_StringList(output.listOfStringValue, context),
|
|
2711
2701
|
};
|
|
2712
2702
|
}
|
|
2713
2703
|
if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
|
|
@@ -2715,26 +2705,26 @@ const deserializeAws_restJson1WorkflowStepOutputUnion = (output, context) => {
|
|
|
2715
2705
|
}
|
|
2716
2706
|
return { $unknown: Object.entries(output)[0] };
|
|
2717
2707
|
};
|
|
2718
|
-
const
|
|
2708
|
+
const de_WorkflowStepsSummaryList = (output, context) => {
|
|
2719
2709
|
const retVal = (output || [])
|
|
2720
2710
|
.filter((e) => e != null)
|
|
2721
2711
|
.map((entry) => {
|
|
2722
2712
|
if (entry === null) {
|
|
2723
2713
|
return null;
|
|
2724
2714
|
}
|
|
2725
|
-
return
|
|
2715
|
+
return de_WorkflowStepSummary(entry, context);
|
|
2726
2716
|
});
|
|
2727
2717
|
return retVal;
|
|
2728
2718
|
};
|
|
2729
|
-
const
|
|
2719
|
+
const de_WorkflowStepSummary = (output, context) => {
|
|
2730
2720
|
return {
|
|
2731
2721
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2732
2722
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2733
|
-
next: output.next != null ?
|
|
2723
|
+
next: output.next != null ? de_StringList(output.next, context) : undefined,
|
|
2734
2724
|
noOfSrvCompleted: (0, smithy_client_1.expectInt32)(output.noOfSrvCompleted),
|
|
2735
2725
|
noOfSrvFailed: (0, smithy_client_1.expectInt32)(output.noOfSrvFailed),
|
|
2736
2726
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
2737
|
-
previous: output.previous != null ?
|
|
2727
|
+
previous: output.previous != null ? de_StringList(output.previous, context) : undefined,
|
|
2738
2728
|
scriptLocation: (0, smithy_client_1.expectString)(output.scriptLocation),
|
|
2739
2729
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2740
2730
|
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|