@aws-sdk/client-migrationhuborchestrator 3.476.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +179 -382
- package/dist-es/protocols/Aws_restJson1.js +180 -383
- package/package.json +5 -4
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
4
|
exports.de_UpdateWorkflowStepGroupCommand = exports.de_UpdateWorkflowStepCommand = exports.de_UpdateWorkflowCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopWorkflowCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const MigrationHubOrchestratorServiceException_1 = require("../models/MigrationHubOrchestratorServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CreateWorkflowCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
b.bp("/migrationworkflow");
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
applicationConfigurationId: [],
|
|
@@ -22,23 +22,16 @@ const se_CreateWorkflowCommand = async (input, context) => {
|
|
|
22
22
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
23
23
|
templateId: [],
|
|
24
24
|
}));
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
hostname,
|
|
28
|
-
port,
|
|
29
|
-
method: "POST",
|
|
30
|
-
headers,
|
|
31
|
-
path: resolvedPath,
|
|
32
|
-
body,
|
|
33
|
-
});
|
|
25
|
+
b.m("POST").h(headers).b(body);
|
|
26
|
+
return b.build();
|
|
34
27
|
};
|
|
35
28
|
exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
|
|
36
29
|
const se_CreateWorkflowStepCommand = async (input, context) => {
|
|
37
|
-
const
|
|
30
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
38
31
|
const headers = {
|
|
39
32
|
"content-type": "application/json",
|
|
40
33
|
};
|
|
41
|
-
|
|
34
|
+
b.bp("/workflowstep");
|
|
42
35
|
let body;
|
|
43
36
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
44
37
|
description: [],
|
|
@@ -52,23 +45,16 @@ const se_CreateWorkflowStepCommand = async (input, context) => {
|
|
|
52
45
|
workflowId: [],
|
|
53
46
|
workflowStepAutomationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
54
47
|
}));
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
hostname,
|
|
58
|
-
port,
|
|
59
|
-
method: "POST",
|
|
60
|
-
headers,
|
|
61
|
-
path: resolvedPath,
|
|
62
|
-
body,
|
|
63
|
-
});
|
|
48
|
+
b.m("POST").h(headers).b(body);
|
|
49
|
+
return b.build();
|
|
64
50
|
};
|
|
65
51
|
exports.se_CreateWorkflowStepCommand = se_CreateWorkflowStepCommand;
|
|
66
52
|
const se_CreateWorkflowStepGroupCommand = async (input, context) => {
|
|
67
|
-
const
|
|
53
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
68
54
|
const headers = {
|
|
69
55
|
"content-type": "application/json",
|
|
70
56
|
};
|
|
71
|
-
|
|
57
|
+
b.bp("/workflowstepgroups");
|
|
72
58
|
let body;
|
|
73
59
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
74
60
|
description: [],
|
|
@@ -77,479 +63,303 @@ const se_CreateWorkflowStepGroupCommand = async (input, context) => {
|
|
|
77
63
|
previous: (_) => (0, smithy_client_1._json)(_),
|
|
78
64
|
workflowId: [],
|
|
79
65
|
}));
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
hostname,
|
|
83
|
-
port,
|
|
84
|
-
method: "POST",
|
|
85
|
-
headers,
|
|
86
|
-
path: resolvedPath,
|
|
87
|
-
body,
|
|
88
|
-
});
|
|
66
|
+
b.m("POST").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
89
68
|
};
|
|
90
69
|
exports.se_CreateWorkflowStepGroupCommand = se_CreateWorkflowStepGroupCommand;
|
|
91
70
|
const se_DeleteWorkflowCommand = async (input, context) => {
|
|
92
|
-
const
|
|
71
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
93
72
|
const headers = {};
|
|
94
|
-
|
|
95
|
-
|
|
73
|
+
b.bp("/migrationworkflow/{id}");
|
|
74
|
+
b.p("id", () => input.id, "{id}", false);
|
|
96
75
|
let body;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
hostname,
|
|
100
|
-
port,
|
|
101
|
-
method: "DELETE",
|
|
102
|
-
headers,
|
|
103
|
-
path: resolvedPath,
|
|
104
|
-
body,
|
|
105
|
-
});
|
|
76
|
+
b.m("DELETE").h(headers).b(body);
|
|
77
|
+
return b.build();
|
|
106
78
|
};
|
|
107
79
|
exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
|
|
108
80
|
const se_DeleteWorkflowStepCommand = async (input, context) => {
|
|
109
|
-
const
|
|
81
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
110
82
|
const headers = {};
|
|
111
|
-
|
|
112
|
-
|
|
83
|
+
b.bp("/workflowstep/{id}");
|
|
84
|
+
b.p("id", () => input.id, "{id}", false);
|
|
113
85
|
const query = (0, smithy_client_1.map)({
|
|
114
|
-
|
|
115
|
-
|
|
86
|
+
[_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
|
|
87
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
116
88
|
});
|
|
117
89
|
let body;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
hostname,
|
|
121
|
-
port,
|
|
122
|
-
method: "DELETE",
|
|
123
|
-
headers,
|
|
124
|
-
path: resolvedPath,
|
|
125
|
-
query,
|
|
126
|
-
body,
|
|
127
|
-
});
|
|
90
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
91
|
+
return b.build();
|
|
128
92
|
};
|
|
129
93
|
exports.se_DeleteWorkflowStepCommand = se_DeleteWorkflowStepCommand;
|
|
130
94
|
const se_DeleteWorkflowStepGroupCommand = async (input, context) => {
|
|
131
|
-
const
|
|
95
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
132
96
|
const headers = {};
|
|
133
|
-
|
|
134
|
-
|
|
97
|
+
b.bp("/workflowstepgroup/{id}");
|
|
98
|
+
b.p("id", () => input.id, "{id}", false);
|
|
135
99
|
const query = (0, smithy_client_1.map)({
|
|
136
|
-
|
|
100
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
137
101
|
});
|
|
138
102
|
let body;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
hostname,
|
|
142
|
-
port,
|
|
143
|
-
method: "DELETE",
|
|
144
|
-
headers,
|
|
145
|
-
path: resolvedPath,
|
|
146
|
-
query,
|
|
147
|
-
body,
|
|
148
|
-
});
|
|
103
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
104
|
+
return b.build();
|
|
149
105
|
};
|
|
150
106
|
exports.se_DeleteWorkflowStepGroupCommand = se_DeleteWorkflowStepGroupCommand;
|
|
151
107
|
const se_GetTemplateCommand = async (input, context) => {
|
|
152
|
-
const
|
|
108
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
153
109
|
const headers = {};
|
|
154
|
-
|
|
155
|
-
|
|
110
|
+
b.bp("/migrationworkflowtemplate/{id}");
|
|
111
|
+
b.p("id", () => input.id, "{id}", false);
|
|
156
112
|
let body;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
hostname,
|
|
160
|
-
port,
|
|
161
|
-
method: "GET",
|
|
162
|
-
headers,
|
|
163
|
-
path: resolvedPath,
|
|
164
|
-
body,
|
|
165
|
-
});
|
|
113
|
+
b.m("GET").h(headers).b(body);
|
|
114
|
+
return b.build();
|
|
166
115
|
};
|
|
167
116
|
exports.se_GetTemplateCommand = se_GetTemplateCommand;
|
|
168
117
|
const se_GetTemplateStepCommand = async (input, context) => {
|
|
169
|
-
const
|
|
118
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
170
119
|
const headers = {};
|
|
171
|
-
|
|
172
|
-
|
|
120
|
+
b.bp("/templatestep/{id}");
|
|
121
|
+
b.p("id", () => input.id, "{id}", false);
|
|
173
122
|
const query = (0, smithy_client_1.map)({
|
|
174
|
-
|
|
175
|
-
|
|
123
|
+
[_tI]: [, (0, smithy_client_1.expectNonNull)(input[_tI], `templateId`)],
|
|
124
|
+
[_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
|
|
176
125
|
});
|
|
177
126
|
let body;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
hostname,
|
|
181
|
-
port,
|
|
182
|
-
method: "GET",
|
|
183
|
-
headers,
|
|
184
|
-
path: resolvedPath,
|
|
185
|
-
query,
|
|
186
|
-
body,
|
|
187
|
-
});
|
|
127
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
128
|
+
return b.build();
|
|
188
129
|
};
|
|
189
130
|
exports.se_GetTemplateStepCommand = se_GetTemplateStepCommand;
|
|
190
131
|
const se_GetTemplateStepGroupCommand = async (input, context) => {
|
|
191
|
-
const
|
|
132
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
192
133
|
const headers = {};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
134
|
+
b.bp("/templates/{templateId}/stepgroups/{id}");
|
|
135
|
+
b.p("templateId", () => input.templateId, "{templateId}", false);
|
|
136
|
+
b.p("id", () => input.id, "{id}", false);
|
|
196
137
|
let body;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
hostname,
|
|
200
|
-
port,
|
|
201
|
-
method: "GET",
|
|
202
|
-
headers,
|
|
203
|
-
path: resolvedPath,
|
|
204
|
-
body,
|
|
205
|
-
});
|
|
138
|
+
b.m("GET").h(headers).b(body);
|
|
139
|
+
return b.build();
|
|
206
140
|
};
|
|
207
141
|
exports.se_GetTemplateStepGroupCommand = se_GetTemplateStepGroupCommand;
|
|
208
142
|
const se_GetWorkflowCommand = async (input, context) => {
|
|
209
|
-
const
|
|
143
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
210
144
|
const headers = {};
|
|
211
|
-
|
|
212
|
-
|
|
145
|
+
b.bp("/migrationworkflow/{id}");
|
|
146
|
+
b.p("id", () => input.id, "{id}", false);
|
|
213
147
|
let body;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
hostname,
|
|
217
|
-
port,
|
|
218
|
-
method: "GET",
|
|
219
|
-
headers,
|
|
220
|
-
path: resolvedPath,
|
|
221
|
-
body,
|
|
222
|
-
});
|
|
148
|
+
b.m("GET").h(headers).b(body);
|
|
149
|
+
return b.build();
|
|
223
150
|
};
|
|
224
151
|
exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
|
|
225
152
|
const se_GetWorkflowStepCommand = async (input, context) => {
|
|
226
|
-
const
|
|
153
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
227
154
|
const headers = {};
|
|
228
|
-
|
|
229
|
-
|
|
155
|
+
b.bp("/workflowstep/{id}");
|
|
156
|
+
b.p("id", () => input.id, "{id}", false);
|
|
230
157
|
const query = (0, smithy_client_1.map)({
|
|
231
|
-
|
|
232
|
-
|
|
158
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
159
|
+
[_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
|
|
233
160
|
});
|
|
234
161
|
let body;
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
hostname,
|
|
238
|
-
port,
|
|
239
|
-
method: "GET",
|
|
240
|
-
headers,
|
|
241
|
-
path: resolvedPath,
|
|
242
|
-
query,
|
|
243
|
-
body,
|
|
244
|
-
});
|
|
162
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
163
|
+
return b.build();
|
|
245
164
|
};
|
|
246
165
|
exports.se_GetWorkflowStepCommand = se_GetWorkflowStepCommand;
|
|
247
166
|
const se_GetWorkflowStepGroupCommand = async (input, context) => {
|
|
248
|
-
const
|
|
167
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
249
168
|
const headers = {};
|
|
250
|
-
|
|
251
|
-
|
|
169
|
+
b.bp("/workflowstepgroup/{id}");
|
|
170
|
+
b.p("id", () => input.id, "{id}", false);
|
|
252
171
|
const query = (0, smithy_client_1.map)({
|
|
253
|
-
|
|
172
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
254
173
|
});
|
|
255
174
|
let body;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
hostname,
|
|
259
|
-
port,
|
|
260
|
-
method: "GET",
|
|
261
|
-
headers,
|
|
262
|
-
path: resolvedPath,
|
|
263
|
-
query,
|
|
264
|
-
body,
|
|
265
|
-
});
|
|
175
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
176
|
+
return b.build();
|
|
266
177
|
};
|
|
267
178
|
exports.se_GetWorkflowStepGroupCommand = se_GetWorkflowStepGroupCommand;
|
|
268
179
|
const se_ListPluginsCommand = async (input, context) => {
|
|
269
|
-
const
|
|
180
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
270
181
|
const headers = {};
|
|
271
|
-
|
|
182
|
+
b.bp("/plugins");
|
|
272
183
|
const query = (0, smithy_client_1.map)({
|
|
273
|
-
|
|
274
|
-
|
|
184
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
185
|
+
[_nT]: [, input[_nT]],
|
|
275
186
|
});
|
|
276
187
|
let body;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
hostname,
|
|
280
|
-
port,
|
|
281
|
-
method: "GET",
|
|
282
|
-
headers,
|
|
283
|
-
path: resolvedPath,
|
|
284
|
-
query,
|
|
285
|
-
body,
|
|
286
|
-
});
|
|
188
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
189
|
+
return b.build();
|
|
287
190
|
};
|
|
288
191
|
exports.se_ListPluginsCommand = se_ListPluginsCommand;
|
|
289
192
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
290
|
-
const
|
|
193
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
291
194
|
const headers = {};
|
|
292
|
-
|
|
293
|
-
|
|
195
|
+
b.bp("/tags/{resourceArn}");
|
|
196
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
294
197
|
let body;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
hostname,
|
|
298
|
-
port,
|
|
299
|
-
method: "GET",
|
|
300
|
-
headers,
|
|
301
|
-
path: resolvedPath,
|
|
302
|
-
body,
|
|
303
|
-
});
|
|
198
|
+
b.m("GET").h(headers).b(body);
|
|
199
|
+
return b.build();
|
|
304
200
|
};
|
|
305
201
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
306
202
|
const se_ListTemplatesCommand = async (input, context) => {
|
|
307
|
-
const
|
|
203
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
308
204
|
const headers = {};
|
|
309
|
-
|
|
205
|
+
b.bp("/migrationworkflowtemplates");
|
|
310
206
|
const query = (0, smithy_client_1.map)({
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
207
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
208
|
+
[_nT]: [, input[_nT]],
|
|
209
|
+
[_n]: [, input[_n]],
|
|
314
210
|
});
|
|
315
211
|
let body;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
hostname,
|
|
319
|
-
port,
|
|
320
|
-
method: "GET",
|
|
321
|
-
headers,
|
|
322
|
-
path: resolvedPath,
|
|
323
|
-
query,
|
|
324
|
-
body,
|
|
325
|
-
});
|
|
212
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
213
|
+
return b.build();
|
|
326
214
|
};
|
|
327
215
|
exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
|
|
328
216
|
const se_ListTemplateStepGroupsCommand = async (input, context) => {
|
|
329
|
-
const
|
|
217
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
330
218
|
const headers = {};
|
|
331
|
-
|
|
332
|
-
|
|
219
|
+
b.bp("/templatestepgroups/{templateId}");
|
|
220
|
+
b.p("templateId", () => input.templateId, "{templateId}", false);
|
|
333
221
|
const query = (0, smithy_client_1.map)({
|
|
334
|
-
|
|
335
|
-
|
|
222
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
223
|
+
[_nT]: [, input[_nT]],
|
|
336
224
|
});
|
|
337
225
|
let body;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
hostname,
|
|
341
|
-
port,
|
|
342
|
-
method: "GET",
|
|
343
|
-
headers,
|
|
344
|
-
path: resolvedPath,
|
|
345
|
-
query,
|
|
346
|
-
body,
|
|
347
|
-
});
|
|
226
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
227
|
+
return b.build();
|
|
348
228
|
};
|
|
349
229
|
exports.se_ListTemplateStepGroupsCommand = se_ListTemplateStepGroupsCommand;
|
|
350
230
|
const se_ListTemplateStepsCommand = async (input, context) => {
|
|
351
|
-
const
|
|
231
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
232
|
const headers = {};
|
|
353
|
-
|
|
233
|
+
b.bp("/templatesteps");
|
|
354
234
|
const query = (0, smithy_client_1.map)({
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
235
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
236
|
+
[_nT]: [, input[_nT]],
|
|
237
|
+
[_tI]: [, (0, smithy_client_1.expectNonNull)(input[_tI], `templateId`)],
|
|
238
|
+
[_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
|
|
359
239
|
});
|
|
360
240
|
let body;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
hostname,
|
|
364
|
-
port,
|
|
365
|
-
method: "GET",
|
|
366
|
-
headers,
|
|
367
|
-
path: resolvedPath,
|
|
368
|
-
query,
|
|
369
|
-
body,
|
|
370
|
-
});
|
|
241
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
242
|
+
return b.build();
|
|
371
243
|
};
|
|
372
244
|
exports.se_ListTemplateStepsCommand = se_ListTemplateStepsCommand;
|
|
373
245
|
const se_ListWorkflowsCommand = async (input, context) => {
|
|
374
|
-
const
|
|
246
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
375
247
|
const headers = {};
|
|
376
|
-
|
|
248
|
+
b.bp("/migrationworkflows");
|
|
377
249
|
const query = (0, smithy_client_1.map)({
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
250
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
251
|
+
[_nT]: [, input[_nT]],
|
|
252
|
+
[_tI]: [, input[_tI]],
|
|
253
|
+
[_aACN]: [, input[_aACN]],
|
|
254
|
+
[_s]: [, input[_s]],
|
|
255
|
+
[_n]: [, input[_n]],
|
|
384
256
|
});
|
|
385
257
|
let body;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
hostname,
|
|
389
|
-
port,
|
|
390
|
-
method: "GET",
|
|
391
|
-
headers,
|
|
392
|
-
path: resolvedPath,
|
|
393
|
-
query,
|
|
394
|
-
body,
|
|
395
|
-
});
|
|
258
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
259
|
+
return b.build();
|
|
396
260
|
};
|
|
397
261
|
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
398
262
|
const se_ListWorkflowStepGroupsCommand = async (input, context) => {
|
|
399
|
-
const
|
|
263
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
400
264
|
const headers = {};
|
|
401
|
-
|
|
265
|
+
b.bp("/workflowstepgroups");
|
|
402
266
|
const query = (0, smithy_client_1.map)({
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
267
|
+
[_nT]: [, input[_nT]],
|
|
268
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
269
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
406
270
|
});
|
|
407
271
|
let body;
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
hostname,
|
|
411
|
-
port,
|
|
412
|
-
method: "GET",
|
|
413
|
-
headers,
|
|
414
|
-
path: resolvedPath,
|
|
415
|
-
query,
|
|
416
|
-
body,
|
|
417
|
-
});
|
|
272
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
273
|
+
return b.build();
|
|
418
274
|
};
|
|
419
275
|
exports.se_ListWorkflowStepGroupsCommand = se_ListWorkflowStepGroupsCommand;
|
|
420
276
|
const se_ListWorkflowStepsCommand = async (input, context) => {
|
|
421
|
-
const
|
|
277
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
422
278
|
const headers = {};
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "stepGroupId", () => input.stepGroupId, "{stepGroupId}", false);
|
|
279
|
+
b.bp("/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps");
|
|
280
|
+
b.p("workflowId", () => input.workflowId, "{workflowId}", false);
|
|
281
|
+
b.p("stepGroupId", () => input.stepGroupId, "{stepGroupId}", false);
|
|
427
282
|
const query = (0, smithy_client_1.map)({
|
|
428
|
-
|
|
429
|
-
|
|
283
|
+
[_nT]: [, input[_nT]],
|
|
284
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
430
285
|
});
|
|
431
286
|
let body;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
hostname,
|
|
435
|
-
port,
|
|
436
|
-
method: "GET",
|
|
437
|
-
headers,
|
|
438
|
-
path: resolvedPath,
|
|
439
|
-
query,
|
|
440
|
-
body,
|
|
441
|
-
});
|
|
287
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
288
|
+
return b.build();
|
|
442
289
|
};
|
|
443
290
|
exports.se_ListWorkflowStepsCommand = se_ListWorkflowStepsCommand;
|
|
444
291
|
const se_RetryWorkflowStepCommand = async (input, context) => {
|
|
445
|
-
const
|
|
292
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
446
293
|
const headers = {};
|
|
447
|
-
|
|
448
|
-
|
|
294
|
+
b.bp("/retryworkflowstep/{id}");
|
|
295
|
+
b.p("id", () => input.id, "{id}", false);
|
|
449
296
|
const query = (0, smithy_client_1.map)({
|
|
450
|
-
|
|
451
|
-
|
|
297
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
298
|
+
[_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
|
|
452
299
|
});
|
|
453
300
|
let body;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
hostname,
|
|
457
|
-
port,
|
|
458
|
-
method: "POST",
|
|
459
|
-
headers,
|
|
460
|
-
path: resolvedPath,
|
|
461
|
-
query,
|
|
462
|
-
body,
|
|
463
|
-
});
|
|
301
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
302
|
+
return b.build();
|
|
464
303
|
};
|
|
465
304
|
exports.se_RetryWorkflowStepCommand = se_RetryWorkflowStepCommand;
|
|
466
305
|
const se_StartWorkflowCommand = async (input, context) => {
|
|
467
|
-
const
|
|
306
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
468
307
|
const headers = {};
|
|
469
|
-
|
|
470
|
-
|
|
308
|
+
b.bp("/migrationworkflow/{id}/start");
|
|
309
|
+
b.p("id", () => input.id, "{id}", false);
|
|
471
310
|
let body;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
hostname,
|
|
475
|
-
port,
|
|
476
|
-
method: "POST",
|
|
477
|
-
headers,
|
|
478
|
-
path: resolvedPath,
|
|
479
|
-
body,
|
|
480
|
-
});
|
|
311
|
+
b.m("POST").h(headers).b(body);
|
|
312
|
+
return b.build();
|
|
481
313
|
};
|
|
482
314
|
exports.se_StartWorkflowCommand = se_StartWorkflowCommand;
|
|
483
315
|
const se_StopWorkflowCommand = async (input, context) => {
|
|
484
|
-
const
|
|
316
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
485
317
|
const headers = {};
|
|
486
|
-
|
|
487
|
-
|
|
318
|
+
b.bp("/migrationworkflow/{id}/stop");
|
|
319
|
+
b.p("id", () => input.id, "{id}", false);
|
|
488
320
|
let body;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
hostname,
|
|
492
|
-
port,
|
|
493
|
-
method: "POST",
|
|
494
|
-
headers,
|
|
495
|
-
path: resolvedPath,
|
|
496
|
-
body,
|
|
497
|
-
});
|
|
321
|
+
b.m("POST").h(headers).b(body);
|
|
322
|
+
return b.build();
|
|
498
323
|
};
|
|
499
324
|
exports.se_StopWorkflowCommand = se_StopWorkflowCommand;
|
|
500
325
|
const se_TagResourceCommand = async (input, context) => {
|
|
501
|
-
const
|
|
326
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
502
327
|
const headers = {
|
|
503
328
|
"content-type": "application/json",
|
|
504
329
|
};
|
|
505
|
-
|
|
506
|
-
|
|
330
|
+
b.bp("/tags/{resourceArn}");
|
|
331
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
507
332
|
let body;
|
|
508
333
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
509
334
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
510
335
|
}));
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
hostname,
|
|
514
|
-
port,
|
|
515
|
-
method: "POST",
|
|
516
|
-
headers,
|
|
517
|
-
path: resolvedPath,
|
|
518
|
-
body,
|
|
519
|
-
});
|
|
336
|
+
b.m("POST").h(headers).b(body);
|
|
337
|
+
return b.build();
|
|
520
338
|
};
|
|
521
339
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
522
340
|
const se_UntagResourceCommand = async (input, context) => {
|
|
523
|
-
const
|
|
341
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
524
342
|
const headers = {};
|
|
525
|
-
|
|
526
|
-
|
|
343
|
+
b.bp("/tags/{resourceArn}");
|
|
344
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
527
345
|
const query = (0, smithy_client_1.map)({
|
|
528
|
-
|
|
346
|
+
[_tK]: [
|
|
529
347
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
530
|
-
() => (input
|
|
348
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
531
349
|
],
|
|
532
350
|
});
|
|
533
351
|
let body;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
hostname,
|
|
537
|
-
port,
|
|
538
|
-
method: "DELETE",
|
|
539
|
-
headers,
|
|
540
|
-
path: resolvedPath,
|
|
541
|
-
query,
|
|
542
|
-
body,
|
|
543
|
-
});
|
|
352
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
353
|
+
return b.build();
|
|
544
354
|
};
|
|
545
355
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
546
356
|
const se_UpdateWorkflowCommand = async (input, context) => {
|
|
547
|
-
const
|
|
357
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
548
358
|
const headers = {
|
|
549
359
|
"content-type": "application/json",
|
|
550
360
|
};
|
|
551
|
-
|
|
552
|
-
|
|
361
|
+
b.bp("/migrationworkflow/{id}");
|
|
362
|
+
b.p("id", () => input.id, "{id}", false);
|
|
553
363
|
let body;
|
|
554
364
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
555
365
|
description: [],
|
|
@@ -557,24 +367,17 @@ const se_UpdateWorkflowCommand = async (input, context) => {
|
|
|
557
367
|
name: [],
|
|
558
368
|
stepTargets: (_) => (0, smithy_client_1._json)(_),
|
|
559
369
|
}));
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
hostname,
|
|
563
|
-
port,
|
|
564
|
-
method: "POST",
|
|
565
|
-
headers,
|
|
566
|
-
path: resolvedPath,
|
|
567
|
-
body,
|
|
568
|
-
});
|
|
370
|
+
b.m("POST").h(headers).b(body);
|
|
371
|
+
return b.build();
|
|
569
372
|
};
|
|
570
373
|
exports.se_UpdateWorkflowCommand = se_UpdateWorkflowCommand;
|
|
571
374
|
const se_UpdateWorkflowStepCommand = async (input, context) => {
|
|
572
|
-
const
|
|
375
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
573
376
|
const headers = {
|
|
574
377
|
"content-type": "application/json",
|
|
575
378
|
};
|
|
576
|
-
|
|
577
|
-
|
|
379
|
+
b.bp("/workflowstep/{id}");
|
|
380
|
+
b.p("id", () => input.id, "{id}", false);
|
|
578
381
|
let body;
|
|
579
382
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
580
383
|
description: [],
|
|
@@ -589,26 +392,19 @@ const se_UpdateWorkflowStepCommand = async (input, context) => {
|
|
|
589
392
|
workflowId: [],
|
|
590
393
|
workflowStepAutomationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
591
394
|
}));
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
hostname,
|
|
595
|
-
port,
|
|
596
|
-
method: "POST",
|
|
597
|
-
headers,
|
|
598
|
-
path: resolvedPath,
|
|
599
|
-
body,
|
|
600
|
-
});
|
|
395
|
+
b.m("POST").h(headers).b(body);
|
|
396
|
+
return b.build();
|
|
601
397
|
};
|
|
602
398
|
exports.se_UpdateWorkflowStepCommand = se_UpdateWorkflowStepCommand;
|
|
603
399
|
const se_UpdateWorkflowStepGroupCommand = async (input, context) => {
|
|
604
|
-
const
|
|
400
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
605
401
|
const headers = {
|
|
606
402
|
"content-type": "application/json",
|
|
607
403
|
};
|
|
608
|
-
|
|
609
|
-
|
|
404
|
+
b.bp("/workflowstepgroup/{id}");
|
|
405
|
+
b.p("id", () => input.id, "{id}", false);
|
|
610
406
|
const query = (0, smithy_client_1.map)({
|
|
611
|
-
|
|
407
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
612
408
|
});
|
|
613
409
|
let body;
|
|
614
410
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -617,16 +413,8 @@ const se_UpdateWorkflowStepGroupCommand = async (input, context) => {
|
|
|
617
413
|
next: (_) => (0, smithy_client_1._json)(_),
|
|
618
414
|
previous: (_) => (0, smithy_client_1._json)(_),
|
|
619
415
|
}));
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
hostname,
|
|
623
|
-
port,
|
|
624
|
-
method: "POST",
|
|
625
|
-
headers,
|
|
626
|
-
path: resolvedPath,
|
|
627
|
-
query,
|
|
628
|
-
body,
|
|
629
|
-
});
|
|
416
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
417
|
+
return b.build();
|
|
630
418
|
};
|
|
631
419
|
exports.se_UpdateWorkflowStepGroupCommand = se_UpdateWorkflowStepGroupCommand;
|
|
632
420
|
const de_CreateWorkflowCommand = async (output, context) => {
|
|
@@ -2071,6 +1859,15 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2071
1859
|
value !== "" &&
|
|
2072
1860
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2073
1861
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1862
|
+
const _aACN = "adsApplicationConfigurationName";
|
|
1863
|
+
const _mR = "maxResults";
|
|
1864
|
+
const _n = "name";
|
|
1865
|
+
const _nT = "nextToken";
|
|
1866
|
+
const _s = "status";
|
|
1867
|
+
const _sGI = "stepGroupId";
|
|
1868
|
+
const _tI = "templateId";
|
|
1869
|
+
const _tK = "tagKeys";
|
|
1870
|
+
const _wI = "workflowId";
|
|
2074
1871
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2075
1872
|
if (encoded.length) {
|
|
2076
1873
|
return JSON.parse(encoded);
|