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