@aws-sdk/client-application-insights 3.185.0 → 3.188.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 (45) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/ApplicationInsights.js +110 -117
  3. package/dist-es/ApplicationInsightsClient.js +22 -28
  4. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  5. package/dist-es/commands/CreateComponentCommand.js +21 -28
  6. package/dist-es/commands/CreateLogPatternCommand.js +21 -28
  7. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  8. package/dist-es/commands/DeleteComponentCommand.js +21 -28
  9. package/dist-es/commands/DeleteLogPatternCommand.js +21 -28
  10. package/dist-es/commands/DescribeApplicationCommand.js +21 -28
  11. package/dist-es/commands/DescribeComponentCommand.js +21 -28
  12. package/dist-es/commands/DescribeComponentConfigurationCommand.js +21 -28
  13. package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +21 -28
  14. package/dist-es/commands/DescribeLogPatternCommand.js +21 -28
  15. package/dist-es/commands/DescribeObservationCommand.js +21 -28
  16. package/dist-es/commands/DescribeProblemCommand.js +21 -28
  17. package/dist-es/commands/DescribeProblemObservationsCommand.js +21 -28
  18. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  19. package/dist-es/commands/ListComponentsCommand.js +21 -28
  20. package/dist-es/commands/ListConfigurationHistoryCommand.js +21 -28
  21. package/dist-es/commands/ListLogPatternSetsCommand.js +21 -28
  22. package/dist-es/commands/ListLogPatternsCommand.js +21 -28
  23. package/dist-es/commands/ListProblemsCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/TagResourceCommand.js +21 -28
  26. package/dist-es/commands/UntagResourceCommand.js +21 -28
  27. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  28. package/dist-es/commands/UpdateComponentCommand.js +21 -28
  29. package/dist-es/commands/UpdateComponentConfigurationCommand.js +21 -28
  30. package/dist-es/commands/UpdateLogPatternCommand.js +21 -28
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/ApplicationInsightsServiceException.js +5 -10
  33. package/dist-es/models/models_0.js +283 -160
  34. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  35. package/dist-es/pagination/ListComponentsPaginator.js +25 -68
  36. package/dist-es/pagination/ListConfigurationHistoryPaginator.js +25 -68
  37. package/dist-es/pagination/ListLogPatternSetsPaginator.js +25 -68
  38. package/dist-es/pagination/ListLogPatternsPaginator.js +25 -68
  39. package/dist-es/pagination/ListProblemsPaginator.js +25 -68
  40. package/dist-es/protocols/Aws_json1_1.js +1705 -2210
  41. package/dist-es/runtimeConfig.browser.js +26 -12
  42. package/dist-es/runtimeConfig.js +30 -12
  43. package/dist-es/runtimeConfig.native.js +8 -5
  44. package/dist-es/runtimeConfig.shared.js +8 -11
  45. package/package.json +33 -33
@@ -1,178 +1,301 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { ApplicationInsightsServiceException as __BaseException } from "./ApplicationInsightsServiceException";
3
- var AccessDeniedException = (function (_super) {
4
- __extends(AccessDeniedException, _super);
5
- function AccessDeniedException(opts) {
6
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
- _this.name = "AccessDeniedException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
- _this.Message = opts.Message;
11
- return _this;
2
+ export class AccessDeniedException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AccessDeniedException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AccessDeniedException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ this.Message = opts.Message;
12
13
  }
13
- return AccessDeniedException;
14
- }(__BaseException));
15
- export { AccessDeniedException };
14
+ }
16
15
  export var DiscoveryType;
17
16
  (function (DiscoveryType) {
18
17
  DiscoveryType["ACCOUNT_BASED"] = "ACCOUNT_BASED";
19
18
  DiscoveryType["RESOURCE_GROUP_BASED"] = "RESOURCE_GROUP_BASED";
20
19
  })(DiscoveryType || (DiscoveryType = {}));
21
- var BadRequestException = (function (_super) {
22
- __extends(BadRequestException, _super);
23
- function BadRequestException(opts) {
24
- var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
25
- _this.name = "BadRequestException";
26
- _this.$fault = "client";
27
- Object.setPrototypeOf(_this, BadRequestException.prototype);
28
- _this.Message = opts.Message;
29
- return _this;
20
+ export class BadRequestException extends __BaseException {
21
+ constructor(opts) {
22
+ super({
23
+ name: "BadRequestException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ this.name = "BadRequestException";
28
+ this.$fault = "client";
29
+ Object.setPrototypeOf(this, BadRequestException.prototype);
30
+ this.Message = opts.Message;
30
31
  }
31
- return BadRequestException;
32
- }(__BaseException));
33
- export { BadRequestException };
32
+ }
34
33
  export var GroupingType;
35
34
  (function (GroupingType) {
36
35
  GroupingType["ACCOUNT_BASED"] = "ACCOUNT_BASED";
37
36
  })(GroupingType || (GroupingType = {}));
38
- var InternalServerException = (function (_super) {
39
- __extends(InternalServerException, _super);
40
- function InternalServerException(opts) {
41
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
42
- _this.name = "InternalServerException";
43
- _this.$fault = "server";
44
- Object.setPrototypeOf(_this, InternalServerException.prototype);
45
- _this.Message = opts.Message;
46
- return _this;
37
+ export class InternalServerException extends __BaseException {
38
+ constructor(opts) {
39
+ super({
40
+ name: "InternalServerException",
41
+ $fault: "server",
42
+ ...opts,
43
+ });
44
+ this.name = "InternalServerException";
45
+ this.$fault = "server";
46
+ Object.setPrototypeOf(this, InternalServerException.prototype);
47
+ this.Message = opts.Message;
47
48
  }
48
- return InternalServerException;
49
- }(__BaseException));
50
- export { InternalServerException };
51
- var ResourceInUseException = (function (_super) {
52
- __extends(ResourceInUseException, _super);
53
- function ResourceInUseException(opts) {
54
- var _this = _super.call(this, __assign({ name: "ResourceInUseException", $fault: "client" }, opts)) || this;
55
- _this.name = "ResourceInUseException";
56
- _this.$fault = "client";
57
- Object.setPrototypeOf(_this, ResourceInUseException.prototype);
58
- _this.Message = opts.Message;
59
- return _this;
49
+ }
50
+ export class ResourceInUseException extends __BaseException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "ResourceInUseException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "ResourceInUseException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
60
+ this.Message = opts.Message;
60
61
  }
61
- return ResourceInUseException;
62
- }(__BaseException));
63
- export { ResourceInUseException };
64
- var ResourceNotFoundException = (function (_super) {
65
- __extends(ResourceNotFoundException, _super);
66
- function ResourceNotFoundException(opts) {
67
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
68
- _this.name = "ResourceNotFoundException";
69
- _this.$fault = "client";
70
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
71
- _this.Message = opts.Message;
72
- return _this;
62
+ }
63
+ export class ResourceNotFoundException extends __BaseException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "ResourceNotFoundException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "ResourceNotFoundException";
71
+ this.$fault = "client";
72
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
73
+ this.Message = opts.Message;
73
74
  }
74
- return ResourceNotFoundException;
75
- }(__BaseException));
76
- export { ResourceNotFoundException };
77
- var TagsAlreadyExistException = (function (_super) {
78
- __extends(TagsAlreadyExistException, _super);
79
- function TagsAlreadyExistException(opts) {
80
- var _this = _super.call(this, __assign({ name: "TagsAlreadyExistException", $fault: "client" }, opts)) || this;
81
- _this.name = "TagsAlreadyExistException";
82
- _this.$fault = "client";
83
- Object.setPrototypeOf(_this, TagsAlreadyExistException.prototype);
84
- _this.Message = opts.Message;
85
- return _this;
75
+ }
76
+ export class TagsAlreadyExistException extends __BaseException {
77
+ constructor(opts) {
78
+ super({
79
+ name: "TagsAlreadyExistException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ this.name = "TagsAlreadyExistException";
84
+ this.$fault = "client";
85
+ Object.setPrototypeOf(this, TagsAlreadyExistException.prototype);
86
+ this.Message = opts.Message;
86
87
  }
87
- return TagsAlreadyExistException;
88
- }(__BaseException));
89
- export { TagsAlreadyExistException };
90
- var ValidationException = (function (_super) {
91
- __extends(ValidationException, _super);
92
- function ValidationException(opts) {
93
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
94
- _this.name = "ValidationException";
95
- _this.$fault = "client";
96
- Object.setPrototypeOf(_this, ValidationException.prototype);
97
- _this.Message = opts.Message;
98
- return _this;
88
+ }
89
+ export class ValidationException extends __BaseException {
90
+ constructor(opts) {
91
+ super({
92
+ name: "ValidationException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ this.name = "ValidationException";
97
+ this.$fault = "client";
98
+ Object.setPrototypeOf(this, ValidationException.prototype);
99
+ this.Message = opts.Message;
99
100
  }
100
- return ValidationException;
101
- }(__BaseException));
102
- export { ValidationException };
103
- var TooManyTagsException = (function (_super) {
104
- __extends(TooManyTagsException, _super);
105
- function TooManyTagsException(opts) {
106
- var _this = _super.call(this, __assign({ name: "TooManyTagsException", $fault: "client" }, opts)) || this;
107
- _this.name = "TooManyTagsException";
108
- _this.$fault = "client";
109
- Object.setPrototypeOf(_this, TooManyTagsException.prototype);
110
- _this.Message = opts.Message;
111
- _this.ResourceName = opts.ResourceName;
112
- return _this;
101
+ }
102
+ export class TooManyTagsException extends __BaseException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "TooManyTagsException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "TooManyTagsException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
112
+ this.Message = opts.Message;
113
+ this.ResourceName = opts.ResourceName;
113
114
  }
114
- return TooManyTagsException;
115
- }(__BaseException));
116
- export { TooManyTagsException };
117
- export var ApplicationComponentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
- export var ApplicationInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
- export var ConfigurationEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
- export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
- export var CreateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
- export var CreateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
- export var CreateComponentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
- export var CreateComponentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
- export var CreateLogPatternRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
- export var LogPatternFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
- export var CreateLogPatternResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
128
- export var DeleteApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
- export var DeleteApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
- export var DeleteComponentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
- export var DeleteComponentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
- export var DeleteLogPatternRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
- export var DeleteLogPatternResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- export var DescribeApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
- export var DescribeApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
- export var DescribeComponentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
- export var DescribeComponentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
- export var DescribeComponentConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- export var DescribeComponentConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
- export var DescribeComponentConfigurationRecommendationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- export var DescribeComponentConfigurationRecommendationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
- export var DescribeLogPatternRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- export var DescribeLogPatternResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
- export var DescribeObservationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
- export var ObservationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
- export var DescribeObservationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
- export var DescribeProblemRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
- export var ProblemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
- export var DescribeProblemResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
- export var DescribeProblemObservationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
- export var RelatedObservationsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
- export var DescribeProblemObservationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
- export var ListApplicationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
- export var ListApplicationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
155
- export var ListComponentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
- export var ListComponentsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
- export var ListConfigurationHistoryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
- export var ListConfigurationHistoryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
159
- export var ListLogPatternsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
- export var ListLogPatternsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
- export var ListLogPatternSetsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- export var ListLogPatternSetsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
- export var ListProblemsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- export var ListProblemsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
- export var UpdateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
- export var UpdateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
- export var UpdateComponentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
- export var UpdateComponentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
- export var UpdateComponentConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
- export var UpdateComponentConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
- export var UpdateLogPatternRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
- export var UpdateLogPatternResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
+ }
116
+ export const ApplicationComponentFilterSensitiveLog = (obj) => ({
117
+ ...obj,
118
+ });
119
+ export const ApplicationInfoFilterSensitiveLog = (obj) => ({
120
+ ...obj,
121
+ });
122
+ export const ConfigurationEventFilterSensitiveLog = (obj) => ({
123
+ ...obj,
124
+ });
125
+ export const TagFilterSensitiveLog = (obj) => ({
126
+ ...obj,
127
+ });
128
+ export const CreateApplicationRequestFilterSensitiveLog = (obj) => ({
129
+ ...obj,
130
+ });
131
+ export const CreateApplicationResponseFilterSensitiveLog = (obj) => ({
132
+ ...obj,
133
+ });
134
+ export const CreateComponentRequestFilterSensitiveLog = (obj) => ({
135
+ ...obj,
136
+ });
137
+ export const CreateComponentResponseFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ export const CreateLogPatternRequestFilterSensitiveLog = (obj) => ({
141
+ ...obj,
142
+ });
143
+ export const LogPatternFilterSensitiveLog = (obj) => ({
144
+ ...obj,
145
+ });
146
+ export const CreateLogPatternResponseFilterSensitiveLog = (obj) => ({
147
+ ...obj,
148
+ });
149
+ export const DeleteApplicationRequestFilterSensitiveLog = (obj) => ({
150
+ ...obj,
151
+ });
152
+ export const DeleteApplicationResponseFilterSensitiveLog = (obj) => ({
153
+ ...obj,
154
+ });
155
+ export const DeleteComponentRequestFilterSensitiveLog = (obj) => ({
156
+ ...obj,
157
+ });
158
+ export const DeleteComponentResponseFilterSensitiveLog = (obj) => ({
159
+ ...obj,
160
+ });
161
+ export const DeleteLogPatternRequestFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ export const DeleteLogPatternResponseFilterSensitiveLog = (obj) => ({
165
+ ...obj,
166
+ });
167
+ export const DescribeApplicationRequestFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ });
170
+ export const DescribeApplicationResponseFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ });
173
+ export const DescribeComponentRequestFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ });
176
+ export const DescribeComponentResponseFilterSensitiveLog = (obj) => ({
177
+ ...obj,
178
+ });
179
+ export const DescribeComponentConfigurationRequestFilterSensitiveLog = (obj) => ({
180
+ ...obj,
181
+ });
182
+ export const DescribeComponentConfigurationResponseFilterSensitiveLog = (obj) => ({
183
+ ...obj,
184
+ });
185
+ export const DescribeComponentConfigurationRecommendationRequestFilterSensitiveLog = (obj) => ({
186
+ ...obj,
187
+ });
188
+ export const DescribeComponentConfigurationRecommendationResponseFilterSensitiveLog = (obj) => ({
189
+ ...obj,
190
+ });
191
+ export const DescribeLogPatternRequestFilterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ });
194
+ export const DescribeLogPatternResponseFilterSensitiveLog = (obj) => ({
195
+ ...obj,
196
+ });
197
+ export const DescribeObservationRequestFilterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ });
200
+ export const ObservationFilterSensitiveLog = (obj) => ({
201
+ ...obj,
202
+ });
203
+ export const DescribeObservationResponseFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ });
206
+ export const DescribeProblemRequestFilterSensitiveLog = (obj) => ({
207
+ ...obj,
208
+ });
209
+ export const ProblemFilterSensitiveLog = (obj) => ({
210
+ ...obj,
211
+ });
212
+ export const DescribeProblemResponseFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ });
215
+ export const DescribeProblemObservationsRequestFilterSensitiveLog = (obj) => ({
216
+ ...obj,
217
+ });
218
+ export const RelatedObservationsFilterSensitiveLog = (obj) => ({
219
+ ...obj,
220
+ });
221
+ export const DescribeProblemObservationsResponseFilterSensitiveLog = (obj) => ({
222
+ ...obj,
223
+ });
224
+ export const ListApplicationsRequestFilterSensitiveLog = (obj) => ({
225
+ ...obj,
226
+ });
227
+ export const ListApplicationsResponseFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
230
+ export const ListComponentsRequestFilterSensitiveLog = (obj) => ({
231
+ ...obj,
232
+ });
233
+ export const ListComponentsResponseFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ export const ListConfigurationHistoryRequestFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ });
239
+ export const ListConfigurationHistoryResponseFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
242
+ export const ListLogPatternsRequestFilterSensitiveLog = (obj) => ({
243
+ ...obj,
244
+ });
245
+ export const ListLogPatternsResponseFilterSensitiveLog = (obj) => ({
246
+ ...obj,
247
+ });
248
+ export const ListLogPatternSetsRequestFilterSensitiveLog = (obj) => ({
249
+ ...obj,
250
+ });
251
+ export const ListLogPatternSetsResponseFilterSensitiveLog = (obj) => ({
252
+ ...obj,
253
+ });
254
+ export const ListProblemsRequestFilterSensitiveLog = (obj) => ({
255
+ ...obj,
256
+ });
257
+ export const ListProblemsResponseFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ });
260
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
261
+ ...obj,
262
+ });
263
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
264
+ ...obj,
265
+ });
266
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ });
269
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
270
+ ...obj,
271
+ });
272
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ });
275
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
276
+ ...obj,
277
+ });
278
+ export const UpdateApplicationRequestFilterSensitiveLog = (obj) => ({
279
+ ...obj,
280
+ });
281
+ export const UpdateApplicationResponseFilterSensitiveLog = (obj) => ({
282
+ ...obj,
283
+ });
284
+ export const UpdateComponentRequestFilterSensitiveLog = (obj) => ({
285
+ ...obj,
286
+ });
287
+ export const UpdateComponentResponseFilterSensitiveLog = (obj) => ({
288
+ ...obj,
289
+ });
290
+ export const UpdateComponentConfigurationRequestFilterSensitiveLog = (obj) => ({
291
+ ...obj,
292
+ });
293
+ export const UpdateComponentConfigurationResponseFilterSensitiveLog = (obj) => ({
294
+ ...obj,
295
+ });
296
+ export const UpdateLogPatternRequestFilterSensitiveLog = (obj) => ({
297
+ ...obj,
298
+ });
299
+ export const UpdateLogPatternResponseFilterSensitiveLog = (obj) => ({
300
+ ...obj,
301
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ApplicationInsights } from "../ApplicationInsights";
3
2
  import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
4
3
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
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 ListApplicationsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListApplicationsCommand(input), ...args);
18
6
  };
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.listApplications.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listApplications(input, ...args);
32
9
  };
33
- export function paginateListApplications(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListApplications(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof ApplicationInsights) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ApplicationInsightsClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListApplications_1() {
39
- var token, hasNext, page, prevToken;
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 ApplicationInsights)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof ApplicationInsightsClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.NextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }