@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.
Files changed (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/SFNClientInstance/package.json +6 -0
  3. package/SFNService/package.json +6 -0
  4. package/SFNServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +41 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/SFNClientInstance.d.ts +24 -0
  10. package/dist/cjs/SFNClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/SFNClientInstance.js +50 -0
  12. package/dist/cjs/SFNClientInstance.js.map +1 -0
  13. package/dist/cjs/SFNService.d.ts +189 -0
  14. package/dist/cjs/SFNService.d.ts.map +1 -0
  15. package/dist/cjs/SFNService.js +96 -0
  16. package/dist/cjs/SFNService.js.map +1 -0
  17. package/dist/cjs/SFNServiceConfig.d.ts +25 -0
  18. package/dist/cjs/SFNServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/SFNServiceConfig.js +35 -0
  20. package/dist/cjs/SFNServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +40 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/SFNClientInstance.d.ts +24 -0
  28. package/dist/dts/SFNClientInstance.d.ts.map +1 -0
  29. package/dist/dts/SFNService.d.ts +189 -0
  30. package/dist/dts/SFNService.d.ts.map +1 -0
  31. package/dist/dts/SFNServiceConfig.d.ts +25 -0
  32. package/dist/dts/SFNServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +38 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/SFNClientInstance.js +23 -0
  38. package/dist/esm/SFNClientInstance.js.map +1 -0
  39. package/dist/esm/SFNService.js +69 -0
  40. package/dist/esm/SFNService.js.map +1 -0
  41. package/dist/esm/SFNServiceConfig.js +31 -0
  42. package/dist/esm/SFNServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +110 -0
  48. package/src/SFNClientInstance.ts +33 -0
  49. package/src/SFNService.ts +796 -0
  50. package/src/SFNServiceConfig.ts +51 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -79
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -41
  55. package/lib/SFNClientInstance.d.ts +0 -31
  56. package/lib/SFNClientInstance.js +0 -57
  57. package/lib/SFNClientInstanceConfig.d.ts +0 -23
  58. package/lib/SFNClientInstanceConfig.js +0 -44
  59. package/lib/SFNService.d.ts +0 -250
  60. package/lib/SFNService.js +0 -125
  61. package/lib/esm/Errors.js +0 -38
  62. package/lib/esm/SFNClientInstance.js +0 -30
  63. package/lib/esm/SFNClientInstanceConfig.js +0 -40
  64. package/lib/esm/SFNService.js +0 -121
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B;;;OAGG;IACH,KAAY,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}
@@ -0,0 +1,56 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SFN = exports.SFNServiceConfig = exports.SFNClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const SFNService_js_1 = require("./SFNService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.SFNClientInstance = __importStar(require("./SFNClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.SFNServiceConfig = __importStar(require("./SFNServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./SFNService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias SFNService
54
+ */
55
+ exports.SFN = SFNService_js_1.SFNService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mDAA6C;AAE7C;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,4EAA4D;AAE5D;;GAEG;AACH,0EAA0D;AAE1D;;GAEG;AACH,kDAAgC;AAehC;;;;GAIG;AACU,QAAA,GAAG,GAAG,0BAAU,CAAC"}
@@ -0,0 +1,40 @@
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
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ 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"];
5
+ export type ActivityAlreadyExistsError = TaggedException<ActivityAlreadyExists>;
6
+ export type ActivityDoesNotExistError = TaggedException<ActivityDoesNotExist>;
7
+ export type ActivityLimitExceededError = TaggedException<ActivityLimitExceeded>;
8
+ export type ActivityWorkerLimitExceededError = TaggedException<ActivityWorkerLimitExceeded>;
9
+ export type ConflictError = TaggedException<ConflictException>;
10
+ export type ExecutionAlreadyExistsError = TaggedException<ExecutionAlreadyExists>;
11
+ export type ExecutionDoesNotExistError = TaggedException<ExecutionDoesNotExist>;
12
+ export type ExecutionLimitExceededError = TaggedException<ExecutionLimitExceeded>;
13
+ export type ExecutionNotRedrivableError = TaggedException<ExecutionNotRedrivable>;
14
+ export type InvalidArnError = TaggedException<InvalidArn>;
15
+ export type InvalidDefinitionError = TaggedException<InvalidDefinition>;
16
+ export type InvalidEncryptionConfigurationError = TaggedException<InvalidEncryptionConfiguration>;
17
+ export type InvalidExecutionInputError = TaggedException<InvalidExecutionInput>;
18
+ export type InvalidLoggingConfigurationError = TaggedException<InvalidLoggingConfiguration>;
19
+ export type InvalidNameError = TaggedException<InvalidName>;
20
+ export type InvalidOutputError = TaggedException<InvalidOutput>;
21
+ export type InvalidTokenError = TaggedException<InvalidToken>;
22
+ export type InvalidTracingConfigurationError = TaggedException<InvalidTracingConfiguration>;
23
+ export type KmsAccessDeniedError = TaggedException<KmsAccessDeniedException>;
24
+ export type KmsInvalidStateError = TaggedException<KmsInvalidStateException>;
25
+ export type KmsThrottlingError = TaggedException<KmsThrottlingException>;
26
+ export type MissingRequiredParameterError = TaggedException<MissingRequiredParameter>;
27
+ export type ResourceNotFoundError = TaggedException<ResourceNotFound>;
28
+ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
29
+ export type StateMachineAlreadyExistsError = TaggedException<StateMachineAlreadyExists>;
30
+ export type StateMachineDeletingError = TaggedException<StateMachineDeleting>;
31
+ export type StateMachineDoesNotExistError = TaggedException<StateMachineDoesNotExist>;
32
+ export type StateMachineLimitExceededError = TaggedException<StateMachineLimitExceeded>;
33
+ export type StateMachineTypeNotSupportedError = TaggedException<StateMachineTypeNotSupported>;
34
+ export type TaskDoesNotExistError = TaggedException<TaskDoesNotExist>;
35
+ export type TaskTimedOutError = TaggedException<TaskTimedOut>;
36
+ export type TooManyTagsError = TaggedException<TooManyTags>;
37
+ export type ValidationError = TaggedException<ValidationException>;
38
+ export type SdkError = CommonSdkError;
39
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
40
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,8BAA8B,EAC9B,qBAAqB,EACrB,2BAA2B,EAC3B,WAAW,EACX,aAAa,EACb,YAAY,EACZ,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,gBA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B,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,189 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type CreateActivityCommandInput, type CreateActivityCommandOutput, type CreateStateMachineAliasCommandInput, type CreateStateMachineAliasCommandOutput, type CreateStateMachineCommandInput, type CreateStateMachineCommandOutput, type DeleteActivityCommandInput, type DeleteActivityCommandOutput, type DeleteStateMachineAliasCommandInput, type DeleteStateMachineAliasCommandOutput, type DeleteStateMachineCommandInput, type DeleteStateMachineCommandOutput, type DeleteStateMachineVersionCommandInput, type DeleteStateMachineVersionCommandOutput, type DescribeActivityCommandInput, type DescribeActivityCommandOutput, type DescribeExecutionCommandInput, type DescribeExecutionCommandOutput, type DescribeMapRunCommandInput, type DescribeMapRunCommandOutput, type DescribeStateMachineAliasCommandInput, type DescribeStateMachineAliasCommandOutput, type DescribeStateMachineCommandInput, type DescribeStateMachineCommandOutput, type DescribeStateMachineForExecutionCommandInput, type DescribeStateMachineForExecutionCommandOutput, type GetActivityTaskCommandInput, type GetActivityTaskCommandOutput, type GetExecutionHistoryCommandInput, type GetExecutionHistoryCommandOutput, type ListActivitiesCommandInput, type ListActivitiesCommandOutput, type ListExecutionsCommandInput, type ListExecutionsCommandOutput, type ListMapRunsCommandInput, type ListMapRunsCommandOutput, type ListStateMachineAliasesCommandInput, type ListStateMachineAliasesCommandOutput, type ListStateMachinesCommandInput, type ListStateMachinesCommandOutput, type ListStateMachineVersionsCommandInput, type ListStateMachineVersionsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type PublishStateMachineVersionCommandInput, type PublishStateMachineVersionCommandOutput, type RedriveExecutionCommandInput, type RedriveExecutionCommandOutput, type SendTaskFailureCommandInput, type SendTaskFailureCommandOutput, type SendTaskHeartbeatCommandInput, type SendTaskHeartbeatCommandOutput, type SendTaskSuccessCommandInput, type SendTaskSuccessCommandOutput, type SFNClient, type SFNClientConfig, type StartExecutionCommandInput, type StartExecutionCommandOutput, type StartSyncExecutionCommandInput, type StartSyncExecutionCommandOutput, type StopExecutionCommandInput, type StopExecutionCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type TestStateCommandInput, type TestStateCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateMapRunCommandInput, type UpdateMapRunCommandOutput, type UpdateStateMachineAliasCommandInput, type UpdateStateMachineAliasCommandOutput, type UpdateStateMachineCommandInput, type UpdateStateMachineCommandOutput, type ValidateStateMachineDefinitionCommandInput, type ValidateStateMachineDefinitionCommandOutput } from "@aws-sdk/client-sfn";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import type { ActivityAlreadyExistsError, ActivityDoesNotExistError, ActivityLimitExceededError, ActivityWorkerLimitExceededError, ConflictError, ExecutionAlreadyExistsError, ExecutionDoesNotExistError, ExecutionLimitExceededError, ExecutionNotRedrivableError, InvalidArnError, InvalidDefinitionError, InvalidEncryptionConfigurationError, InvalidExecutionInputError, InvalidLoggingConfigurationError, InvalidNameError, InvalidOutputError, InvalidTokenError, InvalidTracingConfigurationError, KmsAccessDeniedError, KmsInvalidStateError, KmsThrottlingError, MissingRequiredParameterError, ResourceNotFoundError, ServiceQuotaExceededError, StateMachineAlreadyExistsError, StateMachineDeletingError, StateMachineDoesNotExistError, StateMachineLimitExceededError, StateMachineTypeNotSupportedError, TaskDoesNotExistError, TaskTimedOutError, TooManyTagsError, ValidationError } from "./Errors.js";
8
+ import * as Instance from "./SFNClientInstance.js";
9
+ interface SFNService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link CreateActivityCommand}
13
+ */
14
+ createActivity(args: CreateActivityCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateActivityCommandOutput, SdkError | ActivityAlreadyExistsError | ActivityLimitExceededError | InvalidEncryptionConfigurationError | InvalidNameError | KmsAccessDeniedError | KmsThrottlingError | TooManyTagsError>;
15
+ /**
16
+ * @see {@link CreateStateMachineCommand}
17
+ */
18
+ createStateMachine(args: CreateStateMachineCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateStateMachineCommandOutput, SdkError | ConflictError | InvalidArnError | InvalidDefinitionError | InvalidEncryptionConfigurationError | InvalidLoggingConfigurationError | InvalidNameError | InvalidTracingConfigurationError | KmsAccessDeniedError | KmsThrottlingError | StateMachineAlreadyExistsError | StateMachineDeletingError | StateMachineLimitExceededError | StateMachineTypeNotSupportedError | TooManyTagsError | ValidationError>;
19
+ /**
20
+ * @see {@link CreateStateMachineAliasCommand}
21
+ */
22
+ createStateMachineAlias(args: CreateStateMachineAliasCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateStateMachineAliasCommandOutput, SdkError | ConflictError | InvalidArnError | InvalidNameError | ResourceNotFoundError | ServiceQuotaExceededError | StateMachineDeletingError | ValidationError>;
23
+ /**
24
+ * @see {@link DeleteActivityCommand}
25
+ */
26
+ deleteActivity(args: DeleteActivityCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteActivityCommandOutput, SdkError | InvalidArnError>;
27
+ /**
28
+ * @see {@link DeleteStateMachineCommand}
29
+ */
30
+ deleteStateMachine(args: DeleteStateMachineCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteStateMachineCommandOutput, SdkError | InvalidArnError | ValidationError>;
31
+ /**
32
+ * @see {@link DeleteStateMachineAliasCommand}
33
+ */
34
+ deleteStateMachineAlias(args: DeleteStateMachineAliasCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteStateMachineAliasCommandOutput, SdkError | ConflictError | InvalidArnError | ResourceNotFoundError | ValidationError>;
35
+ /**
36
+ * @see {@link DeleteStateMachineVersionCommand}
37
+ */
38
+ deleteStateMachineVersion(args: DeleteStateMachineVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteStateMachineVersionCommandOutput, SdkError | ConflictError | InvalidArnError | ValidationError>;
39
+ /**
40
+ * @see {@link DescribeActivityCommand}
41
+ */
42
+ describeActivity(args: DescribeActivityCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeActivityCommandOutput, SdkError | ActivityDoesNotExistError | InvalidArnError>;
43
+ /**
44
+ * @see {@link DescribeExecutionCommand}
45
+ */
46
+ describeExecution(args: DescribeExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeExecutionCommandOutput, SdkError | ExecutionDoesNotExistError | InvalidArnError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError>;
47
+ /**
48
+ * @see {@link DescribeMapRunCommand}
49
+ */
50
+ describeMapRun(args: DescribeMapRunCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeMapRunCommandOutput, SdkError | InvalidArnError | ResourceNotFoundError>;
51
+ /**
52
+ * @see {@link DescribeStateMachineCommand}
53
+ */
54
+ describeStateMachine(args: DescribeStateMachineCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStateMachineCommandOutput, SdkError | InvalidArnError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError | StateMachineDoesNotExistError>;
55
+ /**
56
+ * @see {@link DescribeStateMachineAliasCommand}
57
+ */
58
+ describeStateMachineAlias(args: DescribeStateMachineAliasCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStateMachineAliasCommandOutput, SdkError | InvalidArnError | ResourceNotFoundError | ValidationError>;
59
+ /**
60
+ * @see {@link DescribeStateMachineForExecutionCommand}
61
+ */
62
+ describeStateMachineForExecution(args: DescribeStateMachineForExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeStateMachineForExecutionCommandOutput, SdkError | ExecutionDoesNotExistError | InvalidArnError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError>;
63
+ /**
64
+ * @see {@link GetActivityTaskCommand}
65
+ */
66
+ getActivityTask(args: GetActivityTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetActivityTaskCommandOutput, SdkError | ActivityDoesNotExistError | ActivityWorkerLimitExceededError | InvalidArnError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError>;
67
+ /**
68
+ * @see {@link GetExecutionHistoryCommand}
69
+ */
70
+ getExecutionHistory(args: GetExecutionHistoryCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetExecutionHistoryCommandOutput, SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError>;
71
+ /**
72
+ * @see {@link ListActivitiesCommand}
73
+ */
74
+ listActivities(args: ListActivitiesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListActivitiesCommandOutput, SdkError | InvalidTokenError>;
75
+ /**
76
+ * @see {@link ListExecutionsCommand}
77
+ */
78
+ listExecutions(args: ListExecutionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListExecutionsCommandOutput, SdkError | InvalidArnError | InvalidTokenError | ResourceNotFoundError | StateMachineDoesNotExistError | StateMachineTypeNotSupportedError | ValidationError>;
79
+ /**
80
+ * @see {@link ListMapRunsCommand}
81
+ */
82
+ listMapRuns(args: ListMapRunsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMapRunsCommandOutput, SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError>;
83
+ /**
84
+ * @see {@link ListStateMachineAliasesCommand}
85
+ */
86
+ listStateMachineAliases(args: ListStateMachineAliasesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListStateMachineAliasesCommandOutput, SdkError | InvalidArnError | InvalidTokenError | ResourceNotFoundError | StateMachineDeletingError | StateMachineDoesNotExistError>;
87
+ /**
88
+ * @see {@link ListStateMachineVersionsCommand}
89
+ */
90
+ listStateMachineVersions(args: ListStateMachineVersionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListStateMachineVersionsCommandOutput, SdkError | InvalidArnError | InvalidTokenError | ValidationError>;
91
+ /**
92
+ * @see {@link ListStateMachinesCommand}
93
+ */
94
+ listStateMachines(args: ListStateMachinesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListStateMachinesCommandOutput, SdkError | InvalidTokenError>;
95
+ /**
96
+ * @see {@link ListTagsForResourceCommand}
97
+ */
98
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | InvalidArnError | ResourceNotFoundError>;
99
+ /**
100
+ * @see {@link PublishStateMachineVersionCommand}
101
+ */
102
+ publishStateMachineVersion(args: PublishStateMachineVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<PublishStateMachineVersionCommandOutput, SdkError | ConflictError | InvalidArnError | ServiceQuotaExceededError | StateMachineDeletingError | StateMachineDoesNotExistError | ValidationError>;
103
+ /**
104
+ * @see {@link RedriveExecutionCommand}
105
+ */
106
+ redriveExecution(args: RedriveExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RedriveExecutionCommandOutput, SdkError | ExecutionDoesNotExistError | ExecutionLimitExceededError | ExecutionNotRedrivableError | InvalidArnError | ValidationError>;
107
+ /**
108
+ * @see {@link SendTaskFailureCommand}
109
+ */
110
+ sendTaskFailure(args: SendTaskFailureCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendTaskFailureCommandOutput, SdkError | InvalidTokenError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError | TaskDoesNotExistError | TaskTimedOutError>;
111
+ /**
112
+ * @see {@link SendTaskHeartbeatCommand}
113
+ */
114
+ sendTaskHeartbeat(args: SendTaskHeartbeatCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendTaskHeartbeatCommandOutput, SdkError | InvalidTokenError | TaskDoesNotExistError | TaskTimedOutError>;
115
+ /**
116
+ * @see {@link SendTaskSuccessCommand}
117
+ */
118
+ sendTaskSuccess(args: SendTaskSuccessCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendTaskSuccessCommandOutput, SdkError | InvalidOutputError | InvalidTokenError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError | TaskDoesNotExistError | TaskTimedOutError>;
119
+ /**
120
+ * @see {@link StartExecutionCommand}
121
+ */
122
+ startExecution(args: StartExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartExecutionCommandOutput, SdkError | ExecutionAlreadyExistsError | ExecutionLimitExceededError | InvalidArnError | InvalidExecutionInputError | InvalidNameError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError | StateMachineDeletingError | StateMachineDoesNotExistError | ValidationError>;
123
+ /**
124
+ * @see {@link StartSyncExecutionCommand}
125
+ */
126
+ startSyncExecution(args: StartSyncExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartSyncExecutionCommandOutput, SdkError | InvalidArnError | InvalidExecutionInputError | InvalidNameError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError | StateMachineDeletingError | StateMachineDoesNotExistError | StateMachineTypeNotSupportedError>;
127
+ /**
128
+ * @see {@link StopExecutionCommand}
129
+ */
130
+ stopExecution(args: StopExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopExecutionCommandOutput, SdkError | ExecutionDoesNotExistError | InvalidArnError | KmsAccessDeniedError | KmsInvalidStateError | KmsThrottlingError | ValidationError>;
131
+ /**
132
+ * @see {@link TagResourceCommand}
133
+ */
134
+ tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | InvalidArnError | ResourceNotFoundError | TooManyTagsError>;
135
+ /**
136
+ * @see {@link TestStateCommand}
137
+ */
138
+ testState(args: TestStateCommandInput, options?: HttpHandlerOptions): Effect.Effect<TestStateCommandOutput, SdkError | InvalidArnError | InvalidDefinitionError | InvalidExecutionInputError | ValidationError>;
139
+ /**
140
+ * @see {@link UntagResourceCommand}
141
+ */
142
+ untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | InvalidArnError | ResourceNotFoundError>;
143
+ /**
144
+ * @see {@link UpdateMapRunCommand}
145
+ */
146
+ updateMapRun(args: UpdateMapRunCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateMapRunCommandOutput, SdkError | InvalidArnError | ResourceNotFoundError | ValidationError>;
147
+ /**
148
+ * @see {@link UpdateStateMachineCommand}
149
+ */
150
+ updateStateMachine(args: UpdateStateMachineCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateStateMachineCommandOutput, SdkError | ConflictError | InvalidArnError | InvalidDefinitionError | InvalidEncryptionConfigurationError | InvalidLoggingConfigurationError | InvalidTracingConfigurationError | KmsAccessDeniedError | KmsThrottlingError | MissingRequiredParameterError | ServiceQuotaExceededError | StateMachineDeletingError | StateMachineDoesNotExistError | ValidationError>;
151
+ /**
152
+ * @see {@link UpdateStateMachineAliasCommand}
153
+ */
154
+ updateStateMachineAlias(args: UpdateStateMachineAliasCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateStateMachineAliasCommandOutput, SdkError | ConflictError | InvalidArnError | ResourceNotFoundError | StateMachineDeletingError | ValidationError>;
155
+ /**
156
+ * @see {@link ValidateStateMachineDefinitionCommand}
157
+ */
158
+ validateStateMachineDefinition(args: ValidateStateMachineDefinitionCommandInput, options?: HttpHandlerOptions): Effect.Effect<ValidateStateMachineDefinitionCommandOutput, SdkError | ValidationError>;
159
+ }
160
+ /**
161
+ * @since 1.0.0
162
+ * @category constructors
163
+ */
164
+ export declare const makeSFNService: Effect.Effect<SFNService$, never, Instance.SFNClientInstance>;
165
+ declare const SFNService_base: import("effect/Context").TagClass<SFNService, "@effect-aws/client-sfn/SFNService", SFNService$> & Effect.Tag.Proxy<SFNService, SFNService$> & {
166
+ use: <X>(body: (_: SFNService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SFNService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, SFNService> : Effect.Effect<X, never, SFNService>;
167
+ };
168
+ /**
169
+ * @since 1.0.0
170
+ * @category models
171
+ */
172
+ export declare class SFNService extends SFNService_base {
173
+ static readonly defaultLayer: Layer.Layer<SFNService, never, never>;
174
+ static readonly layer: (config: SFNService.Config) => Layer.Layer<SFNService, never, never>;
175
+ static readonly baseLayer: (evaluate: (defaultConfig: SFNClientConfig) => SFNClient) => Layer.Layer<SFNService, never, never>;
176
+ }
177
+ /**
178
+ * @since 1.0.0
179
+ */
180
+ export declare namespace SFNService {
181
+ /**
182
+ * @since 1.0.0
183
+ */
184
+ interface Config extends Omit<SFNClientConfig, "logger"> {
185
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
186
+ }
187
+ }
188
+ export {};
189
+ //# sourceMappingURL=SFNService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNService.d.ts","sourceRoot":"","sources":["../../src/SFNService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAElD,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAE5C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,E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}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { SFNClientConfig } from "@aws-sdk/client-sfn";
5
+ import { Effect, Layer } from "effect";
6
+ import type { SFNService } from "./SFNService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category sfn service config
10
+ */
11
+ export declare const withSFNServiceConfig: {
12
+ (config: SFNService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
+ <A, E, R>(effect: Effect.Effect<A, E, R>, config: SFNService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category sfn service config
18
+ */
19
+ export declare const setSFNServiceConfig: (config: SFNService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toSFNClientConfig: Effect.Effect<SFNClientConfig>;
25
+ //# sourceMappingURL=SFNServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SFNServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAWlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,WAAY,WAAW,MAAM,qCAAyD,CAAC;AAEvH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAQ3D,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { SFNService } from "./SFNService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as SFNClientInstance from "./SFNClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as SFNServiceConfig from "./SFNServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./SFNService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias SFNService
25
+ */
26
+ export declare namespace SFN {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias SFNService.Config
30
+ */
31
+ type Config = SFNService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias SFNService
37
+ */
38
+ export declare const SFN: typeof SFNService;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B;;;OAGG;IACH,KAAY,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
2
+ export const AllServiceErrors = [
3
+ "ActivityAlreadyExists",
4
+ "ActivityDoesNotExist",
5
+ "ActivityLimitExceeded",
6
+ "ActivityWorkerLimitExceeded",
7
+ "ConflictException",
8
+ "ExecutionAlreadyExists",
9
+ "ExecutionDoesNotExist",
10
+ "ExecutionLimitExceeded",
11
+ "ExecutionNotRedrivable",
12
+ "InvalidArn",
13
+ "InvalidDefinition",
14
+ "InvalidEncryptionConfiguration",
15
+ "InvalidExecutionInput",
16
+ "InvalidLoggingConfiguration",
17
+ "InvalidName",
18
+ "InvalidOutput",
19
+ "InvalidToken",
20
+ "InvalidTracingConfiguration",
21
+ "KmsAccessDeniedException",
22
+ "KmsInvalidStateException",
23
+ "KmsThrottlingException",
24
+ "MissingRequiredParameter",
25
+ "ResourceNotFound",
26
+ "ServiceQuotaExceededException",
27
+ "StateMachineAlreadyExists",
28
+ "StateMachineDeleting",
29
+ "StateMachineDoesNotExist",
30
+ "StateMachineLimitExceeded",
31
+ "StateMachineTypeNotSupported",
32
+ "TaskDoesNotExist",
33
+ "TaskTimedOut",
34
+ "TooManyTags",
35
+ "ValidationException",
36
+ ];
37
+ export const SdkError = CommonSdkError;
38
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAoCA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,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;AAqCX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { SFNClient } from "@aws-sdk/client-sfn";
5
+ import { Context, Effect, Layer } from "effect";
6
+ import * as SFNServiceConfig from "./SFNServiceConfig.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export class SFNClientInstance extends Context.Tag("@effect-aws/client-sfn/SFNClientInstance")() {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export const make = Effect.flatMap(SFNServiceConfig.toSFNClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new SFNClient(config)), (client) => Effect.sync(() => client.destroy())));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export const layer = Layer.scoped(SFNClientInstance, make);
23
+ //# sourceMappingURL=SFNClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNClientInstance.js","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;AAChD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,OAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { CreateActivityCommand, CreateStateMachineAliasCommand, CreateStateMachineCommand, DeleteActivityCommand, DeleteStateMachineAliasCommand, DeleteStateMachineCommand, DeleteStateMachineVersionCommand, DescribeActivityCommand, DescribeExecutionCommand, DescribeMapRunCommand, DescribeStateMachineAliasCommand, DescribeStateMachineCommand, DescribeStateMachineForExecutionCommand, GetActivityTaskCommand, GetExecutionHistoryCommand, ListActivitiesCommand, ListExecutionsCommand, ListMapRunsCommand, ListStateMachineAliasesCommand, ListStateMachinesCommand, ListStateMachineVersionsCommand, ListTagsForResourceCommand, PublishStateMachineVersionCommand, RedriveExecutionCommand, SendTaskFailureCommand, SendTaskHeartbeatCommand, SendTaskSuccessCommand, StartExecutionCommand, StartSyncExecutionCommand, StopExecutionCommand, TagResourceCommand, TestStateCommand, UntagResourceCommand, UpdateMapRunCommand, UpdateStateMachineAliasCommand, UpdateStateMachineCommand, ValidateStateMachineDefinitionCommand, } from "@aws-sdk/client-sfn";
5
+ import { Service } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import { AllServiceErrors } from "./Errors.js";
8
+ import * as Instance from "./SFNClientInstance.js";
9
+ import * as SFNServiceConfig from "./SFNServiceConfig.js";
10
+ const commands = {
11
+ CreateActivityCommand,
12
+ CreateStateMachineCommand,
13
+ CreateStateMachineAliasCommand,
14
+ DeleteActivityCommand,
15
+ DeleteStateMachineCommand,
16
+ DeleteStateMachineAliasCommand,
17
+ DeleteStateMachineVersionCommand,
18
+ DescribeActivityCommand,
19
+ DescribeExecutionCommand,
20
+ DescribeMapRunCommand,
21
+ DescribeStateMachineCommand,
22
+ DescribeStateMachineAliasCommand,
23
+ DescribeStateMachineForExecutionCommand,
24
+ GetActivityTaskCommand,
25
+ GetExecutionHistoryCommand,
26
+ ListActivitiesCommand,
27
+ ListExecutionsCommand,
28
+ ListMapRunsCommand,
29
+ ListStateMachineAliasesCommand,
30
+ ListStateMachineVersionsCommand,
31
+ ListStateMachinesCommand,
32
+ ListTagsForResourceCommand,
33
+ PublishStateMachineVersionCommand,
34
+ RedriveExecutionCommand,
35
+ SendTaskFailureCommand,
36
+ SendTaskHeartbeatCommand,
37
+ SendTaskSuccessCommand,
38
+ StartExecutionCommand,
39
+ StartSyncExecutionCommand,
40
+ StopExecutionCommand,
41
+ TagResourceCommand,
42
+ TestStateCommand,
43
+ UntagResourceCommand,
44
+ UpdateMapRunCommand,
45
+ UpdateStateMachineCommand,
46
+ UpdateStateMachineAliasCommand,
47
+ ValidateStateMachineDefinitionCommand,
48
+ };
49
+ /**
50
+ * @since 1.0.0
51
+ * @category constructors
52
+ */
53
+ export const makeSFNService = Effect.gen(function* () {
54
+ const client = yield* Instance.SFNClientInstance;
55
+ return Service.fromClientAndCommands(client, commands, {
56
+ errorTags: AllServiceErrors,
57
+ resolveClientConfig: SFNServiceConfig.toSFNClientConfig,
58
+ });
59
+ });
60
+ /**
61
+ * @since 1.0.0
62
+ * @category models
63
+ */
64
+ export class SFNService extends Effect.Tag("@effect-aws/client-sfn/SFNService")() {
65
+ static defaultLayer = Layer.effect(this, makeSFNService).pipe(Layer.provide(Instance.layer));
66
+ static layer = (config) => Layer.effect(this, makeSFNService).pipe(Layer.provide(Instance.layer), Layer.provide(SFNServiceConfig.setSFNServiceConfig(config)));
67
+ static baseLayer = (evaluate) => Layer.effect(this, makeSFNService).pipe(Layer.provide(Layer.effect(Instance.SFNClientInstance, Effect.map(SFNServiceConfig.toSFNClientConfig, evaluate))));
68
+ }
69
+ //# sourceMappingURL=SFNService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNService.js","sourceRoot":"","sources":["../../src/SFNService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EAGrB,8BAA8B,EAG9B,yBAAyB,EAGzB,qBAAqB,EAGrB,8BAA8B,EAG9B,yBAAyB,EAGzB,gCAAgC,EAGhC,uBAAuB,EAGvB,wBAAwB,EAGxB,qBAAqB,EAGrB,gCAAgC,EAGhC,2BAA2B,EAG3B,uCAAuC,EAGvC,sBAAsB,EAGtB,0BAA0B,EAG1B,qBAAqB,EAGrB,qBAAqB,EAGrB,kBAAkB,EAGlB,8BAA8B,EAG9B,wBAAwB,EAGxB,+BAA+B,EAG/B,0BAA0B,EAG1B,iCAAiC,EAGjC,uBAAuB,EAGvB,sBAAsB,EAGtB,wBAAwB,EAGxB,sBAAsB,EAKtB,qBAAqB,EAGrB,yBAAyB,EAGzB,oBAAoB,EAGpB,kBAAkB,EAGlB,gBAAgB,EAGhB,oBAAoB,EAGpB,mBAAmB,EAGnB,8BAA8B,EAG9B,yBAAyB,EAGzB,qCAAqC,GAGtC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAA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AAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CACrC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CACrC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { ServiceLogger } from "@effect-aws/commons";
2
+ import { Effect, FiberRef, Layer } from "effect";
3
+ import { dual } from "effect/Function";
4
+ import { globalValue } from "effect/GlobalValue";
5
+ /**
6
+ * @since 1.0.0
7
+ * @category sfn service config
8
+ */
9
+ const currentSFNServiceConfig = globalValue("@effect-aws/client-sfn/currentSFNServiceConfig", () => FiberRef.unsafeMake({}));
10
+ /**
11
+ * @since 1.0.0
12
+ * @category sfn service config
13
+ */
14
+ export const withSFNServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentSFNServiceConfig, config));
15
+ /**
16
+ * @since 1.0.0
17
+ * @category sfn service config
18
+ */
19
+ export const setSFNServiceConfig = (config) => Layer.locallyScoped(currentSFNServiceConfig, config);
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export const toSFNClientConfig = Effect.gen(function* () {
25
+ const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSFNServiceConfig);
26
+ const logger = serviceLogger === true
27
+ ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
28
+ : (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
29
+ return { logger, ...config };
30
+ });
31
+ //# sourceMappingURL=SFNServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNServiceConfig.js","sourceRoot":"","sources":["../../src/SFNServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,uBAAuB,GAAG,WAAW,CACzC,gDAAgD,EAChD,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAoB,EAAE,CAAC,CACjD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAG7B,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAyB,EAA0B,EAAE,CAC7F,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,uBAAuB,EAAE,MAAM,CAAC,CAC1D,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAyB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;AAEvH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAmC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACnF,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,QAAQ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