@effect-aws/client-scheduler 1.9.5 → 1.10.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/SchedulerService.d.ts +14 -13
- package/dist/cjs/SchedulerService.d.ts.map +1 -1
- package/dist/cjs/SchedulerService.js +1 -1
- package/dist/cjs/SchedulerService.js.map +1 -1
- package/dist/dts/SchedulerService.d.ts +14 -13
- package/dist/dts/SchedulerService.d.ts.map +1 -1
- package/dist/esm/SchedulerService.js +1 -1
- package/dist/esm/SchedulerService.js.map +1 -1
- package/package.json +2 -2
- package/src/SchedulerService.ts +50 -12
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
8
|
import type { ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
@@ -11,51 +12,51 @@ interface SchedulerService$ {
|
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link CreateScheduleCommand}
|
|
13
14
|
*/
|
|
14
|
-
createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
15
|
+
createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link CreateScheduleGroupCommand}
|
|
17
18
|
*/
|
|
18
|
-
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
19
|
+
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link DeleteScheduleCommand}
|
|
21
22
|
*/
|
|
22
|
-
deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
23
|
+
deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link DeleteScheduleGroupCommand}
|
|
25
26
|
*/
|
|
26
|
-
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
27
|
+
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link GetScheduleCommand}
|
|
29
30
|
*/
|
|
30
|
-
getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
31
|
+
getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
31
32
|
/**
|
|
32
33
|
* @see {@link GetScheduleGroupCommand}
|
|
33
34
|
*/
|
|
34
|
-
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
35
|
+
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
35
36
|
/**
|
|
36
37
|
* @see {@link ListScheduleGroupsCommand}
|
|
37
38
|
*/
|
|
38
|
-
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
39
|
+
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
39
40
|
/**
|
|
40
41
|
* @see {@link ListSchedulesCommand}
|
|
41
42
|
*/
|
|
42
|
-
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
43
|
+
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
43
44
|
/**
|
|
44
45
|
* @see {@link ListTagsForResourceCommand}
|
|
45
46
|
*/
|
|
46
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
47
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
47
48
|
/**
|
|
48
49
|
* @see {@link TagResourceCommand}
|
|
49
50
|
*/
|
|
50
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
51
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
51
52
|
/**
|
|
52
53
|
* @see {@link UntagResourceCommand}
|
|
53
54
|
*/
|
|
54
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
55
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
55
56
|
/**
|
|
56
57
|
* @see {@link UpdateScheduleCommand}
|
|
57
58
|
*/
|
|
58
|
-
updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
59
|
+
updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* @since 1.0.0
|
|
@@ -63,7 +64,7 @@ interface SchedulerService$ {
|
|
|
63
64
|
*/
|
|
64
65
|
export declare const makeSchedulerService: Effect.Effect<SchedulerService$, never, Instance.SchedulerClientInstance>;
|
|
65
66
|
declare const SchedulerService_base: import("effect/Context").TagClass<SchedulerService, "@effect-aws/client-scheduler/SchedulerService", SchedulerService$> & Effect.Tag.Proxy<SchedulerService, SchedulerService$> & {
|
|
66
|
-
use: <X>(body: (_: SchedulerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SchedulerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
67
|
+
use: <X>(body: (_: SchedulerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SchedulerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SchedulerService> : Effect.Effect<X, never, SchedulerService>;
|
|
67
68
|
};
|
|
68
69
|
/**
|
|
69
70
|
* @since 1.0.0
|
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EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EACxB,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;IAEF;;OAEG;IACH,cAAc,CACZ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,2BAA2B,EACzB,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,2EAW/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;CACF"}
|
|
@@ -53,7 +53,7 @@ const commands = {
|
|
|
53
53
|
*/
|
|
54
54
|
exports.makeSchedulerService = effect_1.Effect.gen(function* () {
|
|
55
55
|
const client = yield* Instance.SchedulerClientInstance;
|
|
56
|
-
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
56
|
+
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
57
57
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
58
58
|
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gEAuCmC;AAEnC,iDAA8C;
|
|
1
|
+
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gEAuCmC;AAEnC,iDAA8C;AAE9C,mCAAuC;AASvC,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;AAqLF;;;GAGG;AACU,QAAA,oBAAoB,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACtD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAEvD,OAAO,KAAK,CAAC,CAAC,iBAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,sBAAsB,CAAC,uBAAuB;KACpE,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,eAAM,CAAC,GAAG,CAAC,+CAA+C,CAAC,EAG9F;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC1D,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,CAAC,CAAC,IAAI,CAC3C,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CACxE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAmE,EACnE,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,CAAC,CAAC,IAAI,CAC3C,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,uBAAuB,EAChC,eAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CACrE,CACF,CACF,CAAC;;AApBN,4CAqBC"}
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
8
|
import type { ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
@@ -11,51 +12,51 @@ interface SchedulerService$ {
|
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link CreateScheduleCommand}
|
|
13
14
|
*/
|
|
14
|
-
createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
15
|
+
createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link CreateScheduleGroupCommand}
|
|
17
18
|
*/
|
|
18
|
-
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
19
|
+
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link DeleteScheduleCommand}
|
|
21
22
|
*/
|
|
22
|
-
deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
23
|
+
deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link DeleteScheduleGroupCommand}
|
|
25
26
|
*/
|
|
26
|
-
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
27
|
+
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link GetScheduleCommand}
|
|
29
30
|
*/
|
|
30
|
-
getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
31
|
+
getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
31
32
|
/**
|
|
32
33
|
* @see {@link GetScheduleGroupCommand}
|
|
33
34
|
*/
|
|
34
|
-
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
35
|
+
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
35
36
|
/**
|
|
36
37
|
* @see {@link ListScheduleGroupsCommand}
|
|
37
38
|
*/
|
|
38
|
-
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
39
|
+
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
39
40
|
/**
|
|
40
41
|
* @see {@link ListSchedulesCommand}
|
|
41
42
|
*/
|
|
42
|
-
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
43
|
+
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
43
44
|
/**
|
|
44
45
|
* @see {@link ListTagsForResourceCommand}
|
|
45
46
|
*/
|
|
46
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
47
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
47
48
|
/**
|
|
48
49
|
* @see {@link TagResourceCommand}
|
|
49
50
|
*/
|
|
50
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
51
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
51
52
|
/**
|
|
52
53
|
* @see {@link UntagResourceCommand}
|
|
53
54
|
*/
|
|
54
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
55
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
55
56
|
/**
|
|
56
57
|
* @see {@link UpdateScheduleCommand}
|
|
57
58
|
*/
|
|
58
|
-
updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
59
|
+
updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* @since 1.0.0
|
|
@@ -63,7 +64,7 @@ interface SchedulerService$ {
|
|
|
63
64
|
*/
|
|
64
65
|
export declare const makeSchedulerService: Effect.Effect<SchedulerService$, never, Instance.SchedulerClientInstance>;
|
|
65
66
|
declare const SchedulerService_base: import("effect/Context").TagClass<SchedulerService, "@effect-aws/client-scheduler/SchedulerService", SchedulerService$> & Effect.Tag.Proxy<SchedulerService, SchedulerService$> & {
|
|
66
|
-
use: <X>(body: (_: SchedulerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SchedulerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
67
|
+
use: <X>(body: (_: SchedulerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SchedulerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SchedulerService> : Effect.Effect<X, never, SchedulerService>;
|
|
67
68
|
};
|
|
68
69
|
/**
|
|
69
70
|
* @since 1.0.0
|
|
@@ -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,EACrC,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,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEvF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;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,EAAE,QAAQ,CAAC;QACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -27,7 +27,7 @@ const commands = {
|
|
|
27
27
|
*/
|
|
28
28
|
export const makeSchedulerService = Effect.gen(function* () {
|
|
29
29
|
const client = yield* Instance.SchedulerClientInstance;
|
|
30
|
-
return Service.fromClientAndCommands(client, commands, {
|
|
30
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
31
31
|
errorTags: AllServiceErrors,
|
|
32
32
|
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
33
33
|
});
|
|
@@ -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,EAK1B,kBAAkB,EAGlB,oBAAoB,EAGpB,qBAAqB,GAGtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
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,EAK1B,kBAAkB,EAGlB,oBAAoB,EAGpB,qBAAqB,GAGtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ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xE,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-scheduler",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
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": "^0.
|
|
19
|
+
"@effect-aws/commons": "^0.3.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.0.0"
|
package/src/SchedulerService.ts
CHANGED
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
} from "@aws-sdk/client-scheduler";
|
|
44
44
|
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
45
45
|
import { Service } from "@effect-aws/commons";
|
|
46
|
+
import type { Cause } from "effect";
|
|
46
47
|
import { Effect, Layer } from "effect";
|
|
47
48
|
import type {
|
|
48
49
|
ConflictError,
|
|
@@ -82,6 +83,7 @@ interface SchedulerService$ {
|
|
|
82
83
|
options?: HttpHandlerOptions,
|
|
83
84
|
): Effect.Effect<
|
|
84
85
|
CreateScheduleCommandOutput,
|
|
86
|
+
| Cause.TimeoutException
|
|
85
87
|
| SdkError
|
|
86
88
|
| ConflictError
|
|
87
89
|
| InternalServerError
|
|
@@ -99,7 +101,13 @@ interface SchedulerService$ {
|
|
|
99
101
|
options?: HttpHandlerOptions,
|
|
100
102
|
): Effect.Effect<
|
|
101
103
|
CreateScheduleGroupCommandOutput,
|
|
102
|
-
|
|
104
|
+
| Cause.TimeoutException
|
|
105
|
+
| SdkError
|
|
106
|
+
| ConflictError
|
|
107
|
+
| InternalServerError
|
|
108
|
+
| ServiceQuotaExceededError
|
|
109
|
+
| ThrottlingError
|
|
110
|
+
| ValidationError
|
|
103
111
|
>;
|
|
104
112
|
|
|
105
113
|
/**
|
|
@@ -110,7 +118,13 @@ interface SchedulerService$ {
|
|
|
110
118
|
options?: HttpHandlerOptions,
|
|
111
119
|
): Effect.Effect<
|
|
112
120
|
DeleteScheduleCommandOutput,
|
|
113
|
-
|
|
121
|
+
| Cause.TimeoutException
|
|
122
|
+
| SdkError
|
|
123
|
+
| ConflictError
|
|
124
|
+
| InternalServerError
|
|
125
|
+
| ResourceNotFoundError
|
|
126
|
+
| ThrottlingError
|
|
127
|
+
| ValidationError
|
|
114
128
|
>;
|
|
115
129
|
|
|
116
130
|
/**
|
|
@@ -121,7 +135,13 @@ interface SchedulerService$ {
|
|
|
121
135
|
options?: HttpHandlerOptions,
|
|
122
136
|
): Effect.Effect<
|
|
123
137
|
DeleteScheduleGroupCommandOutput,
|
|
124
|
-
|
|
138
|
+
| Cause.TimeoutException
|
|
139
|
+
| SdkError
|
|
140
|
+
| ConflictError
|
|
141
|
+
| InternalServerError
|
|
142
|
+
| ResourceNotFoundError
|
|
143
|
+
| ThrottlingError
|
|
144
|
+
| ValidationError
|
|
125
145
|
>;
|
|
126
146
|
|
|
127
147
|
/**
|
|
@@ -132,7 +152,7 @@ interface SchedulerService$ {
|
|
|
132
152
|
options?: HttpHandlerOptions,
|
|
133
153
|
): Effect.Effect<
|
|
134
154
|
GetScheduleCommandOutput,
|
|
135
|
-
SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
155
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
136
156
|
>;
|
|
137
157
|
|
|
138
158
|
/**
|
|
@@ -143,7 +163,7 @@ interface SchedulerService$ {
|
|
|
143
163
|
options?: HttpHandlerOptions,
|
|
144
164
|
): Effect.Effect<
|
|
145
165
|
GetScheduleGroupCommandOutput,
|
|
146
|
-
SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
166
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
147
167
|
>;
|
|
148
168
|
|
|
149
169
|
/**
|
|
@@ -154,7 +174,7 @@ interface SchedulerService$ {
|
|
|
154
174
|
options?: HttpHandlerOptions,
|
|
155
175
|
): Effect.Effect<
|
|
156
176
|
ListScheduleGroupsCommandOutput,
|
|
157
|
-
SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
177
|
+
Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
158
178
|
>;
|
|
159
179
|
|
|
160
180
|
/**
|
|
@@ -165,7 +185,7 @@ interface SchedulerService$ {
|
|
|
165
185
|
options?: HttpHandlerOptions,
|
|
166
186
|
): Effect.Effect<
|
|
167
187
|
ListSchedulesCommandOutput,
|
|
168
|
-
SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
188
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
169
189
|
>;
|
|
170
190
|
|
|
171
191
|
/**
|
|
@@ -176,7 +196,7 @@ interface SchedulerService$ {
|
|
|
176
196
|
options?: HttpHandlerOptions,
|
|
177
197
|
): Effect.Effect<
|
|
178
198
|
ListTagsForResourceCommandOutput,
|
|
179
|
-
SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
199
|
+
Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
180
200
|
>;
|
|
181
201
|
|
|
182
202
|
/**
|
|
@@ -187,7 +207,13 @@ interface SchedulerService$ {
|
|
|
187
207
|
options?: HttpHandlerOptions,
|
|
188
208
|
): Effect.Effect<
|
|
189
209
|
TagResourceCommandOutput,
|
|
190
|
-
|
|
210
|
+
| Cause.TimeoutException
|
|
211
|
+
| SdkError
|
|
212
|
+
| ConflictError
|
|
213
|
+
| InternalServerError
|
|
214
|
+
| ResourceNotFoundError
|
|
215
|
+
| ThrottlingError
|
|
216
|
+
| ValidationError
|
|
191
217
|
>;
|
|
192
218
|
|
|
193
219
|
/**
|
|
@@ -198,7 +224,13 @@ interface SchedulerService$ {
|
|
|
198
224
|
options?: HttpHandlerOptions,
|
|
199
225
|
): Effect.Effect<
|
|
200
226
|
UntagResourceCommandOutput,
|
|
201
|
-
|
|
227
|
+
| Cause.TimeoutException
|
|
228
|
+
| SdkError
|
|
229
|
+
| ConflictError
|
|
230
|
+
| InternalServerError
|
|
231
|
+
| ResourceNotFoundError
|
|
232
|
+
| ThrottlingError
|
|
233
|
+
| ValidationError
|
|
202
234
|
>;
|
|
203
235
|
|
|
204
236
|
/**
|
|
@@ -209,7 +241,13 @@ interface SchedulerService$ {
|
|
|
209
241
|
options?: HttpHandlerOptions,
|
|
210
242
|
): Effect.Effect<
|
|
211
243
|
UpdateScheduleCommandOutput,
|
|
212
|
-
|
|
244
|
+
| Cause.TimeoutException
|
|
245
|
+
| SdkError
|
|
246
|
+
| ConflictError
|
|
247
|
+
| InternalServerError
|
|
248
|
+
| ResourceNotFoundError
|
|
249
|
+
| ThrottlingError
|
|
250
|
+
| ValidationError
|
|
213
251
|
>;
|
|
214
252
|
}
|
|
215
253
|
|
|
@@ -220,7 +258,7 @@ interface SchedulerService$ {
|
|
|
220
258
|
export const makeSchedulerService = Effect.gen(function*() {
|
|
221
259
|
const client = yield* Instance.SchedulerClientInstance;
|
|
222
260
|
|
|
223
|
-
return Service.fromClientAndCommands<SchedulerService$>(
|
|
261
|
+
return yield* Service.fromClientAndCommands<SchedulerService$>(
|
|
224
262
|
client,
|
|
225
263
|
commands,
|
|
226
264
|
{
|