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