@aws-sdk/client-scheduler 3.315.0 → 3.319.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/Scheduler.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Scheduler = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateScheduleCommand_1 = require("./commands/CreateScheduleCommand");
|
|
5
6
|
const CreateScheduleGroupCommand_1 = require("./commands/CreateScheduleGroupCommand");
|
|
6
7
|
const DeleteScheduleCommand_1 = require("./commands/DeleteScheduleCommand");
|
|
@@ -14,174 +15,21 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
14
15
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
15
16
|
const UpdateScheduleCommand_1 = require("./commands/UpdateScheduleCommand");
|
|
16
17
|
const SchedulerClient_1 = require("./SchedulerClient");
|
|
18
|
+
const commands = {
|
|
19
|
+
CreateScheduleCommand: CreateScheduleCommand_1.CreateScheduleCommand,
|
|
20
|
+
CreateScheduleGroupCommand: CreateScheduleGroupCommand_1.CreateScheduleGroupCommand,
|
|
21
|
+
DeleteScheduleCommand: DeleteScheduleCommand_1.DeleteScheduleCommand,
|
|
22
|
+
DeleteScheduleGroupCommand: DeleteScheduleGroupCommand_1.DeleteScheduleGroupCommand,
|
|
23
|
+
GetScheduleCommand: GetScheduleCommand_1.GetScheduleCommand,
|
|
24
|
+
GetScheduleGroupCommand: GetScheduleGroupCommand_1.GetScheduleGroupCommand,
|
|
25
|
+
ListScheduleGroupsCommand: ListScheduleGroupsCommand_1.ListScheduleGroupsCommand,
|
|
26
|
+
ListSchedulesCommand: ListSchedulesCommand_1.ListSchedulesCommand,
|
|
27
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
28
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
29
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
30
|
+
UpdateScheduleCommand: UpdateScheduleCommand_1.UpdateScheduleCommand,
|
|
31
|
+
};
|
|
17
32
|
class Scheduler extends SchedulerClient_1.SchedulerClient {
|
|
18
|
-
createSchedule(args, optionsOrCb, cb) {
|
|
19
|
-
const command = new CreateScheduleCommand_1.CreateScheduleCommand(args);
|
|
20
|
-
if (typeof optionsOrCb === "function") {
|
|
21
|
-
this.send(command, optionsOrCb);
|
|
22
|
-
}
|
|
23
|
-
else if (typeof cb === "function") {
|
|
24
|
-
if (typeof optionsOrCb !== "object")
|
|
25
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
26
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
createScheduleGroup(args, optionsOrCb, cb) {
|
|
33
|
-
const command = new CreateScheduleGroupCommand_1.CreateScheduleGroupCommand(args);
|
|
34
|
-
if (typeof optionsOrCb === "function") {
|
|
35
|
-
this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
else if (typeof cb === "function") {
|
|
38
|
-
if (typeof optionsOrCb !== "object")
|
|
39
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
40
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
deleteSchedule(args, optionsOrCb, cb) {
|
|
47
|
-
const command = new DeleteScheduleCommand_1.DeleteScheduleCommand(args);
|
|
48
|
-
if (typeof optionsOrCb === "function") {
|
|
49
|
-
this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
else if (typeof cb === "function") {
|
|
52
|
-
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
deleteScheduleGroup(args, optionsOrCb, cb) {
|
|
61
|
-
const command = new DeleteScheduleGroupCommand_1.DeleteScheduleGroupCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
else if (typeof cb === "function") {
|
|
66
|
-
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
68
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
getSchedule(args, optionsOrCb, cb) {
|
|
75
|
-
const command = new GetScheduleCommand_1.GetScheduleCommand(args);
|
|
76
|
-
if (typeof optionsOrCb === "function") {
|
|
77
|
-
this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof cb === "function") {
|
|
80
|
-
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
getScheduleGroup(args, optionsOrCb, cb) {
|
|
89
|
-
const command = new GetScheduleGroupCommand_1.GetScheduleGroupCommand(args);
|
|
90
|
-
if (typeof optionsOrCb === "function") {
|
|
91
|
-
this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
else if (typeof cb === "function") {
|
|
94
|
-
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
listScheduleGroups(args, optionsOrCb, cb) {
|
|
103
|
-
const command = new ListScheduleGroupsCommand_1.ListScheduleGroupsCommand(args);
|
|
104
|
-
if (typeof optionsOrCb === "function") {
|
|
105
|
-
this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
110
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
listSchedules(args, optionsOrCb, cb) {
|
|
117
|
-
const command = new ListSchedulesCommand_1.ListSchedulesCommand(args);
|
|
118
|
-
if (typeof optionsOrCb === "function") {
|
|
119
|
-
this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
else if (typeof cb === "function") {
|
|
122
|
-
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
124
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
131
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
132
|
-
if (typeof optionsOrCb === "function") {
|
|
133
|
-
this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof cb === "function") {
|
|
136
|
-
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
tagResource(args, optionsOrCb, cb) {
|
|
145
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
146
|
-
if (typeof optionsOrCb === "function") {
|
|
147
|
-
this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
else if (typeof cb === "function") {
|
|
150
|
-
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
152
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
untagResource(args, optionsOrCb, cb) {
|
|
159
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
160
|
-
if (typeof optionsOrCb === "function") {
|
|
161
|
-
this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
else if (typeof cb === "function") {
|
|
164
|
-
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
updateSchedule(args, optionsOrCb, cb) {
|
|
173
|
-
const command = new UpdateScheduleCommand_1.UpdateScheduleCommand(args);
|
|
174
|
-
if (typeof optionsOrCb === "function") {
|
|
175
|
-
this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
else if (typeof cb === "function") {
|
|
178
|
-
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
33
|
}
|
|
187
34
|
exports.Scheduler = Scheduler;
|
|
35
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Scheduler);
|
|
@@ -15,7 +15,7 @@ const se_CreateScheduleCommand = async (input, context) => {
|
|
|
15
15
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
18
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
19
|
Description: [],
|
|
20
20
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
21
21
|
FlexibleTimeWindow: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -47,7 +47,7 @@ const se_CreateScheduleGroupCommand = async (input, context) => {
|
|
|
47
47
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
48
48
|
let body;
|
|
49
49
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
50
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
51
51
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
52
52
|
}));
|
|
53
53
|
return new protocol_http_1.HttpRequest({
|
|
@@ -260,7 +260,7 @@ const se_UpdateScheduleCommand = async (input, context) => {
|
|
|
260
260
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
261
261
|
let body;
|
|
262
262
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
263
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
263
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
264
264
|
Description: [],
|
|
265
265
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
266
266
|
FlexibleTimeWindow: (_) => (0, smithy_client_1._json)(_),
|
package/dist-es/Scheduler.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateScheduleCommand, } from "./commands/CreateScheduleCommand";
|
|
2
3
|
import { CreateScheduleGroupCommand, } from "./commands/CreateScheduleGroupCommand";
|
|
3
4
|
import { DeleteScheduleCommand, } from "./commands/DeleteScheduleCommand";
|
|
@@ -11,173 +12,20 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
11
12
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
12
13
|
import { UpdateScheduleCommand, } from "./commands/UpdateScheduleCommand";
|
|
13
14
|
import { SchedulerClient } from "./SchedulerClient";
|
|
15
|
+
const commands = {
|
|
16
|
+
CreateScheduleCommand,
|
|
17
|
+
CreateScheduleGroupCommand,
|
|
18
|
+
DeleteScheduleCommand,
|
|
19
|
+
DeleteScheduleGroupCommand,
|
|
20
|
+
GetScheduleCommand,
|
|
21
|
+
GetScheduleGroupCommand,
|
|
22
|
+
ListScheduleGroupsCommand,
|
|
23
|
+
ListSchedulesCommand,
|
|
24
|
+
ListTagsForResourceCommand,
|
|
25
|
+
TagResourceCommand,
|
|
26
|
+
UntagResourceCommand,
|
|
27
|
+
UpdateScheduleCommand,
|
|
28
|
+
};
|
|
14
29
|
export class Scheduler extends SchedulerClient {
|
|
15
|
-
createSchedule(args, optionsOrCb, cb) {
|
|
16
|
-
const command = new CreateScheduleCommand(args);
|
|
17
|
-
if (typeof optionsOrCb === "function") {
|
|
18
|
-
this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
else if (typeof cb === "function") {
|
|
21
|
-
if (typeof optionsOrCb !== "object")
|
|
22
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
23
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
createScheduleGroup(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new CreateScheduleGroupCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
deleteSchedule(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new DeleteScheduleCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
deleteScheduleGroup(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new DeleteScheduleGroupCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
getSchedule(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new GetScheduleCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
getScheduleGroup(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new GetScheduleGroupCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
listScheduleGroups(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new ListScheduleGroupsCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
listSchedules(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new ListSchedulesCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new ListTagsForResourceCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
tagResource(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new TagResourceCommand(args);
|
|
143
|
-
if (typeof optionsOrCb === "function") {
|
|
144
|
-
this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
untagResource(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new UntagResourceCommand(args);
|
|
157
|
-
if (typeof optionsOrCb === "function") {
|
|
158
|
-
this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
else if (typeof cb === "function") {
|
|
161
|
-
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
updateSchedule(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new UpdateScheduleCommand(args);
|
|
171
|
-
if (typeof optionsOrCb === "function") {
|
|
172
|
-
this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
else if (typeof cb === "function") {
|
|
175
|
-
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
return this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
30
|
}
|
|
31
|
+
createAggregatedClient(commands, Scheduler);
|
|
@@ -12,7 +12,7 @@ export const se_CreateScheduleCommand = async (input, context) => {
|
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
13
13
|
let body;
|
|
14
14
|
body = JSON.stringify(take(input, {
|
|
15
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
15
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
16
|
Description: [],
|
|
17
17
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
18
18
|
FlexibleTimeWindow: (_) => _json(_),
|
|
@@ -43,7 +43,7 @@ export const se_CreateScheduleGroupCommand = async (input, context) => {
|
|
|
43
43
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
44
44
|
let body;
|
|
45
45
|
body = JSON.stringify(take(input, {
|
|
46
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
46
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
47
47
|
Tags: (_) => _json(_),
|
|
48
48
|
}));
|
|
49
49
|
return new __HttpRequest({
|
|
@@ -246,7 +246,7 @@ export const se_UpdateScheduleCommand = async (input, context) => {
|
|
|
246
246
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
247
247
|
let body;
|
|
248
248
|
body = JSON.stringify(take(input, {
|
|
249
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
249
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
250
250
|
Description: [],
|
|
251
251
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
252
252
|
FlexibleTimeWindow: (_) => _json(_),
|
|
@@ -12,113 +12,87 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
12
12
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
13
13
|
import { UpdateScheduleCommandInput, UpdateScheduleCommandOutput } from "./commands/UpdateScheduleCommand";
|
|
14
14
|
import { SchedulerClient } from "./SchedulerClient";
|
|
15
|
-
|
|
16
|
-
* @public
|
|
17
|
-
* <p>
|
|
18
|
-
* Amazon EventBridge Scheduler is a serverless scheduler that allows you to create, run, and manage tasks from one central, managed service.
|
|
19
|
-
* EventBridge Scheduler delivers your tasks reliably, with built-in mechanisms that adjust your schedules based on the availability of downstream targets.
|
|
20
|
-
* The following reference lists the available API actions, and data types for EventBridge Scheduler.
|
|
21
|
-
* </p>
|
|
22
|
-
*/
|
|
23
|
-
export declare class Scheduler extends SchedulerClient {
|
|
15
|
+
export interface Scheduler {
|
|
24
16
|
/**
|
|
25
|
-
* @
|
|
26
|
-
* <p>Creates the specified schedule.</p>
|
|
17
|
+
* @see {@link CreateScheduleCommand}
|
|
27
18
|
*/
|
|
28
19
|
createSchedule(args: CreateScheduleCommandInput, options?: __HttpHandlerOptions): Promise<CreateScheduleCommandOutput>;
|
|
29
20
|
createSchedule(args: CreateScheduleCommandInput, cb: (err: any, data?: CreateScheduleCommandOutput) => void): void;
|
|
30
21
|
createSchedule(args: CreateScheduleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateScheduleCommandOutput) => void): void;
|
|
31
22
|
/**
|
|
32
|
-
* @
|
|
33
|
-
* <p>Creates the specified schedule group.</p>
|
|
23
|
+
* @see {@link CreateScheduleGroupCommand}
|
|
34
24
|
*/
|
|
35
25
|
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateScheduleGroupCommandOutput>;
|
|
36
26
|
createScheduleGroup(args: CreateScheduleGroupCommandInput, cb: (err: any, data?: CreateScheduleGroupCommandOutput) => void): void;
|
|
37
27
|
createScheduleGroup(args: CreateScheduleGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateScheduleGroupCommandOutput) => void): void;
|
|
38
28
|
/**
|
|
39
|
-
* @
|
|
40
|
-
* <p>Deletes the specified schedule.</p>
|
|
29
|
+
* @see {@link DeleteScheduleCommand}
|
|
41
30
|
*/
|
|
42
31
|
deleteSchedule(args: DeleteScheduleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteScheduleCommandOutput>;
|
|
43
32
|
deleteSchedule(args: DeleteScheduleCommandInput, cb: (err: any, data?: DeleteScheduleCommandOutput) => void): void;
|
|
44
33
|
deleteSchedule(args: DeleteScheduleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteScheduleCommandOutput) => void): void;
|
|
45
34
|
/**
|
|
46
|
-
* @
|
|
47
|
-
* <p>Deletes the specified schedule group. Deleting a schedule group results in EventBridge Scheduler deleting all schedules associated with the group.
|
|
48
|
-
* When you delete a group, it remains in a <code>DELETING</code> state until all of its associated schedules are deleted.
|
|
49
|
-
* Schedules associated with the group that are set to run while the schedule group is in the process of being deleted might continue to invoke their targets
|
|
50
|
-
* until the schedule group and its associated schedules are deleted.</p>
|
|
51
|
-
* <note>
|
|
52
|
-
* <p>
|
|
53
|
-
* This operation is eventually consistent.
|
|
54
|
-
* </p>
|
|
55
|
-
* </note>
|
|
35
|
+
* @see {@link DeleteScheduleGroupCommand}
|
|
56
36
|
*/
|
|
57
37
|
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteScheduleGroupCommandOutput>;
|
|
58
38
|
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, cb: (err: any, data?: DeleteScheduleGroupCommandOutput) => void): void;
|
|
59
39
|
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteScheduleGroupCommandOutput) => void): void;
|
|
60
40
|
/**
|
|
61
|
-
* @
|
|
62
|
-
* <p>Retrieves the specified schedule.</p>
|
|
41
|
+
* @see {@link GetScheduleCommand}
|
|
63
42
|
*/
|
|
64
43
|
getSchedule(args: GetScheduleCommandInput, options?: __HttpHandlerOptions): Promise<GetScheduleCommandOutput>;
|
|
65
44
|
getSchedule(args: GetScheduleCommandInput, cb: (err: any, data?: GetScheduleCommandOutput) => void): void;
|
|
66
45
|
getSchedule(args: GetScheduleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetScheduleCommandOutput) => void): void;
|
|
67
46
|
/**
|
|
68
|
-
* @
|
|
69
|
-
* <p>Retrieves the specified schedule group.</p>
|
|
47
|
+
* @see {@link GetScheduleGroupCommand}
|
|
70
48
|
*/
|
|
71
49
|
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: __HttpHandlerOptions): Promise<GetScheduleGroupCommandOutput>;
|
|
72
50
|
getScheduleGroup(args: GetScheduleGroupCommandInput, cb: (err: any, data?: GetScheduleGroupCommandOutput) => void): void;
|
|
73
51
|
getScheduleGroup(args: GetScheduleGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetScheduleGroupCommandOutput) => void): void;
|
|
74
52
|
/**
|
|
75
|
-
* @
|
|
76
|
-
* <p>Returns a paginated list of your schedule groups.</p>
|
|
53
|
+
* @see {@link ListScheduleGroupsCommand}
|
|
77
54
|
*/
|
|
78
55
|
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListScheduleGroupsCommandOutput>;
|
|
79
56
|
listScheduleGroups(args: ListScheduleGroupsCommandInput, cb: (err: any, data?: ListScheduleGroupsCommandOutput) => void): void;
|
|
80
57
|
listScheduleGroups(args: ListScheduleGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListScheduleGroupsCommandOutput) => void): void;
|
|
81
58
|
/**
|
|
82
|
-
* @
|
|
83
|
-
* <p>Returns a paginated list of your EventBridge Scheduler schedules.</p>
|
|
59
|
+
* @see {@link ListSchedulesCommand}
|
|
84
60
|
*/
|
|
85
61
|
listSchedules(args: ListSchedulesCommandInput, options?: __HttpHandlerOptions): Promise<ListSchedulesCommandOutput>;
|
|
86
62
|
listSchedules(args: ListSchedulesCommandInput, cb: (err: any, data?: ListSchedulesCommandOutput) => void): void;
|
|
87
63
|
listSchedules(args: ListSchedulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchedulesCommandOutput) => void): void;
|
|
88
64
|
/**
|
|
89
|
-
* @
|
|
90
|
-
* <p>Lists the tags associated with the Scheduler resource.</p>
|
|
65
|
+
* @see {@link ListTagsForResourceCommand}
|
|
91
66
|
*/
|
|
92
67
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
93
68
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
94
69
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
95
70
|
/**
|
|
96
|
-
* @
|
|
97
|
-
* <p>Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource. You can only assign tags to schedule groups.</p>
|
|
71
|
+
* @see {@link TagResourceCommand}
|
|
98
72
|
*/
|
|
99
73
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
100
74
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
101
75
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
102
76
|
/**
|
|
103
|
-
* @
|
|
104
|
-
* <p>Removes one or more tags from the specified EventBridge Scheduler schedule group.</p>
|
|
77
|
+
* @see {@link UntagResourceCommand}
|
|
105
78
|
*/
|
|
106
79
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
107
80
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
108
81
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
109
82
|
/**
|
|
110
|
-
* @
|
|
111
|
-
* <p>
|
|
112
|
-
* Updates the specified schedule. When you call <code>UpdateSchedule</code>, EventBridge Scheduler uses all values, including empty values, specified in the request and
|
|
113
|
-
* overrides the existing schedule. This is by design. This means that if you do not set an optional field in your request, that field will be set to
|
|
114
|
-
* its system-default value after the update.
|
|
115
|
-
* </p>
|
|
116
|
-
* <p>
|
|
117
|
-
* Before calling this operation, we recommend that you call the <code>GetSchedule</code> API operation and make a note of all optional parameters
|
|
118
|
-
* for your <code>UpdateSchedule</code> call.
|
|
119
|
-
* </p>
|
|
83
|
+
* @see {@link UpdateScheduleCommand}
|
|
120
84
|
*/
|
|
121
85
|
updateSchedule(args: UpdateScheduleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateScheduleCommandOutput>;
|
|
122
86
|
updateSchedule(args: UpdateScheduleCommandInput, cb: (err: any, data?: UpdateScheduleCommandOutput) => void): void;
|
|
123
87
|
updateSchedule(args: UpdateScheduleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateScheduleCommandOutput) => void): void;
|
|
124
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
* <p>
|
|
92
|
+
* Amazon EventBridge Scheduler is a serverless scheduler that allows you to create, run, and manage tasks from one central, managed service.
|
|
93
|
+
* EventBridge Scheduler delivers your tasks reliably, with built-in mechanisms that adjust your schedules based on the availability of downstream targets.
|
|
94
|
+
* The following reference lists the available API actions, and data types for EventBridge Scheduler.
|
|
95
|
+
* </p>
|
|
96
|
+
*/
|
|
97
|
+
export declare class Scheduler extends SchedulerClient implements Scheduler {
|
|
98
|
+
}
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
UpdateScheduleCommandOutput,
|
|
49
49
|
} from "./commands/UpdateScheduleCommand";
|
|
50
50
|
import { SchedulerClient } from "./SchedulerClient";
|
|
51
|
-
export
|
|
51
|
+
export interface Scheduler {
|
|
52
52
|
createSchedule(
|
|
53
53
|
args: CreateScheduleCommandInput,
|
|
54
54
|
options?: __HttpHandlerOptions
|
|
@@ -206,3 +206,4 @@ export declare class Scheduler extends SchedulerClient {
|
|
|
206
206
|
cb: (err: any, data?: UpdateScheduleCommandOutput) => void
|
|
207
207
|
): void;
|
|
208
208
|
}
|
|
209
|
+
export declare class Scheduler extends SchedulerClient implements Scheduler {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-scheduler",
|
|
3
3
|
"description": "AWS SDK for JavaScript Scheduler Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|