@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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudtrail
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.174.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.173.0...v3.174.0) (2022-09-19)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-cloudtrail:** This release includes support for importing existing trails into CloudTrail Lake. ([464cb91](https://github.com/aws/aws-sdk-js-v3/commit/464cb91ea65053f01eb9c49c3a45e962b1bb1764))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-cloudtrail
|
package/dist-cjs/CloudTrail.js
CHANGED
|
@@ -13,12 +13,15 @@ const DescribeTrailsCommand_1 = require("./commands/DescribeTrailsCommand");
|
|
|
13
13
|
const GetChannelCommand_1 = require("./commands/GetChannelCommand");
|
|
14
14
|
const GetEventDataStoreCommand_1 = require("./commands/GetEventDataStoreCommand");
|
|
15
15
|
const GetEventSelectorsCommand_1 = require("./commands/GetEventSelectorsCommand");
|
|
16
|
+
const GetImportCommand_1 = require("./commands/GetImportCommand");
|
|
16
17
|
const GetInsightSelectorsCommand_1 = require("./commands/GetInsightSelectorsCommand");
|
|
17
18
|
const GetQueryResultsCommand_1 = require("./commands/GetQueryResultsCommand");
|
|
18
19
|
const GetTrailCommand_1 = require("./commands/GetTrailCommand");
|
|
19
20
|
const GetTrailStatusCommand_1 = require("./commands/GetTrailStatusCommand");
|
|
20
21
|
const ListChannelsCommand_1 = require("./commands/ListChannelsCommand");
|
|
21
22
|
const ListEventDataStoresCommand_1 = require("./commands/ListEventDataStoresCommand");
|
|
23
|
+
const ListImportFailuresCommand_1 = require("./commands/ListImportFailuresCommand");
|
|
24
|
+
const ListImportsCommand_1 = require("./commands/ListImportsCommand");
|
|
22
25
|
const ListPublicKeysCommand_1 = require("./commands/ListPublicKeysCommand");
|
|
23
26
|
const ListQueriesCommand_1 = require("./commands/ListQueriesCommand");
|
|
24
27
|
const ListTagsCommand_1 = require("./commands/ListTagsCommand");
|
|
@@ -28,8 +31,10 @@ const PutEventSelectorsCommand_1 = require("./commands/PutEventSelectorsCommand"
|
|
|
28
31
|
const PutInsightSelectorsCommand_1 = require("./commands/PutInsightSelectorsCommand");
|
|
29
32
|
const RemoveTagsCommand_1 = require("./commands/RemoveTagsCommand");
|
|
30
33
|
const RestoreEventDataStoreCommand_1 = require("./commands/RestoreEventDataStoreCommand");
|
|
34
|
+
const StartImportCommand_1 = require("./commands/StartImportCommand");
|
|
31
35
|
const StartLoggingCommand_1 = require("./commands/StartLoggingCommand");
|
|
32
36
|
const StartQueryCommand_1 = require("./commands/StartQueryCommand");
|
|
37
|
+
const StopImportCommand_1 = require("./commands/StopImportCommand");
|
|
33
38
|
const StopLoggingCommand_1 = require("./commands/StopLoggingCommand");
|
|
34
39
|
const UpdateEventDataStoreCommand_1 = require("./commands/UpdateEventDataStoreCommand");
|
|
35
40
|
const UpdateTrailCommand_1 = require("./commands/UpdateTrailCommand");
|
|
@@ -188,6 +193,20 @@ class CloudTrail extends CloudTrailClient_1.CloudTrailClient {
|
|
|
188
193
|
return this.send(command, optionsOrCb);
|
|
189
194
|
}
|
|
190
195
|
}
|
|
196
|
+
getImport(args, optionsOrCb, cb) {
|
|
197
|
+
const command = new GetImportCommand_1.GetImportCommand(args);
|
|
198
|
+
if (typeof optionsOrCb === "function") {
|
|
199
|
+
this.send(command, optionsOrCb);
|
|
200
|
+
}
|
|
201
|
+
else if (typeof cb === "function") {
|
|
202
|
+
if (typeof optionsOrCb !== "object")
|
|
203
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
204
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
return this.send(command, optionsOrCb);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
191
210
|
getInsightSelectors(args, optionsOrCb, cb) {
|
|
192
211
|
const command = new GetInsightSelectorsCommand_1.GetInsightSelectorsCommand(args);
|
|
193
212
|
if (typeof optionsOrCb === "function") {
|
|
@@ -272,6 +291,34 @@ class CloudTrail extends CloudTrailClient_1.CloudTrailClient {
|
|
|
272
291
|
return this.send(command, optionsOrCb);
|
|
273
292
|
}
|
|
274
293
|
}
|
|
294
|
+
listImportFailures(args, optionsOrCb, cb) {
|
|
295
|
+
const command = new ListImportFailuresCommand_1.ListImportFailuresCommand(args);
|
|
296
|
+
if (typeof optionsOrCb === "function") {
|
|
297
|
+
this.send(command, optionsOrCb);
|
|
298
|
+
}
|
|
299
|
+
else if (typeof cb === "function") {
|
|
300
|
+
if (typeof optionsOrCb !== "object")
|
|
301
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
302
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
return this.send(command, optionsOrCb);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
listImports(args, optionsOrCb, cb) {
|
|
309
|
+
const command = new ListImportsCommand_1.ListImportsCommand(args);
|
|
310
|
+
if (typeof optionsOrCb === "function") {
|
|
311
|
+
this.send(command, optionsOrCb);
|
|
312
|
+
}
|
|
313
|
+
else if (typeof cb === "function") {
|
|
314
|
+
if (typeof optionsOrCb !== "object")
|
|
315
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
316
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
return this.send(command, optionsOrCb);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
275
322
|
listPublicKeys(args, optionsOrCb, cb) {
|
|
276
323
|
const command = new ListPublicKeysCommand_1.ListPublicKeysCommand(args);
|
|
277
324
|
if (typeof optionsOrCb === "function") {
|
|
@@ -398,6 +445,20 @@ class CloudTrail extends CloudTrailClient_1.CloudTrailClient {
|
|
|
398
445
|
return this.send(command, optionsOrCb);
|
|
399
446
|
}
|
|
400
447
|
}
|
|
448
|
+
startImport(args, optionsOrCb, cb) {
|
|
449
|
+
const command = new StartImportCommand_1.StartImportCommand(args);
|
|
450
|
+
if (typeof optionsOrCb === "function") {
|
|
451
|
+
this.send(command, optionsOrCb);
|
|
452
|
+
}
|
|
453
|
+
else if (typeof cb === "function") {
|
|
454
|
+
if (typeof optionsOrCb !== "object")
|
|
455
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
456
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
457
|
+
}
|
|
458
|
+
else {
|
|
459
|
+
return this.send(command, optionsOrCb);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
401
462
|
startLogging(args, optionsOrCb, cb) {
|
|
402
463
|
const command = new StartLoggingCommand_1.StartLoggingCommand(args);
|
|
403
464
|
if (typeof optionsOrCb === "function") {
|
|
@@ -426,6 +487,20 @@ class CloudTrail extends CloudTrailClient_1.CloudTrailClient {
|
|
|
426
487
|
return this.send(command, optionsOrCb);
|
|
427
488
|
}
|
|
428
489
|
}
|
|
490
|
+
stopImport(args, optionsOrCb, cb) {
|
|
491
|
+
const command = new StopImportCommand_1.StopImportCommand(args);
|
|
492
|
+
if (typeof optionsOrCb === "function") {
|
|
493
|
+
this.send(command, optionsOrCb);
|
|
494
|
+
}
|
|
495
|
+
else if (typeof cb === "function") {
|
|
496
|
+
if (typeof optionsOrCb !== "object")
|
|
497
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
498
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
return this.send(command, optionsOrCb);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
429
504
|
stopLogging(args, optionsOrCb, cb) {
|
|
430
505
|
const command = new StopLoggingCommand_1.StopLoggingCommand(args);
|
|
431
506
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetImportCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetImportCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudTrailClient";
|
|
18
|
+
const commandName = "GetImportCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetImportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetImportResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1GetImportCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1GetImportCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetImportCommand = GetImportCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListImportFailuresCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListImportFailuresCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudTrailClient";
|
|
18
|
+
const commandName = "ListImportFailuresCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListImportFailuresRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListImportFailuresResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListImportFailuresCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListImportFailuresCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListImportFailuresCommand = ListImportFailuresCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListImportsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListImportsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudTrailClient";
|
|
18
|
+
const commandName = "ListImportsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListImportsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListImportsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListImportsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListImportsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListImportsCommand = ListImportsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartImportCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class StartImportCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudTrailClient";
|
|
18
|
+
const commandName = "StartImportCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StartImportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.StartImportResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1StartImportCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1StartImportCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StartImportCommand = StartImportCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopImportCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class StopImportCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudTrailClient";
|
|
18
|
+
const commandName = "StopImportCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StopImportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.StopImportResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1StopImportCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1StopImportCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StopImportCommand = StopImportCommand;
|
|
@@ -12,12 +12,15 @@ tslib_1.__exportStar(require("./DescribeTrailsCommand"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./GetChannelCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./GetEventDataStoreCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./GetEventSelectorsCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./GetImportCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./GetInsightSelectorsCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./GetQueryResultsCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./GetTrailCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./GetTrailStatusCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./ListChannelsCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./ListEventDataStoresCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./ListImportFailuresCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./ListImportsCommand"), exports);
|
|
21
24
|
tslib_1.__exportStar(require("./ListPublicKeysCommand"), exports);
|
|
22
25
|
tslib_1.__exportStar(require("./ListQueriesCommand"), exports);
|
|
23
26
|
tslib_1.__exportStar(require("./ListTagsCommand"), exports);
|
|
@@ -27,8 +30,10 @@ tslib_1.__exportStar(require("./PutEventSelectorsCommand"), exports);
|
|
|
27
30
|
tslib_1.__exportStar(require("./PutInsightSelectorsCommand"), exports);
|
|
28
31
|
tslib_1.__exportStar(require("./RemoveTagsCommand"), exports);
|
|
29
32
|
tslib_1.__exportStar(require("./RestoreEventDataStoreCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./StartImportCommand"), exports);
|
|
30
34
|
tslib_1.__exportStar(require("./StartLoggingCommand"), exports);
|
|
31
35
|
tslib_1.__exportStar(require("./StartQueryCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./StopImportCommand"), exports);
|
|
32
37
|
tslib_1.__exportStar(require("./StopLoggingCommand"), exports);
|
|
33
38
|
tslib_1.__exportStar(require("./UpdateEventDataStoreCommand"), exports);
|
|
34
39
|
tslib_1.__exportStar(require("./UpdateTrailCommand"), exports);
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.EventDataStoreTerminationProtectedException = exports.EventDataStoreHasOngoingImportException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyNotFoundException = exports.KmsKeyDisabledException = exports.KmsException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = exports.InvalidParameterCombinationException = exports.InvalidKmsKeyIdException = exports.InvalidCloudWatchLogsRoleArnException = exports.InvalidCloudWatchLogsLogGroupArnException = exports.InsufficientSnsTopicPolicyException = exports.InsufficientS3BucketPolicyException = exports.InsufficientEncryptionPolicyException = exports.CloudWatchLogsDeliveryUnavailableException = exports.CloudTrailInvalidClientTokenIdException = exports.OrganizationsNotInUseException = exports.OrganizationNotInAllFeaturesModeException = exports.InsufficientDependencyServiceAccessPermissionException = exports.EventDataStoreMaxLimitExceededException = exports.EventDataStoreAlreadyExistsException = exports.EventDataStoreStatus = exports.CloudTrailAccessNotEnabledException = exports.ChannelNotFoundException = exports.ChannelARNInvalidException = exports.QueryIdNotFoundException = exports.InvalidParameterException = exports.InactiveQueryException = exports.EventDataStoreARNInvalidException = exports.QueryStatus = exports.UnsupportedOperationException = exports.TagsLimitExceededException = exports.ResourceTypeNotSupportedException = exports.ResourceNotFoundException = exports.OperationNotPermittedException = exports.NotOrganizationMasterAccountException = exports.InvalidTrailNameException = exports.InvalidTagParameterException = exports.InactiveEventDataStoreException = exports.EventDataStoreNotFoundException = exports.ConflictException = exports.CloudTrailARNInvalidException = exports.AccountHasOngoingImportException = void 0;
|
|
4
|
+
exports.GetChannelResponseFilterSensitiveLog = exports.SourceConfigFilterSensitiveLog = exports.DestinationFilterSensitiveLog = exports.GetChannelRequestFilterSensitiveLog = exports.DescribeTrailsResponseFilterSensitiveLog = exports.TrailFilterSensitiveLog = exports.DescribeTrailsRequestFilterSensitiveLog = exports.DescribeQueryResponseFilterSensitiveLog = exports.QueryStatisticsForDescribeQueryFilterSensitiveLog = exports.DescribeQueryRequestFilterSensitiveLog = exports.DeleteTrailResponseFilterSensitiveLog = exports.DeleteTrailRequestFilterSensitiveLog = exports.DeleteEventDataStoreResponseFilterSensitiveLog = exports.DeleteEventDataStoreRequestFilterSensitiveLog = exports.CreateTrailResponseFilterSensitiveLog = exports.CreateTrailRequestFilterSensitiveLog = exports.CreateEventDataStoreResponseFilterSensitiveLog = exports.CreateEventDataStoreRequestFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.CancelQueryResponseFilterSensitiveLog = exports.CancelQueryRequestFilterSensitiveLog = exports.AdvancedEventSelectorFilterSensitiveLog = exports.AdvancedFieldSelectorFilterSensitiveLog = exports.AddTagsResponseFilterSensitiveLog = exports.AddTagsRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreCategoryException = exports.InvalidEventDataStoreStatusException = exports.InvalidInsightSelectorsException = exports.InvalidEventSelectorsException = exports.LookupAttributeKey = exports.EventCategory = exports.InvalidLookupAttributesException = exports.InvalidEventCategoryException = exports.InvalidQueryStatusException = exports.InvalidDateRangeException = exports.InvalidTokenException = exports.InvalidTimeRangeException = exports.ImportFailureStatus = exports.InvalidNextTokenException = exports.InvalidMaxResultsException = exports.InsightNotEnabledException = exports.InsightType = exports.ImportNotFoundException = exports.ImportStatus = exports.ReadWriteType = exports.DestinationType = void 0;
|
|
5
|
+
exports.PutEventSelectorsRequestFilterSensitiveLog = exports.LookupEventsResponseFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.LookupEventsRequestFilterSensitiveLog = exports.LookupAttributeFilterSensitiveLog = exports.ListTrailsResponseFilterSensitiveLog = exports.TrailInfoFilterSensitiveLog = exports.ListTrailsRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ResourceTagFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListQueriesResponseFilterSensitiveLog = exports.QueryFilterSensitiveLog = exports.ListQueriesRequestFilterSensitiveLog = exports.ListPublicKeysResponseFilterSensitiveLog = exports.PublicKeyFilterSensitiveLog = exports.ListPublicKeysRequestFilterSensitiveLog = exports.ListImportsResponseFilterSensitiveLog = exports.ImportsListItemFilterSensitiveLog = exports.ListImportsRequestFilterSensitiveLog = exports.ListImportFailuresResponseFilterSensitiveLog = exports.ImportFailureListItemFilterSensitiveLog = exports.ListImportFailuresRequestFilterSensitiveLog = exports.ListEventDataStoresResponseFilterSensitiveLog = exports.EventDataStoreFilterSensitiveLog = exports.ListEventDataStoresRequestFilterSensitiveLog = exports.ListChannelsResponseFilterSensitiveLog = exports.ListChannelsRequestFilterSensitiveLog = exports.GetTrailStatusResponseFilterSensitiveLog = exports.GetTrailStatusRequestFilterSensitiveLog = exports.GetTrailResponseFilterSensitiveLog = exports.GetTrailRequestFilterSensitiveLog = exports.GetQueryResultsResponseFilterSensitiveLog = exports.QueryStatisticsFilterSensitiveLog = exports.GetQueryResultsRequestFilterSensitiveLog = exports.GetInsightSelectorsResponseFilterSensitiveLog = exports.InsightSelectorFilterSensitiveLog = exports.GetInsightSelectorsRequestFilterSensitiveLog = exports.GetImportResponseFilterSensitiveLog = exports.ImportStatisticsFilterSensitiveLog = exports.ImportSourceFilterSensitiveLog = exports.S3ImportSourceFilterSensitiveLog = exports.GetImportRequestFilterSensitiveLog = exports.GetEventSelectorsResponseFilterSensitiveLog = exports.EventSelectorFilterSensitiveLog = exports.DataResourceFilterSensitiveLog = exports.GetEventSelectorsRequestFilterSensitiveLog = exports.GetEventDataStoreResponseFilterSensitiveLog = exports.GetEventDataStoreRequestFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateTrailResponseFilterSensitiveLog = exports.UpdateTrailRequestFilterSensitiveLog = exports.UpdateEventDataStoreResponseFilterSensitiveLog = exports.UpdateEventDataStoreRequestFilterSensitiveLog = exports.StopLoggingResponseFilterSensitiveLog = exports.StopLoggingRequestFilterSensitiveLog = exports.StopImportResponseFilterSensitiveLog = exports.StopImportRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = exports.StartQueryRequestFilterSensitiveLog = exports.StartLoggingResponseFilterSensitiveLog = exports.StartLoggingRequestFilterSensitiveLog = exports.StartImportResponseFilterSensitiveLog = exports.StartImportRequestFilterSensitiveLog = exports.RestoreEventDataStoreResponseFilterSensitiveLog = exports.RestoreEventDataStoreRequestFilterSensitiveLog = exports.RemoveTagsResponseFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.PutInsightSelectorsResponseFilterSensitiveLog = exports.PutInsightSelectorsRequestFilterSensitiveLog = exports.PutEventSelectorsResponseFilterSensitiveLog = void 0;
|
|
6
7
|
const CloudTrailServiceException_1 = require("./CloudTrailServiceException");
|
|
8
|
+
class AccountHasOngoingImportException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccountHasOngoingImportException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
this.name = "AccountHasOngoingImportException";
|
|
16
|
+
this.$fault = "client";
|
|
17
|
+
Object.setPrototypeOf(this, AccountHasOngoingImportException.prototype);
|
|
18
|
+
this.Message = opts.Message;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AccountHasOngoingImportException = AccountHasOngoingImportException;
|
|
7
22
|
class CloudTrailARNInvalidException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
8
23
|
constructor(opts) {
|
|
9
24
|
super({
|
|
@@ -621,6 +636,20 @@ class TrailNotProvidedException extends CloudTrailServiceException_1.CloudTrailS
|
|
|
621
636
|
}
|
|
622
637
|
}
|
|
623
638
|
exports.TrailNotProvidedException = TrailNotProvidedException;
|
|
639
|
+
class EventDataStoreHasOngoingImportException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
640
|
+
constructor(opts) {
|
|
641
|
+
super({
|
|
642
|
+
name: "EventDataStoreHasOngoingImportException",
|
|
643
|
+
$fault: "client",
|
|
644
|
+
...opts,
|
|
645
|
+
});
|
|
646
|
+
this.name = "EventDataStoreHasOngoingImportException";
|
|
647
|
+
this.$fault = "client";
|
|
648
|
+
Object.setPrototypeOf(this, EventDataStoreHasOngoingImportException.prototype);
|
|
649
|
+
this.Message = opts.Message;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
exports.EventDataStoreHasOngoingImportException = EventDataStoreHasOngoingImportException;
|
|
624
653
|
class EventDataStoreTerminationProtectedException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
625
654
|
constructor(opts) {
|
|
626
655
|
super({
|
|
@@ -674,6 +703,28 @@ var ReadWriteType;
|
|
|
674
703
|
ReadWriteType["ReadOnly"] = "ReadOnly";
|
|
675
704
|
ReadWriteType["WriteOnly"] = "WriteOnly";
|
|
676
705
|
})(ReadWriteType = exports.ReadWriteType || (exports.ReadWriteType = {}));
|
|
706
|
+
var ImportStatus;
|
|
707
|
+
(function (ImportStatus) {
|
|
708
|
+
ImportStatus["COMPLETED"] = "COMPLETED";
|
|
709
|
+
ImportStatus["FAILED"] = "FAILED";
|
|
710
|
+
ImportStatus["INITIALIZING"] = "INITIALIZING";
|
|
711
|
+
ImportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
712
|
+
ImportStatus["STOPPED"] = "STOPPED";
|
|
713
|
+
})(ImportStatus = exports.ImportStatus || (exports.ImportStatus = {}));
|
|
714
|
+
class ImportNotFoundException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
715
|
+
constructor(opts) {
|
|
716
|
+
super({
|
|
717
|
+
name: "ImportNotFoundException",
|
|
718
|
+
$fault: "client",
|
|
719
|
+
...opts,
|
|
720
|
+
});
|
|
721
|
+
this.name = "ImportNotFoundException";
|
|
722
|
+
this.$fault = "client";
|
|
723
|
+
Object.setPrototypeOf(this, ImportNotFoundException.prototype);
|
|
724
|
+
this.Message = opts.Message;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
exports.ImportNotFoundException = ImportNotFoundException;
|
|
677
728
|
var InsightType;
|
|
678
729
|
(function (InsightType) {
|
|
679
730
|
InsightType["ApiCallRateInsight"] = "ApiCallRateInsight";
|
|
@@ -721,6 +772,12 @@ class InvalidNextTokenException extends CloudTrailServiceException_1.CloudTrailS
|
|
|
721
772
|
}
|
|
722
773
|
}
|
|
723
774
|
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
775
|
+
var ImportFailureStatus;
|
|
776
|
+
(function (ImportFailureStatus) {
|
|
777
|
+
ImportFailureStatus["FAILED"] = "FAILED";
|
|
778
|
+
ImportFailureStatus["RETRY"] = "RETRY";
|
|
779
|
+
ImportFailureStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
780
|
+
})(ImportFailureStatus = exports.ImportFailureStatus || (exports.ImportFailureStatus = {}));
|
|
724
781
|
class InvalidTimeRangeException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
725
782
|
constructor(opts) {
|
|
726
783
|
super({
|
|
@@ -862,6 +919,34 @@ class InvalidEventDataStoreStatusException extends CloudTrailServiceException_1.
|
|
|
862
919
|
}
|
|
863
920
|
}
|
|
864
921
|
exports.InvalidEventDataStoreStatusException = InvalidEventDataStoreStatusException;
|
|
922
|
+
class InvalidEventDataStoreCategoryException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
923
|
+
constructor(opts) {
|
|
924
|
+
super({
|
|
925
|
+
name: "InvalidEventDataStoreCategoryException",
|
|
926
|
+
$fault: "client",
|
|
927
|
+
...opts,
|
|
928
|
+
});
|
|
929
|
+
this.name = "InvalidEventDataStoreCategoryException";
|
|
930
|
+
this.$fault = "client";
|
|
931
|
+
Object.setPrototypeOf(this, InvalidEventDataStoreCategoryException.prototype);
|
|
932
|
+
this.Message = opts.Message;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
exports.InvalidEventDataStoreCategoryException = InvalidEventDataStoreCategoryException;
|
|
936
|
+
class InvalidImportSourceException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
937
|
+
constructor(opts) {
|
|
938
|
+
super({
|
|
939
|
+
name: "InvalidImportSourceException",
|
|
940
|
+
$fault: "client",
|
|
941
|
+
...opts,
|
|
942
|
+
});
|
|
943
|
+
this.name = "InvalidImportSourceException";
|
|
944
|
+
this.$fault = "client";
|
|
945
|
+
Object.setPrototypeOf(this, InvalidImportSourceException.prototype);
|
|
946
|
+
this.Message = opts.Message;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
exports.InvalidImportSourceException = InvalidImportSourceException;
|
|
865
950
|
class InvalidQueryStatementException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
866
951
|
constructor(opts) {
|
|
867
952
|
super({
|
|
@@ -1018,6 +1103,26 @@ const GetEventSelectorsResponseFilterSensitiveLog = (obj) => ({
|
|
|
1018
1103
|
...obj,
|
|
1019
1104
|
});
|
|
1020
1105
|
exports.GetEventSelectorsResponseFilterSensitiveLog = GetEventSelectorsResponseFilterSensitiveLog;
|
|
1106
|
+
const GetImportRequestFilterSensitiveLog = (obj) => ({
|
|
1107
|
+
...obj,
|
|
1108
|
+
});
|
|
1109
|
+
exports.GetImportRequestFilterSensitiveLog = GetImportRequestFilterSensitiveLog;
|
|
1110
|
+
const S3ImportSourceFilterSensitiveLog = (obj) => ({
|
|
1111
|
+
...obj,
|
|
1112
|
+
});
|
|
1113
|
+
exports.S3ImportSourceFilterSensitiveLog = S3ImportSourceFilterSensitiveLog;
|
|
1114
|
+
const ImportSourceFilterSensitiveLog = (obj) => ({
|
|
1115
|
+
...obj,
|
|
1116
|
+
});
|
|
1117
|
+
exports.ImportSourceFilterSensitiveLog = ImportSourceFilterSensitiveLog;
|
|
1118
|
+
const ImportStatisticsFilterSensitiveLog = (obj) => ({
|
|
1119
|
+
...obj,
|
|
1120
|
+
});
|
|
1121
|
+
exports.ImportStatisticsFilterSensitiveLog = ImportStatisticsFilterSensitiveLog;
|
|
1122
|
+
const GetImportResponseFilterSensitiveLog = (obj) => ({
|
|
1123
|
+
...obj,
|
|
1124
|
+
});
|
|
1125
|
+
exports.GetImportResponseFilterSensitiveLog = GetImportResponseFilterSensitiveLog;
|
|
1021
1126
|
const GetInsightSelectorsRequestFilterSensitiveLog = (obj) => ({
|
|
1022
1127
|
...obj,
|
|
1023
1128
|
});
|
|
@@ -1078,6 +1183,30 @@ const ListEventDataStoresResponseFilterSensitiveLog = (obj) => ({
|
|
|
1078
1183
|
...obj,
|
|
1079
1184
|
});
|
|
1080
1185
|
exports.ListEventDataStoresResponseFilterSensitiveLog = ListEventDataStoresResponseFilterSensitiveLog;
|
|
1186
|
+
const ListImportFailuresRequestFilterSensitiveLog = (obj) => ({
|
|
1187
|
+
...obj,
|
|
1188
|
+
});
|
|
1189
|
+
exports.ListImportFailuresRequestFilterSensitiveLog = ListImportFailuresRequestFilterSensitiveLog;
|
|
1190
|
+
const ImportFailureListItemFilterSensitiveLog = (obj) => ({
|
|
1191
|
+
...obj,
|
|
1192
|
+
});
|
|
1193
|
+
exports.ImportFailureListItemFilterSensitiveLog = ImportFailureListItemFilterSensitiveLog;
|
|
1194
|
+
const ListImportFailuresResponseFilterSensitiveLog = (obj) => ({
|
|
1195
|
+
...obj,
|
|
1196
|
+
});
|
|
1197
|
+
exports.ListImportFailuresResponseFilterSensitiveLog = ListImportFailuresResponseFilterSensitiveLog;
|
|
1198
|
+
const ListImportsRequestFilterSensitiveLog = (obj) => ({
|
|
1199
|
+
...obj,
|
|
1200
|
+
});
|
|
1201
|
+
exports.ListImportsRequestFilterSensitiveLog = ListImportsRequestFilterSensitiveLog;
|
|
1202
|
+
const ImportsListItemFilterSensitiveLog = (obj) => ({
|
|
1203
|
+
...obj,
|
|
1204
|
+
});
|
|
1205
|
+
exports.ImportsListItemFilterSensitiveLog = ImportsListItemFilterSensitiveLog;
|
|
1206
|
+
const ListImportsResponseFilterSensitiveLog = (obj) => ({
|
|
1207
|
+
...obj,
|
|
1208
|
+
});
|
|
1209
|
+
exports.ListImportsResponseFilterSensitiveLog = ListImportsResponseFilterSensitiveLog;
|
|
1081
1210
|
const ListPublicKeysRequestFilterSensitiveLog = (obj) => ({
|
|
1082
1211
|
...obj,
|
|
1083
1212
|
});
|
|
@@ -1178,6 +1307,14 @@ const RestoreEventDataStoreResponseFilterSensitiveLog = (obj) => ({
|
|
|
1178
1307
|
...obj,
|
|
1179
1308
|
});
|
|
1180
1309
|
exports.RestoreEventDataStoreResponseFilterSensitiveLog = RestoreEventDataStoreResponseFilterSensitiveLog;
|
|
1310
|
+
const StartImportRequestFilterSensitiveLog = (obj) => ({
|
|
1311
|
+
...obj,
|
|
1312
|
+
});
|
|
1313
|
+
exports.StartImportRequestFilterSensitiveLog = StartImportRequestFilterSensitiveLog;
|
|
1314
|
+
const StartImportResponseFilterSensitiveLog = (obj) => ({
|
|
1315
|
+
...obj,
|
|
1316
|
+
});
|
|
1317
|
+
exports.StartImportResponseFilterSensitiveLog = StartImportResponseFilterSensitiveLog;
|
|
1181
1318
|
const StartLoggingRequestFilterSensitiveLog = (obj) => ({
|
|
1182
1319
|
...obj,
|
|
1183
1320
|
});
|
|
@@ -1194,6 +1331,14 @@ const StartQueryResponseFilterSensitiveLog = (obj) => ({
|
|
|
1194
1331
|
...obj,
|
|
1195
1332
|
});
|
|
1196
1333
|
exports.StartQueryResponseFilterSensitiveLog = StartQueryResponseFilterSensitiveLog;
|
|
1334
|
+
const StopImportRequestFilterSensitiveLog = (obj) => ({
|
|
1335
|
+
...obj,
|
|
1336
|
+
});
|
|
1337
|
+
exports.StopImportRequestFilterSensitiveLog = StopImportRequestFilterSensitiveLog;
|
|
1338
|
+
const StopImportResponseFilterSensitiveLog = (obj) => ({
|
|
1339
|
+
...obj,
|
|
1340
|
+
});
|
|
1341
|
+
exports.StopImportResponseFilterSensitiveLog = StopImportResponseFilterSensitiveLog;
|
|
1197
1342
|
const StopLoggingRequestFilterSensitiveLog = (obj) => ({
|
|
1198
1343
|
...obj,
|
|
1199
1344
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListImportFailures = void 0;
|
|
4
|
+
const CloudTrail_1 = require("../CloudTrail");
|
|
5
|
+
const CloudTrailClient_1 = require("../CloudTrailClient");
|
|
6
|
+
const ListImportFailuresCommand_1 = require("../commands/ListImportFailuresCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListImportFailuresCommand_1.ListImportFailuresCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listImportFailures(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListImportFailures(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof CloudTrail_1.CloudTrail) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof CloudTrailClient_1.CloudTrailClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListImportFailures = paginateListImportFailures;
|