@aws-sdk/client-application-insights 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +33 -27
- package/dist-es/ApplicationInsights.js +110 -117
- package/dist-es/ApplicationInsightsClient.js +22 -28
- package/dist-es/commands/CreateApplicationCommand.js +21 -28
- package/dist-es/commands/CreateComponentCommand.js +21 -28
- package/dist-es/commands/CreateLogPatternCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationCommand.js +21 -28
- package/dist-es/commands/DeleteComponentCommand.js +21 -28
- package/dist-es/commands/DeleteLogPatternCommand.js +21 -28
- package/dist-es/commands/DescribeApplicationCommand.js +21 -28
- package/dist-es/commands/DescribeComponentCommand.js +21 -28
- package/dist-es/commands/DescribeComponentConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +21 -28
- package/dist-es/commands/DescribeLogPatternCommand.js +21 -28
- package/dist-es/commands/DescribeObservationCommand.js +21 -28
- package/dist-es/commands/DescribeProblemCommand.js +21 -28
- package/dist-es/commands/DescribeProblemObservationsCommand.js +21 -28
- package/dist-es/commands/ListApplicationsCommand.js +21 -28
- package/dist-es/commands/ListComponentsCommand.js +21 -28
- package/dist-es/commands/ListConfigurationHistoryCommand.js +21 -28
- package/dist-es/commands/ListLogPatternSetsCommand.js +21 -28
- package/dist-es/commands/ListLogPatternsCommand.js +21 -28
- package/dist-es/commands/ListProblemsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationCommand.js +21 -28
- package/dist-es/commands/UpdateComponentCommand.js +21 -28
- package/dist-es/commands/UpdateComponentConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateLogPatternCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ApplicationInsightsServiceException.js +5 -10
- package/dist-es/models/models_0.js +283 -160
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
- package/dist-es/pagination/ListComponentsPaginator.js +25 -68
- package/dist-es/pagination/ListConfigurationHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListLogPatternSetsPaginator.js +25 -68
- package/dist-es/pagination/ListLogPatternsPaginator.js +25 -68
- package/dist-es/pagination/ListProblemsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1705 -2197
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,178 +1,301 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { ApplicationInsightsServiceException as __BaseException } from "./ApplicationInsightsServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
export
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
export
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
export
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
export
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
export
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
export
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
export
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
export
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
export
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
export
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
export
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
export
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
export
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
export
|
|
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
|
-
|
|
6
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
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
|
}
|