@effect-aws/client-scheduler 2.0.0-beta.2 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/Errors.d.ts +1 -1
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/dts/SchedulerService.d.ts +5 -1
- package/dist/dts/SchedulerService.d.ts.map +1 -1
- package/dist/esm/SchedulerService.js +7 -3
- package/dist/esm/SchedulerService.js.map +1 -1
- package/dist/esm/SchedulerServiceConfig.js +1 -1
- package/dist/esm/SchedulerServiceConfig.js.map +1 -1
- package/package.json +2 -2
- package/src/Errors.ts +1 -1
- package/src/SchedulerService.ts +28 -2
- package/src/SchedulerServiceConfig.ts +1 -1
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "@aws-sdk/client-scheduler";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
3
3
|
export declare const AllServiceErrors: readonly ["ConflictException", "InternalServerException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "ValidationException"];
|
|
4
4
|
export type ConflictError = TaggedException<ConflictException>;
|
|
5
5
|
export type InternalServerError = TaggedException<InternalServerException>;
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,eAAO,MAAM,gBAAgB,uKAOnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type CreateScheduleCommandInput, type CreateScheduleCommandOutput, type CreateScheduleGroupCommandInput, type CreateScheduleGroupCommandOutput, type DeleteScheduleCommandInput, type DeleteScheduleCommandOutput, type DeleteScheduleGroupCommandInput, type DeleteScheduleGroupCommandOutput, type GetScheduleCommandInput, type GetScheduleCommandOutput, type GetScheduleGroupCommandInput, type GetScheduleGroupCommandOutput, type ListScheduleGroupsCommandInput, type ListScheduleGroupsCommandOutput, type ListSchedulesCommandInput, type ListSchedulesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type SchedulerClient, type SchedulerClientConfig, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateScheduleCommandInput, type UpdateScheduleCommandOutput } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import type
|
|
5
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
6
7
|
import type * as Cause from "effect/Cause";
|
|
7
8
|
import * as Effect from "effect/Effect";
|
|
8
9
|
import * as Layer from "effect/Layer";
|
|
9
10
|
import * as ServiceMap from "effect/ServiceMap";
|
|
11
|
+
import type * as Stream from "effect/Stream";
|
|
10
12
|
import type { ConflictError, InternalServerError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
11
13
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
12
14
|
export interface SchedulerService$ {
|
|
@@ -38,10 +40,12 @@ export interface SchedulerService$ {
|
|
|
38
40
|
* @see {@link ListScheduleGroupsCommand}
|
|
39
41
|
*/
|
|
40
42
|
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
43
|
+
listScheduleGroupsStream(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListScheduleGroupsCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
41
44
|
/**
|
|
42
45
|
* @see {@link ListSchedulesCommand}
|
|
43
46
|
*/
|
|
44
47
|
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
|
+
listSchedulesStream(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListSchedulesCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
45
49
|
/**
|
|
46
50
|
* @see {@link ListTagsForResourceCommand}
|
|
47
51
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.d.ts","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,
|
|
1
|
+
{"version":3,"file":"SchedulerService.d.ts","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAGrC,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/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AY,GAClB,QAAQ,GACR,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,2EAY/B,CAAC;;AAEH;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAGc;IAClD,MAAM,CAAC,QAAQ,CAAC,YAAY,8CAAgF;IAC5G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,iBAAiB,MAAM,iDAIpD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,qBAAqB,KAAK,eAAe,iDASjE;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC;QACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,iBAAiB,CAAC;CACtC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { CreateScheduleCommand, CreateScheduleGroupCommand, DeleteScheduleCommand, DeleteScheduleGroupCommand, GetScheduleCommand, GetScheduleGroupCommand, ListScheduleGroupsCommand, ListSchedulesCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateScheduleCommand, } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
4
|
+
import { CreateScheduleCommand, CreateScheduleGroupCommand, DeleteScheduleCommand, DeleteScheduleGroupCommand, GetScheduleCommand, GetScheduleGroupCommand, ListScheduleGroupsCommand, ListSchedulesCommand, ListTagsForResourceCommand, paginateListScheduleGroups, paginateListSchedules, TagResourceCommand, UntagResourceCommand, UpdateScheduleCommand, } from "@aws-sdk/client-scheduler";
|
|
5
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Layer from "effect/Layer";
|
|
8
8
|
import * as ServiceMap from "effect/ServiceMap";
|
|
@@ -23,6 +23,10 @@ const commands = {
|
|
|
23
23
|
UntagResourceCommand,
|
|
24
24
|
UpdateScheduleCommand,
|
|
25
25
|
};
|
|
26
|
+
const paginators = {
|
|
27
|
+
paginateListScheduleGroups,
|
|
28
|
+
paginateListSchedules,
|
|
29
|
+
};
|
|
26
30
|
/**
|
|
27
31
|
* @since 1.0.0
|
|
28
32
|
* @category constructors
|
|
@@ -32,7 +36,7 @@ export const makeSchedulerService = Effect.gen(function* () {
|
|
|
32
36
|
return yield* Service.fromClientAndCommands(client, commands, {
|
|
33
37
|
errorTags: AllServiceErrors,
|
|
34
38
|
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
35
|
-
});
|
|
39
|
+
}, paginators);
|
|
36
40
|
});
|
|
37
41
|
/**
|
|
38
42
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EAGrB,0BAA0B,EAG1B,qBAAqB,EAGrB,0BAA0B,EAG1B,kBAAkB,EAGlB,uBAAuB,EAGvB,yBAAyB,EAGzB,oBAAoB,EAGpB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EAGrB,0BAA0B,EAG1B,qBAAqB,EAGrB,0BAA0B,EAG1B,kBAAkB,EAGlB,uBAAuB,EAGvB,yBAAyB,EAGzB,oBAAoB,EAGpB,0BAA0B,EAG1B,0BAA0B,EAC1B,qBAAqB,EAGrB,kBAAkB,EAGlB,oBAAoB,EAGpB,qBAAqB,G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AC,CAAC;IAC5G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC1D,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,IAAI,CAC3C,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CACxE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAmE,EACnE,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,IAAI,CAC3C,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,uBAAuB,EAChC,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CACrE,CACF,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.js","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerServiceConfig.js","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAGhD;;;GAGG;AACH,MAAM,6BAA6B,GAAG,UAAU,CAAC,SAAS,CACxD,4DAA4D,EAC5D,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAGnC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA+B,EAA0B,EAAE,CACnG,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,6BAA6B,EAAE,MAAM,CAAC,CACvE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC3E,KAAK,CAAC,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,6BAA6B,CAAC;IAElF,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-scheduler",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"description": "Effectful AWS Scheduler client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-scheduler",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-scheduler": "^3",
|
|
19
|
-
"@effect-aws/commons": "^1.0.0-beta.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.3"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=4.0.0 <5.0.0"
|
package/src/Errors.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
ThrottlingException,
|
|
7
7
|
ValidationException,
|
|
8
8
|
} from "@aws-sdk/client-scheduler";
|
|
9
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
9
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
10
10
|
|
|
11
11
|
export const AllServiceErrors = [
|
|
12
12
|
"ConflictException",
|
package/src/SchedulerService.ts
CHANGED
|
@@ -29,6 +29,8 @@ import {
|
|
|
29
29
|
ListTagsForResourceCommand,
|
|
30
30
|
type ListTagsForResourceCommandInput,
|
|
31
31
|
type ListTagsForResourceCommandOutput,
|
|
32
|
+
paginateListScheduleGroups,
|
|
33
|
+
paginateListSchedules,
|
|
32
34
|
type SchedulerClient,
|
|
33
35
|
type SchedulerClientConfig,
|
|
34
36
|
TagResourceCommand,
|
|
@@ -41,12 +43,14 @@ import {
|
|
|
41
43
|
type UpdateScheduleCommandInput,
|
|
42
44
|
type UpdateScheduleCommandOutput,
|
|
43
45
|
} from "@aws-sdk/client-scheduler";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
47
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
48
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
46
49
|
import type * as Cause from "effect/Cause";
|
|
47
50
|
import * as Effect from "effect/Effect";
|
|
48
51
|
import * as Layer from "effect/Layer";
|
|
49
52
|
import * as ServiceMap from "effect/ServiceMap";
|
|
53
|
+
import type * as Stream from "effect/Stream";
|
|
50
54
|
import type {
|
|
51
55
|
ConflictError,
|
|
52
56
|
InternalServerError,
|
|
@@ -75,6 +79,11 @@ const commands = {
|
|
|
75
79
|
UpdateScheduleCommand,
|
|
76
80
|
};
|
|
77
81
|
|
|
82
|
+
const paginators = {
|
|
83
|
+
paginateListScheduleGroups,
|
|
84
|
+
paginateListSchedules,
|
|
85
|
+
};
|
|
86
|
+
|
|
78
87
|
export interface SchedulerService$ {
|
|
79
88
|
/**
|
|
80
89
|
* @see {@link CreateScheduleCommand}
|
|
@@ -178,6 +187,14 @@ export interface SchedulerService$ {
|
|
|
178
187
|
Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
179
188
|
>;
|
|
180
189
|
|
|
190
|
+
listScheduleGroupsStream(
|
|
191
|
+
args: ListScheduleGroupsCommandInput,
|
|
192
|
+
options?: HttpHandlerOptions,
|
|
193
|
+
): Stream.Stream<
|
|
194
|
+
ListScheduleGroupsCommandOutput,
|
|
195
|
+
Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
196
|
+
>;
|
|
197
|
+
|
|
181
198
|
/**
|
|
182
199
|
* @see {@link ListSchedulesCommand}
|
|
183
200
|
*/
|
|
@@ -189,6 +206,14 @@ export interface SchedulerService$ {
|
|
|
189
206
|
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
190
207
|
>;
|
|
191
208
|
|
|
209
|
+
listSchedulesStream(
|
|
210
|
+
args: ListSchedulesCommandInput,
|
|
211
|
+
options?: HttpHandlerOptions,
|
|
212
|
+
): Stream.Stream<
|
|
213
|
+
ListSchedulesCommandOutput,
|
|
214
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
215
|
+
>;
|
|
216
|
+
|
|
192
217
|
/**
|
|
193
218
|
* @see {@link ListTagsForResourceCommand}
|
|
194
219
|
*/
|
|
@@ -266,6 +291,7 @@ export const makeSchedulerService = Effect.gen(function*() {
|
|
|
266
291
|
errorTags: AllServiceErrors,
|
|
267
292
|
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
268
293
|
},
|
|
294
|
+
paginators,
|
|
269
295
|
);
|
|
270
296
|
});
|
|
271
297
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
8
|
import * as Layer from "effect/Layer";
|