@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,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SFNClientInstance.js",
3
+ "module": "../dist/esm/SFNClientInstance.js",
4
+ "types": "../dist/dts/SFNClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SFNService.js",
3
+ "module": "../dist/esm/SFNService.js",
4
+ "types": "../dist/dts/SFNService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SFNServiceConfig.js",
3
+ "module": "../dist/esm/SFNServiceConfig.js",
4
+ "types": "../dist/dts/SFNServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,11 +1,7 @@
1
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 { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
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"];
9
5
  export type ActivityAlreadyExistsError = TaggedException<ActivityAlreadyExists>;
10
6
  export type ActivityDoesNotExistError = TaggedException<ActivityDoesNotExist>;
11
7
  export type ActivityLimitExceededError = TaggedException<ActivityLimitExceeded>;
@@ -39,7 +35,6 @@ export type TaskDoesNotExistError = TaggedException<TaskDoesNotExist>;
39
35
  export type TaskTimedOutError = TaggedException<TaskTimedOut>;
40
36
  export type TooManyTagsError = TaggedException<TooManyTags>;
41
37
  export type ValidationError = TaggedException<ValidationException>;
42
- export type SdkError = TaggedException<Error & {
43
- name: "SdkError";
44
- }>;
45
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
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,gBAAgB,EAChB,6BAA6B,EAC7B,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,E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eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "ActivityAlreadyExists",
7
+ "ActivityDoesNotExist",
8
+ "ActivityLimitExceeded",
9
+ "ActivityWorkerLimitExceeded",
10
+ "ConflictException",
11
+ "ExecutionAlreadyExists",
12
+ "ExecutionDoesNotExist",
13
+ "ExecutionLimitExceeded",
14
+ "ExecutionNotRedrivable",
15
+ "InvalidArn",
16
+ "InvalidDefinition",
17
+ "InvalidEncryptionConfiguration",
18
+ "InvalidExecutionInput",
19
+ "InvalidLoggingConfiguration",
20
+ "InvalidName",
21
+ "InvalidOutput",
22
+ "InvalidToken",
23
+ "InvalidTracingConfiguration",
24
+ "KmsAccessDeniedException",
25
+ "KmsInvalidStateException",
26
+ "KmsThrottlingException",
27
+ "MissingRequiredParameter",
28
+ "ResourceNotFound",
29
+ "ServiceQuotaExceededException",
30
+ "StateMachineAlreadyExists",
31
+ "StateMachineDeleting",
32
+ "StateMachineDoesNotExist",
33
+ "StateMachineLimitExceeded",
34
+ "StateMachineTypeNotSupported",
35
+ "TaskDoesNotExist",
36
+ "TaskTimedOut",
37
+ "TooManyTags",
38
+ "ValidationException",
39
+ ];
40
+ exports.SdkError = commons_1.SdkError;
41
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAoCA,iDAAiE;AAEpD,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;AAqCE,QAAA,QAAQ,GAAG,kBAAc,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,50 @@
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
@@ -0,0 +1 @@
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"}
@@ -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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aAAa,GACb,eAAe,GACf,sBAAsB,GACtB,mCAAmC,GACnC,gCAAgC,GAChC,gCAAgC,GAChC,oBAAoB,GACpB,kBAAkB,GAClB,6BAA6B,GAC7B,yBAAyB,GACzB,yBAAyB,GACzB,6BAA6B,GAC7B,eAAe,CAClB,CAAC;IAEF;;OAEG;IACH,uBAAuB,CACrB,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,oCAAoC,EACpC,QAAQ,GAAG,aAAa,GAAG,eAAe,GAAG,qBAAqB,GAAG,yBAAyB,GAAG,eAAe,CACjH,CAAC;IAEF;;OAEG;IACH,8BAA8B,CAC5B,IAAI,EAAE,0CAA0C,EAChD,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,2CAA2C,EAC3C,QAAQ,GAAG,eAAe,CAC3B,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,+DAWzB,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,UAAW,SAAQ,eAG7B;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,wCAA0E;IACtG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,WAAW,MAAM,2CAI9C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,eAAe,KAAK,SAAS,2CASrD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,96 @@
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.SFNService = exports.makeSFNService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_sfn_1 = require("@aws-sdk/client-sfn");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Errors_js_1 = require("./Errors.js");
34
+ const Instance = __importStar(require("./SFNClientInstance.js"));
35
+ const SFNServiceConfig = __importStar(require("./SFNServiceConfig.js"));
36
+ const commands = {
37
+ CreateActivityCommand: client_sfn_1.CreateActivityCommand,
38
+ CreateStateMachineCommand: client_sfn_1.CreateStateMachineCommand,
39
+ CreateStateMachineAliasCommand: client_sfn_1.CreateStateMachineAliasCommand,
40
+ DeleteActivityCommand: client_sfn_1.DeleteActivityCommand,
41
+ DeleteStateMachineCommand: client_sfn_1.DeleteStateMachineCommand,
42
+ DeleteStateMachineAliasCommand: client_sfn_1.DeleteStateMachineAliasCommand,
43
+ DeleteStateMachineVersionCommand: client_sfn_1.DeleteStateMachineVersionCommand,
44
+ DescribeActivityCommand: client_sfn_1.DescribeActivityCommand,
45
+ DescribeExecutionCommand: client_sfn_1.DescribeExecutionCommand,
46
+ DescribeMapRunCommand: client_sfn_1.DescribeMapRunCommand,
47
+ DescribeStateMachineCommand: client_sfn_1.DescribeStateMachineCommand,
48
+ DescribeStateMachineAliasCommand: client_sfn_1.DescribeStateMachineAliasCommand,
49
+ DescribeStateMachineForExecutionCommand: client_sfn_1.DescribeStateMachineForExecutionCommand,
50
+ GetActivityTaskCommand: client_sfn_1.GetActivityTaskCommand,
51
+ GetExecutionHistoryCommand: client_sfn_1.GetExecutionHistoryCommand,
52
+ ListActivitiesCommand: client_sfn_1.ListActivitiesCommand,
53
+ ListExecutionsCommand: client_sfn_1.ListExecutionsCommand,
54
+ ListMapRunsCommand: client_sfn_1.ListMapRunsCommand,
55
+ ListStateMachineAliasesCommand: client_sfn_1.ListStateMachineAliasesCommand,
56
+ ListStateMachineVersionsCommand: client_sfn_1.ListStateMachineVersionsCommand,
57
+ ListStateMachinesCommand: client_sfn_1.ListStateMachinesCommand,
58
+ ListTagsForResourceCommand: client_sfn_1.ListTagsForResourceCommand,
59
+ PublishStateMachineVersionCommand: client_sfn_1.PublishStateMachineVersionCommand,
60
+ RedriveExecutionCommand: client_sfn_1.RedriveExecutionCommand,
61
+ SendTaskFailureCommand: client_sfn_1.SendTaskFailureCommand,
62
+ SendTaskHeartbeatCommand: client_sfn_1.SendTaskHeartbeatCommand,
63
+ SendTaskSuccessCommand: client_sfn_1.SendTaskSuccessCommand,
64
+ StartExecutionCommand: client_sfn_1.StartExecutionCommand,
65
+ StartSyncExecutionCommand: client_sfn_1.StartSyncExecutionCommand,
66
+ StopExecutionCommand: client_sfn_1.StopExecutionCommand,
67
+ TagResourceCommand: client_sfn_1.TagResourceCommand,
68
+ TestStateCommand: client_sfn_1.TestStateCommand,
69
+ UntagResourceCommand: client_sfn_1.UntagResourceCommand,
70
+ UpdateMapRunCommand: client_sfn_1.UpdateMapRunCommand,
71
+ UpdateStateMachineCommand: client_sfn_1.UpdateStateMachineCommand,
72
+ UpdateStateMachineAliasCommand: client_sfn_1.UpdateStateMachineAliasCommand,
73
+ ValidateStateMachineDefinitionCommand: client_sfn_1.ValidateStateMachineDefinitionCommand,
74
+ };
75
+ /**
76
+ * @since 1.0.0
77
+ * @category constructors
78
+ */
79
+ exports.makeSFNService = effect_1.Effect.gen(function* () {
80
+ const client = yield* Instance.SFNClientInstance;
81
+ return commons_1.Service.fromClientAndCommands(client, commands, {
82
+ errorTags: Errors_js_1.AllServiceErrors,
83
+ resolveClientConfig: SFNServiceConfig.toSFNClientConfig,
84
+ });
85
+ });
86
+ /**
87
+ * @since 1.0.0
88
+ * @category models
89
+ */
90
+ class SFNService extends effect_1.Effect.Tag("@effect-aws/client-sfn/SFNService")() {
91
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeSFNService).pipe(effect_1.Layer.provide(Instance.layer));
92
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeSFNService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SFNServiceConfig.setSFNServiceConfig(config)));
93
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSFNService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SFNClientInstance, effect_1.Effect.map(SFNServiceConfig.toSFNClientConfig, evaluate))));
94
+ }
95
+ exports.SFNService = SFNService;
96
+ //# sourceMappingURL=SFNService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNService.js","sourceRoot":"","sources":["../../src/SFNService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAkH6B;AAE7B,iDAA8C;AAC9C,mCAAuC;AAoCvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,qBAAqB,EAArB,kCAAqB;IACrB,yBAAyB,EAAzB,sCAAyB;IACzB,8BAA8B,EAA9B,2CAA8B;IAC9B,qBAAqB,EAArB,kCAAqB;IACrB,yBAAyB,EAAzB,sCAAyB;IACzB,8BAA8B,E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BAAiB;KACxD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,UAAW,SAAQ,eAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAG5E;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,eAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
@@ -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,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSFNClientConfig = exports.setSFNServiceConfig = exports.withSFNServiceConfig = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ const effect_1 = require("effect");
6
+ const Function_1 = require("effect/Function");
7
+ const GlobalValue_1 = require("effect/GlobalValue");
8
+ /**
9
+ * @since 1.0.0
10
+ * @category sfn service config
11
+ */
12
+ const currentSFNServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-sfn/currentSFNServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category sfn service config
16
+ */
17
+ exports.withSFNServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentSFNServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category sfn service config
21
+ */
22
+ const setSFNServiceConfig = (config) => effect_1.Layer.locallyScoped(currentSFNServiceConfig, config);
23
+ exports.setSFNServiceConfig = setSFNServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toSFNClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentSFNServiceConfig);
30
+ const logger = serviceLogger === true
31
+ ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
32
+ : (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
33
+ return { logger, ...config };
34
+ });
35
+ //# sourceMappingURL=SFNServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNServiceConfig.js","sourceRoot":"","sources":["../../src/SFNServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,uBAAuB,GAAG,IAAA,yBAAW,EACzC,gDAAgD,EAChD,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAoB,EAAE,CAAC,CACjD,CAAC;AAEF;;;GAGG;AACU,QAAA,oBAAoB,GAG7B,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAyB,EAA0B,EAAE,CAC7F,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,uBAAuB,EAAE,MAAM,CAAC,CAC1D,CAAC;AAEF;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,MAAyB,EAAE,EAAE,CAAC,cAAK,CAAC,aAAa,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;AAA1G,QAAA,mBAAmB,uBAAuF;AAEvH;;;GAGG;AACU,QAAA,iBAAiB,GAAmC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACnF,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IAE1F,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,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