@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.
Files changed (59) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/CloudTrail.js +153 -146
  4. package/dist-es/CloudTrailClient.js +28 -22
  5. package/dist-es/commands/AddTagsCommand.js +28 -21
  6. package/dist-es/commands/CancelQueryCommand.js +28 -21
  7. package/dist-es/commands/CreateEventDataStoreCommand.js +28 -21
  8. package/dist-es/commands/CreateTrailCommand.js +28 -21
  9. package/dist-es/commands/DeleteEventDataStoreCommand.js +28 -21
  10. package/dist-es/commands/DeleteTrailCommand.js +28 -21
  11. package/dist-es/commands/DescribeQueryCommand.js +28 -21
  12. package/dist-es/commands/DescribeTrailsCommand.js +28 -21
  13. package/dist-es/commands/GetChannelCommand.js +28 -21
  14. package/dist-es/commands/GetEventDataStoreCommand.js +28 -21
  15. package/dist-es/commands/GetEventSelectorsCommand.js +28 -21
  16. package/dist-es/commands/GetImportCommand.js +28 -21
  17. package/dist-es/commands/GetInsightSelectorsCommand.js +28 -21
  18. package/dist-es/commands/GetQueryResultsCommand.js +28 -21
  19. package/dist-es/commands/GetTrailCommand.js +28 -21
  20. package/dist-es/commands/GetTrailStatusCommand.js +28 -21
  21. package/dist-es/commands/ListChannelsCommand.js +28 -21
  22. package/dist-es/commands/ListEventDataStoresCommand.js +28 -21
  23. package/dist-es/commands/ListImportFailuresCommand.js +28 -21
  24. package/dist-es/commands/ListImportsCommand.js +28 -21
  25. package/dist-es/commands/ListPublicKeysCommand.js +28 -21
  26. package/dist-es/commands/ListQueriesCommand.js +28 -21
  27. package/dist-es/commands/ListTagsCommand.js +28 -21
  28. package/dist-es/commands/ListTrailsCommand.js +28 -21
  29. package/dist-es/commands/LookupEventsCommand.js +28 -21
  30. package/dist-es/commands/PutEventSelectorsCommand.js +28 -21
  31. package/dist-es/commands/PutInsightSelectorsCommand.js +28 -21
  32. package/dist-es/commands/RemoveTagsCommand.js +28 -21
  33. package/dist-es/commands/RestoreEventDataStoreCommand.js +28 -21
  34. package/dist-es/commands/StartImportCommand.js +28 -21
  35. package/dist-es/commands/StartLoggingCommand.js +28 -21
  36. package/dist-es/commands/StartQueryCommand.js +28 -21
  37. package/dist-es/commands/StopImportCommand.js +28 -21
  38. package/dist-es/commands/StopLoggingCommand.js +28 -21
  39. package/dist-es/commands/UpdateEventDataStoreCommand.js +28 -21
  40. package/dist-es/commands/UpdateTrailCommand.js +28 -21
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/CloudTrailServiceException.js +10 -5
  43. package/dist-es/models/models_0.js +943 -1136
  44. package/dist-es/pagination/GetQueryResultsPaginator.js +67 -24
  45. package/dist-es/pagination/ListChannelsPaginator.js +68 -25
  46. package/dist-es/pagination/ListEventDataStoresPaginator.js +68 -25
  47. package/dist-es/pagination/ListImportFailuresPaginator.js +68 -25
  48. package/dist-es/pagination/ListImportsPaginator.js +68 -25
  49. package/dist-es/pagination/ListPublicKeysPaginator.js +67 -24
  50. package/dist-es/pagination/ListQueriesPaginator.js +68 -25
  51. package/dist-es/pagination/ListTagsPaginator.js +67 -24
  52. package/dist-es/pagination/ListTrailsPaginator.js +67 -24
  53. package/dist-es/pagination/LookupEventsPaginator.js +68 -25
  54. package/dist-es/protocols/Aws_json1_1.js +4293 -3466
  55. package/dist-es/runtimeConfig.browser.js +12 -26
  56. package/dist-es/runtimeConfig.js +12 -30
  57. package/dist-es/runtimeConfig.native.js +5 -8
  58. package/dist-es/runtimeConfig.shared.js +11 -8
  59. package/package.json +5 -5
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetEventDataStoreRequestFilterSensitiveLog, GetEventDataStoreResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetEventDataStoreCommand, serializeAws_json1_1GetEventDataStoreCommand, } from "../protocols/Aws_json1_1";
5
- export class GetEventDataStoreCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetEventDataStoreCommand = (function (_super) {
7
+ __extends(GetEventDataStoreCommand, _super);
8
+ function GetEventDataStoreCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEventDataStoreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "GetEventDataStoreCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "GetEventDataStoreCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetEventDataStoreRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEventDataStoreResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetEventDataStoreCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetEventDataStoreCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEventDataStoreCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetEventDataStoreCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEventDataStoreCommand;
38
+ }($Command));
39
+ export { GetEventDataStoreCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetEventSelectorsRequestFilterSensitiveLog, GetEventSelectorsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetEventSelectorsCommand, serializeAws_json1_1GetEventSelectorsCommand, } from "../protocols/Aws_json1_1";
5
- export class GetEventSelectorsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetEventSelectorsCommand = (function (_super) {
7
+ __extends(GetEventSelectorsCommand, _super);
8
+ function GetEventSelectorsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEventSelectorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "GetEventSelectorsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "GetEventSelectorsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetEventSelectorsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEventSelectorsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetEventSelectorsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetEventSelectorsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEventSelectorsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetEventSelectorsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEventSelectorsCommand;
38
+ }($Command));
39
+ export { GetEventSelectorsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetImportRequestFilterSensitiveLog, GetImportResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetImportCommand, serializeAws_json1_1GetImportCommand } from "../protocols/Aws_json1_1";
5
- export class GetImportCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetImportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "GetImportCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetImportRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetImportResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1GetImportCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetImportCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetImportCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetImportCommand;
38
+ }($Command));
39
+ export { GetImportCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetInsightSelectorsRequestFilterSensitiveLog, GetInsightSelectorsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetInsightSelectorsCommand, serializeAws_json1_1GetInsightSelectorsCommand, } from "../protocols/Aws_json1_1";
5
- export class GetInsightSelectorsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetInsightSelectorsCommand = (function (_super) {
7
+ __extends(GetInsightSelectorsCommand, _super);
8
+ function GetInsightSelectorsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetInsightSelectorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "GetInsightSelectorsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "GetInsightSelectorsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetInsightSelectorsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetInsightSelectorsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetInsightSelectorsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetInsightSelectorsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetInsightSelectorsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetInsightSelectorsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetInsightSelectorsCommand;
38
+ }($Command));
39
+ export { GetInsightSelectorsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetQueryResultsRequestFilterSensitiveLog, GetQueryResultsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetQueryResultsCommand, serializeAws_json1_1GetQueryResultsCommand, } from "../protocols/Aws_json1_1";
5
- export class GetQueryResultsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetQueryResultsCommand = (function (_super) {
7
+ __extends(GetQueryResultsCommand, _super);
8
+ function GetQueryResultsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetQueryResultsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "GetQueryResultsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "GetQueryResultsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetQueryResultsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetQueryResultsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetQueryResultsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetQueryResultsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetQueryResultsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetQueryResultsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetQueryResultsCommand;
38
+ }($Command));
39
+ export { GetQueryResultsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetTrailRequestFilterSensitiveLog, GetTrailResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetTrailCommand, serializeAws_json1_1GetTrailCommand } from "../protocols/Aws_json1_1";
5
- export class GetTrailCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetTrailCommand = (function (_super) {
7
+ __extends(GetTrailCommand, _super);
8
+ function GetTrailCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetTrailCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "GetTrailCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "GetTrailCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetTrailRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetTrailResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetTrailCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetTrailCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetTrailCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetTrailCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetTrailCommand;
38
+ }($Command));
39
+ export { GetTrailCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetTrailStatusRequestFilterSensitiveLog, GetTrailStatusResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetTrailStatusCommand, serializeAws_json1_1GetTrailStatusCommand, } from "../protocols/Aws_json1_1";
5
- export class GetTrailStatusCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetTrailStatusCommand = (function (_super) {
7
+ __extends(GetTrailStatusCommand, _super);
8
+ function GetTrailStatusCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetTrailStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "GetTrailStatusCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "GetTrailStatusCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetTrailStatusRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetTrailStatusResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetTrailStatusCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetTrailStatusCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetTrailStatusCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetTrailStatusCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetTrailStatusCommand;
38
+ }($Command));
39
+ export { GetTrailStatusCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListChannelsRequestFilterSensitiveLog, ListChannelsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListChannelsCommand, serializeAws_json1_1ListChannelsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListChannelsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListChannelsCommand = (function (_super) {
7
+ __extends(ListChannelsCommand, _super);
8
+ function ListChannelsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListChannelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "ListChannelsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "ListChannelsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListChannelsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListChannelsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListChannelsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListChannelsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListChannelsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListChannelsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListChannelsCommand;
38
+ }($Command));
39
+ export { ListChannelsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListEventDataStoresRequestFilterSensitiveLog, ListEventDataStoresResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListEventDataStoresCommand, serializeAws_json1_1ListEventDataStoresCommand, } from "../protocols/Aws_json1_1";
5
- export class ListEventDataStoresCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListEventDataStoresCommand = (function (_super) {
7
+ __extends(ListEventDataStoresCommand, _super);
8
+ function ListEventDataStoresCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListEventDataStoresCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "ListEventDataStoresCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudTrailClient";
18
+ var commandName = "ListEventDataStoresCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListEventDataStoresRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListEventDataStoresResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListEventDataStoresCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListEventDataStoresCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListEventDataStoresCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListEventDataStoresCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListEventDataStoresCommand;
38
+ }($Command));
39
+ export { ListEventDataStoresCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListImportFailuresRequestFilterSensitiveLog, ListImportFailuresResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListImportFailuresCommand, serializeAws_json1_1ListImportFailuresCommand, } from "../protocols/Aws_json1_1";
5
- export class ListImportFailuresCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListImportFailuresCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudTrailClient";
15
- const commandName = "ListImportFailuresCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: ListImportFailuresRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListImportFailuresResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1ListImportFailuresCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListImportFailuresCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListImportFailuresCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListImportFailuresCommand;
38
+ }($Command));
39
+ export { ListImportFailuresCommand };