@aws-sdk/client-cloudtrail 3.171.0 → 3.178.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 +19 -0
- package/dist-cjs/CloudTrail.js +75 -0
- package/dist-cjs/commands/GetImportCommand.js +36 -0
- package/dist-cjs/commands/ListImportFailuresCommand.js +36 -0
- package/dist-cjs/commands/ListImportsCommand.js +36 -0
- package/dist-cjs/commands/StartImportCommand.js +36 -0
- package/dist-cjs/commands/StopImportCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +148 -3
- package/dist-cjs/pagination/ListImportFailuresPaginator.js +36 -0
- package/dist-cjs/pagination/ListImportsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +575 -2
- package/dist-es/CloudTrail.js +75 -0
- package/dist-es/commands/GetImportCommand.js +39 -0
- package/dist-es/commands/ListImportFailuresCommand.js +39 -0
- package/dist-es/commands/ListImportsCommand.js +39 -0
- package/dist-es/commands/StartImportCommand.js +39 -0
- package/dist-es/commands/StopImportCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +94 -0
- package/dist-es/pagination/ListImportFailuresPaginator.js +75 -0
- package/dist-es/pagination/ListImportsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +722 -60
- package/dist-types/CloudTrail.d.ts +71 -4
- package/dist-types/CloudTrailClient.d.ts +7 -2
- package/dist-types/commands/GetEventSelectorsCommand.d.ts +15 -2
- package/dist-types/commands/GetImportCommand.d.ts +37 -0
- package/dist-types/commands/ListImportFailuresCommand.d.ts +37 -0
- package/dist-types/commands/ListImportsCommand.d.ts +37 -0
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +3 -2
- package/dist-types/commands/StartImportCommand.d.ts +45 -0
- package/dist-types/commands/StopImportCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +602 -4
- package/dist-types/pagination/ListImportFailuresPaginator.d.ts +4 -0
- package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudTrail.d.ts +85 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListImportFailuresCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/StopImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +197 -0
- package/dist-types/ts3.4/pagination/ListImportFailuresPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/package.json +26 -26
package/dist-es/CloudTrail.js
CHANGED
|
@@ -11,12 +11,15 @@ import { DescribeTrailsCommand, } from "./commands/DescribeTrailsCommand";
|
|
|
11
11
|
import { GetChannelCommand } from "./commands/GetChannelCommand";
|
|
12
12
|
import { GetEventDataStoreCommand, } from "./commands/GetEventDataStoreCommand";
|
|
13
13
|
import { GetEventSelectorsCommand, } from "./commands/GetEventSelectorsCommand";
|
|
14
|
+
import { GetImportCommand } from "./commands/GetImportCommand";
|
|
14
15
|
import { GetInsightSelectorsCommand, } from "./commands/GetInsightSelectorsCommand";
|
|
15
16
|
import { GetQueryResultsCommand, } from "./commands/GetQueryResultsCommand";
|
|
16
17
|
import { GetTrailCommand } from "./commands/GetTrailCommand";
|
|
17
18
|
import { GetTrailStatusCommand, } from "./commands/GetTrailStatusCommand";
|
|
18
19
|
import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
|
|
19
20
|
import { ListEventDataStoresCommand, } from "./commands/ListEventDataStoresCommand";
|
|
21
|
+
import { ListImportFailuresCommand, } from "./commands/ListImportFailuresCommand";
|
|
22
|
+
import { ListImportsCommand } from "./commands/ListImportsCommand";
|
|
20
23
|
import { ListPublicKeysCommand, } from "./commands/ListPublicKeysCommand";
|
|
21
24
|
import { ListQueriesCommand } from "./commands/ListQueriesCommand";
|
|
22
25
|
import { ListTagsCommand } from "./commands/ListTagsCommand";
|
|
@@ -26,8 +29,10 @@ import { PutEventSelectorsCommand, } from "./commands/PutEventSelectorsCommand";
|
|
|
26
29
|
import { PutInsightSelectorsCommand, } from "./commands/PutInsightSelectorsCommand";
|
|
27
30
|
import { RemoveTagsCommand } from "./commands/RemoveTagsCommand";
|
|
28
31
|
import { RestoreEventDataStoreCommand, } from "./commands/RestoreEventDataStoreCommand";
|
|
32
|
+
import { StartImportCommand } from "./commands/StartImportCommand";
|
|
29
33
|
import { StartLoggingCommand, } from "./commands/StartLoggingCommand";
|
|
30
34
|
import { StartQueryCommand } from "./commands/StartQueryCommand";
|
|
35
|
+
import { StopImportCommand } from "./commands/StopImportCommand";
|
|
31
36
|
import { StopLoggingCommand } from "./commands/StopLoggingCommand";
|
|
32
37
|
import { UpdateEventDataStoreCommand, } from "./commands/UpdateEventDataStoreCommand";
|
|
33
38
|
import { UpdateTrailCommand } from "./commands/UpdateTrailCommand";
|
|
@@ -190,6 +195,20 @@ var CloudTrail = (function (_super) {
|
|
|
190
195
|
return this.send(command, optionsOrCb);
|
|
191
196
|
}
|
|
192
197
|
};
|
|
198
|
+
CloudTrail.prototype.getImport = function (args, optionsOrCb, cb) {
|
|
199
|
+
var command = new GetImportCommand(args);
|
|
200
|
+
if (typeof optionsOrCb === "function") {
|
|
201
|
+
this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
else if (typeof cb === "function") {
|
|
204
|
+
if (typeof optionsOrCb !== "object")
|
|
205
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
206
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return this.send(command, optionsOrCb);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
193
212
|
CloudTrail.prototype.getInsightSelectors = function (args, optionsOrCb, cb) {
|
|
194
213
|
var command = new GetInsightSelectorsCommand(args);
|
|
195
214
|
if (typeof optionsOrCb === "function") {
|
|
@@ -274,6 +293,34 @@ var CloudTrail = (function (_super) {
|
|
|
274
293
|
return this.send(command, optionsOrCb);
|
|
275
294
|
}
|
|
276
295
|
};
|
|
296
|
+
CloudTrail.prototype.listImportFailures = function (args, optionsOrCb, cb) {
|
|
297
|
+
var command = new ListImportFailuresCommand(args);
|
|
298
|
+
if (typeof optionsOrCb === "function") {
|
|
299
|
+
this.send(command, optionsOrCb);
|
|
300
|
+
}
|
|
301
|
+
else if (typeof cb === "function") {
|
|
302
|
+
if (typeof optionsOrCb !== "object")
|
|
303
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
304
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
CloudTrail.prototype.listImports = function (args, optionsOrCb, cb) {
|
|
311
|
+
var command = new ListImportsCommand(args);
|
|
312
|
+
if (typeof optionsOrCb === "function") {
|
|
313
|
+
this.send(command, optionsOrCb);
|
|
314
|
+
}
|
|
315
|
+
else if (typeof cb === "function") {
|
|
316
|
+
if (typeof optionsOrCb !== "object")
|
|
317
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
318
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
return this.send(command, optionsOrCb);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
277
324
|
CloudTrail.prototype.listPublicKeys = function (args, optionsOrCb, cb) {
|
|
278
325
|
var command = new ListPublicKeysCommand(args);
|
|
279
326
|
if (typeof optionsOrCb === "function") {
|
|
@@ -400,6 +447,20 @@ var CloudTrail = (function (_super) {
|
|
|
400
447
|
return this.send(command, optionsOrCb);
|
|
401
448
|
}
|
|
402
449
|
};
|
|
450
|
+
CloudTrail.prototype.startImport = function (args, optionsOrCb, cb) {
|
|
451
|
+
var command = new StartImportCommand(args);
|
|
452
|
+
if (typeof optionsOrCb === "function") {
|
|
453
|
+
this.send(command, optionsOrCb);
|
|
454
|
+
}
|
|
455
|
+
else if (typeof cb === "function") {
|
|
456
|
+
if (typeof optionsOrCb !== "object")
|
|
457
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
458
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
return this.send(command, optionsOrCb);
|
|
462
|
+
}
|
|
463
|
+
};
|
|
403
464
|
CloudTrail.prototype.startLogging = function (args, optionsOrCb, cb) {
|
|
404
465
|
var command = new StartLoggingCommand(args);
|
|
405
466
|
if (typeof optionsOrCb === "function") {
|
|
@@ -428,6 +489,20 @@ var CloudTrail = (function (_super) {
|
|
|
428
489
|
return this.send(command, optionsOrCb);
|
|
429
490
|
}
|
|
430
491
|
};
|
|
492
|
+
CloudTrail.prototype.stopImport = function (args, optionsOrCb, cb) {
|
|
493
|
+
var command = new StopImportCommand(args);
|
|
494
|
+
if (typeof optionsOrCb === "function") {
|
|
495
|
+
this.send(command, optionsOrCb);
|
|
496
|
+
}
|
|
497
|
+
else if (typeof cb === "function") {
|
|
498
|
+
if (typeof optionsOrCb !== "object")
|
|
499
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
500
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
return this.send(command, optionsOrCb);
|
|
504
|
+
}
|
|
505
|
+
};
|
|
431
506
|
CloudTrail.prototype.stopLogging = function (args, optionsOrCb, cb) {
|
|
432
507
|
var command = new StopLoggingCommand(args);
|
|
433
508
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetImportRequestFilterSensitiveLog, GetImportResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetImportCommand, serializeAws_json1_1GetImportCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetImportCommand = (function (_super) {
|
|
7
|
+
__extends(GetImportCommand, _super);
|
|
8
|
+
function GetImportCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetImportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudTrailClient";
|
|
18
|
+
var commandName = "GetImportCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetImportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetImportResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetImportCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetImportCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetImportCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetImportCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetImportCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetImportCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListImportFailuresRequestFilterSensitiveLog, ListImportFailuresResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListImportFailuresCommand, serializeAws_json1_1ListImportFailuresCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListImportFailuresCommand = (function (_super) {
|
|
7
|
+
__extends(ListImportFailuresCommand, _super);
|
|
8
|
+
function ListImportFailuresCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListImportFailuresCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudTrailClient";
|
|
18
|
+
var commandName = "ListImportFailuresCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListImportFailuresRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListImportFailuresResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListImportFailuresCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListImportFailuresCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListImportFailuresCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListImportFailuresCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListImportFailuresCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListImportFailuresCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListImportsRequestFilterSensitiveLog, ListImportsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListImportsCommand, serializeAws_json1_1ListImportsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListImportsCommand = (function (_super) {
|
|
7
|
+
__extends(ListImportsCommand, _super);
|
|
8
|
+
function ListImportsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListImportsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudTrailClient";
|
|
18
|
+
var commandName = "ListImportsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListImportsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListImportsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListImportsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListImportsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListImportsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListImportsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListImportsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListImportsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { StartImportRequestFilterSensitiveLog, StartImportResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1StartImportCommand, serializeAws_json1_1StartImportCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var StartImportCommand = (function (_super) {
|
|
7
|
+
__extends(StartImportCommand, _super);
|
|
8
|
+
function StartImportCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
StartImportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudTrailClient";
|
|
18
|
+
var commandName = "StartImportCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: StartImportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: StartImportResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
StartImportCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1StartImportCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
StartImportCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1StartImportCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return StartImportCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StartImportCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { StopImportRequestFilterSensitiveLog, StopImportResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1StopImportCommand, serializeAws_json1_1StopImportCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var StopImportCommand = (function (_super) {
|
|
7
|
+
__extends(StopImportCommand, _super);
|
|
8
|
+
function StopImportCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
StopImportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudTrailClient";
|
|
18
|
+
var commandName = "StopImportCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: StopImportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: StopImportResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
StopImportCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1StopImportCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
StopImportCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1StopImportCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return StopImportCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StopImportCommand };
|
|
@@ -9,12 +9,15 @@ export * from "./DescribeTrailsCommand";
|
|
|
9
9
|
export * from "./GetChannelCommand";
|
|
10
10
|
export * from "./GetEventDataStoreCommand";
|
|
11
11
|
export * from "./GetEventSelectorsCommand";
|
|
12
|
+
export * from "./GetImportCommand";
|
|
12
13
|
export * from "./GetInsightSelectorsCommand";
|
|
13
14
|
export * from "./GetQueryResultsCommand";
|
|
14
15
|
export * from "./GetTrailCommand";
|
|
15
16
|
export * from "./GetTrailStatusCommand";
|
|
16
17
|
export * from "./ListChannelsCommand";
|
|
17
18
|
export * from "./ListEventDataStoresCommand";
|
|
19
|
+
export * from "./ListImportFailuresCommand";
|
|
20
|
+
export * from "./ListImportsCommand";
|
|
18
21
|
export * from "./ListPublicKeysCommand";
|
|
19
22
|
export * from "./ListQueriesCommand";
|
|
20
23
|
export * from "./ListTagsCommand";
|
|
@@ -24,8 +27,10 @@ export * from "./PutEventSelectorsCommand";
|
|
|
24
27
|
export * from "./PutInsightSelectorsCommand";
|
|
25
28
|
export * from "./RemoveTagsCommand";
|
|
26
29
|
export * from "./RestoreEventDataStoreCommand";
|
|
30
|
+
export * from "./StartImportCommand";
|
|
27
31
|
export * from "./StartLoggingCommand";
|
|
28
32
|
export * from "./StartQueryCommand";
|
|
33
|
+
export * from "./StopImportCommand";
|
|
29
34
|
export * from "./StopLoggingCommand";
|
|
30
35
|
export * from "./UpdateEventDataStoreCommand";
|
|
31
36
|
export * from "./UpdateTrailCommand";
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { CloudTrailServiceException as __BaseException } from "./CloudTrailServiceException";
|
|
3
|
+
var AccountHasOngoingImportException = (function (_super) {
|
|
4
|
+
__extends(AccountHasOngoingImportException, _super);
|
|
5
|
+
function AccountHasOngoingImportException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccountHasOngoingImportException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccountHasOngoingImportException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccountHasOngoingImportException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
return AccountHasOngoingImportException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccountHasOngoingImportException };
|
|
3
16
|
var CloudTrailARNInvalidException = (function (_super) {
|
|
4
17
|
__extends(CloudTrailARNInvalidException, _super);
|
|
5
18
|
function CloudTrailARNInvalidException(opts) {
|
|
@@ -574,6 +587,19 @@ var TrailNotProvidedException = (function (_super) {
|
|
|
574
587
|
return TrailNotProvidedException;
|
|
575
588
|
}(__BaseException));
|
|
576
589
|
export { TrailNotProvidedException };
|
|
590
|
+
var EventDataStoreHasOngoingImportException = (function (_super) {
|
|
591
|
+
__extends(EventDataStoreHasOngoingImportException, _super);
|
|
592
|
+
function EventDataStoreHasOngoingImportException(opts) {
|
|
593
|
+
var _this = _super.call(this, __assign({ name: "EventDataStoreHasOngoingImportException", $fault: "client" }, opts)) || this;
|
|
594
|
+
_this.name = "EventDataStoreHasOngoingImportException";
|
|
595
|
+
_this.$fault = "client";
|
|
596
|
+
Object.setPrototypeOf(_this, EventDataStoreHasOngoingImportException.prototype);
|
|
597
|
+
_this.Message = opts.Message;
|
|
598
|
+
return _this;
|
|
599
|
+
}
|
|
600
|
+
return EventDataStoreHasOngoingImportException;
|
|
601
|
+
}(__BaseException));
|
|
602
|
+
export { EventDataStoreHasOngoingImportException };
|
|
577
603
|
var EventDataStoreTerminationProtectedException = (function (_super) {
|
|
578
604
|
__extends(EventDataStoreTerminationProtectedException, _super);
|
|
579
605
|
function EventDataStoreTerminationProtectedException(opts) {
|
|
@@ -624,6 +650,27 @@ export var ReadWriteType;
|
|
|
624
650
|
ReadWriteType["ReadOnly"] = "ReadOnly";
|
|
625
651
|
ReadWriteType["WriteOnly"] = "WriteOnly";
|
|
626
652
|
})(ReadWriteType || (ReadWriteType = {}));
|
|
653
|
+
export var ImportStatus;
|
|
654
|
+
(function (ImportStatus) {
|
|
655
|
+
ImportStatus["COMPLETED"] = "COMPLETED";
|
|
656
|
+
ImportStatus["FAILED"] = "FAILED";
|
|
657
|
+
ImportStatus["INITIALIZING"] = "INITIALIZING";
|
|
658
|
+
ImportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
659
|
+
ImportStatus["STOPPED"] = "STOPPED";
|
|
660
|
+
})(ImportStatus || (ImportStatus = {}));
|
|
661
|
+
var ImportNotFoundException = (function (_super) {
|
|
662
|
+
__extends(ImportNotFoundException, _super);
|
|
663
|
+
function ImportNotFoundException(opts) {
|
|
664
|
+
var _this = _super.call(this, __assign({ name: "ImportNotFoundException", $fault: "client" }, opts)) || this;
|
|
665
|
+
_this.name = "ImportNotFoundException";
|
|
666
|
+
_this.$fault = "client";
|
|
667
|
+
Object.setPrototypeOf(_this, ImportNotFoundException.prototype);
|
|
668
|
+
_this.Message = opts.Message;
|
|
669
|
+
return _this;
|
|
670
|
+
}
|
|
671
|
+
return ImportNotFoundException;
|
|
672
|
+
}(__BaseException));
|
|
673
|
+
export { ImportNotFoundException };
|
|
627
674
|
export var InsightType;
|
|
628
675
|
(function (InsightType) {
|
|
629
676
|
InsightType["ApiCallRateInsight"] = "ApiCallRateInsight";
|
|
@@ -668,6 +715,12 @@ var InvalidNextTokenException = (function (_super) {
|
|
|
668
715
|
return InvalidNextTokenException;
|
|
669
716
|
}(__BaseException));
|
|
670
717
|
export { InvalidNextTokenException };
|
|
718
|
+
export var ImportFailureStatus;
|
|
719
|
+
(function (ImportFailureStatus) {
|
|
720
|
+
ImportFailureStatus["FAILED"] = "FAILED";
|
|
721
|
+
ImportFailureStatus["RETRY"] = "RETRY";
|
|
722
|
+
ImportFailureStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
723
|
+
})(ImportFailureStatus || (ImportFailureStatus = {}));
|
|
671
724
|
var InvalidTimeRangeException = (function (_super) {
|
|
672
725
|
__extends(InvalidTimeRangeException, _super);
|
|
673
726
|
function InvalidTimeRangeException(opts) {
|
|
@@ -800,6 +853,32 @@ var InvalidEventDataStoreStatusException = (function (_super) {
|
|
|
800
853
|
return InvalidEventDataStoreStatusException;
|
|
801
854
|
}(__BaseException));
|
|
802
855
|
export { InvalidEventDataStoreStatusException };
|
|
856
|
+
var InvalidEventDataStoreCategoryException = (function (_super) {
|
|
857
|
+
__extends(InvalidEventDataStoreCategoryException, _super);
|
|
858
|
+
function InvalidEventDataStoreCategoryException(opts) {
|
|
859
|
+
var _this = _super.call(this, __assign({ name: "InvalidEventDataStoreCategoryException", $fault: "client" }, opts)) || this;
|
|
860
|
+
_this.name = "InvalidEventDataStoreCategoryException";
|
|
861
|
+
_this.$fault = "client";
|
|
862
|
+
Object.setPrototypeOf(_this, InvalidEventDataStoreCategoryException.prototype);
|
|
863
|
+
_this.Message = opts.Message;
|
|
864
|
+
return _this;
|
|
865
|
+
}
|
|
866
|
+
return InvalidEventDataStoreCategoryException;
|
|
867
|
+
}(__BaseException));
|
|
868
|
+
export { InvalidEventDataStoreCategoryException };
|
|
869
|
+
var InvalidImportSourceException = (function (_super) {
|
|
870
|
+
__extends(InvalidImportSourceException, _super);
|
|
871
|
+
function InvalidImportSourceException(opts) {
|
|
872
|
+
var _this = _super.call(this, __assign({ name: "InvalidImportSourceException", $fault: "client" }, opts)) || this;
|
|
873
|
+
_this.name = "InvalidImportSourceException";
|
|
874
|
+
_this.$fault = "client";
|
|
875
|
+
Object.setPrototypeOf(_this, InvalidImportSourceException.prototype);
|
|
876
|
+
_this.Message = opts.Message;
|
|
877
|
+
return _this;
|
|
878
|
+
}
|
|
879
|
+
return InvalidImportSourceException;
|
|
880
|
+
}(__BaseException));
|
|
881
|
+
export { InvalidImportSourceException };
|
|
803
882
|
var InvalidQueryStatementException = (function (_super) {
|
|
804
883
|
__extends(InvalidQueryStatementException, _super);
|
|
805
884
|
function InvalidQueryStatementException(opts) {
|
|
@@ -858,6 +937,11 @@ export var GetEventSelectorsRequestFilterSensitiveLog = function (obj) { return
|
|
|
858
937
|
export var DataResourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
859
938
|
export var EventSelectorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
860
939
|
export var GetEventSelectorsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
940
|
+
export var GetImportRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
941
|
+
export var S3ImportSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
942
|
+
export var ImportSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
943
|
+
export var ImportStatisticsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
944
|
+
export var GetImportResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
861
945
|
export var GetInsightSelectorsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
862
946
|
export var InsightSelectorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
863
947
|
export var GetInsightSelectorsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -873,6 +957,12 @@ export var ListChannelsResponseFilterSensitiveLog = function (obj) { return (__a
|
|
|
873
957
|
export var ListEventDataStoresRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
874
958
|
export var EventDataStoreFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
875
959
|
export var ListEventDataStoresResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
960
|
+
export var ListImportFailuresRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
961
|
+
export var ImportFailureListItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
962
|
+
export var ListImportFailuresResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
963
|
+
export var ListImportsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
964
|
+
export var ImportsListItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
965
|
+
export var ListImportsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
876
966
|
export var ListPublicKeysRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
877
967
|
export var PublicKeyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
878
968
|
export var ListPublicKeysResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -898,10 +988,14 @@ export var RemoveTagsRequestFilterSensitiveLog = function (obj) { return (__assi
|
|
|
898
988
|
export var RemoveTagsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
899
989
|
export var RestoreEventDataStoreRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
900
990
|
export var RestoreEventDataStoreResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
991
|
+
export var StartImportRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
992
|
+
export var StartImportResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
901
993
|
export var StartLoggingRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
902
994
|
export var StartLoggingResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
903
995
|
export var StartQueryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
904
996
|
export var StartQueryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
997
|
+
export var StopImportRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
998
|
+
export var StopImportResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
905
999
|
export var StopLoggingRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
906
1000
|
export var StopLoggingResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
907
1001
|
export var UpdateEventDataStoreRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { CloudTrail } from "../CloudTrail";
|
|
3
|
+
import { CloudTrailClient } from "../CloudTrailClient";
|
|
4
|
+
import { ListImportFailuresCommand, } from "../commands/ListImportFailuresCommand";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListImportFailuresCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listImportFailures.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListImportFailures(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListImportFailures_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { CloudTrail } from "../CloudTrail";
|
|
3
|
+
import { CloudTrailClient } from "../CloudTrailClient";
|
|
4
|
+
import { ListImportsCommand } from "../commands/ListImportsCommand";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListImportsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listImports.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListImports(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListImports_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -2,6 +2,8 @@ export * from "./GetQueryResultsPaginator";
|
|
|
2
2
|
export * from "./Interfaces";
|
|
3
3
|
export * from "./ListChannelsPaginator";
|
|
4
4
|
export * from "./ListEventDataStoresPaginator";
|
|
5
|
+
export * from "./ListImportFailuresPaginator";
|
|
6
|
+
export * from "./ListImportsPaginator";
|
|
5
7
|
export * from "./ListPublicKeysPaginator";
|
|
6
8
|
export * from "./ListQueriesPaginator";
|
|
7
9
|
export * from "./ListTagsPaginator";
|