@aws-sdk/client-rum 3.489.0 → 3.495.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/dist-cjs/RUM.js +1 -45
- package/dist-cjs/RUMClient.js +1 -43
- package/dist-cjs/commands/BatchCreateRumMetricDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/BatchDeleteRumMetricDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/BatchGetRumMetricDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/CreateAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/DeleteAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/DeleteRumMetricsDestinationCommand.js +1 -28
- package/dist-cjs/commands/GetAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/GetAppMonitorDataCommand.js +1 -28
- package/dist-cjs/commands/ListAppMonitorsCommand.js +1 -28
- package/dist-cjs/commands/ListRumMetricsDestinationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutRumEventsCommand.js +1 -28
- package/dist-cjs/commands/PutRumMetricsDestinationCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/UpdateRumMetricDefinitionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -20
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1935 -11
- package/dist-cjs/models/RUMServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -125
- package/dist-cjs/pagination/BatchGetRumMetricDefinitionsPaginator.js +1 -7
- package/dist-cjs/pagination/GetAppMonitorDataPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAppMonitorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRumMetricsDestinationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1264
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1936 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
BatchCreateRumMetricDefinitionsCommand: () => BatchCreateRumMetricDefinitionsCommand,
|
|
26
|
+
BatchDeleteRumMetricDefinitionsCommand: () => BatchDeleteRumMetricDefinitionsCommand,
|
|
27
|
+
BatchGetRumMetricDefinitionsCommand: () => BatchGetRumMetricDefinitionsCommand,
|
|
28
|
+
ConflictException: () => ConflictException,
|
|
29
|
+
CreateAppMonitorCommand: () => CreateAppMonitorCommand,
|
|
30
|
+
CustomEventsStatus: () => CustomEventsStatus,
|
|
31
|
+
DeleteAppMonitorCommand: () => DeleteAppMonitorCommand,
|
|
32
|
+
DeleteRumMetricsDestinationCommand: () => DeleteRumMetricsDestinationCommand,
|
|
33
|
+
GetAppMonitorCommand: () => GetAppMonitorCommand,
|
|
34
|
+
GetAppMonitorDataCommand: () => GetAppMonitorDataCommand,
|
|
35
|
+
InternalServerException: () => InternalServerException,
|
|
36
|
+
ListAppMonitorsCommand: () => ListAppMonitorsCommand,
|
|
37
|
+
ListRumMetricsDestinationsCommand: () => ListRumMetricsDestinationsCommand,
|
|
38
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
39
|
+
MetricDestination: () => MetricDestination,
|
|
40
|
+
PutRumEventsCommand: () => PutRumEventsCommand,
|
|
41
|
+
PutRumMetricsDestinationCommand: () => PutRumMetricsDestinationCommand,
|
|
42
|
+
RUM: () => RUM,
|
|
43
|
+
RUMClient: () => RUMClient,
|
|
44
|
+
RUMServiceException: () => RUMServiceException,
|
|
45
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
46
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
47
|
+
StateEnum: () => StateEnum,
|
|
48
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
49
|
+
Telemetry: () => Telemetry,
|
|
50
|
+
ThrottlingException: () => ThrottlingException,
|
|
51
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
52
|
+
UpdateAppMonitorCommand: () => UpdateAppMonitorCommand,
|
|
53
|
+
UpdateRumMetricDefinitionCommand: () => UpdateRumMetricDefinitionCommand,
|
|
54
|
+
ValidationException: () => ValidationException,
|
|
55
|
+
__Client: () => import_smithy_client.Client,
|
|
56
|
+
paginateBatchGetRumMetricDefinitions: () => paginateBatchGetRumMetricDefinitions,
|
|
57
|
+
paginateGetAppMonitorData: () => paginateGetAppMonitorData,
|
|
58
|
+
paginateListAppMonitors: () => paginateListAppMonitors,
|
|
59
|
+
paginateListRumMetricsDestinations: () => paginateListRumMetricsDestinations
|
|
60
|
+
});
|
|
61
|
+
module.exports = __toCommonJS(src_exports);
|
|
62
|
+
|
|
63
|
+
// src/RUMClient.ts
|
|
64
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
65
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
66
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
67
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
68
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
69
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
70
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
71
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
72
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
// src/endpoint/EndpointParameters.ts
|
|
76
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
77
|
+
return {
|
|
78
|
+
...options,
|
|
79
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
80
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
81
|
+
defaultSigningName: "rum"
|
|
82
|
+
};
|
|
83
|
+
}, "resolveClientEndpointParameters");
|
|
84
|
+
var commonParams = {
|
|
85
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
86
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
87
|
+
Region: { type: "builtInParams", name: "region" },
|
|
88
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// src/RUMClient.ts
|
|
92
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
93
|
+
|
|
94
|
+
// src/runtimeExtensions.ts
|
|
95
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
96
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
97
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
98
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
99
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
100
|
+
const extensionConfiguration = {
|
|
101
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
102
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
103
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
104
|
+
};
|
|
105
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
106
|
+
return {
|
|
107
|
+
...runtimeConfig,
|
|
108
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
109
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
110
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
111
|
+
};
|
|
112
|
+
}, "resolveRuntimeExtensions");
|
|
113
|
+
|
|
114
|
+
// src/RUMClient.ts
|
|
115
|
+
var _RUMClient = class _RUMClient extends import_smithy_client.Client {
|
|
116
|
+
constructor(...[configuration]) {
|
|
117
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
118
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
119
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
120
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
121
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
122
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
123
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
124
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
125
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
126
|
+
super(_config_8);
|
|
127
|
+
this.config = _config_8;
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
130
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
131
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
132
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
133
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
134
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
138
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
139
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
140
|
+
*/
|
|
141
|
+
destroy() {
|
|
142
|
+
super.destroy();
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
__name(_RUMClient, "RUMClient");
|
|
146
|
+
var RUMClient = _RUMClient;
|
|
147
|
+
|
|
148
|
+
// src/RUM.ts
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
// src/commands/BatchCreateRumMetricDefinitionsCommand.ts
|
|
152
|
+
|
|
153
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
154
|
+
|
|
155
|
+
var import_types = require("@smithy/types");
|
|
156
|
+
|
|
157
|
+
// src/protocols/Aws_restJson1.ts
|
|
158
|
+
var import_core = require("@smithy/core");
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
// src/models/RUMServiceException.ts
|
|
163
|
+
|
|
164
|
+
var _RUMServiceException = class _RUMServiceException extends import_smithy_client.ServiceException {
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
constructor(options) {
|
|
169
|
+
super(options);
|
|
170
|
+
Object.setPrototypeOf(this, _RUMServiceException.prototype);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
__name(_RUMServiceException, "RUMServiceException");
|
|
174
|
+
var RUMServiceException = _RUMServiceException;
|
|
175
|
+
|
|
176
|
+
// src/models/models_0.ts
|
|
177
|
+
var _AccessDeniedException = class _AccessDeniedException extends RUMServiceException {
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "AccessDeniedException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts
|
|
186
|
+
});
|
|
187
|
+
this.name = "AccessDeniedException";
|
|
188
|
+
this.$fault = "client";
|
|
189
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
193
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
194
|
+
var Telemetry = {
|
|
195
|
+
/**
|
|
196
|
+
* Includes JS error event plugin
|
|
197
|
+
*/
|
|
198
|
+
ERRORS: "errors",
|
|
199
|
+
/**
|
|
200
|
+
* Includes X-Ray Xhr and X-Ray Fetch plugin
|
|
201
|
+
*/
|
|
202
|
+
HTTP: "http",
|
|
203
|
+
/**
|
|
204
|
+
* Includes navigation, paint, resource and web vital event plugins
|
|
205
|
+
*/
|
|
206
|
+
PERFORMANCE: "performance"
|
|
207
|
+
};
|
|
208
|
+
var CustomEventsStatus = {
|
|
209
|
+
DISABLED: "DISABLED",
|
|
210
|
+
ENABLED: "ENABLED"
|
|
211
|
+
};
|
|
212
|
+
var StateEnum = {
|
|
213
|
+
ACTIVE: "ACTIVE",
|
|
214
|
+
CREATED: "CREATED",
|
|
215
|
+
DELETING: "DELETING"
|
|
216
|
+
};
|
|
217
|
+
var MetricDestination = {
|
|
218
|
+
CloudWatch: "CloudWatch",
|
|
219
|
+
Evidently: "Evidently"
|
|
220
|
+
};
|
|
221
|
+
var _ConflictException = class _ConflictException extends RUMServiceException {
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "ConflictException",
|
|
228
|
+
$fault: "client",
|
|
229
|
+
...opts
|
|
230
|
+
});
|
|
231
|
+
this.name = "ConflictException";
|
|
232
|
+
this.$fault = "client";
|
|
233
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
234
|
+
this.resourceName = opts.resourceName;
|
|
235
|
+
this.resourceType = opts.resourceType;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
__name(_ConflictException, "ConflictException");
|
|
239
|
+
var ConflictException = _ConflictException;
|
|
240
|
+
var _InternalServerException = class _InternalServerException extends RUMServiceException {
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
244
|
+
constructor(opts) {
|
|
245
|
+
super({
|
|
246
|
+
name: "InternalServerException",
|
|
247
|
+
$fault: "server",
|
|
248
|
+
...opts
|
|
249
|
+
});
|
|
250
|
+
this.name = "InternalServerException";
|
|
251
|
+
this.$fault = "server";
|
|
252
|
+
this.$retryable = {};
|
|
253
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
254
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
__name(_InternalServerException, "InternalServerException");
|
|
258
|
+
var InternalServerException = _InternalServerException;
|
|
259
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends RUMServiceException {
|
|
260
|
+
/**
|
|
261
|
+
* @internal
|
|
262
|
+
*/
|
|
263
|
+
constructor(opts) {
|
|
264
|
+
super({
|
|
265
|
+
name: "ResourceNotFoundException",
|
|
266
|
+
$fault: "client",
|
|
267
|
+
...opts
|
|
268
|
+
});
|
|
269
|
+
this.name = "ResourceNotFoundException";
|
|
270
|
+
this.$fault = "client";
|
|
271
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
272
|
+
this.resourceName = opts.resourceName;
|
|
273
|
+
this.resourceType = opts.resourceType;
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
277
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
278
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends RUMServiceException {
|
|
279
|
+
/**
|
|
280
|
+
* @internal
|
|
281
|
+
*/
|
|
282
|
+
constructor(opts) {
|
|
283
|
+
super({
|
|
284
|
+
name: "ServiceQuotaExceededException",
|
|
285
|
+
$fault: "client",
|
|
286
|
+
...opts
|
|
287
|
+
});
|
|
288
|
+
this.name = "ServiceQuotaExceededException";
|
|
289
|
+
this.$fault = "client";
|
|
290
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
294
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
295
|
+
var _ThrottlingException = class _ThrottlingException extends RUMServiceException {
|
|
296
|
+
/**
|
|
297
|
+
* @internal
|
|
298
|
+
*/
|
|
299
|
+
constructor(opts) {
|
|
300
|
+
super({
|
|
301
|
+
name: "ThrottlingException",
|
|
302
|
+
$fault: "client",
|
|
303
|
+
...opts
|
|
304
|
+
});
|
|
305
|
+
this.name = "ThrottlingException";
|
|
306
|
+
this.$fault = "client";
|
|
307
|
+
this.$retryable = {
|
|
308
|
+
throttling: true
|
|
309
|
+
};
|
|
310
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
311
|
+
this.serviceCode = opts.serviceCode;
|
|
312
|
+
this.quotaCode = opts.quotaCode;
|
|
313
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
317
|
+
var ThrottlingException = _ThrottlingException;
|
|
318
|
+
var _ValidationException = class _ValidationException extends RUMServiceException {
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
*/
|
|
322
|
+
constructor(opts) {
|
|
323
|
+
super({
|
|
324
|
+
name: "ValidationException",
|
|
325
|
+
$fault: "client",
|
|
326
|
+
...opts
|
|
327
|
+
});
|
|
328
|
+
this.name = "ValidationException";
|
|
329
|
+
this.$fault = "client";
|
|
330
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
__name(_ValidationException, "ValidationException");
|
|
334
|
+
var ValidationException = _ValidationException;
|
|
335
|
+
|
|
336
|
+
// src/protocols/Aws_restJson1.ts
|
|
337
|
+
var se_BatchCreateRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
338
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
339
|
+
const headers = {
|
|
340
|
+
"content-type": "application/json"
|
|
341
|
+
};
|
|
342
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
343
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
344
|
+
let body;
|
|
345
|
+
body = JSON.stringify(
|
|
346
|
+
(0, import_smithy_client.take)(input, {
|
|
347
|
+
Destination: [],
|
|
348
|
+
DestinationArn: [],
|
|
349
|
+
MetricDefinitions: (_) => (0, import_smithy_client._json)(_)
|
|
350
|
+
})
|
|
351
|
+
);
|
|
352
|
+
b.m("POST").h(headers).b(body);
|
|
353
|
+
return b.build();
|
|
354
|
+
}, "se_BatchCreateRumMetricDefinitionsCommand");
|
|
355
|
+
var se_BatchDeleteRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
356
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
357
|
+
const headers = {};
|
|
358
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
359
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
360
|
+
const query = (0, import_smithy_client.map)({
|
|
361
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_D], `Destination`)],
|
|
362
|
+
[_dA]: [, input[_DA]],
|
|
363
|
+
[_mDI]: [
|
|
364
|
+
(0, import_smithy_client.expectNonNull)(input.MetricDefinitionIds, `MetricDefinitionIds`) != null,
|
|
365
|
+
() => (input[_MDI] || []).map((_entry) => _entry)
|
|
366
|
+
]
|
|
367
|
+
});
|
|
368
|
+
let body;
|
|
369
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
370
|
+
return b.build();
|
|
371
|
+
}, "se_BatchDeleteRumMetricDefinitionsCommand");
|
|
372
|
+
var se_BatchGetRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
373
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
374
|
+
const headers = {};
|
|
375
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
376
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
377
|
+
const query = (0, import_smithy_client.map)({
|
|
378
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_D], `Destination`)],
|
|
379
|
+
[_dA]: [, input[_DA]],
|
|
380
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
381
|
+
[_nT]: [, input[_NT]]
|
|
382
|
+
});
|
|
383
|
+
let body;
|
|
384
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
385
|
+
return b.build();
|
|
386
|
+
}, "se_BatchGetRumMetricDefinitionsCommand");
|
|
387
|
+
var se_CreateAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
388
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
389
|
+
const headers = {
|
|
390
|
+
"content-type": "application/json"
|
|
391
|
+
};
|
|
392
|
+
b.bp("/appmonitor");
|
|
393
|
+
let body;
|
|
394
|
+
body = JSON.stringify(
|
|
395
|
+
(0, import_smithy_client.take)(input, {
|
|
396
|
+
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
397
|
+
CustomEvents: (_) => (0, import_smithy_client._json)(_),
|
|
398
|
+
CwLogEnabled: [],
|
|
399
|
+
Domain: [],
|
|
400
|
+
Name: [],
|
|
401
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
402
|
+
})
|
|
403
|
+
);
|
|
404
|
+
b.m("POST").h(headers).b(body);
|
|
405
|
+
return b.build();
|
|
406
|
+
}, "se_CreateAppMonitorCommand");
|
|
407
|
+
var se_DeleteAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
408
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
409
|
+
const headers = {};
|
|
410
|
+
b.bp("/appmonitor/{Name}");
|
|
411
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
412
|
+
let body;
|
|
413
|
+
b.m("DELETE").h(headers).b(body);
|
|
414
|
+
return b.build();
|
|
415
|
+
}, "se_DeleteAppMonitorCommand");
|
|
416
|
+
var se_DeleteRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
417
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
418
|
+
const headers = {};
|
|
419
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
420
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
421
|
+
const query = (0, import_smithy_client.map)({
|
|
422
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_D], `Destination`)],
|
|
423
|
+
[_dA]: [, input[_DA]]
|
|
424
|
+
});
|
|
425
|
+
let body;
|
|
426
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
427
|
+
return b.build();
|
|
428
|
+
}, "se_DeleteRumMetricsDestinationCommand");
|
|
429
|
+
var se_GetAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
430
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
431
|
+
const headers = {};
|
|
432
|
+
b.bp("/appmonitor/{Name}");
|
|
433
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
434
|
+
let body;
|
|
435
|
+
b.m("GET").h(headers).b(body);
|
|
436
|
+
return b.build();
|
|
437
|
+
}, "se_GetAppMonitorCommand");
|
|
438
|
+
var se_GetAppMonitorDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
439
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
440
|
+
const headers = {
|
|
441
|
+
"content-type": "application/json"
|
|
442
|
+
};
|
|
443
|
+
b.bp("/appmonitor/{Name}/data");
|
|
444
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
445
|
+
let body;
|
|
446
|
+
body = JSON.stringify(
|
|
447
|
+
(0, import_smithy_client.take)(input, {
|
|
448
|
+
Filters: (_) => (0, import_smithy_client._json)(_),
|
|
449
|
+
MaxResults: [],
|
|
450
|
+
NextToken: [],
|
|
451
|
+
TimeRange: (_) => (0, import_smithy_client._json)(_)
|
|
452
|
+
})
|
|
453
|
+
);
|
|
454
|
+
b.m("POST").h(headers).b(body);
|
|
455
|
+
return b.build();
|
|
456
|
+
}, "se_GetAppMonitorDataCommand");
|
|
457
|
+
var se_ListAppMonitorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
458
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
459
|
+
const headers = {};
|
|
460
|
+
b.bp("/appmonitors");
|
|
461
|
+
const query = (0, import_smithy_client.map)({
|
|
462
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
463
|
+
[_nT]: [, input[_NT]]
|
|
464
|
+
});
|
|
465
|
+
let body;
|
|
466
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
467
|
+
return b.build();
|
|
468
|
+
}, "se_ListAppMonitorsCommand");
|
|
469
|
+
var se_ListRumMetricsDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
471
|
+
const headers = {};
|
|
472
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
473
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
474
|
+
const query = (0, import_smithy_client.map)({
|
|
475
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
476
|
+
[_nT]: [, input[_NT]]
|
|
477
|
+
});
|
|
478
|
+
let body;
|
|
479
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
480
|
+
return b.build();
|
|
481
|
+
}, "se_ListRumMetricsDestinationsCommand");
|
|
482
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
483
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
484
|
+
const headers = {};
|
|
485
|
+
b.bp("/tags/{ResourceArn}");
|
|
486
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
487
|
+
let body;
|
|
488
|
+
b.m("GET").h(headers).b(body);
|
|
489
|
+
return b.build();
|
|
490
|
+
}, "se_ListTagsForResourceCommand");
|
|
491
|
+
var se_PutRumEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
492
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
493
|
+
const headers = {
|
|
494
|
+
"content-type": "application/json"
|
|
495
|
+
};
|
|
496
|
+
b.bp("/appmonitors/{Id}");
|
|
497
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
498
|
+
let body;
|
|
499
|
+
body = JSON.stringify(
|
|
500
|
+
(0, import_smithy_client.take)(input, {
|
|
501
|
+
AppMonitorDetails: (_) => (0, import_smithy_client._json)(_),
|
|
502
|
+
BatchId: [],
|
|
503
|
+
RumEvents: (_) => se_RumEventList(_, context),
|
|
504
|
+
UserDetails: (_) => (0, import_smithy_client._json)(_)
|
|
505
|
+
})
|
|
506
|
+
);
|
|
507
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
508
|
+
if (context.disableHostPrefix !== true) {
|
|
509
|
+
resolvedHostname = "dataplane." + resolvedHostname;
|
|
510
|
+
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
511
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
b.hn(resolvedHostname);
|
|
515
|
+
b.m("POST").h(headers).b(body);
|
|
516
|
+
return b.build();
|
|
517
|
+
}, "se_PutRumEventsCommand");
|
|
518
|
+
var se_PutRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
519
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
520
|
+
const headers = {
|
|
521
|
+
"content-type": "application/json"
|
|
522
|
+
};
|
|
523
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
524
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
525
|
+
let body;
|
|
526
|
+
body = JSON.stringify(
|
|
527
|
+
(0, import_smithy_client.take)(input, {
|
|
528
|
+
Destination: [],
|
|
529
|
+
DestinationArn: [],
|
|
530
|
+
IamRoleArn: []
|
|
531
|
+
})
|
|
532
|
+
);
|
|
533
|
+
b.m("POST").h(headers).b(body);
|
|
534
|
+
return b.build();
|
|
535
|
+
}, "se_PutRumMetricsDestinationCommand");
|
|
536
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
537
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
538
|
+
const headers = {
|
|
539
|
+
"content-type": "application/json"
|
|
540
|
+
};
|
|
541
|
+
b.bp("/tags/{ResourceArn}");
|
|
542
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
543
|
+
let body;
|
|
544
|
+
body = JSON.stringify(
|
|
545
|
+
(0, import_smithy_client.take)(input, {
|
|
546
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
547
|
+
})
|
|
548
|
+
);
|
|
549
|
+
b.m("POST").h(headers).b(body);
|
|
550
|
+
return b.build();
|
|
551
|
+
}, "se_TagResourceCommand");
|
|
552
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
553
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
554
|
+
const headers = {};
|
|
555
|
+
b.bp("/tags/{ResourceArn}");
|
|
556
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
557
|
+
const query = (0, import_smithy_client.map)({
|
|
558
|
+
[_tK]: [
|
|
559
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
560
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
561
|
+
]
|
|
562
|
+
});
|
|
563
|
+
let body;
|
|
564
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
565
|
+
return b.build();
|
|
566
|
+
}, "se_UntagResourceCommand");
|
|
567
|
+
var se_UpdateAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
569
|
+
const headers = {
|
|
570
|
+
"content-type": "application/json"
|
|
571
|
+
};
|
|
572
|
+
b.bp("/appmonitor/{Name}");
|
|
573
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
574
|
+
let body;
|
|
575
|
+
body = JSON.stringify(
|
|
576
|
+
(0, import_smithy_client.take)(input, {
|
|
577
|
+
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
578
|
+
CustomEvents: (_) => (0, import_smithy_client._json)(_),
|
|
579
|
+
CwLogEnabled: [],
|
|
580
|
+
Domain: []
|
|
581
|
+
})
|
|
582
|
+
);
|
|
583
|
+
b.m("PATCH").h(headers).b(body);
|
|
584
|
+
return b.build();
|
|
585
|
+
}, "se_UpdateAppMonitorCommand");
|
|
586
|
+
var se_UpdateRumMetricDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
587
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
588
|
+
const headers = {
|
|
589
|
+
"content-type": "application/json"
|
|
590
|
+
};
|
|
591
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
592
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
593
|
+
let body;
|
|
594
|
+
body = JSON.stringify(
|
|
595
|
+
(0, import_smithy_client.take)(input, {
|
|
596
|
+
Destination: [],
|
|
597
|
+
DestinationArn: [],
|
|
598
|
+
MetricDefinition: (_) => (0, import_smithy_client._json)(_),
|
|
599
|
+
MetricDefinitionId: []
|
|
600
|
+
})
|
|
601
|
+
);
|
|
602
|
+
b.m("PATCH").h(headers).b(body);
|
|
603
|
+
return b.build();
|
|
604
|
+
}, "se_UpdateRumMetricDefinitionCommand");
|
|
605
|
+
var de_BatchCreateRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
606
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
+
return de_BatchCreateRumMetricDefinitionsCommandError(output, context);
|
|
608
|
+
}
|
|
609
|
+
const contents = (0, import_smithy_client.map)({
|
|
610
|
+
$metadata: deserializeMetadata(output)
|
|
611
|
+
});
|
|
612
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
613
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
614
|
+
Errors: import_smithy_client._json,
|
|
615
|
+
MetricDefinitions: import_smithy_client._json
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
619
|
+
}, "de_BatchCreateRumMetricDefinitionsCommand");
|
|
620
|
+
var de_BatchCreateRumMetricDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
621
|
+
const parsedOutput = {
|
|
622
|
+
...output,
|
|
623
|
+
body: await parseErrorBody(output.body, context)
|
|
624
|
+
};
|
|
625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
|
+
switch (errorCode) {
|
|
627
|
+
case "AccessDeniedException":
|
|
628
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
629
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
630
|
+
case "ConflictException":
|
|
631
|
+
case "com.amazonaws.rum#ConflictException":
|
|
632
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
633
|
+
case "InternalServerException":
|
|
634
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
635
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
636
|
+
case "ResourceNotFoundException":
|
|
637
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
638
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
639
|
+
case "ServiceQuotaExceededException":
|
|
640
|
+
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
641
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
642
|
+
case "ThrottlingException":
|
|
643
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
644
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
645
|
+
case "ValidationException":
|
|
646
|
+
case "com.amazonaws.rum#ValidationException":
|
|
647
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
648
|
+
default:
|
|
649
|
+
const parsedBody = parsedOutput.body;
|
|
650
|
+
return throwDefaultError({
|
|
651
|
+
output,
|
|
652
|
+
parsedBody,
|
|
653
|
+
errorCode
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
}, "de_BatchCreateRumMetricDefinitionsCommandError");
|
|
657
|
+
var de_BatchDeleteRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
658
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
659
|
+
return de_BatchDeleteRumMetricDefinitionsCommandError(output, context);
|
|
660
|
+
}
|
|
661
|
+
const contents = (0, import_smithy_client.map)({
|
|
662
|
+
$metadata: deserializeMetadata(output)
|
|
663
|
+
});
|
|
664
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
665
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
666
|
+
Errors: import_smithy_client._json,
|
|
667
|
+
MetricDefinitionIds: import_smithy_client._json
|
|
668
|
+
});
|
|
669
|
+
Object.assign(contents, doc);
|
|
670
|
+
return contents;
|
|
671
|
+
}, "de_BatchDeleteRumMetricDefinitionsCommand");
|
|
672
|
+
var de_BatchDeleteRumMetricDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
673
|
+
const parsedOutput = {
|
|
674
|
+
...output,
|
|
675
|
+
body: await parseErrorBody(output.body, context)
|
|
676
|
+
};
|
|
677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
|
+
switch (errorCode) {
|
|
679
|
+
case "AccessDeniedException":
|
|
680
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
681
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
682
|
+
case "ConflictException":
|
|
683
|
+
case "com.amazonaws.rum#ConflictException":
|
|
684
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
685
|
+
case "InternalServerException":
|
|
686
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
687
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
688
|
+
case "ResourceNotFoundException":
|
|
689
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
690
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
691
|
+
case "ThrottlingException":
|
|
692
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
693
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
694
|
+
case "ValidationException":
|
|
695
|
+
case "com.amazonaws.rum#ValidationException":
|
|
696
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
697
|
+
default:
|
|
698
|
+
const parsedBody = parsedOutput.body;
|
|
699
|
+
return throwDefaultError({
|
|
700
|
+
output,
|
|
701
|
+
parsedBody,
|
|
702
|
+
errorCode
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
}, "de_BatchDeleteRumMetricDefinitionsCommandError");
|
|
706
|
+
var de_BatchGetRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
707
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
708
|
+
return de_BatchGetRumMetricDefinitionsCommandError(output, context);
|
|
709
|
+
}
|
|
710
|
+
const contents = (0, import_smithy_client.map)({
|
|
711
|
+
$metadata: deserializeMetadata(output)
|
|
712
|
+
});
|
|
713
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
714
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
715
|
+
MetricDefinitions: import_smithy_client._json,
|
|
716
|
+
NextToken: import_smithy_client.expectString
|
|
717
|
+
});
|
|
718
|
+
Object.assign(contents, doc);
|
|
719
|
+
return contents;
|
|
720
|
+
}, "de_BatchGetRumMetricDefinitionsCommand");
|
|
721
|
+
var de_BatchGetRumMetricDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
|
+
const parsedOutput = {
|
|
723
|
+
...output,
|
|
724
|
+
body: await parseErrorBody(output.body, context)
|
|
725
|
+
};
|
|
726
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
|
+
switch (errorCode) {
|
|
728
|
+
case "AccessDeniedException":
|
|
729
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
730
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
731
|
+
case "InternalServerException":
|
|
732
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
733
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
734
|
+
case "ResourceNotFoundException":
|
|
735
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
736
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
737
|
+
case "ValidationException":
|
|
738
|
+
case "com.amazonaws.rum#ValidationException":
|
|
739
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
|
+
default:
|
|
741
|
+
const parsedBody = parsedOutput.body;
|
|
742
|
+
return throwDefaultError({
|
|
743
|
+
output,
|
|
744
|
+
parsedBody,
|
|
745
|
+
errorCode
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
}, "de_BatchGetRumMetricDefinitionsCommandError");
|
|
749
|
+
var de_CreateAppMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
750
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
+
return de_CreateAppMonitorCommandError(output, context);
|
|
752
|
+
}
|
|
753
|
+
const contents = (0, import_smithy_client.map)({
|
|
754
|
+
$metadata: deserializeMetadata(output)
|
|
755
|
+
});
|
|
756
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
757
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
758
|
+
Id: import_smithy_client.expectString
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
761
|
+
return contents;
|
|
762
|
+
}, "de_CreateAppMonitorCommand");
|
|
763
|
+
var de_CreateAppMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
764
|
+
const parsedOutput = {
|
|
765
|
+
...output,
|
|
766
|
+
body: await parseErrorBody(output.body, context)
|
|
767
|
+
};
|
|
768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
+
switch (errorCode) {
|
|
770
|
+
case "AccessDeniedException":
|
|
771
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
772
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
773
|
+
case "ConflictException":
|
|
774
|
+
case "com.amazonaws.rum#ConflictException":
|
|
775
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
776
|
+
case "InternalServerException":
|
|
777
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
778
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
|
+
case "ResourceNotFoundException":
|
|
780
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
781
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
|
+
case "ServiceQuotaExceededException":
|
|
783
|
+
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
784
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
785
|
+
case "ThrottlingException":
|
|
786
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
787
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
788
|
+
case "ValidationException":
|
|
789
|
+
case "com.amazonaws.rum#ValidationException":
|
|
790
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
791
|
+
default:
|
|
792
|
+
const parsedBody = parsedOutput.body;
|
|
793
|
+
return throwDefaultError({
|
|
794
|
+
output,
|
|
795
|
+
parsedBody,
|
|
796
|
+
errorCode
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
}, "de_CreateAppMonitorCommandError");
|
|
800
|
+
var de_DeleteAppMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
801
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
|
+
return de_DeleteAppMonitorCommandError(output, context);
|
|
803
|
+
}
|
|
804
|
+
const contents = (0, import_smithy_client.map)({
|
|
805
|
+
$metadata: deserializeMetadata(output)
|
|
806
|
+
});
|
|
807
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
808
|
+
return contents;
|
|
809
|
+
}, "de_DeleteAppMonitorCommand");
|
|
810
|
+
var de_DeleteAppMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
811
|
+
const parsedOutput = {
|
|
812
|
+
...output,
|
|
813
|
+
body: await parseErrorBody(output.body, context)
|
|
814
|
+
};
|
|
815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
+
switch (errorCode) {
|
|
817
|
+
case "AccessDeniedException":
|
|
818
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
819
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
820
|
+
case "ConflictException":
|
|
821
|
+
case "com.amazonaws.rum#ConflictException":
|
|
822
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
823
|
+
case "InternalServerException":
|
|
824
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
825
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
826
|
+
case "ResourceNotFoundException":
|
|
827
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
828
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
+
case "ThrottlingException":
|
|
830
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
831
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
832
|
+
case "ValidationException":
|
|
833
|
+
case "com.amazonaws.rum#ValidationException":
|
|
834
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
|
+
default:
|
|
836
|
+
const parsedBody = parsedOutput.body;
|
|
837
|
+
return throwDefaultError({
|
|
838
|
+
output,
|
|
839
|
+
parsedBody,
|
|
840
|
+
errorCode
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
}, "de_DeleteAppMonitorCommandError");
|
|
844
|
+
var de_DeleteRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
+
return de_DeleteRumMetricsDestinationCommandError(output, context);
|
|
847
|
+
}
|
|
848
|
+
const contents = (0, import_smithy_client.map)({
|
|
849
|
+
$metadata: deserializeMetadata(output)
|
|
850
|
+
});
|
|
851
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
852
|
+
return contents;
|
|
853
|
+
}, "de_DeleteRumMetricsDestinationCommand");
|
|
854
|
+
var de_DeleteRumMetricsDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
|
+
const parsedOutput = {
|
|
856
|
+
...output,
|
|
857
|
+
body: await parseErrorBody(output.body, context)
|
|
858
|
+
};
|
|
859
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
+
switch (errorCode) {
|
|
861
|
+
case "AccessDeniedException":
|
|
862
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
863
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
864
|
+
case "ConflictException":
|
|
865
|
+
case "com.amazonaws.rum#ConflictException":
|
|
866
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
867
|
+
case "InternalServerException":
|
|
868
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
869
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
870
|
+
case "ResourceNotFoundException":
|
|
871
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
872
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
873
|
+
case "ThrottlingException":
|
|
874
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
875
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
876
|
+
case "ValidationException":
|
|
877
|
+
case "com.amazonaws.rum#ValidationException":
|
|
878
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
|
+
default:
|
|
880
|
+
const parsedBody = parsedOutput.body;
|
|
881
|
+
return throwDefaultError({
|
|
882
|
+
output,
|
|
883
|
+
parsedBody,
|
|
884
|
+
errorCode
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
}, "de_DeleteRumMetricsDestinationCommandError");
|
|
888
|
+
var de_GetAppMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
889
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
+
return de_GetAppMonitorCommandError(output, context);
|
|
891
|
+
}
|
|
892
|
+
const contents = (0, import_smithy_client.map)({
|
|
893
|
+
$metadata: deserializeMetadata(output)
|
|
894
|
+
});
|
|
895
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
896
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
897
|
+
AppMonitor: (_) => de_AppMonitor(_, context)
|
|
898
|
+
});
|
|
899
|
+
Object.assign(contents, doc);
|
|
900
|
+
return contents;
|
|
901
|
+
}, "de_GetAppMonitorCommand");
|
|
902
|
+
var de_GetAppMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
|
+
const parsedOutput = {
|
|
904
|
+
...output,
|
|
905
|
+
body: await parseErrorBody(output.body, context)
|
|
906
|
+
};
|
|
907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
+
switch (errorCode) {
|
|
909
|
+
case "AccessDeniedException":
|
|
910
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
911
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
912
|
+
case "InternalServerException":
|
|
913
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
914
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
915
|
+
case "ResourceNotFoundException":
|
|
916
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
917
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
+
case "ThrottlingException":
|
|
919
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
920
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
921
|
+
case "ValidationException":
|
|
922
|
+
case "com.amazonaws.rum#ValidationException":
|
|
923
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
924
|
+
default:
|
|
925
|
+
const parsedBody = parsedOutput.body;
|
|
926
|
+
return throwDefaultError({
|
|
927
|
+
output,
|
|
928
|
+
parsedBody,
|
|
929
|
+
errorCode
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
}, "de_GetAppMonitorCommandError");
|
|
933
|
+
var de_GetAppMonitorDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
|
+
return de_GetAppMonitorDataCommandError(output, context);
|
|
936
|
+
}
|
|
937
|
+
const contents = (0, import_smithy_client.map)({
|
|
938
|
+
$metadata: deserializeMetadata(output)
|
|
939
|
+
});
|
|
940
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
941
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
942
|
+
Events: import_smithy_client._json,
|
|
943
|
+
NextToken: import_smithy_client.expectString
|
|
944
|
+
});
|
|
945
|
+
Object.assign(contents, doc);
|
|
946
|
+
return contents;
|
|
947
|
+
}, "de_GetAppMonitorDataCommand");
|
|
948
|
+
var de_GetAppMonitorDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
949
|
+
const parsedOutput = {
|
|
950
|
+
...output,
|
|
951
|
+
body: await parseErrorBody(output.body, context)
|
|
952
|
+
};
|
|
953
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
+
switch (errorCode) {
|
|
955
|
+
case "AccessDeniedException":
|
|
956
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
957
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
958
|
+
case "InternalServerException":
|
|
959
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
960
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
961
|
+
case "ResourceNotFoundException":
|
|
962
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
963
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
964
|
+
case "ThrottlingException":
|
|
965
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
966
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
967
|
+
case "ValidationException":
|
|
968
|
+
case "com.amazonaws.rum#ValidationException":
|
|
969
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
970
|
+
default:
|
|
971
|
+
const parsedBody = parsedOutput.body;
|
|
972
|
+
return throwDefaultError({
|
|
973
|
+
output,
|
|
974
|
+
parsedBody,
|
|
975
|
+
errorCode
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
}, "de_GetAppMonitorDataCommandError");
|
|
979
|
+
var de_ListAppMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
980
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
+
return de_ListAppMonitorsCommandError(output, context);
|
|
982
|
+
}
|
|
983
|
+
const contents = (0, import_smithy_client.map)({
|
|
984
|
+
$metadata: deserializeMetadata(output)
|
|
985
|
+
});
|
|
986
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
987
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
988
|
+
AppMonitorSummaries: import_smithy_client._json,
|
|
989
|
+
NextToken: import_smithy_client.expectString
|
|
990
|
+
});
|
|
991
|
+
Object.assign(contents, doc);
|
|
992
|
+
return contents;
|
|
993
|
+
}, "de_ListAppMonitorsCommand");
|
|
994
|
+
var de_ListAppMonitorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
|
+
const parsedOutput = {
|
|
996
|
+
...output,
|
|
997
|
+
body: await parseErrorBody(output.body, context)
|
|
998
|
+
};
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
+
switch (errorCode) {
|
|
1001
|
+
case "AccessDeniedException":
|
|
1002
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
1003
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "InternalServerException":
|
|
1005
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1006
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "ThrottlingException":
|
|
1008
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
1009
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1010
|
+
case "ValidationException":
|
|
1011
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1012
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
|
+
default:
|
|
1014
|
+
const parsedBody = parsedOutput.body;
|
|
1015
|
+
return throwDefaultError({
|
|
1016
|
+
output,
|
|
1017
|
+
parsedBody,
|
|
1018
|
+
errorCode
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
}, "de_ListAppMonitorsCommandError");
|
|
1022
|
+
var de_ListRumMetricsDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
+
return de_ListRumMetricsDestinationsCommandError(output, context);
|
|
1025
|
+
}
|
|
1026
|
+
const contents = (0, import_smithy_client.map)({
|
|
1027
|
+
$metadata: deserializeMetadata(output)
|
|
1028
|
+
});
|
|
1029
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1030
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1031
|
+
Destinations: import_smithy_client._json,
|
|
1032
|
+
NextToken: import_smithy_client.expectString
|
|
1033
|
+
});
|
|
1034
|
+
Object.assign(contents, doc);
|
|
1035
|
+
return contents;
|
|
1036
|
+
}, "de_ListRumMetricsDestinationsCommand");
|
|
1037
|
+
var de_ListRumMetricsDestinationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
+
const parsedOutput = {
|
|
1039
|
+
...output,
|
|
1040
|
+
body: await parseErrorBody(output.body, context)
|
|
1041
|
+
};
|
|
1042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
+
switch (errorCode) {
|
|
1044
|
+
case "AccessDeniedException":
|
|
1045
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
1046
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "InternalServerException":
|
|
1048
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1049
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "ResourceNotFoundException":
|
|
1051
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1052
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
+
case "ValidationException":
|
|
1054
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1055
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
|
+
default:
|
|
1057
|
+
const parsedBody = parsedOutput.body;
|
|
1058
|
+
return throwDefaultError({
|
|
1059
|
+
output,
|
|
1060
|
+
parsedBody,
|
|
1061
|
+
errorCode
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
}, "de_ListRumMetricsDestinationsCommandError");
|
|
1065
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1068
|
+
}
|
|
1069
|
+
const contents = (0, import_smithy_client.map)({
|
|
1070
|
+
$metadata: deserializeMetadata(output)
|
|
1071
|
+
});
|
|
1072
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1073
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1074
|
+
ResourceArn: import_smithy_client.expectString,
|
|
1075
|
+
Tags: import_smithy_client._json
|
|
1076
|
+
});
|
|
1077
|
+
Object.assign(contents, doc);
|
|
1078
|
+
return contents;
|
|
1079
|
+
}, "de_ListTagsForResourceCommand");
|
|
1080
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1081
|
+
const parsedOutput = {
|
|
1082
|
+
...output,
|
|
1083
|
+
body: await parseErrorBody(output.body, context)
|
|
1084
|
+
};
|
|
1085
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
+
switch (errorCode) {
|
|
1087
|
+
case "InternalServerException":
|
|
1088
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1089
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1090
|
+
case "ResourceNotFoundException":
|
|
1091
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1092
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1093
|
+
case "ValidationException":
|
|
1094
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1095
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
+
default:
|
|
1097
|
+
const parsedBody = parsedOutput.body;
|
|
1098
|
+
return throwDefaultError({
|
|
1099
|
+
output,
|
|
1100
|
+
parsedBody,
|
|
1101
|
+
errorCode
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1105
|
+
var de_PutRumEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1106
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
|
+
return de_PutRumEventsCommandError(output, context);
|
|
1108
|
+
}
|
|
1109
|
+
const contents = (0, import_smithy_client.map)({
|
|
1110
|
+
$metadata: deserializeMetadata(output)
|
|
1111
|
+
});
|
|
1112
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1113
|
+
return contents;
|
|
1114
|
+
}, "de_PutRumEventsCommand");
|
|
1115
|
+
var de_PutRumEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1116
|
+
const parsedOutput = {
|
|
1117
|
+
...output,
|
|
1118
|
+
body: await parseErrorBody(output.body, context)
|
|
1119
|
+
};
|
|
1120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
|
+
switch (errorCode) {
|
|
1122
|
+
case "AccessDeniedException":
|
|
1123
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
1124
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1125
|
+
case "InternalServerException":
|
|
1126
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1127
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1128
|
+
case "ResourceNotFoundException":
|
|
1129
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1130
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1131
|
+
case "ThrottlingException":
|
|
1132
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
1133
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1134
|
+
case "ValidationException":
|
|
1135
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1136
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1137
|
+
default:
|
|
1138
|
+
const parsedBody = parsedOutput.body;
|
|
1139
|
+
return throwDefaultError({
|
|
1140
|
+
output,
|
|
1141
|
+
parsedBody,
|
|
1142
|
+
errorCode
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
}, "de_PutRumEventsCommandError");
|
|
1146
|
+
var de_PutRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1148
|
+
return de_PutRumMetricsDestinationCommandError(output, context);
|
|
1149
|
+
}
|
|
1150
|
+
const contents = (0, import_smithy_client.map)({
|
|
1151
|
+
$metadata: deserializeMetadata(output)
|
|
1152
|
+
});
|
|
1153
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1154
|
+
return contents;
|
|
1155
|
+
}, "de_PutRumMetricsDestinationCommand");
|
|
1156
|
+
var de_PutRumMetricsDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
+
const parsedOutput = {
|
|
1158
|
+
...output,
|
|
1159
|
+
body: await parseErrorBody(output.body, context)
|
|
1160
|
+
};
|
|
1161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
+
switch (errorCode) {
|
|
1163
|
+
case "AccessDeniedException":
|
|
1164
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
1165
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1166
|
+
case "ConflictException":
|
|
1167
|
+
case "com.amazonaws.rum#ConflictException":
|
|
1168
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1169
|
+
case "InternalServerException":
|
|
1170
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1171
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1172
|
+
case "ResourceNotFoundException":
|
|
1173
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1174
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1175
|
+
case "ThrottlingException":
|
|
1176
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
1177
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "ValidationException":
|
|
1179
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1180
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1181
|
+
default:
|
|
1182
|
+
const parsedBody = parsedOutput.body;
|
|
1183
|
+
return throwDefaultError({
|
|
1184
|
+
output,
|
|
1185
|
+
parsedBody,
|
|
1186
|
+
errorCode
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
}, "de_PutRumMetricsDestinationCommandError");
|
|
1190
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1191
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
|
+
return de_TagResourceCommandError(output, context);
|
|
1193
|
+
}
|
|
1194
|
+
const contents = (0, import_smithy_client.map)({
|
|
1195
|
+
$metadata: deserializeMetadata(output)
|
|
1196
|
+
});
|
|
1197
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1198
|
+
return contents;
|
|
1199
|
+
}, "de_TagResourceCommand");
|
|
1200
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
|
+
const parsedOutput = {
|
|
1202
|
+
...output,
|
|
1203
|
+
body: await parseErrorBody(output.body, context)
|
|
1204
|
+
};
|
|
1205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
+
switch (errorCode) {
|
|
1207
|
+
case "InternalServerException":
|
|
1208
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1209
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1210
|
+
case "ResourceNotFoundException":
|
|
1211
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1212
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1213
|
+
case "ValidationException":
|
|
1214
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1215
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1216
|
+
default:
|
|
1217
|
+
const parsedBody = parsedOutput.body;
|
|
1218
|
+
return throwDefaultError({
|
|
1219
|
+
output,
|
|
1220
|
+
parsedBody,
|
|
1221
|
+
errorCode
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
}, "de_TagResourceCommandError");
|
|
1225
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1226
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1227
|
+
return de_UntagResourceCommandError(output, context);
|
|
1228
|
+
}
|
|
1229
|
+
const contents = (0, import_smithy_client.map)({
|
|
1230
|
+
$metadata: deserializeMetadata(output)
|
|
1231
|
+
});
|
|
1232
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1233
|
+
return contents;
|
|
1234
|
+
}, "de_UntagResourceCommand");
|
|
1235
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1236
|
+
const parsedOutput = {
|
|
1237
|
+
...output,
|
|
1238
|
+
body: await parseErrorBody(output.body, context)
|
|
1239
|
+
};
|
|
1240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
+
switch (errorCode) {
|
|
1242
|
+
case "InternalServerException":
|
|
1243
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1244
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1245
|
+
case "ResourceNotFoundException":
|
|
1246
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1247
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "ValidationException":
|
|
1249
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1250
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
|
+
default:
|
|
1252
|
+
const parsedBody = parsedOutput.body;
|
|
1253
|
+
return throwDefaultError({
|
|
1254
|
+
output,
|
|
1255
|
+
parsedBody,
|
|
1256
|
+
errorCode
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
}, "de_UntagResourceCommandError");
|
|
1260
|
+
var de_UpdateAppMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1261
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
+
return de_UpdateAppMonitorCommandError(output, context);
|
|
1263
|
+
}
|
|
1264
|
+
const contents = (0, import_smithy_client.map)({
|
|
1265
|
+
$metadata: deserializeMetadata(output)
|
|
1266
|
+
});
|
|
1267
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1268
|
+
return contents;
|
|
1269
|
+
}, "de_UpdateAppMonitorCommand");
|
|
1270
|
+
var de_UpdateAppMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1271
|
+
const parsedOutput = {
|
|
1272
|
+
...output,
|
|
1273
|
+
body: await parseErrorBody(output.body, context)
|
|
1274
|
+
};
|
|
1275
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
+
switch (errorCode) {
|
|
1277
|
+
case "AccessDeniedException":
|
|
1278
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
1279
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1280
|
+
case "ConflictException":
|
|
1281
|
+
case "com.amazonaws.rum#ConflictException":
|
|
1282
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1283
|
+
case "InternalServerException":
|
|
1284
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1285
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1286
|
+
case "ResourceNotFoundException":
|
|
1287
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1288
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1289
|
+
case "ThrottlingException":
|
|
1290
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
1291
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1292
|
+
case "ValidationException":
|
|
1293
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1294
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1295
|
+
default:
|
|
1296
|
+
const parsedBody = parsedOutput.body;
|
|
1297
|
+
return throwDefaultError({
|
|
1298
|
+
output,
|
|
1299
|
+
parsedBody,
|
|
1300
|
+
errorCode
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
}, "de_UpdateAppMonitorCommandError");
|
|
1304
|
+
var de_UpdateRumMetricDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1305
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1306
|
+
return de_UpdateRumMetricDefinitionCommandError(output, context);
|
|
1307
|
+
}
|
|
1308
|
+
const contents = (0, import_smithy_client.map)({
|
|
1309
|
+
$metadata: deserializeMetadata(output)
|
|
1310
|
+
});
|
|
1311
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1312
|
+
return contents;
|
|
1313
|
+
}, "de_UpdateRumMetricDefinitionCommand");
|
|
1314
|
+
var de_UpdateRumMetricDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
|
+
const parsedOutput = {
|
|
1316
|
+
...output,
|
|
1317
|
+
body: await parseErrorBody(output.body, context)
|
|
1318
|
+
};
|
|
1319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
+
switch (errorCode) {
|
|
1321
|
+
case "AccessDeniedException":
|
|
1322
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
1323
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1324
|
+
case "ConflictException":
|
|
1325
|
+
case "com.amazonaws.rum#ConflictException":
|
|
1326
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1327
|
+
case "InternalServerException":
|
|
1328
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
1329
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1330
|
+
case "ResourceNotFoundException":
|
|
1331
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1332
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1333
|
+
case "ServiceQuotaExceededException":
|
|
1334
|
+
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
1335
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1336
|
+
case "ThrottlingException":
|
|
1337
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
1338
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1339
|
+
case "ValidationException":
|
|
1340
|
+
case "com.amazonaws.rum#ValidationException":
|
|
1341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1342
|
+
default:
|
|
1343
|
+
const parsedBody = parsedOutput.body;
|
|
1344
|
+
return throwDefaultError({
|
|
1345
|
+
output,
|
|
1346
|
+
parsedBody,
|
|
1347
|
+
errorCode
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
}, "de_UpdateRumMetricDefinitionCommandError");
|
|
1351
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(RUMServiceException);
|
|
1352
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1353
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1354
|
+
const data = parsedOutput.body;
|
|
1355
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1356
|
+
message: import_smithy_client.expectString
|
|
1357
|
+
});
|
|
1358
|
+
Object.assign(contents, doc);
|
|
1359
|
+
const exception = new AccessDeniedException({
|
|
1360
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1361
|
+
...contents
|
|
1362
|
+
});
|
|
1363
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1364
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1365
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1366
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1367
|
+
const data = parsedOutput.body;
|
|
1368
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1369
|
+
message: import_smithy_client.expectString,
|
|
1370
|
+
resourceName: import_smithy_client.expectString,
|
|
1371
|
+
resourceType: import_smithy_client.expectString
|
|
1372
|
+
});
|
|
1373
|
+
Object.assign(contents, doc);
|
|
1374
|
+
const exception = new ConflictException({
|
|
1375
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1376
|
+
...contents
|
|
1377
|
+
});
|
|
1378
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1379
|
+
}, "de_ConflictExceptionRes");
|
|
1380
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1381
|
+
const contents = (0, import_smithy_client.map)({
|
|
1382
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1383
|
+
});
|
|
1384
|
+
const data = parsedOutput.body;
|
|
1385
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1386
|
+
message: import_smithy_client.expectString
|
|
1387
|
+
});
|
|
1388
|
+
Object.assign(contents, doc);
|
|
1389
|
+
const exception = new InternalServerException({
|
|
1390
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1391
|
+
...contents
|
|
1392
|
+
});
|
|
1393
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1394
|
+
}, "de_InternalServerExceptionRes");
|
|
1395
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1396
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1397
|
+
const data = parsedOutput.body;
|
|
1398
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1399
|
+
message: import_smithy_client.expectString,
|
|
1400
|
+
resourceName: import_smithy_client.expectString,
|
|
1401
|
+
resourceType: import_smithy_client.expectString
|
|
1402
|
+
});
|
|
1403
|
+
Object.assign(contents, doc);
|
|
1404
|
+
const exception = new ResourceNotFoundException({
|
|
1405
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1406
|
+
...contents
|
|
1407
|
+
});
|
|
1408
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1409
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1410
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1411
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1412
|
+
const data = parsedOutput.body;
|
|
1413
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1414
|
+
message: import_smithy_client.expectString
|
|
1415
|
+
});
|
|
1416
|
+
Object.assign(contents, doc);
|
|
1417
|
+
const exception = new ServiceQuotaExceededException({
|
|
1418
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1419
|
+
...contents
|
|
1420
|
+
});
|
|
1421
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1422
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1423
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1424
|
+
const contents = (0, import_smithy_client.map)({
|
|
1425
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1426
|
+
});
|
|
1427
|
+
const data = parsedOutput.body;
|
|
1428
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1429
|
+
message: import_smithy_client.expectString,
|
|
1430
|
+
quotaCode: import_smithy_client.expectString,
|
|
1431
|
+
serviceCode: import_smithy_client.expectString
|
|
1432
|
+
});
|
|
1433
|
+
Object.assign(contents, doc);
|
|
1434
|
+
const exception = new ThrottlingException({
|
|
1435
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1436
|
+
...contents
|
|
1437
|
+
});
|
|
1438
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1439
|
+
}, "de_ThrottlingExceptionRes");
|
|
1440
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1441
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1442
|
+
const data = parsedOutput.body;
|
|
1443
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1444
|
+
message: import_smithy_client.expectString
|
|
1445
|
+
});
|
|
1446
|
+
Object.assign(contents, doc);
|
|
1447
|
+
const exception = new ValidationException({
|
|
1448
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1449
|
+
...contents
|
|
1450
|
+
});
|
|
1451
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1452
|
+
}, "de_ValidationExceptionRes");
|
|
1453
|
+
var se_AppMonitorConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1454
|
+
return (0, import_smithy_client.take)(input, {
|
|
1455
|
+
AllowCookies: [],
|
|
1456
|
+
EnableXRay: [],
|
|
1457
|
+
ExcludedPages: import_smithy_client._json,
|
|
1458
|
+
FavoritePages: import_smithy_client._json,
|
|
1459
|
+
GuestRoleArn: [],
|
|
1460
|
+
IdentityPoolId: [],
|
|
1461
|
+
IncludedPages: import_smithy_client._json,
|
|
1462
|
+
SessionSampleRate: import_smithy_client.serializeFloat,
|
|
1463
|
+
Telemetries: import_smithy_client._json
|
|
1464
|
+
});
|
|
1465
|
+
}, "se_AppMonitorConfiguration");
|
|
1466
|
+
var se_RumEvent = /* @__PURE__ */ __name((input, context) => {
|
|
1467
|
+
return (0, import_smithy_client.take)(input, {
|
|
1468
|
+
details: import_smithy_client.LazyJsonString.fromObject,
|
|
1469
|
+
id: [],
|
|
1470
|
+
metadata: import_smithy_client.LazyJsonString.fromObject,
|
|
1471
|
+
timestamp: (_) => Math.round(_.getTime() / 1e3),
|
|
1472
|
+
type: []
|
|
1473
|
+
});
|
|
1474
|
+
}, "se_RumEvent");
|
|
1475
|
+
var se_RumEventList = /* @__PURE__ */ __name((input, context) => {
|
|
1476
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
1477
|
+
return se_RumEvent(entry, context);
|
|
1478
|
+
});
|
|
1479
|
+
}, "se_RumEventList");
|
|
1480
|
+
var de_AppMonitor = /* @__PURE__ */ __name((output, context) => {
|
|
1481
|
+
return (0, import_smithy_client.take)(output, {
|
|
1482
|
+
AppMonitorConfiguration: (_) => de_AppMonitorConfiguration(_, context),
|
|
1483
|
+
Created: import_smithy_client.expectString,
|
|
1484
|
+
CustomEvents: import_smithy_client._json,
|
|
1485
|
+
DataStorage: import_smithy_client._json,
|
|
1486
|
+
Domain: import_smithy_client.expectString,
|
|
1487
|
+
Id: import_smithy_client.expectString,
|
|
1488
|
+
LastModified: import_smithy_client.expectString,
|
|
1489
|
+
Name: import_smithy_client.expectString,
|
|
1490
|
+
State: import_smithy_client.expectString,
|
|
1491
|
+
Tags: import_smithy_client._json
|
|
1492
|
+
});
|
|
1493
|
+
}, "de_AppMonitor");
|
|
1494
|
+
var de_AppMonitorConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1495
|
+
return (0, import_smithy_client.take)(output, {
|
|
1496
|
+
AllowCookies: import_smithy_client.expectBoolean,
|
|
1497
|
+
EnableXRay: import_smithy_client.expectBoolean,
|
|
1498
|
+
ExcludedPages: import_smithy_client._json,
|
|
1499
|
+
FavoritePages: import_smithy_client._json,
|
|
1500
|
+
GuestRoleArn: import_smithy_client.expectString,
|
|
1501
|
+
IdentityPoolId: import_smithy_client.expectString,
|
|
1502
|
+
IncludedPages: import_smithy_client._json,
|
|
1503
|
+
SessionSampleRate: import_smithy_client.limitedParseDouble,
|
|
1504
|
+
Telemetries: import_smithy_client._json
|
|
1505
|
+
});
|
|
1506
|
+
}, "de_AppMonitorConfiguration");
|
|
1507
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1508
|
+
httpStatusCode: output.statusCode,
|
|
1509
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1510
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1511
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1512
|
+
}), "deserializeMetadata");
|
|
1513
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1514
|
+
var _D = "Destination";
|
|
1515
|
+
var _DA = "DestinationArn";
|
|
1516
|
+
var _MDI = "MetricDefinitionIds";
|
|
1517
|
+
var _MR = "MaxResults";
|
|
1518
|
+
var _NT = "NextToken";
|
|
1519
|
+
var _TK = "TagKeys";
|
|
1520
|
+
var _d = "destination";
|
|
1521
|
+
var _dA = "destinationArn";
|
|
1522
|
+
var _mDI = "metricDefinitionIds";
|
|
1523
|
+
var _mR = "maxResults";
|
|
1524
|
+
var _nT = "nextToken";
|
|
1525
|
+
var _rAS = "retryAfterSeconds";
|
|
1526
|
+
var _ra = "retry-after";
|
|
1527
|
+
var _tK = "tagKeys";
|
|
1528
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1529
|
+
if (encoded.length) {
|
|
1530
|
+
return JSON.parse(encoded);
|
|
1531
|
+
}
|
|
1532
|
+
return {};
|
|
1533
|
+
}), "parseBody");
|
|
1534
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1535
|
+
const value = await parseBody(errorBody, context);
|
|
1536
|
+
value.message = value.message ?? value.Message;
|
|
1537
|
+
return value;
|
|
1538
|
+
}, "parseErrorBody");
|
|
1539
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1540
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1541
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1542
|
+
let cleanValue = rawValue;
|
|
1543
|
+
if (typeof cleanValue === "number") {
|
|
1544
|
+
cleanValue = cleanValue.toString();
|
|
1545
|
+
}
|
|
1546
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1547
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1548
|
+
}
|
|
1549
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1550
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1551
|
+
}
|
|
1552
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1553
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1554
|
+
}
|
|
1555
|
+
return cleanValue;
|
|
1556
|
+
}, "sanitizeErrorCode");
|
|
1557
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1558
|
+
if (headerKey !== void 0) {
|
|
1559
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1560
|
+
}
|
|
1561
|
+
if (data.code !== void 0) {
|
|
1562
|
+
return sanitizeErrorCode(data.code);
|
|
1563
|
+
}
|
|
1564
|
+
if (data["__type"] !== void 0) {
|
|
1565
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1566
|
+
}
|
|
1567
|
+
}, "loadRestJsonErrorCode");
|
|
1568
|
+
|
|
1569
|
+
// src/commands/BatchCreateRumMetricDefinitionsCommand.ts
|
|
1570
|
+
var _BatchCreateRumMetricDefinitionsCommand = class _BatchCreateRumMetricDefinitionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1571
|
+
...commonParams
|
|
1572
|
+
}).m(function(Command, cs, config, o) {
|
|
1573
|
+
return [
|
|
1574
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1575
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1576
|
+
];
|
|
1577
|
+
}).s("RUM", "BatchCreateRumMetricDefinitions", {}).n("RUMClient", "BatchCreateRumMetricDefinitionsCommand").f(void 0, void 0).ser(se_BatchCreateRumMetricDefinitionsCommand).de(de_BatchCreateRumMetricDefinitionsCommand).build() {
|
|
1578
|
+
};
|
|
1579
|
+
__name(_BatchCreateRumMetricDefinitionsCommand, "BatchCreateRumMetricDefinitionsCommand");
|
|
1580
|
+
var BatchCreateRumMetricDefinitionsCommand = _BatchCreateRumMetricDefinitionsCommand;
|
|
1581
|
+
|
|
1582
|
+
// src/commands/BatchDeleteRumMetricDefinitionsCommand.ts
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
var _BatchDeleteRumMetricDefinitionsCommand = class _BatchDeleteRumMetricDefinitionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1588
|
+
...commonParams
|
|
1589
|
+
}).m(function(Command, cs, config, o) {
|
|
1590
|
+
return [
|
|
1591
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1592
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1593
|
+
];
|
|
1594
|
+
}).s("RUM", "BatchDeleteRumMetricDefinitions", {}).n("RUMClient", "BatchDeleteRumMetricDefinitionsCommand").f(void 0, void 0).ser(se_BatchDeleteRumMetricDefinitionsCommand).de(de_BatchDeleteRumMetricDefinitionsCommand).build() {
|
|
1595
|
+
};
|
|
1596
|
+
__name(_BatchDeleteRumMetricDefinitionsCommand, "BatchDeleteRumMetricDefinitionsCommand");
|
|
1597
|
+
var BatchDeleteRumMetricDefinitionsCommand = _BatchDeleteRumMetricDefinitionsCommand;
|
|
1598
|
+
|
|
1599
|
+
// src/commands/BatchGetRumMetricDefinitionsCommand.ts
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
var _BatchGetRumMetricDefinitionsCommand = class _BatchGetRumMetricDefinitionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1605
|
+
...commonParams
|
|
1606
|
+
}).m(function(Command, cs, config, o) {
|
|
1607
|
+
return [
|
|
1608
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1609
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1610
|
+
];
|
|
1611
|
+
}).s("RUM", "BatchGetRumMetricDefinitions", {}).n("RUMClient", "BatchGetRumMetricDefinitionsCommand").f(void 0, void 0).ser(se_BatchGetRumMetricDefinitionsCommand).de(de_BatchGetRumMetricDefinitionsCommand).build() {
|
|
1612
|
+
};
|
|
1613
|
+
__name(_BatchGetRumMetricDefinitionsCommand, "BatchGetRumMetricDefinitionsCommand");
|
|
1614
|
+
var BatchGetRumMetricDefinitionsCommand = _BatchGetRumMetricDefinitionsCommand;
|
|
1615
|
+
|
|
1616
|
+
// src/commands/CreateAppMonitorCommand.ts
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
var _CreateAppMonitorCommand = class _CreateAppMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1622
|
+
...commonParams
|
|
1623
|
+
}).m(function(Command, cs, config, o) {
|
|
1624
|
+
return [
|
|
1625
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1626
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1627
|
+
];
|
|
1628
|
+
}).s("RUM", "CreateAppMonitor", {}).n("RUMClient", "CreateAppMonitorCommand").f(void 0, void 0).ser(se_CreateAppMonitorCommand).de(de_CreateAppMonitorCommand).build() {
|
|
1629
|
+
};
|
|
1630
|
+
__name(_CreateAppMonitorCommand, "CreateAppMonitorCommand");
|
|
1631
|
+
var CreateAppMonitorCommand = _CreateAppMonitorCommand;
|
|
1632
|
+
|
|
1633
|
+
// src/commands/DeleteAppMonitorCommand.ts
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
var _DeleteAppMonitorCommand = class _DeleteAppMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1639
|
+
...commonParams
|
|
1640
|
+
}).m(function(Command, cs, config, o) {
|
|
1641
|
+
return [
|
|
1642
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1643
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1644
|
+
];
|
|
1645
|
+
}).s("RUM", "DeleteAppMonitor", {}).n("RUMClient", "DeleteAppMonitorCommand").f(void 0, void 0).ser(se_DeleteAppMonitorCommand).de(de_DeleteAppMonitorCommand).build() {
|
|
1646
|
+
};
|
|
1647
|
+
__name(_DeleteAppMonitorCommand, "DeleteAppMonitorCommand");
|
|
1648
|
+
var DeleteAppMonitorCommand = _DeleteAppMonitorCommand;
|
|
1649
|
+
|
|
1650
|
+
// src/commands/DeleteRumMetricsDestinationCommand.ts
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
var _DeleteRumMetricsDestinationCommand = class _DeleteRumMetricsDestinationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1656
|
+
...commonParams
|
|
1657
|
+
}).m(function(Command, cs, config, o) {
|
|
1658
|
+
return [
|
|
1659
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1660
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1661
|
+
];
|
|
1662
|
+
}).s("RUM", "DeleteRumMetricsDestination", {}).n("RUMClient", "DeleteRumMetricsDestinationCommand").f(void 0, void 0).ser(se_DeleteRumMetricsDestinationCommand).de(de_DeleteRumMetricsDestinationCommand).build() {
|
|
1663
|
+
};
|
|
1664
|
+
__name(_DeleteRumMetricsDestinationCommand, "DeleteRumMetricsDestinationCommand");
|
|
1665
|
+
var DeleteRumMetricsDestinationCommand = _DeleteRumMetricsDestinationCommand;
|
|
1666
|
+
|
|
1667
|
+
// src/commands/GetAppMonitorCommand.ts
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
var _GetAppMonitorCommand = class _GetAppMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1673
|
+
...commonParams
|
|
1674
|
+
}).m(function(Command, cs, config, o) {
|
|
1675
|
+
return [
|
|
1676
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1677
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1678
|
+
];
|
|
1679
|
+
}).s("RUM", "GetAppMonitor", {}).n("RUMClient", "GetAppMonitorCommand").f(void 0, void 0).ser(se_GetAppMonitorCommand).de(de_GetAppMonitorCommand).build() {
|
|
1680
|
+
};
|
|
1681
|
+
__name(_GetAppMonitorCommand, "GetAppMonitorCommand");
|
|
1682
|
+
var GetAppMonitorCommand = _GetAppMonitorCommand;
|
|
1683
|
+
|
|
1684
|
+
// src/commands/GetAppMonitorDataCommand.ts
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
var _GetAppMonitorDataCommand = class _GetAppMonitorDataCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1690
|
+
...commonParams
|
|
1691
|
+
}).m(function(Command, cs, config, o) {
|
|
1692
|
+
return [
|
|
1693
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1694
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1695
|
+
];
|
|
1696
|
+
}).s("RUM", "GetAppMonitorData", {}).n("RUMClient", "GetAppMonitorDataCommand").f(void 0, void 0).ser(se_GetAppMonitorDataCommand).de(de_GetAppMonitorDataCommand).build() {
|
|
1697
|
+
};
|
|
1698
|
+
__name(_GetAppMonitorDataCommand, "GetAppMonitorDataCommand");
|
|
1699
|
+
var GetAppMonitorDataCommand = _GetAppMonitorDataCommand;
|
|
1700
|
+
|
|
1701
|
+
// src/commands/ListAppMonitorsCommand.ts
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
var _ListAppMonitorsCommand = class _ListAppMonitorsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1707
|
+
...commonParams
|
|
1708
|
+
}).m(function(Command, cs, config, o) {
|
|
1709
|
+
return [
|
|
1710
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1711
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1712
|
+
];
|
|
1713
|
+
}).s("RUM", "ListAppMonitors", {}).n("RUMClient", "ListAppMonitorsCommand").f(void 0, void 0).ser(se_ListAppMonitorsCommand).de(de_ListAppMonitorsCommand).build() {
|
|
1714
|
+
};
|
|
1715
|
+
__name(_ListAppMonitorsCommand, "ListAppMonitorsCommand");
|
|
1716
|
+
var ListAppMonitorsCommand = _ListAppMonitorsCommand;
|
|
1717
|
+
|
|
1718
|
+
// src/commands/ListRumMetricsDestinationsCommand.ts
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
var _ListRumMetricsDestinationsCommand = class _ListRumMetricsDestinationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1724
|
+
...commonParams
|
|
1725
|
+
}).m(function(Command, cs, config, o) {
|
|
1726
|
+
return [
|
|
1727
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1728
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1729
|
+
];
|
|
1730
|
+
}).s("RUM", "ListRumMetricsDestinations", {}).n("RUMClient", "ListRumMetricsDestinationsCommand").f(void 0, void 0).ser(se_ListRumMetricsDestinationsCommand).de(de_ListRumMetricsDestinationsCommand).build() {
|
|
1731
|
+
};
|
|
1732
|
+
__name(_ListRumMetricsDestinationsCommand, "ListRumMetricsDestinationsCommand");
|
|
1733
|
+
var ListRumMetricsDestinationsCommand = _ListRumMetricsDestinationsCommand;
|
|
1734
|
+
|
|
1735
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1741
|
+
...commonParams
|
|
1742
|
+
}).m(function(Command, cs, config, o) {
|
|
1743
|
+
return [
|
|
1744
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1745
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1746
|
+
];
|
|
1747
|
+
}).s("RUM", "ListTagsForResource", {}).n("RUMClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1748
|
+
};
|
|
1749
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1750
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1751
|
+
|
|
1752
|
+
// src/commands/PutRumEventsCommand.ts
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
var _PutRumEventsCommand = class _PutRumEventsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1758
|
+
...commonParams
|
|
1759
|
+
}).m(function(Command, cs, config, o) {
|
|
1760
|
+
return [
|
|
1761
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1762
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1763
|
+
];
|
|
1764
|
+
}).s("RUM", "PutRumEvents", {}).n("RUMClient", "PutRumEventsCommand").f(void 0, void 0).ser(se_PutRumEventsCommand).de(de_PutRumEventsCommand).build() {
|
|
1765
|
+
};
|
|
1766
|
+
__name(_PutRumEventsCommand, "PutRumEventsCommand");
|
|
1767
|
+
var PutRumEventsCommand = _PutRumEventsCommand;
|
|
1768
|
+
|
|
1769
|
+
// src/commands/PutRumMetricsDestinationCommand.ts
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
var _PutRumMetricsDestinationCommand = class _PutRumMetricsDestinationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1775
|
+
...commonParams
|
|
1776
|
+
}).m(function(Command, cs, config, o) {
|
|
1777
|
+
return [
|
|
1778
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1779
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1780
|
+
];
|
|
1781
|
+
}).s("RUM", "PutRumMetricsDestination", {}).n("RUMClient", "PutRumMetricsDestinationCommand").f(void 0, void 0).ser(se_PutRumMetricsDestinationCommand).de(de_PutRumMetricsDestinationCommand).build() {
|
|
1782
|
+
};
|
|
1783
|
+
__name(_PutRumMetricsDestinationCommand, "PutRumMetricsDestinationCommand");
|
|
1784
|
+
var PutRumMetricsDestinationCommand = _PutRumMetricsDestinationCommand;
|
|
1785
|
+
|
|
1786
|
+
// src/commands/TagResourceCommand.ts
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1792
|
+
...commonParams
|
|
1793
|
+
}).m(function(Command, cs, config, o) {
|
|
1794
|
+
return [
|
|
1795
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1796
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1797
|
+
];
|
|
1798
|
+
}).s("RUM", "TagResource", {}).n("RUMClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1799
|
+
};
|
|
1800
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1801
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1802
|
+
|
|
1803
|
+
// src/commands/UntagResourceCommand.ts
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1809
|
+
...commonParams
|
|
1810
|
+
}).m(function(Command, cs, config, o) {
|
|
1811
|
+
return [
|
|
1812
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1813
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1814
|
+
];
|
|
1815
|
+
}).s("RUM", "UntagResource", {}).n("RUMClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1816
|
+
};
|
|
1817
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1818
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1819
|
+
|
|
1820
|
+
// src/commands/UpdateAppMonitorCommand.ts
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
var _UpdateAppMonitorCommand = class _UpdateAppMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1826
|
+
...commonParams
|
|
1827
|
+
}).m(function(Command, cs, config, o) {
|
|
1828
|
+
return [
|
|
1829
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1830
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1831
|
+
];
|
|
1832
|
+
}).s("RUM", "UpdateAppMonitor", {}).n("RUMClient", "UpdateAppMonitorCommand").f(void 0, void 0).ser(se_UpdateAppMonitorCommand).de(de_UpdateAppMonitorCommand).build() {
|
|
1833
|
+
};
|
|
1834
|
+
__name(_UpdateAppMonitorCommand, "UpdateAppMonitorCommand");
|
|
1835
|
+
var UpdateAppMonitorCommand = _UpdateAppMonitorCommand;
|
|
1836
|
+
|
|
1837
|
+
// src/commands/UpdateRumMetricDefinitionCommand.ts
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
var _UpdateRumMetricDefinitionCommand = class _UpdateRumMetricDefinitionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1843
|
+
...commonParams
|
|
1844
|
+
}).m(function(Command, cs, config, o) {
|
|
1845
|
+
return [
|
|
1846
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1847
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1848
|
+
];
|
|
1849
|
+
}).s("RUM", "UpdateRumMetricDefinition", {}).n("RUMClient", "UpdateRumMetricDefinitionCommand").f(void 0, void 0).ser(se_UpdateRumMetricDefinitionCommand).de(de_UpdateRumMetricDefinitionCommand).build() {
|
|
1850
|
+
};
|
|
1851
|
+
__name(_UpdateRumMetricDefinitionCommand, "UpdateRumMetricDefinitionCommand");
|
|
1852
|
+
var UpdateRumMetricDefinitionCommand = _UpdateRumMetricDefinitionCommand;
|
|
1853
|
+
|
|
1854
|
+
// src/RUM.ts
|
|
1855
|
+
var commands = {
|
|
1856
|
+
BatchCreateRumMetricDefinitionsCommand,
|
|
1857
|
+
BatchDeleteRumMetricDefinitionsCommand,
|
|
1858
|
+
BatchGetRumMetricDefinitionsCommand,
|
|
1859
|
+
CreateAppMonitorCommand,
|
|
1860
|
+
DeleteAppMonitorCommand,
|
|
1861
|
+
DeleteRumMetricsDestinationCommand,
|
|
1862
|
+
GetAppMonitorCommand,
|
|
1863
|
+
GetAppMonitorDataCommand,
|
|
1864
|
+
ListAppMonitorsCommand,
|
|
1865
|
+
ListRumMetricsDestinationsCommand,
|
|
1866
|
+
ListTagsForResourceCommand,
|
|
1867
|
+
PutRumEventsCommand,
|
|
1868
|
+
PutRumMetricsDestinationCommand,
|
|
1869
|
+
TagResourceCommand,
|
|
1870
|
+
UntagResourceCommand,
|
|
1871
|
+
UpdateAppMonitorCommand,
|
|
1872
|
+
UpdateRumMetricDefinitionCommand
|
|
1873
|
+
};
|
|
1874
|
+
var _RUM = class _RUM extends RUMClient {
|
|
1875
|
+
};
|
|
1876
|
+
__name(_RUM, "RUM");
|
|
1877
|
+
var RUM = _RUM;
|
|
1878
|
+
(0, import_smithy_client.createAggregatedClient)(commands, RUM);
|
|
1879
|
+
|
|
1880
|
+
// src/pagination/BatchGetRumMetricDefinitionsPaginator.ts
|
|
1881
|
+
|
|
1882
|
+
var paginateBatchGetRumMetricDefinitions = (0, import_core.createPaginator)(RUMClient, BatchGetRumMetricDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1883
|
+
|
|
1884
|
+
// src/pagination/GetAppMonitorDataPaginator.ts
|
|
1885
|
+
|
|
1886
|
+
var paginateGetAppMonitorData = (0, import_core.createPaginator)(RUMClient, GetAppMonitorDataCommand, "NextToken", "NextToken", "MaxResults");
|
|
1887
|
+
|
|
1888
|
+
// src/pagination/ListAppMonitorsPaginator.ts
|
|
1889
|
+
|
|
1890
|
+
var paginateListAppMonitors = (0, import_core.createPaginator)(RUMClient, ListAppMonitorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1891
|
+
|
|
1892
|
+
// src/pagination/ListRumMetricsDestinationsPaginator.ts
|
|
1893
|
+
|
|
1894
|
+
var paginateListRumMetricsDestinations = (0, import_core.createPaginator)(RUMClient, ListRumMetricsDestinationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1895
|
+
|
|
1896
|
+
// src/index.ts
|
|
1897
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1898
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1899
|
+
0 && (module.exports = {
|
|
1900
|
+
AccessDeniedException,
|
|
1901
|
+
BatchCreateRumMetricDefinitionsCommand,
|
|
1902
|
+
BatchDeleteRumMetricDefinitionsCommand,
|
|
1903
|
+
BatchGetRumMetricDefinitionsCommand,
|
|
1904
|
+
ConflictException,
|
|
1905
|
+
CreateAppMonitorCommand,
|
|
1906
|
+
CustomEventsStatus,
|
|
1907
|
+
DeleteAppMonitorCommand,
|
|
1908
|
+
DeleteRumMetricsDestinationCommand,
|
|
1909
|
+
GetAppMonitorCommand,
|
|
1910
|
+
GetAppMonitorDataCommand,
|
|
1911
|
+
InternalServerException,
|
|
1912
|
+
ListAppMonitorsCommand,
|
|
1913
|
+
ListRumMetricsDestinationsCommand,
|
|
1914
|
+
ListTagsForResourceCommand,
|
|
1915
|
+
MetricDestination,
|
|
1916
|
+
PutRumEventsCommand,
|
|
1917
|
+
PutRumMetricsDestinationCommand,
|
|
1918
|
+
RUM,
|
|
1919
|
+
RUMClient,
|
|
1920
|
+
RUMServiceException,
|
|
1921
|
+
ResourceNotFoundException,
|
|
1922
|
+
ServiceQuotaExceededException,
|
|
1923
|
+
StateEnum,
|
|
1924
|
+
TagResourceCommand,
|
|
1925
|
+
Telemetry,
|
|
1926
|
+
ThrottlingException,
|
|
1927
|
+
UntagResourceCommand,
|
|
1928
|
+
UpdateAppMonitorCommand,
|
|
1929
|
+
UpdateRumMetricDefinitionCommand,
|
|
1930
|
+
ValidationException,
|
|
1931
|
+
__Client,
|
|
1932
|
+
paginateBatchGetRumMetricDefinitions,
|
|
1933
|
+
paginateGetAppMonitorData,
|
|
1934
|
+
paginateListAppMonitors,
|
|
1935
|
+
paginateListRumMetricsDestinations
|
|
1936
|
+
});
|