@aws-sdk/client-cloudwatch-events 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/CloudWatchEvents.js +213 -206
- package/dist-es/CloudWatchEventsClient.js +28 -22
- package/dist-es/commands/ActivateEventSourceCommand.js +29 -22
- package/dist-es/commands/CancelReplayCommand.js +28 -21
- package/dist-es/commands/CreateApiDestinationCommand.js +28 -21
- package/dist-es/commands/CreateArchiveCommand.js +28 -21
- package/dist-es/commands/CreateConnectionCommand.js +28 -21
- package/dist-es/commands/CreateEventBusCommand.js +28 -21
- package/dist-es/commands/CreatePartnerEventSourceCommand.js +28 -21
- package/dist-es/commands/DeactivateEventSourceCommand.js +29 -22
- package/dist-es/commands/DeauthorizeConnectionCommand.js +28 -21
- package/dist-es/commands/DeleteApiDestinationCommand.js +28 -21
- package/dist-es/commands/DeleteArchiveCommand.js +28 -21
- package/dist-es/commands/DeleteConnectionCommand.js +28 -21
- package/dist-es/commands/DeleteEventBusCommand.js +29 -22
- package/dist-es/commands/DeletePartnerEventSourceCommand.js +29 -22
- package/dist-es/commands/DeleteRuleCommand.js +29 -22
- package/dist-es/commands/DescribeApiDestinationCommand.js +28 -21
- package/dist-es/commands/DescribeArchiveCommand.js +28 -21
- package/dist-es/commands/DescribeConnectionCommand.js +28 -21
- package/dist-es/commands/DescribeEventBusCommand.js +28 -21
- package/dist-es/commands/DescribeEventSourceCommand.js +28 -21
- package/dist-es/commands/DescribePartnerEventSourceCommand.js +28 -21
- package/dist-es/commands/DescribeReplayCommand.js +28 -21
- package/dist-es/commands/DescribeRuleCommand.js +28 -21
- package/dist-es/commands/DisableRuleCommand.js +29 -22
- package/dist-es/commands/EnableRuleCommand.js +29 -22
- package/dist-es/commands/ListApiDestinationsCommand.js +28 -21
- package/dist-es/commands/ListArchivesCommand.js +28 -21
- package/dist-es/commands/ListConnectionsCommand.js +28 -21
- package/dist-es/commands/ListEventBusesCommand.js +28 -21
- package/dist-es/commands/ListEventSourcesCommand.js +28 -21
- package/dist-es/commands/ListPartnerEventSourceAccountsCommand.js +28 -21
- package/dist-es/commands/ListPartnerEventSourcesCommand.js +28 -21
- package/dist-es/commands/ListReplaysCommand.js +28 -21
- package/dist-es/commands/ListRuleNamesByTargetCommand.js +28 -21
- package/dist-es/commands/ListRulesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTargetsByRuleCommand.js +28 -21
- package/dist-es/commands/PutEventsCommand.js +28 -21
- package/dist-es/commands/PutPartnerEventsCommand.js +28 -21
- package/dist-es/commands/PutPermissionCommand.js +29 -22
- package/dist-es/commands/PutRuleCommand.js +28 -21
- package/dist-es/commands/PutTargetsCommand.js +28 -21
- package/dist-es/commands/RemovePermissionCommand.js +29 -22
- package/dist-es/commands/RemoveTargetsCommand.js +28 -21
- package/dist-es/commands/StartReplayCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/TestEventPatternCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateApiDestinationCommand.js +28 -21
- package/dist-es/commands/UpdateArchiveCommand.js +28 -21
- package/dist-es/commands/UpdateConnectionCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudWatchEventsServiceException.js +10 -5
- package/dist-es/models/models_0.js +273 -574
- package/dist-es/protocols/Aws_json1_1.js +4347 -3530
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CloudWatchEventsClient } from "./CloudWatchEventsClient";
|
|
2
3
|
import { ActivateEventSourceCommand, } from "./commands/ActivateEventSourceCommand";
|
|
3
4
|
import { CancelReplayCommand, } from "./commands/CancelReplayCommand";
|
|
@@ -50,719 +51,725 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
50
51
|
import { UpdateApiDestinationCommand, } from "./commands/UpdateApiDestinationCommand";
|
|
51
52
|
import { UpdateArchiveCommand, } from "./commands/UpdateArchiveCommand";
|
|
52
53
|
import { UpdateConnectionCommand, } from "./commands/UpdateConnectionCommand";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
var CloudWatchEvents = (function (_super) {
|
|
55
|
+
__extends(CloudWatchEvents, _super);
|
|
56
|
+
function CloudWatchEvents() {
|
|
57
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
58
|
+
}
|
|
59
|
+
CloudWatchEvents.prototype.activateEventSource = function (args, optionsOrCb, cb) {
|
|
60
|
+
var command = new ActivateEventSourceCommand(args);
|
|
56
61
|
if (typeof optionsOrCb === "function") {
|
|
57
62
|
this.send(command, optionsOrCb);
|
|
58
63
|
}
|
|
59
64
|
else if (typeof cb === "function") {
|
|
60
65
|
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(
|
|
66
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
62
67
|
this.send(command, optionsOrCb || {}, cb);
|
|
63
68
|
}
|
|
64
69
|
else {
|
|
65
70
|
return this.send(command, optionsOrCb);
|
|
66
71
|
}
|
|
67
|
-
}
|
|
68
|
-
cancelReplay(args, optionsOrCb, cb) {
|
|
69
|
-
|
|
72
|
+
};
|
|
73
|
+
CloudWatchEvents.prototype.cancelReplay = function (args, optionsOrCb, cb) {
|
|
74
|
+
var command = new CancelReplayCommand(args);
|
|
70
75
|
if (typeof optionsOrCb === "function") {
|
|
71
76
|
this.send(command, optionsOrCb);
|
|
72
77
|
}
|
|
73
78
|
else if (typeof cb === "function") {
|
|
74
79
|
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(
|
|
80
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
76
81
|
this.send(command, optionsOrCb || {}, cb);
|
|
77
82
|
}
|
|
78
83
|
else {
|
|
79
84
|
return this.send(command, optionsOrCb);
|
|
80
85
|
}
|
|
81
|
-
}
|
|
82
|
-
createApiDestination(args, optionsOrCb, cb) {
|
|
83
|
-
|
|
86
|
+
};
|
|
87
|
+
CloudWatchEvents.prototype.createApiDestination = function (args, optionsOrCb, cb) {
|
|
88
|
+
var command = new CreateApiDestinationCommand(args);
|
|
84
89
|
if (typeof optionsOrCb === "function") {
|
|
85
90
|
this.send(command, optionsOrCb);
|
|
86
91
|
}
|
|
87
92
|
else if (typeof cb === "function") {
|
|
88
93
|
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(
|
|
94
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
90
95
|
this.send(command, optionsOrCb || {}, cb);
|
|
91
96
|
}
|
|
92
97
|
else {
|
|
93
98
|
return this.send(command, optionsOrCb);
|
|
94
99
|
}
|
|
95
|
-
}
|
|
96
|
-
createArchive(args, optionsOrCb, cb) {
|
|
97
|
-
|
|
100
|
+
};
|
|
101
|
+
CloudWatchEvents.prototype.createArchive = function (args, optionsOrCb, cb) {
|
|
102
|
+
var command = new CreateArchiveCommand(args);
|
|
98
103
|
if (typeof optionsOrCb === "function") {
|
|
99
104
|
this.send(command, optionsOrCb);
|
|
100
105
|
}
|
|
101
106
|
else if (typeof cb === "function") {
|
|
102
107
|
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(
|
|
108
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
104
109
|
this.send(command, optionsOrCb || {}, cb);
|
|
105
110
|
}
|
|
106
111
|
else {
|
|
107
112
|
return this.send(command, optionsOrCb);
|
|
108
113
|
}
|
|
109
|
-
}
|
|
110
|
-
createConnection(args, optionsOrCb, cb) {
|
|
111
|
-
|
|
114
|
+
};
|
|
115
|
+
CloudWatchEvents.prototype.createConnection = function (args, optionsOrCb, cb) {
|
|
116
|
+
var command = new CreateConnectionCommand(args);
|
|
112
117
|
if (typeof optionsOrCb === "function") {
|
|
113
118
|
this.send(command, optionsOrCb);
|
|
114
119
|
}
|
|
115
120
|
else if (typeof cb === "function") {
|
|
116
121
|
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(
|
|
122
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
118
123
|
this.send(command, optionsOrCb || {}, cb);
|
|
119
124
|
}
|
|
120
125
|
else {
|
|
121
126
|
return this.send(command, optionsOrCb);
|
|
122
127
|
}
|
|
123
|
-
}
|
|
124
|
-
createEventBus(args, optionsOrCb, cb) {
|
|
125
|
-
|
|
128
|
+
};
|
|
129
|
+
CloudWatchEvents.prototype.createEventBus = function (args, optionsOrCb, cb) {
|
|
130
|
+
var command = new CreateEventBusCommand(args);
|
|
126
131
|
if (typeof optionsOrCb === "function") {
|
|
127
132
|
this.send(command, optionsOrCb);
|
|
128
133
|
}
|
|
129
134
|
else if (typeof cb === "function") {
|
|
130
135
|
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(
|
|
136
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
132
137
|
this.send(command, optionsOrCb || {}, cb);
|
|
133
138
|
}
|
|
134
139
|
else {
|
|
135
140
|
return this.send(command, optionsOrCb);
|
|
136
141
|
}
|
|
137
|
-
}
|
|
138
|
-
createPartnerEventSource(args, optionsOrCb, cb) {
|
|
139
|
-
|
|
142
|
+
};
|
|
143
|
+
CloudWatchEvents.prototype.createPartnerEventSource = function (args, optionsOrCb, cb) {
|
|
144
|
+
var command = new CreatePartnerEventSourceCommand(args);
|
|
140
145
|
if (typeof optionsOrCb === "function") {
|
|
141
146
|
this.send(command, optionsOrCb);
|
|
142
147
|
}
|
|
143
148
|
else if (typeof cb === "function") {
|
|
144
149
|
if (typeof optionsOrCb !== "object")
|
|
145
|
-
throw new Error(
|
|
150
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
146
151
|
this.send(command, optionsOrCb || {}, cb);
|
|
147
152
|
}
|
|
148
153
|
else {
|
|
149
154
|
return this.send(command, optionsOrCb);
|
|
150
155
|
}
|
|
151
|
-
}
|
|
152
|
-
deactivateEventSource(args, optionsOrCb, cb) {
|
|
153
|
-
|
|
156
|
+
};
|
|
157
|
+
CloudWatchEvents.prototype.deactivateEventSource = function (args, optionsOrCb, cb) {
|
|
158
|
+
var command = new DeactivateEventSourceCommand(args);
|
|
154
159
|
if (typeof optionsOrCb === "function") {
|
|
155
160
|
this.send(command, optionsOrCb);
|
|
156
161
|
}
|
|
157
162
|
else if (typeof cb === "function") {
|
|
158
163
|
if (typeof optionsOrCb !== "object")
|
|
159
|
-
throw new Error(
|
|
164
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
160
165
|
this.send(command, optionsOrCb || {}, cb);
|
|
161
166
|
}
|
|
162
167
|
else {
|
|
163
168
|
return this.send(command, optionsOrCb);
|
|
164
169
|
}
|
|
165
|
-
}
|
|
166
|
-
deauthorizeConnection(args, optionsOrCb, cb) {
|
|
167
|
-
|
|
170
|
+
};
|
|
171
|
+
CloudWatchEvents.prototype.deauthorizeConnection = function (args, optionsOrCb, cb) {
|
|
172
|
+
var command = new DeauthorizeConnectionCommand(args);
|
|
168
173
|
if (typeof optionsOrCb === "function") {
|
|
169
174
|
this.send(command, optionsOrCb);
|
|
170
175
|
}
|
|
171
176
|
else if (typeof cb === "function") {
|
|
172
177
|
if (typeof optionsOrCb !== "object")
|
|
173
|
-
throw new Error(
|
|
178
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
174
179
|
this.send(command, optionsOrCb || {}, cb);
|
|
175
180
|
}
|
|
176
181
|
else {
|
|
177
182
|
return this.send(command, optionsOrCb);
|
|
178
183
|
}
|
|
179
|
-
}
|
|
180
|
-
deleteApiDestination(args, optionsOrCb, cb) {
|
|
181
|
-
|
|
184
|
+
};
|
|
185
|
+
CloudWatchEvents.prototype.deleteApiDestination = function (args, optionsOrCb, cb) {
|
|
186
|
+
var command = new DeleteApiDestinationCommand(args);
|
|
182
187
|
if (typeof optionsOrCb === "function") {
|
|
183
188
|
this.send(command, optionsOrCb);
|
|
184
189
|
}
|
|
185
190
|
else if (typeof cb === "function") {
|
|
186
191
|
if (typeof optionsOrCb !== "object")
|
|
187
|
-
throw new Error(
|
|
192
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
188
193
|
this.send(command, optionsOrCb || {}, cb);
|
|
189
194
|
}
|
|
190
195
|
else {
|
|
191
196
|
return this.send(command, optionsOrCb);
|
|
192
197
|
}
|
|
193
|
-
}
|
|
194
|
-
deleteArchive(args, optionsOrCb, cb) {
|
|
195
|
-
|
|
198
|
+
};
|
|
199
|
+
CloudWatchEvents.prototype.deleteArchive = function (args, optionsOrCb, cb) {
|
|
200
|
+
var command = new DeleteArchiveCommand(args);
|
|
196
201
|
if (typeof optionsOrCb === "function") {
|
|
197
202
|
this.send(command, optionsOrCb);
|
|
198
203
|
}
|
|
199
204
|
else if (typeof cb === "function") {
|
|
200
205
|
if (typeof optionsOrCb !== "object")
|
|
201
|
-
throw new Error(
|
|
206
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
202
207
|
this.send(command, optionsOrCb || {}, cb);
|
|
203
208
|
}
|
|
204
209
|
else {
|
|
205
210
|
return this.send(command, optionsOrCb);
|
|
206
211
|
}
|
|
207
|
-
}
|
|
208
|
-
deleteConnection(args, optionsOrCb, cb) {
|
|
209
|
-
|
|
212
|
+
};
|
|
213
|
+
CloudWatchEvents.prototype.deleteConnection = function (args, optionsOrCb, cb) {
|
|
214
|
+
var command = new DeleteConnectionCommand(args);
|
|
210
215
|
if (typeof optionsOrCb === "function") {
|
|
211
216
|
this.send(command, optionsOrCb);
|
|
212
217
|
}
|
|
213
218
|
else if (typeof cb === "function") {
|
|
214
219
|
if (typeof optionsOrCb !== "object")
|
|
215
|
-
throw new Error(
|
|
220
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
216
221
|
this.send(command, optionsOrCb || {}, cb);
|
|
217
222
|
}
|
|
218
223
|
else {
|
|
219
224
|
return this.send(command, optionsOrCb);
|
|
220
225
|
}
|
|
221
|
-
}
|
|
222
|
-
deleteEventBus(args, optionsOrCb, cb) {
|
|
223
|
-
|
|
226
|
+
};
|
|
227
|
+
CloudWatchEvents.prototype.deleteEventBus = function (args, optionsOrCb, cb) {
|
|
228
|
+
var command = new DeleteEventBusCommand(args);
|
|
224
229
|
if (typeof optionsOrCb === "function") {
|
|
225
230
|
this.send(command, optionsOrCb);
|
|
226
231
|
}
|
|
227
232
|
else if (typeof cb === "function") {
|
|
228
233
|
if (typeof optionsOrCb !== "object")
|
|
229
|
-
throw new Error(
|
|
234
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
230
235
|
this.send(command, optionsOrCb || {}, cb);
|
|
231
236
|
}
|
|
232
237
|
else {
|
|
233
238
|
return this.send(command, optionsOrCb);
|
|
234
239
|
}
|
|
235
|
-
}
|
|
236
|
-
deletePartnerEventSource(args, optionsOrCb, cb) {
|
|
237
|
-
|
|
240
|
+
};
|
|
241
|
+
CloudWatchEvents.prototype.deletePartnerEventSource = function (args, optionsOrCb, cb) {
|
|
242
|
+
var command = new DeletePartnerEventSourceCommand(args);
|
|
238
243
|
if (typeof optionsOrCb === "function") {
|
|
239
244
|
this.send(command, optionsOrCb);
|
|
240
245
|
}
|
|
241
246
|
else if (typeof cb === "function") {
|
|
242
247
|
if (typeof optionsOrCb !== "object")
|
|
243
|
-
throw new Error(
|
|
248
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
244
249
|
this.send(command, optionsOrCb || {}, cb);
|
|
245
250
|
}
|
|
246
251
|
else {
|
|
247
252
|
return this.send(command, optionsOrCb);
|
|
248
253
|
}
|
|
249
|
-
}
|
|
250
|
-
deleteRule(args, optionsOrCb, cb) {
|
|
251
|
-
|
|
254
|
+
};
|
|
255
|
+
CloudWatchEvents.prototype.deleteRule = function (args, optionsOrCb, cb) {
|
|
256
|
+
var command = new DeleteRuleCommand(args);
|
|
252
257
|
if (typeof optionsOrCb === "function") {
|
|
253
258
|
this.send(command, optionsOrCb);
|
|
254
259
|
}
|
|
255
260
|
else if (typeof cb === "function") {
|
|
256
261
|
if (typeof optionsOrCb !== "object")
|
|
257
|
-
throw new Error(
|
|
262
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
258
263
|
this.send(command, optionsOrCb || {}, cb);
|
|
259
264
|
}
|
|
260
265
|
else {
|
|
261
266
|
return this.send(command, optionsOrCb);
|
|
262
267
|
}
|
|
263
|
-
}
|
|
264
|
-
describeApiDestination(args, optionsOrCb, cb) {
|
|
265
|
-
|
|
268
|
+
};
|
|
269
|
+
CloudWatchEvents.prototype.describeApiDestination = function (args, optionsOrCb, cb) {
|
|
270
|
+
var command = new DescribeApiDestinationCommand(args);
|
|
266
271
|
if (typeof optionsOrCb === "function") {
|
|
267
272
|
this.send(command, optionsOrCb);
|
|
268
273
|
}
|
|
269
274
|
else if (typeof cb === "function") {
|
|
270
275
|
if (typeof optionsOrCb !== "object")
|
|
271
|
-
throw new Error(
|
|
276
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
272
277
|
this.send(command, optionsOrCb || {}, cb);
|
|
273
278
|
}
|
|
274
279
|
else {
|
|
275
280
|
return this.send(command, optionsOrCb);
|
|
276
281
|
}
|
|
277
|
-
}
|
|
278
|
-
describeArchive(args, optionsOrCb, cb) {
|
|
279
|
-
|
|
282
|
+
};
|
|
283
|
+
CloudWatchEvents.prototype.describeArchive = function (args, optionsOrCb, cb) {
|
|
284
|
+
var command = new DescribeArchiveCommand(args);
|
|
280
285
|
if (typeof optionsOrCb === "function") {
|
|
281
286
|
this.send(command, optionsOrCb);
|
|
282
287
|
}
|
|
283
288
|
else if (typeof cb === "function") {
|
|
284
289
|
if (typeof optionsOrCb !== "object")
|
|
285
|
-
throw new Error(
|
|
290
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
286
291
|
this.send(command, optionsOrCb || {}, cb);
|
|
287
292
|
}
|
|
288
293
|
else {
|
|
289
294
|
return this.send(command, optionsOrCb);
|
|
290
295
|
}
|
|
291
|
-
}
|
|
292
|
-
describeConnection(args, optionsOrCb, cb) {
|
|
293
|
-
|
|
296
|
+
};
|
|
297
|
+
CloudWatchEvents.prototype.describeConnection = function (args, optionsOrCb, cb) {
|
|
298
|
+
var command = new DescribeConnectionCommand(args);
|
|
294
299
|
if (typeof optionsOrCb === "function") {
|
|
295
300
|
this.send(command, optionsOrCb);
|
|
296
301
|
}
|
|
297
302
|
else if (typeof cb === "function") {
|
|
298
303
|
if (typeof optionsOrCb !== "object")
|
|
299
|
-
throw new Error(
|
|
304
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
300
305
|
this.send(command, optionsOrCb || {}, cb);
|
|
301
306
|
}
|
|
302
307
|
else {
|
|
303
308
|
return this.send(command, optionsOrCb);
|
|
304
309
|
}
|
|
305
|
-
}
|
|
306
|
-
describeEventBus(args, optionsOrCb, cb) {
|
|
307
|
-
|
|
310
|
+
};
|
|
311
|
+
CloudWatchEvents.prototype.describeEventBus = function (args, optionsOrCb, cb) {
|
|
312
|
+
var command = new DescribeEventBusCommand(args);
|
|
308
313
|
if (typeof optionsOrCb === "function") {
|
|
309
314
|
this.send(command, optionsOrCb);
|
|
310
315
|
}
|
|
311
316
|
else if (typeof cb === "function") {
|
|
312
317
|
if (typeof optionsOrCb !== "object")
|
|
313
|
-
throw new Error(
|
|
318
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
314
319
|
this.send(command, optionsOrCb || {}, cb);
|
|
315
320
|
}
|
|
316
321
|
else {
|
|
317
322
|
return this.send(command, optionsOrCb);
|
|
318
323
|
}
|
|
319
|
-
}
|
|
320
|
-
describeEventSource(args, optionsOrCb, cb) {
|
|
321
|
-
|
|
324
|
+
};
|
|
325
|
+
CloudWatchEvents.prototype.describeEventSource = function (args, optionsOrCb, cb) {
|
|
326
|
+
var command = new DescribeEventSourceCommand(args);
|
|
322
327
|
if (typeof optionsOrCb === "function") {
|
|
323
328
|
this.send(command, optionsOrCb);
|
|
324
329
|
}
|
|
325
330
|
else if (typeof cb === "function") {
|
|
326
331
|
if (typeof optionsOrCb !== "object")
|
|
327
|
-
throw new Error(
|
|
332
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
328
333
|
this.send(command, optionsOrCb || {}, cb);
|
|
329
334
|
}
|
|
330
335
|
else {
|
|
331
336
|
return this.send(command, optionsOrCb);
|
|
332
337
|
}
|
|
333
|
-
}
|
|
334
|
-
describePartnerEventSource(args, optionsOrCb, cb) {
|
|
335
|
-
|
|
338
|
+
};
|
|
339
|
+
CloudWatchEvents.prototype.describePartnerEventSource = function (args, optionsOrCb, cb) {
|
|
340
|
+
var command = new DescribePartnerEventSourceCommand(args);
|
|
336
341
|
if (typeof optionsOrCb === "function") {
|
|
337
342
|
this.send(command, optionsOrCb);
|
|
338
343
|
}
|
|
339
344
|
else if (typeof cb === "function") {
|
|
340
345
|
if (typeof optionsOrCb !== "object")
|
|
341
|
-
throw new Error(
|
|
346
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
342
347
|
this.send(command, optionsOrCb || {}, cb);
|
|
343
348
|
}
|
|
344
349
|
else {
|
|
345
350
|
return this.send(command, optionsOrCb);
|
|
346
351
|
}
|
|
347
|
-
}
|
|
348
|
-
describeReplay(args, optionsOrCb, cb) {
|
|
349
|
-
|
|
352
|
+
};
|
|
353
|
+
CloudWatchEvents.prototype.describeReplay = function (args, optionsOrCb, cb) {
|
|
354
|
+
var command = new DescribeReplayCommand(args);
|
|
350
355
|
if (typeof optionsOrCb === "function") {
|
|
351
356
|
this.send(command, optionsOrCb);
|
|
352
357
|
}
|
|
353
358
|
else if (typeof cb === "function") {
|
|
354
359
|
if (typeof optionsOrCb !== "object")
|
|
355
|
-
throw new Error(
|
|
360
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
356
361
|
this.send(command, optionsOrCb || {}, cb);
|
|
357
362
|
}
|
|
358
363
|
else {
|
|
359
364
|
return this.send(command, optionsOrCb);
|
|
360
365
|
}
|
|
361
|
-
}
|
|
362
|
-
describeRule(args, optionsOrCb, cb) {
|
|
363
|
-
|
|
366
|
+
};
|
|
367
|
+
CloudWatchEvents.prototype.describeRule = function (args, optionsOrCb, cb) {
|
|
368
|
+
var command = new DescribeRuleCommand(args);
|
|
364
369
|
if (typeof optionsOrCb === "function") {
|
|
365
370
|
this.send(command, optionsOrCb);
|
|
366
371
|
}
|
|
367
372
|
else if (typeof cb === "function") {
|
|
368
373
|
if (typeof optionsOrCb !== "object")
|
|
369
|
-
throw new Error(
|
|
374
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
370
375
|
this.send(command, optionsOrCb || {}, cb);
|
|
371
376
|
}
|
|
372
377
|
else {
|
|
373
378
|
return this.send(command, optionsOrCb);
|
|
374
379
|
}
|
|
375
|
-
}
|
|
376
|
-
disableRule(args, optionsOrCb, cb) {
|
|
377
|
-
|
|
380
|
+
};
|
|
381
|
+
CloudWatchEvents.prototype.disableRule = function (args, optionsOrCb, cb) {
|
|
382
|
+
var command = new DisableRuleCommand(args);
|
|
378
383
|
if (typeof optionsOrCb === "function") {
|
|
379
384
|
this.send(command, optionsOrCb);
|
|
380
385
|
}
|
|
381
386
|
else if (typeof cb === "function") {
|
|
382
387
|
if (typeof optionsOrCb !== "object")
|
|
383
|
-
throw new Error(
|
|
388
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
384
389
|
this.send(command, optionsOrCb || {}, cb);
|
|
385
390
|
}
|
|
386
391
|
else {
|
|
387
392
|
return this.send(command, optionsOrCb);
|
|
388
393
|
}
|
|
389
|
-
}
|
|
390
|
-
enableRule(args, optionsOrCb, cb) {
|
|
391
|
-
|
|
394
|
+
};
|
|
395
|
+
CloudWatchEvents.prototype.enableRule = function (args, optionsOrCb, cb) {
|
|
396
|
+
var command = new EnableRuleCommand(args);
|
|
392
397
|
if (typeof optionsOrCb === "function") {
|
|
393
398
|
this.send(command, optionsOrCb);
|
|
394
399
|
}
|
|
395
400
|
else if (typeof cb === "function") {
|
|
396
401
|
if (typeof optionsOrCb !== "object")
|
|
397
|
-
throw new Error(
|
|
402
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
398
403
|
this.send(command, optionsOrCb || {}, cb);
|
|
399
404
|
}
|
|
400
405
|
else {
|
|
401
406
|
return this.send(command, optionsOrCb);
|
|
402
407
|
}
|
|
403
|
-
}
|
|
404
|
-
listApiDestinations(args, optionsOrCb, cb) {
|
|
405
|
-
|
|
408
|
+
};
|
|
409
|
+
CloudWatchEvents.prototype.listApiDestinations = function (args, optionsOrCb, cb) {
|
|
410
|
+
var command = new ListApiDestinationsCommand(args);
|
|
406
411
|
if (typeof optionsOrCb === "function") {
|
|
407
412
|
this.send(command, optionsOrCb);
|
|
408
413
|
}
|
|
409
414
|
else if (typeof cb === "function") {
|
|
410
415
|
if (typeof optionsOrCb !== "object")
|
|
411
|
-
throw new Error(
|
|
416
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
412
417
|
this.send(command, optionsOrCb || {}, cb);
|
|
413
418
|
}
|
|
414
419
|
else {
|
|
415
420
|
return this.send(command, optionsOrCb);
|
|
416
421
|
}
|
|
417
|
-
}
|
|
418
|
-
listArchives(args, optionsOrCb, cb) {
|
|
419
|
-
|
|
422
|
+
};
|
|
423
|
+
CloudWatchEvents.prototype.listArchives = function (args, optionsOrCb, cb) {
|
|
424
|
+
var command = new ListArchivesCommand(args);
|
|
420
425
|
if (typeof optionsOrCb === "function") {
|
|
421
426
|
this.send(command, optionsOrCb);
|
|
422
427
|
}
|
|
423
428
|
else if (typeof cb === "function") {
|
|
424
429
|
if (typeof optionsOrCb !== "object")
|
|
425
|
-
throw new Error(
|
|
430
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
426
431
|
this.send(command, optionsOrCb || {}, cb);
|
|
427
432
|
}
|
|
428
433
|
else {
|
|
429
434
|
return this.send(command, optionsOrCb);
|
|
430
435
|
}
|
|
431
|
-
}
|
|
432
|
-
listConnections(args, optionsOrCb, cb) {
|
|
433
|
-
|
|
436
|
+
};
|
|
437
|
+
CloudWatchEvents.prototype.listConnections = function (args, optionsOrCb, cb) {
|
|
438
|
+
var command = new ListConnectionsCommand(args);
|
|
434
439
|
if (typeof optionsOrCb === "function") {
|
|
435
440
|
this.send(command, optionsOrCb);
|
|
436
441
|
}
|
|
437
442
|
else if (typeof cb === "function") {
|
|
438
443
|
if (typeof optionsOrCb !== "object")
|
|
439
|
-
throw new Error(
|
|
444
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
440
445
|
this.send(command, optionsOrCb || {}, cb);
|
|
441
446
|
}
|
|
442
447
|
else {
|
|
443
448
|
return this.send(command, optionsOrCb);
|
|
444
449
|
}
|
|
445
|
-
}
|
|
446
|
-
listEventBuses(args, optionsOrCb, cb) {
|
|
447
|
-
|
|
450
|
+
};
|
|
451
|
+
CloudWatchEvents.prototype.listEventBuses = function (args, optionsOrCb, cb) {
|
|
452
|
+
var command = new ListEventBusesCommand(args);
|
|
448
453
|
if (typeof optionsOrCb === "function") {
|
|
449
454
|
this.send(command, optionsOrCb);
|
|
450
455
|
}
|
|
451
456
|
else if (typeof cb === "function") {
|
|
452
457
|
if (typeof optionsOrCb !== "object")
|
|
453
|
-
throw new Error(
|
|
458
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
454
459
|
this.send(command, optionsOrCb || {}, cb);
|
|
455
460
|
}
|
|
456
461
|
else {
|
|
457
462
|
return this.send(command, optionsOrCb);
|
|
458
463
|
}
|
|
459
|
-
}
|
|
460
|
-
listEventSources(args, optionsOrCb, cb) {
|
|
461
|
-
|
|
464
|
+
};
|
|
465
|
+
CloudWatchEvents.prototype.listEventSources = function (args, optionsOrCb, cb) {
|
|
466
|
+
var command = new ListEventSourcesCommand(args);
|
|
462
467
|
if (typeof optionsOrCb === "function") {
|
|
463
468
|
this.send(command, optionsOrCb);
|
|
464
469
|
}
|
|
465
470
|
else if (typeof cb === "function") {
|
|
466
471
|
if (typeof optionsOrCb !== "object")
|
|
467
|
-
throw new Error(
|
|
472
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
468
473
|
this.send(command, optionsOrCb || {}, cb);
|
|
469
474
|
}
|
|
470
475
|
else {
|
|
471
476
|
return this.send(command, optionsOrCb);
|
|
472
477
|
}
|
|
473
|
-
}
|
|
474
|
-
listPartnerEventSourceAccounts(args, optionsOrCb, cb) {
|
|
475
|
-
|
|
478
|
+
};
|
|
479
|
+
CloudWatchEvents.prototype.listPartnerEventSourceAccounts = function (args, optionsOrCb, cb) {
|
|
480
|
+
var command = new ListPartnerEventSourceAccountsCommand(args);
|
|
476
481
|
if (typeof optionsOrCb === "function") {
|
|
477
482
|
this.send(command, optionsOrCb);
|
|
478
483
|
}
|
|
479
484
|
else if (typeof cb === "function") {
|
|
480
485
|
if (typeof optionsOrCb !== "object")
|
|
481
|
-
throw new Error(
|
|
486
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
482
487
|
this.send(command, optionsOrCb || {}, cb);
|
|
483
488
|
}
|
|
484
489
|
else {
|
|
485
490
|
return this.send(command, optionsOrCb);
|
|
486
491
|
}
|
|
487
|
-
}
|
|
488
|
-
listPartnerEventSources(args, optionsOrCb, cb) {
|
|
489
|
-
|
|
492
|
+
};
|
|
493
|
+
CloudWatchEvents.prototype.listPartnerEventSources = function (args, optionsOrCb, cb) {
|
|
494
|
+
var command = new ListPartnerEventSourcesCommand(args);
|
|
490
495
|
if (typeof optionsOrCb === "function") {
|
|
491
496
|
this.send(command, optionsOrCb);
|
|
492
497
|
}
|
|
493
498
|
else if (typeof cb === "function") {
|
|
494
499
|
if (typeof optionsOrCb !== "object")
|
|
495
|
-
throw new Error(
|
|
500
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
496
501
|
this.send(command, optionsOrCb || {}, cb);
|
|
497
502
|
}
|
|
498
503
|
else {
|
|
499
504
|
return this.send(command, optionsOrCb);
|
|
500
505
|
}
|
|
501
|
-
}
|
|
502
|
-
listReplays(args, optionsOrCb, cb) {
|
|
503
|
-
|
|
506
|
+
};
|
|
507
|
+
CloudWatchEvents.prototype.listReplays = function (args, optionsOrCb, cb) {
|
|
508
|
+
var command = new ListReplaysCommand(args);
|
|
504
509
|
if (typeof optionsOrCb === "function") {
|
|
505
510
|
this.send(command, optionsOrCb);
|
|
506
511
|
}
|
|
507
512
|
else if (typeof cb === "function") {
|
|
508
513
|
if (typeof optionsOrCb !== "object")
|
|
509
|
-
throw new Error(
|
|
514
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
510
515
|
this.send(command, optionsOrCb || {}, cb);
|
|
511
516
|
}
|
|
512
517
|
else {
|
|
513
518
|
return this.send(command, optionsOrCb);
|
|
514
519
|
}
|
|
515
|
-
}
|
|
516
|
-
listRuleNamesByTarget(args, optionsOrCb, cb) {
|
|
517
|
-
|
|
520
|
+
};
|
|
521
|
+
CloudWatchEvents.prototype.listRuleNamesByTarget = function (args, optionsOrCb, cb) {
|
|
522
|
+
var command = new ListRuleNamesByTargetCommand(args);
|
|
518
523
|
if (typeof optionsOrCb === "function") {
|
|
519
524
|
this.send(command, optionsOrCb);
|
|
520
525
|
}
|
|
521
526
|
else if (typeof cb === "function") {
|
|
522
527
|
if (typeof optionsOrCb !== "object")
|
|
523
|
-
throw new Error(
|
|
528
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
524
529
|
this.send(command, optionsOrCb || {}, cb);
|
|
525
530
|
}
|
|
526
531
|
else {
|
|
527
532
|
return this.send(command, optionsOrCb);
|
|
528
533
|
}
|
|
529
|
-
}
|
|
530
|
-
listRules(args, optionsOrCb, cb) {
|
|
531
|
-
|
|
534
|
+
};
|
|
535
|
+
CloudWatchEvents.prototype.listRules = function (args, optionsOrCb, cb) {
|
|
536
|
+
var command = new ListRulesCommand(args);
|
|
532
537
|
if (typeof optionsOrCb === "function") {
|
|
533
538
|
this.send(command, optionsOrCb);
|
|
534
539
|
}
|
|
535
540
|
else if (typeof cb === "function") {
|
|
536
541
|
if (typeof optionsOrCb !== "object")
|
|
537
|
-
throw new Error(
|
|
542
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
538
543
|
this.send(command, optionsOrCb || {}, cb);
|
|
539
544
|
}
|
|
540
545
|
else {
|
|
541
546
|
return this.send(command, optionsOrCb);
|
|
542
547
|
}
|
|
543
|
-
}
|
|
544
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
545
|
-
|
|
548
|
+
};
|
|
549
|
+
CloudWatchEvents.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
550
|
+
var command = new ListTagsForResourceCommand(args);
|
|
546
551
|
if (typeof optionsOrCb === "function") {
|
|
547
552
|
this.send(command, optionsOrCb);
|
|
548
553
|
}
|
|
549
554
|
else if (typeof cb === "function") {
|
|
550
555
|
if (typeof optionsOrCb !== "object")
|
|
551
|
-
throw new Error(
|
|
556
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
552
557
|
this.send(command, optionsOrCb || {}, cb);
|
|
553
558
|
}
|
|
554
559
|
else {
|
|
555
560
|
return this.send(command, optionsOrCb);
|
|
556
561
|
}
|
|
557
|
-
}
|
|
558
|
-
listTargetsByRule(args, optionsOrCb, cb) {
|
|
559
|
-
|
|
562
|
+
};
|
|
563
|
+
CloudWatchEvents.prototype.listTargetsByRule = function (args, optionsOrCb, cb) {
|
|
564
|
+
var command = new ListTargetsByRuleCommand(args);
|
|
560
565
|
if (typeof optionsOrCb === "function") {
|
|
561
566
|
this.send(command, optionsOrCb);
|
|
562
567
|
}
|
|
563
568
|
else if (typeof cb === "function") {
|
|
564
569
|
if (typeof optionsOrCb !== "object")
|
|
565
|
-
throw new Error(
|
|
570
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
566
571
|
this.send(command, optionsOrCb || {}, cb);
|
|
567
572
|
}
|
|
568
573
|
else {
|
|
569
574
|
return this.send(command, optionsOrCb);
|
|
570
575
|
}
|
|
571
|
-
}
|
|
572
|
-
putEvents(args, optionsOrCb, cb) {
|
|
573
|
-
|
|
576
|
+
};
|
|
577
|
+
CloudWatchEvents.prototype.putEvents = function (args, optionsOrCb, cb) {
|
|
578
|
+
var command = new PutEventsCommand(args);
|
|
574
579
|
if (typeof optionsOrCb === "function") {
|
|
575
580
|
this.send(command, optionsOrCb);
|
|
576
581
|
}
|
|
577
582
|
else if (typeof cb === "function") {
|
|
578
583
|
if (typeof optionsOrCb !== "object")
|
|
579
|
-
throw new Error(
|
|
584
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
580
585
|
this.send(command, optionsOrCb || {}, cb);
|
|
581
586
|
}
|
|
582
587
|
else {
|
|
583
588
|
return this.send(command, optionsOrCb);
|
|
584
589
|
}
|
|
585
|
-
}
|
|
586
|
-
putPartnerEvents(args, optionsOrCb, cb) {
|
|
587
|
-
|
|
590
|
+
};
|
|
591
|
+
CloudWatchEvents.prototype.putPartnerEvents = function (args, optionsOrCb, cb) {
|
|
592
|
+
var command = new PutPartnerEventsCommand(args);
|
|
588
593
|
if (typeof optionsOrCb === "function") {
|
|
589
594
|
this.send(command, optionsOrCb);
|
|
590
595
|
}
|
|
591
596
|
else if (typeof cb === "function") {
|
|
592
597
|
if (typeof optionsOrCb !== "object")
|
|
593
|
-
throw new Error(
|
|
598
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
594
599
|
this.send(command, optionsOrCb || {}, cb);
|
|
595
600
|
}
|
|
596
601
|
else {
|
|
597
602
|
return this.send(command, optionsOrCb);
|
|
598
603
|
}
|
|
599
|
-
}
|
|
600
|
-
putPermission(args, optionsOrCb, cb) {
|
|
601
|
-
|
|
604
|
+
};
|
|
605
|
+
CloudWatchEvents.prototype.putPermission = function (args, optionsOrCb, cb) {
|
|
606
|
+
var command = new PutPermissionCommand(args);
|
|
602
607
|
if (typeof optionsOrCb === "function") {
|
|
603
608
|
this.send(command, optionsOrCb);
|
|
604
609
|
}
|
|
605
610
|
else if (typeof cb === "function") {
|
|
606
611
|
if (typeof optionsOrCb !== "object")
|
|
607
|
-
throw new Error(
|
|
612
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
608
613
|
this.send(command, optionsOrCb || {}, cb);
|
|
609
614
|
}
|
|
610
615
|
else {
|
|
611
616
|
return this.send(command, optionsOrCb);
|
|
612
617
|
}
|
|
613
|
-
}
|
|
614
|
-
putRule(args, optionsOrCb, cb) {
|
|
615
|
-
|
|
618
|
+
};
|
|
619
|
+
CloudWatchEvents.prototype.putRule = function (args, optionsOrCb, cb) {
|
|
620
|
+
var command = new PutRuleCommand(args);
|
|
616
621
|
if (typeof optionsOrCb === "function") {
|
|
617
622
|
this.send(command, optionsOrCb);
|
|
618
623
|
}
|
|
619
624
|
else if (typeof cb === "function") {
|
|
620
625
|
if (typeof optionsOrCb !== "object")
|
|
621
|
-
throw new Error(
|
|
626
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
622
627
|
this.send(command, optionsOrCb || {}, cb);
|
|
623
628
|
}
|
|
624
629
|
else {
|
|
625
630
|
return this.send(command, optionsOrCb);
|
|
626
631
|
}
|
|
627
|
-
}
|
|
628
|
-
putTargets(args, optionsOrCb, cb) {
|
|
629
|
-
|
|
632
|
+
};
|
|
633
|
+
CloudWatchEvents.prototype.putTargets = function (args, optionsOrCb, cb) {
|
|
634
|
+
var command = new PutTargetsCommand(args);
|
|
630
635
|
if (typeof optionsOrCb === "function") {
|
|
631
636
|
this.send(command, optionsOrCb);
|
|
632
637
|
}
|
|
633
638
|
else if (typeof cb === "function") {
|
|
634
639
|
if (typeof optionsOrCb !== "object")
|
|
635
|
-
throw new Error(
|
|
640
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
636
641
|
this.send(command, optionsOrCb || {}, cb);
|
|
637
642
|
}
|
|
638
643
|
else {
|
|
639
644
|
return this.send(command, optionsOrCb);
|
|
640
645
|
}
|
|
641
|
-
}
|
|
642
|
-
removePermission(args, optionsOrCb, cb) {
|
|
643
|
-
|
|
646
|
+
};
|
|
647
|
+
CloudWatchEvents.prototype.removePermission = function (args, optionsOrCb, cb) {
|
|
648
|
+
var command = new RemovePermissionCommand(args);
|
|
644
649
|
if (typeof optionsOrCb === "function") {
|
|
645
650
|
this.send(command, optionsOrCb);
|
|
646
651
|
}
|
|
647
652
|
else if (typeof cb === "function") {
|
|
648
653
|
if (typeof optionsOrCb !== "object")
|
|
649
|
-
throw new Error(
|
|
654
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
650
655
|
this.send(command, optionsOrCb || {}, cb);
|
|
651
656
|
}
|
|
652
657
|
else {
|
|
653
658
|
return this.send(command, optionsOrCb);
|
|
654
659
|
}
|
|
655
|
-
}
|
|
656
|
-
removeTargets(args, optionsOrCb, cb) {
|
|
657
|
-
|
|
660
|
+
};
|
|
661
|
+
CloudWatchEvents.prototype.removeTargets = function (args, optionsOrCb, cb) {
|
|
662
|
+
var command = new RemoveTargetsCommand(args);
|
|
658
663
|
if (typeof optionsOrCb === "function") {
|
|
659
664
|
this.send(command, optionsOrCb);
|
|
660
665
|
}
|
|
661
666
|
else if (typeof cb === "function") {
|
|
662
667
|
if (typeof optionsOrCb !== "object")
|
|
663
|
-
throw new Error(
|
|
668
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
664
669
|
this.send(command, optionsOrCb || {}, cb);
|
|
665
670
|
}
|
|
666
671
|
else {
|
|
667
672
|
return this.send(command, optionsOrCb);
|
|
668
673
|
}
|
|
669
|
-
}
|
|
670
|
-
startReplay(args, optionsOrCb, cb) {
|
|
671
|
-
|
|
674
|
+
};
|
|
675
|
+
CloudWatchEvents.prototype.startReplay = function (args, optionsOrCb, cb) {
|
|
676
|
+
var command = new StartReplayCommand(args);
|
|
672
677
|
if (typeof optionsOrCb === "function") {
|
|
673
678
|
this.send(command, optionsOrCb);
|
|
674
679
|
}
|
|
675
680
|
else if (typeof cb === "function") {
|
|
676
681
|
if (typeof optionsOrCb !== "object")
|
|
677
|
-
throw new Error(
|
|
682
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
678
683
|
this.send(command, optionsOrCb || {}, cb);
|
|
679
684
|
}
|
|
680
685
|
else {
|
|
681
686
|
return this.send(command, optionsOrCb);
|
|
682
687
|
}
|
|
683
|
-
}
|
|
684
|
-
tagResource(args, optionsOrCb, cb) {
|
|
685
|
-
|
|
688
|
+
};
|
|
689
|
+
CloudWatchEvents.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
690
|
+
var command = new TagResourceCommand(args);
|
|
686
691
|
if (typeof optionsOrCb === "function") {
|
|
687
692
|
this.send(command, optionsOrCb);
|
|
688
693
|
}
|
|
689
694
|
else if (typeof cb === "function") {
|
|
690
695
|
if (typeof optionsOrCb !== "object")
|
|
691
|
-
throw new Error(
|
|
696
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
692
697
|
this.send(command, optionsOrCb || {}, cb);
|
|
693
698
|
}
|
|
694
699
|
else {
|
|
695
700
|
return this.send(command, optionsOrCb);
|
|
696
701
|
}
|
|
697
|
-
}
|
|
698
|
-
testEventPattern(args, optionsOrCb, cb) {
|
|
699
|
-
|
|
702
|
+
};
|
|
703
|
+
CloudWatchEvents.prototype.testEventPattern = function (args, optionsOrCb, cb) {
|
|
704
|
+
var command = new TestEventPatternCommand(args);
|
|
700
705
|
if (typeof optionsOrCb === "function") {
|
|
701
706
|
this.send(command, optionsOrCb);
|
|
702
707
|
}
|
|
703
708
|
else if (typeof cb === "function") {
|
|
704
709
|
if (typeof optionsOrCb !== "object")
|
|
705
|
-
throw new Error(
|
|
710
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
706
711
|
this.send(command, optionsOrCb || {}, cb);
|
|
707
712
|
}
|
|
708
713
|
else {
|
|
709
714
|
return this.send(command, optionsOrCb);
|
|
710
715
|
}
|
|
711
|
-
}
|
|
712
|
-
untagResource(args, optionsOrCb, cb) {
|
|
713
|
-
|
|
716
|
+
};
|
|
717
|
+
CloudWatchEvents.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
718
|
+
var command = new UntagResourceCommand(args);
|
|
714
719
|
if (typeof optionsOrCb === "function") {
|
|
715
720
|
this.send(command, optionsOrCb);
|
|
716
721
|
}
|
|
717
722
|
else if (typeof cb === "function") {
|
|
718
723
|
if (typeof optionsOrCb !== "object")
|
|
719
|
-
throw new Error(
|
|
724
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
720
725
|
this.send(command, optionsOrCb || {}, cb);
|
|
721
726
|
}
|
|
722
727
|
else {
|
|
723
728
|
return this.send(command, optionsOrCb);
|
|
724
729
|
}
|
|
725
|
-
}
|
|
726
|
-
updateApiDestination(args, optionsOrCb, cb) {
|
|
727
|
-
|
|
730
|
+
};
|
|
731
|
+
CloudWatchEvents.prototype.updateApiDestination = function (args, optionsOrCb, cb) {
|
|
732
|
+
var command = new UpdateApiDestinationCommand(args);
|
|
728
733
|
if (typeof optionsOrCb === "function") {
|
|
729
734
|
this.send(command, optionsOrCb);
|
|
730
735
|
}
|
|
731
736
|
else if (typeof cb === "function") {
|
|
732
737
|
if (typeof optionsOrCb !== "object")
|
|
733
|
-
throw new Error(
|
|
738
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
734
739
|
this.send(command, optionsOrCb || {}, cb);
|
|
735
740
|
}
|
|
736
741
|
else {
|
|
737
742
|
return this.send(command, optionsOrCb);
|
|
738
743
|
}
|
|
739
|
-
}
|
|
740
|
-
updateArchive(args, optionsOrCb, cb) {
|
|
741
|
-
|
|
744
|
+
};
|
|
745
|
+
CloudWatchEvents.prototype.updateArchive = function (args, optionsOrCb, cb) {
|
|
746
|
+
var command = new UpdateArchiveCommand(args);
|
|
742
747
|
if (typeof optionsOrCb === "function") {
|
|
743
748
|
this.send(command, optionsOrCb);
|
|
744
749
|
}
|
|
745
750
|
else if (typeof cb === "function") {
|
|
746
751
|
if (typeof optionsOrCb !== "object")
|
|
747
|
-
throw new Error(
|
|
752
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
748
753
|
this.send(command, optionsOrCb || {}, cb);
|
|
749
754
|
}
|
|
750
755
|
else {
|
|
751
756
|
return this.send(command, optionsOrCb);
|
|
752
757
|
}
|
|
753
|
-
}
|
|
754
|
-
updateConnection(args, optionsOrCb, cb) {
|
|
755
|
-
|
|
758
|
+
};
|
|
759
|
+
CloudWatchEvents.prototype.updateConnection = function (args, optionsOrCb, cb) {
|
|
760
|
+
var command = new UpdateConnectionCommand(args);
|
|
756
761
|
if (typeof optionsOrCb === "function") {
|
|
757
762
|
this.send(command, optionsOrCb);
|
|
758
763
|
}
|
|
759
764
|
else if (typeof cb === "function") {
|
|
760
765
|
if (typeof optionsOrCb !== "object")
|
|
761
|
-
throw new Error(
|
|
766
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
762
767
|
this.send(command, optionsOrCb || {}, cb);
|
|
763
768
|
}
|
|
764
769
|
else {
|
|
765
770
|
return this.send(command, optionsOrCb);
|
|
766
771
|
}
|
|
767
|
-
}
|
|
768
|
-
|
|
772
|
+
};
|
|
773
|
+
return CloudWatchEvents;
|
|
774
|
+
}(CloudWatchEventsClient));
|
|
775
|
+
export { CloudWatchEvents };
|