@aws-sdk/client-cloudtrail 3.42.0 → 3.47.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.
- package/CHANGELOG.md +48 -0
- package/dist-cjs/CloudTrail.js +165 -0
- package/dist-cjs/commands/CancelQueryCommand.js +36 -0
- package/dist-cjs/commands/CreateEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/DeleteEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/DescribeQueryCommand.js +36 -0
- package/dist-cjs/commands/GetEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/GetQueryResultsCommand.js +36 -0
- package/dist-cjs/commands/ListEventDataStoresCommand.js +36 -0
- package/dist-cjs/commands/ListQueriesCommand.js +36 -0
- package/dist-cjs/commands/RestoreEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/StartQueryCommand.js +36 -0
- package/dist-cjs/commands/UpdateEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +1 -16
- package/dist-cjs/models/models_0.js +158 -252
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +34 -0
- package/dist-cjs/pagination/ListEventDataStoresPaginator.js +35 -0
- package/dist-cjs/pagination/ListQueriesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2319 -389
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/CloudTrail.js +165 -0
- package/dist-es/commands/CancelQueryCommand.js +39 -0
- package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
- package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
- package/dist-es/commands/DescribeQueryCommand.js +39 -0
- package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
- package/dist-es/commands/GetQueryResultsCommand.js +39 -0
- package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
- package/dist-es/commands/ListQueriesCommand.js +39 -0
- package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
- package/dist-es/commands/StartQueryCommand.js +39 -0
- package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoints.js +1 -16
- package/dist-es/models/models_0.js +118 -176
- package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
- package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
- package/dist-es/pagination/ListQueriesPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +2669 -704
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/CloudTrail.d.ts +100 -1
- package/dist-types/CloudTrailClient.d.ts +18 -3
- package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
- package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
- package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
- package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
- package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
- package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
- package/dist-types/commands/StartQueryCommand.d.ts +36 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +926 -328
- package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
- package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +16 -3
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +523 -205
- package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateTrailResponse = exports.UpdateTrailRequest = exports.
|
|
3
|
+
exports.ListQueriesResponse = exports.Query = exports.ListQueriesRequest = exports.ListPublicKeysResponse = exports.PublicKey = exports.ListPublicKeysRequest = exports.ListEventDataStoresResponse = exports.EventDataStore = exports.ListEventDataStoresRequest = exports.GetTrailStatusResponse = exports.GetTrailStatusRequest = exports.GetTrailResponse = exports.GetTrailRequest = exports.GetQueryResultsResponse = exports.QueryStatistics = exports.GetQueryResultsRequest = exports.GetInsightSelectorsResponse = exports.InsightSelector = exports.InsightType = exports.GetInsightSelectorsRequest = exports.GetEventSelectorsResponse = exports.EventSelector = exports.ReadWriteType = exports.DataResource = exports.GetEventSelectorsRequest = exports.GetEventDataStoreResponse = exports.GetEventDataStoreRequest = exports.DescribeTrailsResponse = exports.Trail = exports.DescribeTrailsRequest = exports.DescribeQueryResponse = exports.QueryStatisticsForDescribeQuery = exports.DescribeQueryRequest = exports.DeleteTrailResponse = exports.DeleteTrailRequest = exports.DeleteEventDataStoreResponse = exports.DeleteEventDataStoreRequest = exports.CreateTrailResponse = exports.CreateTrailRequest = exports.CreateEventDataStoreResponse = exports.EventDataStoreStatus = exports.CreateEventDataStoreRequest = exports.CancelQueryResponse = exports.QueryStatus = exports.CancelQueryRequest = exports.AdvancedEventSelector = exports.AdvancedFieldSelector = exports.AddTagsResponse = exports.AddTagsRequest = exports.Tag = void 0;
|
|
4
|
+
exports.UpdateTrailResponse = exports.UpdateTrailRequest = exports.UpdateEventDataStoreResponse = exports.UpdateEventDataStoreRequest = exports.StopLoggingResponse = exports.StopLoggingRequest = exports.StartQueryResponse = exports.StartQueryRequest = exports.StartLoggingResponse = exports.StartLoggingRequest = exports.RestoreEventDataStoreResponse = exports.RestoreEventDataStoreRequest = exports.RemoveTagsResponse = exports.RemoveTagsRequest = exports.PutInsightSelectorsResponse = exports.PutInsightSelectorsRequest = exports.PutEventSelectorsResponse = exports.PutEventSelectorsRequest = exports.LookupEventsResponse = exports.Event = exports.Resource = exports.LookupEventsRequest = exports.LookupAttribute = exports.LookupAttributeKey = exports.EventCategory = exports.ListTrailsResponse = exports.TrailInfo = exports.ListTrailsRequest = exports.ListTagsResponse = exports.ResourceTag = exports.ListTagsRequest = void 0;
|
|
5
5
|
var Tag;
|
|
6
6
|
(function (Tag) {
|
|
7
7
|
Tag.filterSensitiveLog = (obj) => ({
|
|
@@ -20,60 +20,6 @@ var AddTagsResponse;
|
|
|
20
20
|
...obj,
|
|
21
21
|
});
|
|
22
22
|
})(AddTagsResponse = exports.AddTagsResponse || (exports.AddTagsResponse = {}));
|
|
23
|
-
var CloudTrailARNInvalidException;
|
|
24
|
-
(function (CloudTrailARNInvalidException) {
|
|
25
|
-
CloudTrailARNInvalidException.filterSensitiveLog = (obj) => ({
|
|
26
|
-
...obj,
|
|
27
|
-
});
|
|
28
|
-
})(CloudTrailARNInvalidException = exports.CloudTrailARNInvalidException || (exports.CloudTrailARNInvalidException = {}));
|
|
29
|
-
var InvalidTagParameterException;
|
|
30
|
-
(function (InvalidTagParameterException) {
|
|
31
|
-
InvalidTagParameterException.filterSensitiveLog = (obj) => ({
|
|
32
|
-
...obj,
|
|
33
|
-
});
|
|
34
|
-
})(InvalidTagParameterException = exports.InvalidTagParameterException || (exports.InvalidTagParameterException = {}));
|
|
35
|
-
var InvalidTrailNameException;
|
|
36
|
-
(function (InvalidTrailNameException) {
|
|
37
|
-
InvalidTrailNameException.filterSensitiveLog = (obj) => ({
|
|
38
|
-
...obj,
|
|
39
|
-
});
|
|
40
|
-
})(InvalidTrailNameException = exports.InvalidTrailNameException || (exports.InvalidTrailNameException = {}));
|
|
41
|
-
var NotOrganizationMasterAccountException;
|
|
42
|
-
(function (NotOrganizationMasterAccountException) {
|
|
43
|
-
NotOrganizationMasterAccountException.filterSensitiveLog = (obj) => ({
|
|
44
|
-
...obj,
|
|
45
|
-
});
|
|
46
|
-
})(NotOrganizationMasterAccountException = exports.NotOrganizationMasterAccountException || (exports.NotOrganizationMasterAccountException = {}));
|
|
47
|
-
var OperationNotPermittedException;
|
|
48
|
-
(function (OperationNotPermittedException) {
|
|
49
|
-
OperationNotPermittedException.filterSensitiveLog = (obj) => ({
|
|
50
|
-
...obj,
|
|
51
|
-
});
|
|
52
|
-
})(OperationNotPermittedException = exports.OperationNotPermittedException || (exports.OperationNotPermittedException = {}));
|
|
53
|
-
var ResourceNotFoundException;
|
|
54
|
-
(function (ResourceNotFoundException) {
|
|
55
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
56
|
-
...obj,
|
|
57
|
-
});
|
|
58
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
59
|
-
var ResourceTypeNotSupportedException;
|
|
60
|
-
(function (ResourceTypeNotSupportedException) {
|
|
61
|
-
ResourceTypeNotSupportedException.filterSensitiveLog = (obj) => ({
|
|
62
|
-
...obj,
|
|
63
|
-
});
|
|
64
|
-
})(ResourceTypeNotSupportedException = exports.ResourceTypeNotSupportedException || (exports.ResourceTypeNotSupportedException = {}));
|
|
65
|
-
var TagsLimitExceededException;
|
|
66
|
-
(function (TagsLimitExceededException) {
|
|
67
|
-
TagsLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
68
|
-
...obj,
|
|
69
|
-
});
|
|
70
|
-
})(TagsLimitExceededException = exports.TagsLimitExceededException || (exports.TagsLimitExceededException = {}));
|
|
71
|
-
var UnsupportedOperationException;
|
|
72
|
-
(function (UnsupportedOperationException) {
|
|
73
|
-
UnsupportedOperationException.filterSensitiveLog = (obj) => ({
|
|
74
|
-
...obj,
|
|
75
|
-
});
|
|
76
|
-
})(UnsupportedOperationException = exports.UnsupportedOperationException || (exports.UnsupportedOperationException = {}));
|
|
77
23
|
var AdvancedFieldSelector;
|
|
78
24
|
(function (AdvancedFieldSelector) {
|
|
79
25
|
AdvancedFieldSelector.filterSensitiveLog = (obj) => ({
|
|
@@ -86,24 +32,44 @@ var AdvancedEventSelector;
|
|
|
86
32
|
...obj,
|
|
87
33
|
});
|
|
88
34
|
})(AdvancedEventSelector = exports.AdvancedEventSelector || (exports.AdvancedEventSelector = {}));
|
|
89
|
-
var
|
|
90
|
-
(function (
|
|
91
|
-
|
|
92
|
-
...obj,
|
|
93
|
-
});
|
|
94
|
-
})(
|
|
95
|
-
var
|
|
96
|
-
(function (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
35
|
+
var CancelQueryRequest;
|
|
36
|
+
(function (CancelQueryRequest) {
|
|
37
|
+
CancelQueryRequest.filterSensitiveLog = (obj) => ({
|
|
38
|
+
...obj,
|
|
39
|
+
});
|
|
40
|
+
})(CancelQueryRequest = exports.CancelQueryRequest || (exports.CancelQueryRequest = {}));
|
|
41
|
+
var QueryStatus;
|
|
42
|
+
(function (QueryStatus) {
|
|
43
|
+
QueryStatus["CANCELLED"] = "CANCELLED";
|
|
44
|
+
QueryStatus["FAILED"] = "FAILED";
|
|
45
|
+
QueryStatus["FINISHED"] = "FINISHED";
|
|
46
|
+
QueryStatus["QUEUED"] = "QUEUED";
|
|
47
|
+
QueryStatus["RUNNING"] = "RUNNING";
|
|
48
|
+
})(QueryStatus = exports.QueryStatus || (exports.QueryStatus = {}));
|
|
49
|
+
var CancelQueryResponse;
|
|
50
|
+
(function (CancelQueryResponse) {
|
|
51
|
+
CancelQueryResponse.filterSensitiveLog = (obj) => ({
|
|
52
|
+
...obj,
|
|
53
|
+
});
|
|
54
|
+
})(CancelQueryResponse = exports.CancelQueryResponse || (exports.CancelQueryResponse = {}));
|
|
55
|
+
var CreateEventDataStoreRequest;
|
|
56
|
+
(function (CreateEventDataStoreRequest) {
|
|
57
|
+
CreateEventDataStoreRequest.filterSensitiveLog = (obj) => ({
|
|
58
|
+
...obj,
|
|
59
|
+
});
|
|
60
|
+
})(CreateEventDataStoreRequest = exports.CreateEventDataStoreRequest || (exports.CreateEventDataStoreRequest = {}));
|
|
61
|
+
var EventDataStoreStatus;
|
|
62
|
+
(function (EventDataStoreStatus) {
|
|
63
|
+
EventDataStoreStatus["CREATED"] = "CREATED";
|
|
64
|
+
EventDataStoreStatus["ENABLED"] = "ENABLED";
|
|
65
|
+
EventDataStoreStatus["PENDING_DELETION"] = "PENDING_DELETION";
|
|
66
|
+
})(EventDataStoreStatus = exports.EventDataStoreStatus || (exports.EventDataStoreStatus = {}));
|
|
67
|
+
var CreateEventDataStoreResponse;
|
|
68
|
+
(function (CreateEventDataStoreResponse) {
|
|
69
|
+
CreateEventDataStoreResponse.filterSensitiveLog = (obj) => ({
|
|
70
|
+
...obj,
|
|
71
|
+
});
|
|
72
|
+
})(CreateEventDataStoreResponse = exports.CreateEventDataStoreResponse || (exports.CreateEventDataStoreResponse = {}));
|
|
107
73
|
var CreateTrailRequest;
|
|
108
74
|
(function (CreateTrailRequest) {
|
|
109
75
|
CreateTrailRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -116,132 +82,18 @@ var CreateTrailResponse;
|
|
|
116
82
|
...obj,
|
|
117
83
|
});
|
|
118
84
|
})(CreateTrailResponse = exports.CreateTrailResponse || (exports.CreateTrailResponse = {}));
|
|
119
|
-
var
|
|
120
|
-
(function (
|
|
121
|
-
|
|
122
|
-
...obj,
|
|
123
|
-
});
|
|
124
|
-
})(InsufficientDependencyServiceAccessPermissionException = exports.InsufficientDependencyServiceAccessPermissionException || (exports.InsufficientDependencyServiceAccessPermissionException = {}));
|
|
125
|
-
var InsufficientEncryptionPolicyException;
|
|
126
|
-
(function (InsufficientEncryptionPolicyException) {
|
|
127
|
-
InsufficientEncryptionPolicyException.filterSensitiveLog = (obj) => ({
|
|
128
|
-
...obj,
|
|
129
|
-
});
|
|
130
|
-
})(InsufficientEncryptionPolicyException = exports.InsufficientEncryptionPolicyException || (exports.InsufficientEncryptionPolicyException = {}));
|
|
131
|
-
var InsufficientS3BucketPolicyException;
|
|
132
|
-
(function (InsufficientS3BucketPolicyException) {
|
|
133
|
-
InsufficientS3BucketPolicyException.filterSensitiveLog = (obj) => ({
|
|
134
|
-
...obj,
|
|
135
|
-
});
|
|
136
|
-
})(InsufficientS3BucketPolicyException = exports.InsufficientS3BucketPolicyException || (exports.InsufficientS3BucketPolicyException = {}));
|
|
137
|
-
var InsufficientSnsTopicPolicyException;
|
|
138
|
-
(function (InsufficientSnsTopicPolicyException) {
|
|
139
|
-
InsufficientSnsTopicPolicyException.filterSensitiveLog = (obj) => ({
|
|
140
|
-
...obj,
|
|
141
|
-
});
|
|
142
|
-
})(InsufficientSnsTopicPolicyException = exports.InsufficientSnsTopicPolicyException || (exports.InsufficientSnsTopicPolicyException = {}));
|
|
143
|
-
var InvalidCloudWatchLogsLogGroupArnException;
|
|
144
|
-
(function (InvalidCloudWatchLogsLogGroupArnException) {
|
|
145
|
-
InvalidCloudWatchLogsLogGroupArnException.filterSensitiveLog = (obj) => ({
|
|
146
|
-
...obj,
|
|
147
|
-
});
|
|
148
|
-
})(InvalidCloudWatchLogsLogGroupArnException = exports.InvalidCloudWatchLogsLogGroupArnException || (exports.InvalidCloudWatchLogsLogGroupArnException = {}));
|
|
149
|
-
var InvalidCloudWatchLogsRoleArnException;
|
|
150
|
-
(function (InvalidCloudWatchLogsRoleArnException) {
|
|
151
|
-
InvalidCloudWatchLogsRoleArnException.filterSensitiveLog = (obj) => ({
|
|
152
|
-
...obj,
|
|
153
|
-
});
|
|
154
|
-
})(InvalidCloudWatchLogsRoleArnException = exports.InvalidCloudWatchLogsRoleArnException || (exports.InvalidCloudWatchLogsRoleArnException = {}));
|
|
155
|
-
var InvalidKmsKeyIdException;
|
|
156
|
-
(function (InvalidKmsKeyIdException) {
|
|
157
|
-
InvalidKmsKeyIdException.filterSensitiveLog = (obj) => ({
|
|
158
|
-
...obj,
|
|
159
|
-
});
|
|
160
|
-
})(InvalidKmsKeyIdException = exports.InvalidKmsKeyIdException || (exports.InvalidKmsKeyIdException = {}));
|
|
161
|
-
var InvalidParameterCombinationException;
|
|
162
|
-
(function (InvalidParameterCombinationException) {
|
|
163
|
-
InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
|
|
164
|
-
...obj,
|
|
165
|
-
});
|
|
166
|
-
})(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
|
|
167
|
-
var InvalidS3BucketNameException;
|
|
168
|
-
(function (InvalidS3BucketNameException) {
|
|
169
|
-
InvalidS3BucketNameException.filterSensitiveLog = (obj) => ({
|
|
170
|
-
...obj,
|
|
171
|
-
});
|
|
172
|
-
})(InvalidS3BucketNameException = exports.InvalidS3BucketNameException || (exports.InvalidS3BucketNameException = {}));
|
|
173
|
-
var InvalidS3PrefixException;
|
|
174
|
-
(function (InvalidS3PrefixException) {
|
|
175
|
-
InvalidS3PrefixException.filterSensitiveLog = (obj) => ({
|
|
176
|
-
...obj,
|
|
177
|
-
});
|
|
178
|
-
})(InvalidS3PrefixException = exports.InvalidS3PrefixException || (exports.InvalidS3PrefixException = {}));
|
|
179
|
-
var InvalidSnsTopicNameException;
|
|
180
|
-
(function (InvalidSnsTopicNameException) {
|
|
181
|
-
InvalidSnsTopicNameException.filterSensitiveLog = (obj) => ({
|
|
182
|
-
...obj,
|
|
183
|
-
});
|
|
184
|
-
})(InvalidSnsTopicNameException = exports.InvalidSnsTopicNameException || (exports.InvalidSnsTopicNameException = {}));
|
|
185
|
-
var KmsException;
|
|
186
|
-
(function (KmsException) {
|
|
187
|
-
KmsException.filterSensitiveLog = (obj) => ({
|
|
188
|
-
...obj,
|
|
189
|
-
});
|
|
190
|
-
})(KmsException = exports.KmsException || (exports.KmsException = {}));
|
|
191
|
-
var KmsKeyDisabledException;
|
|
192
|
-
(function (KmsKeyDisabledException) {
|
|
193
|
-
KmsKeyDisabledException.filterSensitiveLog = (obj) => ({
|
|
194
|
-
...obj,
|
|
195
|
-
});
|
|
196
|
-
})(KmsKeyDisabledException = exports.KmsKeyDisabledException || (exports.KmsKeyDisabledException = {}));
|
|
197
|
-
var KmsKeyNotFoundException;
|
|
198
|
-
(function (KmsKeyNotFoundException) {
|
|
199
|
-
KmsKeyNotFoundException.filterSensitiveLog = (obj) => ({
|
|
200
|
-
...obj,
|
|
201
|
-
});
|
|
202
|
-
})(KmsKeyNotFoundException = exports.KmsKeyNotFoundException || (exports.KmsKeyNotFoundException = {}));
|
|
203
|
-
var MaximumNumberOfTrailsExceededException;
|
|
204
|
-
(function (MaximumNumberOfTrailsExceededException) {
|
|
205
|
-
MaximumNumberOfTrailsExceededException.filterSensitiveLog = (obj) => ({
|
|
85
|
+
var DeleteEventDataStoreRequest;
|
|
86
|
+
(function (DeleteEventDataStoreRequest) {
|
|
87
|
+
DeleteEventDataStoreRequest.filterSensitiveLog = (obj) => ({
|
|
206
88
|
...obj,
|
|
207
89
|
});
|
|
208
|
-
})(
|
|
209
|
-
var
|
|
210
|
-
(function (
|
|
211
|
-
|
|
90
|
+
})(DeleteEventDataStoreRequest = exports.DeleteEventDataStoreRequest || (exports.DeleteEventDataStoreRequest = {}));
|
|
91
|
+
var DeleteEventDataStoreResponse;
|
|
92
|
+
(function (DeleteEventDataStoreResponse) {
|
|
93
|
+
DeleteEventDataStoreResponse.filterSensitiveLog = (obj) => ({
|
|
212
94
|
...obj,
|
|
213
95
|
});
|
|
214
|
-
})(
|
|
215
|
-
var OrganizationsNotInUseException;
|
|
216
|
-
(function (OrganizationsNotInUseException) {
|
|
217
|
-
OrganizationsNotInUseException.filterSensitiveLog = (obj) => ({
|
|
218
|
-
...obj,
|
|
219
|
-
});
|
|
220
|
-
})(OrganizationsNotInUseException = exports.OrganizationsNotInUseException || (exports.OrganizationsNotInUseException = {}));
|
|
221
|
-
var S3BucketDoesNotExistException;
|
|
222
|
-
(function (S3BucketDoesNotExistException) {
|
|
223
|
-
S3BucketDoesNotExistException.filterSensitiveLog = (obj) => ({
|
|
224
|
-
...obj,
|
|
225
|
-
});
|
|
226
|
-
})(S3BucketDoesNotExistException = exports.S3BucketDoesNotExistException || (exports.S3BucketDoesNotExistException = {}));
|
|
227
|
-
var TrailAlreadyExistsException;
|
|
228
|
-
(function (TrailAlreadyExistsException) {
|
|
229
|
-
TrailAlreadyExistsException.filterSensitiveLog = (obj) => ({
|
|
230
|
-
...obj,
|
|
231
|
-
});
|
|
232
|
-
})(TrailAlreadyExistsException = exports.TrailAlreadyExistsException || (exports.TrailAlreadyExistsException = {}));
|
|
233
|
-
var TrailNotProvidedException;
|
|
234
|
-
(function (TrailNotProvidedException) {
|
|
235
|
-
TrailNotProvidedException.filterSensitiveLog = (obj) => ({
|
|
236
|
-
...obj,
|
|
237
|
-
});
|
|
238
|
-
})(TrailNotProvidedException = exports.TrailNotProvidedException || (exports.TrailNotProvidedException = {}));
|
|
239
|
-
var ConflictException;
|
|
240
|
-
(function (ConflictException) {
|
|
241
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
242
|
-
...obj,
|
|
243
|
-
});
|
|
244
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
96
|
+
})(DeleteEventDataStoreResponse = exports.DeleteEventDataStoreResponse || (exports.DeleteEventDataStoreResponse = {}));
|
|
245
97
|
var DeleteTrailRequest;
|
|
246
98
|
(function (DeleteTrailRequest) {
|
|
247
99
|
DeleteTrailRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -254,18 +106,24 @@ var DeleteTrailResponse;
|
|
|
254
106
|
...obj,
|
|
255
107
|
});
|
|
256
108
|
})(DeleteTrailResponse = exports.DeleteTrailResponse || (exports.DeleteTrailResponse = {}));
|
|
257
|
-
var
|
|
258
|
-
(function (
|
|
259
|
-
|
|
109
|
+
var DescribeQueryRequest;
|
|
110
|
+
(function (DescribeQueryRequest) {
|
|
111
|
+
DescribeQueryRequest.filterSensitiveLog = (obj) => ({
|
|
260
112
|
...obj,
|
|
261
113
|
});
|
|
262
|
-
})(
|
|
263
|
-
var
|
|
264
|
-
(function (
|
|
265
|
-
|
|
114
|
+
})(DescribeQueryRequest = exports.DescribeQueryRequest || (exports.DescribeQueryRequest = {}));
|
|
115
|
+
var QueryStatisticsForDescribeQuery;
|
|
116
|
+
(function (QueryStatisticsForDescribeQuery) {
|
|
117
|
+
QueryStatisticsForDescribeQuery.filterSensitiveLog = (obj) => ({
|
|
266
118
|
...obj,
|
|
267
119
|
});
|
|
268
|
-
})(
|
|
120
|
+
})(QueryStatisticsForDescribeQuery = exports.QueryStatisticsForDescribeQuery || (exports.QueryStatisticsForDescribeQuery = {}));
|
|
121
|
+
var DescribeQueryResponse;
|
|
122
|
+
(function (DescribeQueryResponse) {
|
|
123
|
+
DescribeQueryResponse.filterSensitiveLog = (obj) => ({
|
|
124
|
+
...obj,
|
|
125
|
+
});
|
|
126
|
+
})(DescribeQueryResponse = exports.DescribeQueryResponse || (exports.DescribeQueryResponse = {}));
|
|
269
127
|
var DescribeTrailsRequest;
|
|
270
128
|
(function (DescribeTrailsRequest) {
|
|
271
129
|
DescribeTrailsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -284,6 +142,18 @@ var DescribeTrailsResponse;
|
|
|
284
142
|
...obj,
|
|
285
143
|
});
|
|
286
144
|
})(DescribeTrailsResponse = exports.DescribeTrailsResponse || (exports.DescribeTrailsResponse = {}));
|
|
145
|
+
var GetEventDataStoreRequest;
|
|
146
|
+
(function (GetEventDataStoreRequest) {
|
|
147
|
+
GetEventDataStoreRequest.filterSensitiveLog = (obj) => ({
|
|
148
|
+
...obj,
|
|
149
|
+
});
|
|
150
|
+
})(GetEventDataStoreRequest = exports.GetEventDataStoreRequest || (exports.GetEventDataStoreRequest = {}));
|
|
151
|
+
var GetEventDataStoreResponse;
|
|
152
|
+
(function (GetEventDataStoreResponse) {
|
|
153
|
+
GetEventDataStoreResponse.filterSensitiveLog = (obj) => ({
|
|
154
|
+
...obj,
|
|
155
|
+
});
|
|
156
|
+
})(GetEventDataStoreResponse = exports.GetEventDataStoreResponse || (exports.GetEventDataStoreResponse = {}));
|
|
287
157
|
var GetEventSelectorsRequest;
|
|
288
158
|
(function (GetEventSelectorsRequest) {
|
|
289
159
|
GetEventSelectorsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -337,12 +207,24 @@ var GetInsightSelectorsResponse;
|
|
|
337
207
|
...obj,
|
|
338
208
|
});
|
|
339
209
|
})(GetInsightSelectorsResponse = exports.GetInsightSelectorsResponse || (exports.GetInsightSelectorsResponse = {}));
|
|
340
|
-
var
|
|
341
|
-
(function (
|
|
342
|
-
|
|
210
|
+
var GetQueryResultsRequest;
|
|
211
|
+
(function (GetQueryResultsRequest) {
|
|
212
|
+
GetQueryResultsRequest.filterSensitiveLog = (obj) => ({
|
|
213
|
+
...obj,
|
|
214
|
+
});
|
|
215
|
+
})(GetQueryResultsRequest = exports.GetQueryResultsRequest || (exports.GetQueryResultsRequest = {}));
|
|
216
|
+
var QueryStatistics;
|
|
217
|
+
(function (QueryStatistics) {
|
|
218
|
+
QueryStatistics.filterSensitiveLog = (obj) => ({
|
|
219
|
+
...obj,
|
|
220
|
+
});
|
|
221
|
+
})(QueryStatistics = exports.QueryStatistics || (exports.QueryStatistics = {}));
|
|
222
|
+
var GetQueryResultsResponse;
|
|
223
|
+
(function (GetQueryResultsResponse) {
|
|
224
|
+
GetQueryResultsResponse.filterSensitiveLog = (obj) => ({
|
|
343
225
|
...obj,
|
|
344
226
|
});
|
|
345
|
-
})(
|
|
227
|
+
})(GetQueryResultsResponse = exports.GetQueryResultsResponse || (exports.GetQueryResultsResponse = {}));
|
|
346
228
|
var GetTrailRequest;
|
|
347
229
|
(function (GetTrailRequest) {
|
|
348
230
|
GetTrailRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -367,18 +249,24 @@ var GetTrailStatusResponse;
|
|
|
367
249
|
...obj,
|
|
368
250
|
});
|
|
369
251
|
})(GetTrailStatusResponse = exports.GetTrailStatusResponse || (exports.GetTrailStatusResponse = {}));
|
|
370
|
-
var
|
|
371
|
-
(function (
|
|
372
|
-
|
|
252
|
+
var ListEventDataStoresRequest;
|
|
253
|
+
(function (ListEventDataStoresRequest) {
|
|
254
|
+
ListEventDataStoresRequest.filterSensitiveLog = (obj) => ({
|
|
373
255
|
...obj,
|
|
374
256
|
});
|
|
375
|
-
})(
|
|
376
|
-
var
|
|
377
|
-
(function (
|
|
378
|
-
|
|
257
|
+
})(ListEventDataStoresRequest = exports.ListEventDataStoresRequest || (exports.ListEventDataStoresRequest = {}));
|
|
258
|
+
var EventDataStore;
|
|
259
|
+
(function (EventDataStore) {
|
|
260
|
+
EventDataStore.filterSensitiveLog = (obj) => ({
|
|
379
261
|
...obj,
|
|
380
262
|
});
|
|
381
|
-
})(
|
|
263
|
+
})(EventDataStore = exports.EventDataStore || (exports.EventDataStore = {}));
|
|
264
|
+
var ListEventDataStoresResponse;
|
|
265
|
+
(function (ListEventDataStoresResponse) {
|
|
266
|
+
ListEventDataStoresResponse.filterSensitiveLog = (obj) => ({
|
|
267
|
+
...obj,
|
|
268
|
+
});
|
|
269
|
+
})(ListEventDataStoresResponse = exports.ListEventDataStoresResponse || (exports.ListEventDataStoresResponse = {}));
|
|
382
270
|
var ListPublicKeysRequest;
|
|
383
271
|
(function (ListPublicKeysRequest) {
|
|
384
272
|
ListPublicKeysRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -397,6 +285,24 @@ var ListPublicKeysResponse;
|
|
|
397
285
|
...obj,
|
|
398
286
|
});
|
|
399
287
|
})(ListPublicKeysResponse = exports.ListPublicKeysResponse || (exports.ListPublicKeysResponse = {}));
|
|
288
|
+
var ListQueriesRequest;
|
|
289
|
+
(function (ListQueriesRequest) {
|
|
290
|
+
ListQueriesRequest.filterSensitiveLog = (obj) => ({
|
|
291
|
+
...obj,
|
|
292
|
+
});
|
|
293
|
+
})(ListQueriesRequest = exports.ListQueriesRequest || (exports.ListQueriesRequest = {}));
|
|
294
|
+
var Query;
|
|
295
|
+
(function (Query) {
|
|
296
|
+
Query.filterSensitiveLog = (obj) => ({
|
|
297
|
+
...obj,
|
|
298
|
+
});
|
|
299
|
+
})(Query = exports.Query || (exports.Query = {}));
|
|
300
|
+
var ListQueriesResponse;
|
|
301
|
+
(function (ListQueriesResponse) {
|
|
302
|
+
ListQueriesResponse.filterSensitiveLog = (obj) => ({
|
|
303
|
+
...obj,
|
|
304
|
+
});
|
|
305
|
+
})(ListQueriesResponse = exports.ListQueriesResponse || (exports.ListQueriesResponse = {}));
|
|
400
306
|
var ListTagsRequest;
|
|
401
307
|
(function (ListTagsRequest) {
|
|
402
308
|
ListTagsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -433,30 +339,6 @@ var ListTrailsResponse;
|
|
|
433
339
|
...obj,
|
|
434
340
|
});
|
|
435
341
|
})(ListTrailsResponse = exports.ListTrailsResponse || (exports.ListTrailsResponse = {}));
|
|
436
|
-
var InvalidEventCategoryException;
|
|
437
|
-
(function (InvalidEventCategoryException) {
|
|
438
|
-
InvalidEventCategoryException.filterSensitiveLog = (obj) => ({
|
|
439
|
-
...obj,
|
|
440
|
-
});
|
|
441
|
-
})(InvalidEventCategoryException = exports.InvalidEventCategoryException || (exports.InvalidEventCategoryException = {}));
|
|
442
|
-
var InvalidLookupAttributesException;
|
|
443
|
-
(function (InvalidLookupAttributesException) {
|
|
444
|
-
InvalidLookupAttributesException.filterSensitiveLog = (obj) => ({
|
|
445
|
-
...obj,
|
|
446
|
-
});
|
|
447
|
-
})(InvalidLookupAttributesException = exports.InvalidLookupAttributesException || (exports.InvalidLookupAttributesException = {}));
|
|
448
|
-
var InvalidMaxResultsException;
|
|
449
|
-
(function (InvalidMaxResultsException) {
|
|
450
|
-
InvalidMaxResultsException.filterSensitiveLog = (obj) => ({
|
|
451
|
-
...obj,
|
|
452
|
-
});
|
|
453
|
-
})(InvalidMaxResultsException = exports.InvalidMaxResultsException || (exports.InvalidMaxResultsException = {}));
|
|
454
|
-
var InvalidNextTokenException;
|
|
455
|
-
(function (InvalidNextTokenException) {
|
|
456
|
-
InvalidNextTokenException.filterSensitiveLog = (obj) => ({
|
|
457
|
-
...obj,
|
|
458
|
-
});
|
|
459
|
-
})(InvalidNextTokenException = exports.InvalidNextTokenException || (exports.InvalidNextTokenException = {}));
|
|
460
342
|
var EventCategory;
|
|
461
343
|
(function (EventCategory) {
|
|
462
344
|
EventCategory["Insight"] = "insight";
|
|
@@ -502,12 +384,6 @@ var LookupEventsResponse;
|
|
|
502
384
|
...obj,
|
|
503
385
|
});
|
|
504
386
|
})(LookupEventsResponse = exports.LookupEventsResponse || (exports.LookupEventsResponse = {}));
|
|
505
|
-
var InvalidEventSelectorsException;
|
|
506
|
-
(function (InvalidEventSelectorsException) {
|
|
507
|
-
InvalidEventSelectorsException.filterSensitiveLog = (obj) => ({
|
|
508
|
-
...obj,
|
|
509
|
-
});
|
|
510
|
-
})(InvalidEventSelectorsException = exports.InvalidEventSelectorsException || (exports.InvalidEventSelectorsException = {}));
|
|
511
387
|
var PutEventSelectorsRequest;
|
|
512
388
|
(function (PutEventSelectorsRequest) {
|
|
513
389
|
PutEventSelectorsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -520,12 +396,6 @@ var PutEventSelectorsResponse;
|
|
|
520
396
|
...obj,
|
|
521
397
|
});
|
|
522
398
|
})(PutEventSelectorsResponse = exports.PutEventSelectorsResponse || (exports.PutEventSelectorsResponse = {}));
|
|
523
|
-
var InvalidInsightSelectorsException;
|
|
524
|
-
(function (InvalidInsightSelectorsException) {
|
|
525
|
-
InvalidInsightSelectorsException.filterSensitiveLog = (obj) => ({
|
|
526
|
-
...obj,
|
|
527
|
-
});
|
|
528
|
-
})(InvalidInsightSelectorsException = exports.InvalidInsightSelectorsException || (exports.InvalidInsightSelectorsException = {}));
|
|
529
399
|
var PutInsightSelectorsRequest;
|
|
530
400
|
(function (PutInsightSelectorsRequest) {
|
|
531
401
|
PutInsightSelectorsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -550,6 +420,18 @@ var RemoveTagsResponse;
|
|
|
550
420
|
...obj,
|
|
551
421
|
});
|
|
552
422
|
})(RemoveTagsResponse = exports.RemoveTagsResponse || (exports.RemoveTagsResponse = {}));
|
|
423
|
+
var RestoreEventDataStoreRequest;
|
|
424
|
+
(function (RestoreEventDataStoreRequest) {
|
|
425
|
+
RestoreEventDataStoreRequest.filterSensitiveLog = (obj) => ({
|
|
426
|
+
...obj,
|
|
427
|
+
});
|
|
428
|
+
})(RestoreEventDataStoreRequest = exports.RestoreEventDataStoreRequest || (exports.RestoreEventDataStoreRequest = {}));
|
|
429
|
+
var RestoreEventDataStoreResponse;
|
|
430
|
+
(function (RestoreEventDataStoreResponse) {
|
|
431
|
+
RestoreEventDataStoreResponse.filterSensitiveLog = (obj) => ({
|
|
432
|
+
...obj,
|
|
433
|
+
});
|
|
434
|
+
})(RestoreEventDataStoreResponse = exports.RestoreEventDataStoreResponse || (exports.RestoreEventDataStoreResponse = {}));
|
|
553
435
|
var StartLoggingRequest;
|
|
554
436
|
(function (StartLoggingRequest) {
|
|
555
437
|
StartLoggingRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -562,6 +444,18 @@ var StartLoggingResponse;
|
|
|
562
444
|
...obj,
|
|
563
445
|
});
|
|
564
446
|
})(StartLoggingResponse = exports.StartLoggingResponse || (exports.StartLoggingResponse = {}));
|
|
447
|
+
var StartQueryRequest;
|
|
448
|
+
(function (StartQueryRequest) {
|
|
449
|
+
StartQueryRequest.filterSensitiveLog = (obj) => ({
|
|
450
|
+
...obj,
|
|
451
|
+
});
|
|
452
|
+
})(StartQueryRequest = exports.StartQueryRequest || (exports.StartQueryRequest = {}));
|
|
453
|
+
var StartQueryResponse;
|
|
454
|
+
(function (StartQueryResponse) {
|
|
455
|
+
StartQueryResponse.filterSensitiveLog = (obj) => ({
|
|
456
|
+
...obj,
|
|
457
|
+
});
|
|
458
|
+
})(StartQueryResponse = exports.StartQueryResponse || (exports.StartQueryResponse = {}));
|
|
565
459
|
var StopLoggingRequest;
|
|
566
460
|
(function (StopLoggingRequest) {
|
|
567
461
|
StopLoggingRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -574,6 +468,18 @@ var StopLoggingResponse;
|
|
|
574
468
|
...obj,
|
|
575
469
|
});
|
|
576
470
|
})(StopLoggingResponse = exports.StopLoggingResponse || (exports.StopLoggingResponse = {}));
|
|
471
|
+
var UpdateEventDataStoreRequest;
|
|
472
|
+
(function (UpdateEventDataStoreRequest) {
|
|
473
|
+
UpdateEventDataStoreRequest.filterSensitiveLog = (obj) => ({
|
|
474
|
+
...obj,
|
|
475
|
+
});
|
|
476
|
+
})(UpdateEventDataStoreRequest = exports.UpdateEventDataStoreRequest || (exports.UpdateEventDataStoreRequest = {}));
|
|
477
|
+
var UpdateEventDataStoreResponse;
|
|
478
|
+
(function (UpdateEventDataStoreResponse) {
|
|
479
|
+
UpdateEventDataStoreResponse.filterSensitiveLog = (obj) => ({
|
|
480
|
+
...obj,
|
|
481
|
+
});
|
|
482
|
+
})(UpdateEventDataStoreResponse = exports.UpdateEventDataStoreResponse || (exports.UpdateEventDataStoreResponse = {}));
|
|
577
483
|
var UpdateTrailRequest;
|
|
578
484
|
(function (UpdateTrailRequest) {
|
|
579
485
|
UpdateTrailRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetQueryResults = void 0;
|
|
4
|
+
const CloudTrail_1 = require("../CloudTrail");
|
|
5
|
+
const CloudTrailClient_1 = require("../CloudTrailClient");
|
|
6
|
+
const GetQueryResultsCommand_1 = require("../commands/GetQueryResultsCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new GetQueryResultsCommand_1.GetQueryResultsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.getQueryResults(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateGetQueryResults(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
if (config.client instanceof CloudTrail_1.CloudTrail) {
|
|
20
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
21
|
+
}
|
|
22
|
+
else if (config.client instanceof CloudTrailClient_1.CloudTrailClient) {
|
|
23
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
27
|
+
}
|
|
28
|
+
yield page;
|
|
29
|
+
token = page.NextToken;
|
|
30
|
+
hasNext = !!token;
|
|
31
|
+
}
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
exports.paginateGetQueryResults = paginateGetQueryResults;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListEventDataStores = void 0;
|
|
4
|
+
const CloudTrail_1 = require("../CloudTrail");
|
|
5
|
+
const CloudTrailClient_1 = require("../CloudTrailClient");
|
|
6
|
+
const ListEventDataStoresCommand_1 = require("../commands/ListEventDataStoresCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListEventDataStoresCommand_1.ListEventDataStoresCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listEventDataStores(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListEventDataStores(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof CloudTrail_1.CloudTrail) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof CloudTrailClient_1.CloudTrailClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListEventDataStores = paginateListEventDataStores;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListQueries = void 0;
|
|
4
|
+
const CloudTrail_1 = require("../CloudTrail");
|
|
5
|
+
const CloudTrailClient_1 = require("../CloudTrailClient");
|
|
6
|
+
const ListQueriesCommand_1 = require("../commands/ListQueriesCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListQueriesCommand_1.ListQueriesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listQueries(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListQueries(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof CloudTrail_1.CloudTrail) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof CloudTrailClient_1.CloudTrailClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListQueries = paginateListQueries;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetQueryResultsPaginator"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListEventDataStoresPaginator"), exports);
|
|
5
7
|
tslib_1.__exportStar(require("./ListPublicKeysPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListQueriesPaginator"), exports);
|
|
6
9
|
tslib_1.__exportStar(require("./ListTagsPaginator"), exports);
|
|
7
10
|
tslib_1.__exportStar(require("./ListTrailsPaginator"), exports);
|
|
8
11
|
tslib_1.__exportStar(require("./LookupEventsPaginator"), exports);
|