@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 { ListImportsRequestFilterSensitiveLog, ListImportsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListImportsCommand, serializeAws_json1_1ListImportsCommand, } from "../protocols/Aws_json1_1";
6
- var ListImportsCommand = (function (_super) {
7
- __extends(ListImportsCommand, _super);
8
- function ListImportsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListImportsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListImportsCommand.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 = "ListImportsCommand";
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 = "ListImportsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListImportsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListImportsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListImportsCommand.prototype.serialize = function (input, context) {
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_1ListImportsCommand(input, context);
33
- };
34
- ListImportsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListImportsCommand(output, context);
36
- };
37
- return ListImportsCommand;
38
- }($Command));
39
- export { ListImportsCommand };
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 { ListPublicKeysRequestFilterSensitiveLog, ListPublicKeysResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListPublicKeysCommand, serializeAws_json1_1ListPublicKeysCommand, } from "../protocols/Aws_json1_1";
6
- var ListPublicKeysCommand = (function (_super) {
7
- __extends(ListPublicKeysCommand, _super);
8
- function ListPublicKeysCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPublicKeysCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPublicKeysCommand.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 = "ListPublicKeysCommand";
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 = "ListPublicKeysCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPublicKeysRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPublicKeysResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPublicKeysCommand.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_1ListPublicKeysCommand(input, context);
33
- };
34
- ListPublicKeysCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListPublicKeysCommand(output, context);
36
- };
37
- return ListPublicKeysCommand;
38
- }($Command));
39
- export { ListPublicKeysCommand };
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 { ListQueriesRequestFilterSensitiveLog, ListQueriesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListQueriesCommand, serializeAws_json1_1ListQueriesCommand, } from "../protocols/Aws_json1_1";
6
- var ListQueriesCommand = (function (_super) {
7
- __extends(ListQueriesCommand, _super);
8
- function ListQueriesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListQueriesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListQueriesCommand.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 = "ListQueriesCommand";
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 = "ListQueriesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListQueriesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListQueriesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListQueriesCommand.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_1ListQueriesCommand(input, context);
33
- };
34
- ListQueriesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListQueriesCommand(output, context);
36
- };
37
- return ListQueriesCommand;
38
- }($Command));
39
- export { ListQueriesCommand };
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 { ListTagsRequestFilterSensitiveLog, ListTagsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1";
6
- var ListTagsCommand = (function (_super) {
7
- __extends(ListTagsCommand, _super);
8
- function ListTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsCommand.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 = "ListTagsCommand";
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 = "ListTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsCommand.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_1ListTagsCommand(input, context);
33
- };
34
- ListTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsCommand(output, context);
36
- };
37
- return ListTagsCommand;
38
- }($Command));
39
- export { ListTagsCommand };
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 { ListTrailsRequestFilterSensitiveLog, ListTrailsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTrailsCommand, serializeAws_json1_1ListTrailsCommand, } from "../protocols/Aws_json1_1";
6
- var ListTrailsCommand = (function (_super) {
7
- __extends(ListTrailsCommand, _super);
8
- function ListTrailsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTrailsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTrailsCommand.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 = "ListTrailsCommand";
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 = "ListTrailsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTrailsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTrailsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTrailsCommand.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_1ListTrailsCommand(input, context);
33
- };
34
- ListTrailsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTrailsCommand(output, context);
36
- };
37
- return ListTrailsCommand;
38
- }($Command));
39
- export { ListTrailsCommand };
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 { LookupEventsRequestFilterSensitiveLog, LookupEventsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1LookupEventsCommand, serializeAws_json1_1LookupEventsCommand, } from "../protocols/Aws_json1_1";
6
- var LookupEventsCommand = (function (_super) {
7
- __extends(LookupEventsCommand, _super);
8
- function LookupEventsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class LookupEventsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- LookupEventsCommand.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 = "LookupEventsCommand";
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 = "LookupEventsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: LookupEventsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: LookupEventsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- LookupEventsCommand.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_1LookupEventsCommand(input, context);
33
- };
34
- LookupEventsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1LookupEventsCommand(output, context);
36
- };
37
- return LookupEventsCommand;
38
- }($Command));
39
- export { LookupEventsCommand };
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 { PutEventSelectorsRequestFilterSensitiveLog, PutEventSelectorsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutEventSelectorsCommand, serializeAws_json1_1PutEventSelectorsCommand, } from "../protocols/Aws_json1_1";
6
- var PutEventSelectorsCommand = (function (_super) {
7
- __extends(PutEventSelectorsCommand, _super);
8
- function PutEventSelectorsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutEventSelectorsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutEventSelectorsCommand.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 = "PutEventSelectorsCommand";
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 = "PutEventSelectorsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutEventSelectorsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutEventSelectorsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutEventSelectorsCommand.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_1PutEventSelectorsCommand(input, context);
33
- };
34
- PutEventSelectorsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutEventSelectorsCommand(output, context);
36
- };
37
- return PutEventSelectorsCommand;
38
- }($Command));
39
- export { PutEventSelectorsCommand };
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 { PutInsightSelectorsRequestFilterSensitiveLog, PutInsightSelectorsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutInsightSelectorsCommand, serializeAws_json1_1PutInsightSelectorsCommand, } from "../protocols/Aws_json1_1";
6
- var PutInsightSelectorsCommand = (function (_super) {
7
- __extends(PutInsightSelectorsCommand, _super);
8
- function PutInsightSelectorsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutInsightSelectorsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutInsightSelectorsCommand.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 = "PutInsightSelectorsCommand";
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 = "PutInsightSelectorsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutInsightSelectorsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutInsightSelectorsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutInsightSelectorsCommand.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_1PutInsightSelectorsCommand(input, context);
33
- };
34
- PutInsightSelectorsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutInsightSelectorsCommand(output, context);
36
- };
37
- return PutInsightSelectorsCommand;
38
- }($Command));
39
- export { PutInsightSelectorsCommand };
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 { RemoveTagsRequestFilterSensitiveLog, RemoveTagsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RemoveTagsCommand, serializeAws_json1_1RemoveTagsCommand, } from "../protocols/Aws_json1_1";
6
- var RemoveTagsCommand = (function (_super) {
7
- __extends(RemoveTagsCommand, _super);
8
- function RemoveTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RemoveTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RemoveTagsCommand.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 = "RemoveTagsCommand";
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 = "RemoveTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RemoveTagsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RemoveTagsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RemoveTagsCommand.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_1RemoveTagsCommand(input, context);
33
- };
34
- RemoveTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RemoveTagsCommand(output, context);
36
- };
37
- return RemoveTagsCommand;
38
- }($Command));
39
- export { RemoveTagsCommand };
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 { RestoreEventDataStoreRequestFilterSensitiveLog, RestoreEventDataStoreResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RestoreEventDataStoreCommand, serializeAws_json1_1RestoreEventDataStoreCommand, } from "../protocols/Aws_json1_1";
6
- var RestoreEventDataStoreCommand = (function (_super) {
7
- __extends(RestoreEventDataStoreCommand, _super);
8
- function RestoreEventDataStoreCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RestoreEventDataStoreCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RestoreEventDataStoreCommand.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 = "RestoreEventDataStoreCommand";
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 = "RestoreEventDataStoreCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RestoreEventDataStoreRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RestoreEventDataStoreResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RestoreEventDataStoreCommand.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_1RestoreEventDataStoreCommand(input, context);
33
- };
34
- RestoreEventDataStoreCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RestoreEventDataStoreCommand(output, context);
36
- };
37
- return RestoreEventDataStoreCommand;
38
- }($Command));
39
- export { RestoreEventDataStoreCommand };
31
+ }
32
+ }