@aws-sdk/client-rum 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/RUM.js +49 -42
- package/dist-es/RUMClient.js +28 -22
- package/dist-es/commands/CreateAppMonitorCommand.js +28 -21
- package/dist-es/commands/DeleteAppMonitorCommand.js +28 -21
- package/dist-es/commands/GetAppMonitorCommand.js +28 -21
- package/dist-es/commands/GetAppMonitorDataCommand.js +28 -21
- package/dist-es/commands/ListAppMonitorsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutRumEventsCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateAppMonitorCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RUMServiceException.js +10 -5
- package/dist-es/models/models_0.js +118 -177
- package/dist-es/pagination/GetAppMonitorDataPaginator.js +68 -25
- package/dist-es/pagination/ListAppMonitorsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +1135 -851
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { RUMServiceException as __BaseException } from "./RUMServiceException";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.$fault = "client";
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
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
|
+
return _this;
|
|
12
11
|
}
|
|
13
|
-
|
|
12
|
+
return AccessDeniedException;
|
|
13
|
+
}(__BaseException));
|
|
14
|
+
export { AccessDeniedException };
|
|
14
15
|
export var Telemetry;
|
|
15
16
|
(function (Telemetry) {
|
|
16
17
|
Telemetry["ERRORS"] = "errors";
|
|
@@ -23,177 +24,117 @@ export var StateEnum;
|
|
|
23
24
|
StateEnum["CREATED"] = "CREATED";
|
|
24
25
|
StateEnum["DELETING"] = "DELETING";
|
|
25
26
|
})(StateEnum || (StateEnum = {}));
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
this.resourceName = opts.resourceName;
|
|
37
|
-
this.resourceType = opts.resourceType;
|
|
27
|
+
var ConflictException = (function (_super) {
|
|
28
|
+
__extends(ConflictException, _super);
|
|
29
|
+
function ConflictException(opts) {
|
|
30
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
31
|
+
_this.name = "ConflictException";
|
|
32
|
+
_this.$fault = "client";
|
|
33
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
34
|
+
_this.resourceName = opts.resourceName;
|
|
35
|
+
_this.resourceType = opts.resourceType;
|
|
36
|
+
return _this;
|
|
38
37
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
return ConflictException;
|
|
39
|
+
}(__BaseException));
|
|
40
|
+
export { ConflictException };
|
|
41
|
+
var InternalServerException = (function (_super) {
|
|
42
|
+
__extends(InternalServerException, _super);
|
|
43
|
+
function InternalServerException(opts) {
|
|
44
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
45
|
+
_this.name = "InternalServerException";
|
|
46
|
+
_this.$fault = "server";
|
|
47
|
+
_this.$retryable = {};
|
|
48
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
49
|
+
_this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
50
|
+
return _this;
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
return InternalServerException;
|
|
53
|
+
}(__BaseException));
|
|
54
|
+
export { InternalServerException };
|
|
55
|
+
var ServiceQuotaExceededException = (function (_super) {
|
|
56
|
+
__extends(ServiceQuotaExceededException, _super);
|
|
57
|
+
function ServiceQuotaExceededException(opts) {
|
|
58
|
+
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
59
|
+
_this.name = "ServiceQuotaExceededException";
|
|
60
|
+
_this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
62
|
+
return _this;
|
|
64
63
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
this.$retryable = {
|
|
64
|
+
return ServiceQuotaExceededException;
|
|
65
|
+
}(__BaseException));
|
|
66
|
+
export { ServiceQuotaExceededException };
|
|
67
|
+
var ThrottlingException = (function (_super) {
|
|
68
|
+
__extends(ThrottlingException, _super);
|
|
69
|
+
function ThrottlingException(opts) {
|
|
70
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
71
|
+
_this.name = "ThrottlingException";
|
|
72
|
+
_this.$fault = "client";
|
|
73
|
+
_this.$retryable = {
|
|
76
74
|
throttling: true,
|
|
77
75
|
};
|
|
78
|
-
Object.setPrototypeOf(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
77
|
+
_this.serviceCode = opts.serviceCode;
|
|
78
|
+
_this.quotaCode = opts.quotaCode;
|
|
79
|
+
_this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
80
|
+
return _this;
|
|
82
81
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
return ThrottlingException;
|
|
83
|
+
}(__BaseException));
|
|
84
|
+
export { ThrottlingException };
|
|
85
|
+
var ValidationException = (function (_super) {
|
|
86
|
+
__extends(ValidationException, _super);
|
|
87
|
+
function ValidationException(opts) {
|
|
88
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
89
|
+
_this.name = "ValidationException";
|
|
90
|
+
_this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
92
|
+
return _this;
|
|
94
93
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
94
|
+
return ValidationException;
|
|
95
|
+
}(__BaseException));
|
|
96
|
+
export { ValidationException };
|
|
97
|
+
var ResourceNotFoundException = (function (_super) {
|
|
98
|
+
__extends(ResourceNotFoundException, _super);
|
|
99
|
+
function ResourceNotFoundException(opts) {
|
|
100
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
101
|
+
_this.name = "ResourceNotFoundException";
|
|
102
|
+
_this.$fault = "client";
|
|
103
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
104
|
+
_this.resourceName = opts.resourceName;
|
|
105
|
+
_this.resourceType = opts.resourceType;
|
|
106
|
+
return _this;
|
|
108
107
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
});
|
|
113
|
-
export
|
|
114
|
-
|
|
115
|
-
});
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
export
|
|
120
|
-
|
|
121
|
-
});
|
|
122
|
-
export
|
|
123
|
-
|
|
124
|
-
});
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
});
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
});
|
|
131
|
-
export
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
export
|
|
135
|
-
|
|
136
|
-
});
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
});
|
|
143
|
-
export const QueryFilterFilterSensitiveLog = (obj) => ({
|
|
144
|
-
...obj,
|
|
145
|
-
});
|
|
146
|
-
export const TimeRangeFilterSensitiveLog = (obj) => ({
|
|
147
|
-
...obj,
|
|
148
|
-
});
|
|
149
|
-
export const GetAppMonitorDataRequestFilterSensitiveLog = (obj) => ({
|
|
150
|
-
...obj,
|
|
151
|
-
});
|
|
152
|
-
export const GetAppMonitorDataResponseFilterSensitiveLog = (obj) => ({
|
|
153
|
-
...obj,
|
|
154
|
-
});
|
|
155
|
-
export const ListAppMonitorsRequestFilterSensitiveLog = (obj) => ({
|
|
156
|
-
...obj,
|
|
157
|
-
});
|
|
158
|
-
export const AppMonitorSummaryFilterSensitiveLog = (obj) => ({
|
|
159
|
-
...obj,
|
|
160
|
-
});
|
|
161
|
-
export const ListAppMonitorsResponseFilterSensitiveLog = (obj) => ({
|
|
162
|
-
...obj,
|
|
163
|
-
});
|
|
164
|
-
export const UpdateAppMonitorRequestFilterSensitiveLog = (obj) => ({
|
|
165
|
-
...obj,
|
|
166
|
-
});
|
|
167
|
-
export const UpdateAppMonitorResponseFilterSensitiveLog = (obj) => ({
|
|
168
|
-
...obj,
|
|
169
|
-
});
|
|
170
|
-
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
171
|
-
...obj,
|
|
172
|
-
});
|
|
173
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
174
|
-
...obj,
|
|
175
|
-
});
|
|
176
|
-
export const RumEventFilterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
export const UserDetailsFilterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
});
|
|
182
|
-
export const PutRumEventsRequestFilterSensitiveLog = (obj) => ({
|
|
183
|
-
...obj,
|
|
184
|
-
});
|
|
185
|
-
export const PutRumEventsResponseFilterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
});
|
|
188
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
});
|
|
191
|
-
export const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
});
|
|
194
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
195
|
-
...obj,
|
|
196
|
-
});
|
|
197
|
-
export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
198
|
-
...obj,
|
|
199
|
-
});
|
|
108
|
+
return ResourceNotFoundException;
|
|
109
|
+
}(__BaseException));
|
|
110
|
+
export { ResourceNotFoundException };
|
|
111
|
+
export var AppMonitorConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
112
|
+
export var CwLogFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
113
|
+
export var DataStorageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
+
export var AppMonitorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
115
|
+
export var AppMonitorDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
|
+
export var CreateAppMonitorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
117
|
+
export var CreateAppMonitorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
+
export var DeleteAppMonitorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
export var DeleteAppMonitorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
|
+
export var GetAppMonitorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
121
|
+
export var GetAppMonitorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
+
export var QueryFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
+
export var TimeRangeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
|
+
export var GetAppMonitorDataRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
|
+
export var GetAppMonitorDataResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
|
+
export var ListAppMonitorsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
+
export var AppMonitorSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
128
|
+
export var ListAppMonitorsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
129
|
+
export var UpdateAppMonitorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
|
+
export var UpdateAppMonitorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
+
export var RumEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
|
+
export var UserDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
export var PutRumEventsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
|
+
export var PutRumEventsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
138
|
+
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
+
export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { GetAppMonitorDataCommand, } from "../commands/GetAppMonitorDataCommand";
|
|
2
3
|
import { RUM } from "../RUM";
|
|
3
4
|
import { RUMClient } from "../RUMClient";
|
|
4
|
-
|
|
5
|
-
|
|
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 GetAppMonitorDataCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.getAppMonitorData.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof RUM) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof RUMClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected RUM | RUMClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateGetAppMonitorData(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateGetAppMonitorData_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 RUM)) 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 RUMClient)) 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 RUM | RUMClient");
|
|
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
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListAppMonitorsCommand, } from "../commands/ListAppMonitorsCommand";
|
|
2
3
|
import { RUM } from "../RUM";
|
|
3
4
|
import { RUMClient } from "../RUMClient";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListAppMonitorsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listAppMonitors.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof RUM) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof RUMClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected RUM | RUMClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListAppMonitors(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListAppMonitors_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 RUM)) 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 RUMClient)) 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 RUM | RUMClient");
|
|
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
|
+
});
|
|
32
75
|
}
|