@aws-sdk/client-cloudtrail 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/CloudTrail.js +153 -146
- package/dist-es/CloudTrailClient.js +28 -22
- package/dist-es/commands/AddTagsCommand.js +28 -21
- package/dist-es/commands/CancelQueryCommand.js +28 -21
- package/dist-es/commands/CreateEventDataStoreCommand.js +28 -21
- package/dist-es/commands/CreateTrailCommand.js +28 -21
- package/dist-es/commands/DeleteEventDataStoreCommand.js +28 -21
- package/dist-es/commands/DeleteTrailCommand.js +28 -21
- package/dist-es/commands/DescribeQueryCommand.js +28 -21
- package/dist-es/commands/DescribeTrailsCommand.js +28 -21
- package/dist-es/commands/GetChannelCommand.js +28 -21
- package/dist-es/commands/GetEventDataStoreCommand.js +28 -21
- package/dist-es/commands/GetEventSelectorsCommand.js +28 -21
- package/dist-es/commands/GetImportCommand.js +28 -21
- package/dist-es/commands/GetInsightSelectorsCommand.js +28 -21
- package/dist-es/commands/GetQueryResultsCommand.js +28 -21
- package/dist-es/commands/GetTrailCommand.js +28 -21
- package/dist-es/commands/GetTrailStatusCommand.js +28 -21
- package/dist-es/commands/ListChannelsCommand.js +28 -21
- package/dist-es/commands/ListEventDataStoresCommand.js +28 -21
- package/dist-es/commands/ListImportFailuresCommand.js +28 -21
- package/dist-es/commands/ListImportsCommand.js +28 -21
- package/dist-es/commands/ListPublicKeysCommand.js +28 -21
- package/dist-es/commands/ListQueriesCommand.js +28 -21
- package/dist-es/commands/ListTagsCommand.js +28 -21
- package/dist-es/commands/ListTrailsCommand.js +28 -21
- package/dist-es/commands/LookupEventsCommand.js +28 -21
- package/dist-es/commands/PutEventSelectorsCommand.js +28 -21
- package/dist-es/commands/PutInsightSelectorsCommand.js +28 -21
- package/dist-es/commands/RemoveTagsCommand.js +28 -21
- package/dist-es/commands/RestoreEventDataStoreCommand.js +28 -21
- package/dist-es/commands/StartImportCommand.js +28 -21
- package/dist-es/commands/StartLoggingCommand.js +28 -21
- package/dist-es/commands/StartQueryCommand.js +28 -21
- package/dist-es/commands/StopImportCommand.js +28 -21
- package/dist-es/commands/StopLoggingCommand.js +28 -21
- package/dist-es/commands/UpdateEventDataStoreCommand.js +28 -21
- package/dist-es/commands/UpdateTrailCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudTrailServiceException.js +10 -5
- package/dist-es/models/models_0.js +943 -1136
- package/dist-es/pagination/GetQueryResultsPaginator.js +67 -24
- package/dist-es/pagination/ListChannelsPaginator.js +68 -25
- package/dist-es/pagination/ListEventDataStoresPaginator.js +68 -25
- package/dist-es/pagination/ListImportFailuresPaginator.js +68 -25
- package/dist-es/pagination/ListImportsPaginator.js +68 -25
- package/dist-es/pagination/ListPublicKeysPaginator.js +67 -24
- package/dist-es/pagination/ListQueriesPaginator.js +68 -25
- package/dist-es/pagination/ListTagsPaginator.js +67 -24
- package/dist-es/pagination/ListTrailsPaginator.js +67 -24
- package/dist-es/pagination/LookupEventsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +4293 -3466
- 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
package/dist-es/CloudTrail.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CloudTrailClient } from "./CloudTrailClient";
|
|
2
3
|
import { AddTagsCommand } from "./commands/AddTagsCommand";
|
|
3
4
|
import { CancelQueryCommand } from "./commands/CancelQueryCommand";
|
|
@@ -35,509 +36,515 @@ import { StopImportCommand } from "./commands/StopImportCommand";
|
|
|
35
36
|
import { StopLoggingCommand } from "./commands/StopLoggingCommand";
|
|
36
37
|
import { UpdateEventDataStoreCommand, } from "./commands/UpdateEventDataStoreCommand";
|
|
37
38
|
import { UpdateTrailCommand } from "./commands/UpdateTrailCommand";
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
var CloudTrail = (function (_super) {
|
|
40
|
+
__extends(CloudTrail, _super);
|
|
41
|
+
function CloudTrail() {
|
|
42
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
43
|
+
}
|
|
44
|
+
CloudTrail.prototype.addTags = function (args, optionsOrCb, cb) {
|
|
45
|
+
var command = new AddTagsCommand(args);
|
|
41
46
|
if (typeof optionsOrCb === "function") {
|
|
42
47
|
this.send(command, optionsOrCb);
|
|
43
48
|
}
|
|
44
49
|
else if (typeof cb === "function") {
|
|
45
50
|
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(
|
|
51
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
47
52
|
this.send(command, optionsOrCb || {}, cb);
|
|
48
53
|
}
|
|
49
54
|
else {
|
|
50
55
|
return this.send(command, optionsOrCb);
|
|
51
56
|
}
|
|
52
|
-
}
|
|
53
|
-
cancelQuery(args, optionsOrCb, cb) {
|
|
54
|
-
|
|
57
|
+
};
|
|
58
|
+
CloudTrail.prototype.cancelQuery = function (args, optionsOrCb, cb) {
|
|
59
|
+
var command = new CancelQueryCommand(args);
|
|
55
60
|
if (typeof optionsOrCb === "function") {
|
|
56
61
|
this.send(command, optionsOrCb);
|
|
57
62
|
}
|
|
58
63
|
else if (typeof cb === "function") {
|
|
59
64
|
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(
|
|
65
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
61
66
|
this.send(command, optionsOrCb || {}, cb);
|
|
62
67
|
}
|
|
63
68
|
else {
|
|
64
69
|
return this.send(command, optionsOrCb);
|
|
65
70
|
}
|
|
66
|
-
}
|
|
67
|
-
createEventDataStore(args, optionsOrCb, cb) {
|
|
68
|
-
|
|
71
|
+
};
|
|
72
|
+
CloudTrail.prototype.createEventDataStore = function (args, optionsOrCb, cb) {
|
|
73
|
+
var command = new CreateEventDataStoreCommand(args);
|
|
69
74
|
if (typeof optionsOrCb === "function") {
|
|
70
75
|
this.send(command, optionsOrCb);
|
|
71
76
|
}
|
|
72
77
|
else if (typeof cb === "function") {
|
|
73
78
|
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(
|
|
79
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
75
80
|
this.send(command, optionsOrCb || {}, cb);
|
|
76
81
|
}
|
|
77
82
|
else {
|
|
78
83
|
return this.send(command, optionsOrCb);
|
|
79
84
|
}
|
|
80
|
-
}
|
|
81
|
-
createTrail(args, optionsOrCb, cb) {
|
|
82
|
-
|
|
85
|
+
};
|
|
86
|
+
CloudTrail.prototype.createTrail = function (args, optionsOrCb, cb) {
|
|
87
|
+
var command = new CreateTrailCommand(args);
|
|
83
88
|
if (typeof optionsOrCb === "function") {
|
|
84
89
|
this.send(command, optionsOrCb);
|
|
85
90
|
}
|
|
86
91
|
else if (typeof cb === "function") {
|
|
87
92
|
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(
|
|
93
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
89
94
|
this.send(command, optionsOrCb || {}, cb);
|
|
90
95
|
}
|
|
91
96
|
else {
|
|
92
97
|
return this.send(command, optionsOrCb);
|
|
93
98
|
}
|
|
94
|
-
}
|
|
95
|
-
deleteEventDataStore(args, optionsOrCb, cb) {
|
|
96
|
-
|
|
99
|
+
};
|
|
100
|
+
CloudTrail.prototype.deleteEventDataStore = function (args, optionsOrCb, cb) {
|
|
101
|
+
var command = new DeleteEventDataStoreCommand(args);
|
|
97
102
|
if (typeof optionsOrCb === "function") {
|
|
98
103
|
this.send(command, optionsOrCb);
|
|
99
104
|
}
|
|
100
105
|
else if (typeof cb === "function") {
|
|
101
106
|
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(
|
|
107
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
103
108
|
this.send(command, optionsOrCb || {}, cb);
|
|
104
109
|
}
|
|
105
110
|
else {
|
|
106
111
|
return this.send(command, optionsOrCb);
|
|
107
112
|
}
|
|
108
|
-
}
|
|
109
|
-
deleteTrail(args, optionsOrCb, cb) {
|
|
110
|
-
|
|
113
|
+
};
|
|
114
|
+
CloudTrail.prototype.deleteTrail = function (args, optionsOrCb, cb) {
|
|
115
|
+
var command = new DeleteTrailCommand(args);
|
|
111
116
|
if (typeof optionsOrCb === "function") {
|
|
112
117
|
this.send(command, optionsOrCb);
|
|
113
118
|
}
|
|
114
119
|
else if (typeof cb === "function") {
|
|
115
120
|
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(
|
|
121
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
117
122
|
this.send(command, optionsOrCb || {}, cb);
|
|
118
123
|
}
|
|
119
124
|
else {
|
|
120
125
|
return this.send(command, optionsOrCb);
|
|
121
126
|
}
|
|
122
|
-
}
|
|
123
|
-
describeQuery(args, optionsOrCb, cb) {
|
|
124
|
-
|
|
127
|
+
};
|
|
128
|
+
CloudTrail.prototype.describeQuery = function (args, optionsOrCb, cb) {
|
|
129
|
+
var command = new DescribeQueryCommand(args);
|
|
125
130
|
if (typeof optionsOrCb === "function") {
|
|
126
131
|
this.send(command, optionsOrCb);
|
|
127
132
|
}
|
|
128
133
|
else if (typeof cb === "function") {
|
|
129
134
|
if (typeof optionsOrCb !== "object")
|
|
130
|
-
throw new Error(
|
|
135
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
131
136
|
this.send(command, optionsOrCb || {}, cb);
|
|
132
137
|
}
|
|
133
138
|
else {
|
|
134
139
|
return this.send(command, optionsOrCb);
|
|
135
140
|
}
|
|
136
|
-
}
|
|
137
|
-
describeTrails(args, optionsOrCb, cb) {
|
|
138
|
-
|
|
141
|
+
};
|
|
142
|
+
CloudTrail.prototype.describeTrails = function (args, optionsOrCb, cb) {
|
|
143
|
+
var command = new DescribeTrailsCommand(args);
|
|
139
144
|
if (typeof optionsOrCb === "function") {
|
|
140
145
|
this.send(command, optionsOrCb);
|
|
141
146
|
}
|
|
142
147
|
else if (typeof cb === "function") {
|
|
143
148
|
if (typeof optionsOrCb !== "object")
|
|
144
|
-
throw new Error(
|
|
149
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
145
150
|
this.send(command, optionsOrCb || {}, cb);
|
|
146
151
|
}
|
|
147
152
|
else {
|
|
148
153
|
return this.send(command, optionsOrCb);
|
|
149
154
|
}
|
|
150
|
-
}
|
|
151
|
-
getChannel(args, optionsOrCb, cb) {
|
|
152
|
-
|
|
155
|
+
};
|
|
156
|
+
CloudTrail.prototype.getChannel = function (args, optionsOrCb, cb) {
|
|
157
|
+
var command = new GetChannelCommand(args);
|
|
153
158
|
if (typeof optionsOrCb === "function") {
|
|
154
159
|
this.send(command, optionsOrCb);
|
|
155
160
|
}
|
|
156
161
|
else if (typeof cb === "function") {
|
|
157
162
|
if (typeof optionsOrCb !== "object")
|
|
158
|
-
throw new Error(
|
|
163
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
159
164
|
this.send(command, optionsOrCb || {}, cb);
|
|
160
165
|
}
|
|
161
166
|
else {
|
|
162
167
|
return this.send(command, optionsOrCb);
|
|
163
168
|
}
|
|
164
|
-
}
|
|
165
|
-
getEventDataStore(args, optionsOrCb, cb) {
|
|
166
|
-
|
|
169
|
+
};
|
|
170
|
+
CloudTrail.prototype.getEventDataStore = function (args, optionsOrCb, cb) {
|
|
171
|
+
var command = new GetEventDataStoreCommand(args);
|
|
167
172
|
if (typeof optionsOrCb === "function") {
|
|
168
173
|
this.send(command, optionsOrCb);
|
|
169
174
|
}
|
|
170
175
|
else if (typeof cb === "function") {
|
|
171
176
|
if (typeof optionsOrCb !== "object")
|
|
172
|
-
throw new Error(
|
|
177
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
173
178
|
this.send(command, optionsOrCb || {}, cb);
|
|
174
179
|
}
|
|
175
180
|
else {
|
|
176
181
|
return this.send(command, optionsOrCb);
|
|
177
182
|
}
|
|
178
|
-
}
|
|
179
|
-
getEventSelectors(args, optionsOrCb, cb) {
|
|
180
|
-
|
|
183
|
+
};
|
|
184
|
+
CloudTrail.prototype.getEventSelectors = function (args, optionsOrCb, cb) {
|
|
185
|
+
var command = new GetEventSelectorsCommand(args);
|
|
181
186
|
if (typeof optionsOrCb === "function") {
|
|
182
187
|
this.send(command, optionsOrCb);
|
|
183
188
|
}
|
|
184
189
|
else if (typeof cb === "function") {
|
|
185
190
|
if (typeof optionsOrCb !== "object")
|
|
186
|
-
throw new Error(
|
|
191
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
187
192
|
this.send(command, optionsOrCb || {}, cb);
|
|
188
193
|
}
|
|
189
194
|
else {
|
|
190
195
|
return this.send(command, optionsOrCb);
|
|
191
196
|
}
|
|
192
|
-
}
|
|
193
|
-
getImport(args, optionsOrCb, cb) {
|
|
194
|
-
|
|
197
|
+
};
|
|
198
|
+
CloudTrail.prototype.getImport = function (args, optionsOrCb, cb) {
|
|
199
|
+
var command = new GetImportCommand(args);
|
|
195
200
|
if (typeof optionsOrCb === "function") {
|
|
196
201
|
this.send(command, optionsOrCb);
|
|
197
202
|
}
|
|
198
203
|
else if (typeof cb === "function") {
|
|
199
204
|
if (typeof optionsOrCb !== "object")
|
|
200
|
-
throw new Error(
|
|
205
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
201
206
|
this.send(command, optionsOrCb || {}, cb);
|
|
202
207
|
}
|
|
203
208
|
else {
|
|
204
209
|
return this.send(command, optionsOrCb);
|
|
205
210
|
}
|
|
206
|
-
}
|
|
207
|
-
getInsightSelectors(args, optionsOrCb, cb) {
|
|
208
|
-
|
|
211
|
+
};
|
|
212
|
+
CloudTrail.prototype.getInsightSelectors = function (args, optionsOrCb, cb) {
|
|
213
|
+
var command = new GetInsightSelectorsCommand(args);
|
|
209
214
|
if (typeof optionsOrCb === "function") {
|
|
210
215
|
this.send(command, optionsOrCb);
|
|
211
216
|
}
|
|
212
217
|
else if (typeof cb === "function") {
|
|
213
218
|
if (typeof optionsOrCb !== "object")
|
|
214
|
-
throw new Error(
|
|
219
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
215
220
|
this.send(command, optionsOrCb || {}, cb);
|
|
216
221
|
}
|
|
217
222
|
else {
|
|
218
223
|
return this.send(command, optionsOrCb);
|
|
219
224
|
}
|
|
220
|
-
}
|
|
221
|
-
getQueryResults(args, optionsOrCb, cb) {
|
|
222
|
-
|
|
225
|
+
};
|
|
226
|
+
CloudTrail.prototype.getQueryResults = function (args, optionsOrCb, cb) {
|
|
227
|
+
var command = new GetQueryResultsCommand(args);
|
|
223
228
|
if (typeof optionsOrCb === "function") {
|
|
224
229
|
this.send(command, optionsOrCb);
|
|
225
230
|
}
|
|
226
231
|
else if (typeof cb === "function") {
|
|
227
232
|
if (typeof optionsOrCb !== "object")
|
|
228
|
-
throw new Error(
|
|
233
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
229
234
|
this.send(command, optionsOrCb || {}, cb);
|
|
230
235
|
}
|
|
231
236
|
else {
|
|
232
237
|
return this.send(command, optionsOrCb);
|
|
233
238
|
}
|
|
234
|
-
}
|
|
235
|
-
getTrail(args, optionsOrCb, cb) {
|
|
236
|
-
|
|
239
|
+
};
|
|
240
|
+
CloudTrail.prototype.getTrail = function (args, optionsOrCb, cb) {
|
|
241
|
+
var command = new GetTrailCommand(args);
|
|
237
242
|
if (typeof optionsOrCb === "function") {
|
|
238
243
|
this.send(command, optionsOrCb);
|
|
239
244
|
}
|
|
240
245
|
else if (typeof cb === "function") {
|
|
241
246
|
if (typeof optionsOrCb !== "object")
|
|
242
|
-
throw new Error(
|
|
247
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
243
248
|
this.send(command, optionsOrCb || {}, cb);
|
|
244
249
|
}
|
|
245
250
|
else {
|
|
246
251
|
return this.send(command, optionsOrCb);
|
|
247
252
|
}
|
|
248
|
-
}
|
|
249
|
-
getTrailStatus(args, optionsOrCb, cb) {
|
|
250
|
-
|
|
253
|
+
};
|
|
254
|
+
CloudTrail.prototype.getTrailStatus = function (args, optionsOrCb, cb) {
|
|
255
|
+
var command = new GetTrailStatusCommand(args);
|
|
251
256
|
if (typeof optionsOrCb === "function") {
|
|
252
257
|
this.send(command, optionsOrCb);
|
|
253
258
|
}
|
|
254
259
|
else if (typeof cb === "function") {
|
|
255
260
|
if (typeof optionsOrCb !== "object")
|
|
256
|
-
throw new Error(
|
|
261
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
257
262
|
this.send(command, optionsOrCb || {}, cb);
|
|
258
263
|
}
|
|
259
264
|
else {
|
|
260
265
|
return this.send(command, optionsOrCb);
|
|
261
266
|
}
|
|
262
|
-
}
|
|
263
|
-
listChannels(args, optionsOrCb, cb) {
|
|
264
|
-
|
|
267
|
+
};
|
|
268
|
+
CloudTrail.prototype.listChannels = function (args, optionsOrCb, cb) {
|
|
269
|
+
var command = new ListChannelsCommand(args);
|
|
265
270
|
if (typeof optionsOrCb === "function") {
|
|
266
271
|
this.send(command, optionsOrCb);
|
|
267
272
|
}
|
|
268
273
|
else if (typeof cb === "function") {
|
|
269
274
|
if (typeof optionsOrCb !== "object")
|
|
270
|
-
throw new Error(
|
|
275
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
271
276
|
this.send(command, optionsOrCb || {}, cb);
|
|
272
277
|
}
|
|
273
278
|
else {
|
|
274
279
|
return this.send(command, optionsOrCb);
|
|
275
280
|
}
|
|
276
|
-
}
|
|
277
|
-
listEventDataStores(args, optionsOrCb, cb) {
|
|
278
|
-
|
|
281
|
+
};
|
|
282
|
+
CloudTrail.prototype.listEventDataStores = function (args, optionsOrCb, cb) {
|
|
283
|
+
var command = new ListEventDataStoresCommand(args);
|
|
279
284
|
if (typeof optionsOrCb === "function") {
|
|
280
285
|
this.send(command, optionsOrCb);
|
|
281
286
|
}
|
|
282
287
|
else if (typeof cb === "function") {
|
|
283
288
|
if (typeof optionsOrCb !== "object")
|
|
284
|
-
throw new Error(
|
|
289
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
285
290
|
this.send(command, optionsOrCb || {}, cb);
|
|
286
291
|
}
|
|
287
292
|
else {
|
|
288
293
|
return this.send(command, optionsOrCb);
|
|
289
294
|
}
|
|
290
|
-
}
|
|
291
|
-
listImportFailures(args, optionsOrCb, cb) {
|
|
292
|
-
|
|
295
|
+
};
|
|
296
|
+
CloudTrail.prototype.listImportFailures = function (args, optionsOrCb, cb) {
|
|
297
|
+
var command = new ListImportFailuresCommand(args);
|
|
293
298
|
if (typeof optionsOrCb === "function") {
|
|
294
299
|
this.send(command, optionsOrCb);
|
|
295
300
|
}
|
|
296
301
|
else if (typeof cb === "function") {
|
|
297
302
|
if (typeof optionsOrCb !== "object")
|
|
298
|
-
throw new Error(
|
|
303
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
299
304
|
this.send(command, optionsOrCb || {}, cb);
|
|
300
305
|
}
|
|
301
306
|
else {
|
|
302
307
|
return this.send(command, optionsOrCb);
|
|
303
308
|
}
|
|
304
|
-
}
|
|
305
|
-
listImports(args, optionsOrCb, cb) {
|
|
306
|
-
|
|
309
|
+
};
|
|
310
|
+
CloudTrail.prototype.listImports = function (args, optionsOrCb, cb) {
|
|
311
|
+
var command = new ListImportsCommand(args);
|
|
307
312
|
if (typeof optionsOrCb === "function") {
|
|
308
313
|
this.send(command, optionsOrCb);
|
|
309
314
|
}
|
|
310
315
|
else if (typeof cb === "function") {
|
|
311
316
|
if (typeof optionsOrCb !== "object")
|
|
312
|
-
throw new Error(
|
|
317
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
313
318
|
this.send(command, optionsOrCb || {}, cb);
|
|
314
319
|
}
|
|
315
320
|
else {
|
|
316
321
|
return this.send(command, optionsOrCb);
|
|
317
322
|
}
|
|
318
|
-
}
|
|
319
|
-
listPublicKeys(args, optionsOrCb, cb) {
|
|
320
|
-
|
|
323
|
+
};
|
|
324
|
+
CloudTrail.prototype.listPublicKeys = function (args, optionsOrCb, cb) {
|
|
325
|
+
var command = new ListPublicKeysCommand(args);
|
|
321
326
|
if (typeof optionsOrCb === "function") {
|
|
322
327
|
this.send(command, optionsOrCb);
|
|
323
328
|
}
|
|
324
329
|
else if (typeof cb === "function") {
|
|
325
330
|
if (typeof optionsOrCb !== "object")
|
|
326
|
-
throw new Error(
|
|
331
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
327
332
|
this.send(command, optionsOrCb || {}, cb);
|
|
328
333
|
}
|
|
329
334
|
else {
|
|
330
335
|
return this.send(command, optionsOrCb);
|
|
331
336
|
}
|
|
332
|
-
}
|
|
333
|
-
listQueries(args, optionsOrCb, cb) {
|
|
334
|
-
|
|
337
|
+
};
|
|
338
|
+
CloudTrail.prototype.listQueries = function (args, optionsOrCb, cb) {
|
|
339
|
+
var command = new ListQueriesCommand(args);
|
|
335
340
|
if (typeof optionsOrCb === "function") {
|
|
336
341
|
this.send(command, optionsOrCb);
|
|
337
342
|
}
|
|
338
343
|
else if (typeof cb === "function") {
|
|
339
344
|
if (typeof optionsOrCb !== "object")
|
|
340
|
-
throw new Error(
|
|
345
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
341
346
|
this.send(command, optionsOrCb || {}, cb);
|
|
342
347
|
}
|
|
343
348
|
else {
|
|
344
349
|
return this.send(command, optionsOrCb);
|
|
345
350
|
}
|
|
346
|
-
}
|
|
347
|
-
listTags(args, optionsOrCb, cb) {
|
|
348
|
-
|
|
351
|
+
};
|
|
352
|
+
CloudTrail.prototype.listTags = function (args, optionsOrCb, cb) {
|
|
353
|
+
var command = new ListTagsCommand(args);
|
|
349
354
|
if (typeof optionsOrCb === "function") {
|
|
350
355
|
this.send(command, optionsOrCb);
|
|
351
356
|
}
|
|
352
357
|
else if (typeof cb === "function") {
|
|
353
358
|
if (typeof optionsOrCb !== "object")
|
|
354
|
-
throw new Error(
|
|
359
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
355
360
|
this.send(command, optionsOrCb || {}, cb);
|
|
356
361
|
}
|
|
357
362
|
else {
|
|
358
363
|
return this.send(command, optionsOrCb);
|
|
359
364
|
}
|
|
360
|
-
}
|
|
361
|
-
listTrails(args, optionsOrCb, cb) {
|
|
362
|
-
|
|
365
|
+
};
|
|
366
|
+
CloudTrail.prototype.listTrails = function (args, optionsOrCb, cb) {
|
|
367
|
+
var command = new ListTrailsCommand(args);
|
|
363
368
|
if (typeof optionsOrCb === "function") {
|
|
364
369
|
this.send(command, optionsOrCb);
|
|
365
370
|
}
|
|
366
371
|
else if (typeof cb === "function") {
|
|
367
372
|
if (typeof optionsOrCb !== "object")
|
|
368
|
-
throw new Error(
|
|
373
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
369
374
|
this.send(command, optionsOrCb || {}, cb);
|
|
370
375
|
}
|
|
371
376
|
else {
|
|
372
377
|
return this.send(command, optionsOrCb);
|
|
373
378
|
}
|
|
374
|
-
}
|
|
375
|
-
lookupEvents(args, optionsOrCb, cb) {
|
|
376
|
-
|
|
379
|
+
};
|
|
380
|
+
CloudTrail.prototype.lookupEvents = function (args, optionsOrCb, cb) {
|
|
381
|
+
var command = new LookupEventsCommand(args);
|
|
377
382
|
if (typeof optionsOrCb === "function") {
|
|
378
383
|
this.send(command, optionsOrCb);
|
|
379
384
|
}
|
|
380
385
|
else if (typeof cb === "function") {
|
|
381
386
|
if (typeof optionsOrCb !== "object")
|
|
382
|
-
throw new Error(
|
|
387
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
383
388
|
this.send(command, optionsOrCb || {}, cb);
|
|
384
389
|
}
|
|
385
390
|
else {
|
|
386
391
|
return this.send(command, optionsOrCb);
|
|
387
392
|
}
|
|
388
|
-
}
|
|
389
|
-
putEventSelectors(args, optionsOrCb, cb) {
|
|
390
|
-
|
|
393
|
+
};
|
|
394
|
+
CloudTrail.prototype.putEventSelectors = function (args, optionsOrCb, cb) {
|
|
395
|
+
var command = new PutEventSelectorsCommand(args);
|
|
391
396
|
if (typeof optionsOrCb === "function") {
|
|
392
397
|
this.send(command, optionsOrCb);
|
|
393
398
|
}
|
|
394
399
|
else if (typeof cb === "function") {
|
|
395
400
|
if (typeof optionsOrCb !== "object")
|
|
396
|
-
throw new Error(
|
|
401
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
397
402
|
this.send(command, optionsOrCb || {}, cb);
|
|
398
403
|
}
|
|
399
404
|
else {
|
|
400
405
|
return this.send(command, optionsOrCb);
|
|
401
406
|
}
|
|
402
|
-
}
|
|
403
|
-
putInsightSelectors(args, optionsOrCb, cb) {
|
|
404
|
-
|
|
407
|
+
};
|
|
408
|
+
CloudTrail.prototype.putInsightSelectors = function (args, optionsOrCb, cb) {
|
|
409
|
+
var command = new PutInsightSelectorsCommand(args);
|
|
405
410
|
if (typeof optionsOrCb === "function") {
|
|
406
411
|
this.send(command, optionsOrCb);
|
|
407
412
|
}
|
|
408
413
|
else if (typeof cb === "function") {
|
|
409
414
|
if (typeof optionsOrCb !== "object")
|
|
410
|
-
throw new Error(
|
|
415
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
411
416
|
this.send(command, optionsOrCb || {}, cb);
|
|
412
417
|
}
|
|
413
418
|
else {
|
|
414
419
|
return this.send(command, optionsOrCb);
|
|
415
420
|
}
|
|
416
|
-
}
|
|
417
|
-
removeTags(args, optionsOrCb, cb) {
|
|
418
|
-
|
|
421
|
+
};
|
|
422
|
+
CloudTrail.prototype.removeTags = function (args, optionsOrCb, cb) {
|
|
423
|
+
var command = new RemoveTagsCommand(args);
|
|
419
424
|
if (typeof optionsOrCb === "function") {
|
|
420
425
|
this.send(command, optionsOrCb);
|
|
421
426
|
}
|
|
422
427
|
else if (typeof cb === "function") {
|
|
423
428
|
if (typeof optionsOrCb !== "object")
|
|
424
|
-
throw new Error(
|
|
429
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
425
430
|
this.send(command, optionsOrCb || {}, cb);
|
|
426
431
|
}
|
|
427
432
|
else {
|
|
428
433
|
return this.send(command, optionsOrCb);
|
|
429
434
|
}
|
|
430
|
-
}
|
|
431
|
-
restoreEventDataStore(args, optionsOrCb, cb) {
|
|
432
|
-
|
|
435
|
+
};
|
|
436
|
+
CloudTrail.prototype.restoreEventDataStore = function (args, optionsOrCb, cb) {
|
|
437
|
+
var command = new RestoreEventDataStoreCommand(args);
|
|
433
438
|
if (typeof optionsOrCb === "function") {
|
|
434
439
|
this.send(command, optionsOrCb);
|
|
435
440
|
}
|
|
436
441
|
else if (typeof cb === "function") {
|
|
437
442
|
if (typeof optionsOrCb !== "object")
|
|
438
|
-
throw new Error(
|
|
443
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
439
444
|
this.send(command, optionsOrCb || {}, cb);
|
|
440
445
|
}
|
|
441
446
|
else {
|
|
442
447
|
return this.send(command, optionsOrCb);
|
|
443
448
|
}
|
|
444
|
-
}
|
|
445
|
-
startImport(args, optionsOrCb, cb) {
|
|
446
|
-
|
|
449
|
+
};
|
|
450
|
+
CloudTrail.prototype.startImport = function (args, optionsOrCb, cb) {
|
|
451
|
+
var command = new StartImportCommand(args);
|
|
447
452
|
if (typeof optionsOrCb === "function") {
|
|
448
453
|
this.send(command, optionsOrCb);
|
|
449
454
|
}
|
|
450
455
|
else if (typeof cb === "function") {
|
|
451
456
|
if (typeof optionsOrCb !== "object")
|
|
452
|
-
throw new Error(
|
|
457
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
453
458
|
this.send(command, optionsOrCb || {}, cb);
|
|
454
459
|
}
|
|
455
460
|
else {
|
|
456
461
|
return this.send(command, optionsOrCb);
|
|
457
462
|
}
|
|
458
|
-
}
|
|
459
|
-
startLogging(args, optionsOrCb, cb) {
|
|
460
|
-
|
|
463
|
+
};
|
|
464
|
+
CloudTrail.prototype.startLogging = function (args, optionsOrCb, cb) {
|
|
465
|
+
var command = new StartLoggingCommand(args);
|
|
461
466
|
if (typeof optionsOrCb === "function") {
|
|
462
467
|
this.send(command, optionsOrCb);
|
|
463
468
|
}
|
|
464
469
|
else if (typeof cb === "function") {
|
|
465
470
|
if (typeof optionsOrCb !== "object")
|
|
466
|
-
throw new Error(
|
|
471
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
467
472
|
this.send(command, optionsOrCb || {}, cb);
|
|
468
473
|
}
|
|
469
474
|
else {
|
|
470
475
|
return this.send(command, optionsOrCb);
|
|
471
476
|
}
|
|
472
|
-
}
|
|
473
|
-
startQuery(args, optionsOrCb, cb) {
|
|
474
|
-
|
|
477
|
+
};
|
|
478
|
+
CloudTrail.prototype.startQuery = function (args, optionsOrCb, cb) {
|
|
479
|
+
var command = new StartQueryCommand(args);
|
|
475
480
|
if (typeof optionsOrCb === "function") {
|
|
476
481
|
this.send(command, optionsOrCb);
|
|
477
482
|
}
|
|
478
483
|
else if (typeof cb === "function") {
|
|
479
484
|
if (typeof optionsOrCb !== "object")
|
|
480
|
-
throw new Error(
|
|
485
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
481
486
|
this.send(command, optionsOrCb || {}, cb);
|
|
482
487
|
}
|
|
483
488
|
else {
|
|
484
489
|
return this.send(command, optionsOrCb);
|
|
485
490
|
}
|
|
486
|
-
}
|
|
487
|
-
stopImport(args, optionsOrCb, cb) {
|
|
488
|
-
|
|
491
|
+
};
|
|
492
|
+
CloudTrail.prototype.stopImport = function (args, optionsOrCb, cb) {
|
|
493
|
+
var command = new StopImportCommand(args);
|
|
489
494
|
if (typeof optionsOrCb === "function") {
|
|
490
495
|
this.send(command, optionsOrCb);
|
|
491
496
|
}
|
|
492
497
|
else if (typeof cb === "function") {
|
|
493
498
|
if (typeof optionsOrCb !== "object")
|
|
494
|
-
throw new Error(
|
|
499
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
495
500
|
this.send(command, optionsOrCb || {}, cb);
|
|
496
501
|
}
|
|
497
502
|
else {
|
|
498
503
|
return this.send(command, optionsOrCb);
|
|
499
504
|
}
|
|
500
|
-
}
|
|
501
|
-
stopLogging(args, optionsOrCb, cb) {
|
|
502
|
-
|
|
505
|
+
};
|
|
506
|
+
CloudTrail.prototype.stopLogging = function (args, optionsOrCb, cb) {
|
|
507
|
+
var command = new StopLoggingCommand(args);
|
|
503
508
|
if (typeof optionsOrCb === "function") {
|
|
504
509
|
this.send(command, optionsOrCb);
|
|
505
510
|
}
|
|
506
511
|
else if (typeof cb === "function") {
|
|
507
512
|
if (typeof optionsOrCb !== "object")
|
|
508
|
-
throw new Error(
|
|
513
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
509
514
|
this.send(command, optionsOrCb || {}, cb);
|
|
510
515
|
}
|
|
511
516
|
else {
|
|
512
517
|
return this.send(command, optionsOrCb);
|
|
513
518
|
}
|
|
514
|
-
}
|
|
515
|
-
updateEventDataStore(args, optionsOrCb, cb) {
|
|
516
|
-
|
|
519
|
+
};
|
|
520
|
+
CloudTrail.prototype.updateEventDataStore = function (args, optionsOrCb, cb) {
|
|
521
|
+
var command = new UpdateEventDataStoreCommand(args);
|
|
517
522
|
if (typeof optionsOrCb === "function") {
|
|
518
523
|
this.send(command, optionsOrCb);
|
|
519
524
|
}
|
|
520
525
|
else if (typeof cb === "function") {
|
|
521
526
|
if (typeof optionsOrCb !== "object")
|
|
522
|
-
throw new Error(
|
|
527
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
523
528
|
this.send(command, optionsOrCb || {}, cb);
|
|
524
529
|
}
|
|
525
530
|
else {
|
|
526
531
|
return this.send(command, optionsOrCb);
|
|
527
532
|
}
|
|
528
|
-
}
|
|
529
|
-
updateTrail(args, optionsOrCb, cb) {
|
|
530
|
-
|
|
533
|
+
};
|
|
534
|
+
CloudTrail.prototype.updateTrail = function (args, optionsOrCb, cb) {
|
|
535
|
+
var command = new UpdateTrailCommand(args);
|
|
531
536
|
if (typeof optionsOrCb === "function") {
|
|
532
537
|
this.send(command, optionsOrCb);
|
|
533
538
|
}
|
|
534
539
|
else if (typeof cb === "function") {
|
|
535
540
|
if (typeof optionsOrCb !== "object")
|
|
536
|
-
throw new Error(
|
|
541
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
537
542
|
this.send(command, optionsOrCb || {}, cb);
|
|
538
543
|
}
|
|
539
544
|
else {
|
|
540
545
|
return this.send(command, optionsOrCb);
|
|
541
546
|
}
|
|
542
|
-
}
|
|
543
|
-
|
|
547
|
+
};
|
|
548
|
+
return CloudTrail;
|
|
549
|
+
}(CloudTrailClient));
|
|
550
|
+
export { CloudTrail };
|