@aws-sdk/client-cloudtrail 3.45.0 → 3.46.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 (83) hide show
  1. package/CHANGELOG.md +18 -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/models/models_0.js +291 -36
  16. package/dist-cjs/pagination/GetQueryResultsPaginator.js +34 -0
  17. package/dist-cjs/pagination/ListEventDataStoresPaginator.js +35 -0
  18. package/dist-cjs/pagination/ListQueriesPaginator.js +35 -0
  19. package/dist-cjs/pagination/index.js +3 -0
  20. package/dist-cjs/protocols/Aws_json1_1.js +2319 -389
  21. package/dist-cjs/runtimeConfig.js +0 -2
  22. package/dist-es/CloudTrail.js +165 -0
  23. package/dist-es/commands/CancelQueryCommand.js +39 -0
  24. package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
  25. package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
  26. package/dist-es/commands/DescribeQueryCommand.js +39 -0
  27. package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
  28. package/dist-es/commands/GetQueryResultsCommand.js +39 -0
  29. package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
  30. package/dist-es/commands/ListQueriesCommand.js +39 -0
  31. package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
  32. package/dist-es/commands/StartQueryCommand.js +39 -0
  33. package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
  34. package/dist-es/commands/index.js +11 -0
  35. package/dist-es/models/models_0.js +198 -24
  36. package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
  37. package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
  38. package/dist-es/pagination/ListQueriesPaginator.js +74 -0
  39. package/dist-es/pagination/index.js +3 -0
  40. package/dist-es/protocols/Aws_json1_1.js +2669 -704
  41. package/dist-es/runtimeConfig.js +0 -2
  42. package/dist-types/CloudTrail.d.ts +100 -1
  43. package/dist-types/CloudTrailClient.d.ts +13 -2
  44. package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
  45. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
  46. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
  47. package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
  48. package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
  49. package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
  50. package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
  51. package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
  52. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
  53. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
  54. package/dist-types/commands/StartQueryCommand.d.ts +36 -0
  55. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
  56. package/dist-types/commands/index.d.ts +11 -0
  57. package/dist-types/models/models_0.d.ts +1053 -107
  58. package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
  59. package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  60. package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
  61. package/dist-types/pagination/index.d.ts +3 -0
  62. package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
  63. package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
  64. package/dist-types/ts3.4/CloudTrailClient.d.ts +13 -2
  65. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +611 -61
  78. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
  79. package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  80. package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
  81. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  82. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
  83. package/package.json +36 -43
@@ -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 { UpdateEventDataStoreRequest, UpdateEventDataStoreResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateEventDataStoreCommand, serializeAws_json1_1UpdateEventDataStoreCommand, } from "../protocols/Aws_json1_1";
6
+ var UpdateEventDataStoreCommand = (function (_super) {
7
+ __extends(UpdateEventDataStoreCommand, _super);
8
+ function UpdateEventDataStoreCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateEventDataStoreCommand.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 = "UpdateEventDataStoreCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateEventDataStoreRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateEventDataStoreResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateEventDataStoreCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UpdateEventDataStoreCommand(input, context);
33
+ };
34
+ UpdateEventDataStoreCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UpdateEventDataStoreCommand(output, context);
36
+ };
37
+ return UpdateEventDataStoreCommand;
38
+ }($Command));
39
+ export { UpdateEventDataStoreCommand };
@@ -1,18 +1,29 @@
1
1
  export * from "./AddTagsCommand";
2
+ export * from "./CancelQueryCommand";
3
+ export * from "./CreateEventDataStoreCommand";
2
4
  export * from "./CreateTrailCommand";
5
+ export * from "./DeleteEventDataStoreCommand";
3
6
  export * from "./DeleteTrailCommand";
7
+ export * from "./DescribeQueryCommand";
4
8
  export * from "./DescribeTrailsCommand";
9
+ export * from "./GetEventDataStoreCommand";
5
10
  export * from "./GetEventSelectorsCommand";
6
11
  export * from "./GetInsightSelectorsCommand";
12
+ export * from "./GetQueryResultsCommand";
7
13
  export * from "./GetTrailCommand";
8
14
  export * from "./GetTrailStatusCommand";
15
+ export * from "./ListEventDataStoresCommand";
9
16
  export * from "./ListPublicKeysCommand";
17
+ export * from "./ListQueriesCommand";
10
18
  export * from "./ListTagsCommand";
11
19
  export * from "./ListTrailsCommand";
12
20
  export * from "./LookupEventsCommand";
13
21
  export * from "./PutEventSelectorsCommand";
14
22
  export * from "./PutInsightSelectorsCommand";
15
23
  export * from "./RemoveTagsCommand";
24
+ export * from "./RestoreEventDataStoreCommand";
16
25
  export * from "./StartLoggingCommand";
26
+ export * from "./StartQueryCommand";
17
27
  export * from "./StopLoggingCommand";
28
+ export * from "./UpdateEventDataStoreCommand";
18
29
  export * from "./UpdateTrailCommand";
@@ -15,6 +15,18 @@ export var CloudTrailARNInvalidException;
15
15
  (function (CloudTrailARNInvalidException) {
16
16
  CloudTrailARNInvalidException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
17
  })(CloudTrailARNInvalidException || (CloudTrailARNInvalidException = {}));
18
+ export var ConflictException;
19
+ (function (ConflictException) {
20
+ ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
+ })(ConflictException || (ConflictException = {}));
22
+ export var EventDataStoreNotFoundException;
23
+ (function (EventDataStoreNotFoundException) {
24
+ EventDataStoreNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
+ })(EventDataStoreNotFoundException || (EventDataStoreNotFoundException = {}));
26
+ export var InactiveEventDataStoreException;
27
+ (function (InactiveEventDataStoreException) {
28
+ InactiveEventDataStoreException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
+ })(InactiveEventDataStoreException || (InactiveEventDataStoreException = {}));
18
30
  export var InvalidTagParameterException;
19
31
  (function (InvalidTagParameterException) {
20
32
  InvalidTagParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -55,10 +67,76 @@ export var AdvancedEventSelector;
55
67
  (function (AdvancedEventSelector) {
56
68
  AdvancedEventSelector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
69
  })(AdvancedEventSelector || (AdvancedEventSelector = {}));
70
+ export var CancelQueryRequest;
71
+ (function (CancelQueryRequest) {
72
+ CancelQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
+ })(CancelQueryRequest || (CancelQueryRequest = {}));
74
+ export var QueryStatus;
75
+ (function (QueryStatus) {
76
+ QueryStatus["CANCELLED"] = "CANCELLED";
77
+ QueryStatus["FAILED"] = "FAILED";
78
+ QueryStatus["FINISHED"] = "FINISHED";
79
+ QueryStatus["QUEUED"] = "QUEUED";
80
+ QueryStatus["RUNNING"] = "RUNNING";
81
+ })(QueryStatus || (QueryStatus = {}));
82
+ export var CancelQueryResponse;
83
+ (function (CancelQueryResponse) {
84
+ CancelQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
+ })(CancelQueryResponse || (CancelQueryResponse = {}));
86
+ export var EventDataStoreARNInvalidException;
87
+ (function (EventDataStoreARNInvalidException) {
88
+ EventDataStoreARNInvalidException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
+ })(EventDataStoreARNInvalidException || (EventDataStoreARNInvalidException = {}));
90
+ export var InactiveQueryException;
91
+ (function (InactiveQueryException) {
92
+ InactiveQueryException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
+ })(InactiveQueryException || (InactiveQueryException = {}));
94
+ export var InvalidParameterException;
95
+ (function (InvalidParameterException) {
96
+ InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
+ })(InvalidParameterException || (InvalidParameterException = {}));
98
+ export var QueryIdNotFoundException;
99
+ (function (QueryIdNotFoundException) {
100
+ QueryIdNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
+ })(QueryIdNotFoundException || (QueryIdNotFoundException = {}));
58
102
  export var CloudTrailAccessNotEnabledException;
59
103
  (function (CloudTrailAccessNotEnabledException) {
60
104
  CloudTrailAccessNotEnabledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
61
105
  })(CloudTrailAccessNotEnabledException || (CloudTrailAccessNotEnabledException = {}));
106
+ export var CreateEventDataStoreRequest;
107
+ (function (CreateEventDataStoreRequest) {
108
+ CreateEventDataStoreRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
109
+ })(CreateEventDataStoreRequest || (CreateEventDataStoreRequest = {}));
110
+ export var EventDataStoreStatus;
111
+ (function (EventDataStoreStatus) {
112
+ EventDataStoreStatus["CREATED"] = "CREATED";
113
+ EventDataStoreStatus["ENABLED"] = "ENABLED";
114
+ EventDataStoreStatus["PENDING_DELETION"] = "PENDING_DELETION";
115
+ })(EventDataStoreStatus || (EventDataStoreStatus = {}));
116
+ export var CreateEventDataStoreResponse;
117
+ (function (CreateEventDataStoreResponse) {
118
+ CreateEventDataStoreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
+ })(CreateEventDataStoreResponse || (CreateEventDataStoreResponse = {}));
120
+ export var EventDataStoreAlreadyExistsException;
121
+ (function (EventDataStoreAlreadyExistsException) {
122
+ EventDataStoreAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ })(EventDataStoreAlreadyExistsException || (EventDataStoreAlreadyExistsException = {}));
124
+ export var EventDataStoreMaxLimitExceededException;
125
+ (function (EventDataStoreMaxLimitExceededException) {
126
+ EventDataStoreMaxLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
+ })(EventDataStoreMaxLimitExceededException || (EventDataStoreMaxLimitExceededException = {}));
128
+ export var InsufficientDependencyServiceAccessPermissionException;
129
+ (function (InsufficientDependencyServiceAccessPermissionException) {
130
+ InsufficientDependencyServiceAccessPermissionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
+ })(InsufficientDependencyServiceAccessPermissionException || (InsufficientDependencyServiceAccessPermissionException = {}));
132
+ export var OrganizationNotInAllFeaturesModeException;
133
+ (function (OrganizationNotInAllFeaturesModeException) {
134
+ OrganizationNotInAllFeaturesModeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
+ })(OrganizationNotInAllFeaturesModeException || (OrganizationNotInAllFeaturesModeException = {}));
136
+ export var OrganizationsNotInUseException;
137
+ (function (OrganizationsNotInUseException) {
138
+ OrganizationsNotInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
+ })(OrganizationsNotInUseException || (OrganizationsNotInUseException = {}));
62
140
  export var CloudTrailInvalidClientTokenIdException;
63
141
  (function (CloudTrailInvalidClientTokenIdException) {
64
142
  CloudTrailInvalidClientTokenIdException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -75,10 +153,6 @@ export var CreateTrailResponse;
75
153
  (function (CreateTrailResponse) {
76
154
  CreateTrailResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
155
  })(CreateTrailResponse || (CreateTrailResponse = {}));
78
- export var InsufficientDependencyServiceAccessPermissionException;
79
- (function (InsufficientDependencyServiceAccessPermissionException) {
80
- InsufficientDependencyServiceAccessPermissionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- })(InsufficientDependencyServiceAccessPermissionException || (InsufficientDependencyServiceAccessPermissionException = {}));
82
156
  export var InsufficientEncryptionPolicyException;
83
157
  (function (InsufficientEncryptionPolicyException) {
84
158
  InsufficientEncryptionPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -135,14 +209,6 @@ export var MaximumNumberOfTrailsExceededException;
135
209
  (function (MaximumNumberOfTrailsExceededException) {
136
210
  MaximumNumberOfTrailsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
211
  })(MaximumNumberOfTrailsExceededException || (MaximumNumberOfTrailsExceededException = {}));
138
- export var OrganizationNotInAllFeaturesModeException;
139
- (function (OrganizationNotInAllFeaturesModeException) {
140
- OrganizationNotInAllFeaturesModeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- })(OrganizationNotInAllFeaturesModeException || (OrganizationNotInAllFeaturesModeException = {}));
142
- export var OrganizationsNotInUseException;
143
- (function (OrganizationsNotInUseException) {
144
- OrganizationsNotInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
- })(OrganizationsNotInUseException || (OrganizationsNotInUseException = {}));
146
212
  export var S3BucketDoesNotExistException;
147
213
  (function (S3BucketDoesNotExistException) {
148
214
  S3BucketDoesNotExistException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -155,10 +221,18 @@ export var TrailNotProvidedException;
155
221
  (function (TrailNotProvidedException) {
156
222
  TrailNotProvidedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
223
  })(TrailNotProvidedException || (TrailNotProvidedException = {}));
158
- export var ConflictException;
159
- (function (ConflictException) {
160
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
- })(ConflictException || (ConflictException = {}));
224
+ export var DeleteEventDataStoreRequest;
225
+ (function (DeleteEventDataStoreRequest) {
226
+ DeleteEventDataStoreRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
+ })(DeleteEventDataStoreRequest || (DeleteEventDataStoreRequest = {}));
228
+ export var DeleteEventDataStoreResponse;
229
+ (function (DeleteEventDataStoreResponse) {
230
+ DeleteEventDataStoreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
+ })(DeleteEventDataStoreResponse || (DeleteEventDataStoreResponse = {}));
232
+ export var EventDataStoreTerminationProtectedException;
233
+ (function (EventDataStoreTerminationProtectedException) {
234
+ EventDataStoreTerminationProtectedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
235
+ })(EventDataStoreTerminationProtectedException || (EventDataStoreTerminationProtectedException = {}));
162
236
  export var DeleteTrailRequest;
163
237
  (function (DeleteTrailRequest) {
164
238
  DeleteTrailRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -175,6 +249,18 @@ export var TrailNotFoundException;
175
249
  (function (TrailNotFoundException) {
176
250
  TrailNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
251
  })(TrailNotFoundException || (TrailNotFoundException = {}));
252
+ export var DescribeQueryRequest;
253
+ (function (DescribeQueryRequest) {
254
+ DescribeQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
+ })(DescribeQueryRequest || (DescribeQueryRequest = {}));
256
+ export var QueryStatisticsForDescribeQuery;
257
+ (function (QueryStatisticsForDescribeQuery) {
258
+ QueryStatisticsForDescribeQuery.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
+ })(QueryStatisticsForDescribeQuery || (QueryStatisticsForDescribeQuery = {}));
260
+ export var DescribeQueryResponse;
261
+ (function (DescribeQueryResponse) {
262
+ DescribeQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
263
+ })(DescribeQueryResponse || (DescribeQueryResponse = {}));
178
264
  export var DescribeTrailsRequest;
179
265
  (function (DescribeTrailsRequest) {
180
266
  DescribeTrailsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -187,6 +273,14 @@ export var DescribeTrailsResponse;
187
273
  (function (DescribeTrailsResponse) {
188
274
  DescribeTrailsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
275
  })(DescribeTrailsResponse || (DescribeTrailsResponse = {}));
276
+ export var GetEventDataStoreRequest;
277
+ (function (GetEventDataStoreRequest) {
278
+ GetEventDataStoreRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
279
+ })(GetEventDataStoreRequest || (GetEventDataStoreRequest = {}));
280
+ export var GetEventDataStoreResponse;
281
+ (function (GetEventDataStoreResponse) {
282
+ GetEventDataStoreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
+ })(GetEventDataStoreResponse || (GetEventDataStoreResponse = {}));
190
284
  export var GetEventSelectorsRequest;
191
285
  (function (GetEventSelectorsRequest) {
192
286
  GetEventSelectorsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -230,6 +324,26 @@ export var InsightNotEnabledException;
230
324
  (function (InsightNotEnabledException) {
231
325
  InsightNotEnabledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
232
326
  })(InsightNotEnabledException || (InsightNotEnabledException = {}));
327
+ export var GetQueryResultsRequest;
328
+ (function (GetQueryResultsRequest) {
329
+ GetQueryResultsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
330
+ })(GetQueryResultsRequest || (GetQueryResultsRequest = {}));
331
+ export var QueryStatistics;
332
+ (function (QueryStatistics) {
333
+ QueryStatistics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
+ })(QueryStatistics || (QueryStatistics = {}));
335
+ export var GetQueryResultsResponse;
336
+ (function (GetQueryResultsResponse) {
337
+ GetQueryResultsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
338
+ })(GetQueryResultsResponse || (GetQueryResultsResponse = {}));
339
+ export var InvalidMaxResultsException;
340
+ (function (InvalidMaxResultsException) {
341
+ InvalidMaxResultsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
342
+ })(InvalidMaxResultsException || (InvalidMaxResultsException = {}));
343
+ export var InvalidNextTokenException;
344
+ (function (InvalidNextTokenException) {
345
+ InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
346
+ })(InvalidNextTokenException || (InvalidNextTokenException = {}));
233
347
  export var GetTrailRequest;
234
348
  (function (GetTrailRequest) {
235
349
  GetTrailRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -246,6 +360,18 @@ export var GetTrailStatusResponse;
246
360
  (function (GetTrailStatusResponse) {
247
361
  GetTrailStatusResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
362
  })(GetTrailStatusResponse || (GetTrailStatusResponse = {}));
363
+ export var ListEventDataStoresRequest;
364
+ (function (ListEventDataStoresRequest) {
365
+ ListEventDataStoresRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
366
+ })(ListEventDataStoresRequest || (ListEventDataStoresRequest = {}));
367
+ export var EventDataStore;
368
+ (function (EventDataStore) {
369
+ EventDataStore.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
370
+ })(EventDataStore || (EventDataStore = {}));
371
+ export var ListEventDataStoresResponse;
372
+ (function (ListEventDataStoresResponse) {
373
+ ListEventDataStoresResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
374
+ })(ListEventDataStoresResponse || (ListEventDataStoresResponse = {}));
249
375
  export var InvalidTimeRangeException;
250
376
  (function (InvalidTimeRangeException) {
251
377
  InvalidTimeRangeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -266,6 +392,26 @@ export var ListPublicKeysResponse;
266
392
  (function (ListPublicKeysResponse) {
267
393
  ListPublicKeysResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
268
394
  })(ListPublicKeysResponse || (ListPublicKeysResponse = {}));
395
+ export var InvalidDateRangeException;
396
+ (function (InvalidDateRangeException) {
397
+ InvalidDateRangeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
398
+ })(InvalidDateRangeException || (InvalidDateRangeException = {}));
399
+ export var InvalidQueryStatusException;
400
+ (function (InvalidQueryStatusException) {
401
+ InvalidQueryStatusException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
402
+ })(InvalidQueryStatusException || (InvalidQueryStatusException = {}));
403
+ export var ListQueriesRequest;
404
+ (function (ListQueriesRequest) {
405
+ ListQueriesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
406
+ })(ListQueriesRequest || (ListQueriesRequest = {}));
407
+ export var Query;
408
+ (function (Query) {
409
+ Query.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
410
+ })(Query || (Query = {}));
411
+ export var ListQueriesResponse;
412
+ (function (ListQueriesResponse) {
413
+ ListQueriesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
414
+ })(ListQueriesResponse || (ListQueriesResponse = {}));
269
415
  export var ListTagsRequest;
270
416
  (function (ListTagsRequest) {
271
417
  ListTagsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -298,14 +444,6 @@ export var InvalidLookupAttributesException;
298
444
  (function (InvalidLookupAttributesException) {
299
445
  InvalidLookupAttributesException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
300
446
  })(InvalidLookupAttributesException || (InvalidLookupAttributesException = {}));
301
- export var InvalidMaxResultsException;
302
- (function (InvalidMaxResultsException) {
303
- InvalidMaxResultsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
304
- })(InvalidMaxResultsException || (InvalidMaxResultsException = {}));
305
- export var InvalidNextTokenException;
306
- (function (InvalidNextTokenException) {
307
- InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
308
- })(InvalidNextTokenException || (InvalidNextTokenException = {}));
309
447
  export var EventCategory;
310
448
  (function (EventCategory) {
311
449
  EventCategory["Insight"] = "insight";
@@ -373,6 +511,18 @@ export var RemoveTagsResponse;
373
511
  (function (RemoveTagsResponse) {
374
512
  RemoveTagsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
375
513
  })(RemoveTagsResponse || (RemoveTagsResponse = {}));
514
+ export var InvalidEventDataStoreStatusException;
515
+ (function (InvalidEventDataStoreStatusException) {
516
+ InvalidEventDataStoreStatusException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
517
+ })(InvalidEventDataStoreStatusException || (InvalidEventDataStoreStatusException = {}));
518
+ export var RestoreEventDataStoreRequest;
519
+ (function (RestoreEventDataStoreRequest) {
520
+ RestoreEventDataStoreRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
521
+ })(RestoreEventDataStoreRequest || (RestoreEventDataStoreRequest = {}));
522
+ export var RestoreEventDataStoreResponse;
523
+ (function (RestoreEventDataStoreResponse) {
524
+ RestoreEventDataStoreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
525
+ })(RestoreEventDataStoreResponse || (RestoreEventDataStoreResponse = {}));
376
526
  export var StartLoggingRequest;
377
527
  (function (StartLoggingRequest) {
378
528
  StartLoggingRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -381,6 +531,22 @@ export var StartLoggingResponse;
381
531
  (function (StartLoggingResponse) {
382
532
  StartLoggingResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
383
533
  })(StartLoggingResponse || (StartLoggingResponse = {}));
534
+ export var InvalidQueryStatementException;
535
+ (function (InvalidQueryStatementException) {
536
+ InvalidQueryStatementException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
537
+ })(InvalidQueryStatementException || (InvalidQueryStatementException = {}));
538
+ export var MaxConcurrentQueriesException;
539
+ (function (MaxConcurrentQueriesException) {
540
+ MaxConcurrentQueriesException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
541
+ })(MaxConcurrentQueriesException || (MaxConcurrentQueriesException = {}));
542
+ export var StartQueryRequest;
543
+ (function (StartQueryRequest) {
544
+ StartQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
545
+ })(StartQueryRequest || (StartQueryRequest = {}));
546
+ export var StartQueryResponse;
547
+ (function (StartQueryResponse) {
548
+ StartQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
549
+ })(StartQueryResponse || (StartQueryResponse = {}));
384
550
  export var StopLoggingRequest;
385
551
  (function (StopLoggingRequest) {
386
552
  StopLoggingRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -389,6 +555,14 @@ export var StopLoggingResponse;
389
555
  (function (StopLoggingResponse) {
390
556
  StopLoggingResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
391
557
  })(StopLoggingResponse || (StopLoggingResponse = {}));
558
+ export var UpdateEventDataStoreRequest;
559
+ (function (UpdateEventDataStoreRequest) {
560
+ UpdateEventDataStoreRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
561
+ })(UpdateEventDataStoreRequest || (UpdateEventDataStoreRequest = {}));
562
+ export var UpdateEventDataStoreResponse;
563
+ (function (UpdateEventDataStoreResponse) {
564
+ UpdateEventDataStoreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
565
+ })(UpdateEventDataStoreResponse || (UpdateEventDataStoreResponse = {}));
392
566
  export var UpdateTrailRequest;
393
567
  (function (UpdateTrailRequest) {
394
568
  UpdateTrailRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,73 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { CloudTrail } from "../CloudTrail";
3
+ import { CloudTrailClient } from "../CloudTrailClient";
4
+ import { GetQueryResultsCommand, } from "../commands/GetQueryResultsCommand";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new GetQueryResultsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.getQueryResults.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateGetQueryResults(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateGetQueryResults_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ if (!(config.client instanceof CloudTrail)) return [3, 3];
50
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ case 2:
52
+ page = _a.sent();
53
+ return [3, 6];
54
+ case 3:
55
+ if (!(config.client instanceof CloudTrailClient)) return [3, 5];
56
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ case 4:
58
+ page = _a.sent();
59
+ return [3, 6];
60
+ case 5: throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
61
+ case 6: return [4, __await(page)];
62
+ case 7: return [4, _a.sent()];
63
+ case 8:
64
+ _a.sent();
65
+ token = page.NextToken;
66
+ hasNext = !!token;
67
+ return [3, 1];
68
+ case 9: return [4, __await(undefined)];
69
+ case 10: return [2, _a.sent()];
70
+ }
71
+ });
72
+ });
73
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { CloudTrail } from "../CloudTrail";
3
+ import { CloudTrailClient } from "../CloudTrailClient";
4
+ import { ListEventDataStoresCommand, } from "../commands/ListEventDataStoresCommand";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListEventDataStoresCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listEventDataStores.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListEventDataStores(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListEventDataStores_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof CloudTrail)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof CloudTrailClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { CloudTrail } from "../CloudTrail";
3
+ import { CloudTrailClient } from "../CloudTrailClient";
4
+ import { ListQueriesCommand } from "../commands/ListQueriesCommand";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListQueriesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listQueries.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListQueries(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListQueries_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof CloudTrail)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof CloudTrailClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -1,5 +1,8 @@
1
+ export * from "./GetQueryResultsPaginator";
1
2
  export * from "./Interfaces";
3
+ export * from "./ListEventDataStoresPaginator";
2
4
  export * from "./ListPublicKeysPaginator";
5
+ export * from "./ListQueriesPaginator";
3
6
  export * from "./ListTagsPaginator";
4
7
  export * from "./ListTrailsPaginator";
5
8
  export * from "./LookupEventsPaginator";