@aws-sdk/client-sfn 3.315.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/SFN.js +30 -364
- package/dist-es/SFN.js +30 -364
- package/dist-types/SFN.d.ts +48 -239
- package/dist-types/ts3.4/SFN.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/SFN.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SFN = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateActivityCommand_1 = require("./commands/CreateActivityCommand");
|
|
5
6
|
const CreateStateMachineCommand_1 = require("./commands/CreateStateMachineCommand");
|
|
6
7
|
const DeleteActivityCommand_1 = require("./commands/DeleteActivityCommand");
|
|
@@ -28,370 +29,35 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
28
29
|
const UpdateMapRunCommand_1 = require("./commands/UpdateMapRunCommand");
|
|
29
30
|
const UpdateStateMachineCommand_1 = require("./commands/UpdateStateMachineCommand");
|
|
30
31
|
const SFNClient_1 = require("./SFNClient");
|
|
32
|
+
const commands = {
|
|
33
|
+
CreateActivityCommand: CreateActivityCommand_1.CreateActivityCommand,
|
|
34
|
+
CreateStateMachineCommand: CreateStateMachineCommand_1.CreateStateMachineCommand,
|
|
35
|
+
DeleteActivityCommand: DeleteActivityCommand_1.DeleteActivityCommand,
|
|
36
|
+
DeleteStateMachineCommand: DeleteStateMachineCommand_1.DeleteStateMachineCommand,
|
|
37
|
+
DescribeActivityCommand: DescribeActivityCommand_1.DescribeActivityCommand,
|
|
38
|
+
DescribeExecutionCommand: DescribeExecutionCommand_1.DescribeExecutionCommand,
|
|
39
|
+
DescribeMapRunCommand: DescribeMapRunCommand_1.DescribeMapRunCommand,
|
|
40
|
+
DescribeStateMachineCommand: DescribeStateMachineCommand_1.DescribeStateMachineCommand,
|
|
41
|
+
DescribeStateMachineForExecutionCommand: DescribeStateMachineForExecutionCommand_1.DescribeStateMachineForExecutionCommand,
|
|
42
|
+
GetActivityTaskCommand: GetActivityTaskCommand_1.GetActivityTaskCommand,
|
|
43
|
+
GetExecutionHistoryCommand: GetExecutionHistoryCommand_1.GetExecutionHistoryCommand,
|
|
44
|
+
ListActivitiesCommand: ListActivitiesCommand_1.ListActivitiesCommand,
|
|
45
|
+
ListExecutionsCommand: ListExecutionsCommand_1.ListExecutionsCommand,
|
|
46
|
+
ListMapRunsCommand: ListMapRunsCommand_1.ListMapRunsCommand,
|
|
47
|
+
ListStateMachinesCommand: ListStateMachinesCommand_1.ListStateMachinesCommand,
|
|
48
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
49
|
+
SendTaskFailureCommand: SendTaskFailureCommand_1.SendTaskFailureCommand,
|
|
50
|
+
SendTaskHeartbeatCommand: SendTaskHeartbeatCommand_1.SendTaskHeartbeatCommand,
|
|
51
|
+
SendTaskSuccessCommand: SendTaskSuccessCommand_1.SendTaskSuccessCommand,
|
|
52
|
+
StartExecutionCommand: StartExecutionCommand_1.StartExecutionCommand,
|
|
53
|
+
StartSyncExecutionCommand: StartSyncExecutionCommand_1.StartSyncExecutionCommand,
|
|
54
|
+
StopExecutionCommand: StopExecutionCommand_1.StopExecutionCommand,
|
|
55
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
56
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
57
|
+
UpdateMapRunCommand: UpdateMapRunCommand_1.UpdateMapRunCommand,
|
|
58
|
+
UpdateStateMachineCommand: UpdateStateMachineCommand_1.UpdateStateMachineCommand,
|
|
59
|
+
};
|
|
31
60
|
class SFN extends SFNClient_1.SFNClient {
|
|
32
|
-
createActivity(args, optionsOrCb, cb) {
|
|
33
|
-
const command = new CreateActivityCommand_1.CreateActivityCommand(args);
|
|
34
|
-
if (typeof optionsOrCb === "function") {
|
|
35
|
-
this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
else if (typeof cb === "function") {
|
|
38
|
-
if (typeof optionsOrCb !== "object")
|
|
39
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
40
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
createStateMachine(args, optionsOrCb, cb) {
|
|
47
|
-
const command = new CreateStateMachineCommand_1.CreateStateMachineCommand(args);
|
|
48
|
-
if (typeof optionsOrCb === "function") {
|
|
49
|
-
this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
else if (typeof cb === "function") {
|
|
52
|
-
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
deleteActivity(args, optionsOrCb, cb) {
|
|
61
|
-
const command = new DeleteActivityCommand_1.DeleteActivityCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
else if (typeof cb === "function") {
|
|
66
|
-
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
68
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
deleteStateMachine(args, optionsOrCb, cb) {
|
|
75
|
-
const command = new DeleteStateMachineCommand_1.DeleteStateMachineCommand(args);
|
|
76
|
-
if (typeof optionsOrCb === "function") {
|
|
77
|
-
this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof cb === "function") {
|
|
80
|
-
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
describeActivity(args, optionsOrCb, cb) {
|
|
89
|
-
const command = new DescribeActivityCommand_1.DescribeActivityCommand(args);
|
|
90
|
-
if (typeof optionsOrCb === "function") {
|
|
91
|
-
this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
else if (typeof cb === "function") {
|
|
94
|
-
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
describeExecution(args, optionsOrCb, cb) {
|
|
103
|
-
const command = new DescribeExecutionCommand_1.DescribeExecutionCommand(args);
|
|
104
|
-
if (typeof optionsOrCb === "function") {
|
|
105
|
-
this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
110
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
describeMapRun(args, optionsOrCb, cb) {
|
|
117
|
-
const command = new DescribeMapRunCommand_1.DescribeMapRunCommand(args);
|
|
118
|
-
if (typeof optionsOrCb === "function") {
|
|
119
|
-
this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
else if (typeof cb === "function") {
|
|
122
|
-
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
124
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
describeStateMachine(args, optionsOrCb, cb) {
|
|
131
|
-
const command = new DescribeStateMachineCommand_1.DescribeStateMachineCommand(args);
|
|
132
|
-
if (typeof optionsOrCb === "function") {
|
|
133
|
-
this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof cb === "function") {
|
|
136
|
-
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
describeStateMachineForExecution(args, optionsOrCb, cb) {
|
|
145
|
-
const command = new DescribeStateMachineForExecutionCommand_1.DescribeStateMachineForExecutionCommand(args);
|
|
146
|
-
if (typeof optionsOrCb === "function") {
|
|
147
|
-
this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
else if (typeof cb === "function") {
|
|
150
|
-
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
152
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
getActivityTask(args, optionsOrCb, cb) {
|
|
159
|
-
const command = new GetActivityTaskCommand_1.GetActivityTaskCommand(args);
|
|
160
|
-
if (typeof optionsOrCb === "function") {
|
|
161
|
-
this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
else if (typeof cb === "function") {
|
|
164
|
-
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
getExecutionHistory(args, optionsOrCb, cb) {
|
|
173
|
-
const command = new GetExecutionHistoryCommand_1.GetExecutionHistoryCommand(args);
|
|
174
|
-
if (typeof optionsOrCb === "function") {
|
|
175
|
-
this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
else if (typeof cb === "function") {
|
|
178
|
-
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
listActivities(args, optionsOrCb, cb) {
|
|
187
|
-
const command = new ListActivitiesCommand_1.ListActivitiesCommand(args);
|
|
188
|
-
if (typeof optionsOrCb === "function") {
|
|
189
|
-
this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
else if (typeof cb === "function") {
|
|
192
|
-
if (typeof optionsOrCb !== "object")
|
|
193
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
194
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return this.send(command, optionsOrCb);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
listExecutions(args, optionsOrCb, cb) {
|
|
201
|
-
const command = new ListExecutionsCommand_1.ListExecutionsCommand(args);
|
|
202
|
-
if (typeof optionsOrCb === "function") {
|
|
203
|
-
this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
else if (typeof cb === "function") {
|
|
206
|
-
if (typeof optionsOrCb !== "object")
|
|
207
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
208
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
return this.send(command, optionsOrCb);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
listMapRuns(args, optionsOrCb, cb) {
|
|
215
|
-
const command = new ListMapRunsCommand_1.ListMapRunsCommand(args);
|
|
216
|
-
if (typeof optionsOrCb === "function") {
|
|
217
|
-
this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
else if (typeof cb === "function") {
|
|
220
|
-
if (typeof optionsOrCb !== "object")
|
|
221
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
222
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
return this.send(command, optionsOrCb);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
listStateMachines(args, optionsOrCb, cb) {
|
|
229
|
-
const command = new ListStateMachinesCommand_1.ListStateMachinesCommand(args);
|
|
230
|
-
if (typeof optionsOrCb === "function") {
|
|
231
|
-
this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
else if (typeof cb === "function") {
|
|
234
|
-
if (typeof optionsOrCb !== "object")
|
|
235
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
236
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
return this.send(command, optionsOrCb);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
243
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
244
|
-
if (typeof optionsOrCb === "function") {
|
|
245
|
-
this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
else if (typeof cb === "function") {
|
|
248
|
-
if (typeof optionsOrCb !== "object")
|
|
249
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
250
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
251
|
-
}
|
|
252
|
-
else {
|
|
253
|
-
return this.send(command, optionsOrCb);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
sendTaskFailure(args, optionsOrCb, cb) {
|
|
257
|
-
const command = new SendTaskFailureCommand_1.SendTaskFailureCommand(args);
|
|
258
|
-
if (typeof optionsOrCb === "function") {
|
|
259
|
-
this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
else if (typeof cb === "function") {
|
|
262
|
-
if (typeof optionsOrCb !== "object")
|
|
263
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
264
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
return this.send(command, optionsOrCb);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
sendTaskHeartbeat(args, optionsOrCb, cb) {
|
|
271
|
-
const command = new SendTaskHeartbeatCommand_1.SendTaskHeartbeatCommand(args);
|
|
272
|
-
if (typeof optionsOrCb === "function") {
|
|
273
|
-
this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
else if (typeof cb === "function") {
|
|
276
|
-
if (typeof optionsOrCb !== "object")
|
|
277
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
278
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
return this.send(command, optionsOrCb);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
sendTaskSuccess(args, optionsOrCb, cb) {
|
|
285
|
-
const command = new SendTaskSuccessCommand_1.SendTaskSuccessCommand(args);
|
|
286
|
-
if (typeof optionsOrCb === "function") {
|
|
287
|
-
this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
else if (typeof cb === "function") {
|
|
290
|
-
if (typeof optionsOrCb !== "object")
|
|
291
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
292
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
return this.send(command, optionsOrCb);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
startExecution(args, optionsOrCb, cb) {
|
|
299
|
-
const command = new StartExecutionCommand_1.StartExecutionCommand(args);
|
|
300
|
-
if (typeof optionsOrCb === "function") {
|
|
301
|
-
this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
else if (typeof cb === "function") {
|
|
304
|
-
if (typeof optionsOrCb !== "object")
|
|
305
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
306
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
return this.send(command, optionsOrCb);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
startSyncExecution(args, optionsOrCb, cb) {
|
|
313
|
-
const command = new StartSyncExecutionCommand_1.StartSyncExecutionCommand(args);
|
|
314
|
-
if (typeof optionsOrCb === "function") {
|
|
315
|
-
this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
else if (typeof cb === "function") {
|
|
318
|
-
if (typeof optionsOrCb !== "object")
|
|
319
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
320
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
return this.send(command, optionsOrCb);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
stopExecution(args, optionsOrCb, cb) {
|
|
327
|
-
const command = new StopExecutionCommand_1.StopExecutionCommand(args);
|
|
328
|
-
if (typeof optionsOrCb === "function") {
|
|
329
|
-
this.send(command, optionsOrCb);
|
|
330
|
-
}
|
|
331
|
-
else if (typeof cb === "function") {
|
|
332
|
-
if (typeof optionsOrCb !== "object")
|
|
333
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
334
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
335
|
-
}
|
|
336
|
-
else {
|
|
337
|
-
return this.send(command, optionsOrCb);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
tagResource(args, optionsOrCb, cb) {
|
|
341
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
342
|
-
if (typeof optionsOrCb === "function") {
|
|
343
|
-
this.send(command, optionsOrCb);
|
|
344
|
-
}
|
|
345
|
-
else if (typeof cb === "function") {
|
|
346
|
-
if (typeof optionsOrCb !== "object")
|
|
347
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
348
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
return this.send(command, optionsOrCb);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
untagResource(args, optionsOrCb, cb) {
|
|
355
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
356
|
-
if (typeof optionsOrCb === "function") {
|
|
357
|
-
this.send(command, optionsOrCb);
|
|
358
|
-
}
|
|
359
|
-
else if (typeof cb === "function") {
|
|
360
|
-
if (typeof optionsOrCb !== "object")
|
|
361
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
362
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
return this.send(command, optionsOrCb);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
updateMapRun(args, optionsOrCb, cb) {
|
|
369
|
-
const command = new UpdateMapRunCommand_1.UpdateMapRunCommand(args);
|
|
370
|
-
if (typeof optionsOrCb === "function") {
|
|
371
|
-
this.send(command, optionsOrCb);
|
|
372
|
-
}
|
|
373
|
-
else if (typeof cb === "function") {
|
|
374
|
-
if (typeof optionsOrCb !== "object")
|
|
375
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
376
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
return this.send(command, optionsOrCb);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
updateStateMachine(args, optionsOrCb, cb) {
|
|
383
|
-
const command = new UpdateStateMachineCommand_1.UpdateStateMachineCommand(args);
|
|
384
|
-
if (typeof optionsOrCb === "function") {
|
|
385
|
-
this.send(command, optionsOrCb);
|
|
386
|
-
}
|
|
387
|
-
else if (typeof cb === "function") {
|
|
388
|
-
if (typeof optionsOrCb !== "object")
|
|
389
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
390
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
return this.send(command, optionsOrCb);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
61
|
}
|
|
397
62
|
exports.SFN = SFN;
|
|
63
|
+
(0, smithy_client_1.createAggregatedClient)(commands, SFN);
|
package/dist-es/SFN.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateActivityCommand, } from "./commands/CreateActivityCommand";
|
|
2
3
|
import { CreateStateMachineCommand, } from "./commands/CreateStateMachineCommand";
|
|
3
4
|
import { DeleteActivityCommand, } from "./commands/DeleteActivityCommand";
|
|
@@ -25,369 +26,34 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
25
26
|
import { UpdateMapRunCommand, } from "./commands/UpdateMapRunCommand";
|
|
26
27
|
import { UpdateStateMachineCommand, } from "./commands/UpdateStateMachineCommand";
|
|
27
28
|
import { SFNClient } from "./SFNClient";
|
|
29
|
+
const commands = {
|
|
30
|
+
CreateActivityCommand,
|
|
31
|
+
CreateStateMachineCommand,
|
|
32
|
+
DeleteActivityCommand,
|
|
33
|
+
DeleteStateMachineCommand,
|
|
34
|
+
DescribeActivityCommand,
|
|
35
|
+
DescribeExecutionCommand,
|
|
36
|
+
DescribeMapRunCommand,
|
|
37
|
+
DescribeStateMachineCommand,
|
|
38
|
+
DescribeStateMachineForExecutionCommand,
|
|
39
|
+
GetActivityTaskCommand,
|
|
40
|
+
GetExecutionHistoryCommand,
|
|
41
|
+
ListActivitiesCommand,
|
|
42
|
+
ListExecutionsCommand,
|
|
43
|
+
ListMapRunsCommand,
|
|
44
|
+
ListStateMachinesCommand,
|
|
45
|
+
ListTagsForResourceCommand,
|
|
46
|
+
SendTaskFailureCommand,
|
|
47
|
+
SendTaskHeartbeatCommand,
|
|
48
|
+
SendTaskSuccessCommand,
|
|
49
|
+
StartExecutionCommand,
|
|
50
|
+
StartSyncExecutionCommand,
|
|
51
|
+
StopExecutionCommand,
|
|
52
|
+
TagResourceCommand,
|
|
53
|
+
UntagResourceCommand,
|
|
54
|
+
UpdateMapRunCommand,
|
|
55
|
+
UpdateStateMachineCommand,
|
|
56
|
+
};
|
|
28
57
|
export class SFN extends SFNClient {
|
|
29
|
-
createActivity(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new CreateActivityCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
createStateMachine(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new CreateStateMachineCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
deleteActivity(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new DeleteActivityCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
deleteStateMachine(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new DeleteStateMachineCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
describeActivity(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new DescribeActivityCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
describeExecution(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new DescribeExecutionCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
describeMapRun(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new DescribeMapRunCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
describeStateMachine(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new DescribeStateMachineCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
describeStateMachineForExecution(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new DescribeStateMachineForExecutionCommand(args);
|
|
143
|
-
if (typeof optionsOrCb === "function") {
|
|
144
|
-
this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
getActivityTask(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new GetActivityTaskCommand(args);
|
|
157
|
-
if (typeof optionsOrCb === "function") {
|
|
158
|
-
this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
else if (typeof cb === "function") {
|
|
161
|
-
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
getExecutionHistory(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new GetExecutionHistoryCommand(args);
|
|
171
|
-
if (typeof optionsOrCb === "function") {
|
|
172
|
-
this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
else if (typeof cb === "function") {
|
|
175
|
-
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
return this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
listActivities(args, optionsOrCb, cb) {
|
|
184
|
-
const command = new ListActivitiesCommand(args);
|
|
185
|
-
if (typeof optionsOrCb === "function") {
|
|
186
|
-
this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
else if (typeof cb === "function") {
|
|
189
|
-
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
return this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
listExecutions(args, optionsOrCb, cb) {
|
|
198
|
-
const command = new ListExecutionsCommand(args);
|
|
199
|
-
if (typeof optionsOrCb === "function") {
|
|
200
|
-
this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
else if (typeof cb === "function") {
|
|
203
|
-
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
return this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
listMapRuns(args, optionsOrCb, cb) {
|
|
212
|
-
const command = new ListMapRunsCommand(args);
|
|
213
|
-
if (typeof optionsOrCb === "function") {
|
|
214
|
-
this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
else if (typeof cb === "function") {
|
|
217
|
-
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
return this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
listStateMachines(args, optionsOrCb, cb) {
|
|
226
|
-
const command = new ListStateMachinesCommand(args);
|
|
227
|
-
if (typeof optionsOrCb === "function") {
|
|
228
|
-
this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
else if (typeof cb === "function") {
|
|
231
|
-
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
return this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
240
|
-
const command = new ListTagsForResourceCommand(args);
|
|
241
|
-
if (typeof optionsOrCb === "function") {
|
|
242
|
-
this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
else if (typeof cb === "function") {
|
|
245
|
-
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
return this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
sendTaskFailure(args, optionsOrCb, cb) {
|
|
254
|
-
const command = new SendTaskFailureCommand(args);
|
|
255
|
-
if (typeof optionsOrCb === "function") {
|
|
256
|
-
this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
else if (typeof cb === "function") {
|
|
259
|
-
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
return this.send(command, optionsOrCb);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
sendTaskHeartbeat(args, optionsOrCb, cb) {
|
|
268
|
-
const command = new SendTaskHeartbeatCommand(args);
|
|
269
|
-
if (typeof optionsOrCb === "function") {
|
|
270
|
-
this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
else if (typeof cb === "function") {
|
|
273
|
-
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
return this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
sendTaskSuccess(args, optionsOrCb, cb) {
|
|
282
|
-
const command = new SendTaskSuccessCommand(args);
|
|
283
|
-
if (typeof optionsOrCb === "function") {
|
|
284
|
-
this.send(command, optionsOrCb);
|
|
285
|
-
}
|
|
286
|
-
else if (typeof cb === "function") {
|
|
287
|
-
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
return this.send(command, optionsOrCb);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
startExecution(args, optionsOrCb, cb) {
|
|
296
|
-
const command = new StartExecutionCommand(args);
|
|
297
|
-
if (typeof optionsOrCb === "function") {
|
|
298
|
-
this.send(command, optionsOrCb);
|
|
299
|
-
}
|
|
300
|
-
else if (typeof cb === "function") {
|
|
301
|
-
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
return this.send(command, optionsOrCb);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
startSyncExecution(args, optionsOrCb, cb) {
|
|
310
|
-
const command = new StartSyncExecutionCommand(args);
|
|
311
|
-
if (typeof optionsOrCb === "function") {
|
|
312
|
-
this.send(command, optionsOrCb);
|
|
313
|
-
}
|
|
314
|
-
else if (typeof cb === "function") {
|
|
315
|
-
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
return this.send(command, optionsOrCb);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
stopExecution(args, optionsOrCb, cb) {
|
|
324
|
-
const command = new StopExecutionCommand(args);
|
|
325
|
-
if (typeof optionsOrCb === "function") {
|
|
326
|
-
this.send(command, optionsOrCb);
|
|
327
|
-
}
|
|
328
|
-
else if (typeof cb === "function") {
|
|
329
|
-
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
return this.send(command, optionsOrCb);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
tagResource(args, optionsOrCb, cb) {
|
|
338
|
-
const command = new TagResourceCommand(args);
|
|
339
|
-
if (typeof optionsOrCb === "function") {
|
|
340
|
-
this.send(command, optionsOrCb);
|
|
341
|
-
}
|
|
342
|
-
else if (typeof cb === "function") {
|
|
343
|
-
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
return this.send(command, optionsOrCb);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
untagResource(args, optionsOrCb, cb) {
|
|
352
|
-
const command = new UntagResourceCommand(args);
|
|
353
|
-
if (typeof optionsOrCb === "function") {
|
|
354
|
-
this.send(command, optionsOrCb);
|
|
355
|
-
}
|
|
356
|
-
else if (typeof cb === "function") {
|
|
357
|
-
if (typeof optionsOrCb !== "object")
|
|
358
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
359
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
return this.send(command, optionsOrCb);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
updateMapRun(args, optionsOrCb, cb) {
|
|
366
|
-
const command = new UpdateMapRunCommand(args);
|
|
367
|
-
if (typeof optionsOrCb === "function") {
|
|
368
|
-
this.send(command, optionsOrCb);
|
|
369
|
-
}
|
|
370
|
-
else if (typeof cb === "function") {
|
|
371
|
-
if (typeof optionsOrCb !== "object")
|
|
372
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
373
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
return this.send(command, optionsOrCb);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
updateStateMachine(args, optionsOrCb, cb) {
|
|
380
|
-
const command = new UpdateStateMachineCommand(args);
|
|
381
|
-
if (typeof optionsOrCb === "function") {
|
|
382
|
-
this.send(command, optionsOrCb);
|
|
383
|
-
}
|
|
384
|
-
else if (typeof cb === "function") {
|
|
385
|
-
if (typeof optionsOrCb !== "object")
|
|
386
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
387
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
388
|
-
}
|
|
389
|
-
else {
|
|
390
|
-
return this.send(command, optionsOrCb);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
58
|
}
|
|
59
|
+
createAggregatedClient(commands, SFN);
|
package/dist-types/SFN.d.ts
CHANGED
|
@@ -26,373 +26,182 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
26
26
|
import { UpdateMapRunCommandInput, UpdateMapRunCommandOutput } from "./commands/UpdateMapRunCommand";
|
|
27
27
|
import { UpdateStateMachineCommandInput, UpdateStateMachineCommandOutput } from "./commands/UpdateStateMachineCommand";
|
|
28
28
|
import { SFNClient } from "./SFNClient";
|
|
29
|
-
|
|
30
|
-
* @public
|
|
31
|
-
* <fullname>Step Functions</fullname>
|
|
32
|
-
* <p>Step Functions is a service that lets you coordinate the components of distributed applications
|
|
33
|
-
* and microservices using visual workflows.</p>
|
|
34
|
-
* <p>You can use Step Functions to build applications from individual components, each of which performs
|
|
35
|
-
* a discrete function, or <i>task</i>, allowing you to scale and change
|
|
36
|
-
* applications quickly. Step Functions provides a console that helps visualize the components of your
|
|
37
|
-
* application as a series of steps. Step Functions automatically triggers and tracks each step, and
|
|
38
|
-
* retries steps when there are errors, so your application executes predictably and in the right
|
|
39
|
-
* order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any
|
|
40
|
-
* issues.</p>
|
|
41
|
-
* <p>Step Functions manages operations and underlying infrastructure to ensure your application is
|
|
42
|
-
* available at any scale. You can run tasks on Amazon Web Services, your own servers, or any system that has
|
|
43
|
-
* access to Amazon Web Services. You can access and use Step Functions using the console, the Amazon Web Services SDKs, or an HTTP API.
|
|
44
|
-
* For more information about Step Functions, see the <i>
|
|
45
|
-
* <a href="https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html">Step Functions Developer Guide</a>
|
|
46
|
-
* </i>.</p>
|
|
47
|
-
*/
|
|
48
|
-
export declare class SFN extends SFNClient {
|
|
29
|
+
export interface SFN {
|
|
49
30
|
/**
|
|
50
|
-
* @
|
|
51
|
-
* <p>Creates an activity. An activity is a task that you write in any programming language and
|
|
52
|
-
* host on any machine that has access to Step Functions. Activities must poll Step Functions using the
|
|
53
|
-
* <code>GetActivityTask</code> API action and respond using <code>SendTask*</code> API
|
|
54
|
-
* actions. This function lets Step Functions know the existence of your activity and returns an
|
|
55
|
-
* identifier for use in a state machine and when polling from the activity.</p>
|
|
56
|
-
* <note>
|
|
57
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
58
|
-
* </note>
|
|
59
|
-
* <note>
|
|
60
|
-
* <p>
|
|
61
|
-
* <code>CreateActivity</code> is an idempotent API. Subsequent requests won’t create a
|
|
62
|
-
* duplicate resource if it was already created. <code>CreateActivity</code>'s idempotency
|
|
63
|
-
* check is based on the activity <code>name</code>. If a following request has different
|
|
64
|
-
* <code>tags</code> values, Step Functions will ignore these differences and treat it as an
|
|
65
|
-
* idempotent request of the previous. In this case, <code>tags</code> will not be updated,
|
|
66
|
-
* even if they are different.</p>
|
|
67
|
-
* </note>
|
|
31
|
+
* @see {@link CreateActivityCommand}
|
|
68
32
|
*/
|
|
69
33
|
createActivity(args: CreateActivityCommandInput, options?: __HttpHandlerOptions): Promise<CreateActivityCommandOutput>;
|
|
70
34
|
createActivity(args: CreateActivityCommandInput, cb: (err: any, data?: CreateActivityCommandOutput) => void): void;
|
|
71
35
|
createActivity(args: CreateActivityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateActivityCommandOutput) => void): void;
|
|
72
36
|
/**
|
|
73
|
-
* @
|
|
74
|
-
* <p>Creates a state machine. A state machine consists of a collection of states that can do
|
|
75
|
-
* work (<code>Task</code> states), determine to which states to transition next
|
|
76
|
-
* (<code>Choice</code> states), stop an execution with an error (<code>Fail</code> states),
|
|
77
|
-
* and so on. State machines are specified using a JSON-based, structured language. For more
|
|
78
|
-
* information, see <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States
|
|
79
|
-
* Language</a> in the Step Functions User Guide.</p>
|
|
80
|
-
* <note>
|
|
81
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
82
|
-
* </note>
|
|
83
|
-
* <note>
|
|
84
|
-
* <p>
|
|
85
|
-
* <code>CreateStateMachine</code> is an idempotent API. Subsequent requests won’t create a
|
|
86
|
-
* duplicate resource if it was already created. <code>CreateStateMachine</code>'s idempotency
|
|
87
|
-
* check is based on the state machine <code>name</code>, <code>definition</code>,
|
|
88
|
-
* <code>type</code>, <code>LoggingConfiguration</code> and
|
|
89
|
-
* <code>TracingConfiguration</code>. If a following request has a different
|
|
90
|
-
* <code>roleArn</code> or <code>tags</code>, Step Functions will ignore these differences and treat
|
|
91
|
-
* it as an idempotent request of the previous. In this case, <code>roleArn</code> and
|
|
92
|
-
* <code>tags</code> will not be updated, even if they are different.</p>
|
|
93
|
-
* </note>
|
|
37
|
+
* @see {@link CreateStateMachineCommand}
|
|
94
38
|
*/
|
|
95
39
|
createStateMachine(args: CreateStateMachineCommandInput, options?: __HttpHandlerOptions): Promise<CreateStateMachineCommandOutput>;
|
|
96
40
|
createStateMachine(args: CreateStateMachineCommandInput, cb: (err: any, data?: CreateStateMachineCommandOutput) => void): void;
|
|
97
41
|
createStateMachine(args: CreateStateMachineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateStateMachineCommandOutput) => void): void;
|
|
98
42
|
/**
|
|
99
|
-
* @
|
|
100
|
-
* <p>Deletes an activity.</p>
|
|
43
|
+
* @see {@link DeleteActivityCommand}
|
|
101
44
|
*/
|
|
102
45
|
deleteActivity(args: DeleteActivityCommandInput, options?: __HttpHandlerOptions): Promise<DeleteActivityCommandOutput>;
|
|
103
46
|
deleteActivity(args: DeleteActivityCommandInput, cb: (err: any, data?: DeleteActivityCommandOutput) => void): void;
|
|
104
47
|
deleteActivity(args: DeleteActivityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteActivityCommandOutput) => void): void;
|
|
105
48
|
/**
|
|
106
|
-
* @
|
|
107
|
-
* <p>Deletes a state machine. This is an asynchronous operation: It sets the state machine's
|
|
108
|
-
* status to <code>DELETING</code> and begins the deletion process. </p>
|
|
109
|
-
*
|
|
110
|
-
* <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
|
|
111
|
-
*
|
|
112
|
-
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
113
|
-
*
|
|
114
|
-
* <note>
|
|
115
|
-
* <p>For <code>EXPRESS</code> state machines, the deletion will happen eventually (usually
|
|
116
|
-
* less than a minute). Running executions may emit logs after <code>DeleteStateMachine</code>
|
|
117
|
-
* API is called.</p>
|
|
118
|
-
* </note>
|
|
49
|
+
* @see {@link DeleteStateMachineCommand}
|
|
119
50
|
*/
|
|
120
51
|
deleteStateMachine(args: DeleteStateMachineCommandInput, options?: __HttpHandlerOptions): Promise<DeleteStateMachineCommandOutput>;
|
|
121
52
|
deleteStateMachine(args: DeleteStateMachineCommandInput, cb: (err: any, data?: DeleteStateMachineCommandOutput) => void): void;
|
|
122
53
|
deleteStateMachine(args: DeleteStateMachineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteStateMachineCommandOutput) => void): void;
|
|
123
54
|
/**
|
|
124
|
-
* @
|
|
125
|
-
* <p>Describes an activity.</p>
|
|
126
|
-
* <note>
|
|
127
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
128
|
-
* </note>
|
|
55
|
+
* @see {@link DescribeActivityCommand}
|
|
129
56
|
*/
|
|
130
57
|
describeActivity(args: DescribeActivityCommandInput, options?: __HttpHandlerOptions): Promise<DescribeActivityCommandOutput>;
|
|
131
58
|
describeActivity(args: DescribeActivityCommandInput, cb: (err: any, data?: DescribeActivityCommandOutput) => void): void;
|
|
132
59
|
describeActivity(args: DescribeActivityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeActivityCommandOutput) => void): void;
|
|
133
60
|
/**
|
|
134
|
-
* @
|
|
135
|
-
* <p>Provides all information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. Use this API action to return the Map Run ARN if the execution was dispatched by a Map Run.</p>
|
|
136
|
-
* <note>
|
|
137
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
138
|
-
* </note>
|
|
139
|
-
* <p>This API action is not supported by <code>EXPRESS</code> state machine executions unless they were dispatched by a Map Run.</p>
|
|
61
|
+
* @see {@link DescribeExecutionCommand}
|
|
140
62
|
*/
|
|
141
63
|
describeExecution(args: DescribeExecutionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeExecutionCommandOutput>;
|
|
142
64
|
describeExecution(args: DescribeExecutionCommandInput, cb: (err: any, data?: DescribeExecutionCommandOutput) => void): void;
|
|
143
65
|
describeExecution(args: DescribeExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeExecutionCommandOutput) => void): void;
|
|
144
66
|
/**
|
|
145
|
-
* @
|
|
146
|
-
* <p>Provides information about a Map Run's configuration, progress, and results. For more information, see <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html">Examining Map Run</a> in the <i>Step Functions Developer Guide</i>.</p>
|
|
67
|
+
* @see {@link DescribeMapRunCommand}
|
|
147
68
|
*/
|
|
148
69
|
describeMapRun(args: DescribeMapRunCommandInput, options?: __HttpHandlerOptions): Promise<DescribeMapRunCommandOutput>;
|
|
149
70
|
describeMapRun(args: DescribeMapRunCommandInput, cb: (err: any, data?: DescribeMapRunCommandOutput) => void): void;
|
|
150
71
|
describeMapRun(args: DescribeMapRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMapRunCommandOutput) => void): void;
|
|
151
72
|
/**
|
|
152
|
-
* @
|
|
153
|
-
* <p>Provides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration. If the state machine ARN is a qualified state machine ARN, the response returned includes the <code>Map</code> state's label.</p>
|
|
154
|
-
*
|
|
155
|
-
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
156
|
-
*
|
|
157
|
-
* <note>
|
|
158
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
159
|
-
* </note>
|
|
73
|
+
* @see {@link DescribeStateMachineCommand}
|
|
160
74
|
*/
|
|
161
75
|
describeStateMachine(args: DescribeStateMachineCommandInput, options?: __HttpHandlerOptions): Promise<DescribeStateMachineCommandOutput>;
|
|
162
76
|
describeStateMachine(args: DescribeStateMachineCommandInput, cb: (err: any, data?: DescribeStateMachineCommandOutput) => void): void;
|
|
163
77
|
describeStateMachine(args: DescribeStateMachineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeStateMachineCommandOutput) => void): void;
|
|
164
78
|
/**
|
|
165
|
-
* @
|
|
166
|
-
* <p>Provides information about a state machine's definition, its execution role ARN, and configuration. If an execution was dispatched by a Map Run, the Map Run is returned in the response. Additionally, the state machine returned will be the state machine associated with the Map Run.</p>
|
|
167
|
-
* <note>
|
|
168
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
169
|
-
* </note>
|
|
170
|
-
* <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
|
|
79
|
+
* @see {@link DescribeStateMachineForExecutionCommand}
|
|
171
80
|
*/
|
|
172
81
|
describeStateMachineForExecution(args: DescribeStateMachineForExecutionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeStateMachineForExecutionCommandOutput>;
|
|
173
82
|
describeStateMachineForExecution(args: DescribeStateMachineForExecutionCommandInput, cb: (err: any, data?: DescribeStateMachineForExecutionCommandOutput) => void): void;
|
|
174
83
|
describeStateMachineForExecution(args: DescribeStateMachineForExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeStateMachineForExecutionCommandOutput) => void): void;
|
|
175
84
|
/**
|
|
176
|
-
* @
|
|
177
|
-
* <p>Used by workers to retrieve a task (with the specified activity ARN) which has been
|
|
178
|
-
* scheduled for execution by a running state machine. This initiates a long poll, where the
|
|
179
|
-
* service holds the HTTP connection open and responds as soon as a task becomes available (i.e.
|
|
180
|
-
* an execution of a task of this type is needed.) The maximum time the service holds on to the
|
|
181
|
-
* request before responding is 60 seconds. If no task is available within 60 seconds, the poll
|
|
182
|
-
* returns a <code>taskToken</code> with a null string.</p>
|
|
183
|
-
*
|
|
184
|
-
* <note>
|
|
185
|
-
* <p>This API action isn't logged in CloudTrail.</p>
|
|
186
|
-
* </note>
|
|
187
|
-
*
|
|
188
|
-
* <important>
|
|
189
|
-
* <p>Workers should set their client side socket timeout to at least 65 seconds (5 seconds
|
|
190
|
-
* higher than the maximum time the service may hold the poll request).</p>
|
|
191
|
-
* <p>Polling with <code>GetActivityTask</code> can cause latency in some implementations. See
|
|
192
|
-
* <a href="https://docs.aws.amazon.com/step-functions/latest/dg/bp-activity-pollers.html">Avoid
|
|
193
|
-
* Latency When Polling for Activity Tasks</a> in the Step Functions Developer Guide.</p>
|
|
194
|
-
* </important>
|
|
85
|
+
* @see {@link GetActivityTaskCommand}
|
|
195
86
|
*/
|
|
196
87
|
getActivityTask(args: GetActivityTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetActivityTaskCommandOutput>;
|
|
197
88
|
getActivityTask(args: GetActivityTaskCommandInput, cb: (err: any, data?: GetActivityTaskCommandOutput) => void): void;
|
|
198
89
|
getActivityTask(args: GetActivityTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetActivityTaskCommandOutput) => void): void;
|
|
199
90
|
/**
|
|
200
|
-
* @
|
|
201
|
-
* <p>Returns the history of the specified execution as a list of events. By default, the
|
|
202
|
-
* results are returned in ascending order of the <code>timeStamp</code> of the events. Use the
|
|
203
|
-
* <code>reverseOrder</code> parameter to get the latest events first.</p>
|
|
204
|
-
* <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page.
|
|
205
|
-
* Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an <i>HTTP 400 InvalidToken</i> error.</p>
|
|
206
|
-
* <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
|
|
91
|
+
* @see {@link GetExecutionHistoryCommand}
|
|
207
92
|
*/
|
|
208
93
|
getExecutionHistory(args: GetExecutionHistoryCommandInput, options?: __HttpHandlerOptions): Promise<GetExecutionHistoryCommandOutput>;
|
|
209
94
|
getExecutionHistory(args: GetExecutionHistoryCommandInput, cb: (err: any, data?: GetExecutionHistoryCommandOutput) => void): void;
|
|
210
95
|
getExecutionHistory(args: GetExecutionHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExecutionHistoryCommandOutput) => void): void;
|
|
211
96
|
/**
|
|
212
|
-
* @
|
|
213
|
-
* <p>Lists the existing activities.</p>
|
|
214
|
-
* <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page.
|
|
215
|
-
* Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an <i>HTTP 400 InvalidToken</i> error.</p>
|
|
216
|
-
* <note>
|
|
217
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
218
|
-
* </note>
|
|
97
|
+
* @see {@link ListActivitiesCommand}
|
|
219
98
|
*/
|
|
220
99
|
listActivities(args: ListActivitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListActivitiesCommandOutput>;
|
|
221
100
|
listActivities(args: ListActivitiesCommandInput, cb: (err: any, data?: ListActivitiesCommandOutput) => void): void;
|
|
222
101
|
listActivities(args: ListActivitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListActivitiesCommandOutput) => void): void;
|
|
223
102
|
/**
|
|
224
|
-
* @
|
|
225
|
-
* <p>Lists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN.</p>
|
|
226
|
-
* <p>Results are
|
|
227
|
-
* sorted by time, with the most recent execution first.</p>
|
|
228
|
-
* <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page.
|
|
229
|
-
* Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an <i>HTTP 400 InvalidToken</i> error.</p>
|
|
230
|
-
* <note>
|
|
231
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
232
|
-
* </note>
|
|
233
|
-
* <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
|
|
103
|
+
* @see {@link ListExecutionsCommand}
|
|
234
104
|
*/
|
|
235
105
|
listExecutions(args: ListExecutionsCommandInput, options?: __HttpHandlerOptions): Promise<ListExecutionsCommandOutput>;
|
|
236
106
|
listExecutions(args: ListExecutionsCommandInput, cb: (err: any, data?: ListExecutionsCommandOutput) => void): void;
|
|
237
107
|
listExecutions(args: ListExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExecutionsCommandOutput) => void): void;
|
|
238
108
|
/**
|
|
239
|
-
* @
|
|
240
|
-
* <p>Lists all Map Runs that were started by a given state machine execution. Use this API action to obtain Map Run ARNs, and then call <code>DescribeMapRun</code> to obtain more information, if needed.</p>
|
|
109
|
+
* @see {@link ListMapRunsCommand}
|
|
241
110
|
*/
|
|
242
111
|
listMapRuns(args: ListMapRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListMapRunsCommandOutput>;
|
|
243
112
|
listMapRuns(args: ListMapRunsCommandInput, cb: (err: any, data?: ListMapRunsCommandOutput) => void): void;
|
|
244
113
|
listMapRuns(args: ListMapRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMapRunsCommandOutput) => void): void;
|
|
245
114
|
/**
|
|
246
|
-
* @
|
|
247
|
-
* <p>Lists the existing state machines.</p>
|
|
248
|
-
* <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page.
|
|
249
|
-
* Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an <i>HTTP 400 InvalidToken</i> error.</p>
|
|
250
|
-
* <note>
|
|
251
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
252
|
-
* </note>
|
|
115
|
+
* @see {@link ListStateMachinesCommand}
|
|
253
116
|
*/
|
|
254
117
|
listStateMachines(args: ListStateMachinesCommandInput, options?: __HttpHandlerOptions): Promise<ListStateMachinesCommandOutput>;
|
|
255
118
|
listStateMachines(args: ListStateMachinesCommandInput, cb: (err: any, data?: ListStateMachinesCommandOutput) => void): void;
|
|
256
119
|
listStateMachines(args: ListStateMachinesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStateMachinesCommandOutput) => void): void;
|
|
257
120
|
/**
|
|
258
|
-
* @
|
|
259
|
-
* <p>List tags for a given resource.</p>
|
|
260
|
-
* <p>Tags may only contain Unicode letters, digits, white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
121
|
+
* @see {@link ListTagsForResourceCommand}
|
|
261
122
|
*/
|
|
262
123
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
263
124
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
264
125
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
265
126
|
/**
|
|
266
|
-
* @
|
|
267
|
-
* <p>Used by activity workers and task states using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
268
|
-
* pattern to report that the task identified by the <code>taskToken</code> failed.</p>
|
|
127
|
+
* @see {@link SendTaskFailureCommand}
|
|
269
128
|
*/
|
|
270
129
|
sendTaskFailure(args: SendTaskFailureCommandInput, options?: __HttpHandlerOptions): Promise<SendTaskFailureCommandOutput>;
|
|
271
130
|
sendTaskFailure(args: SendTaskFailureCommandInput, cb: (err: any, data?: SendTaskFailureCommandOutput) => void): void;
|
|
272
131
|
sendTaskFailure(args: SendTaskFailureCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTaskFailureCommandOutput) => void): void;
|
|
273
132
|
/**
|
|
274
|
-
* @
|
|
275
|
-
* <p>Used by activity workers and task states using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
276
|
-
* pattern to report to Step Functions that the task represented by the specified
|
|
277
|
-
* <code>taskToken</code> is still making progress. This action resets the
|
|
278
|
-
* <code>Heartbeat</code> clock. The <code>Heartbeat</code> threshold is specified in the state
|
|
279
|
-
* machine's Amazon States Language definition (<code>HeartbeatSeconds</code>). This action does not in itself
|
|
280
|
-
* create an event in the execution history. However, if the task times out, the execution
|
|
281
|
-
* history contains an <code>ActivityTimedOut</code> entry for activities, or a
|
|
282
|
-
* <code>TaskTimedOut</code> entry for for tasks using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync">job run</a> or
|
|
283
|
-
* <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
284
|
-
* pattern.</p>
|
|
285
|
-
* <note>
|
|
286
|
-
* <p>The <code>Timeout</code> of a task, defined in the state machine's Amazon States Language definition, is
|
|
287
|
-
* its maximum allowed duration, regardless of the number of <a>SendTaskHeartbeat</a> requests received. Use <code>HeartbeatSeconds</code> to configure the timeout interval
|
|
288
|
-
* for heartbeats.</p>
|
|
289
|
-
* </note>
|
|
133
|
+
* @see {@link SendTaskHeartbeatCommand}
|
|
290
134
|
*/
|
|
291
135
|
sendTaskHeartbeat(args: SendTaskHeartbeatCommandInput, options?: __HttpHandlerOptions): Promise<SendTaskHeartbeatCommandOutput>;
|
|
292
136
|
sendTaskHeartbeat(args: SendTaskHeartbeatCommandInput, cb: (err: any, data?: SendTaskHeartbeatCommandOutput) => void): void;
|
|
293
137
|
sendTaskHeartbeat(args: SendTaskHeartbeatCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTaskHeartbeatCommandOutput) => void): void;
|
|
294
138
|
/**
|
|
295
|
-
* @
|
|
296
|
-
* <p>Used by activity workers and task states using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
297
|
-
* pattern to report that the task identified by the <code>taskToken</code> completed
|
|
298
|
-
* successfully.</p>
|
|
139
|
+
* @see {@link SendTaskSuccessCommand}
|
|
299
140
|
*/
|
|
300
141
|
sendTaskSuccess(args: SendTaskSuccessCommandInput, options?: __HttpHandlerOptions): Promise<SendTaskSuccessCommandOutput>;
|
|
301
142
|
sendTaskSuccess(args: SendTaskSuccessCommandInput, cb: (err: any, data?: SendTaskSuccessCommandOutput) => void): void;
|
|
302
143
|
sendTaskSuccess(args: SendTaskSuccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTaskSuccessCommandOutput) => void): void;
|
|
303
144
|
/**
|
|
304
|
-
* @
|
|
305
|
-
* <p>Starts a state machine execution. If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
|
|
306
|
-
*
|
|
307
|
-
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
308
|
-
*
|
|
309
|
-
* <note>
|
|
310
|
-
* <p>
|
|
311
|
-
* <code>StartExecution</code> is idempotent for <code>STANDARD</code> workflows. For a
|
|
312
|
-
* <code>STANDARD</code> workflow, if <code>StartExecution</code> is called with the same
|
|
313
|
-
* name and input as a running execution, the call will succeed and return the same response as
|
|
314
|
-
* the original request. If the execution is closed or if the input is different, it will
|
|
315
|
-
* return a <code>400 ExecutionAlreadyExists</code> error. Names can be reused after 90 days. </p>
|
|
316
|
-
* <p>
|
|
317
|
-
* <code>StartExecution</code> is not idempotent for <code>EXPRESS</code> workflows. </p>
|
|
318
|
-
* </note>
|
|
145
|
+
* @see {@link StartExecutionCommand}
|
|
319
146
|
*/
|
|
320
147
|
startExecution(args: StartExecutionCommandInput, options?: __HttpHandlerOptions): Promise<StartExecutionCommandOutput>;
|
|
321
148
|
startExecution(args: StartExecutionCommandInput, cb: (err: any, data?: StartExecutionCommandOutput) => void): void;
|
|
322
149
|
startExecution(args: StartExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartExecutionCommandOutput) => void): void;
|
|
323
150
|
/**
|
|
324
|
-
* @
|
|
325
|
-
* <p>Starts a Synchronous Express state machine execution. <code>StartSyncExecution</code>
|
|
326
|
-
* is not available for <code>STANDARD</code> workflows.</p>
|
|
327
|
-
* <note>
|
|
328
|
-
* <p>
|
|
329
|
-
* <code>StartSyncExecution</code> will return a <code>200 OK</code> response, even if your
|
|
330
|
-
* execution fails, because the status code in the API response doesn't reflect function
|
|
331
|
-
* errors. Error codes are reserved for errors that prevent your execution from running, such
|
|
332
|
-
* as permissions errors, limit errors, or issues with your state machine code and
|
|
333
|
-
* configuration. </p>
|
|
334
|
-
* </note>
|
|
335
|
-
* <note>
|
|
336
|
-
* <p>This API action isn't logged in CloudTrail.</p>
|
|
337
|
-
* </note>
|
|
151
|
+
* @see {@link StartSyncExecutionCommand}
|
|
338
152
|
*/
|
|
339
153
|
startSyncExecution(args: StartSyncExecutionCommandInput, options?: __HttpHandlerOptions): Promise<StartSyncExecutionCommandOutput>;
|
|
340
154
|
startSyncExecution(args: StartSyncExecutionCommandInput, cb: (err: any, data?: StartSyncExecutionCommandOutput) => void): void;
|
|
341
155
|
startSyncExecution(args: StartSyncExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSyncExecutionCommandOutput) => void): void;
|
|
342
156
|
/**
|
|
343
|
-
* @
|
|
344
|
-
* <p>Stops an execution.</p>
|
|
345
|
-
* <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
|
|
157
|
+
* @see {@link StopExecutionCommand}
|
|
346
158
|
*/
|
|
347
159
|
stopExecution(args: StopExecutionCommandInput, options?: __HttpHandlerOptions): Promise<StopExecutionCommandOutput>;
|
|
348
160
|
stopExecution(args: StopExecutionCommandInput, cb: (err: any, data?: StopExecutionCommandOutput) => void): void;
|
|
349
161
|
stopExecution(args: StopExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopExecutionCommandOutput) => void): void;
|
|
350
162
|
/**
|
|
351
|
-
* @
|
|
352
|
-
* <p>Add a tag to a Step Functions resource.</p>
|
|
353
|
-
* <p>An array of key-value pairs. For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
354
|
-
* Cost Allocation Tags</a> in the <i>Amazon Web Services Billing and Cost Management User
|
|
355
|
-
* Guide</i>, and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling Access Using IAM
|
|
356
|
-
* Tags</a>.</p>
|
|
357
|
-
* <p>Tags may only contain Unicode letters, digits, white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
163
|
+
* @see {@link TagResourceCommand}
|
|
358
164
|
*/
|
|
359
165
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
360
166
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
361
167
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
362
168
|
/**
|
|
363
|
-
* @
|
|
364
|
-
* <p>Remove a tag from a Step Functions resource</p>
|
|
169
|
+
* @see {@link UntagResourceCommand}
|
|
365
170
|
*/
|
|
366
171
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
367
172
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
368
173
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
369
174
|
/**
|
|
370
|
-
* @
|
|
371
|
-
* <p>Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure.</p>
|
|
175
|
+
* @see {@link UpdateMapRunCommand}
|
|
372
176
|
*/
|
|
373
177
|
updateMapRun(args: UpdateMapRunCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMapRunCommandOutput>;
|
|
374
178
|
updateMapRun(args: UpdateMapRunCommandInput, cb: (err: any, data?: UpdateMapRunCommandOutput) => void): void;
|
|
375
179
|
updateMapRun(args: UpdateMapRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMapRunCommandOutput) => void): void;
|
|
376
180
|
/**
|
|
377
|
-
* @
|
|
378
|
-
* <p>Updates an existing state machine by modifying its <code>definition</code>,
|
|
379
|
-
* <code>roleArn</code>, or <code>loggingConfiguration</code>. Running executions will continue
|
|
380
|
-
* to use the previous <code>definition</code> and <code>roleArn</code>. You must include at
|
|
381
|
-
* least one of <code>definition</code> or <code>roleArn</code> or you will receive a
|
|
382
|
-
* <code>MissingRequiredParameter</code> error.</p>
|
|
383
|
-
*
|
|
384
|
-
* <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
|
|
385
|
-
*
|
|
386
|
-
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
387
|
-
*
|
|
388
|
-
* <note>
|
|
389
|
-
* <p>All <code>StartExecution</code> calls within a few seconds will use the updated
|
|
390
|
-
* <code>definition</code> and <code>roleArn</code>. Executions started immediately after
|
|
391
|
-
* calling <code>UpdateStateMachine</code> may use the previous state machine
|
|
392
|
-
* <code>definition</code> and <code>roleArn</code>. </p>
|
|
393
|
-
* </note>
|
|
181
|
+
* @see {@link UpdateStateMachineCommand}
|
|
394
182
|
*/
|
|
395
183
|
updateStateMachine(args: UpdateStateMachineCommandInput, options?: __HttpHandlerOptions): Promise<UpdateStateMachineCommandOutput>;
|
|
396
184
|
updateStateMachine(args: UpdateStateMachineCommandInput, cb: (err: any, data?: UpdateStateMachineCommandOutput) => void): void;
|
|
397
185
|
updateStateMachine(args: UpdateStateMachineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateStateMachineCommandOutput) => void): void;
|
|
398
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* @public
|
|
189
|
+
* <fullname>Step Functions</fullname>
|
|
190
|
+
* <p>Step Functions is a service that lets you coordinate the components of distributed applications
|
|
191
|
+
* and microservices using visual workflows.</p>
|
|
192
|
+
* <p>You can use Step Functions to build applications from individual components, each of which performs
|
|
193
|
+
* a discrete function, or <i>task</i>, allowing you to scale and change
|
|
194
|
+
* applications quickly. Step Functions provides a console that helps visualize the components of your
|
|
195
|
+
* application as a series of steps. Step Functions automatically triggers and tracks each step, and
|
|
196
|
+
* retries steps when there are errors, so your application executes predictably and in the right
|
|
197
|
+
* order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any
|
|
198
|
+
* issues.</p>
|
|
199
|
+
* <p>Step Functions manages operations and underlying infrastructure to ensure your application is
|
|
200
|
+
* available at any scale. You can run tasks on Amazon Web Services, your own servers, or any system that has
|
|
201
|
+
* access to Amazon Web Services. You can access and use Step Functions using the console, the Amazon Web Services SDKs, or an HTTP API.
|
|
202
|
+
* For more information about Step Functions, see the <i>
|
|
203
|
+
* <a href="https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html">Step Functions Developer Guide</a>
|
|
204
|
+
* </i>.</p>
|
|
205
|
+
*/
|
|
206
|
+
export declare class SFN extends SFNClient implements SFN {
|
|
207
|
+
}
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
UpdateStateMachineCommandOutput,
|
|
105
105
|
} from "./commands/UpdateStateMachineCommand";
|
|
106
106
|
import { SFNClient } from "./SFNClient";
|
|
107
|
-
export
|
|
107
|
+
export interface SFN {
|
|
108
108
|
createActivity(
|
|
109
109
|
args: CreateActivityCommandInput,
|
|
110
110
|
options?: __HttpHandlerOptions
|
|
@@ -444,3 +444,4 @@ export declare class SFN extends SFNClient {
|
|
|
444
444
|
cb: (err: any, data?: UpdateStateMachineCommandOutput) => void
|
|
445
445
|
): void;
|
|
446
446
|
}
|
|
447
|
+
export declare class SFN extends SFNClient implements SFN {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sfn",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|