@effect-aws/client-sfn 1.6.0 → 1.9.3
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/Errors/package.json +6 -0
- package/SFNClientInstance/package.json +6 -0
- package/SFNService/package.json +6 -0
- package/SFNServiceConfig/package.json +6 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +41 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/SFNClientInstance.d.ts +24 -0
- package/dist/cjs/SFNClientInstance.d.ts.map +1 -0
- package/dist/cjs/SFNClientInstance.js +50 -0
- package/dist/cjs/SFNClientInstance.js.map +1 -0
- package/dist/cjs/SFNService.d.ts +189 -0
- package/dist/cjs/SFNService.d.ts.map +1 -0
- package/dist/cjs/SFNService.js +96 -0
- package/dist/cjs/SFNService.js.map +1 -0
- package/dist/cjs/SFNServiceConfig.d.ts +25 -0
- package/dist/cjs/SFNServiceConfig.d.ts.map +1 -0
- package/dist/cjs/SFNServiceConfig.js +35 -0
- package/dist/cjs/SFNServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +40 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/SFNClientInstance.d.ts +24 -0
- package/dist/dts/SFNClientInstance.d.ts.map +1 -0
- package/dist/dts/SFNService.d.ts +189 -0
- package/dist/dts/SFNService.d.ts.map +1 -0
- package/dist/dts/SFNServiceConfig.d.ts +25 -0
- package/dist/dts/SFNServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +38 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/SFNClientInstance.js +23 -0
- package/dist/esm/SFNClientInstance.js.map +1 -0
- package/dist/esm/SFNService.js +69 -0
- package/dist/esm/SFNService.js.map +1 -0
- package/dist/esm/SFNServiceConfig.js +31 -0
- package/dist/esm/SFNServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/Errors.ts +110 -0
- package/src/SFNClientInstance.ts +33 -0
- package/src/SFNService.ts +796 -0
- package/src/SFNServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -79
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -41
- package/lib/SFNClientInstance.d.ts +0 -31
- package/lib/SFNClientInstance.js +0 -57
- package/lib/SFNClientInstanceConfig.d.ts +0 -23
- package/lib/SFNClientInstanceConfig.js +0 -44
- package/lib/SFNService.d.ts +0 -250
- package/lib/SFNService.js +0 -125
- package/lib/esm/Errors.js +0 -38
- package/lib/esm/SFNClientInstance.js +0 -30
- package/lib/esm/SFNClientInstanceConfig.js +0 -40
- package/lib/esm/SFNService.js +0 -121
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -0,0 +1,796 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import {
|
|
5
|
+
CreateActivityCommand,
|
|
6
|
+
type CreateActivityCommandInput,
|
|
7
|
+
type CreateActivityCommandOutput,
|
|
8
|
+
CreateStateMachineAliasCommand,
|
|
9
|
+
type CreateStateMachineAliasCommandInput,
|
|
10
|
+
type CreateStateMachineAliasCommandOutput,
|
|
11
|
+
CreateStateMachineCommand,
|
|
12
|
+
type CreateStateMachineCommandInput,
|
|
13
|
+
type CreateStateMachineCommandOutput,
|
|
14
|
+
DeleteActivityCommand,
|
|
15
|
+
type DeleteActivityCommandInput,
|
|
16
|
+
type DeleteActivityCommandOutput,
|
|
17
|
+
DeleteStateMachineAliasCommand,
|
|
18
|
+
type DeleteStateMachineAliasCommandInput,
|
|
19
|
+
type DeleteStateMachineAliasCommandOutput,
|
|
20
|
+
DeleteStateMachineCommand,
|
|
21
|
+
type DeleteStateMachineCommandInput,
|
|
22
|
+
type DeleteStateMachineCommandOutput,
|
|
23
|
+
DeleteStateMachineVersionCommand,
|
|
24
|
+
type DeleteStateMachineVersionCommandInput,
|
|
25
|
+
type DeleteStateMachineVersionCommandOutput,
|
|
26
|
+
DescribeActivityCommand,
|
|
27
|
+
type DescribeActivityCommandInput,
|
|
28
|
+
type DescribeActivityCommandOutput,
|
|
29
|
+
DescribeExecutionCommand,
|
|
30
|
+
type DescribeExecutionCommandInput,
|
|
31
|
+
type DescribeExecutionCommandOutput,
|
|
32
|
+
DescribeMapRunCommand,
|
|
33
|
+
type DescribeMapRunCommandInput,
|
|
34
|
+
type DescribeMapRunCommandOutput,
|
|
35
|
+
DescribeStateMachineAliasCommand,
|
|
36
|
+
type DescribeStateMachineAliasCommandInput,
|
|
37
|
+
type DescribeStateMachineAliasCommandOutput,
|
|
38
|
+
DescribeStateMachineCommand,
|
|
39
|
+
type DescribeStateMachineCommandInput,
|
|
40
|
+
type DescribeStateMachineCommandOutput,
|
|
41
|
+
DescribeStateMachineForExecutionCommand,
|
|
42
|
+
type DescribeStateMachineForExecutionCommandInput,
|
|
43
|
+
type DescribeStateMachineForExecutionCommandOutput,
|
|
44
|
+
GetActivityTaskCommand,
|
|
45
|
+
type GetActivityTaskCommandInput,
|
|
46
|
+
type GetActivityTaskCommandOutput,
|
|
47
|
+
GetExecutionHistoryCommand,
|
|
48
|
+
type GetExecutionHistoryCommandInput,
|
|
49
|
+
type GetExecutionHistoryCommandOutput,
|
|
50
|
+
ListActivitiesCommand,
|
|
51
|
+
type ListActivitiesCommandInput,
|
|
52
|
+
type ListActivitiesCommandOutput,
|
|
53
|
+
ListExecutionsCommand,
|
|
54
|
+
type ListExecutionsCommandInput,
|
|
55
|
+
type ListExecutionsCommandOutput,
|
|
56
|
+
ListMapRunsCommand,
|
|
57
|
+
type ListMapRunsCommandInput,
|
|
58
|
+
type ListMapRunsCommandOutput,
|
|
59
|
+
ListStateMachineAliasesCommand,
|
|
60
|
+
type ListStateMachineAliasesCommandInput,
|
|
61
|
+
type ListStateMachineAliasesCommandOutput,
|
|
62
|
+
ListStateMachinesCommand,
|
|
63
|
+
type ListStateMachinesCommandInput,
|
|
64
|
+
type ListStateMachinesCommandOutput,
|
|
65
|
+
ListStateMachineVersionsCommand,
|
|
66
|
+
type ListStateMachineVersionsCommandInput,
|
|
67
|
+
type ListStateMachineVersionsCommandOutput,
|
|
68
|
+
ListTagsForResourceCommand,
|
|
69
|
+
type ListTagsForResourceCommandInput,
|
|
70
|
+
type ListTagsForResourceCommandOutput,
|
|
71
|
+
PublishStateMachineVersionCommand,
|
|
72
|
+
type PublishStateMachineVersionCommandInput,
|
|
73
|
+
type PublishStateMachineVersionCommandOutput,
|
|
74
|
+
RedriveExecutionCommand,
|
|
75
|
+
type RedriveExecutionCommandInput,
|
|
76
|
+
type RedriveExecutionCommandOutput,
|
|
77
|
+
SendTaskFailureCommand,
|
|
78
|
+
type SendTaskFailureCommandInput,
|
|
79
|
+
type SendTaskFailureCommandOutput,
|
|
80
|
+
SendTaskHeartbeatCommand,
|
|
81
|
+
type SendTaskHeartbeatCommandInput,
|
|
82
|
+
type SendTaskHeartbeatCommandOutput,
|
|
83
|
+
SendTaskSuccessCommand,
|
|
84
|
+
type SendTaskSuccessCommandInput,
|
|
85
|
+
type SendTaskSuccessCommandOutput,
|
|
86
|
+
type SFNClient,
|
|
87
|
+
type SFNClientConfig,
|
|
88
|
+
StartExecutionCommand,
|
|
89
|
+
type StartExecutionCommandInput,
|
|
90
|
+
type StartExecutionCommandOutput,
|
|
91
|
+
StartSyncExecutionCommand,
|
|
92
|
+
type StartSyncExecutionCommandInput,
|
|
93
|
+
type StartSyncExecutionCommandOutput,
|
|
94
|
+
StopExecutionCommand,
|
|
95
|
+
type StopExecutionCommandInput,
|
|
96
|
+
type StopExecutionCommandOutput,
|
|
97
|
+
TagResourceCommand,
|
|
98
|
+
type TagResourceCommandInput,
|
|
99
|
+
type TagResourceCommandOutput,
|
|
100
|
+
TestStateCommand,
|
|
101
|
+
type TestStateCommandInput,
|
|
102
|
+
type TestStateCommandOutput,
|
|
103
|
+
UntagResourceCommand,
|
|
104
|
+
type UntagResourceCommandInput,
|
|
105
|
+
type UntagResourceCommandOutput,
|
|
106
|
+
UpdateMapRunCommand,
|
|
107
|
+
type UpdateMapRunCommandInput,
|
|
108
|
+
type UpdateMapRunCommandOutput,
|
|
109
|
+
UpdateStateMachineAliasCommand,
|
|
110
|
+
type UpdateStateMachineAliasCommandInput,
|
|
111
|
+
type UpdateStateMachineAliasCommandOutput,
|
|
112
|
+
UpdateStateMachineCommand,
|
|
113
|
+
type UpdateStateMachineCommandInput,
|
|
114
|
+
type UpdateStateMachineCommandOutput,
|
|
115
|
+
ValidateStateMachineDefinitionCommand,
|
|
116
|
+
type ValidateStateMachineDefinitionCommandInput,
|
|
117
|
+
type ValidateStateMachineDefinitionCommandOutput,
|
|
118
|
+
} from "@aws-sdk/client-sfn";
|
|
119
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
120
|
+
import { Service } from "@effect-aws/commons";
|
|
121
|
+
import { Effect, Layer } from "effect";
|
|
122
|
+
import type {
|
|
123
|
+
ActivityAlreadyExistsError,
|
|
124
|
+
ActivityDoesNotExistError,
|
|
125
|
+
ActivityLimitExceededError,
|
|
126
|
+
ActivityWorkerLimitExceededError,
|
|
127
|
+
ConflictError,
|
|
128
|
+
ExecutionAlreadyExistsError,
|
|
129
|
+
ExecutionDoesNotExistError,
|
|
130
|
+
ExecutionLimitExceededError,
|
|
131
|
+
ExecutionNotRedrivableError,
|
|
132
|
+
InvalidArnError,
|
|
133
|
+
InvalidDefinitionError,
|
|
134
|
+
InvalidEncryptionConfigurationError,
|
|
135
|
+
InvalidExecutionInputError,
|
|
136
|
+
InvalidLoggingConfigurationError,
|
|
137
|
+
InvalidNameError,
|
|
138
|
+
InvalidOutputError,
|
|
139
|
+
InvalidTokenError,
|
|
140
|
+
InvalidTracingConfigurationError,
|
|
141
|
+
KmsAccessDeniedError,
|
|
142
|
+
KmsInvalidStateError,
|
|
143
|
+
KmsThrottlingError,
|
|
144
|
+
MissingRequiredParameterError,
|
|
145
|
+
ResourceNotFoundError,
|
|
146
|
+
ServiceQuotaExceededError,
|
|
147
|
+
StateMachineAlreadyExistsError,
|
|
148
|
+
StateMachineDeletingError,
|
|
149
|
+
StateMachineDoesNotExistError,
|
|
150
|
+
StateMachineLimitExceededError,
|
|
151
|
+
StateMachineTypeNotSupportedError,
|
|
152
|
+
TaskDoesNotExistError,
|
|
153
|
+
TaskTimedOutError,
|
|
154
|
+
TooManyTagsError,
|
|
155
|
+
ValidationError,
|
|
156
|
+
} from "./Errors.js";
|
|
157
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
158
|
+
import * as Instance from "./SFNClientInstance.js";
|
|
159
|
+
import * as SFNServiceConfig from "./SFNServiceConfig.js";
|
|
160
|
+
|
|
161
|
+
const commands = {
|
|
162
|
+
CreateActivityCommand,
|
|
163
|
+
CreateStateMachineCommand,
|
|
164
|
+
CreateStateMachineAliasCommand,
|
|
165
|
+
DeleteActivityCommand,
|
|
166
|
+
DeleteStateMachineCommand,
|
|
167
|
+
DeleteStateMachineAliasCommand,
|
|
168
|
+
DeleteStateMachineVersionCommand,
|
|
169
|
+
DescribeActivityCommand,
|
|
170
|
+
DescribeExecutionCommand,
|
|
171
|
+
DescribeMapRunCommand,
|
|
172
|
+
DescribeStateMachineCommand,
|
|
173
|
+
DescribeStateMachineAliasCommand,
|
|
174
|
+
DescribeStateMachineForExecutionCommand,
|
|
175
|
+
GetActivityTaskCommand,
|
|
176
|
+
GetExecutionHistoryCommand,
|
|
177
|
+
ListActivitiesCommand,
|
|
178
|
+
ListExecutionsCommand,
|
|
179
|
+
ListMapRunsCommand,
|
|
180
|
+
ListStateMachineAliasesCommand,
|
|
181
|
+
ListStateMachineVersionsCommand,
|
|
182
|
+
ListStateMachinesCommand,
|
|
183
|
+
ListTagsForResourceCommand,
|
|
184
|
+
PublishStateMachineVersionCommand,
|
|
185
|
+
RedriveExecutionCommand,
|
|
186
|
+
SendTaskFailureCommand,
|
|
187
|
+
SendTaskHeartbeatCommand,
|
|
188
|
+
SendTaskSuccessCommand,
|
|
189
|
+
StartExecutionCommand,
|
|
190
|
+
StartSyncExecutionCommand,
|
|
191
|
+
StopExecutionCommand,
|
|
192
|
+
TagResourceCommand,
|
|
193
|
+
TestStateCommand,
|
|
194
|
+
UntagResourceCommand,
|
|
195
|
+
UpdateMapRunCommand,
|
|
196
|
+
UpdateStateMachineCommand,
|
|
197
|
+
UpdateStateMachineAliasCommand,
|
|
198
|
+
ValidateStateMachineDefinitionCommand,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
interface SFNService$ {
|
|
202
|
+
readonly _: unique symbol;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @see {@link CreateActivityCommand}
|
|
206
|
+
*/
|
|
207
|
+
createActivity(
|
|
208
|
+
args: CreateActivityCommandInput,
|
|
209
|
+
options?: HttpHandlerOptions,
|
|
210
|
+
): Effect.Effect<
|
|
211
|
+
CreateActivityCommandOutput,
|
|
212
|
+
| SdkError
|
|
213
|
+
| ActivityAlreadyExistsError
|
|
214
|
+
| ActivityLimitExceededError
|
|
215
|
+
| InvalidEncryptionConfigurationError
|
|
216
|
+
| InvalidNameError
|
|
217
|
+
| KmsAccessDeniedError
|
|
218
|
+
| KmsThrottlingError
|
|
219
|
+
| TooManyTagsError
|
|
220
|
+
>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @see {@link CreateStateMachineCommand}
|
|
224
|
+
*/
|
|
225
|
+
createStateMachine(
|
|
226
|
+
args: CreateStateMachineCommandInput,
|
|
227
|
+
options?: HttpHandlerOptions,
|
|
228
|
+
): Effect.Effect<
|
|
229
|
+
CreateStateMachineCommandOutput,
|
|
230
|
+
| SdkError
|
|
231
|
+
| ConflictError
|
|
232
|
+
| InvalidArnError
|
|
233
|
+
| InvalidDefinitionError
|
|
234
|
+
| InvalidEncryptionConfigurationError
|
|
235
|
+
| InvalidLoggingConfigurationError
|
|
236
|
+
| InvalidNameError
|
|
237
|
+
| InvalidTracingConfigurationError
|
|
238
|
+
| KmsAccessDeniedError
|
|
239
|
+
| KmsThrottlingError
|
|
240
|
+
| StateMachineAlreadyExistsError
|
|
241
|
+
| StateMachineDeletingError
|
|
242
|
+
| StateMachineLimitExceededError
|
|
243
|
+
| StateMachineTypeNotSupportedError
|
|
244
|
+
| TooManyTagsError
|
|
245
|
+
| ValidationError
|
|
246
|
+
>;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @see {@link CreateStateMachineAliasCommand}
|
|
250
|
+
*/
|
|
251
|
+
createStateMachineAlias(
|
|
252
|
+
args: CreateStateMachineAliasCommandInput,
|
|
253
|
+
options?: HttpHandlerOptions,
|
|
254
|
+
): Effect.Effect<
|
|
255
|
+
CreateStateMachineAliasCommandOutput,
|
|
256
|
+
| SdkError
|
|
257
|
+
| ConflictError
|
|
258
|
+
| InvalidArnError
|
|
259
|
+
| InvalidNameError
|
|
260
|
+
| ResourceNotFoundError
|
|
261
|
+
| ServiceQuotaExceededError
|
|
262
|
+
| StateMachineDeletingError
|
|
263
|
+
| ValidationError
|
|
264
|
+
>;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @see {@link DeleteActivityCommand}
|
|
268
|
+
*/
|
|
269
|
+
deleteActivity(
|
|
270
|
+
args: DeleteActivityCommandInput,
|
|
271
|
+
options?: HttpHandlerOptions,
|
|
272
|
+
): Effect.Effect<
|
|
273
|
+
DeleteActivityCommandOutput,
|
|
274
|
+
SdkError | InvalidArnError
|
|
275
|
+
>;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @see {@link DeleteStateMachineCommand}
|
|
279
|
+
*/
|
|
280
|
+
deleteStateMachine(
|
|
281
|
+
args: DeleteStateMachineCommandInput,
|
|
282
|
+
options?: HttpHandlerOptions,
|
|
283
|
+
): Effect.Effect<
|
|
284
|
+
DeleteStateMachineCommandOutput,
|
|
285
|
+
SdkError | InvalidArnError | ValidationError
|
|
286
|
+
>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @see {@link DeleteStateMachineAliasCommand}
|
|
290
|
+
*/
|
|
291
|
+
deleteStateMachineAlias(
|
|
292
|
+
args: DeleteStateMachineAliasCommandInput,
|
|
293
|
+
options?: HttpHandlerOptions,
|
|
294
|
+
): Effect.Effect<
|
|
295
|
+
DeleteStateMachineAliasCommandOutput,
|
|
296
|
+
SdkError | ConflictError | InvalidArnError | ResourceNotFoundError | ValidationError
|
|
297
|
+
>;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @see {@link DeleteStateMachineVersionCommand}
|
|
301
|
+
*/
|
|
302
|
+
deleteStateMachineVersion(
|
|
303
|
+
args: DeleteStateMachineVersionCommandInput,
|
|
304
|
+
options?: HttpHandlerOptions,
|
|
305
|
+
): Effect.Effect<
|
|
306
|
+
DeleteStateMachineVersionCommandOutput,
|
|
307
|
+
SdkError | ConflictError | InvalidArnError | ValidationError
|
|
308
|
+
>;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @see {@link DescribeActivityCommand}
|
|
312
|
+
*/
|
|
313
|
+
describeActivity(
|
|
314
|
+
args: DescribeActivityCommandInput,
|
|
315
|
+
options?: HttpHandlerOptions,
|
|
316
|
+
): Effect.Effect<
|
|
317
|
+
DescribeActivityCommandOutput,
|
|
318
|
+
SdkError | ActivityDoesNotExistError | InvalidArnError
|
|
319
|
+
>;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @see {@link DescribeExecutionCommand}
|
|
323
|
+
*/
|
|
324
|
+
describeExecution(
|
|
325
|
+
args: DescribeExecutionCommandInput,
|
|
326
|
+
options?: HttpHandlerOptions,
|
|
327
|
+
): Effect.Effect<
|
|
328
|
+
DescribeExecutionCommandOutput,
|
|
329
|
+
| SdkError
|
|
330
|
+
| ExecutionDoesNotExistError
|
|
331
|
+
| InvalidArnError
|
|
332
|
+
| KmsAccessDeniedError
|
|
333
|
+
| KmsInvalidStateError
|
|
334
|
+
| KmsThrottlingError
|
|
335
|
+
>;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @see {@link DescribeMapRunCommand}
|
|
339
|
+
*/
|
|
340
|
+
describeMapRun(
|
|
341
|
+
args: DescribeMapRunCommandInput,
|
|
342
|
+
options?: HttpHandlerOptions,
|
|
343
|
+
): Effect.Effect<
|
|
344
|
+
DescribeMapRunCommandOutput,
|
|
345
|
+
SdkError | InvalidArnError | ResourceNotFoundError
|
|
346
|
+
>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @see {@link DescribeStateMachineCommand}
|
|
350
|
+
*/
|
|
351
|
+
describeStateMachine(
|
|
352
|
+
args: DescribeStateMachineCommandInput,
|
|
353
|
+
options?: HttpHandlerOptions,
|
|
354
|
+
): Effect.Effect<
|
|
355
|
+
DescribeStateMachineCommandOutput,
|
|
356
|
+
| SdkError
|
|
357
|
+
| InvalidArnError
|
|
358
|
+
| KmsAccessDeniedError
|
|
359
|
+
| KmsInvalidStateError
|
|
360
|
+
| KmsThrottlingError
|
|
361
|
+
| StateMachineDoesNotExistError
|
|
362
|
+
>;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @see {@link DescribeStateMachineAliasCommand}
|
|
366
|
+
*/
|
|
367
|
+
describeStateMachineAlias(
|
|
368
|
+
args: DescribeStateMachineAliasCommandInput,
|
|
369
|
+
options?: HttpHandlerOptions,
|
|
370
|
+
): Effect.Effect<
|
|
371
|
+
DescribeStateMachineAliasCommandOutput,
|
|
372
|
+
SdkError | InvalidArnError | ResourceNotFoundError | ValidationError
|
|
373
|
+
>;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @see {@link DescribeStateMachineForExecutionCommand}
|
|
377
|
+
*/
|
|
378
|
+
describeStateMachineForExecution(
|
|
379
|
+
args: DescribeStateMachineForExecutionCommandInput,
|
|
380
|
+
options?: HttpHandlerOptions,
|
|
381
|
+
): Effect.Effect<
|
|
382
|
+
DescribeStateMachineForExecutionCommandOutput,
|
|
383
|
+
| SdkError
|
|
384
|
+
| ExecutionDoesNotExistError
|
|
385
|
+
| InvalidArnError
|
|
386
|
+
| KmsAccessDeniedError
|
|
387
|
+
| KmsInvalidStateError
|
|
388
|
+
| KmsThrottlingError
|
|
389
|
+
>;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @see {@link GetActivityTaskCommand}
|
|
393
|
+
*/
|
|
394
|
+
getActivityTask(
|
|
395
|
+
args: GetActivityTaskCommandInput,
|
|
396
|
+
options?: HttpHandlerOptions,
|
|
397
|
+
): Effect.Effect<
|
|
398
|
+
GetActivityTaskCommandOutput,
|
|
399
|
+
| SdkError
|
|
400
|
+
| ActivityDoesNotExistError
|
|
401
|
+
| ActivityWorkerLimitExceededError
|
|
402
|
+
| InvalidArnError
|
|
403
|
+
| KmsAccessDeniedError
|
|
404
|
+
| KmsInvalidStateError
|
|
405
|
+
| KmsThrottlingError
|
|
406
|
+
>;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* @see {@link GetExecutionHistoryCommand}
|
|
410
|
+
*/
|
|
411
|
+
getExecutionHistory(
|
|
412
|
+
args: GetExecutionHistoryCommandInput,
|
|
413
|
+
options?: HttpHandlerOptions,
|
|
414
|
+
): Effect.Effect<
|
|
415
|
+
GetExecutionHistoryCommandOutput,
|
|
416
|
+
| SdkError
|
|
417
|
+
| ExecutionDoesNotExistError
|
|
418
|
+
| InvalidArnError
|
|
419
|
+
| InvalidTokenError
|
|
420
|
+
| KmsAccessDeniedError
|
|
421
|
+
| KmsInvalidStateError
|
|
422
|
+
| KmsThrottlingError
|
|
423
|
+
>;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @see {@link ListActivitiesCommand}
|
|
427
|
+
*/
|
|
428
|
+
listActivities(
|
|
429
|
+
args: ListActivitiesCommandInput,
|
|
430
|
+
options?: HttpHandlerOptions,
|
|
431
|
+
): Effect.Effect<
|
|
432
|
+
ListActivitiesCommandOutput,
|
|
433
|
+
SdkError | InvalidTokenError
|
|
434
|
+
>;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @see {@link ListExecutionsCommand}
|
|
438
|
+
*/
|
|
439
|
+
listExecutions(
|
|
440
|
+
args: ListExecutionsCommandInput,
|
|
441
|
+
options?: HttpHandlerOptions,
|
|
442
|
+
): Effect.Effect<
|
|
443
|
+
ListExecutionsCommandOutput,
|
|
444
|
+
| SdkError
|
|
445
|
+
| InvalidArnError
|
|
446
|
+
| InvalidTokenError
|
|
447
|
+
| ResourceNotFoundError
|
|
448
|
+
| StateMachineDoesNotExistError
|
|
449
|
+
| StateMachineTypeNotSupportedError
|
|
450
|
+
| ValidationError
|
|
451
|
+
>;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @see {@link ListMapRunsCommand}
|
|
455
|
+
*/
|
|
456
|
+
listMapRuns(
|
|
457
|
+
args: ListMapRunsCommandInput,
|
|
458
|
+
options?: HttpHandlerOptions,
|
|
459
|
+
): Effect.Effect<
|
|
460
|
+
ListMapRunsCommandOutput,
|
|
461
|
+
SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError
|
|
462
|
+
>;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @see {@link ListStateMachineAliasesCommand}
|
|
466
|
+
*/
|
|
467
|
+
listStateMachineAliases(
|
|
468
|
+
args: ListStateMachineAliasesCommandInput,
|
|
469
|
+
options?: HttpHandlerOptions,
|
|
470
|
+
): Effect.Effect<
|
|
471
|
+
ListStateMachineAliasesCommandOutput,
|
|
472
|
+
| SdkError
|
|
473
|
+
| InvalidArnError
|
|
474
|
+
| InvalidTokenError
|
|
475
|
+
| ResourceNotFoundError
|
|
476
|
+
| StateMachineDeletingError
|
|
477
|
+
| StateMachineDoesNotExistError
|
|
478
|
+
>;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @see {@link ListStateMachineVersionsCommand}
|
|
482
|
+
*/
|
|
483
|
+
listStateMachineVersions(
|
|
484
|
+
args: ListStateMachineVersionsCommandInput,
|
|
485
|
+
options?: HttpHandlerOptions,
|
|
486
|
+
): Effect.Effect<
|
|
487
|
+
ListStateMachineVersionsCommandOutput,
|
|
488
|
+
SdkError | InvalidArnError | InvalidTokenError | ValidationError
|
|
489
|
+
>;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @see {@link ListStateMachinesCommand}
|
|
493
|
+
*/
|
|
494
|
+
listStateMachines(
|
|
495
|
+
args: ListStateMachinesCommandInput,
|
|
496
|
+
options?: HttpHandlerOptions,
|
|
497
|
+
): Effect.Effect<
|
|
498
|
+
ListStateMachinesCommandOutput,
|
|
499
|
+
SdkError | InvalidTokenError
|
|
500
|
+
>;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @see {@link ListTagsForResourceCommand}
|
|
504
|
+
*/
|
|
505
|
+
listTagsForResource(
|
|
506
|
+
args: ListTagsForResourceCommandInput,
|
|
507
|
+
options?: HttpHandlerOptions,
|
|
508
|
+
): Effect.Effect<
|
|
509
|
+
ListTagsForResourceCommandOutput,
|
|
510
|
+
SdkError | InvalidArnError | ResourceNotFoundError
|
|
511
|
+
>;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @see {@link PublishStateMachineVersionCommand}
|
|
515
|
+
*/
|
|
516
|
+
publishStateMachineVersion(
|
|
517
|
+
args: PublishStateMachineVersionCommandInput,
|
|
518
|
+
options?: HttpHandlerOptions,
|
|
519
|
+
): Effect.Effect<
|
|
520
|
+
PublishStateMachineVersionCommandOutput,
|
|
521
|
+
| SdkError
|
|
522
|
+
| ConflictError
|
|
523
|
+
| InvalidArnError
|
|
524
|
+
| ServiceQuotaExceededError
|
|
525
|
+
| StateMachineDeletingError
|
|
526
|
+
| StateMachineDoesNotExistError
|
|
527
|
+
| ValidationError
|
|
528
|
+
>;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @see {@link RedriveExecutionCommand}
|
|
532
|
+
*/
|
|
533
|
+
redriveExecution(
|
|
534
|
+
args: RedriveExecutionCommandInput,
|
|
535
|
+
options?: HttpHandlerOptions,
|
|
536
|
+
): Effect.Effect<
|
|
537
|
+
RedriveExecutionCommandOutput,
|
|
538
|
+
| SdkError
|
|
539
|
+
| ExecutionDoesNotExistError
|
|
540
|
+
| ExecutionLimitExceededError
|
|
541
|
+
| ExecutionNotRedrivableError
|
|
542
|
+
| InvalidArnError
|
|
543
|
+
| ValidationError
|
|
544
|
+
>;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* @see {@link SendTaskFailureCommand}
|
|
548
|
+
*/
|
|
549
|
+
sendTaskFailure(
|
|
550
|
+
args: SendTaskFailureCommandInput,
|
|
551
|
+
options?: HttpHandlerOptions,
|
|
552
|
+
): Effect.Effect<
|
|
553
|
+
SendTaskFailureCommandOutput,
|
|
554
|
+
| SdkError
|
|
555
|
+
| InvalidTokenError
|
|
556
|
+
| KmsAccessDeniedError
|
|
557
|
+
| KmsInvalidStateError
|
|
558
|
+
| KmsThrottlingError
|
|
559
|
+
| TaskDoesNotExistError
|
|
560
|
+
| TaskTimedOutError
|
|
561
|
+
>;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* @see {@link SendTaskHeartbeatCommand}
|
|
565
|
+
*/
|
|
566
|
+
sendTaskHeartbeat(
|
|
567
|
+
args: SendTaskHeartbeatCommandInput,
|
|
568
|
+
options?: HttpHandlerOptions,
|
|
569
|
+
): Effect.Effect<
|
|
570
|
+
SendTaskHeartbeatCommandOutput,
|
|
571
|
+
SdkError | InvalidTokenError | TaskDoesNotExistError | TaskTimedOutError
|
|
572
|
+
>;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @see {@link SendTaskSuccessCommand}
|
|
576
|
+
*/
|
|
577
|
+
sendTaskSuccess(
|
|
578
|
+
args: SendTaskSuccessCommandInput,
|
|
579
|
+
options?: HttpHandlerOptions,
|
|
580
|
+
): Effect.Effect<
|
|
581
|
+
SendTaskSuccessCommandOutput,
|
|
582
|
+
| SdkError
|
|
583
|
+
| InvalidOutputError
|
|
584
|
+
| InvalidTokenError
|
|
585
|
+
| KmsAccessDeniedError
|
|
586
|
+
| KmsInvalidStateError
|
|
587
|
+
| KmsThrottlingError
|
|
588
|
+
| TaskDoesNotExistError
|
|
589
|
+
| TaskTimedOutError
|
|
590
|
+
>;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @see {@link StartExecutionCommand}
|
|
594
|
+
*/
|
|
595
|
+
startExecution(
|
|
596
|
+
args: StartExecutionCommandInput,
|
|
597
|
+
options?: HttpHandlerOptions,
|
|
598
|
+
): Effect.Effect<
|
|
599
|
+
StartExecutionCommandOutput,
|
|
600
|
+
| SdkError
|
|
601
|
+
| ExecutionAlreadyExistsError
|
|
602
|
+
| ExecutionLimitExceededError
|
|
603
|
+
| InvalidArnError
|
|
604
|
+
| InvalidExecutionInputError
|
|
605
|
+
| InvalidNameError
|
|
606
|
+
| KmsAccessDeniedError
|
|
607
|
+
| KmsInvalidStateError
|
|
608
|
+
| KmsThrottlingError
|
|
609
|
+
| StateMachineDeletingError
|
|
610
|
+
| StateMachineDoesNotExistError
|
|
611
|
+
| ValidationError
|
|
612
|
+
>;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @see {@link StartSyncExecutionCommand}
|
|
616
|
+
*/
|
|
617
|
+
startSyncExecution(
|
|
618
|
+
args: StartSyncExecutionCommandInput,
|
|
619
|
+
options?: HttpHandlerOptions,
|
|
620
|
+
): Effect.Effect<
|
|
621
|
+
StartSyncExecutionCommandOutput,
|
|
622
|
+
| SdkError
|
|
623
|
+
| InvalidArnError
|
|
624
|
+
| InvalidExecutionInputError
|
|
625
|
+
| InvalidNameError
|
|
626
|
+
| KmsAccessDeniedError
|
|
627
|
+
| KmsInvalidStateError
|
|
628
|
+
| KmsThrottlingError
|
|
629
|
+
| StateMachineDeletingError
|
|
630
|
+
| StateMachineDoesNotExistError
|
|
631
|
+
| StateMachineTypeNotSupportedError
|
|
632
|
+
>;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* @see {@link StopExecutionCommand}
|
|
636
|
+
*/
|
|
637
|
+
stopExecution(
|
|
638
|
+
args: StopExecutionCommandInput,
|
|
639
|
+
options?: HttpHandlerOptions,
|
|
640
|
+
): Effect.Effect<
|
|
641
|
+
StopExecutionCommandOutput,
|
|
642
|
+
| SdkError
|
|
643
|
+
| ExecutionDoesNotExistError
|
|
644
|
+
| InvalidArnError
|
|
645
|
+
| KmsAccessDeniedError
|
|
646
|
+
| KmsInvalidStateError
|
|
647
|
+
| KmsThrottlingError
|
|
648
|
+
| ValidationError
|
|
649
|
+
>;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* @see {@link TagResourceCommand}
|
|
653
|
+
*/
|
|
654
|
+
tagResource(
|
|
655
|
+
args: TagResourceCommandInput,
|
|
656
|
+
options?: HttpHandlerOptions,
|
|
657
|
+
): Effect.Effect<
|
|
658
|
+
TagResourceCommandOutput,
|
|
659
|
+
SdkError | InvalidArnError | ResourceNotFoundError | TooManyTagsError
|
|
660
|
+
>;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* @see {@link TestStateCommand}
|
|
664
|
+
*/
|
|
665
|
+
testState(
|
|
666
|
+
args: TestStateCommandInput,
|
|
667
|
+
options?: HttpHandlerOptions,
|
|
668
|
+
): Effect.Effect<
|
|
669
|
+
TestStateCommandOutput,
|
|
670
|
+
SdkError | InvalidArnError | InvalidDefinitionError | InvalidExecutionInputError | ValidationError
|
|
671
|
+
>;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* @see {@link UntagResourceCommand}
|
|
675
|
+
*/
|
|
676
|
+
untagResource(
|
|
677
|
+
args: UntagResourceCommandInput,
|
|
678
|
+
options?: HttpHandlerOptions,
|
|
679
|
+
): Effect.Effect<
|
|
680
|
+
UntagResourceCommandOutput,
|
|
681
|
+
SdkError | InvalidArnError | ResourceNotFoundError
|
|
682
|
+
>;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* @see {@link UpdateMapRunCommand}
|
|
686
|
+
*/
|
|
687
|
+
updateMapRun(
|
|
688
|
+
args: UpdateMapRunCommandInput,
|
|
689
|
+
options?: HttpHandlerOptions,
|
|
690
|
+
): Effect.Effect<
|
|
691
|
+
UpdateMapRunCommandOutput,
|
|
692
|
+
SdkError | InvalidArnError | ResourceNotFoundError | ValidationError
|
|
693
|
+
>;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* @see {@link UpdateStateMachineCommand}
|
|
697
|
+
*/
|
|
698
|
+
updateStateMachine(
|
|
699
|
+
args: UpdateStateMachineCommandInput,
|
|
700
|
+
options?: HttpHandlerOptions,
|
|
701
|
+
): Effect.Effect<
|
|
702
|
+
UpdateStateMachineCommandOutput,
|
|
703
|
+
| SdkError
|
|
704
|
+
| ConflictError
|
|
705
|
+
| InvalidArnError
|
|
706
|
+
| InvalidDefinitionError
|
|
707
|
+
| InvalidEncryptionConfigurationError
|
|
708
|
+
| InvalidLoggingConfigurationError
|
|
709
|
+
| InvalidTracingConfigurationError
|
|
710
|
+
| KmsAccessDeniedError
|
|
711
|
+
| KmsThrottlingError
|
|
712
|
+
| MissingRequiredParameterError
|
|
713
|
+
| ServiceQuotaExceededError
|
|
714
|
+
| StateMachineDeletingError
|
|
715
|
+
| StateMachineDoesNotExistError
|
|
716
|
+
| ValidationError
|
|
717
|
+
>;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* @see {@link UpdateStateMachineAliasCommand}
|
|
721
|
+
*/
|
|
722
|
+
updateStateMachineAlias(
|
|
723
|
+
args: UpdateStateMachineAliasCommandInput,
|
|
724
|
+
options?: HttpHandlerOptions,
|
|
725
|
+
): Effect.Effect<
|
|
726
|
+
UpdateStateMachineAliasCommandOutput,
|
|
727
|
+
SdkError | ConflictError | InvalidArnError | ResourceNotFoundError | StateMachineDeletingError | ValidationError
|
|
728
|
+
>;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* @see {@link ValidateStateMachineDefinitionCommand}
|
|
732
|
+
*/
|
|
733
|
+
validateStateMachineDefinition(
|
|
734
|
+
args: ValidateStateMachineDefinitionCommandInput,
|
|
735
|
+
options?: HttpHandlerOptions,
|
|
736
|
+
): Effect.Effect<
|
|
737
|
+
ValidateStateMachineDefinitionCommandOutput,
|
|
738
|
+
SdkError | ValidationError
|
|
739
|
+
>;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* @since 1.0.0
|
|
744
|
+
* @category constructors
|
|
745
|
+
*/
|
|
746
|
+
export const makeSFNService = Effect.gen(function*() {
|
|
747
|
+
const client = yield* Instance.SFNClientInstance;
|
|
748
|
+
|
|
749
|
+
return Service.fromClientAndCommands<SFNService$>(
|
|
750
|
+
client,
|
|
751
|
+
commands,
|
|
752
|
+
{
|
|
753
|
+
errorTags: AllServiceErrors,
|
|
754
|
+
resolveClientConfig: SFNServiceConfig.toSFNClientConfig,
|
|
755
|
+
},
|
|
756
|
+
);
|
|
757
|
+
});
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* @since 1.0.0
|
|
761
|
+
* @category models
|
|
762
|
+
*/
|
|
763
|
+
export class SFNService extends Effect.Tag("@effect-aws/client-sfn/SFNService")<
|
|
764
|
+
SFNService,
|
|
765
|
+
SFNService$
|
|
766
|
+
>() {
|
|
767
|
+
static readonly defaultLayer = Layer.effect(this, makeSFNService).pipe(Layer.provide(Instance.layer));
|
|
768
|
+
static readonly layer = (config: SFNService.Config) =>
|
|
769
|
+
Layer.effect(this, makeSFNService).pipe(
|
|
770
|
+
Layer.provide(Instance.layer),
|
|
771
|
+
Layer.provide(SFNServiceConfig.setSFNServiceConfig(config)),
|
|
772
|
+
);
|
|
773
|
+
static readonly baseLayer = (
|
|
774
|
+
evaluate: (defaultConfig: SFNClientConfig) => SFNClient,
|
|
775
|
+
) =>
|
|
776
|
+
Layer.effect(this, makeSFNService).pipe(
|
|
777
|
+
Layer.provide(
|
|
778
|
+
Layer.effect(
|
|
779
|
+
Instance.SFNClientInstance,
|
|
780
|
+
Effect.map(SFNServiceConfig.toSFNClientConfig, evaluate),
|
|
781
|
+
),
|
|
782
|
+
),
|
|
783
|
+
);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* @since 1.0.0
|
|
788
|
+
*/
|
|
789
|
+
export declare namespace SFNService {
|
|
790
|
+
/**
|
|
791
|
+
* @since 1.0.0
|
|
792
|
+
*/
|
|
793
|
+
export interface Config extends Omit<SFNClientConfig, "logger"> {
|
|
794
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
795
|
+
}
|
|
796
|
+
}
|