@aws-sdk/client-rum 3.186.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.
@@ -1,17 +1,16 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { RUMServiceException as __BaseException } from "./RUMServiceException";
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;
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);
11
12
  }
12
- return AccessDeniedException;
13
- }(__BaseException));
14
- export { AccessDeniedException };
13
+ }
15
14
  export var Telemetry;
16
15
  (function (Telemetry) {
17
16
  Telemetry["ERRORS"] = "errors";
@@ -24,117 +23,177 @@ export var StateEnum;
24
23
  StateEnum["CREATED"] = "CREATED";
25
24
  StateEnum["DELETING"] = "DELETING";
26
25
  })(StateEnum || (StateEnum = {}));
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;
26
+ export class ConflictException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "ConflictException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "ConflictException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, ConflictException.prototype);
36
+ this.resourceName = opts.resourceName;
37
+ this.resourceType = opts.resourceType;
37
38
  }
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;
39
+ }
40
+ export class InternalServerException extends __BaseException {
41
+ constructor(opts) {
42
+ super({
43
+ name: "InternalServerException",
44
+ $fault: "server",
45
+ ...opts,
46
+ });
47
+ this.name = "InternalServerException";
48
+ this.$fault = "server";
49
+ this.$retryable = {};
50
+ Object.setPrototypeOf(this, InternalServerException.prototype);
51
+ this.retryAfterSeconds = opts.retryAfterSeconds;
51
52
  }
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;
53
+ }
54
+ export class ServiceQuotaExceededException extends __BaseException {
55
+ constructor(opts) {
56
+ super({
57
+ name: "ServiceQuotaExceededException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ this.name = "ServiceQuotaExceededException";
62
+ this.$fault = "client";
63
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
63
64
  }
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 = {
65
+ }
66
+ export class ThrottlingException extends __BaseException {
67
+ constructor(opts) {
68
+ super({
69
+ name: "ThrottlingException",
70
+ $fault: "client",
71
+ ...opts,
72
+ });
73
+ this.name = "ThrottlingException";
74
+ this.$fault = "client";
75
+ this.$retryable = {
74
76
  throttling: true,
75
77
  };
76
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
77
- _this.serviceCode = opts.serviceCode;
78
- _this.quotaCode = opts.quotaCode;
79
- _this.retryAfterSeconds = opts.retryAfterSeconds;
80
- return _this;
78
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
79
+ this.serviceCode = opts.serviceCode;
80
+ this.quotaCode = opts.quotaCode;
81
+ this.retryAfterSeconds = opts.retryAfterSeconds;
81
82
  }
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;
83
+ }
84
+ export class ValidationException extends __BaseException {
85
+ constructor(opts) {
86
+ super({
87
+ name: "ValidationException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ this.name = "ValidationException";
92
+ this.$fault = "client";
93
+ Object.setPrototypeOf(this, ValidationException.prototype);
93
94
  }
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;
95
+ }
96
+ export class ResourceNotFoundException extends __BaseException {
97
+ constructor(opts) {
98
+ super({
99
+ name: "ResourceNotFoundException",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ this.name = "ResourceNotFoundException";
104
+ this.$fault = "client";
105
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
106
+ this.resourceName = opts.resourceName;
107
+ this.resourceType = opts.resourceType;
107
108
  }
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)); };
109
+ }
110
+ export const AppMonitorConfigurationFilterSensitiveLog = (obj) => ({
111
+ ...obj,
112
+ });
113
+ export const CwLogFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ });
116
+ export const DataStorageFilterSensitiveLog = (obj) => ({
117
+ ...obj,
118
+ });
119
+ export const AppMonitorFilterSensitiveLog = (obj) => ({
120
+ ...obj,
121
+ });
122
+ export const AppMonitorDetailsFilterSensitiveLog = (obj) => ({
123
+ ...obj,
124
+ });
125
+ export const CreateAppMonitorRequestFilterSensitiveLog = (obj) => ({
126
+ ...obj,
127
+ });
128
+ export const CreateAppMonitorResponseFilterSensitiveLog = (obj) => ({
129
+ ...obj,
130
+ });
131
+ export const DeleteAppMonitorRequestFilterSensitiveLog = (obj) => ({
132
+ ...obj,
133
+ });
134
+ export const DeleteAppMonitorResponseFilterSensitiveLog = (obj) => ({
135
+ ...obj,
136
+ });
137
+ export const GetAppMonitorRequestFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ export const GetAppMonitorResponseFilterSensitiveLog = (obj) => ({
141
+ ...obj,
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
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { GetAppMonitorDataCommand, } from "../commands/GetAppMonitorDataCommand";
3
2
  import { RUM } from "../RUM";
4
3
  import { RUMClient } from "../RUMClient";
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
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new GetAppMonitorDataCommand(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.getAppMonitorData.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.getAppMonitorData(input, ...args);
32
9
  };
33
- export function paginateGetAppMonitorData(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateGetAppMonitorData(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 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));
37
30
  }
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
- });
31
+ return undefined;
75
32
  }
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListAppMonitorsCommand, } from "../commands/ListAppMonitorsCommand";
3
2
  import { RUM } from "../RUM";
4
3
  import { RUMClient } from "../RUMClient";
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
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListAppMonitorsCommand(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.listAppMonitors.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.listAppMonitors(input, ...args);
32
9
  };
33
- export function paginateListAppMonitors(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListAppMonitors(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 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));
37
30
  }
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
- });
31
+ return undefined;
75
32
  }