@aws-sdk/client-rum 3.306.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist-cjs/commands/BatchCreateRumMetricDefinitionsCommand.js +2 -2
  2. package/dist-cjs/commands/BatchDeleteRumMetricDefinitionsCommand.js +2 -2
  3. package/dist-cjs/commands/BatchGetRumMetricDefinitionsCommand.js +2 -2
  4. package/dist-cjs/commands/CreateAppMonitorCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteAppMonitorCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteRumMetricsDestinationCommand.js +2 -2
  7. package/dist-cjs/commands/GetAppMonitorCommand.js +2 -2
  8. package/dist-cjs/commands/GetAppMonitorDataCommand.js +2 -2
  9. package/dist-cjs/commands/ListAppMonitorsCommand.js +2 -2
  10. package/dist-cjs/commands/ListRumMetricsDestinationsCommand.js +2 -2
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  12. package/dist-cjs/commands/PutRumEventsCommand.js +2 -2
  13. package/dist-cjs/commands/PutRumMetricsDestinationCommand.js +2 -2
  14. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  15. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  16. package/dist-cjs/commands/UpdateAppMonitorCommand.js +2 -2
  17. package/dist-cjs/commands/UpdateRumMetricDefinitionCommand.js +2 -2
  18. package/dist-cjs/protocols/Aws_restJson1.js +286 -300
  19. package/dist-es/commands/BatchCreateRumMetricDefinitionsCommand.js +3 -3
  20. package/dist-es/commands/BatchDeleteRumMetricDefinitionsCommand.js +3 -3
  21. package/dist-es/commands/BatchGetRumMetricDefinitionsCommand.js +3 -3
  22. package/dist-es/commands/CreateAppMonitorCommand.js +3 -3
  23. package/dist-es/commands/DeleteAppMonitorCommand.js +3 -3
  24. package/dist-es/commands/DeleteRumMetricsDestinationCommand.js +3 -3
  25. package/dist-es/commands/GetAppMonitorCommand.js +3 -3
  26. package/dist-es/commands/GetAppMonitorDataCommand.js +3 -3
  27. package/dist-es/commands/ListAppMonitorsCommand.js +3 -3
  28. package/dist-es/commands/ListRumMetricsDestinationsCommand.js +3 -3
  29. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  30. package/dist-es/commands/PutRumEventsCommand.js +3 -3
  31. package/dist-es/commands/PutRumMetricsDestinationCommand.js +3 -3
  32. package/dist-es/commands/TagResourceCommand.js +3 -3
  33. package/dist-es/commands/UntagResourceCommand.js +3 -3
  34. package/dist-es/commands/UpdateAppMonitorCommand.js +3 -3
  35. package/dist-es/commands/UpdateRumMetricDefinitionCommand.js +3 -3
  36. package/dist-es/protocols/Aws_restJson1.js +251 -265
  37. package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
  39. package/package.json +6 -6
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateRumMetricDefinitionCommand = exports.deserializeAws_restJson1UpdateAppMonitorCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutRumMetricsDestinationCommand = exports.deserializeAws_restJson1PutRumEventsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRumMetricsDestinationsCommand = exports.deserializeAws_restJson1ListAppMonitorsCommand = exports.deserializeAws_restJson1GetAppMonitorDataCommand = exports.deserializeAws_restJson1GetAppMonitorCommand = exports.deserializeAws_restJson1DeleteRumMetricsDestinationCommand = exports.deserializeAws_restJson1DeleteAppMonitorCommand = exports.deserializeAws_restJson1CreateAppMonitorCommand = exports.deserializeAws_restJson1BatchGetRumMetricDefinitionsCommand = exports.deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand = exports.deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = exports.serializeAws_restJson1UpdateRumMetricDefinitionCommand = exports.serializeAws_restJson1UpdateAppMonitorCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutRumMetricsDestinationCommand = exports.serializeAws_restJson1PutRumEventsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRumMetricsDestinationsCommand = exports.serializeAws_restJson1ListAppMonitorsCommand = exports.serializeAws_restJson1GetAppMonitorDataCommand = exports.serializeAws_restJson1GetAppMonitorCommand = exports.serializeAws_restJson1DeleteRumMetricsDestinationCommand = exports.serializeAws_restJson1DeleteAppMonitorCommand = exports.serializeAws_restJson1CreateAppMonitorCommand = exports.serializeAws_restJson1BatchGetRumMetricDefinitionsCommand = exports.serializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand = exports.serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = void 0;
3
+ exports.de_UpdateRumMetricDefinitionCommand = exports.de_UpdateAppMonitorCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutRumMetricsDestinationCommand = exports.de_PutRumEventsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRumMetricsDestinationsCommand = exports.de_ListAppMonitorsCommand = exports.de_GetAppMonitorDataCommand = exports.de_GetAppMonitorCommand = exports.de_DeleteRumMetricsDestinationCommand = exports.de_DeleteAppMonitorCommand = exports.de_CreateAppMonitorCommand = exports.de_BatchGetRumMetricDefinitionsCommand = exports.de_BatchDeleteRumMetricDefinitionsCommand = exports.de_BatchCreateRumMetricDefinitionsCommand = exports.se_UpdateRumMetricDefinitionCommand = exports.se_UpdateAppMonitorCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutRumMetricsDestinationCommand = exports.se_PutRumEventsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRumMetricsDestinationsCommand = exports.se_ListAppMonitorsCommand = exports.se_GetAppMonitorDataCommand = exports.se_GetAppMonitorCommand = exports.se_DeleteRumMetricsDestinationCommand = exports.se_DeleteAppMonitorCommand = exports.se_CreateAppMonitorCommand = exports.se_BatchGetRumMetricDefinitionsCommand = exports.se_BatchDeleteRumMetricDefinitionsCommand = exports.se_BatchCreateRumMetricDefinitionsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const RUMServiceException_1 = require("../models/RUMServiceException");
8
- const serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
8
+ const se_BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -17,7 +17,7 @@ const serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = async (inpu
17
17
  ...(input.Destination != null && { Destination: input.Destination }),
18
18
  ...(input.DestinationArn != null && { DestinationArn: input.DestinationArn }),
19
19
  ...(input.MetricDefinitions != null && {
20
- MetricDefinitions: serializeAws_restJson1MetricDefinitionsRequest(input.MetricDefinitions, context),
20
+ MetricDefinitions: se_MetricDefinitionsRequest(input.MetricDefinitions, context),
21
21
  }),
22
22
  });
23
23
  return new protocol_http_1.HttpRequest({
@@ -30,8 +30,8 @@ const serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = async (inpu
30
30
  body,
31
31
  });
32
32
  };
33
- exports.serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand;
34
- const serializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand = async (input, context) => {
33
+ exports.se_BatchCreateRumMetricDefinitionsCommand = se_BatchCreateRumMetricDefinitionsCommand;
34
+ const se_BatchDeleteRumMetricDefinitionsCommand = async (input, context) => {
35
35
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
36
  const headers = {};
37
37
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics";
@@ -56,8 +56,8 @@ const serializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand = async (inpu
56
56
  body,
57
57
  });
58
58
  };
59
- exports.serializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand = serializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand;
60
- const serializeAws_restJson1BatchGetRumMetricDefinitionsCommand = async (input, context) => {
59
+ exports.se_BatchDeleteRumMetricDefinitionsCommand = se_BatchDeleteRumMetricDefinitionsCommand;
60
+ const se_BatchGetRumMetricDefinitionsCommand = async (input, context) => {
61
61
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
62
  const headers = {};
63
63
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics";
@@ -80,8 +80,8 @@ const serializeAws_restJson1BatchGetRumMetricDefinitionsCommand = async (input,
80
80
  body,
81
81
  });
82
82
  };
83
- exports.serializeAws_restJson1BatchGetRumMetricDefinitionsCommand = serializeAws_restJson1BatchGetRumMetricDefinitionsCommand;
84
- const serializeAws_restJson1CreateAppMonitorCommand = async (input, context) => {
83
+ exports.se_BatchGetRumMetricDefinitionsCommand = se_BatchGetRumMetricDefinitionsCommand;
84
+ const se_CreateAppMonitorCommand = async (input, context) => {
85
85
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
86
  const headers = {
87
87
  "content-type": "application/json",
@@ -90,15 +90,13 @@ const serializeAws_restJson1CreateAppMonitorCommand = async (input, context) =>
90
90
  let body;
91
91
  body = JSON.stringify({
92
92
  ...(input.AppMonitorConfiguration != null && {
93
- AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
94
- }),
95
- ...(input.CustomEvents != null && {
96
- CustomEvents: serializeAws_restJson1CustomEvents(input.CustomEvents, context),
93
+ AppMonitorConfiguration: se_AppMonitorConfiguration(input.AppMonitorConfiguration, context),
97
94
  }),
95
+ ...(input.CustomEvents != null && { CustomEvents: se_CustomEvents(input.CustomEvents, context) }),
98
96
  ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
99
97
  ...(input.Domain != null && { Domain: input.Domain }),
100
98
  ...(input.Name != null && { Name: input.Name }),
101
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
99
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
102
100
  });
103
101
  return new protocol_http_1.HttpRequest({
104
102
  protocol,
@@ -110,8 +108,8 @@ const serializeAws_restJson1CreateAppMonitorCommand = async (input, context) =>
110
108
  body,
111
109
  });
112
110
  };
113
- exports.serializeAws_restJson1CreateAppMonitorCommand = serializeAws_restJson1CreateAppMonitorCommand;
114
- const serializeAws_restJson1DeleteAppMonitorCommand = async (input, context) => {
111
+ exports.se_CreateAppMonitorCommand = se_CreateAppMonitorCommand;
112
+ const se_DeleteAppMonitorCommand = async (input, context) => {
115
113
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
116
114
  const headers = {};
117
115
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}";
@@ -127,8 +125,8 @@ const serializeAws_restJson1DeleteAppMonitorCommand = async (input, context) =>
127
125
  body,
128
126
  });
129
127
  };
130
- exports.serializeAws_restJson1DeleteAppMonitorCommand = serializeAws_restJson1DeleteAppMonitorCommand;
131
- const serializeAws_restJson1DeleteRumMetricsDestinationCommand = async (input, context) => {
128
+ exports.se_DeleteAppMonitorCommand = se_DeleteAppMonitorCommand;
129
+ const se_DeleteRumMetricsDestinationCommand = async (input, context) => {
132
130
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
131
  const headers = {};
134
132
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -150,8 +148,8 @@ const serializeAws_restJson1DeleteRumMetricsDestinationCommand = async (input, c
150
148
  body,
151
149
  });
152
150
  };
153
- exports.serializeAws_restJson1DeleteRumMetricsDestinationCommand = serializeAws_restJson1DeleteRumMetricsDestinationCommand;
154
- const serializeAws_restJson1GetAppMonitorCommand = async (input, context) => {
151
+ exports.se_DeleteRumMetricsDestinationCommand = se_DeleteRumMetricsDestinationCommand;
152
+ const se_GetAppMonitorCommand = async (input, context) => {
155
153
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
154
  const headers = {};
157
155
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}";
@@ -167,8 +165,8 @@ const serializeAws_restJson1GetAppMonitorCommand = async (input, context) => {
167
165
  body,
168
166
  });
169
167
  };
170
- exports.serializeAws_restJson1GetAppMonitorCommand = serializeAws_restJson1GetAppMonitorCommand;
171
- const serializeAws_restJson1GetAppMonitorDataCommand = async (input, context) => {
168
+ exports.se_GetAppMonitorCommand = se_GetAppMonitorCommand;
169
+ const se_GetAppMonitorDataCommand = async (input, context) => {
172
170
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
171
  const headers = {
174
172
  "content-type": "application/json",
@@ -177,10 +175,10 @@ const serializeAws_restJson1GetAppMonitorDataCommand = async (input, context) =>
177
175
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
178
176
  let body;
179
177
  body = JSON.stringify({
180
- ...(input.Filters != null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) }),
178
+ ...(input.Filters != null && { Filters: se_QueryFilters(input.Filters, context) }),
181
179
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
182
180
  ...(input.NextToken != null && { NextToken: input.NextToken }),
183
- ...(input.TimeRange != null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) }),
181
+ ...(input.TimeRange != null && { TimeRange: se_TimeRange(input.TimeRange, context) }),
184
182
  });
185
183
  return new protocol_http_1.HttpRequest({
186
184
  protocol,
@@ -192,8 +190,8 @@ const serializeAws_restJson1GetAppMonitorDataCommand = async (input, context) =>
192
190
  body,
193
191
  });
194
192
  };
195
- exports.serializeAws_restJson1GetAppMonitorDataCommand = serializeAws_restJson1GetAppMonitorDataCommand;
196
- const serializeAws_restJson1ListAppMonitorsCommand = async (input, context) => {
193
+ exports.se_GetAppMonitorDataCommand = se_GetAppMonitorDataCommand;
194
+ const se_ListAppMonitorsCommand = async (input, context) => {
197
195
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
196
  const headers = {};
199
197
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitors";
@@ -213,8 +211,8 @@ const serializeAws_restJson1ListAppMonitorsCommand = async (input, context) => {
213
211
  body,
214
212
  });
215
213
  };
216
- exports.serializeAws_restJson1ListAppMonitorsCommand = serializeAws_restJson1ListAppMonitorsCommand;
217
- const serializeAws_restJson1ListRumMetricsDestinationsCommand = async (input, context) => {
214
+ exports.se_ListAppMonitorsCommand = se_ListAppMonitorsCommand;
215
+ const se_ListRumMetricsDestinationsCommand = async (input, context) => {
218
216
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
219
217
  const headers = {};
220
218
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -236,8 +234,8 @@ const serializeAws_restJson1ListRumMetricsDestinationsCommand = async (input, co
236
234
  body,
237
235
  });
238
236
  };
239
- exports.serializeAws_restJson1ListRumMetricsDestinationsCommand = serializeAws_restJson1ListRumMetricsDestinationsCommand;
240
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
237
+ exports.se_ListRumMetricsDestinationsCommand = se_ListRumMetricsDestinationsCommand;
238
+ const se_ListTagsForResourceCommand = async (input, context) => {
241
239
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
240
  const headers = {};
243
241
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -253,8 +251,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
253
251
  body,
254
252
  });
255
253
  };
256
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
257
- const serializeAws_restJson1PutRumEventsCommand = async (input, context) => {
254
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
255
+ const se_PutRumEventsCommand = async (input, context) => {
258
256
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
259
257
  const headers = {
260
258
  "content-type": "application/json",
@@ -264,11 +262,11 @@ const serializeAws_restJson1PutRumEventsCommand = async (input, context) => {
264
262
  let body;
265
263
  body = JSON.stringify({
266
264
  ...(input.AppMonitorDetails != null && {
267
- AppMonitorDetails: serializeAws_restJson1AppMonitorDetails(input.AppMonitorDetails, context),
265
+ AppMonitorDetails: se_AppMonitorDetails(input.AppMonitorDetails, context),
268
266
  }),
269
267
  ...(input.BatchId != null && { BatchId: input.BatchId }),
270
- ...(input.RumEvents != null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) }),
271
- ...(input.UserDetails != null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) }),
268
+ ...(input.RumEvents != null && { RumEvents: se_RumEventList(input.RumEvents, context) }),
269
+ ...(input.UserDetails != null && { UserDetails: se_UserDetails(input.UserDetails, context) }),
272
270
  });
273
271
  let { hostname: resolvedHostname } = await context.endpoint();
274
272
  if (context.disableHostPrefix !== true) {
@@ -287,8 +285,8 @@ const serializeAws_restJson1PutRumEventsCommand = async (input, context) => {
287
285
  body,
288
286
  });
289
287
  };
290
- exports.serializeAws_restJson1PutRumEventsCommand = serializeAws_restJson1PutRumEventsCommand;
291
- const serializeAws_restJson1PutRumMetricsDestinationCommand = async (input, context) => {
288
+ exports.se_PutRumEventsCommand = se_PutRumEventsCommand;
289
+ const se_PutRumMetricsDestinationCommand = async (input, context) => {
292
290
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
291
  const headers = {
294
292
  "content-type": "application/json",
@@ -312,8 +310,8 @@ const serializeAws_restJson1PutRumMetricsDestinationCommand = async (input, cont
312
310
  body,
313
311
  });
314
312
  };
315
- exports.serializeAws_restJson1PutRumMetricsDestinationCommand = serializeAws_restJson1PutRumMetricsDestinationCommand;
316
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
313
+ exports.se_PutRumMetricsDestinationCommand = se_PutRumMetricsDestinationCommand;
314
+ const se_TagResourceCommand = async (input, context) => {
317
315
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
316
  const headers = {
319
317
  "content-type": "application/json",
@@ -322,7 +320,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
322
320
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
323
321
  let body;
324
322
  body = JSON.stringify({
325
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
323
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
326
324
  });
327
325
  return new protocol_http_1.HttpRequest({
328
326
  protocol,
@@ -334,8 +332,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
334
332
  body,
335
333
  });
336
334
  };
337
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
338
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
335
+ exports.se_TagResourceCommand = se_TagResourceCommand;
336
+ const se_UntagResourceCommand = async (input, context) => {
339
337
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
340
338
  const headers = {};
341
339
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -358,8 +356,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
358
356
  body,
359
357
  });
360
358
  };
361
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
362
- const serializeAws_restJson1UpdateAppMonitorCommand = async (input, context) => {
359
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
360
+ const se_UpdateAppMonitorCommand = async (input, context) => {
363
361
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
362
  const headers = {
365
363
  "content-type": "application/json",
@@ -369,11 +367,9 @@ const serializeAws_restJson1UpdateAppMonitorCommand = async (input, context) =>
369
367
  let body;
370
368
  body = JSON.stringify({
371
369
  ...(input.AppMonitorConfiguration != null && {
372
- AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
373
- }),
374
- ...(input.CustomEvents != null && {
375
- CustomEvents: serializeAws_restJson1CustomEvents(input.CustomEvents, context),
370
+ AppMonitorConfiguration: se_AppMonitorConfiguration(input.AppMonitorConfiguration, context),
376
371
  }),
372
+ ...(input.CustomEvents != null && { CustomEvents: se_CustomEvents(input.CustomEvents, context) }),
377
373
  ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
378
374
  ...(input.Domain != null && { Domain: input.Domain }),
379
375
  });
@@ -387,8 +383,8 @@ const serializeAws_restJson1UpdateAppMonitorCommand = async (input, context) =>
387
383
  body,
388
384
  });
389
385
  };
390
- exports.serializeAws_restJson1UpdateAppMonitorCommand = serializeAws_restJson1UpdateAppMonitorCommand;
391
- const serializeAws_restJson1UpdateRumMetricDefinitionCommand = async (input, context) => {
386
+ exports.se_UpdateAppMonitorCommand = se_UpdateAppMonitorCommand;
387
+ const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
392
388
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
389
  const headers = {
394
390
  "content-type": "application/json",
@@ -400,7 +396,7 @@ const serializeAws_restJson1UpdateRumMetricDefinitionCommand = async (input, con
400
396
  ...(input.Destination != null && { Destination: input.Destination }),
401
397
  ...(input.DestinationArn != null && { DestinationArn: input.DestinationArn }),
402
398
  ...(input.MetricDefinition != null && {
403
- MetricDefinition: serializeAws_restJson1MetricDefinitionRequest(input.MetricDefinition, context),
399
+ MetricDefinition: se_MetricDefinitionRequest(input.MetricDefinition, context),
404
400
  }),
405
401
  ...(input.MetricDefinitionId != null && { MetricDefinitionId: input.MetricDefinitionId }),
406
402
  });
@@ -414,25 +410,25 @@ const serializeAws_restJson1UpdateRumMetricDefinitionCommand = async (input, con
414
410
  body,
415
411
  });
416
412
  };
417
- exports.serializeAws_restJson1UpdateRumMetricDefinitionCommand = serializeAws_restJson1UpdateRumMetricDefinitionCommand;
418
- const deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = async (output, context) => {
413
+ exports.se_UpdateRumMetricDefinitionCommand = se_UpdateRumMetricDefinitionCommand;
414
+ const de_BatchCreateRumMetricDefinitionsCommand = async (output, context) => {
419
415
  if (output.statusCode !== 200 && output.statusCode >= 300) {
420
- return deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommandError(output, context);
416
+ return de_BatchCreateRumMetricDefinitionsCommandError(output, context);
421
417
  }
422
418
  const contents = map({
423
419
  $metadata: deserializeMetadata(output),
424
420
  });
425
421
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
426
422
  if (data.Errors != null) {
427
- contents.Errors = deserializeAws_restJson1BatchCreateRumMetricDefinitionsErrors(data.Errors, context);
423
+ contents.Errors = de_BatchCreateRumMetricDefinitionsErrors(data.Errors, context);
428
424
  }
429
425
  if (data.MetricDefinitions != null) {
430
- contents.MetricDefinitions = deserializeAws_restJson1MetricDefinitions(data.MetricDefinitions, context);
426
+ contents.MetricDefinitions = de_MetricDefinitions(data.MetricDefinitions, context);
431
427
  }
432
428
  return contents;
433
429
  };
434
- exports.deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommand = deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommand;
435
- const deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommandError = async (output, context) => {
430
+ exports.de_BatchCreateRumMetricDefinitionsCommand = de_BatchCreateRumMetricDefinitionsCommand;
431
+ const de_BatchCreateRumMetricDefinitionsCommandError = async (output, context) => {
436
432
  const parsedOutput = {
437
433
  ...output,
438
434
  body: await parseErrorBody(output.body, context),
@@ -441,25 +437,25 @@ const deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommandError = asyn
441
437
  switch (errorCode) {
442
438
  case "AccessDeniedException":
443
439
  case "com.amazonaws.rum#AccessDeniedException":
444
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
440
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
445
441
  case "ConflictException":
446
442
  case "com.amazonaws.rum#ConflictException":
447
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
443
+ throw await de_ConflictExceptionRes(parsedOutput, context);
448
444
  case "InternalServerException":
449
445
  case "com.amazonaws.rum#InternalServerException":
450
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
446
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
451
447
  case "ResourceNotFoundException":
452
448
  case "com.amazonaws.rum#ResourceNotFoundException":
453
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
449
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
454
450
  case "ServiceQuotaExceededException":
455
451
  case "com.amazonaws.rum#ServiceQuotaExceededException":
456
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
452
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
457
453
  case "ThrottlingException":
458
454
  case "com.amazonaws.rum#ThrottlingException":
459
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
455
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
460
456
  case "ValidationException":
461
457
  case "com.amazonaws.rum#ValidationException":
462
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
458
+ throw await de_ValidationExceptionRes(parsedOutput, context);
463
459
  default:
464
460
  const parsedBody = parsedOutput.body;
465
461
  (0, smithy_client_1.throwDefaultError)({
@@ -470,24 +466,24 @@ const deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommandError = asyn
470
466
  });
471
467
  }
472
468
  };
473
- const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand = async (output, context) => {
469
+ const de_BatchDeleteRumMetricDefinitionsCommand = async (output, context) => {
474
470
  if (output.statusCode !== 200 && output.statusCode >= 300) {
475
- return deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommandError(output, context);
471
+ return de_BatchDeleteRumMetricDefinitionsCommandError(output, context);
476
472
  }
477
473
  const contents = map({
478
474
  $metadata: deserializeMetadata(output),
479
475
  });
480
476
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
481
477
  if (data.Errors != null) {
482
- contents.Errors = deserializeAws_restJson1BatchDeleteRumMetricDefinitionsErrors(data.Errors, context);
478
+ contents.Errors = de_BatchDeleteRumMetricDefinitionsErrors(data.Errors, context);
483
479
  }
484
480
  if (data.MetricDefinitionIds != null) {
485
- contents.MetricDefinitionIds = deserializeAws_restJson1MetricDefinitionIds(data.MetricDefinitionIds, context);
481
+ contents.MetricDefinitionIds = de_MetricDefinitionIds(data.MetricDefinitionIds, context);
486
482
  }
487
483
  return contents;
488
484
  };
489
- exports.deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand = deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand;
490
- const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommandError = async (output, context) => {
485
+ exports.de_BatchDeleteRumMetricDefinitionsCommand = de_BatchDeleteRumMetricDefinitionsCommand;
486
+ const de_BatchDeleteRumMetricDefinitionsCommandError = async (output, context) => {
491
487
  const parsedOutput = {
492
488
  ...output,
493
489
  body: await parseErrorBody(output.body, context),
@@ -496,22 +492,22 @@ const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommandError = asyn
496
492
  switch (errorCode) {
497
493
  case "AccessDeniedException":
498
494
  case "com.amazonaws.rum#AccessDeniedException":
499
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
495
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
500
496
  case "ConflictException":
501
497
  case "com.amazonaws.rum#ConflictException":
502
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
498
+ throw await de_ConflictExceptionRes(parsedOutput, context);
503
499
  case "InternalServerException":
504
500
  case "com.amazonaws.rum#InternalServerException":
505
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
501
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
506
502
  case "ResourceNotFoundException":
507
503
  case "com.amazonaws.rum#ResourceNotFoundException":
508
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
504
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
509
505
  case "ThrottlingException":
510
506
  case "com.amazonaws.rum#ThrottlingException":
511
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
507
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
512
508
  case "ValidationException":
513
509
  case "com.amazonaws.rum#ValidationException":
514
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
510
+ throw await de_ValidationExceptionRes(parsedOutput, context);
515
511
  default:
516
512
  const parsedBody = parsedOutput.body;
517
513
  (0, smithy_client_1.throwDefaultError)({
@@ -522,24 +518,24 @@ const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommandError = asyn
522
518
  });
523
519
  }
524
520
  };
525
- const deserializeAws_restJson1BatchGetRumMetricDefinitionsCommand = async (output, context) => {
521
+ const de_BatchGetRumMetricDefinitionsCommand = async (output, context) => {
526
522
  if (output.statusCode !== 200 && output.statusCode >= 300) {
527
- return deserializeAws_restJson1BatchGetRumMetricDefinitionsCommandError(output, context);
523
+ return de_BatchGetRumMetricDefinitionsCommandError(output, context);
528
524
  }
529
525
  const contents = map({
530
526
  $metadata: deserializeMetadata(output),
531
527
  });
532
528
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
533
529
  if (data.MetricDefinitions != null) {
534
- contents.MetricDefinitions = deserializeAws_restJson1MetricDefinitions(data.MetricDefinitions, context);
530
+ contents.MetricDefinitions = de_MetricDefinitions(data.MetricDefinitions, context);
535
531
  }
536
532
  if (data.NextToken != null) {
537
533
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
538
534
  }
539
535
  return contents;
540
536
  };
541
- exports.deserializeAws_restJson1BatchGetRumMetricDefinitionsCommand = deserializeAws_restJson1BatchGetRumMetricDefinitionsCommand;
542
- const deserializeAws_restJson1BatchGetRumMetricDefinitionsCommandError = async (output, context) => {
537
+ exports.de_BatchGetRumMetricDefinitionsCommand = de_BatchGetRumMetricDefinitionsCommand;
538
+ const de_BatchGetRumMetricDefinitionsCommandError = async (output, context) => {
543
539
  const parsedOutput = {
544
540
  ...output,
545
541
  body: await parseErrorBody(output.body, context),
@@ -548,16 +544,16 @@ const deserializeAws_restJson1BatchGetRumMetricDefinitionsCommandError = async (
548
544
  switch (errorCode) {
549
545
  case "AccessDeniedException":
550
546
  case "com.amazonaws.rum#AccessDeniedException":
551
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
547
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
552
548
  case "InternalServerException":
553
549
  case "com.amazonaws.rum#InternalServerException":
554
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
550
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
555
551
  case "ResourceNotFoundException":
556
552
  case "com.amazonaws.rum#ResourceNotFoundException":
557
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
553
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
558
554
  case "ValidationException":
559
555
  case "com.amazonaws.rum#ValidationException":
560
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
556
+ throw await de_ValidationExceptionRes(parsedOutput, context);
561
557
  default:
562
558
  const parsedBody = parsedOutput.body;
563
559
  (0, smithy_client_1.throwDefaultError)({
@@ -568,9 +564,9 @@ const deserializeAws_restJson1BatchGetRumMetricDefinitionsCommandError = async (
568
564
  });
569
565
  }
570
566
  };
571
- const deserializeAws_restJson1CreateAppMonitorCommand = async (output, context) => {
567
+ const de_CreateAppMonitorCommand = async (output, context) => {
572
568
  if (output.statusCode !== 200 && output.statusCode >= 300) {
573
- return deserializeAws_restJson1CreateAppMonitorCommandError(output, context);
569
+ return de_CreateAppMonitorCommandError(output, context);
574
570
  }
575
571
  const contents = map({
576
572
  $metadata: deserializeMetadata(output),
@@ -581,8 +577,8 @@ const deserializeAws_restJson1CreateAppMonitorCommand = async (output, context)
581
577
  }
582
578
  return contents;
583
579
  };
584
- exports.deserializeAws_restJson1CreateAppMonitorCommand = deserializeAws_restJson1CreateAppMonitorCommand;
585
- const deserializeAws_restJson1CreateAppMonitorCommandError = async (output, context) => {
580
+ exports.de_CreateAppMonitorCommand = de_CreateAppMonitorCommand;
581
+ const de_CreateAppMonitorCommandError = async (output, context) => {
586
582
  const parsedOutput = {
587
583
  ...output,
588
584
  body: await parseErrorBody(output.body, context),
@@ -591,25 +587,25 @@ const deserializeAws_restJson1CreateAppMonitorCommandError = async (output, cont
591
587
  switch (errorCode) {
592
588
  case "AccessDeniedException":
593
589
  case "com.amazonaws.rum#AccessDeniedException":
594
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
590
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
595
591
  case "ConflictException":
596
592
  case "com.amazonaws.rum#ConflictException":
597
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
593
+ throw await de_ConflictExceptionRes(parsedOutput, context);
598
594
  case "InternalServerException":
599
595
  case "com.amazonaws.rum#InternalServerException":
600
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
596
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
601
597
  case "ResourceNotFoundException":
602
598
  case "com.amazonaws.rum#ResourceNotFoundException":
603
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
599
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
604
600
  case "ServiceQuotaExceededException":
605
601
  case "com.amazonaws.rum#ServiceQuotaExceededException":
606
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
602
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
607
603
  case "ThrottlingException":
608
604
  case "com.amazonaws.rum#ThrottlingException":
609
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
605
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
610
606
  case "ValidationException":
611
607
  case "com.amazonaws.rum#ValidationException":
612
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
608
+ throw await de_ValidationExceptionRes(parsedOutput, context);
613
609
  default:
614
610
  const parsedBody = parsedOutput.body;
615
611
  (0, smithy_client_1.throwDefaultError)({
@@ -620,9 +616,9 @@ const deserializeAws_restJson1CreateAppMonitorCommandError = async (output, cont
620
616
  });
621
617
  }
622
618
  };
623
- const deserializeAws_restJson1DeleteAppMonitorCommand = async (output, context) => {
619
+ const de_DeleteAppMonitorCommand = async (output, context) => {
624
620
  if (output.statusCode !== 200 && output.statusCode >= 300) {
625
- return deserializeAws_restJson1DeleteAppMonitorCommandError(output, context);
621
+ return de_DeleteAppMonitorCommandError(output, context);
626
622
  }
627
623
  const contents = map({
628
624
  $metadata: deserializeMetadata(output),
@@ -630,8 +626,8 @@ const deserializeAws_restJson1DeleteAppMonitorCommand = async (output, context)
630
626
  await collectBody(output.body, context);
631
627
  return contents;
632
628
  };
633
- exports.deserializeAws_restJson1DeleteAppMonitorCommand = deserializeAws_restJson1DeleteAppMonitorCommand;
634
- const deserializeAws_restJson1DeleteAppMonitorCommandError = async (output, context) => {
629
+ exports.de_DeleteAppMonitorCommand = de_DeleteAppMonitorCommand;
630
+ const de_DeleteAppMonitorCommandError = async (output, context) => {
635
631
  const parsedOutput = {
636
632
  ...output,
637
633
  body: await parseErrorBody(output.body, context),
@@ -640,22 +636,22 @@ const deserializeAws_restJson1DeleteAppMonitorCommandError = async (output, cont
640
636
  switch (errorCode) {
641
637
  case "AccessDeniedException":
642
638
  case "com.amazonaws.rum#AccessDeniedException":
643
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
639
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
644
640
  case "ConflictException":
645
641
  case "com.amazonaws.rum#ConflictException":
646
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
642
+ throw await de_ConflictExceptionRes(parsedOutput, context);
647
643
  case "InternalServerException":
648
644
  case "com.amazonaws.rum#InternalServerException":
649
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
645
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
650
646
  case "ResourceNotFoundException":
651
647
  case "com.amazonaws.rum#ResourceNotFoundException":
652
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
648
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
653
649
  case "ThrottlingException":
654
650
  case "com.amazonaws.rum#ThrottlingException":
655
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
651
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
656
652
  case "ValidationException":
657
653
  case "com.amazonaws.rum#ValidationException":
658
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
654
+ throw await de_ValidationExceptionRes(parsedOutput, context);
659
655
  default:
660
656
  const parsedBody = parsedOutput.body;
661
657
  (0, smithy_client_1.throwDefaultError)({
@@ -666,9 +662,9 @@ const deserializeAws_restJson1DeleteAppMonitorCommandError = async (output, cont
666
662
  });
667
663
  }
668
664
  };
669
- const deserializeAws_restJson1DeleteRumMetricsDestinationCommand = async (output, context) => {
665
+ const de_DeleteRumMetricsDestinationCommand = async (output, context) => {
670
666
  if (output.statusCode !== 200 && output.statusCode >= 300) {
671
- return deserializeAws_restJson1DeleteRumMetricsDestinationCommandError(output, context);
667
+ return de_DeleteRumMetricsDestinationCommandError(output, context);
672
668
  }
673
669
  const contents = map({
674
670
  $metadata: deserializeMetadata(output),
@@ -676,8 +672,8 @@ const deserializeAws_restJson1DeleteRumMetricsDestinationCommand = async (output
676
672
  await collectBody(output.body, context);
677
673
  return contents;
678
674
  };
679
- exports.deserializeAws_restJson1DeleteRumMetricsDestinationCommand = deserializeAws_restJson1DeleteRumMetricsDestinationCommand;
680
- const deserializeAws_restJson1DeleteRumMetricsDestinationCommandError = async (output, context) => {
675
+ exports.de_DeleteRumMetricsDestinationCommand = de_DeleteRumMetricsDestinationCommand;
676
+ const de_DeleteRumMetricsDestinationCommandError = async (output, context) => {
681
677
  const parsedOutput = {
682
678
  ...output,
683
679
  body: await parseErrorBody(output.body, context),
@@ -686,22 +682,22 @@ const deserializeAws_restJson1DeleteRumMetricsDestinationCommandError = async (o
686
682
  switch (errorCode) {
687
683
  case "AccessDeniedException":
688
684
  case "com.amazonaws.rum#AccessDeniedException":
689
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
685
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
690
686
  case "ConflictException":
691
687
  case "com.amazonaws.rum#ConflictException":
692
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
688
+ throw await de_ConflictExceptionRes(parsedOutput, context);
693
689
  case "InternalServerException":
694
690
  case "com.amazonaws.rum#InternalServerException":
695
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
691
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
696
692
  case "ResourceNotFoundException":
697
693
  case "com.amazonaws.rum#ResourceNotFoundException":
698
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
694
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
699
695
  case "ThrottlingException":
700
696
  case "com.amazonaws.rum#ThrottlingException":
701
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
697
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
702
698
  case "ValidationException":
703
699
  case "com.amazonaws.rum#ValidationException":
704
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
700
+ throw await de_ValidationExceptionRes(parsedOutput, context);
705
701
  default:
706
702
  const parsedBody = parsedOutput.body;
707
703
  (0, smithy_client_1.throwDefaultError)({
@@ -712,21 +708,21 @@ const deserializeAws_restJson1DeleteRumMetricsDestinationCommandError = async (o
712
708
  });
713
709
  }
714
710
  };
715
- const deserializeAws_restJson1GetAppMonitorCommand = async (output, context) => {
711
+ const de_GetAppMonitorCommand = async (output, context) => {
716
712
  if (output.statusCode !== 200 && output.statusCode >= 300) {
717
- return deserializeAws_restJson1GetAppMonitorCommandError(output, context);
713
+ return de_GetAppMonitorCommandError(output, context);
718
714
  }
719
715
  const contents = map({
720
716
  $metadata: deserializeMetadata(output),
721
717
  });
722
718
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
723
719
  if (data.AppMonitor != null) {
724
- contents.AppMonitor = deserializeAws_restJson1AppMonitor(data.AppMonitor, context);
720
+ contents.AppMonitor = de_AppMonitor(data.AppMonitor, context);
725
721
  }
726
722
  return contents;
727
723
  };
728
- exports.deserializeAws_restJson1GetAppMonitorCommand = deserializeAws_restJson1GetAppMonitorCommand;
729
- const deserializeAws_restJson1GetAppMonitorCommandError = async (output, context) => {
724
+ exports.de_GetAppMonitorCommand = de_GetAppMonitorCommand;
725
+ const de_GetAppMonitorCommandError = async (output, context) => {
730
726
  const parsedOutput = {
731
727
  ...output,
732
728
  body: await parseErrorBody(output.body, context),
@@ -735,19 +731,19 @@ const deserializeAws_restJson1GetAppMonitorCommandError = async (output, context
735
731
  switch (errorCode) {
736
732
  case "AccessDeniedException":
737
733
  case "com.amazonaws.rum#AccessDeniedException":
738
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
734
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
739
735
  case "InternalServerException":
740
736
  case "com.amazonaws.rum#InternalServerException":
741
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
737
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
742
738
  case "ResourceNotFoundException":
743
739
  case "com.amazonaws.rum#ResourceNotFoundException":
744
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
740
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
745
741
  case "ThrottlingException":
746
742
  case "com.amazonaws.rum#ThrottlingException":
747
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
743
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
748
744
  case "ValidationException":
749
745
  case "com.amazonaws.rum#ValidationException":
750
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
746
+ throw await de_ValidationExceptionRes(parsedOutput, context);
751
747
  default:
752
748
  const parsedBody = parsedOutput.body;
753
749
  (0, smithy_client_1.throwDefaultError)({
@@ -758,24 +754,24 @@ const deserializeAws_restJson1GetAppMonitorCommandError = async (output, context
758
754
  });
759
755
  }
760
756
  };
761
- const deserializeAws_restJson1GetAppMonitorDataCommand = async (output, context) => {
757
+ const de_GetAppMonitorDataCommand = async (output, context) => {
762
758
  if (output.statusCode !== 200 && output.statusCode >= 300) {
763
- return deserializeAws_restJson1GetAppMonitorDataCommandError(output, context);
759
+ return de_GetAppMonitorDataCommandError(output, context);
764
760
  }
765
761
  const contents = map({
766
762
  $metadata: deserializeMetadata(output),
767
763
  });
768
764
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
769
765
  if (data.Events != null) {
770
- contents.Events = deserializeAws_restJson1EventDataList(data.Events, context);
766
+ contents.Events = de_EventDataList(data.Events, context);
771
767
  }
772
768
  if (data.NextToken != null) {
773
769
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
774
770
  }
775
771
  return contents;
776
772
  };
777
- exports.deserializeAws_restJson1GetAppMonitorDataCommand = deserializeAws_restJson1GetAppMonitorDataCommand;
778
- const deserializeAws_restJson1GetAppMonitorDataCommandError = async (output, context) => {
773
+ exports.de_GetAppMonitorDataCommand = de_GetAppMonitorDataCommand;
774
+ const de_GetAppMonitorDataCommandError = async (output, context) => {
779
775
  const parsedOutput = {
780
776
  ...output,
781
777
  body: await parseErrorBody(output.body, context),
@@ -784,19 +780,19 @@ const deserializeAws_restJson1GetAppMonitorDataCommandError = async (output, con
784
780
  switch (errorCode) {
785
781
  case "AccessDeniedException":
786
782
  case "com.amazonaws.rum#AccessDeniedException":
787
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
783
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
788
784
  case "InternalServerException":
789
785
  case "com.amazonaws.rum#InternalServerException":
790
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
786
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
791
787
  case "ResourceNotFoundException":
792
788
  case "com.amazonaws.rum#ResourceNotFoundException":
793
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
789
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
794
790
  case "ThrottlingException":
795
791
  case "com.amazonaws.rum#ThrottlingException":
796
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
792
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
797
793
  case "ValidationException":
798
794
  case "com.amazonaws.rum#ValidationException":
799
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
795
+ throw await de_ValidationExceptionRes(parsedOutput, context);
800
796
  default:
801
797
  const parsedBody = parsedOutput.body;
802
798
  (0, smithy_client_1.throwDefaultError)({
@@ -807,24 +803,24 @@ const deserializeAws_restJson1GetAppMonitorDataCommandError = async (output, con
807
803
  });
808
804
  }
809
805
  };
810
- const deserializeAws_restJson1ListAppMonitorsCommand = async (output, context) => {
806
+ const de_ListAppMonitorsCommand = async (output, context) => {
811
807
  if (output.statusCode !== 200 && output.statusCode >= 300) {
812
- return deserializeAws_restJson1ListAppMonitorsCommandError(output, context);
808
+ return de_ListAppMonitorsCommandError(output, context);
813
809
  }
814
810
  const contents = map({
815
811
  $metadata: deserializeMetadata(output),
816
812
  });
817
813
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
818
814
  if (data.AppMonitorSummaries != null) {
819
- contents.AppMonitorSummaries = deserializeAws_restJson1AppMonitorSummaryList(data.AppMonitorSummaries, context);
815
+ contents.AppMonitorSummaries = de_AppMonitorSummaryList(data.AppMonitorSummaries, context);
820
816
  }
821
817
  if (data.NextToken != null) {
822
818
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
823
819
  }
824
820
  return contents;
825
821
  };
826
- exports.deserializeAws_restJson1ListAppMonitorsCommand = deserializeAws_restJson1ListAppMonitorsCommand;
827
- const deserializeAws_restJson1ListAppMonitorsCommandError = async (output, context) => {
822
+ exports.de_ListAppMonitorsCommand = de_ListAppMonitorsCommand;
823
+ const de_ListAppMonitorsCommandError = async (output, context) => {
828
824
  const parsedOutput = {
829
825
  ...output,
830
826
  body: await parseErrorBody(output.body, context),
@@ -833,16 +829,16 @@ const deserializeAws_restJson1ListAppMonitorsCommandError = async (output, conte
833
829
  switch (errorCode) {
834
830
  case "AccessDeniedException":
835
831
  case "com.amazonaws.rum#AccessDeniedException":
836
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
832
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
837
833
  case "InternalServerException":
838
834
  case "com.amazonaws.rum#InternalServerException":
839
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
835
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
840
836
  case "ThrottlingException":
841
837
  case "com.amazonaws.rum#ThrottlingException":
842
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
838
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
843
839
  case "ValidationException":
844
840
  case "com.amazonaws.rum#ValidationException":
845
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
841
+ throw await de_ValidationExceptionRes(parsedOutput, context);
846
842
  default:
847
843
  const parsedBody = parsedOutput.body;
848
844
  (0, smithy_client_1.throwDefaultError)({
@@ -853,24 +849,24 @@ const deserializeAws_restJson1ListAppMonitorsCommandError = async (output, conte
853
849
  });
854
850
  }
855
851
  };
856
- const deserializeAws_restJson1ListRumMetricsDestinationsCommand = async (output, context) => {
852
+ const de_ListRumMetricsDestinationsCommand = async (output, context) => {
857
853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
858
- return deserializeAws_restJson1ListRumMetricsDestinationsCommandError(output, context);
854
+ return de_ListRumMetricsDestinationsCommandError(output, context);
859
855
  }
860
856
  const contents = map({
861
857
  $metadata: deserializeMetadata(output),
862
858
  });
863
859
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
864
860
  if (data.Destinations != null) {
865
- contents.Destinations = deserializeAws_restJson1MetricDestinationSummaryList(data.Destinations, context);
861
+ contents.Destinations = de_MetricDestinationSummaryList(data.Destinations, context);
866
862
  }
867
863
  if (data.NextToken != null) {
868
864
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
869
865
  }
870
866
  return contents;
871
867
  };
872
- exports.deserializeAws_restJson1ListRumMetricsDestinationsCommand = deserializeAws_restJson1ListRumMetricsDestinationsCommand;
873
- const deserializeAws_restJson1ListRumMetricsDestinationsCommandError = async (output, context) => {
868
+ exports.de_ListRumMetricsDestinationsCommand = de_ListRumMetricsDestinationsCommand;
869
+ const de_ListRumMetricsDestinationsCommandError = async (output, context) => {
874
870
  const parsedOutput = {
875
871
  ...output,
876
872
  body: await parseErrorBody(output.body, context),
@@ -879,16 +875,16 @@ const deserializeAws_restJson1ListRumMetricsDestinationsCommandError = async (ou
879
875
  switch (errorCode) {
880
876
  case "AccessDeniedException":
881
877
  case "com.amazonaws.rum#AccessDeniedException":
882
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
878
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
883
879
  case "InternalServerException":
884
880
  case "com.amazonaws.rum#InternalServerException":
885
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
881
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
886
882
  case "ResourceNotFoundException":
887
883
  case "com.amazonaws.rum#ResourceNotFoundException":
888
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
884
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
889
885
  case "ValidationException":
890
886
  case "com.amazonaws.rum#ValidationException":
891
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
887
+ throw await de_ValidationExceptionRes(parsedOutput, context);
892
888
  default:
893
889
  const parsedBody = parsedOutput.body;
894
890
  (0, smithy_client_1.throwDefaultError)({
@@ -899,9 +895,9 @@ const deserializeAws_restJson1ListRumMetricsDestinationsCommandError = async (ou
899
895
  });
900
896
  }
901
897
  };
902
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
898
+ const de_ListTagsForResourceCommand = async (output, context) => {
903
899
  if (output.statusCode !== 200 && output.statusCode >= 300) {
904
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
900
+ return de_ListTagsForResourceCommandError(output, context);
905
901
  }
906
902
  const contents = map({
907
903
  $metadata: deserializeMetadata(output),
@@ -911,12 +907,12 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
911
907
  contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
912
908
  }
913
909
  if (data.Tags != null) {
914
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
910
+ contents.Tags = de_TagMap(data.Tags, context);
915
911
  }
916
912
  return contents;
917
913
  };
918
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
919
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
914
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
915
+ const de_ListTagsForResourceCommandError = async (output, context) => {
920
916
  const parsedOutput = {
921
917
  ...output,
922
918
  body: await parseErrorBody(output.body, context),
@@ -925,13 +921,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
925
921
  switch (errorCode) {
926
922
  case "InternalServerException":
927
923
  case "com.amazonaws.rum#InternalServerException":
928
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
924
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
929
925
  case "ResourceNotFoundException":
930
926
  case "com.amazonaws.rum#ResourceNotFoundException":
931
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
927
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
932
928
  case "ValidationException":
933
929
  case "com.amazonaws.rum#ValidationException":
934
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
930
+ throw await de_ValidationExceptionRes(parsedOutput, context);
935
931
  default:
936
932
  const parsedBody = parsedOutput.body;
937
933
  (0, smithy_client_1.throwDefaultError)({
@@ -942,9 +938,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
942
938
  });
943
939
  }
944
940
  };
945
- const deserializeAws_restJson1PutRumEventsCommand = async (output, context) => {
941
+ const de_PutRumEventsCommand = async (output, context) => {
946
942
  if (output.statusCode !== 200 && output.statusCode >= 300) {
947
- return deserializeAws_restJson1PutRumEventsCommandError(output, context);
943
+ return de_PutRumEventsCommandError(output, context);
948
944
  }
949
945
  const contents = map({
950
946
  $metadata: deserializeMetadata(output),
@@ -952,8 +948,8 @@ const deserializeAws_restJson1PutRumEventsCommand = async (output, context) => {
952
948
  await collectBody(output.body, context);
953
949
  return contents;
954
950
  };
955
- exports.deserializeAws_restJson1PutRumEventsCommand = deserializeAws_restJson1PutRumEventsCommand;
956
- const deserializeAws_restJson1PutRumEventsCommandError = async (output, context) => {
951
+ exports.de_PutRumEventsCommand = de_PutRumEventsCommand;
952
+ const de_PutRumEventsCommandError = async (output, context) => {
957
953
  const parsedOutput = {
958
954
  ...output,
959
955
  body: await parseErrorBody(output.body, context),
@@ -962,19 +958,19 @@ const deserializeAws_restJson1PutRumEventsCommandError = async (output, context)
962
958
  switch (errorCode) {
963
959
  case "AccessDeniedException":
964
960
  case "com.amazonaws.rum#AccessDeniedException":
965
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
961
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
966
962
  case "InternalServerException":
967
963
  case "com.amazonaws.rum#InternalServerException":
968
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
964
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
969
965
  case "ResourceNotFoundException":
970
966
  case "com.amazonaws.rum#ResourceNotFoundException":
971
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
967
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
972
968
  case "ThrottlingException":
973
969
  case "com.amazonaws.rum#ThrottlingException":
974
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
970
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
975
971
  case "ValidationException":
976
972
  case "com.amazonaws.rum#ValidationException":
977
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
973
+ throw await de_ValidationExceptionRes(parsedOutput, context);
978
974
  default:
979
975
  const parsedBody = parsedOutput.body;
980
976
  (0, smithy_client_1.throwDefaultError)({
@@ -985,9 +981,9 @@ const deserializeAws_restJson1PutRumEventsCommandError = async (output, context)
985
981
  });
986
982
  }
987
983
  };
988
- const deserializeAws_restJson1PutRumMetricsDestinationCommand = async (output, context) => {
984
+ const de_PutRumMetricsDestinationCommand = async (output, context) => {
989
985
  if (output.statusCode !== 200 && output.statusCode >= 300) {
990
- return deserializeAws_restJson1PutRumMetricsDestinationCommandError(output, context);
986
+ return de_PutRumMetricsDestinationCommandError(output, context);
991
987
  }
992
988
  const contents = map({
993
989
  $metadata: deserializeMetadata(output),
@@ -995,8 +991,8 @@ const deserializeAws_restJson1PutRumMetricsDestinationCommand = async (output, c
995
991
  await collectBody(output.body, context);
996
992
  return contents;
997
993
  };
998
- exports.deserializeAws_restJson1PutRumMetricsDestinationCommand = deserializeAws_restJson1PutRumMetricsDestinationCommand;
999
- const deserializeAws_restJson1PutRumMetricsDestinationCommandError = async (output, context) => {
994
+ exports.de_PutRumMetricsDestinationCommand = de_PutRumMetricsDestinationCommand;
995
+ const de_PutRumMetricsDestinationCommandError = async (output, context) => {
1000
996
  const parsedOutput = {
1001
997
  ...output,
1002
998
  body: await parseErrorBody(output.body, context),
@@ -1005,22 +1001,22 @@ const deserializeAws_restJson1PutRumMetricsDestinationCommandError = async (outp
1005
1001
  switch (errorCode) {
1006
1002
  case "AccessDeniedException":
1007
1003
  case "com.amazonaws.rum#AccessDeniedException":
1008
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1004
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1009
1005
  case "ConflictException":
1010
1006
  case "com.amazonaws.rum#ConflictException":
1011
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1007
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1012
1008
  case "InternalServerException":
1013
1009
  case "com.amazonaws.rum#InternalServerException":
1014
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1010
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1015
1011
  case "ResourceNotFoundException":
1016
1012
  case "com.amazonaws.rum#ResourceNotFoundException":
1017
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1013
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1018
1014
  case "ThrottlingException":
1019
1015
  case "com.amazonaws.rum#ThrottlingException":
1020
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1016
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1021
1017
  case "ValidationException":
1022
1018
  case "com.amazonaws.rum#ValidationException":
1023
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1019
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1024
1020
  default:
1025
1021
  const parsedBody = parsedOutput.body;
1026
1022
  (0, smithy_client_1.throwDefaultError)({
@@ -1031,9 +1027,9 @@ const deserializeAws_restJson1PutRumMetricsDestinationCommandError = async (outp
1031
1027
  });
1032
1028
  }
1033
1029
  };
1034
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1030
+ const de_TagResourceCommand = async (output, context) => {
1035
1031
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1032
+ return de_TagResourceCommandError(output, context);
1037
1033
  }
1038
1034
  const contents = map({
1039
1035
  $metadata: deserializeMetadata(output),
@@ -1041,8 +1037,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1041
1037
  await collectBody(output.body, context);
1042
1038
  return contents;
1043
1039
  };
1044
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
1045
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1040
+ exports.de_TagResourceCommand = de_TagResourceCommand;
1041
+ const de_TagResourceCommandError = async (output, context) => {
1046
1042
  const parsedOutput = {
1047
1043
  ...output,
1048
1044
  body: await parseErrorBody(output.body, context),
@@ -1051,13 +1047,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1051
1047
  switch (errorCode) {
1052
1048
  case "InternalServerException":
1053
1049
  case "com.amazonaws.rum#InternalServerException":
1054
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1050
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1055
1051
  case "ResourceNotFoundException":
1056
1052
  case "com.amazonaws.rum#ResourceNotFoundException":
1057
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1053
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1058
1054
  case "ValidationException":
1059
1055
  case "com.amazonaws.rum#ValidationException":
1060
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1056
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1061
1057
  default:
1062
1058
  const parsedBody = parsedOutput.body;
1063
1059
  (0, smithy_client_1.throwDefaultError)({
@@ -1068,9 +1064,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1068
1064
  });
1069
1065
  }
1070
1066
  };
1071
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1067
+ const de_UntagResourceCommand = async (output, context) => {
1072
1068
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1073
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1069
+ return de_UntagResourceCommandError(output, context);
1074
1070
  }
1075
1071
  const contents = map({
1076
1072
  $metadata: deserializeMetadata(output),
@@ -1078,8 +1074,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
1078
1074
  await collectBody(output.body, context);
1079
1075
  return contents;
1080
1076
  };
1081
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
1082
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1077
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
1078
+ const de_UntagResourceCommandError = async (output, context) => {
1083
1079
  const parsedOutput = {
1084
1080
  ...output,
1085
1081
  body: await parseErrorBody(output.body, context),
@@ -1088,13 +1084,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1088
1084
  switch (errorCode) {
1089
1085
  case "InternalServerException":
1090
1086
  case "com.amazonaws.rum#InternalServerException":
1091
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1087
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1092
1088
  case "ResourceNotFoundException":
1093
1089
  case "com.amazonaws.rum#ResourceNotFoundException":
1094
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1090
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1095
1091
  case "ValidationException":
1096
1092
  case "com.amazonaws.rum#ValidationException":
1097
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1093
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1098
1094
  default:
1099
1095
  const parsedBody = parsedOutput.body;
1100
1096
  (0, smithy_client_1.throwDefaultError)({
@@ -1105,9 +1101,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1105
1101
  });
1106
1102
  }
1107
1103
  };
1108
- const deserializeAws_restJson1UpdateAppMonitorCommand = async (output, context) => {
1104
+ const de_UpdateAppMonitorCommand = async (output, context) => {
1109
1105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1110
- return deserializeAws_restJson1UpdateAppMonitorCommandError(output, context);
1106
+ return de_UpdateAppMonitorCommandError(output, context);
1111
1107
  }
1112
1108
  const contents = map({
1113
1109
  $metadata: deserializeMetadata(output),
@@ -1115,8 +1111,8 @@ const deserializeAws_restJson1UpdateAppMonitorCommand = async (output, context)
1115
1111
  await collectBody(output.body, context);
1116
1112
  return contents;
1117
1113
  };
1118
- exports.deserializeAws_restJson1UpdateAppMonitorCommand = deserializeAws_restJson1UpdateAppMonitorCommand;
1119
- const deserializeAws_restJson1UpdateAppMonitorCommandError = async (output, context) => {
1114
+ exports.de_UpdateAppMonitorCommand = de_UpdateAppMonitorCommand;
1115
+ const de_UpdateAppMonitorCommandError = async (output, context) => {
1120
1116
  const parsedOutput = {
1121
1117
  ...output,
1122
1118
  body: await parseErrorBody(output.body, context),
@@ -1125,22 +1121,22 @@ const deserializeAws_restJson1UpdateAppMonitorCommandError = async (output, cont
1125
1121
  switch (errorCode) {
1126
1122
  case "AccessDeniedException":
1127
1123
  case "com.amazonaws.rum#AccessDeniedException":
1128
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1124
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1129
1125
  case "ConflictException":
1130
1126
  case "com.amazonaws.rum#ConflictException":
1131
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1127
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1132
1128
  case "InternalServerException":
1133
1129
  case "com.amazonaws.rum#InternalServerException":
1134
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1130
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1135
1131
  case "ResourceNotFoundException":
1136
1132
  case "com.amazonaws.rum#ResourceNotFoundException":
1137
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1133
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1138
1134
  case "ThrottlingException":
1139
1135
  case "com.amazonaws.rum#ThrottlingException":
1140
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1136
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1141
1137
  case "ValidationException":
1142
1138
  case "com.amazonaws.rum#ValidationException":
1143
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1139
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1144
1140
  default:
1145
1141
  const parsedBody = parsedOutput.body;
1146
1142
  (0, smithy_client_1.throwDefaultError)({
@@ -1151,9 +1147,9 @@ const deserializeAws_restJson1UpdateAppMonitorCommandError = async (output, cont
1151
1147
  });
1152
1148
  }
1153
1149
  };
1154
- const deserializeAws_restJson1UpdateRumMetricDefinitionCommand = async (output, context) => {
1150
+ const de_UpdateRumMetricDefinitionCommand = async (output, context) => {
1155
1151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1156
- return deserializeAws_restJson1UpdateRumMetricDefinitionCommandError(output, context);
1152
+ return de_UpdateRumMetricDefinitionCommandError(output, context);
1157
1153
  }
1158
1154
  const contents = map({
1159
1155
  $metadata: deserializeMetadata(output),
@@ -1161,8 +1157,8 @@ const deserializeAws_restJson1UpdateRumMetricDefinitionCommand = async (output,
1161
1157
  await collectBody(output.body, context);
1162
1158
  return contents;
1163
1159
  };
1164
- exports.deserializeAws_restJson1UpdateRumMetricDefinitionCommand = deserializeAws_restJson1UpdateRumMetricDefinitionCommand;
1165
- const deserializeAws_restJson1UpdateRumMetricDefinitionCommandError = async (output, context) => {
1160
+ exports.de_UpdateRumMetricDefinitionCommand = de_UpdateRumMetricDefinitionCommand;
1161
+ const de_UpdateRumMetricDefinitionCommandError = async (output, context) => {
1166
1162
  const parsedOutput = {
1167
1163
  ...output,
1168
1164
  body: await parseErrorBody(output.body, context),
@@ -1171,25 +1167,25 @@ const deserializeAws_restJson1UpdateRumMetricDefinitionCommandError = async (out
1171
1167
  switch (errorCode) {
1172
1168
  case "AccessDeniedException":
1173
1169
  case "com.amazonaws.rum#AccessDeniedException":
1174
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1170
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1175
1171
  case "ConflictException":
1176
1172
  case "com.amazonaws.rum#ConflictException":
1177
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1173
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1178
1174
  case "InternalServerException":
1179
1175
  case "com.amazonaws.rum#InternalServerException":
1180
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1176
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1181
1177
  case "ResourceNotFoundException":
1182
1178
  case "com.amazonaws.rum#ResourceNotFoundException":
1183
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1179
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1184
1180
  case "ServiceQuotaExceededException":
1185
1181
  case "com.amazonaws.rum#ServiceQuotaExceededException":
1186
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1182
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1187
1183
  case "ThrottlingException":
1188
1184
  case "com.amazonaws.rum#ThrottlingException":
1189
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1185
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1190
1186
  case "ValidationException":
1191
1187
  case "com.amazonaws.rum#ValidationException":
1192
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1188
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1193
1189
  default:
1194
1190
  const parsedBody = parsedOutput.body;
1195
1191
  (0, smithy_client_1.throwDefaultError)({
@@ -1201,7 +1197,7 @@ const deserializeAws_restJson1UpdateRumMetricDefinitionCommandError = async (out
1201
1197
  }
1202
1198
  };
1203
1199
  const map = smithy_client_1.map;
1204
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1200
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1205
1201
  const contents = map({});
1206
1202
  const data = parsedOutput.body;
1207
1203
  if (data.message != null) {
@@ -1213,7 +1209,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1213
1209
  });
1214
1210
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1215
1211
  };
1216
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1212
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1217
1213
  const contents = map({});
1218
1214
  const data = parsedOutput.body;
1219
1215
  if (data.message != null) {
@@ -1231,7 +1227,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1231
1227
  });
1232
1228
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1233
1229
  };
1234
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1230
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1235
1231
  const contents = map({
1236
1232
  retryAfterSeconds: [
1237
1233
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -1248,7 +1244,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1248
1244
  });
1249
1245
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1250
1246
  };
1251
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1247
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1252
1248
  const contents = map({});
1253
1249
  const data = parsedOutput.body;
1254
1250
  if (data.message != null) {
@@ -1266,7 +1262,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1266
1262
  });
1267
1263
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1268
1264
  };
1269
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1265
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1270
1266
  const contents = map({});
1271
1267
  const data = parsedOutput.body;
1272
1268
  if (data.message != null) {
@@ -1278,7 +1274,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1278
1274
  });
1279
1275
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1280
1276
  };
1281
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1277
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1282
1278
  const contents = map({
1283
1279
  retryAfterSeconds: [
1284
1280
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -1301,7 +1297,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1301
1297
  });
1302
1298
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1303
1299
  };
1304
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1300
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1305
1301
  const contents = map({});
1306
1302
  const data = parsedOutput.body;
1307
1303
  if (data.message != null) {
@@ -1313,34 +1309,32 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1313
1309
  });
1314
1310
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1315
1311
  };
1316
- const serializeAws_restJson1AppMonitorConfiguration = (input, context) => {
1312
+ const se_AppMonitorConfiguration = (input, context) => {
1317
1313
  return {
1318
1314
  ...(input.AllowCookies != null && { AllowCookies: input.AllowCookies }),
1319
1315
  ...(input.EnableXRay != null && { EnableXRay: input.EnableXRay }),
1320
- ...(input.ExcludedPages != null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) }),
1321
- ...(input.FavoritePages != null && {
1322
- FavoritePages: serializeAws_restJson1FavoritePages(input.FavoritePages, context),
1323
- }),
1316
+ ...(input.ExcludedPages != null && { ExcludedPages: se_Pages(input.ExcludedPages, context) }),
1317
+ ...(input.FavoritePages != null && { FavoritePages: se_FavoritePages(input.FavoritePages, context) }),
1324
1318
  ...(input.GuestRoleArn != null && { GuestRoleArn: input.GuestRoleArn }),
1325
1319
  ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
1326
- ...(input.IncludedPages != null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) }),
1320
+ ...(input.IncludedPages != null && { IncludedPages: se_Pages(input.IncludedPages, context) }),
1327
1321
  ...(input.SessionSampleRate != null && { SessionSampleRate: (0, smithy_client_1.serializeFloat)(input.SessionSampleRate) }),
1328
- ...(input.Telemetries != null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }),
1322
+ ...(input.Telemetries != null && { Telemetries: se_Telemetries(input.Telemetries, context) }),
1329
1323
  };
1330
1324
  };
1331
- const serializeAws_restJson1AppMonitorDetails = (input, context) => {
1325
+ const se_AppMonitorDetails = (input, context) => {
1332
1326
  return {
1333
1327
  ...(input.id != null && { id: input.id }),
1334
1328
  ...(input.name != null && { name: input.name }),
1335
1329
  ...(input.version != null && { version: input.version }),
1336
1330
  };
1337
1331
  };
1338
- const serializeAws_restJson1CustomEvents = (input, context) => {
1332
+ const se_CustomEvents = (input, context) => {
1339
1333
  return {
1340
1334
  ...(input.Status != null && { Status: input.Status }),
1341
1335
  };
1342
1336
  };
1343
- const serializeAws_restJson1DimensionKeysMap = (input, context) => {
1337
+ const se_DimensionKeysMap = (input, context) => {
1344
1338
  return Object.entries(input).reduce((acc, [key, value]) => {
1345
1339
  if (value === null) {
1346
1340
  return acc;
@@ -1349,18 +1343,16 @@ const serializeAws_restJson1DimensionKeysMap = (input, context) => {
1349
1343
  return acc;
1350
1344
  }, {});
1351
1345
  };
1352
- const serializeAws_restJson1FavoritePages = (input, context) => {
1346
+ const se_FavoritePages = (input, context) => {
1353
1347
  return input
1354
1348
  .filter((e) => e != null)
1355
1349
  .map((entry) => {
1356
1350
  return entry;
1357
1351
  });
1358
1352
  };
1359
- const serializeAws_restJson1MetricDefinitionRequest = (input, context) => {
1353
+ const se_MetricDefinitionRequest = (input, context) => {
1360
1354
  return {
1361
- ...(input.DimensionKeys != null && {
1362
- DimensionKeys: serializeAws_restJson1DimensionKeysMap(input.DimensionKeys, context),
1363
- }),
1355
+ ...(input.DimensionKeys != null && { DimensionKeys: se_DimensionKeysMap(input.DimensionKeys, context) }),
1364
1356
  ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
1365
1357
  ...(input.Name != null && { Name: input.Name }),
1366
1358
  ...(input.Namespace != null && { Namespace: input.Namespace }),
@@ -1368,41 +1360,41 @@ const serializeAws_restJson1MetricDefinitionRequest = (input, context) => {
1368
1360
  ...(input.ValueKey != null && { ValueKey: input.ValueKey }),
1369
1361
  };
1370
1362
  };
1371
- const serializeAws_restJson1MetricDefinitionsRequest = (input, context) => {
1363
+ const se_MetricDefinitionsRequest = (input, context) => {
1372
1364
  return input
1373
1365
  .filter((e) => e != null)
1374
1366
  .map((entry) => {
1375
- return serializeAws_restJson1MetricDefinitionRequest(entry, context);
1367
+ return se_MetricDefinitionRequest(entry, context);
1376
1368
  });
1377
1369
  };
1378
- const serializeAws_restJson1Pages = (input, context) => {
1370
+ const se_Pages = (input, context) => {
1379
1371
  return input
1380
1372
  .filter((e) => e != null)
1381
1373
  .map((entry) => {
1382
1374
  return entry;
1383
1375
  });
1384
1376
  };
1385
- const serializeAws_restJson1QueryFilter = (input, context) => {
1377
+ const se_QueryFilter = (input, context) => {
1386
1378
  return {
1387
1379
  ...(input.Name != null && { Name: input.Name }),
1388
- ...(input.Values != null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }),
1380
+ ...(input.Values != null && { Values: se_QueryFilterValueList(input.Values, context) }),
1389
1381
  };
1390
1382
  };
1391
- const serializeAws_restJson1QueryFilters = (input, context) => {
1383
+ const se_QueryFilters = (input, context) => {
1392
1384
  return input
1393
1385
  .filter((e) => e != null)
1394
1386
  .map((entry) => {
1395
- return serializeAws_restJson1QueryFilter(entry, context);
1387
+ return se_QueryFilter(entry, context);
1396
1388
  });
1397
1389
  };
1398
- const serializeAws_restJson1QueryFilterValueList = (input, context) => {
1390
+ const se_QueryFilterValueList = (input, context) => {
1399
1391
  return input
1400
1392
  .filter((e) => e != null)
1401
1393
  .map((entry) => {
1402
1394
  return entry;
1403
1395
  });
1404
1396
  };
1405
- const serializeAws_restJson1RumEvent = (input, context) => {
1397
+ const se_RumEvent = (input, context) => {
1406
1398
  return {
1407
1399
  ...(input.details != null && { details: smithy_client_1.LazyJsonString.fromObject(input.details) }),
1408
1400
  ...(input.id != null && { id: input.id }),
@@ -1411,14 +1403,14 @@ const serializeAws_restJson1RumEvent = (input, context) => {
1411
1403
  ...(input.type != null && { type: input.type }),
1412
1404
  };
1413
1405
  };
1414
- const serializeAws_restJson1RumEventList = (input, context) => {
1406
+ const se_RumEventList = (input, context) => {
1415
1407
  return input
1416
1408
  .filter((e) => e != null)
1417
1409
  .map((entry) => {
1418
- return serializeAws_restJson1RumEvent(entry, context);
1410
+ return se_RumEvent(entry, context);
1419
1411
  });
1420
1412
  };
1421
- const serializeAws_restJson1TagMap = (input, context) => {
1413
+ const se_TagMap = (input, context) => {
1422
1414
  return Object.entries(input).reduce((acc, [key, value]) => {
1423
1415
  if (value === null) {
1424
1416
  return acc;
@@ -1427,55 +1419,55 @@ const serializeAws_restJson1TagMap = (input, context) => {
1427
1419
  return acc;
1428
1420
  }, {});
1429
1421
  };
1430
- const serializeAws_restJson1Telemetries = (input, context) => {
1422
+ const se_Telemetries = (input, context) => {
1431
1423
  return input
1432
1424
  .filter((e) => e != null)
1433
1425
  .map((entry) => {
1434
1426
  return entry;
1435
1427
  });
1436
1428
  };
1437
- const serializeAws_restJson1TimeRange = (input, context) => {
1429
+ const se_TimeRange = (input, context) => {
1438
1430
  return {
1439
1431
  ...(input.After != null && { After: input.After }),
1440
1432
  ...(input.Before != null && { Before: input.Before }),
1441
1433
  };
1442
1434
  };
1443
- const serializeAws_restJson1UserDetails = (input, context) => {
1435
+ const se_UserDetails = (input, context) => {
1444
1436
  return {
1445
1437
  ...(input.sessionId != null && { sessionId: input.sessionId }),
1446
1438
  ...(input.userId != null && { userId: input.userId }),
1447
1439
  };
1448
1440
  };
1449
- const deserializeAws_restJson1AppMonitor = (output, context) => {
1441
+ const de_AppMonitor = (output, context) => {
1450
1442
  return {
1451
1443
  AppMonitorConfiguration: output.AppMonitorConfiguration != null
1452
- ? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
1444
+ ? de_AppMonitorConfiguration(output.AppMonitorConfiguration, context)
1453
1445
  : undefined,
1454
1446
  Created: (0, smithy_client_1.expectString)(output.Created),
1455
- CustomEvents: output.CustomEvents != null ? deserializeAws_restJson1CustomEvents(output.CustomEvents, context) : undefined,
1456
- DataStorage: output.DataStorage != null ? deserializeAws_restJson1DataStorage(output.DataStorage, context) : undefined,
1447
+ CustomEvents: output.CustomEvents != null ? de_CustomEvents(output.CustomEvents, context) : undefined,
1448
+ DataStorage: output.DataStorage != null ? de_DataStorage(output.DataStorage, context) : undefined,
1457
1449
  Domain: (0, smithy_client_1.expectString)(output.Domain),
1458
1450
  Id: (0, smithy_client_1.expectString)(output.Id),
1459
1451
  LastModified: (0, smithy_client_1.expectString)(output.LastModified),
1460
1452
  Name: (0, smithy_client_1.expectString)(output.Name),
1461
1453
  State: (0, smithy_client_1.expectString)(output.State),
1462
- Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
1454
+ Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1463
1455
  };
1464
1456
  };
1465
- const deserializeAws_restJson1AppMonitorConfiguration = (output, context) => {
1457
+ const de_AppMonitorConfiguration = (output, context) => {
1466
1458
  return {
1467
1459
  AllowCookies: (0, smithy_client_1.expectBoolean)(output.AllowCookies),
1468
1460
  EnableXRay: (0, smithy_client_1.expectBoolean)(output.EnableXRay),
1469
- ExcludedPages: output.ExcludedPages != null ? deserializeAws_restJson1Pages(output.ExcludedPages, context) : undefined,
1470
- FavoritePages: output.FavoritePages != null ? deserializeAws_restJson1FavoritePages(output.FavoritePages, context) : undefined,
1461
+ ExcludedPages: output.ExcludedPages != null ? de_Pages(output.ExcludedPages, context) : undefined,
1462
+ FavoritePages: output.FavoritePages != null ? de_FavoritePages(output.FavoritePages, context) : undefined,
1471
1463
  GuestRoleArn: (0, smithy_client_1.expectString)(output.GuestRoleArn),
1472
1464
  IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1473
- IncludedPages: output.IncludedPages != null ? deserializeAws_restJson1Pages(output.IncludedPages, context) : undefined,
1465
+ IncludedPages: output.IncludedPages != null ? de_Pages(output.IncludedPages, context) : undefined,
1474
1466
  SessionSampleRate: (0, smithy_client_1.limitedParseDouble)(output.SessionSampleRate),
1475
- Telemetries: output.Telemetries != null ? deserializeAws_restJson1Telemetries(output.Telemetries, context) : undefined,
1467
+ Telemetries: output.Telemetries != null ? de_Telemetries(output.Telemetries, context) : undefined,
1476
1468
  };
1477
1469
  };
1478
- const deserializeAws_restJson1AppMonitorSummary = (output, context) => {
1470
+ const de_AppMonitorSummary = (output, context) => {
1479
1471
  return {
1480
1472
  Created: (0, smithy_client_1.expectString)(output.Created),
1481
1473
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -1484,72 +1476,70 @@ const deserializeAws_restJson1AppMonitorSummary = (output, context) => {
1484
1476
  State: (0, smithy_client_1.expectString)(output.State),
1485
1477
  };
1486
1478
  };
1487
- const deserializeAws_restJson1AppMonitorSummaryList = (output, context) => {
1479
+ const de_AppMonitorSummaryList = (output, context) => {
1488
1480
  const retVal = (output || [])
1489
1481
  .filter((e) => e != null)
1490
1482
  .map((entry) => {
1491
1483
  if (entry === null) {
1492
1484
  return null;
1493
1485
  }
1494
- return deserializeAws_restJson1AppMonitorSummary(entry, context);
1486
+ return de_AppMonitorSummary(entry, context);
1495
1487
  });
1496
1488
  return retVal;
1497
1489
  };
1498
- const deserializeAws_restJson1BatchCreateRumMetricDefinitionsError = (output, context) => {
1490
+ const de_BatchCreateRumMetricDefinitionsError = (output, context) => {
1499
1491
  return {
1500
1492
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
1501
1493
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
1502
- MetricDefinition: output.MetricDefinition != null
1503
- ? deserializeAws_restJson1MetricDefinitionRequest(output.MetricDefinition, context)
1504
- : undefined,
1494
+ MetricDefinition: output.MetricDefinition != null ? de_MetricDefinitionRequest(output.MetricDefinition, context) : undefined,
1505
1495
  };
1506
1496
  };
1507
- const deserializeAws_restJson1BatchCreateRumMetricDefinitionsErrors = (output, context) => {
1497
+ const de_BatchCreateRumMetricDefinitionsErrors = (output, context) => {
1508
1498
  const retVal = (output || [])
1509
1499
  .filter((e) => e != null)
1510
1500
  .map((entry) => {
1511
1501
  if (entry === null) {
1512
1502
  return null;
1513
1503
  }
1514
- return deserializeAws_restJson1BatchCreateRumMetricDefinitionsError(entry, context);
1504
+ return de_BatchCreateRumMetricDefinitionsError(entry, context);
1515
1505
  });
1516
1506
  return retVal;
1517
1507
  };
1518
- const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsError = (output, context) => {
1508
+ const de_BatchDeleteRumMetricDefinitionsError = (output, context) => {
1519
1509
  return {
1520
1510
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
1521
1511
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
1522
1512
  MetricDefinitionId: (0, smithy_client_1.expectString)(output.MetricDefinitionId),
1523
1513
  };
1524
1514
  };
1525
- const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsErrors = (output, context) => {
1515
+ const de_BatchDeleteRumMetricDefinitionsErrors = (output, context) => {
1526
1516
  const retVal = (output || [])
1527
1517
  .filter((e) => e != null)
1528
1518
  .map((entry) => {
1529
1519
  if (entry === null) {
1530
1520
  return null;
1531
1521
  }
1532
- return deserializeAws_restJson1BatchDeleteRumMetricDefinitionsError(entry, context);
1522
+ return de_BatchDeleteRumMetricDefinitionsError(entry, context);
1533
1523
  });
1534
1524
  return retVal;
1535
1525
  };
1536
- const deserializeAws_restJson1CustomEvents = (output, context) => {
1526
+ const de_CustomEvents = (output, context) => {
1537
1527
  return {
1538
1528
  Status: (0, smithy_client_1.expectString)(output.Status),
1539
1529
  };
1540
1530
  };
1541
- const deserializeAws_restJson1CwLog = (output, context) => {
1531
+ const de_CwLog = (output, context) => {
1542
1532
  return {
1543
1533
  CwLogEnabled: (0, smithy_client_1.expectBoolean)(output.CwLogEnabled),
1544
1534
  CwLogGroup: (0, smithy_client_1.expectString)(output.CwLogGroup),
1545
1535
  };
1546
1536
  };
1547
- const deserializeAws_restJson1DataStorage = (output, context) => {
1537
+ const de_DataStorage = (output, context) => {
1548
1538
  return {
1549
- CwLog: output.CwLog != null ? deserializeAws_restJson1CwLog(output.CwLog, context) : undefined,
1539
+ CwLog: output.CwLog != null ? de_CwLog(output.CwLog, context) : undefined,
1550
1540
  };
1551
1541
  };
1552
- const deserializeAws_restJson1DimensionKeysMap = (output, context) => {
1542
+ const de_DimensionKeysMap = (output, context) => {
1553
1543
  return Object.entries(output).reduce((acc, [key, value]) => {
1554
1544
  if (value === null) {
1555
1545
  return acc;
@@ -1558,7 +1548,7 @@ const deserializeAws_restJson1DimensionKeysMap = (output, context) => {
1558
1548
  return acc;
1559
1549
  }, {});
1560
1550
  };
1561
- const deserializeAws_restJson1EventDataList = (output, context) => {
1551
+ const de_EventDataList = (output, context) => {
1562
1552
  const retVal = (output || [])
1563
1553
  .filter((e) => e != null)
1564
1554
  .map((entry) => {
@@ -1569,7 +1559,7 @@ const deserializeAws_restJson1EventDataList = (output, context) => {
1569
1559
  });
1570
1560
  return retVal;
1571
1561
  };
1572
- const deserializeAws_restJson1FavoritePages = (output, context) => {
1562
+ const de_FavoritePages = (output, context) => {
1573
1563
  const retVal = (output || [])
1574
1564
  .filter((e) => e != null)
1575
1565
  .map((entry) => {
@@ -1580,11 +1570,9 @@ const deserializeAws_restJson1FavoritePages = (output, context) => {
1580
1570
  });
1581
1571
  return retVal;
1582
1572
  };
1583
- const deserializeAws_restJson1MetricDefinition = (output, context) => {
1573
+ const de_MetricDefinition = (output, context) => {
1584
1574
  return {
1585
- DimensionKeys: output.DimensionKeys != null
1586
- ? deserializeAws_restJson1DimensionKeysMap(output.DimensionKeys, context)
1587
- : undefined,
1575
+ DimensionKeys: output.DimensionKeys != null ? de_DimensionKeysMap(output.DimensionKeys, context) : undefined,
1588
1576
  EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
1589
1577
  MetricDefinitionId: (0, smithy_client_1.expectString)(output.MetricDefinitionId),
1590
1578
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -1593,7 +1581,7 @@ const deserializeAws_restJson1MetricDefinition = (output, context) => {
1593
1581
  ValueKey: (0, smithy_client_1.expectString)(output.ValueKey),
1594
1582
  };
1595
1583
  };
1596
- const deserializeAws_restJson1MetricDefinitionIds = (output, context) => {
1584
+ const de_MetricDefinitionIds = (output, context) => {
1597
1585
  const retVal = (output || [])
1598
1586
  .filter((e) => e != null)
1599
1587
  .map((entry) => {
@@ -1604,11 +1592,9 @@ const deserializeAws_restJson1MetricDefinitionIds = (output, context) => {
1604
1592
  });
1605
1593
  return retVal;
1606
1594
  };
1607
- const deserializeAws_restJson1MetricDefinitionRequest = (output, context) => {
1595
+ const de_MetricDefinitionRequest = (output, context) => {
1608
1596
  return {
1609
- DimensionKeys: output.DimensionKeys != null
1610
- ? deserializeAws_restJson1DimensionKeysMap(output.DimensionKeys, context)
1611
- : undefined,
1597
+ DimensionKeys: output.DimensionKeys != null ? de_DimensionKeysMap(output.DimensionKeys, context) : undefined,
1612
1598
  EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
1613
1599
  Name: (0, smithy_client_1.expectString)(output.Name),
1614
1600
  Namespace: (0, smithy_client_1.expectString)(output.Namespace),
@@ -1616,36 +1602,36 @@ const deserializeAws_restJson1MetricDefinitionRequest = (output, context) => {
1616
1602
  ValueKey: (0, smithy_client_1.expectString)(output.ValueKey),
1617
1603
  };
1618
1604
  };
1619
- const deserializeAws_restJson1MetricDefinitions = (output, context) => {
1605
+ const de_MetricDefinitions = (output, context) => {
1620
1606
  const retVal = (output || [])
1621
1607
  .filter((e) => e != null)
1622
1608
  .map((entry) => {
1623
1609
  if (entry === null) {
1624
1610
  return null;
1625
1611
  }
1626
- return deserializeAws_restJson1MetricDefinition(entry, context);
1612
+ return de_MetricDefinition(entry, context);
1627
1613
  });
1628
1614
  return retVal;
1629
1615
  };
1630
- const deserializeAws_restJson1MetricDestinationSummary = (output, context) => {
1616
+ const de_MetricDestinationSummary = (output, context) => {
1631
1617
  return {
1632
1618
  Destination: (0, smithy_client_1.expectString)(output.Destination),
1633
1619
  DestinationArn: (0, smithy_client_1.expectString)(output.DestinationArn),
1634
1620
  IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
1635
1621
  };
1636
1622
  };
1637
- const deserializeAws_restJson1MetricDestinationSummaryList = (output, context) => {
1623
+ const de_MetricDestinationSummaryList = (output, context) => {
1638
1624
  const retVal = (output || [])
1639
1625
  .filter((e) => e != null)
1640
1626
  .map((entry) => {
1641
1627
  if (entry === null) {
1642
1628
  return null;
1643
1629
  }
1644
- return deserializeAws_restJson1MetricDestinationSummary(entry, context);
1630
+ return de_MetricDestinationSummary(entry, context);
1645
1631
  });
1646
1632
  return retVal;
1647
1633
  };
1648
- const deserializeAws_restJson1Pages = (output, context) => {
1634
+ const de_Pages = (output, context) => {
1649
1635
  const retVal = (output || [])
1650
1636
  .filter((e) => e != null)
1651
1637
  .map((entry) => {
@@ -1656,7 +1642,7 @@ const deserializeAws_restJson1Pages = (output, context) => {
1656
1642
  });
1657
1643
  return retVal;
1658
1644
  };
1659
- const deserializeAws_restJson1TagMap = (output, context) => {
1645
+ const de_TagMap = (output, context) => {
1660
1646
  return Object.entries(output).reduce((acc, [key, value]) => {
1661
1647
  if (value === null) {
1662
1648
  return acc;
@@ -1665,7 +1651,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1665
1651
  return acc;
1666
1652
  }, {});
1667
1653
  };
1668
- const deserializeAws_restJson1Telemetries = (output, context) => {
1654
+ const de_Telemetries = (output, context) => {
1669
1655
  const retVal = (output || [])
1670
1656
  .filter((e) => e != null)
1671
1657
  .map((entry) => {