@effect-aws/client-scheduler 1.10.3 → 1.11.0
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/cjs/Errors.d.ts +1 -1
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/SchedulerClientInstance.d.ts +3 -1
- package/dist/cjs/SchedulerClientInstance.d.ts.map +1 -1
- package/dist/cjs/SchedulerClientInstance.js +6 -4
- package/dist/cjs/SchedulerClientInstance.js.map +1 -1
- package/dist/cjs/SchedulerService.d.ts +8 -3
- package/dist/cjs/SchedulerService.d.ts.map +1 -1
- package/dist/cjs/SchedulerService.js +14 -9
- package/dist/cjs/SchedulerService.js.map +1 -1
- package/dist/cjs/SchedulerServiceConfig.d.ts +2 -1
- package/dist/cjs/SchedulerServiceConfig.d.ts.map +1 -1
- package/dist/cjs/SchedulerServiceConfig.js +34 -9
- package/dist/cjs/SchedulerServiceConfig.js.map +1 -1
- package/dist/dts/Errors.d.ts +1 -1
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/dts/SchedulerClientInstance.d.ts +3 -1
- package/dist/dts/SchedulerClientInstance.d.ts.map +1 -1
- package/dist/dts/SchedulerService.d.ts +8 -3
- package/dist/dts/SchedulerService.d.ts.map +1 -1
- package/dist/dts/SchedulerServiceConfig.d.ts +2 -1
- package/dist/dts/SchedulerServiceConfig.d.ts.map +1 -1
- package/dist/esm/SchedulerClientInstance.js +3 -1
- package/dist/esm/SchedulerClientInstance.js.map +1 -1
- package/dist/esm/SchedulerService.js +9 -4
- package/dist/esm/SchedulerService.js.map +1 -1
- package/dist/esm/SchedulerServiceConfig.js +4 -2
- package/dist/esm/SchedulerServiceConfig.js.map +1 -1
- package/package.json +2 -2
- package/src/Errors.ts +1 -1
- package/src/SchedulerClientInstance.ts +3 -1
- package/src/SchedulerService.ts +31 -4
- package/src/SchedulerServiceConfig.ts +4 -2
package/dist/cjs/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/cjs/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,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
declare const SchedulerClientInstance_base: Context.TagClass<SchedulerClientInstance, "@effect-aws/client-scheduler/SchedulerClientInstance", SchedulerClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;;AAGtC;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,4BAEA;CAAG;AAEhD;;;GAGG;AACH,eAAO,MAAM,IAAI,qEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,oDAA8C,CAAC"}
|
|
@@ -28,23 +28,25 @@ exports.layer = exports.make = exports.SchedulerClientInstance = void 0;
|
|
|
28
28
|
* @since 1.0.0
|
|
29
29
|
*/
|
|
30
30
|
const client_scheduler_1 = require("@aws-sdk/client-scheduler");
|
|
31
|
-
const
|
|
31
|
+
const Context = __importStar(require("effect/Context"));
|
|
32
|
+
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
+
const Layer = __importStar(require("effect/Layer"));
|
|
32
34
|
const SchedulerServiceConfig = __importStar(require("./SchedulerServiceConfig.js"));
|
|
33
35
|
/**
|
|
34
36
|
* @since 1.0.0
|
|
35
37
|
* @category tags
|
|
36
38
|
*/
|
|
37
|
-
class SchedulerClientInstance extends
|
|
39
|
+
class SchedulerClientInstance extends Context.Tag("@effect-aws/client-scheduler/SchedulerClientInstance")() {
|
|
38
40
|
}
|
|
39
41
|
exports.SchedulerClientInstance = SchedulerClientInstance;
|
|
40
42
|
/**
|
|
41
43
|
* @since 1.0.0
|
|
42
44
|
* @category constructors
|
|
43
45
|
*/
|
|
44
|
-
exports.make =
|
|
46
|
+
exports.make = Effect.flatMap(SchedulerServiceConfig.toSchedulerClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new client_scheduler_1.SchedulerClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
45
47
|
/**
|
|
46
48
|
* @since 1.0.0
|
|
47
49
|
* @category layers
|
|
48
50
|
*/
|
|
49
|
-
exports.layer =
|
|
51
|
+
exports.layer = Layer.scoped(SchedulerClientInstance, exports.make);
|
|
50
52
|
//# sourceMappingURL=SchedulerClientInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.js","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gEAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"SchedulerClientInstance.js","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gEAA4D;AAC5D,wDAA0C;AAC1C,sDAAwC;AACxC,oDAAsC;AACtC,oFAAsE;AAEtE;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,OAAO,CAAC,GAAG,CACtD,sDAAsD,CACvD,EAA4C;CAAG;AAFhD,0DAEgD;AAEhD;;;GAGG;AACU,QAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,sBAAsB,CAAC,uBAAuB,EAC9C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,kCAAe,CAAC,MAAM,CAAC,CAAC,EAC9C,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,uBAAuB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -2,9 +2,12 @@
|
|
|
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
|
|
6
|
-
import type {
|
|
7
|
-
import
|
|
5
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
7
|
+
import type * as Cause from "effect/Cause";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as Layer from "effect/Layer";
|
|
10
|
+
import type * as Stream from "effect/Stream";
|
|
8
11
|
import type { ConflictError, InternalServerError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
9
12
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
10
13
|
interface SchedulerService$ {
|
|
@@ -37,10 +40,12 @@ interface SchedulerService$ {
|
|
|
37
40
|
* @see {@link ListScheduleGroupsCommand}
|
|
38
41
|
*/
|
|
39
42
|
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
43
|
+
listScheduleGroupsStream(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
40
44
|
/**
|
|
41
45
|
* @see {@link ListSchedulesCommand}
|
|
42
46
|
*/
|
|
43
47
|
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
|
+
listSchedulesStream(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
44
49
|
/**
|
|
45
50
|
* @see {@link ListTagsForResourceCommand}
|
|
46
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/B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EACjC,MAAM,2BA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ACR,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,qBAGnC;IACD,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"}
|
|
@@ -28,8 +28,9 @@ exports.SchedulerService = exports.makeSchedulerService = void 0;
|
|
|
28
28
|
* @since 1.0.0
|
|
29
29
|
*/
|
|
30
30
|
const client_scheduler_1 = require("@aws-sdk/client-scheduler");
|
|
31
|
-
const
|
|
32
|
-
const
|
|
31
|
+
const Service = __importStar(require("@effect-aws/commons/Service"));
|
|
32
|
+
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
+
const Layer = __importStar(require("effect/Layer"));
|
|
33
34
|
const Errors_js_1 = require("./Errors.js");
|
|
34
35
|
const Instance = __importStar(require("./SchedulerClientInstance.js"));
|
|
35
36
|
const SchedulerServiceConfig = __importStar(require("./SchedulerServiceConfig.js"));
|
|
@@ -47,25 +48,29 @@ const commands = {
|
|
|
47
48
|
UntagResourceCommand: client_scheduler_1.UntagResourceCommand,
|
|
48
49
|
UpdateScheduleCommand: client_scheduler_1.UpdateScheduleCommand,
|
|
49
50
|
};
|
|
51
|
+
const paginators = {
|
|
52
|
+
paginateListScheduleGroups: client_scheduler_1.paginateListScheduleGroups,
|
|
53
|
+
paginateListSchedules: client_scheduler_1.paginateListSchedules,
|
|
54
|
+
};
|
|
50
55
|
/**
|
|
51
56
|
* @since 1.0.0
|
|
52
57
|
* @category constructors
|
|
53
58
|
*/
|
|
54
|
-
exports.makeSchedulerService =
|
|
59
|
+
exports.makeSchedulerService = Effect.gen(function* () {
|
|
55
60
|
const client = yield* Instance.SchedulerClientInstance;
|
|
56
|
-
return yield*
|
|
61
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
57
62
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
58
63
|
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
59
|
-
});
|
|
64
|
+
}, paginators);
|
|
60
65
|
});
|
|
61
66
|
/**
|
|
62
67
|
* @since 1.0.0
|
|
63
68
|
* @category models
|
|
64
69
|
*/
|
|
65
|
-
class SchedulerService extends
|
|
66
|
-
static defaultLayer =
|
|
67
|
-
static layer = (config) =>
|
|
68
|
-
static baseLayer = (evaluate) =>
|
|
70
|
+
class SchedulerService extends Effect.Tag("@effect-aws/client-scheduler/SchedulerService")() {
|
|
71
|
+
static defaultLayer = Layer.effect(this, exports.makeSchedulerService).pipe(Layer.provide(Instance.layer));
|
|
72
|
+
static layer = (config) => Layer.effect(this, exports.makeSchedulerService).pipe(Layer.provide(Instance.layer), Layer.provide(SchedulerServiceConfig.setSchedulerServiceConfig(config)));
|
|
73
|
+
static baseLayer = (evaluate) => Layer.effect(this, exports.makeSchedulerService).pipe(Layer.provide(Layer.effect(Instance.SchedulerClientInstance, Effect.map(SchedulerServiceConfig.toSchedulerClientConfig, evaluate))));
|
|
69
74
|
}
|
|
70
75
|
exports.SchedulerService = SchedulerService;
|
|
71
76
|
//# sourceMappingURL=SchedulerService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gEAyCmC;AACnC,qEAAuD;AAIvD,sDAAwC;AACxC,oDAAsC;AAWtC,2CAA+C;AAC/C,uEAAyD;AACzD,oFAAsE;AAEtE,MAAM,QAAQ,GAAG;IACf,qBAAqB,EAArB,wCAAqB;IACrB,0BAA0B,EAA1B,6CAA0B;IAC1B,qBAAqB,EAArB,wCAAqB;IACrB,0BAA0B,EAA1B,6CAA0B;IAC1B,kBAAkB,EAAlB,qCAAkB;IAClB,uBAAuB,EAAvB,0CAAuB;IACvB,yBAAyB,EAAzB,4CAAyB;IACzB,oBAAoB,EAApB,uCAAoB;IACpB,0BAA0B,EAA1B,6CAA0B;IAC1B,kBAAkB,EAAlB,qCAAkB;IAClB,oBAAoB,EAApB,uCAAoB;IACpB,qBAAqB,EAArB,wCAAqB;CACtB,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,0BAA0B,EAA1B,6CAA0B;IAC1B,qBAAqB,EAArB,wCAAqB;CACtB,CAAC;AAqMF;;;GAGG;AACU,QAAA,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACtD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAEvD,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,sBAAsB,CAAC,uBAAuB;KACpE,EACD,UAAU,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,GAAG,CAAC,+CAA+C,CAAC,EAG9F;IACD,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC1D,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,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,4BAAoB,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;;AApBN,4CAqBC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { SchedulerService } from "./SchedulerService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAW9D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE;IACvC,CAAC,MAAM,EAAE,gBAAgB,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;IACvG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,WAAY,iBAAiB,MAAM,qCACb,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAQvE,CAAC"}
|
|
@@ -1,35 +1,60 @@
|
|
|
1
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
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.toSchedulerClientConfig = exports.setSchedulerServiceConfig = exports.withSchedulerServiceConfig = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
27
|
+
const ServiceLogger = __importStar(require("@effect-aws/commons/ServiceLogger"));
|
|
28
|
+
const Effect = __importStar(require("effect/Effect"));
|
|
29
|
+
const FiberRef = __importStar(require("effect/FiberRef"));
|
|
6
30
|
const Function_1 = require("effect/Function");
|
|
7
31
|
const GlobalValue_1 = require("effect/GlobalValue");
|
|
32
|
+
const Layer = __importStar(require("effect/Layer"));
|
|
8
33
|
/**
|
|
9
34
|
* @since 1.0.0
|
|
10
35
|
* @category scheduler service config
|
|
11
36
|
*/
|
|
12
|
-
const currentSchedulerServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-scheduler/currentSchedulerServiceConfig", () =>
|
|
37
|
+
const currentSchedulerServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-scheduler/currentSchedulerServiceConfig", () => FiberRef.unsafeMake({}));
|
|
13
38
|
/**
|
|
14
39
|
* @since 1.0.0
|
|
15
40
|
* @category scheduler service config
|
|
16
41
|
*/
|
|
17
|
-
exports.withSchedulerServiceConfig = (0, Function_1.dual)(2, (effect, config) =>
|
|
42
|
+
exports.withSchedulerServiceConfig = (0, Function_1.dual)(2, (effect, config) => Effect.locally(effect, currentSchedulerServiceConfig, config));
|
|
18
43
|
/**
|
|
19
44
|
* @since 1.0.0
|
|
20
45
|
* @category scheduler service config
|
|
21
46
|
*/
|
|
22
|
-
const setSchedulerServiceConfig = (config) =>
|
|
47
|
+
const setSchedulerServiceConfig = (config) => Layer.locallyScoped(currentSchedulerServiceConfig, config);
|
|
23
48
|
exports.setSchedulerServiceConfig = setSchedulerServiceConfig;
|
|
24
49
|
/**
|
|
25
50
|
* @since 1.0.0
|
|
26
51
|
* @category adapters
|
|
27
52
|
*/
|
|
28
|
-
exports.toSchedulerClientConfig =
|
|
29
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
53
|
+
exports.toSchedulerClientConfig = Effect.gen(function* () {
|
|
54
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSchedulerServiceConfig);
|
|
30
55
|
const logger = serviceLogger === true
|
|
31
|
-
? yield*
|
|
32
|
-
: (serviceLogger ? yield*
|
|
56
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
57
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
33
58
|
return { logger, ...config };
|
|
34
59
|
});
|
|
35
60
|
//# sourceMappingURL=SchedulerServiceConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.js","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchedulerServiceConfig.js","sourceRoot":"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AC,CAAC"}
|
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,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
declare const SchedulerClientInstance_base: Context.TagClass<SchedulerClientInstance, "@effect-aws/client-scheduler/SchedulerClientInstance", SchedulerClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;;AAGtC;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,4BAEA;CAAG;AAEhD;;;GAGG;AACH,eAAO,MAAM,IAAI,qEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,oDAA8C,CAAC"}
|
|
@@ -2,9 +2,12 @@
|
|
|
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
|
|
6
|
-
import type {
|
|
7
|
-
import
|
|
5
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
7
|
+
import type * as Cause from "effect/Cause";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as Layer from "effect/Layer";
|
|
10
|
+
import type * as Stream from "effect/Stream";
|
|
8
11
|
import type { ConflictError, InternalServerError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
9
12
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
10
13
|
interface SchedulerService$ {
|
|
@@ -37,10 +40,12 @@ interface SchedulerService$ {
|
|
|
37
40
|
* @see {@link ListScheduleGroupsCommand}
|
|
38
41
|
*/
|
|
39
42
|
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
43
|
+
listScheduleGroupsStream(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
40
44
|
/**
|
|
41
45
|
* @see {@link ListSchedulesCommand}
|
|
42
46
|
*/
|
|
43
47
|
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
|
+
listSchedulesStream(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
44
49
|
/**
|
|
45
50
|
* @see {@link ListTagsForResourceCommand}
|
|
46
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":[],"m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iBAAiB,CAAC;CACtC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { SchedulerService } from "./SchedulerService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAW9D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE;IACvC,CAAC,MAAM,EAAE,gBAAgB,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;IACvG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,WAAY,iBAAiB,MAAM,qCACb,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAQvE,CAAC"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.js","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerClientInstance.js","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,OAAO,CAAC,GAAG,CACtD,sDAAsD,CACvD,EAA4C;CAAG;AAEhD;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,sBAAsB,CAAC,uBAAuB,EAC9C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,EAC9C,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,uBAAuB,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
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
|
|
6
|
-
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
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
7
8
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
9
10
|
import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
|
|
@@ -21,6 +22,10 @@ const commands = {
|
|
|
21
22
|
UntagResourceCommand,
|
|
22
23
|
UpdateScheduleCommand,
|
|
23
24
|
};
|
|
25
|
+
const paginators = {
|
|
26
|
+
paginateListScheduleGroups,
|
|
27
|
+
paginateListSchedules,
|
|
28
|
+
};
|
|
24
29
|
/**
|
|
25
30
|
* @since 1.0.0
|
|
26
31
|
* @category constructors
|
|
@@ -30,7 +35,7 @@ export const makeSchedulerService = Effect.gen(function* () {
|
|
|
30
35
|
return yield* Service.fromClientAndCommands(client, commands, {
|
|
31
36
|
errorTags: AllServiceErrors,
|
|
32
37
|
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
33
|
-
});
|
|
38
|
+
}, paginators);
|
|
34
39
|
});
|
|
35
40
|
/**
|
|
36
41
|
* @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,GAGtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AAIvD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,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,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,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as FiberRef from "effect/FiberRef";
|
|
3
4
|
import { dual } from "effect/Function";
|
|
4
5
|
import { globalValue } from "effect/GlobalValue";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
5
7
|
/**
|
|
6
8
|
* @since 1.0.0
|
|
7
9
|
* @category scheduler service config
|
|
@@ -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,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,cAAc,C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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": "^0.
|
|
19
|
+
"@effect-aws/commons": "^0.4.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.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",
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
6
8
|
import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
|
|
7
9
|
|
|
8
10
|
/**
|
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,10 +43,13 @@ import {
|
|
|
41
43
|
type UpdateScheduleCommandInput,
|
|
42
44
|
type UpdateScheduleCommandOutput,
|
|
43
45
|
} from "@aws-sdk/client-scheduler";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import type {
|
|
47
|
-
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";
|
|
49
|
+
import type * as Cause from "effect/Cause";
|
|
50
|
+
import * as Effect from "effect/Effect";
|
|
51
|
+
import * as Layer from "effect/Layer";
|
|
52
|
+
import type * as Stream from "effect/Stream";
|
|
48
53
|
import type {
|
|
49
54
|
ConflictError,
|
|
50
55
|
InternalServerError,
|
|
@@ -73,6 +78,11 @@ const commands = {
|
|
|
73
78
|
UpdateScheduleCommand,
|
|
74
79
|
};
|
|
75
80
|
|
|
81
|
+
const paginators = {
|
|
82
|
+
paginateListScheduleGroups,
|
|
83
|
+
paginateListSchedules,
|
|
84
|
+
};
|
|
85
|
+
|
|
76
86
|
interface SchedulerService$ {
|
|
77
87
|
readonly _: unique symbol;
|
|
78
88
|
|
|
@@ -178,6 +188,14 @@ interface SchedulerService$ {
|
|
|
178
188
|
Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
179
189
|
>;
|
|
180
190
|
|
|
191
|
+
listScheduleGroupsStream(
|
|
192
|
+
args: ListScheduleGroupsCommandInput,
|
|
193
|
+
options?: HttpHandlerOptions,
|
|
194
|
+
): Stream.Stream<
|
|
195
|
+
ListScheduleGroupsCommandOutput,
|
|
196
|
+
Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
197
|
+
>;
|
|
198
|
+
|
|
181
199
|
/**
|
|
182
200
|
* @see {@link ListSchedulesCommand}
|
|
183
201
|
*/
|
|
@@ -189,6 +207,14 @@ interface SchedulerService$ {
|
|
|
189
207
|
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
190
208
|
>;
|
|
191
209
|
|
|
210
|
+
listSchedulesStream(
|
|
211
|
+
args: ListSchedulesCommandInput,
|
|
212
|
+
options?: HttpHandlerOptions,
|
|
213
|
+
): Stream.Stream<
|
|
214
|
+
ListSchedulesCommandOutput,
|
|
215
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
216
|
+
>;
|
|
217
|
+
|
|
192
218
|
/**
|
|
193
219
|
* @see {@link ListTagsForResourceCommand}
|
|
194
220
|
*/
|
|
@@ -266,6 +292,7 @@ export const makeSchedulerService = Effect.gen(function*() {
|
|
|
266
292
|
errorTags: AllServiceErrors,
|
|
267
293
|
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
268
294
|
},
|
|
295
|
+
paginators,
|
|
269
296
|
);
|
|
270
297
|
});
|
|
271
298
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as FiberRef from "effect/FiberRef";
|
|
7
8
|
import { dual } from "effect/Function";
|
|
8
9
|
import { globalValue } from "effect/GlobalValue";
|
|
10
|
+
import * as Layer from "effect/Layer";
|
|
9
11
|
import type { SchedulerService } from "./SchedulerService.js";
|
|
10
12
|
|
|
11
13
|
/**
|