@effect-aws/client-sfn 1.10.9 → 2.0.0-beta.1
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/SFNClientInstance.d.ts +4 -2
- package/dist/dts/SFNClientInstance.d.ts.map +1 -1
- package/dist/dts/SFNService.d.ts +42 -42
- package/dist/dts/SFNService.d.ts.map +1 -1
- package/dist/dts/SFNServiceConfig.d.ts +2 -1
- package/dist/dts/SFNServiceConfig.d.ts.map +1 -1
- package/dist/esm/SFNClientInstance.js +5 -3
- package/dist/esm/SFNClientInstance.js.map +1 -1
- package/dist/esm/SFNService.js +4 -2
- package/dist/esm/SFNService.js.map +1 -1
- package/dist/esm/SFNServiceConfig.js +7 -6
- package/dist/esm/SFNServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/SFNClientInstance.ts +6 -4
- package/src/SFNService.ts +43 -41
- package/src/SFNServiceConfig.ts +8 -7
- package/dist/cjs/Errors.d.ts +0 -40
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -39
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/SFNClientInstance.d.ts +0 -24
- package/dist/cjs/SFNClientInstance.d.ts.map +0 -1
- package/dist/cjs/SFNClientInstance.js +0 -50
- package/dist/cjs/SFNClientInstance.js.map +0 -1
- package/dist/cjs/SFNService.d.ts +0 -194
- package/dist/cjs/SFNService.d.ts.map +0 -1
- package/dist/cjs/SFNService.js +0 -96
- package/dist/cjs/SFNService.js.map +0 -1
- package/dist/cjs/SFNServiceConfig.d.ts +0 -25
- package/dist/cjs/SFNServiceConfig.d.ts.map +0 -1
- package/dist/cjs/SFNServiceConfig.js +0 -35
- package/dist/cjs/SFNServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/src/SFNService.ts
CHANGED
|
@@ -118,8 +118,10 @@ import {
|
|
|
118
118
|
} from "@aws-sdk/client-sfn";
|
|
119
119
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
120
120
|
import { Service } from "@effect-aws/commons";
|
|
121
|
-
import type
|
|
122
|
-
import
|
|
121
|
+
import type * as Cause from "effect/Cause";
|
|
122
|
+
import * as Effect from "effect/Effect";
|
|
123
|
+
import * as Layer from "effect/Layer";
|
|
124
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
123
125
|
import type {
|
|
124
126
|
ActivityAlreadyExistsError,
|
|
125
127
|
ActivityDoesNotExistError,
|
|
@@ -211,7 +213,7 @@ interface SFNService$ {
|
|
|
211
213
|
options?: HttpHandlerOptions,
|
|
212
214
|
): Effect.Effect<
|
|
213
215
|
CreateActivityCommandOutput,
|
|
214
|
-
| Cause.
|
|
216
|
+
| Cause.TimeoutError
|
|
215
217
|
| SdkError
|
|
216
218
|
| ActivityAlreadyExistsError
|
|
217
219
|
| ActivityLimitExceededError
|
|
@@ -230,7 +232,7 @@ interface SFNService$ {
|
|
|
230
232
|
options?: HttpHandlerOptions,
|
|
231
233
|
): Effect.Effect<
|
|
232
234
|
CreateStateMachineCommandOutput,
|
|
233
|
-
| Cause.
|
|
235
|
+
| Cause.TimeoutError
|
|
234
236
|
| SdkError
|
|
235
237
|
| ConflictError
|
|
236
238
|
| InvalidArnError
|
|
@@ -257,7 +259,7 @@ interface SFNService$ {
|
|
|
257
259
|
options?: HttpHandlerOptions,
|
|
258
260
|
): Effect.Effect<
|
|
259
261
|
CreateStateMachineAliasCommandOutput,
|
|
260
|
-
| Cause.
|
|
262
|
+
| Cause.TimeoutError
|
|
261
263
|
| SdkError
|
|
262
264
|
| ConflictError
|
|
263
265
|
| InvalidArnError
|
|
@@ -276,7 +278,7 @@ interface SFNService$ {
|
|
|
276
278
|
options?: HttpHandlerOptions,
|
|
277
279
|
): Effect.Effect<
|
|
278
280
|
DeleteActivityCommandOutput,
|
|
279
|
-
Cause.
|
|
281
|
+
Cause.TimeoutError | SdkError | InvalidArnError
|
|
280
282
|
>;
|
|
281
283
|
|
|
282
284
|
/**
|
|
@@ -287,7 +289,7 @@ interface SFNService$ {
|
|
|
287
289
|
options?: HttpHandlerOptions,
|
|
288
290
|
): Effect.Effect<
|
|
289
291
|
DeleteStateMachineCommandOutput,
|
|
290
|
-
Cause.
|
|
292
|
+
Cause.TimeoutError | SdkError | InvalidArnError | ValidationError
|
|
291
293
|
>;
|
|
292
294
|
|
|
293
295
|
/**
|
|
@@ -298,7 +300,7 @@ interface SFNService$ {
|
|
|
298
300
|
options?: HttpHandlerOptions,
|
|
299
301
|
): Effect.Effect<
|
|
300
302
|
DeleteStateMachineAliasCommandOutput,
|
|
301
|
-
Cause.
|
|
303
|
+
Cause.TimeoutError | SdkError | ConflictError | InvalidArnError | ResourceNotFoundError | ValidationError
|
|
302
304
|
>;
|
|
303
305
|
|
|
304
306
|
/**
|
|
@@ -309,7 +311,7 @@ interface SFNService$ {
|
|
|
309
311
|
options?: HttpHandlerOptions,
|
|
310
312
|
): Effect.Effect<
|
|
311
313
|
DeleteStateMachineVersionCommandOutput,
|
|
312
|
-
Cause.
|
|
314
|
+
Cause.TimeoutError | SdkError | ConflictError | InvalidArnError | ValidationError
|
|
313
315
|
>;
|
|
314
316
|
|
|
315
317
|
/**
|
|
@@ -320,7 +322,7 @@ interface SFNService$ {
|
|
|
320
322
|
options?: HttpHandlerOptions,
|
|
321
323
|
): Effect.Effect<
|
|
322
324
|
DescribeActivityCommandOutput,
|
|
323
|
-
Cause.
|
|
325
|
+
Cause.TimeoutError | SdkError | ActivityDoesNotExistError | InvalidArnError
|
|
324
326
|
>;
|
|
325
327
|
|
|
326
328
|
/**
|
|
@@ -331,7 +333,7 @@ interface SFNService$ {
|
|
|
331
333
|
options?: HttpHandlerOptions,
|
|
332
334
|
): Effect.Effect<
|
|
333
335
|
DescribeExecutionCommandOutput,
|
|
334
|
-
| Cause.
|
|
336
|
+
| Cause.TimeoutError
|
|
335
337
|
| SdkError
|
|
336
338
|
| ExecutionDoesNotExistError
|
|
337
339
|
| InvalidArnError
|
|
@@ -348,7 +350,7 @@ interface SFNService$ {
|
|
|
348
350
|
options?: HttpHandlerOptions,
|
|
349
351
|
): Effect.Effect<
|
|
350
352
|
DescribeMapRunCommandOutput,
|
|
351
|
-
Cause.
|
|
353
|
+
Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError
|
|
352
354
|
>;
|
|
353
355
|
|
|
354
356
|
/**
|
|
@@ -359,7 +361,7 @@ interface SFNService$ {
|
|
|
359
361
|
options?: HttpHandlerOptions,
|
|
360
362
|
): Effect.Effect<
|
|
361
363
|
DescribeStateMachineCommandOutput,
|
|
362
|
-
| Cause.
|
|
364
|
+
| Cause.TimeoutError
|
|
363
365
|
| SdkError
|
|
364
366
|
| InvalidArnError
|
|
365
367
|
| KmsAccessDeniedError
|
|
@@ -376,7 +378,7 @@ interface SFNService$ {
|
|
|
376
378
|
options?: HttpHandlerOptions,
|
|
377
379
|
): Effect.Effect<
|
|
378
380
|
DescribeStateMachineAliasCommandOutput,
|
|
379
|
-
Cause.
|
|
381
|
+
Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError | ValidationError
|
|
380
382
|
>;
|
|
381
383
|
|
|
382
384
|
/**
|
|
@@ -387,7 +389,7 @@ interface SFNService$ {
|
|
|
387
389
|
options?: HttpHandlerOptions,
|
|
388
390
|
): Effect.Effect<
|
|
389
391
|
DescribeStateMachineForExecutionCommandOutput,
|
|
390
|
-
| Cause.
|
|
392
|
+
| Cause.TimeoutError
|
|
391
393
|
| SdkError
|
|
392
394
|
| ExecutionDoesNotExistError
|
|
393
395
|
| InvalidArnError
|
|
@@ -404,7 +406,7 @@ interface SFNService$ {
|
|
|
404
406
|
options?: HttpHandlerOptions,
|
|
405
407
|
): Effect.Effect<
|
|
406
408
|
GetActivityTaskCommandOutput,
|
|
407
|
-
| Cause.
|
|
409
|
+
| Cause.TimeoutError
|
|
408
410
|
| SdkError
|
|
409
411
|
| ActivityDoesNotExistError
|
|
410
412
|
| ActivityWorkerLimitExceededError
|
|
@@ -422,7 +424,7 @@ interface SFNService$ {
|
|
|
422
424
|
options?: HttpHandlerOptions,
|
|
423
425
|
): Effect.Effect<
|
|
424
426
|
GetExecutionHistoryCommandOutput,
|
|
425
|
-
| Cause.
|
|
427
|
+
| Cause.TimeoutError
|
|
426
428
|
| SdkError
|
|
427
429
|
| ExecutionDoesNotExistError
|
|
428
430
|
| InvalidArnError
|
|
@@ -440,7 +442,7 @@ interface SFNService$ {
|
|
|
440
442
|
options?: HttpHandlerOptions,
|
|
441
443
|
): Effect.Effect<
|
|
442
444
|
ListActivitiesCommandOutput,
|
|
443
|
-
Cause.
|
|
445
|
+
Cause.TimeoutError | SdkError | InvalidTokenError
|
|
444
446
|
>;
|
|
445
447
|
|
|
446
448
|
/**
|
|
@@ -451,7 +453,7 @@ interface SFNService$ {
|
|
|
451
453
|
options?: HttpHandlerOptions,
|
|
452
454
|
): Effect.Effect<
|
|
453
455
|
ListExecutionsCommandOutput,
|
|
454
|
-
| Cause.
|
|
456
|
+
| Cause.TimeoutError
|
|
455
457
|
| SdkError
|
|
456
458
|
| InvalidArnError
|
|
457
459
|
| InvalidTokenError
|
|
@@ -469,7 +471,7 @@ interface SFNService$ {
|
|
|
469
471
|
options?: HttpHandlerOptions,
|
|
470
472
|
): Effect.Effect<
|
|
471
473
|
ListMapRunsCommandOutput,
|
|
472
|
-
Cause.
|
|
474
|
+
Cause.TimeoutError | SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError
|
|
473
475
|
>;
|
|
474
476
|
|
|
475
477
|
/**
|
|
@@ -480,7 +482,7 @@ interface SFNService$ {
|
|
|
480
482
|
options?: HttpHandlerOptions,
|
|
481
483
|
): Effect.Effect<
|
|
482
484
|
ListStateMachineAliasesCommandOutput,
|
|
483
|
-
| Cause.
|
|
485
|
+
| Cause.TimeoutError
|
|
484
486
|
| SdkError
|
|
485
487
|
| InvalidArnError
|
|
486
488
|
| InvalidTokenError
|
|
@@ -497,7 +499,7 @@ interface SFNService$ {
|
|
|
497
499
|
options?: HttpHandlerOptions,
|
|
498
500
|
): Effect.Effect<
|
|
499
501
|
ListStateMachineVersionsCommandOutput,
|
|
500
|
-
Cause.
|
|
502
|
+
Cause.TimeoutError | SdkError | InvalidArnError | InvalidTokenError | ValidationError
|
|
501
503
|
>;
|
|
502
504
|
|
|
503
505
|
/**
|
|
@@ -508,7 +510,7 @@ interface SFNService$ {
|
|
|
508
510
|
options?: HttpHandlerOptions,
|
|
509
511
|
): Effect.Effect<
|
|
510
512
|
ListStateMachinesCommandOutput,
|
|
511
|
-
Cause.
|
|
513
|
+
Cause.TimeoutError | SdkError | InvalidTokenError
|
|
512
514
|
>;
|
|
513
515
|
|
|
514
516
|
/**
|
|
@@ -519,7 +521,7 @@ interface SFNService$ {
|
|
|
519
521
|
options?: HttpHandlerOptions,
|
|
520
522
|
): Effect.Effect<
|
|
521
523
|
ListTagsForResourceCommandOutput,
|
|
522
|
-
Cause.
|
|
524
|
+
Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError
|
|
523
525
|
>;
|
|
524
526
|
|
|
525
527
|
/**
|
|
@@ -530,7 +532,7 @@ interface SFNService$ {
|
|
|
530
532
|
options?: HttpHandlerOptions,
|
|
531
533
|
): Effect.Effect<
|
|
532
534
|
PublishStateMachineVersionCommandOutput,
|
|
533
|
-
| Cause.
|
|
535
|
+
| Cause.TimeoutError
|
|
534
536
|
| SdkError
|
|
535
537
|
| ConflictError
|
|
536
538
|
| InvalidArnError
|
|
@@ -548,7 +550,7 @@ interface SFNService$ {
|
|
|
548
550
|
options?: HttpHandlerOptions,
|
|
549
551
|
): Effect.Effect<
|
|
550
552
|
RedriveExecutionCommandOutput,
|
|
551
|
-
| Cause.
|
|
553
|
+
| Cause.TimeoutError
|
|
552
554
|
| SdkError
|
|
553
555
|
| ExecutionDoesNotExistError
|
|
554
556
|
| ExecutionLimitExceededError
|
|
@@ -565,7 +567,7 @@ interface SFNService$ {
|
|
|
565
567
|
options?: HttpHandlerOptions,
|
|
566
568
|
): Effect.Effect<
|
|
567
569
|
SendTaskFailureCommandOutput,
|
|
568
|
-
| Cause.
|
|
570
|
+
| Cause.TimeoutError
|
|
569
571
|
| SdkError
|
|
570
572
|
| InvalidTokenError
|
|
571
573
|
| KmsAccessDeniedError
|
|
@@ -583,7 +585,7 @@ interface SFNService$ {
|
|
|
583
585
|
options?: HttpHandlerOptions,
|
|
584
586
|
): Effect.Effect<
|
|
585
587
|
SendTaskHeartbeatCommandOutput,
|
|
586
|
-
Cause.
|
|
588
|
+
Cause.TimeoutError | SdkError | InvalidTokenError | TaskDoesNotExistError | TaskTimedOutError
|
|
587
589
|
>;
|
|
588
590
|
|
|
589
591
|
/**
|
|
@@ -594,7 +596,7 @@ interface SFNService$ {
|
|
|
594
596
|
options?: HttpHandlerOptions,
|
|
595
597
|
): Effect.Effect<
|
|
596
598
|
SendTaskSuccessCommandOutput,
|
|
597
|
-
| Cause.
|
|
599
|
+
| Cause.TimeoutError
|
|
598
600
|
| SdkError
|
|
599
601
|
| InvalidOutputError
|
|
600
602
|
| InvalidTokenError
|
|
@@ -613,7 +615,7 @@ interface SFNService$ {
|
|
|
613
615
|
options?: HttpHandlerOptions,
|
|
614
616
|
): Effect.Effect<
|
|
615
617
|
StartExecutionCommandOutput,
|
|
616
|
-
| Cause.
|
|
618
|
+
| Cause.TimeoutError
|
|
617
619
|
| SdkError
|
|
618
620
|
| ExecutionAlreadyExistsError
|
|
619
621
|
| ExecutionLimitExceededError
|
|
@@ -636,7 +638,7 @@ interface SFNService$ {
|
|
|
636
638
|
options?: HttpHandlerOptions,
|
|
637
639
|
): Effect.Effect<
|
|
638
640
|
StartSyncExecutionCommandOutput,
|
|
639
|
-
| Cause.
|
|
641
|
+
| Cause.TimeoutError
|
|
640
642
|
| SdkError
|
|
641
643
|
| InvalidArnError
|
|
642
644
|
| InvalidExecutionInputError
|
|
@@ -657,7 +659,7 @@ interface SFNService$ {
|
|
|
657
659
|
options?: HttpHandlerOptions,
|
|
658
660
|
): Effect.Effect<
|
|
659
661
|
StopExecutionCommandOutput,
|
|
660
|
-
| Cause.
|
|
662
|
+
| Cause.TimeoutError
|
|
661
663
|
| SdkError
|
|
662
664
|
| ExecutionDoesNotExistError
|
|
663
665
|
| InvalidArnError
|
|
@@ -675,7 +677,7 @@ interface SFNService$ {
|
|
|
675
677
|
options?: HttpHandlerOptions,
|
|
676
678
|
): Effect.Effect<
|
|
677
679
|
TagResourceCommandOutput,
|
|
678
|
-
Cause.
|
|
680
|
+
Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError | TooManyTagsError
|
|
679
681
|
>;
|
|
680
682
|
|
|
681
683
|
/**
|
|
@@ -686,7 +688,7 @@ interface SFNService$ {
|
|
|
686
688
|
options?: HttpHandlerOptions,
|
|
687
689
|
): Effect.Effect<
|
|
688
690
|
TestStateCommandOutput,
|
|
689
|
-
| Cause.
|
|
691
|
+
| Cause.TimeoutError
|
|
690
692
|
| SdkError
|
|
691
693
|
| InvalidArnError
|
|
692
694
|
| InvalidDefinitionError
|
|
@@ -702,7 +704,7 @@ interface SFNService$ {
|
|
|
702
704
|
options?: HttpHandlerOptions,
|
|
703
705
|
): Effect.Effect<
|
|
704
706
|
UntagResourceCommandOutput,
|
|
705
|
-
Cause.
|
|
707
|
+
Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError
|
|
706
708
|
>;
|
|
707
709
|
|
|
708
710
|
/**
|
|
@@ -713,7 +715,7 @@ interface SFNService$ {
|
|
|
713
715
|
options?: HttpHandlerOptions,
|
|
714
716
|
): Effect.Effect<
|
|
715
717
|
UpdateMapRunCommandOutput,
|
|
716
|
-
Cause.
|
|
718
|
+
Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError | ValidationError
|
|
717
719
|
>;
|
|
718
720
|
|
|
719
721
|
/**
|
|
@@ -724,7 +726,7 @@ interface SFNService$ {
|
|
|
724
726
|
options?: HttpHandlerOptions,
|
|
725
727
|
): Effect.Effect<
|
|
726
728
|
UpdateStateMachineCommandOutput,
|
|
727
|
-
| Cause.
|
|
729
|
+
| Cause.TimeoutError
|
|
728
730
|
| SdkError
|
|
729
731
|
| ConflictError
|
|
730
732
|
| InvalidArnError
|
|
@@ -749,7 +751,7 @@ interface SFNService$ {
|
|
|
749
751
|
options?: HttpHandlerOptions,
|
|
750
752
|
): Effect.Effect<
|
|
751
753
|
UpdateStateMachineAliasCommandOutput,
|
|
752
|
-
| Cause.
|
|
754
|
+
| Cause.TimeoutError
|
|
753
755
|
| SdkError
|
|
754
756
|
| ConflictError
|
|
755
757
|
| InvalidArnError
|
|
@@ -766,7 +768,7 @@ interface SFNService$ {
|
|
|
766
768
|
options?: HttpHandlerOptions,
|
|
767
769
|
): Effect.Effect<
|
|
768
770
|
ValidateStateMachineDefinitionCommandOutput,
|
|
769
|
-
Cause.
|
|
771
|
+
Cause.TimeoutError | SdkError | ValidationError
|
|
770
772
|
>;
|
|
771
773
|
}
|
|
772
774
|
|
|
@@ -791,10 +793,10 @@ export const makeSFNService = Effect.gen(function*() {
|
|
|
791
793
|
* @since 1.0.0
|
|
792
794
|
* @category models
|
|
793
795
|
*/
|
|
794
|
-
export class SFNService extends
|
|
796
|
+
export class SFNService extends ServiceMap.Service<
|
|
795
797
|
SFNService,
|
|
796
798
|
SFNService$
|
|
797
|
-
>() {
|
|
799
|
+
>()("@effect-aws/client-sfn/SFNService") {
|
|
798
800
|
static readonly defaultLayer = Layer.effect(this, makeSFNService).pipe(Layer.provide(Instance.layer));
|
|
799
801
|
static readonly layer = (config: SFNService.Config) =>
|
|
800
802
|
Layer.effect(this, makeSFNService).pipe(
|
package/src/SFNServiceConfig.ts
CHANGED
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { SFNClientConfig } from "@aws-sdk/client-sfn";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
9
10
|
import type { SFNService } from "./SFNService.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @since 1.0.0
|
|
13
14
|
* @category sfn service config
|
|
14
15
|
*/
|
|
15
|
-
const currentSFNServiceConfig =
|
|
16
|
+
const currentSFNServiceConfig = ServiceMap.Reference<SFNService.Config>(
|
|
16
17
|
"@effect-aws/client-sfn/currentSFNServiceConfig",
|
|
17
|
-
() =>
|
|
18
|
+
{ defaultValue: () => ({}) },
|
|
18
19
|
);
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -27,21 +28,21 @@ export const withSFNServiceConfig: {
|
|
|
27
28
|
} = dual(
|
|
28
29
|
2,
|
|
29
30
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: SFNService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
31
|
+
Effect.provideService(effect, currentSFNServiceConfig, config),
|
|
31
32
|
);
|
|
32
33
|
|
|
33
34
|
/**
|
|
34
35
|
* @since 1.0.0
|
|
35
36
|
* @category sfn service config
|
|
36
37
|
*/
|
|
37
|
-
export const setSFNServiceConfig = (config: SFNService.Config) => Layer.
|
|
38
|
+
export const setSFNServiceConfig = (config: SFNService.Config) => Layer.succeed(currentSFNServiceConfig, config);
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
* @since 1.0.0
|
|
41
42
|
* @category adapters
|
|
42
43
|
*/
|
|
43
44
|
export const toSFNClientConfig: Effect.Effect<SFNClientConfig> = Effect.gen(function*() {
|
|
44
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
45
|
+
const { logger: serviceLogger, ...config } = yield* currentSFNServiceConfig;
|
|
45
46
|
|
|
46
47
|
const logger = serviceLogger === true
|
|
47
48
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ActivityAlreadyExists, ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ConflictException, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, ExecutionNotRedrivable, InvalidArn, InvalidDefinition, InvalidEncryptionConfiguration, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, KmsAccessDeniedException, KmsInvalidStateException, KmsThrottlingException, MissingRequiredParameter, ResourceNotFound, ServiceQuotaExceededException, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, ValidationException } from "@aws-sdk/client-sfn";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["ActivityAlreadyExists", "ActivityDoesNotExist", "ActivityLimitExceeded", "ActivityWorkerLimitExceeded", "ConflictException", "ExecutionAlreadyExists", "ExecutionDoesNotExist", "ExecutionLimitExceeded", "ExecutionNotRedrivable", "InvalidArn", "InvalidDefinition", "InvalidEncryptionConfiguration", "InvalidExecutionInput", "InvalidLoggingConfiguration", "InvalidName", "InvalidOutput", "InvalidToken", "InvalidTracingConfiguration", "KmsAccessDeniedException", "KmsInvalidStateException", "KmsThrottlingException", "MissingRequiredParameter", "ResourceNotFound", "ServiceQuotaExceededException", "StateMachineAlreadyExists", "StateMachineDeleting", "StateMachineDoesNotExist", "StateMachineLimitExceeded", "StateMachineTypeNotSupported", "TaskDoesNotExist", "TaskTimedOut", "TooManyTags", "ValidationException"];
|
|
4
|
-
export type ActivityAlreadyExistsError = TaggedException<ActivityAlreadyExists>;
|
|
5
|
-
export type ActivityDoesNotExistError = TaggedException<ActivityDoesNotExist>;
|
|
6
|
-
export type ActivityLimitExceededError = TaggedException<ActivityLimitExceeded>;
|
|
7
|
-
export type ActivityWorkerLimitExceededError = TaggedException<ActivityWorkerLimitExceeded>;
|
|
8
|
-
export type ConflictError = TaggedException<ConflictException>;
|
|
9
|
-
export type ExecutionAlreadyExistsError = TaggedException<ExecutionAlreadyExists>;
|
|
10
|
-
export type ExecutionDoesNotExistError = TaggedException<ExecutionDoesNotExist>;
|
|
11
|
-
export type ExecutionLimitExceededError = TaggedException<ExecutionLimitExceeded>;
|
|
12
|
-
export type ExecutionNotRedrivableError = TaggedException<ExecutionNotRedrivable>;
|
|
13
|
-
export type InvalidArnError = TaggedException<InvalidArn>;
|
|
14
|
-
export type InvalidDefinitionError = TaggedException<InvalidDefinition>;
|
|
15
|
-
export type InvalidEncryptionConfigurationError = TaggedException<InvalidEncryptionConfiguration>;
|
|
16
|
-
export type InvalidExecutionInputError = TaggedException<InvalidExecutionInput>;
|
|
17
|
-
export type InvalidLoggingConfigurationError = TaggedException<InvalidLoggingConfiguration>;
|
|
18
|
-
export type InvalidNameError = TaggedException<InvalidName>;
|
|
19
|
-
export type InvalidOutputError = TaggedException<InvalidOutput>;
|
|
20
|
-
export type InvalidTokenError = TaggedException<InvalidToken>;
|
|
21
|
-
export type InvalidTracingConfigurationError = TaggedException<InvalidTracingConfiguration>;
|
|
22
|
-
export type KmsAccessDeniedError = TaggedException<KmsAccessDeniedException>;
|
|
23
|
-
export type KmsInvalidStateError = TaggedException<KmsInvalidStateException>;
|
|
24
|
-
export type KmsThrottlingError = TaggedException<KmsThrottlingException>;
|
|
25
|
-
export type MissingRequiredParameterError = TaggedException<MissingRequiredParameter>;
|
|
26
|
-
export type ResourceNotFoundError = TaggedException<ResourceNotFound>;
|
|
27
|
-
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
|
|
28
|
-
export type StateMachineAlreadyExistsError = TaggedException<StateMachineAlreadyExists>;
|
|
29
|
-
export type StateMachineDeletingError = TaggedException<StateMachineDeleting>;
|
|
30
|
-
export type StateMachineDoesNotExistError = TaggedException<StateMachineDoesNotExist>;
|
|
31
|
-
export type StateMachineLimitExceededError = TaggedException<StateMachineLimitExceeded>;
|
|
32
|
-
export type StateMachineTypeNotSupportedError = TaggedException<StateMachineTypeNotSupported>;
|
|
33
|
-
export type TaskDoesNotExistError = TaggedException<TaskDoesNotExist>;
|
|
34
|
-
export type TaskTimedOutError = TaggedException<TaskTimedOut>;
|
|
35
|
-
export type TooManyTagsError = TaggedException<TooManyTags>;
|
|
36
|
-
export type ValidationError = TaggedException<ValidationException>;
|
|
37
|
-
export type SdkError = TaggedException<Error & {
|
|
38
|
-
name: "SdkError";
|
|
39
|
-
}>;
|
|
40
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"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"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"ActivityAlreadyExists",
|
|
6
|
-
"ActivityDoesNotExist",
|
|
7
|
-
"ActivityLimitExceeded",
|
|
8
|
-
"ActivityWorkerLimitExceeded",
|
|
9
|
-
"ConflictException",
|
|
10
|
-
"ExecutionAlreadyExists",
|
|
11
|
-
"ExecutionDoesNotExist",
|
|
12
|
-
"ExecutionLimitExceeded",
|
|
13
|
-
"ExecutionNotRedrivable",
|
|
14
|
-
"InvalidArn",
|
|
15
|
-
"InvalidDefinition",
|
|
16
|
-
"InvalidEncryptionConfiguration",
|
|
17
|
-
"InvalidExecutionInput",
|
|
18
|
-
"InvalidLoggingConfiguration",
|
|
19
|
-
"InvalidName",
|
|
20
|
-
"InvalidOutput",
|
|
21
|
-
"InvalidToken",
|
|
22
|
-
"InvalidTracingConfiguration",
|
|
23
|
-
"KmsAccessDeniedException",
|
|
24
|
-
"KmsInvalidStateException",
|
|
25
|
-
"KmsThrottlingException",
|
|
26
|
-
"MissingRequiredParameter",
|
|
27
|
-
"ResourceNotFound",
|
|
28
|
-
"ServiceQuotaExceededException",
|
|
29
|
-
"StateMachineAlreadyExists",
|
|
30
|
-
"StateMachineDeleting",
|
|
31
|
-
"StateMachineDoesNotExist",
|
|
32
|
-
"StateMachineLimitExceeded",
|
|
33
|
-
"StateMachineTypeNotSupported",
|
|
34
|
-
"TaskDoesNotExist",
|
|
35
|
-
"TaskTimedOut",
|
|
36
|
-
"TooManyTags",
|
|
37
|
-
"ValidationException",
|
|
38
|
-
];
|
|
39
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAqCa,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,sBAAsB;IACtB,uBAAuB;IACvB,6BAA6B;IAC7B,mBAAmB;IACnB,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,wBAAwB;IACxB,YAAY;IACZ,mBAAmB;IACnB,gCAAgC;IAChC,uBAAuB;IACvB,6BAA6B;IAC7B,aAAa;IACb,eAAe;IACf,cAAc;IACd,6BAA6B;IAC7B,0BAA0B;IAC1B,0BAA0B;IAC1B,wBAAwB;IACxB,0BAA0B;IAC1B,kBAAkB;IAClB,+BAA+B;IAC/B,2BAA2B;IAC3B,sBAAsB;IACtB,0BAA0B;IAC1B,2BAA2B;IAC3B,8BAA8B;IAC9B,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,qBAAqB;CACb,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { SFNClient } from "@aws-sdk/client-sfn";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const SFNClientInstance_base: Context.TagClass<SFNClientInstance, "@effect-aws/client-sfn/SFNClientInstance", SFNClient>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class SFNClientInstance extends SFNClientInstance_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const make: Effect.Effect<SFNClient, never, import("effect/Scope").Scope>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const layer: Layer.Layer<SFNClientInstance, never, never>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=SFNClientInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SFNClientInstance.d.ts","sourceRoot":"","sources":["../../src/SFNClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.layer = exports.make = exports.SFNClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_sfn_1 = require("@aws-sdk/client-sfn");
|
|
31
|
-
const effect_1 = require("effect");
|
|
32
|
-
const SFNServiceConfig = __importStar(require("./SFNServiceConfig.js"));
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category tags
|
|
36
|
-
*/
|
|
37
|
-
class SFNClientInstance extends effect_1.Context.Tag("@effect-aws/client-sfn/SFNClientInstance")() {
|
|
38
|
-
}
|
|
39
|
-
exports.SFNClientInstance = SFNClientInstance;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category constructors
|
|
43
|
-
*/
|
|
44
|
-
exports.make = effect_1.Effect.flatMap(SFNServiceConfig.toSFNClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_sfn_1.SFNClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
|
|
45
|
-
/**
|
|
46
|
-
* @since 1.0.0
|
|
47
|
-
* @category layers
|
|
48
|
-
*/
|
|
49
|
-
exports.layer = effect_1.Layer.scoped(SFNClientInstance, exports.make);
|
|
50
|
-
//# sourceMappingURL=SFNClientInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SFNClientInstance.js","sourceRoot":"","sources":["../../src/SFNClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAAgD;AAChD,mCAAgD;AAChD,wEAA0D;AAE1D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,gBAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAFpC,8CAEoC;AAEpC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,YAAI,CAAC,CAAC"}
|