@aws-sdk/client-cloudtrail 3.45.0 → 3.47.2

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 (93) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist-cjs/CloudTrail.js +165 -0
  3. package/dist-cjs/commands/CancelQueryCommand.js +36 -0
  4. package/dist-cjs/commands/CreateEventDataStoreCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteEventDataStoreCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeQueryCommand.js +36 -0
  7. package/dist-cjs/commands/GetEventDataStoreCommand.js +36 -0
  8. package/dist-cjs/commands/GetQueryResultsCommand.js +36 -0
  9. package/dist-cjs/commands/ListEventDataStoresCommand.js +36 -0
  10. package/dist-cjs/commands/ListQueriesCommand.js +36 -0
  11. package/dist-cjs/commands/RestoreEventDataStoreCommand.js +36 -0
  12. package/dist-cjs/commands/StartQueryCommand.js +36 -0
  13. package/dist-cjs/commands/UpdateEventDataStoreCommand.js +36 -0
  14. package/dist-cjs/commands/index.js +11 -0
  15. package/dist-cjs/endpoints.js +0 -16
  16. package/dist-cjs/models/models_0.js +158 -252
  17. package/dist-cjs/pagination/GetQueryResultsPaginator.js +34 -0
  18. package/dist-cjs/pagination/ListEventDataStoresPaginator.js +35 -0
  19. package/dist-cjs/pagination/ListQueriesPaginator.js +35 -0
  20. package/dist-cjs/pagination/index.js +3 -0
  21. package/dist-cjs/protocols/Aws_json1_1.js +2319 -389
  22. package/dist-cjs/runtimeConfig.browser.js +7 -2
  23. package/dist-cjs/runtimeConfig.js +9 -3
  24. package/dist-es/CloudTrail.js +165 -0
  25. package/dist-es/commands/CancelQueryCommand.js +39 -0
  26. package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
  27. package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
  28. package/dist-es/commands/DescribeQueryCommand.js +39 -0
  29. package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
  30. package/dist-es/commands/GetQueryResultsCommand.js +39 -0
  31. package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
  32. package/dist-es/commands/ListQueriesCommand.js +39 -0
  33. package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
  34. package/dist-es/commands/StartQueryCommand.js +39 -0
  35. package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
  36. package/dist-es/commands/index.js +11 -0
  37. package/dist-es/endpoints.js +0 -16
  38. package/dist-es/models/models_0.js +118 -176
  39. package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
  40. package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
  41. package/dist-es/pagination/ListQueriesPaginator.js +74 -0
  42. package/dist-es/pagination/index.js +3 -0
  43. package/dist-es/protocols/Aws_json1_1.js +2669 -704
  44. package/dist-es/runtimeConfig.browser.js +12 -3
  45. package/dist-es/runtimeConfig.js +13 -6
  46. package/dist-types/CloudTrail.d.ts +100 -1
  47. package/dist-types/CloudTrailClient.d.ts +18 -3
  48. package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
  49. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
  50. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
  51. package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
  52. package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
  53. package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
  54. package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
  55. package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
  56. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
  57. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
  58. package/dist-types/commands/StartQueryCommand.d.ts +36 -0
  59. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
  60. package/dist-types/commands/index.d.ts +11 -0
  61. package/dist-types/models/models_0.d.ts +926 -328
  62. package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
  63. package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  64. package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
  65. package/dist-types/pagination/index.d.ts +3 -0
  66. package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
  67. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  68. package/dist-types/runtimeConfig.d.ts +4 -3
  69. package/dist-types/runtimeConfig.native.d.ts +1 -0
  70. package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
  71. package/dist-types/ts3.4/CloudTrailClient.d.ts +16 -3
  72. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +523 -205
  85. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
  86. package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  87. package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  89. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
  90. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  91. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  93. package/package.json +39 -46
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -1,22 +1,33 @@
1
1
  import { __extends } from "tslib";
2
2
  import { CloudTrailClient } from "./CloudTrailClient";
3
3
  import { AddTagsCommand } from "./commands/AddTagsCommand";
4
+ import { CancelQueryCommand } from "./commands/CancelQueryCommand";
5
+ import { CreateEventDataStoreCommand, } from "./commands/CreateEventDataStoreCommand";
4
6
  import { CreateTrailCommand } from "./commands/CreateTrailCommand";
7
+ import { DeleteEventDataStoreCommand, } from "./commands/DeleteEventDataStoreCommand";
5
8
  import { DeleteTrailCommand } from "./commands/DeleteTrailCommand";
9
+ import { DescribeQueryCommand, } from "./commands/DescribeQueryCommand";
6
10
  import { DescribeTrailsCommand, } from "./commands/DescribeTrailsCommand";
11
+ import { GetEventDataStoreCommand, } from "./commands/GetEventDataStoreCommand";
7
12
  import { GetEventSelectorsCommand, } from "./commands/GetEventSelectorsCommand";
8
13
  import { GetInsightSelectorsCommand, } from "./commands/GetInsightSelectorsCommand";
14
+ import { GetQueryResultsCommand, } from "./commands/GetQueryResultsCommand";
9
15
  import { GetTrailCommand } from "./commands/GetTrailCommand";
10
16
  import { GetTrailStatusCommand, } from "./commands/GetTrailStatusCommand";
17
+ import { ListEventDataStoresCommand, } from "./commands/ListEventDataStoresCommand";
11
18
  import { ListPublicKeysCommand, } from "./commands/ListPublicKeysCommand";
19
+ import { ListQueriesCommand } from "./commands/ListQueriesCommand";
12
20
  import { ListTagsCommand } from "./commands/ListTagsCommand";
13
21
  import { ListTrailsCommand } from "./commands/ListTrailsCommand";
14
22
  import { LookupEventsCommand, } from "./commands/LookupEventsCommand";
15
23
  import { PutEventSelectorsCommand, } from "./commands/PutEventSelectorsCommand";
16
24
  import { PutInsightSelectorsCommand, } from "./commands/PutInsightSelectorsCommand";
17
25
  import { RemoveTagsCommand } from "./commands/RemoveTagsCommand";
26
+ import { RestoreEventDataStoreCommand, } from "./commands/RestoreEventDataStoreCommand";
18
27
  import { StartLoggingCommand, } from "./commands/StartLoggingCommand";
28
+ import { StartQueryCommand } from "./commands/StartQueryCommand";
19
29
  import { StopLoggingCommand } from "./commands/StopLoggingCommand";
30
+ import { UpdateEventDataStoreCommand, } from "./commands/UpdateEventDataStoreCommand";
20
31
  import { UpdateTrailCommand } from "./commands/UpdateTrailCommand";
21
32
  var CloudTrail = (function (_super) {
22
33
  __extends(CloudTrail, _super);
@@ -37,6 +48,34 @@ var CloudTrail = (function (_super) {
37
48
  return this.send(command, optionsOrCb);
38
49
  }
39
50
  };
51
+ CloudTrail.prototype.cancelQuery = function (args, optionsOrCb, cb) {
52
+ var command = new CancelQueryCommand(args);
53
+ if (typeof optionsOrCb === "function") {
54
+ this.send(command, optionsOrCb);
55
+ }
56
+ else if (typeof cb === "function") {
57
+ if (typeof optionsOrCb !== "object")
58
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
59
+ this.send(command, optionsOrCb || {}, cb);
60
+ }
61
+ else {
62
+ return this.send(command, optionsOrCb);
63
+ }
64
+ };
65
+ CloudTrail.prototype.createEventDataStore = function (args, optionsOrCb, cb) {
66
+ var command = new CreateEventDataStoreCommand(args);
67
+ if (typeof optionsOrCb === "function") {
68
+ this.send(command, optionsOrCb);
69
+ }
70
+ else if (typeof cb === "function") {
71
+ if (typeof optionsOrCb !== "object")
72
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
73
+ this.send(command, optionsOrCb || {}, cb);
74
+ }
75
+ else {
76
+ return this.send(command, optionsOrCb);
77
+ }
78
+ };
40
79
  CloudTrail.prototype.createTrail = function (args, optionsOrCb, cb) {
41
80
  var command = new CreateTrailCommand(args);
42
81
  if (typeof optionsOrCb === "function") {
@@ -51,6 +90,20 @@ var CloudTrail = (function (_super) {
51
90
  return this.send(command, optionsOrCb);
52
91
  }
53
92
  };
93
+ CloudTrail.prototype.deleteEventDataStore = function (args, optionsOrCb, cb) {
94
+ var command = new DeleteEventDataStoreCommand(args);
95
+ if (typeof optionsOrCb === "function") {
96
+ this.send(command, optionsOrCb);
97
+ }
98
+ else if (typeof cb === "function") {
99
+ if (typeof optionsOrCb !== "object")
100
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
101
+ this.send(command, optionsOrCb || {}, cb);
102
+ }
103
+ else {
104
+ return this.send(command, optionsOrCb);
105
+ }
106
+ };
54
107
  CloudTrail.prototype.deleteTrail = function (args, optionsOrCb, cb) {
55
108
  var command = new DeleteTrailCommand(args);
56
109
  if (typeof optionsOrCb === "function") {
@@ -65,6 +118,20 @@ var CloudTrail = (function (_super) {
65
118
  return this.send(command, optionsOrCb);
66
119
  }
67
120
  };
121
+ CloudTrail.prototype.describeQuery = function (args, optionsOrCb, cb) {
122
+ var command = new DescribeQueryCommand(args);
123
+ if (typeof optionsOrCb === "function") {
124
+ this.send(command, optionsOrCb);
125
+ }
126
+ else if (typeof cb === "function") {
127
+ if (typeof optionsOrCb !== "object")
128
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
129
+ this.send(command, optionsOrCb || {}, cb);
130
+ }
131
+ else {
132
+ return this.send(command, optionsOrCb);
133
+ }
134
+ };
68
135
  CloudTrail.prototype.describeTrails = function (args, optionsOrCb, cb) {
69
136
  var command = new DescribeTrailsCommand(args);
70
137
  if (typeof optionsOrCb === "function") {
@@ -79,6 +146,20 @@ var CloudTrail = (function (_super) {
79
146
  return this.send(command, optionsOrCb);
80
147
  }
81
148
  };
149
+ CloudTrail.prototype.getEventDataStore = function (args, optionsOrCb, cb) {
150
+ var command = new GetEventDataStoreCommand(args);
151
+ if (typeof optionsOrCb === "function") {
152
+ this.send(command, optionsOrCb);
153
+ }
154
+ else if (typeof cb === "function") {
155
+ if (typeof optionsOrCb !== "object")
156
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
157
+ this.send(command, optionsOrCb || {}, cb);
158
+ }
159
+ else {
160
+ return this.send(command, optionsOrCb);
161
+ }
162
+ };
82
163
  CloudTrail.prototype.getEventSelectors = function (args, optionsOrCb, cb) {
83
164
  var command = new GetEventSelectorsCommand(args);
84
165
  if (typeof optionsOrCb === "function") {
@@ -107,6 +188,20 @@ var CloudTrail = (function (_super) {
107
188
  return this.send(command, optionsOrCb);
108
189
  }
109
190
  };
191
+ CloudTrail.prototype.getQueryResults = function (args, optionsOrCb, cb) {
192
+ var command = new GetQueryResultsCommand(args);
193
+ if (typeof optionsOrCb === "function") {
194
+ this.send(command, optionsOrCb);
195
+ }
196
+ else if (typeof cb === "function") {
197
+ if (typeof optionsOrCb !== "object")
198
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
199
+ this.send(command, optionsOrCb || {}, cb);
200
+ }
201
+ else {
202
+ return this.send(command, optionsOrCb);
203
+ }
204
+ };
110
205
  CloudTrail.prototype.getTrail = function (args, optionsOrCb, cb) {
111
206
  var command = new GetTrailCommand(args);
112
207
  if (typeof optionsOrCb === "function") {
@@ -135,6 +230,20 @@ var CloudTrail = (function (_super) {
135
230
  return this.send(command, optionsOrCb);
136
231
  }
137
232
  };
233
+ CloudTrail.prototype.listEventDataStores = function (args, optionsOrCb, cb) {
234
+ var command = new ListEventDataStoresCommand(args);
235
+ if (typeof optionsOrCb === "function") {
236
+ this.send(command, optionsOrCb);
237
+ }
238
+ else if (typeof cb === "function") {
239
+ if (typeof optionsOrCb !== "object")
240
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
241
+ this.send(command, optionsOrCb || {}, cb);
242
+ }
243
+ else {
244
+ return this.send(command, optionsOrCb);
245
+ }
246
+ };
138
247
  CloudTrail.prototype.listPublicKeys = function (args, optionsOrCb, cb) {
139
248
  var command = new ListPublicKeysCommand(args);
140
249
  if (typeof optionsOrCb === "function") {
@@ -149,6 +258,20 @@ var CloudTrail = (function (_super) {
149
258
  return this.send(command, optionsOrCb);
150
259
  }
151
260
  };
261
+ CloudTrail.prototype.listQueries = function (args, optionsOrCb, cb) {
262
+ var command = new ListQueriesCommand(args);
263
+ if (typeof optionsOrCb === "function") {
264
+ this.send(command, optionsOrCb);
265
+ }
266
+ else if (typeof cb === "function") {
267
+ if (typeof optionsOrCb !== "object")
268
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
269
+ this.send(command, optionsOrCb || {}, cb);
270
+ }
271
+ else {
272
+ return this.send(command, optionsOrCb);
273
+ }
274
+ };
152
275
  CloudTrail.prototype.listTags = function (args, optionsOrCb, cb) {
153
276
  var command = new ListTagsCommand(args);
154
277
  if (typeof optionsOrCb === "function") {
@@ -233,6 +356,20 @@ var CloudTrail = (function (_super) {
233
356
  return this.send(command, optionsOrCb);
234
357
  }
235
358
  };
359
+ CloudTrail.prototype.restoreEventDataStore = function (args, optionsOrCb, cb) {
360
+ var command = new RestoreEventDataStoreCommand(args);
361
+ if (typeof optionsOrCb === "function") {
362
+ this.send(command, optionsOrCb);
363
+ }
364
+ else if (typeof cb === "function") {
365
+ if (typeof optionsOrCb !== "object")
366
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
367
+ this.send(command, optionsOrCb || {}, cb);
368
+ }
369
+ else {
370
+ return this.send(command, optionsOrCb);
371
+ }
372
+ };
236
373
  CloudTrail.prototype.startLogging = function (args, optionsOrCb, cb) {
237
374
  var command = new StartLoggingCommand(args);
238
375
  if (typeof optionsOrCb === "function") {
@@ -247,6 +384,20 @@ var CloudTrail = (function (_super) {
247
384
  return this.send(command, optionsOrCb);
248
385
  }
249
386
  };
387
+ CloudTrail.prototype.startQuery = function (args, optionsOrCb, cb) {
388
+ var command = new StartQueryCommand(args);
389
+ if (typeof optionsOrCb === "function") {
390
+ this.send(command, optionsOrCb);
391
+ }
392
+ else if (typeof cb === "function") {
393
+ if (typeof optionsOrCb !== "object")
394
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
395
+ this.send(command, optionsOrCb || {}, cb);
396
+ }
397
+ else {
398
+ return this.send(command, optionsOrCb);
399
+ }
400
+ };
250
401
  CloudTrail.prototype.stopLogging = function (args, optionsOrCb, cb) {
251
402
  var command = new StopLoggingCommand(args);
252
403
  if (typeof optionsOrCb === "function") {
@@ -261,6 +412,20 @@ var CloudTrail = (function (_super) {
261
412
  return this.send(command, optionsOrCb);
262
413
  }
263
414
  };
415
+ CloudTrail.prototype.updateEventDataStore = function (args, optionsOrCb, cb) {
416
+ var command = new UpdateEventDataStoreCommand(args);
417
+ if (typeof optionsOrCb === "function") {
418
+ this.send(command, optionsOrCb);
419
+ }
420
+ else if (typeof cb === "function") {
421
+ if (typeof optionsOrCb !== "object")
422
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
423
+ this.send(command, optionsOrCb || {}, cb);
424
+ }
425
+ else {
426
+ return this.send(command, optionsOrCb);
427
+ }
428
+ };
264
429
  CloudTrail.prototype.updateTrail = function (args, optionsOrCb, cb) {
265
430
  var command = new UpdateTrailCommand(args);
266
431
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CancelQueryRequest, CancelQueryResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CancelQueryCommand, serializeAws_json1_1CancelQueryCommand, } from "../protocols/Aws_json1_1";
6
+ var CancelQueryCommand = (function (_super) {
7
+ __extends(CancelQueryCommand, _super);
8
+ function CancelQueryCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CancelQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "CancelQueryCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CancelQueryRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CancelQueryResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CancelQueryCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CancelQueryCommand(input, context);
33
+ };
34
+ CancelQueryCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CancelQueryCommand(output, context);
36
+ };
37
+ return CancelQueryCommand;
38
+ }($Command));
39
+ export { CancelQueryCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateEventDataStoreRequest, CreateEventDataStoreResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateEventDataStoreCommand, serializeAws_json1_1CreateEventDataStoreCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateEventDataStoreCommand = (function (_super) {
7
+ __extends(CreateEventDataStoreCommand, _super);
8
+ function CreateEventDataStoreCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateEventDataStoreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "CreateEventDataStoreCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateEventDataStoreRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateEventDataStoreResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateEventDataStoreCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateEventDataStoreCommand(input, context);
33
+ };
34
+ CreateEventDataStoreCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateEventDataStoreCommand(output, context);
36
+ };
37
+ return CreateEventDataStoreCommand;
38
+ }($Command));
39
+ export { CreateEventDataStoreCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteEventDataStoreRequest, DeleteEventDataStoreResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteEventDataStoreCommand, serializeAws_json1_1DeleteEventDataStoreCommand, } from "../protocols/Aws_json1_1";
6
+ var DeleteEventDataStoreCommand = (function (_super) {
7
+ __extends(DeleteEventDataStoreCommand, _super);
8
+ function DeleteEventDataStoreCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteEventDataStoreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "DeleteEventDataStoreCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteEventDataStoreRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteEventDataStoreResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteEventDataStoreCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DeleteEventDataStoreCommand(input, context);
33
+ };
34
+ DeleteEventDataStoreCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DeleteEventDataStoreCommand(output, context);
36
+ };
37
+ return DeleteEventDataStoreCommand;
38
+ }($Command));
39
+ export { DeleteEventDataStoreCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeQueryRequest, DescribeQueryResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeQueryCommand, serializeAws_json1_1DescribeQueryCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeQueryCommand = (function (_super) {
7
+ __extends(DescribeQueryCommand, _super);
8
+ function DescribeQueryCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "DescribeQueryCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeQueryRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeQueryResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeQueryCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeQueryCommand(input, context);
33
+ };
34
+ DescribeQueryCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeQueryCommand(output, context);
36
+ };
37
+ return DescribeQueryCommand;
38
+ }($Command));
39
+ export { DescribeQueryCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetEventDataStoreRequest, GetEventDataStoreResponse } from "../models/models_0";
5
+ 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;
12
+ }
13
+ GetEventDataStoreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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,
23
+ inputFilterSensitiveLog: GetEventDataStoreRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetEventDataStoreResponse.filterSensitiveLog,
25
+ };
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) {
32
+ return serializeAws_json1_1GetEventDataStoreCommand(input, context);
33
+ };
34
+ GetEventDataStoreCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1GetEventDataStoreCommand(output, context);
36
+ };
37
+ return GetEventDataStoreCommand;
38
+ }($Command));
39
+ export { GetEventDataStoreCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetQueryResultsRequest, GetQueryResultsResponse } from "../models/models_0";
5
+ 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;
12
+ }
13
+ GetQueryResultsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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,
23
+ inputFilterSensitiveLog: GetQueryResultsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetQueryResultsResponse.filterSensitiveLog,
25
+ };
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) {
32
+ return serializeAws_json1_1GetQueryResultsCommand(input, context);
33
+ };
34
+ GetQueryResultsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1GetQueryResultsCommand(output, context);
36
+ };
37
+ return GetQueryResultsCommand;
38
+ }($Command));
39
+ export { GetQueryResultsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListEventDataStoresRequest, ListEventDataStoresResponse } from "../models/models_0";
5
+ 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;
12
+ }
13
+ ListEventDataStoresCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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,
23
+ inputFilterSensitiveLog: ListEventDataStoresRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListEventDataStoresResponse.filterSensitiveLog,
25
+ };
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) {
32
+ return serializeAws_json1_1ListEventDataStoresCommand(input, context);
33
+ };
34
+ ListEventDataStoresCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListEventDataStoresCommand(output, context);
36
+ };
37
+ return ListEventDataStoresCommand;
38
+ }($Command));
39
+ export { ListEventDataStoresCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListQueriesRequest, ListQueriesResponse } from "../models/models_0";
5
+ 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;
12
+ }
13
+ ListQueriesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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,
23
+ inputFilterSensitiveLog: ListQueriesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListQueriesResponse.filterSensitiveLog,
25
+ };
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) {
32
+ return serializeAws_json1_1ListQueriesCommand(input, context);
33
+ };
34
+ ListQueriesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListQueriesCommand(output, context);
36
+ };
37
+ return ListQueriesCommand;
38
+ }($Command));
39
+ export { ListQueriesCommand };