@aws-sdk/client-codeguruprofiler 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 (51) hide show
  1. package/dist-cjs/commands/AddNotificationChannelsCommand.js +2 -2
  2. package/dist-cjs/commands/BatchGetFrameMetricDataCommand.js +2 -2
  3. package/dist-cjs/commands/ConfigureAgentCommand.js +2 -2
  4. package/dist-cjs/commands/CreateProfilingGroupCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteProfilingGroupCommand.js +2 -2
  6. package/dist-cjs/commands/DescribeProfilingGroupCommand.js +2 -2
  7. package/dist-cjs/commands/GetFindingsReportAccountSummaryCommand.js +2 -2
  8. package/dist-cjs/commands/GetNotificationConfigurationCommand.js +2 -2
  9. package/dist-cjs/commands/GetPolicyCommand.js +2 -2
  10. package/dist-cjs/commands/GetProfileCommand.js +2 -2
  11. package/dist-cjs/commands/GetRecommendationsCommand.js +2 -2
  12. package/dist-cjs/commands/ListFindingsReportsCommand.js +2 -2
  13. package/dist-cjs/commands/ListProfileTimesCommand.js +2 -2
  14. package/dist-cjs/commands/ListProfilingGroupsCommand.js +2 -2
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  16. package/dist-cjs/commands/PostAgentProfileCommand.js +2 -2
  17. package/dist-cjs/commands/PutPermissionCommand.js +2 -2
  18. package/dist-cjs/commands/RemoveNotificationChannelCommand.js +2 -2
  19. package/dist-cjs/commands/RemovePermissionCommand.js +2 -2
  20. package/dist-cjs/commands/SubmitFeedbackCommand.js +2 -2
  21. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  22. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  23. package/dist-cjs/commands/UpdateProfilingGroupCommand.js +2 -2
  24. package/dist-cjs/protocols/Aws_restJson1.js +346 -360
  25. package/dist-es/commands/AddNotificationChannelsCommand.js +3 -3
  26. package/dist-es/commands/BatchGetFrameMetricDataCommand.js +3 -3
  27. package/dist-es/commands/ConfigureAgentCommand.js +3 -3
  28. package/dist-es/commands/CreateProfilingGroupCommand.js +3 -3
  29. package/dist-es/commands/DeleteProfilingGroupCommand.js +3 -3
  30. package/dist-es/commands/DescribeProfilingGroupCommand.js +3 -3
  31. package/dist-es/commands/GetFindingsReportAccountSummaryCommand.js +3 -3
  32. package/dist-es/commands/GetNotificationConfigurationCommand.js +3 -3
  33. package/dist-es/commands/GetPolicyCommand.js +3 -3
  34. package/dist-es/commands/GetProfileCommand.js +3 -3
  35. package/dist-es/commands/GetRecommendationsCommand.js +3 -3
  36. package/dist-es/commands/ListFindingsReportsCommand.js +3 -3
  37. package/dist-es/commands/ListProfileTimesCommand.js +3 -3
  38. package/dist-es/commands/ListProfilingGroupsCommand.js +3 -3
  39. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  40. package/dist-es/commands/PostAgentProfileCommand.js +3 -3
  41. package/dist-es/commands/PutPermissionCommand.js +3 -3
  42. package/dist-es/commands/RemoveNotificationChannelCommand.js +3 -3
  43. package/dist-es/commands/RemovePermissionCommand.js +3 -3
  44. package/dist-es/commands/SubmitFeedbackCommand.js +3 -3
  45. package/dist-es/commands/TagResourceCommand.js +3 -3
  46. package/dist-es/commands/UntagResourceCommand.js +3 -3
  47. package/dist-es/commands/UpdateProfilingGroupCommand.js +3 -3
  48. package/dist-es/protocols/Aws_restJson1.js +299 -313
  49. package/dist-types/protocols/Aws_restJson1.d.ts +184 -46
  50. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +46 -46
  51. package/package.json +6 -6
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { CodeGuruProfilerServiceException as __BaseException } from "../models/CodeGuruProfilerServiceException";
5
5
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const serializeAws_restJson1AddNotificationChannelsCommand = async (input, context) => {
6
+ export const se_AddNotificationChannelsCommand = async (input, context) => {
7
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
8
  const headers = {
9
9
  "content-type": "application/json",
@@ -13,7 +13,7 @@ export const serializeAws_restJson1AddNotificationChannelsCommand = async (input
13
13
  resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.channels != null && { channels: serializeAws_restJson1Channels(input.channels, context) }),
16
+ ...(input.channels != null && { channels: se_Channels(input.channels, context) }),
17
17
  });
18
18
  return new __HttpRequest({
19
19
  protocol,
@@ -25,7 +25,7 @@ export const serializeAws_restJson1AddNotificationChannelsCommand = async (input
25
25
  body,
26
26
  });
27
27
  };
28
- export const serializeAws_restJson1BatchGetFrameMetricDataCommand = async (input, context) => {
28
+ export const se_BatchGetFrameMetricDataCommand = async (input, context) => {
29
29
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
30
  const headers = {
31
31
  "content-type": "application/json",
@@ -44,9 +44,7 @@ export const serializeAws_restJson1BatchGetFrameMetricDataCommand = async (input
44
44
  });
45
45
  let body;
46
46
  body = JSON.stringify({
47
- ...(input.frameMetrics != null && {
48
- frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context),
49
- }),
47
+ ...(input.frameMetrics != null && { frameMetrics: se_FrameMetrics(input.frameMetrics, context) }),
50
48
  });
51
49
  return new __HttpRequest({
52
50
  protocol,
@@ -59,7 +57,7 @@ export const serializeAws_restJson1BatchGetFrameMetricDataCommand = async (input
59
57
  body,
60
58
  });
61
59
  };
62
- export const serializeAws_restJson1ConfigureAgentCommand = async (input, context) => {
60
+ export const se_ConfigureAgentCommand = async (input, context) => {
63
61
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
64
62
  const headers = {
65
63
  "content-type": "application/json",
@@ -70,7 +68,7 @@ export const serializeAws_restJson1ConfigureAgentCommand = async (input, context
70
68
  let body;
71
69
  body = JSON.stringify({
72
70
  ...(input.fleetInstanceId != null && { fleetInstanceId: input.fleetInstanceId }),
73
- ...(input.metadata != null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) }),
71
+ ...(input.metadata != null && { metadata: se_Metadata(input.metadata, context) }),
74
72
  });
75
73
  return new __HttpRequest({
76
74
  protocol,
@@ -82,7 +80,7 @@ export const serializeAws_restJson1ConfigureAgentCommand = async (input, context
82
80
  body,
83
81
  });
84
82
  };
85
- export const serializeAws_restJson1CreateProfilingGroupCommand = async (input, context) => {
83
+ export const se_CreateProfilingGroupCommand = async (input, context) => {
86
84
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
85
  const headers = {
88
86
  "content-type": "application/json",
@@ -94,11 +92,11 @@ export const serializeAws_restJson1CreateProfilingGroupCommand = async (input, c
94
92
  let body;
95
93
  body = JSON.stringify({
96
94
  ...(input.agentOrchestrationConfig != null && {
97
- agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
95
+ agentOrchestrationConfig: se_AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
98
96
  }),
99
97
  ...(input.computePlatform != null && { computePlatform: input.computePlatform }),
100
98
  ...(input.profilingGroupName != null && { profilingGroupName: input.profilingGroupName }),
101
- ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
99
+ ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
102
100
  });
103
101
  return new __HttpRequest({
104
102
  protocol,
@@ -111,7 +109,7 @@ export const serializeAws_restJson1CreateProfilingGroupCommand = async (input, c
111
109
  body,
112
110
  });
113
111
  };
114
- export const serializeAws_restJson1DeleteProfilingGroupCommand = async (input, context) => {
112
+ export const se_DeleteProfilingGroupCommand = 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 || ""}` + "/profilingGroups/{profilingGroupName}";
@@ -127,7 +125,7 @@ export const serializeAws_restJson1DeleteProfilingGroupCommand = async (input, c
127
125
  body,
128
126
  });
129
127
  };
130
- export const serializeAws_restJson1DescribeProfilingGroupCommand = async (input, context) => {
128
+ export const se_DescribeProfilingGroupCommand = async (input, context) => {
131
129
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
130
  const headers = {};
133
131
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups/{profilingGroupName}";
@@ -143,7 +141,7 @@ export const serializeAws_restJson1DescribeProfilingGroupCommand = async (input,
143
141
  body,
144
142
  });
145
143
  };
146
- export const serializeAws_restJson1GetFindingsReportAccountSummaryCommand = async (input, context) => {
144
+ export const se_GetFindingsReportAccountSummaryCommand = async (input, context) => {
147
145
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
146
  const headers = {};
149
147
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/internal/findingsReports";
@@ -164,7 +162,7 @@ export const serializeAws_restJson1GetFindingsReportAccountSummaryCommand = asyn
164
162
  body,
165
163
  });
166
164
  };
167
- export const serializeAws_restJson1GetNotificationConfigurationCommand = async (input, context) => {
165
+ export const se_GetNotificationConfigurationCommand = async (input, context) => {
168
166
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
169
167
  const headers = {};
170
168
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -181,7 +179,7 @@ export const serializeAws_restJson1GetNotificationConfigurationCommand = async (
181
179
  body,
182
180
  });
183
181
  };
184
- export const serializeAws_restJson1GetPolicyCommand = async (input, context) => {
182
+ export const se_GetPolicyCommand = async (input, context) => {
185
183
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
184
  const headers = {};
187
185
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -198,7 +196,7 @@ export const serializeAws_restJson1GetPolicyCommand = async (input, context) =>
198
196
  body,
199
197
  });
200
198
  };
201
- export const serializeAws_restJson1GetProfileCommand = async (input, context) => {
199
+ export const se_GetProfileCommand = async (input, context) => {
202
200
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
203
201
  const headers = map({}, isSerializableHeaderValue, {
204
202
  accept: input.accept,
@@ -227,7 +225,7 @@ export const serializeAws_restJson1GetProfileCommand = async (input, context) =>
227
225
  body,
228
226
  });
229
227
  };
230
- export const serializeAws_restJson1GetRecommendationsCommand = async (input, context) => {
228
+ export const se_GetRecommendationsCommand = async (input, context) => {
231
229
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
232
230
  const headers = {};
233
231
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -256,7 +254,7 @@ export const serializeAws_restJson1GetRecommendationsCommand = async (input, con
256
254
  body,
257
255
  });
258
256
  };
259
- export const serializeAws_restJson1ListFindingsReportsCommand = async (input, context) => {
257
+ export const se_ListFindingsReportsCommand = async (input, context) => {
260
258
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
259
  const headers = {};
262
260
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -287,7 +285,7 @@ export const serializeAws_restJson1ListFindingsReportsCommand = async (input, co
287
285
  body,
288
286
  });
289
287
  };
290
- export const serializeAws_restJson1ListProfileTimesCommand = async (input, context) => {
288
+ export const se_ListProfileTimesCommand = async (input, context) => {
291
289
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
290
  const headers = {};
293
291
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -319,7 +317,7 @@ export const serializeAws_restJson1ListProfileTimesCommand = async (input, conte
319
317
  body,
320
318
  });
321
319
  };
322
- export const serializeAws_restJson1ListProfilingGroupsCommand = async (input, context) => {
320
+ export const se_ListProfilingGroupsCommand = async (input, context) => {
323
321
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
322
  const headers = {};
325
323
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups";
@@ -340,7 +338,7 @@ export const serializeAws_restJson1ListProfilingGroupsCommand = async (input, co
340
338
  body,
341
339
  });
342
340
  };
343
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
341
+ export const se_ListTagsForResourceCommand = async (input, context) => {
344
342
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
345
343
  const headers = {};
346
344
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -356,7 +354,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
356
354
  body,
357
355
  });
358
356
  };
359
- export const serializeAws_restJson1PostAgentProfileCommand = async (input, context) => {
357
+ export const se_PostAgentProfileCommand = async (input, context) => {
360
358
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
359
  const headers = map({}, isSerializableHeaderValue, {
362
360
  "content-type": input.contentType || "application/octet-stream",
@@ -382,7 +380,7 @@ export const serializeAws_restJson1PostAgentProfileCommand = async (input, conte
382
380
  body,
383
381
  });
384
382
  };
385
- export const serializeAws_restJson1PutPermissionCommand = async (input, context) => {
383
+ export const se_PutPermissionCommand = async (input, context) => {
386
384
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
387
385
  const headers = {
388
386
  "content-type": "application/json",
@@ -393,7 +391,7 @@ export const serializeAws_restJson1PutPermissionCommand = async (input, context)
393
391
  resolvedPath = __resolvedPath(resolvedPath, input, "actionGroup", () => input.actionGroup, "{actionGroup}", false);
394
392
  let body;
395
393
  body = JSON.stringify({
396
- ...(input.principals != null && { principals: serializeAws_restJson1Principals(input.principals, context) }),
394
+ ...(input.principals != null && { principals: se_Principals(input.principals, context) }),
397
395
  ...(input.revisionId != null && { revisionId: input.revisionId }),
398
396
  });
399
397
  return new __HttpRequest({
@@ -406,7 +404,7 @@ export const serializeAws_restJson1PutPermissionCommand = async (input, context)
406
404
  body,
407
405
  });
408
406
  };
409
- export const serializeAws_restJson1RemoveNotificationChannelCommand = async (input, context) => {
407
+ export const se_RemoveNotificationChannelCommand = async (input, context) => {
410
408
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
411
409
  const headers = {};
412
410
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -424,7 +422,7 @@ export const serializeAws_restJson1RemoveNotificationChannelCommand = async (inp
424
422
  body,
425
423
  });
426
424
  };
427
- export const serializeAws_restJson1RemovePermissionCommand = async (input, context) => {
425
+ export const se_RemovePermissionCommand = async (input, context) => {
428
426
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
429
427
  const headers = {};
430
428
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -446,7 +444,7 @@ export const serializeAws_restJson1RemovePermissionCommand = async (input, conte
446
444
  body,
447
445
  });
448
446
  };
449
- export const serializeAws_restJson1SubmitFeedbackCommand = async (input, context) => {
447
+ export const se_SubmitFeedbackCommand = async (input, context) => {
450
448
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
451
449
  const headers = {
452
450
  "content-type": "application/json",
@@ -470,7 +468,7 @@ export const serializeAws_restJson1SubmitFeedbackCommand = async (input, context
470
468
  body,
471
469
  });
472
470
  };
473
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
471
+ export const se_TagResourceCommand = async (input, context) => {
474
472
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
475
473
  const headers = {
476
474
  "content-type": "application/json",
@@ -479,7 +477,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
479
477
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
480
478
  let body;
481
479
  body = JSON.stringify({
482
- ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
480
+ ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
483
481
  });
484
482
  return new __HttpRequest({
485
483
  protocol,
@@ -491,7 +489,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
491
489
  body,
492
490
  });
493
491
  };
494
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
492
+ export const se_UntagResourceCommand = async (input, context) => {
495
493
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
496
494
  const headers = {};
497
495
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -514,7 +512,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
514
512
  body,
515
513
  });
516
514
  };
517
- export const serializeAws_restJson1UpdateProfilingGroupCommand = async (input, context) => {
515
+ export const se_UpdateProfilingGroupCommand = async (input, context) => {
518
516
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
519
517
  const headers = {
520
518
  "content-type": "application/json",
@@ -524,7 +522,7 @@ export const serializeAws_restJson1UpdateProfilingGroupCommand = async (input, c
524
522
  let body;
525
523
  body = JSON.stringify({
526
524
  ...(input.agentOrchestrationConfig != null && {
527
- agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
525
+ agentOrchestrationConfig: se_AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
528
526
  }),
529
527
  });
530
528
  return new __HttpRequest({
@@ -537,20 +535,20 @@ export const serializeAws_restJson1UpdateProfilingGroupCommand = async (input, c
537
535
  body,
538
536
  });
539
537
  };
540
- export const deserializeAws_restJson1AddNotificationChannelsCommand = async (output, context) => {
538
+ export const de_AddNotificationChannelsCommand = async (output, context) => {
541
539
  if (output.statusCode !== 200 && output.statusCode >= 300) {
542
- return deserializeAws_restJson1AddNotificationChannelsCommandError(output, context);
540
+ return de_AddNotificationChannelsCommandError(output, context);
543
541
  }
544
542
  const contents = map({
545
543
  $metadata: deserializeMetadata(output),
546
544
  });
547
545
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
548
546
  if (data.notificationConfiguration != null) {
549
- contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
547
+ contents.notificationConfiguration = de_NotificationConfiguration(data.notificationConfiguration, context);
550
548
  }
551
549
  return contents;
552
550
  };
553
- const deserializeAws_restJson1AddNotificationChannelsCommandError = async (output, context) => {
551
+ const de_AddNotificationChannelsCommandError = async (output, context) => {
554
552
  const parsedOutput = {
555
553
  ...output,
556
554
  body: await parseErrorBody(output.body, context),
@@ -559,22 +557,22 @@ const deserializeAws_restJson1AddNotificationChannelsCommandError = async (outpu
559
557
  switch (errorCode) {
560
558
  case "ConflictException":
561
559
  case "com.amazonaws.codeguruprofiler#ConflictException":
562
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
560
+ throw await de_ConflictExceptionRes(parsedOutput, context);
563
561
  case "InternalServerException":
564
562
  case "com.amazonaws.codeguruprofiler#InternalServerException":
565
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
563
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
566
564
  case "ResourceNotFoundException":
567
565
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
568
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
566
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
569
567
  case "ServiceQuotaExceededException":
570
568
  case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
571
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
569
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
572
570
  case "ThrottlingException":
573
571
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
574
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
572
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
575
573
  case "ValidationException":
576
574
  case "com.amazonaws.codeguruprofiler#ValidationException":
577
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
575
+ throw await de_ValidationExceptionRes(parsedOutput, context);
578
576
  default:
579
577
  const parsedBody = parsedOutput.body;
580
578
  throwDefaultError({
@@ -585,9 +583,9 @@ const deserializeAws_restJson1AddNotificationChannelsCommandError = async (outpu
585
583
  });
586
584
  }
587
585
  };
588
- export const deserializeAws_restJson1BatchGetFrameMetricDataCommand = async (output, context) => {
586
+ export const de_BatchGetFrameMetricDataCommand = async (output, context) => {
589
587
  if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return deserializeAws_restJson1BatchGetFrameMetricDataCommandError(output, context);
588
+ return de_BatchGetFrameMetricDataCommandError(output, context);
591
589
  }
592
590
  const contents = map({
593
591
  $metadata: deserializeMetadata(output),
@@ -597,10 +595,10 @@ export const deserializeAws_restJson1BatchGetFrameMetricDataCommand = async (out
597
595
  contents.endTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.endTime));
598
596
  }
599
597
  if (data.endTimes != null) {
600
- contents.endTimes = deserializeAws_restJson1ListOfTimestamps(data.endTimes, context);
598
+ contents.endTimes = de_ListOfTimestamps(data.endTimes, context);
601
599
  }
602
600
  if (data.frameMetricData != null) {
603
- contents.frameMetricData = deserializeAws_restJson1FrameMetricData(data.frameMetricData, context);
601
+ contents.frameMetricData = de_FrameMetricData(data.frameMetricData, context);
604
602
  }
605
603
  if (data.resolution != null) {
606
604
  contents.resolution = __expectString(data.resolution);
@@ -609,11 +607,11 @@ export const deserializeAws_restJson1BatchGetFrameMetricDataCommand = async (out
609
607
  contents.startTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.startTime));
610
608
  }
611
609
  if (data.unprocessedEndTimes != null) {
612
- contents.unprocessedEndTimes = deserializeAws_restJson1UnprocessedEndTimeMap(data.unprocessedEndTimes, context);
610
+ contents.unprocessedEndTimes = de_UnprocessedEndTimeMap(data.unprocessedEndTimes, context);
613
611
  }
614
612
  return contents;
615
613
  };
616
- const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (output, context) => {
614
+ const de_BatchGetFrameMetricDataCommandError = async (output, context) => {
617
615
  const parsedOutput = {
618
616
  ...output,
619
617
  body: await parseErrorBody(output.body, context),
@@ -622,16 +620,16 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (outpu
622
620
  switch (errorCode) {
623
621
  case "InternalServerException":
624
622
  case "com.amazonaws.codeguruprofiler#InternalServerException":
625
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
623
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
626
624
  case "ResourceNotFoundException":
627
625
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
628
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
626
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
629
627
  case "ThrottlingException":
630
628
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
631
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
629
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
632
630
  case "ValidationException":
633
631
  case "com.amazonaws.codeguruprofiler#ValidationException":
634
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
632
+ throw await de_ValidationExceptionRes(parsedOutput, context);
635
633
  default:
636
634
  const parsedBody = parsedOutput.body;
637
635
  throwDefaultError({
@@ -642,18 +640,18 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (outpu
642
640
  });
643
641
  }
644
642
  };
645
- export const deserializeAws_restJson1ConfigureAgentCommand = async (output, context) => {
643
+ export const de_ConfigureAgentCommand = async (output, context) => {
646
644
  if (output.statusCode !== 200 && output.statusCode >= 300) {
647
- return deserializeAws_restJson1ConfigureAgentCommandError(output, context);
645
+ return de_ConfigureAgentCommandError(output, context);
648
646
  }
649
647
  const contents = map({
650
648
  $metadata: deserializeMetadata(output),
651
649
  });
652
650
  const data = __expectObject(await parseBody(output.body, context));
653
- contents.configuration = deserializeAws_restJson1AgentConfiguration(data, context);
651
+ contents.configuration = de_AgentConfiguration(data, context);
654
652
  return contents;
655
653
  };
656
- const deserializeAws_restJson1ConfigureAgentCommandError = async (output, context) => {
654
+ const de_ConfigureAgentCommandError = async (output, context) => {
657
655
  const parsedOutput = {
658
656
  ...output,
659
657
  body: await parseErrorBody(output.body, context),
@@ -662,16 +660,16 @@ const deserializeAws_restJson1ConfigureAgentCommandError = async (output, contex
662
660
  switch (errorCode) {
663
661
  case "InternalServerException":
664
662
  case "com.amazonaws.codeguruprofiler#InternalServerException":
665
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
663
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
666
664
  case "ResourceNotFoundException":
667
665
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
668
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
666
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
669
667
  case "ThrottlingException":
670
668
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
671
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
669
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
672
670
  case "ValidationException":
673
671
  case "com.amazonaws.codeguruprofiler#ValidationException":
674
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
672
+ throw await de_ValidationExceptionRes(parsedOutput, context);
675
673
  default:
676
674
  const parsedBody = parsedOutput.body;
677
675
  throwDefaultError({
@@ -682,18 +680,18 @@ const deserializeAws_restJson1ConfigureAgentCommandError = async (output, contex
682
680
  });
683
681
  }
684
682
  };
685
- export const deserializeAws_restJson1CreateProfilingGroupCommand = async (output, context) => {
683
+ export const de_CreateProfilingGroupCommand = async (output, context) => {
686
684
  if (output.statusCode !== 201 && output.statusCode >= 300) {
687
- return deserializeAws_restJson1CreateProfilingGroupCommandError(output, context);
685
+ return de_CreateProfilingGroupCommandError(output, context);
688
686
  }
689
687
  const contents = map({
690
688
  $metadata: deserializeMetadata(output),
691
689
  });
692
690
  const data = __expectObject(await parseBody(output.body, context));
693
- contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
691
+ contents.profilingGroup = de_ProfilingGroupDescription(data, context);
694
692
  return contents;
695
693
  };
696
- const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output, context) => {
694
+ const de_CreateProfilingGroupCommandError = async (output, context) => {
697
695
  const parsedOutput = {
698
696
  ...output,
699
697
  body: await parseErrorBody(output.body, context),
@@ -702,19 +700,19 @@ const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output,
702
700
  switch (errorCode) {
703
701
  case "ConflictException":
704
702
  case "com.amazonaws.codeguruprofiler#ConflictException":
705
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
703
+ throw await de_ConflictExceptionRes(parsedOutput, context);
706
704
  case "InternalServerException":
707
705
  case "com.amazonaws.codeguruprofiler#InternalServerException":
708
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
706
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
709
707
  case "ServiceQuotaExceededException":
710
708
  case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
711
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
709
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
712
710
  case "ThrottlingException":
713
711
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
714
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
712
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
715
713
  case "ValidationException":
716
714
  case "com.amazonaws.codeguruprofiler#ValidationException":
717
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
715
+ throw await de_ValidationExceptionRes(parsedOutput, context);
718
716
  default:
719
717
  const parsedBody = parsedOutput.body;
720
718
  throwDefaultError({
@@ -725,9 +723,9 @@ const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output,
725
723
  });
726
724
  }
727
725
  };
728
- export const deserializeAws_restJson1DeleteProfilingGroupCommand = async (output, context) => {
726
+ export const de_DeleteProfilingGroupCommand = async (output, context) => {
729
727
  if (output.statusCode !== 204 && output.statusCode >= 300) {
730
- return deserializeAws_restJson1DeleteProfilingGroupCommandError(output, context);
728
+ return de_DeleteProfilingGroupCommandError(output, context);
731
729
  }
732
730
  const contents = map({
733
731
  $metadata: deserializeMetadata(output),
@@ -735,7 +733,7 @@ export const deserializeAws_restJson1DeleteProfilingGroupCommand = async (output
735
733
  await collectBody(output.body, context);
736
734
  return contents;
737
735
  };
738
- const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output, context) => {
736
+ const de_DeleteProfilingGroupCommandError = async (output, context) => {
739
737
  const parsedOutput = {
740
738
  ...output,
741
739
  body: await parseErrorBody(output.body, context),
@@ -744,19 +742,19 @@ const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output,
744
742
  switch (errorCode) {
745
743
  case "ConflictException":
746
744
  case "com.amazonaws.codeguruprofiler#ConflictException":
747
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
745
+ throw await de_ConflictExceptionRes(parsedOutput, context);
748
746
  case "InternalServerException":
749
747
  case "com.amazonaws.codeguruprofiler#InternalServerException":
750
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
748
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
751
749
  case "ResourceNotFoundException":
752
750
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
753
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
751
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
754
752
  case "ThrottlingException":
755
753
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
756
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
754
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
757
755
  case "ValidationException":
758
756
  case "com.amazonaws.codeguruprofiler#ValidationException":
759
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
757
+ throw await de_ValidationExceptionRes(parsedOutput, context);
760
758
  default:
761
759
  const parsedBody = parsedOutput.body;
762
760
  throwDefaultError({
@@ -767,18 +765,18 @@ const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output,
767
765
  });
768
766
  }
769
767
  };
770
- export const deserializeAws_restJson1DescribeProfilingGroupCommand = async (output, context) => {
768
+ export const de_DescribeProfilingGroupCommand = async (output, context) => {
771
769
  if (output.statusCode !== 200 && output.statusCode >= 300) {
772
- return deserializeAws_restJson1DescribeProfilingGroupCommandError(output, context);
770
+ return de_DescribeProfilingGroupCommandError(output, context);
773
771
  }
774
772
  const contents = map({
775
773
  $metadata: deserializeMetadata(output),
776
774
  });
777
775
  const data = __expectObject(await parseBody(output.body, context));
778
- contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
776
+ contents.profilingGroup = de_ProfilingGroupDescription(data, context);
779
777
  return contents;
780
778
  };
781
- const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output, context) => {
779
+ const de_DescribeProfilingGroupCommandError = async (output, context) => {
782
780
  const parsedOutput = {
783
781
  ...output,
784
782
  body: await parseErrorBody(output.body, context),
@@ -787,16 +785,16 @@ const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output
787
785
  switch (errorCode) {
788
786
  case "InternalServerException":
789
787
  case "com.amazonaws.codeguruprofiler#InternalServerException":
790
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
788
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
791
789
  case "ResourceNotFoundException":
792
790
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
793
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
791
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
794
792
  case "ThrottlingException":
795
793
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
796
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
794
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
797
795
  case "ValidationException":
798
796
  case "com.amazonaws.codeguruprofiler#ValidationException":
799
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
797
+ throw await de_ValidationExceptionRes(parsedOutput, context);
800
798
  default:
801
799
  const parsedBody = parsedOutput.body;
802
800
  throwDefaultError({
@@ -807,9 +805,9 @@ const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output
807
805
  });
808
806
  }
809
807
  };
810
- export const deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = async (output, context) => {
808
+ export const de_GetFindingsReportAccountSummaryCommand = async (output, context) => {
811
809
  if (output.statusCode !== 200 && output.statusCode >= 300) {
812
- return deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError(output, context);
810
+ return de_GetFindingsReportAccountSummaryCommandError(output, context);
813
811
  }
814
812
  const contents = map({
815
813
  $metadata: deserializeMetadata(output),
@@ -819,11 +817,11 @@ export const deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = as
819
817
  contents.nextToken = __expectString(data.nextToken);
820
818
  }
821
819
  if (data.reportSummaries != null) {
822
- contents.reportSummaries = deserializeAws_restJson1FindingsReportSummaries(data.reportSummaries, context);
820
+ contents.reportSummaries = de_FindingsReportSummaries(data.reportSummaries, context);
823
821
  }
824
822
  return contents;
825
823
  };
826
- const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = async (output, context) => {
824
+ const de_GetFindingsReportAccountSummaryCommandError = async (output, context) => {
827
825
  const parsedOutput = {
828
826
  ...output,
829
827
  body: await parseErrorBody(output.body, context),
@@ -832,13 +830,13 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = asyn
832
830
  switch (errorCode) {
833
831
  case "InternalServerException":
834
832
  case "com.amazonaws.codeguruprofiler#InternalServerException":
835
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
833
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
836
834
  case "ThrottlingException":
837
835
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
838
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
836
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
839
837
  case "ValidationException":
840
838
  case "com.amazonaws.codeguruprofiler#ValidationException":
841
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
839
+ throw await de_ValidationExceptionRes(parsedOutput, context);
842
840
  default:
843
841
  const parsedBody = parsedOutput.body;
844
842
  throwDefaultError({
@@ -849,20 +847,20 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = asyn
849
847
  });
850
848
  }
851
849
  };
852
- export const deserializeAws_restJson1GetNotificationConfigurationCommand = async (output, context) => {
850
+ export const de_GetNotificationConfigurationCommand = async (output, context) => {
853
851
  if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return deserializeAws_restJson1GetNotificationConfigurationCommandError(output, context);
852
+ return de_GetNotificationConfigurationCommandError(output, context);
855
853
  }
856
854
  const contents = map({
857
855
  $metadata: deserializeMetadata(output),
858
856
  });
859
857
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
860
858
  if (data.notificationConfiguration != null) {
861
- contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
859
+ contents.notificationConfiguration = de_NotificationConfiguration(data.notificationConfiguration, context);
862
860
  }
863
861
  return contents;
864
862
  };
865
- const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (output, context) => {
863
+ const de_GetNotificationConfigurationCommandError = async (output, context) => {
866
864
  const parsedOutput = {
867
865
  ...output,
868
866
  body: await parseErrorBody(output.body, context),
@@ -871,16 +869,16 @@ const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (
871
869
  switch (errorCode) {
872
870
  case "InternalServerException":
873
871
  case "com.amazonaws.codeguruprofiler#InternalServerException":
874
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
872
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
875
873
  case "ResourceNotFoundException":
876
874
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
877
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
875
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
878
876
  case "ThrottlingException":
879
877
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
880
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
878
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
881
879
  case "ValidationException":
882
880
  case "com.amazonaws.codeguruprofiler#ValidationException":
883
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
881
+ throw await de_ValidationExceptionRes(parsedOutput, context);
884
882
  default:
885
883
  const parsedBody = parsedOutput.body;
886
884
  throwDefaultError({
@@ -891,9 +889,9 @@ const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (
891
889
  });
892
890
  }
893
891
  };
894
- export const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
892
+ export const de_GetPolicyCommand = async (output, context) => {
895
893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
896
- return deserializeAws_restJson1GetPolicyCommandError(output, context);
894
+ return de_GetPolicyCommandError(output, context);
897
895
  }
898
896
  const contents = map({
899
897
  $metadata: deserializeMetadata(output),
@@ -907,7 +905,7 @@ export const deserializeAws_restJson1GetPolicyCommand = async (output, context)
907
905
  }
908
906
  return contents;
909
907
  };
910
- const deserializeAws_restJson1GetPolicyCommandError = async (output, context) => {
908
+ const de_GetPolicyCommandError = async (output, context) => {
911
909
  const parsedOutput = {
912
910
  ...output,
913
911
  body: await parseErrorBody(output.body, context),
@@ -916,13 +914,13 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
916
914
  switch (errorCode) {
917
915
  case "InternalServerException":
918
916
  case "com.amazonaws.codeguruprofiler#InternalServerException":
919
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
917
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
920
918
  case "ResourceNotFoundException":
921
919
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
922
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
920
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
923
921
  case "ThrottlingException":
924
922
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
925
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
923
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
926
924
  default:
927
925
  const parsedBody = parsedOutput.body;
928
926
  throwDefaultError({
@@ -933,9 +931,9 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
933
931
  });
934
932
  }
935
933
  };
936
- export const deserializeAws_restJson1GetProfileCommand = async (output, context) => {
934
+ export const de_GetProfileCommand = async (output, context) => {
937
935
  if (output.statusCode !== 200 && output.statusCode >= 300) {
938
- return deserializeAws_restJson1GetProfileCommandError(output, context);
936
+ return de_GetProfileCommandError(output, context);
939
937
  }
940
938
  const contents = map({
941
939
  $metadata: deserializeMetadata(output),
@@ -946,7 +944,7 @@ export const deserializeAws_restJson1GetProfileCommand = async (output, context)
946
944
  contents.profile = data;
947
945
  return contents;
948
946
  };
949
- const deserializeAws_restJson1GetProfileCommandError = async (output, context) => {
947
+ const de_GetProfileCommandError = async (output, context) => {
950
948
  const parsedOutput = {
951
949
  ...output,
952
950
  body: await parseErrorBody(output.body, context),
@@ -955,16 +953,16 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
955
953
  switch (errorCode) {
956
954
  case "InternalServerException":
957
955
  case "com.amazonaws.codeguruprofiler#InternalServerException":
958
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
956
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
959
957
  case "ResourceNotFoundException":
960
958
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
961
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
959
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
962
960
  case "ThrottlingException":
963
961
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
964
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
962
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
965
963
  case "ValidationException":
966
964
  case "com.amazonaws.codeguruprofiler#ValidationException":
967
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
965
+ throw await de_ValidationExceptionRes(parsedOutput, context);
968
966
  default:
969
967
  const parsedBody = parsedOutput.body;
970
968
  throwDefaultError({
@@ -975,16 +973,16 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
975
973
  });
976
974
  }
977
975
  };
978
- export const deserializeAws_restJson1GetRecommendationsCommand = async (output, context) => {
976
+ export const de_GetRecommendationsCommand = async (output, context) => {
979
977
  if (output.statusCode !== 200 && output.statusCode >= 300) {
980
- return deserializeAws_restJson1GetRecommendationsCommandError(output, context);
978
+ return de_GetRecommendationsCommandError(output, context);
981
979
  }
982
980
  const contents = map({
983
981
  $metadata: deserializeMetadata(output),
984
982
  });
985
983
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
986
984
  if (data.anomalies != null) {
987
- contents.anomalies = deserializeAws_restJson1Anomalies(data.anomalies, context);
985
+ contents.anomalies = de_Anomalies(data.anomalies, context);
988
986
  }
989
987
  if (data.profileEndTime != null) {
990
988
  contents.profileEndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.profileEndTime));
@@ -996,11 +994,11 @@ export const deserializeAws_restJson1GetRecommendationsCommand = async (output,
996
994
  contents.profilingGroupName = __expectString(data.profilingGroupName);
997
995
  }
998
996
  if (data.recommendations != null) {
999
- contents.recommendations = deserializeAws_restJson1Recommendations(data.recommendations, context);
997
+ contents.recommendations = de_Recommendations(data.recommendations, context);
1000
998
  }
1001
999
  return contents;
1002
1000
  };
1003
- const deserializeAws_restJson1GetRecommendationsCommandError = async (output, context) => {
1001
+ const de_GetRecommendationsCommandError = async (output, context) => {
1004
1002
  const parsedOutput = {
1005
1003
  ...output,
1006
1004
  body: await parseErrorBody(output.body, context),
@@ -1009,16 +1007,16 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
1009
1007
  switch (errorCode) {
1010
1008
  case "InternalServerException":
1011
1009
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1012
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1010
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1013
1011
  case "ResourceNotFoundException":
1014
1012
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1015
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1013
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1016
1014
  case "ThrottlingException":
1017
1015
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1018
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1016
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1019
1017
  case "ValidationException":
1020
1018
  case "com.amazonaws.codeguruprofiler#ValidationException":
1021
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1019
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1022
1020
  default:
1023
1021
  const parsedBody = parsedOutput.body;
1024
1022
  throwDefaultError({
@@ -1029,23 +1027,23 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
1029
1027
  });
1030
1028
  }
1031
1029
  };
1032
- export const deserializeAws_restJson1ListFindingsReportsCommand = async (output, context) => {
1030
+ export const de_ListFindingsReportsCommand = async (output, context) => {
1033
1031
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1034
- return deserializeAws_restJson1ListFindingsReportsCommandError(output, context);
1032
+ return de_ListFindingsReportsCommandError(output, context);
1035
1033
  }
1036
1034
  const contents = map({
1037
1035
  $metadata: deserializeMetadata(output),
1038
1036
  });
1039
1037
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1040
1038
  if (data.findingsReportSummaries != null) {
1041
- contents.findingsReportSummaries = deserializeAws_restJson1FindingsReportSummaries(data.findingsReportSummaries, context);
1039
+ contents.findingsReportSummaries = de_FindingsReportSummaries(data.findingsReportSummaries, context);
1042
1040
  }
1043
1041
  if (data.nextToken != null) {
1044
1042
  contents.nextToken = __expectString(data.nextToken);
1045
1043
  }
1046
1044
  return contents;
1047
1045
  };
1048
- const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, context) => {
1046
+ const de_ListFindingsReportsCommandError = async (output, context) => {
1049
1047
  const parsedOutput = {
1050
1048
  ...output,
1051
1049
  body: await parseErrorBody(output.body, context),
@@ -1054,16 +1052,16 @@ const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, c
1054
1052
  switch (errorCode) {
1055
1053
  case "InternalServerException":
1056
1054
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1057
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1055
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1058
1056
  case "ResourceNotFoundException":
1059
1057
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1060
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1058
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1061
1059
  case "ThrottlingException":
1062
1060
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1063
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1061
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1064
1062
  case "ValidationException":
1065
1063
  case "com.amazonaws.codeguruprofiler#ValidationException":
1066
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1064
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1067
1065
  default:
1068
1066
  const parsedBody = parsedOutput.body;
1069
1067
  throwDefaultError({
@@ -1074,9 +1072,9 @@ const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, c
1074
1072
  });
1075
1073
  }
1076
1074
  };
1077
- export const deserializeAws_restJson1ListProfileTimesCommand = async (output, context) => {
1075
+ export const de_ListProfileTimesCommand = async (output, context) => {
1078
1076
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1079
- return deserializeAws_restJson1ListProfileTimesCommandError(output, context);
1077
+ return de_ListProfileTimesCommandError(output, context);
1080
1078
  }
1081
1079
  const contents = map({
1082
1080
  $metadata: deserializeMetadata(output),
@@ -1086,11 +1084,11 @@ export const deserializeAws_restJson1ListProfileTimesCommand = async (output, co
1086
1084
  contents.nextToken = __expectString(data.nextToken);
1087
1085
  }
1088
1086
  if (data.profileTimes != null) {
1089
- contents.profileTimes = deserializeAws_restJson1ProfileTimes(data.profileTimes, context);
1087
+ contents.profileTimes = de_ProfileTimes(data.profileTimes, context);
1090
1088
  }
1091
1089
  return contents;
1092
1090
  };
1093
- const deserializeAws_restJson1ListProfileTimesCommandError = async (output, context) => {
1091
+ const de_ListProfileTimesCommandError = async (output, context) => {
1094
1092
  const parsedOutput = {
1095
1093
  ...output,
1096
1094
  body: await parseErrorBody(output.body, context),
@@ -1099,16 +1097,16 @@ const deserializeAws_restJson1ListProfileTimesCommandError = async (output, cont
1099
1097
  switch (errorCode) {
1100
1098
  case "InternalServerException":
1101
1099
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1102
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1100
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1103
1101
  case "ResourceNotFoundException":
1104
1102
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1105
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1103
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1106
1104
  case "ThrottlingException":
1107
1105
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1108
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1106
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1109
1107
  case "ValidationException":
1110
1108
  case "com.amazonaws.codeguruprofiler#ValidationException":
1111
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1109
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1112
1110
  default:
1113
1111
  const parsedBody = parsedOutput.body;
1114
1112
  throwDefaultError({
@@ -1119,9 +1117,9 @@ const deserializeAws_restJson1ListProfileTimesCommandError = async (output, cont
1119
1117
  });
1120
1118
  }
1121
1119
  };
1122
- export const deserializeAws_restJson1ListProfilingGroupsCommand = async (output, context) => {
1120
+ export const de_ListProfilingGroupsCommand = async (output, context) => {
1123
1121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
- return deserializeAws_restJson1ListProfilingGroupsCommandError(output, context);
1122
+ return de_ListProfilingGroupsCommandError(output, context);
1125
1123
  }
1126
1124
  const contents = map({
1127
1125
  $metadata: deserializeMetadata(output),
@@ -1131,14 +1129,14 @@ export const deserializeAws_restJson1ListProfilingGroupsCommand = async (output,
1131
1129
  contents.nextToken = __expectString(data.nextToken);
1132
1130
  }
1133
1131
  if (data.profilingGroupNames != null) {
1134
- contents.profilingGroupNames = deserializeAws_restJson1ProfilingGroupNames(data.profilingGroupNames, context);
1132
+ contents.profilingGroupNames = de_ProfilingGroupNames(data.profilingGroupNames, context);
1135
1133
  }
1136
1134
  if (data.profilingGroups != null) {
1137
- contents.profilingGroups = deserializeAws_restJson1ProfilingGroupDescriptions(data.profilingGroups, context);
1135
+ contents.profilingGroups = de_ProfilingGroupDescriptions(data.profilingGroups, context);
1138
1136
  }
1139
1137
  return contents;
1140
1138
  };
1141
- const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, context) => {
1139
+ const de_ListProfilingGroupsCommandError = async (output, context) => {
1142
1140
  const parsedOutput = {
1143
1141
  ...output,
1144
1142
  body: await parseErrorBody(output.body, context),
@@ -1147,10 +1145,10 @@ const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, c
1147
1145
  switch (errorCode) {
1148
1146
  case "InternalServerException":
1149
1147
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1150
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1148
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1151
1149
  case "ThrottlingException":
1152
1150
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1153
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1151
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1154
1152
  default:
1155
1153
  const parsedBody = parsedOutput.body;
1156
1154
  throwDefaultError({
@@ -1161,20 +1159,20 @@ const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, c
1161
1159
  });
1162
1160
  }
1163
1161
  };
1164
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1162
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1165
1163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1166
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
1164
+ return de_ListTagsForResourceCommandError(output, context);
1167
1165
  }
1168
1166
  const contents = map({
1169
1167
  $metadata: deserializeMetadata(output),
1170
1168
  });
1171
1169
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1172
1170
  if (data.tags != null) {
1173
- contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1171
+ contents.tags = de_TagsMap(data.tags, context);
1174
1172
  }
1175
1173
  return contents;
1176
1174
  };
1177
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1175
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1178
1176
  const parsedOutput = {
1179
1177
  ...output,
1180
1178
  body: await parseErrorBody(output.body, context),
@@ -1183,13 +1181,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1183
1181
  switch (errorCode) {
1184
1182
  case "InternalServerException":
1185
1183
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1186
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1184
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1187
1185
  case "ResourceNotFoundException":
1188
1186
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1189
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1187
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1190
1188
  case "ValidationException":
1191
1189
  case "com.amazonaws.codeguruprofiler#ValidationException":
1192
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1190
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1193
1191
  default:
1194
1192
  const parsedBody = parsedOutput.body;
1195
1193
  throwDefaultError({
@@ -1200,9 +1198,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1200
1198
  });
1201
1199
  }
1202
1200
  };
1203
- export const deserializeAws_restJson1PostAgentProfileCommand = async (output, context) => {
1201
+ export const de_PostAgentProfileCommand = async (output, context) => {
1204
1202
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1205
- return deserializeAws_restJson1PostAgentProfileCommandError(output, context);
1203
+ return de_PostAgentProfileCommandError(output, context);
1206
1204
  }
1207
1205
  const contents = map({
1208
1206
  $metadata: deserializeMetadata(output),
@@ -1210,7 +1208,7 @@ export const deserializeAws_restJson1PostAgentProfileCommand = async (output, co
1210
1208
  await collectBody(output.body, context);
1211
1209
  return contents;
1212
1210
  };
1213
- const deserializeAws_restJson1PostAgentProfileCommandError = async (output, context) => {
1211
+ const de_PostAgentProfileCommandError = async (output, context) => {
1214
1212
  const parsedOutput = {
1215
1213
  ...output,
1216
1214
  body: await parseErrorBody(output.body, context),
@@ -1219,16 +1217,16 @@ const deserializeAws_restJson1PostAgentProfileCommandError = async (output, cont
1219
1217
  switch (errorCode) {
1220
1218
  case "InternalServerException":
1221
1219
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1222
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1220
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1223
1221
  case "ResourceNotFoundException":
1224
1222
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1225
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1223
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1226
1224
  case "ThrottlingException":
1227
1225
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1228
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1226
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1229
1227
  case "ValidationException":
1230
1228
  case "com.amazonaws.codeguruprofiler#ValidationException":
1231
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1229
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1232
1230
  default:
1233
1231
  const parsedBody = parsedOutput.body;
1234
1232
  throwDefaultError({
@@ -1239,9 +1237,9 @@ const deserializeAws_restJson1PostAgentProfileCommandError = async (output, cont
1239
1237
  });
1240
1238
  }
1241
1239
  };
1242
- export const deserializeAws_restJson1PutPermissionCommand = async (output, context) => {
1240
+ export const de_PutPermissionCommand = async (output, context) => {
1243
1241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1244
- return deserializeAws_restJson1PutPermissionCommandError(output, context);
1242
+ return de_PutPermissionCommandError(output, context);
1245
1243
  }
1246
1244
  const contents = map({
1247
1245
  $metadata: deserializeMetadata(output),
@@ -1255,7 +1253,7 @@ export const deserializeAws_restJson1PutPermissionCommand = async (output, conte
1255
1253
  }
1256
1254
  return contents;
1257
1255
  };
1258
- const deserializeAws_restJson1PutPermissionCommandError = async (output, context) => {
1256
+ const de_PutPermissionCommandError = async (output, context) => {
1259
1257
  const parsedOutput = {
1260
1258
  ...output,
1261
1259
  body: await parseErrorBody(output.body, context),
@@ -1264,19 +1262,19 @@ const deserializeAws_restJson1PutPermissionCommandError = async (output, context
1264
1262
  switch (errorCode) {
1265
1263
  case "ConflictException":
1266
1264
  case "com.amazonaws.codeguruprofiler#ConflictException":
1267
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1265
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1268
1266
  case "InternalServerException":
1269
1267
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1270
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1268
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1271
1269
  case "ResourceNotFoundException":
1272
1270
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1273
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1271
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1274
1272
  case "ThrottlingException":
1275
1273
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1276
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1274
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1277
1275
  case "ValidationException":
1278
1276
  case "com.amazonaws.codeguruprofiler#ValidationException":
1279
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1277
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1280
1278
  default:
1281
1279
  const parsedBody = parsedOutput.body;
1282
1280
  throwDefaultError({
@@ -1287,20 +1285,20 @@ const deserializeAws_restJson1PutPermissionCommandError = async (output, context
1287
1285
  });
1288
1286
  }
1289
1287
  };
1290
- export const deserializeAws_restJson1RemoveNotificationChannelCommand = async (output, context) => {
1288
+ export const de_RemoveNotificationChannelCommand = async (output, context) => {
1291
1289
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1292
- return deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context);
1290
+ return de_RemoveNotificationChannelCommandError(output, context);
1293
1291
  }
1294
1292
  const contents = map({
1295
1293
  $metadata: deserializeMetadata(output),
1296
1294
  });
1297
1295
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1298
1296
  if (data.notificationConfiguration != null) {
1299
- contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
1297
+ contents.notificationConfiguration = de_NotificationConfiguration(data.notificationConfiguration, context);
1300
1298
  }
1301
1299
  return contents;
1302
1300
  };
1303
- const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (output, context) => {
1301
+ const de_RemoveNotificationChannelCommandError = async (output, context) => {
1304
1302
  const parsedOutput = {
1305
1303
  ...output,
1306
1304
  body: await parseErrorBody(output.body, context),
@@ -1309,16 +1307,16 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1309
1307
  switch (errorCode) {
1310
1308
  case "InternalServerException":
1311
1309
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1312
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1310
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1313
1311
  case "ResourceNotFoundException":
1314
1312
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1315
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1313
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1316
1314
  case "ThrottlingException":
1317
1315
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1318
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1316
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1319
1317
  case "ValidationException":
1320
1318
  case "com.amazonaws.codeguruprofiler#ValidationException":
1321
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1319
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1322
1320
  default:
1323
1321
  const parsedBody = parsedOutput.body;
1324
1322
  throwDefaultError({
@@ -1329,9 +1327,9 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1329
1327
  });
1330
1328
  }
1331
1329
  };
1332
- export const deserializeAws_restJson1RemovePermissionCommand = async (output, context) => {
1330
+ export const de_RemovePermissionCommand = async (output, context) => {
1333
1331
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1334
- return deserializeAws_restJson1RemovePermissionCommandError(output, context);
1332
+ return de_RemovePermissionCommandError(output, context);
1335
1333
  }
1336
1334
  const contents = map({
1337
1335
  $metadata: deserializeMetadata(output),
@@ -1345,7 +1343,7 @@ export const deserializeAws_restJson1RemovePermissionCommand = async (output, co
1345
1343
  }
1346
1344
  return contents;
1347
1345
  };
1348
- const deserializeAws_restJson1RemovePermissionCommandError = async (output, context) => {
1346
+ const de_RemovePermissionCommandError = async (output, context) => {
1349
1347
  const parsedOutput = {
1350
1348
  ...output,
1351
1349
  body: await parseErrorBody(output.body, context),
@@ -1354,19 +1352,19 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
1354
1352
  switch (errorCode) {
1355
1353
  case "ConflictException":
1356
1354
  case "com.amazonaws.codeguruprofiler#ConflictException":
1357
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1355
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1358
1356
  case "InternalServerException":
1359
1357
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1360
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1358
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1361
1359
  case "ResourceNotFoundException":
1362
1360
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1363
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1361
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1364
1362
  case "ThrottlingException":
1365
1363
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1366
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1364
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1367
1365
  case "ValidationException":
1368
1366
  case "com.amazonaws.codeguruprofiler#ValidationException":
1369
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1367
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1370
1368
  default:
1371
1369
  const parsedBody = parsedOutput.body;
1372
1370
  throwDefaultError({
@@ -1377,9 +1375,9 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
1377
1375
  });
1378
1376
  }
1379
1377
  };
1380
- export const deserializeAws_restJson1SubmitFeedbackCommand = async (output, context) => {
1378
+ export const de_SubmitFeedbackCommand = async (output, context) => {
1381
1379
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1382
- return deserializeAws_restJson1SubmitFeedbackCommandError(output, context);
1380
+ return de_SubmitFeedbackCommandError(output, context);
1383
1381
  }
1384
1382
  const contents = map({
1385
1383
  $metadata: deserializeMetadata(output),
@@ -1387,7 +1385,7 @@ export const deserializeAws_restJson1SubmitFeedbackCommand = async (output, cont
1387
1385
  await collectBody(output.body, context);
1388
1386
  return contents;
1389
1387
  };
1390
- const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, context) => {
1388
+ const de_SubmitFeedbackCommandError = async (output, context) => {
1391
1389
  const parsedOutput = {
1392
1390
  ...output,
1393
1391
  body: await parseErrorBody(output.body, context),
@@ -1396,16 +1394,16 @@ const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, contex
1396
1394
  switch (errorCode) {
1397
1395
  case "InternalServerException":
1398
1396
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1399
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1397
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1400
1398
  case "ResourceNotFoundException":
1401
1399
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1402
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1400
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1403
1401
  case "ThrottlingException":
1404
1402
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1405
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1403
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1406
1404
  case "ValidationException":
1407
1405
  case "com.amazonaws.codeguruprofiler#ValidationException":
1408
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1406
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1409
1407
  default:
1410
1408
  const parsedBody = parsedOutput.body;
1411
1409
  throwDefaultError({
@@ -1416,9 +1414,9 @@ const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, contex
1416
1414
  });
1417
1415
  }
1418
1416
  };
1419
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1417
+ export const de_TagResourceCommand = async (output, context) => {
1420
1418
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1421
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1419
+ return de_TagResourceCommandError(output, context);
1422
1420
  }
1423
1421
  const contents = map({
1424
1422
  $metadata: deserializeMetadata(output),
@@ -1426,7 +1424,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
1426
1424
  await collectBody(output.body, context);
1427
1425
  return contents;
1428
1426
  };
1429
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1427
+ const de_TagResourceCommandError = async (output, context) => {
1430
1428
  const parsedOutput = {
1431
1429
  ...output,
1432
1430
  body: await parseErrorBody(output.body, context),
@@ -1435,13 +1433,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1435
1433
  switch (errorCode) {
1436
1434
  case "InternalServerException":
1437
1435
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1438
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1436
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1439
1437
  case "ResourceNotFoundException":
1440
1438
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1441
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1439
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1442
1440
  case "ValidationException":
1443
1441
  case "com.amazonaws.codeguruprofiler#ValidationException":
1444
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1442
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1445
1443
  default:
1446
1444
  const parsedBody = parsedOutput.body;
1447
1445
  throwDefaultError({
@@ -1452,9 +1450,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1452
1450
  });
1453
1451
  }
1454
1452
  };
1455
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1453
+ export const de_UntagResourceCommand = async (output, context) => {
1456
1454
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1457
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1455
+ return de_UntagResourceCommandError(output, context);
1458
1456
  }
1459
1457
  const contents = map({
1460
1458
  $metadata: deserializeMetadata(output),
@@ -1462,7 +1460,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
1462
1460
  await collectBody(output.body, context);
1463
1461
  return contents;
1464
1462
  };
1465
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1463
+ const de_UntagResourceCommandError = async (output, context) => {
1466
1464
  const parsedOutput = {
1467
1465
  ...output,
1468
1466
  body: await parseErrorBody(output.body, context),
@@ -1471,13 +1469,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1471
1469
  switch (errorCode) {
1472
1470
  case "InternalServerException":
1473
1471
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1474
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1472
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1475
1473
  case "ResourceNotFoundException":
1476
1474
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1477
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1475
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1478
1476
  case "ValidationException":
1479
1477
  case "com.amazonaws.codeguruprofiler#ValidationException":
1480
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1478
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1481
1479
  default:
1482
1480
  const parsedBody = parsedOutput.body;
1483
1481
  throwDefaultError({
@@ -1488,18 +1486,18 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1488
1486
  });
1489
1487
  }
1490
1488
  };
1491
- export const deserializeAws_restJson1UpdateProfilingGroupCommand = async (output, context) => {
1489
+ export const de_UpdateProfilingGroupCommand = async (output, context) => {
1492
1490
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1493
- return deserializeAws_restJson1UpdateProfilingGroupCommandError(output, context);
1491
+ return de_UpdateProfilingGroupCommandError(output, context);
1494
1492
  }
1495
1493
  const contents = map({
1496
1494
  $metadata: deserializeMetadata(output),
1497
1495
  });
1498
1496
  const data = __expectObject(await parseBody(output.body, context));
1499
- contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
1497
+ contents.profilingGroup = de_ProfilingGroupDescription(data, context);
1500
1498
  return contents;
1501
1499
  };
1502
- const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output, context) => {
1500
+ const de_UpdateProfilingGroupCommandError = async (output, context) => {
1503
1501
  const parsedOutput = {
1504
1502
  ...output,
1505
1503
  body: await parseErrorBody(output.body, context),
@@ -1508,19 +1506,19 @@ const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output,
1508
1506
  switch (errorCode) {
1509
1507
  case "ConflictException":
1510
1508
  case "com.amazonaws.codeguruprofiler#ConflictException":
1511
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1509
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1512
1510
  case "InternalServerException":
1513
1511
  case "com.amazonaws.codeguruprofiler#InternalServerException":
1514
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1512
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1515
1513
  case "ResourceNotFoundException":
1516
1514
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1517
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1515
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1518
1516
  case "ThrottlingException":
1519
1517
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1520
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1518
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1521
1519
  case "ValidationException":
1522
1520
  case "com.amazonaws.codeguruprofiler#ValidationException":
1523
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1521
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1524
1522
  default:
1525
1523
  const parsedBody = parsedOutput.body;
1526
1524
  throwDefaultError({
@@ -1532,7 +1530,7 @@ const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output,
1532
1530
  }
1533
1531
  };
1534
1532
  const map = __map;
1535
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1533
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1536
1534
  const contents = map({});
1537
1535
  const data = parsedOutput.body;
1538
1536
  if (data.message != null) {
@@ -1544,7 +1542,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1544
1542
  });
1545
1543
  return __decorateServiceException(exception, parsedOutput.body);
1546
1544
  };
1547
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1545
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1548
1546
  const contents = map({});
1549
1547
  const data = parsedOutput.body;
1550
1548
  if (data.message != null) {
@@ -1556,7 +1554,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1556
1554
  });
1557
1555
  return __decorateServiceException(exception, parsedOutput.body);
1558
1556
  };
1559
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1557
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1560
1558
  const contents = map({});
1561
1559
  const data = parsedOutput.body;
1562
1560
  if (data.message != null) {
@@ -1568,7 +1566,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1568
1566
  });
1569
1567
  return __decorateServiceException(exception, parsedOutput.body);
1570
1568
  };
1571
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1569
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1572
1570
  const contents = map({});
1573
1571
  const data = parsedOutput.body;
1574
1572
  if (data.message != null) {
@@ -1580,7 +1578,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1580
1578
  });
1581
1579
  return __decorateServiceException(exception, parsedOutput.body);
1582
1580
  };
1583
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1581
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1584
1582
  const contents = map({});
1585
1583
  const data = parsedOutput.body;
1586
1584
  if (data.message != null) {
@@ -1592,7 +1590,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1592
1590
  });
1593
1591
  return __decorateServiceException(exception, parsedOutput.body);
1594
1592
  };
1595
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1593
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1596
1594
  const contents = map({});
1597
1595
  const data = parsedOutput.body;
1598
1596
  if (data.message != null) {
@@ -1604,51 +1602,47 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1604
1602
  });
1605
1603
  return __decorateServiceException(exception, parsedOutput.body);
1606
1604
  };
1607
- const serializeAws_restJson1AgentOrchestrationConfig = (input, context) => {
1605
+ const se_AgentOrchestrationConfig = (input, context) => {
1608
1606
  return {
1609
1607
  ...(input.profilingEnabled != null && { profilingEnabled: input.profilingEnabled }),
1610
1608
  };
1611
1609
  };
1612
- const serializeAws_restJson1Channel = (input, context) => {
1610
+ const se_Channel = (input, context) => {
1613
1611
  return {
1614
- ...(input.eventPublishers != null && {
1615
- eventPublishers: serializeAws_restJson1EventPublishers(input.eventPublishers, context),
1616
- }),
1612
+ ...(input.eventPublishers != null && { eventPublishers: se_EventPublishers(input.eventPublishers, context) }),
1617
1613
  ...(input.id != null && { id: input.id }),
1618
1614
  ...(input.uri != null && { uri: input.uri }),
1619
1615
  };
1620
1616
  };
1621
- const serializeAws_restJson1Channels = (input, context) => {
1617
+ const se_Channels = (input, context) => {
1622
1618
  return input
1623
1619
  .filter((e) => e != null)
1624
1620
  .map((entry) => {
1625
- return serializeAws_restJson1Channel(entry, context);
1621
+ return se_Channel(entry, context);
1626
1622
  });
1627
1623
  };
1628
- const serializeAws_restJson1EventPublishers = (input, context) => {
1624
+ const se_EventPublishers = (input, context) => {
1629
1625
  return input
1630
1626
  .filter((e) => e != null)
1631
1627
  .map((entry) => {
1632
1628
  return entry;
1633
1629
  });
1634
1630
  };
1635
- const serializeAws_restJson1FrameMetric = (input, context) => {
1631
+ const se_FrameMetric = (input, context) => {
1636
1632
  return {
1637
1633
  ...(input.frameName != null && { frameName: input.frameName }),
1638
- ...(input.threadStates != null && {
1639
- threadStates: serializeAws_restJson1ThreadStates(input.threadStates, context),
1640
- }),
1634
+ ...(input.threadStates != null && { threadStates: se_ThreadStates(input.threadStates, context) }),
1641
1635
  ...(input.type != null && { type: input.type }),
1642
1636
  };
1643
1637
  };
1644
- const serializeAws_restJson1FrameMetrics = (input, context) => {
1638
+ const se_FrameMetrics = (input, context) => {
1645
1639
  return input
1646
1640
  .filter((e) => e != null)
1647
1641
  .map((entry) => {
1648
- return serializeAws_restJson1FrameMetric(entry, context);
1642
+ return se_FrameMetric(entry, context);
1649
1643
  });
1650
1644
  };
1651
- const serializeAws_restJson1Metadata = (input, context) => {
1645
+ const se_Metadata = (input, context) => {
1652
1646
  return Object.entries(input).reduce((acc, [key, value]) => {
1653
1647
  if (value === null) {
1654
1648
  return acc;
@@ -1657,14 +1651,14 @@ const serializeAws_restJson1Metadata = (input, context) => {
1657
1651
  return acc;
1658
1652
  }, {});
1659
1653
  };
1660
- const serializeAws_restJson1Principals = (input, context) => {
1654
+ const se_Principals = (input, context) => {
1661
1655
  return input
1662
1656
  .filter((e) => e != null)
1663
1657
  .map((entry) => {
1664
1658
  return entry;
1665
1659
  });
1666
1660
  };
1667
- const serializeAws_restJson1TagsMap = (input, context) => {
1661
+ const se_TagsMap = (input, context) => {
1668
1662
  return Object.entries(input).reduce((acc, [key, value]) => {
1669
1663
  if (value === null) {
1670
1664
  return acc;
@@ -1673,28 +1667,26 @@ const serializeAws_restJson1TagsMap = (input, context) => {
1673
1667
  return acc;
1674
1668
  }, {});
1675
1669
  };
1676
- const serializeAws_restJson1ThreadStates = (input, context) => {
1670
+ const se_ThreadStates = (input, context) => {
1677
1671
  return input
1678
1672
  .filter((e) => e != null)
1679
1673
  .map((entry) => {
1680
1674
  return entry;
1681
1675
  });
1682
1676
  };
1683
- const deserializeAws_restJson1AgentConfiguration = (output, context) => {
1677
+ const de_AgentConfiguration = (output, context) => {
1684
1678
  return {
1685
- agentParameters: output.agentParameters != null
1686
- ? deserializeAws_restJson1AgentParameters(output.agentParameters, context)
1687
- : undefined,
1679
+ agentParameters: output.agentParameters != null ? de_AgentParameters(output.agentParameters, context) : undefined,
1688
1680
  periodInSeconds: __expectInt32(output.periodInSeconds),
1689
1681
  shouldProfile: __expectBoolean(output.shouldProfile),
1690
1682
  };
1691
1683
  };
1692
- const deserializeAws_restJson1AgentOrchestrationConfig = (output, context) => {
1684
+ const de_AgentOrchestrationConfig = (output, context) => {
1693
1685
  return {
1694
1686
  profilingEnabled: __expectBoolean(output.profilingEnabled),
1695
1687
  };
1696
1688
  };
1697
- const deserializeAws_restJson1AgentParameters = (output, context) => {
1689
+ const de_AgentParameters = (output, context) => {
1698
1690
  return Object.entries(output).reduce((acc, [key, value]) => {
1699
1691
  if (value === null) {
1700
1692
  return acc;
@@ -1703,70 +1695,68 @@ const deserializeAws_restJson1AgentParameters = (output, context) => {
1703
1695
  return acc;
1704
1696
  }, {});
1705
1697
  };
1706
- const deserializeAws_restJson1AggregatedProfileTime = (output, context) => {
1698
+ const de_AggregatedProfileTime = (output, context) => {
1707
1699
  return {
1708
1700
  period: __expectString(output.period),
1709
1701
  start: output.start != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.start)) : undefined,
1710
1702
  };
1711
1703
  };
1712
- const deserializeAws_restJson1Anomalies = (output, context) => {
1704
+ const de_Anomalies = (output, context) => {
1713
1705
  const retVal = (output || [])
1714
1706
  .filter((e) => e != null)
1715
1707
  .map((entry) => {
1716
1708
  if (entry === null) {
1717
1709
  return null;
1718
1710
  }
1719
- return deserializeAws_restJson1Anomaly(entry, context);
1711
+ return de_Anomaly(entry, context);
1720
1712
  });
1721
1713
  return retVal;
1722
1714
  };
1723
- const deserializeAws_restJson1Anomaly = (output, context) => {
1715
+ const de_Anomaly = (output, context) => {
1724
1716
  return {
1725
- instances: output.instances != null ? deserializeAws_restJson1AnomalyInstances(output.instances, context) : undefined,
1726
- metric: output.metric != null ? deserializeAws_restJson1Metric(output.metric, context) : undefined,
1717
+ instances: output.instances != null ? de_AnomalyInstances(output.instances, context) : undefined,
1718
+ metric: output.metric != null ? de_Metric(output.metric, context) : undefined,
1727
1719
  reason: __expectString(output.reason),
1728
1720
  };
1729
1721
  };
1730
- const deserializeAws_restJson1AnomalyInstance = (output, context) => {
1722
+ const de_AnomalyInstance = (output, context) => {
1731
1723
  return {
1732
1724
  endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
1733
1725
  id: __expectString(output.id),
1734
1726
  startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startTime)) : undefined,
1735
- userFeedback: output.userFeedback != null ? deserializeAws_restJson1UserFeedback(output.userFeedback, context) : undefined,
1727
+ userFeedback: output.userFeedback != null ? de_UserFeedback(output.userFeedback, context) : undefined,
1736
1728
  };
1737
1729
  };
1738
- const deserializeAws_restJson1AnomalyInstances = (output, context) => {
1730
+ const de_AnomalyInstances = (output, context) => {
1739
1731
  const retVal = (output || [])
1740
1732
  .filter((e) => e != null)
1741
1733
  .map((entry) => {
1742
1734
  if (entry === null) {
1743
1735
  return null;
1744
1736
  }
1745
- return deserializeAws_restJson1AnomalyInstance(entry, context);
1737
+ return de_AnomalyInstance(entry, context);
1746
1738
  });
1747
1739
  return retVal;
1748
1740
  };
1749
- const deserializeAws_restJson1Channel = (output, context) => {
1741
+ const de_Channel = (output, context) => {
1750
1742
  return {
1751
- eventPublishers: output.eventPublishers != null
1752
- ? deserializeAws_restJson1EventPublishers(output.eventPublishers, context)
1753
- : undefined,
1743
+ eventPublishers: output.eventPublishers != null ? de_EventPublishers(output.eventPublishers, context) : undefined,
1754
1744
  id: __expectString(output.id),
1755
1745
  uri: __expectString(output.uri),
1756
1746
  };
1757
1747
  };
1758
- const deserializeAws_restJson1Channels = (output, context) => {
1748
+ const de_Channels = (output, context) => {
1759
1749
  const retVal = (output || [])
1760
1750
  .filter((e) => e != null)
1761
1751
  .map((entry) => {
1762
1752
  if (entry === null) {
1763
1753
  return null;
1764
1754
  }
1765
- return deserializeAws_restJson1Channel(entry, context);
1755
+ return de_Channel(entry, context);
1766
1756
  });
1767
1757
  return retVal;
1768
1758
  };
1769
- const deserializeAws_restJson1EventPublishers = (output, context) => {
1759
+ const de_EventPublishers = (output, context) => {
1770
1760
  const retVal = (output || [])
1771
1761
  .filter((e) => e != null)
1772
1762
  .map((entry) => {
@@ -1777,18 +1767,18 @@ const deserializeAws_restJson1EventPublishers = (output, context) => {
1777
1767
  });
1778
1768
  return retVal;
1779
1769
  };
1780
- const deserializeAws_restJson1FindingsReportSummaries = (output, context) => {
1770
+ const de_FindingsReportSummaries = (output, context) => {
1781
1771
  const retVal = (output || [])
1782
1772
  .filter((e) => e != null)
1783
1773
  .map((entry) => {
1784
1774
  if (entry === null) {
1785
1775
  return null;
1786
1776
  }
1787
- return deserializeAws_restJson1FindingsReportSummary(entry, context);
1777
+ return de_FindingsReportSummary(entry, context);
1788
1778
  });
1789
1779
  return retVal;
1790
1780
  };
1791
- const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
1781
+ const de_FindingsReportSummary = (output, context) => {
1792
1782
  return {
1793
1783
  id: __expectString(output.id),
1794
1784
  profileEndTime: output.profileEndTime != null
@@ -1801,31 +1791,31 @@ const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
1801
1791
  totalNumberOfFindings: __expectInt32(output.totalNumberOfFindings),
1802
1792
  };
1803
1793
  };
1804
- const deserializeAws_restJson1FrameMetric = (output, context) => {
1794
+ const de_FrameMetric = (output, context) => {
1805
1795
  return {
1806
1796
  frameName: __expectString(output.frameName),
1807
- threadStates: output.threadStates != null ? deserializeAws_restJson1ThreadStates(output.threadStates, context) : undefined,
1797
+ threadStates: output.threadStates != null ? de_ThreadStates(output.threadStates, context) : undefined,
1808
1798
  type: __expectString(output.type),
1809
1799
  };
1810
1800
  };
1811
- const deserializeAws_restJson1FrameMetricData = (output, context) => {
1801
+ const de_FrameMetricData = (output, context) => {
1812
1802
  const retVal = (output || [])
1813
1803
  .filter((e) => e != null)
1814
1804
  .map((entry) => {
1815
1805
  if (entry === null) {
1816
1806
  return null;
1817
1807
  }
1818
- return deserializeAws_restJson1FrameMetricDatum(entry, context);
1808
+ return de_FrameMetricDatum(entry, context);
1819
1809
  });
1820
1810
  return retVal;
1821
1811
  };
1822
- const deserializeAws_restJson1FrameMetricDatum = (output, context) => {
1812
+ const de_FrameMetricDatum = (output, context) => {
1823
1813
  return {
1824
- frameMetric: output.frameMetric != null ? deserializeAws_restJson1FrameMetric(output.frameMetric, context) : undefined,
1825
- values: output.values != null ? deserializeAws_restJson1FrameMetricValues(output.values, context) : undefined,
1814
+ frameMetric: output.frameMetric != null ? de_FrameMetric(output.frameMetric, context) : undefined,
1815
+ values: output.values != null ? de_FrameMetricValues(output.values, context) : undefined,
1826
1816
  };
1827
1817
  };
1828
- const deserializeAws_restJson1FrameMetricValues = (output, context) => {
1818
+ const de_FrameMetricValues = (output, context) => {
1829
1819
  const retVal = (output || [])
1830
1820
  .filter((e) => e != null)
1831
1821
  .map((entry) => {
@@ -1836,104 +1826,100 @@ const deserializeAws_restJson1FrameMetricValues = (output, context) => {
1836
1826
  });
1837
1827
  return retVal;
1838
1828
  };
1839
- const deserializeAws_restJson1ListOfTimestamps = (output, context) => {
1829
+ const de_ListOfTimestamps = (output, context) => {
1840
1830
  const retVal = (output || [])
1841
1831
  .filter((e) => e != null)
1842
1832
  .map((entry) => {
1843
1833
  if (entry === null) {
1844
1834
  return null;
1845
1835
  }
1846
- return deserializeAws_restJson1TimestampStructure(entry, context);
1836
+ return de_TimestampStructure(entry, context);
1847
1837
  });
1848
1838
  return retVal;
1849
1839
  };
1850
- const deserializeAws_restJson1Match = (output, context) => {
1840
+ const de_Match = (output, context) => {
1851
1841
  return {
1852
1842
  frameAddress: __expectString(output.frameAddress),
1853
1843
  targetFramesIndex: __expectInt32(output.targetFramesIndex),
1854
1844
  thresholdBreachValue: __limitedParseDouble(output.thresholdBreachValue),
1855
1845
  };
1856
1846
  };
1857
- const deserializeAws_restJson1Matches = (output, context) => {
1847
+ const de_Matches = (output, context) => {
1858
1848
  const retVal = (output || [])
1859
1849
  .filter((e) => e != null)
1860
1850
  .map((entry) => {
1861
1851
  if (entry === null) {
1862
1852
  return null;
1863
1853
  }
1864
- return deserializeAws_restJson1Match(entry, context);
1854
+ return de_Match(entry, context);
1865
1855
  });
1866
1856
  return retVal;
1867
1857
  };
1868
- const deserializeAws_restJson1Metric = (output, context) => {
1858
+ const de_Metric = (output, context) => {
1869
1859
  return {
1870
1860
  frameName: __expectString(output.frameName),
1871
- threadStates: output.threadStates != null ? deserializeAws_restJson1Strings(output.threadStates, context) : undefined,
1861
+ threadStates: output.threadStates != null ? de_Strings(output.threadStates, context) : undefined,
1872
1862
  type: __expectString(output.type),
1873
1863
  };
1874
1864
  };
1875
- const deserializeAws_restJson1NotificationConfiguration = (output, context) => {
1865
+ const de_NotificationConfiguration = (output, context) => {
1876
1866
  return {
1877
- channels: output.channels != null ? deserializeAws_restJson1Channels(output.channels, context) : undefined,
1867
+ channels: output.channels != null ? de_Channels(output.channels, context) : undefined,
1878
1868
  };
1879
1869
  };
1880
- const deserializeAws_restJson1Pattern = (output, context) => {
1870
+ const de_Pattern = (output, context) => {
1881
1871
  return {
1882
- countersToAggregate: output.countersToAggregate != null
1883
- ? deserializeAws_restJson1Strings(output.countersToAggregate, context)
1884
- : undefined,
1872
+ countersToAggregate: output.countersToAggregate != null ? de_Strings(output.countersToAggregate, context) : undefined,
1885
1873
  description: __expectString(output.description),
1886
1874
  id: __expectString(output.id),
1887
1875
  name: __expectString(output.name),
1888
1876
  resolutionSteps: __expectString(output.resolutionSteps),
1889
- targetFrames: output.targetFrames != null ? deserializeAws_restJson1TargetFrames(output.targetFrames, context) : undefined,
1877
+ targetFrames: output.targetFrames != null ? de_TargetFrames(output.targetFrames, context) : undefined,
1890
1878
  thresholdPercent: __limitedParseDouble(output.thresholdPercent),
1891
1879
  };
1892
1880
  };
1893
- const deserializeAws_restJson1ProfileTime = (output, context) => {
1881
+ const de_ProfileTime = (output, context) => {
1894
1882
  return {
1895
1883
  start: output.start != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.start)) : undefined,
1896
1884
  };
1897
1885
  };
1898
- const deserializeAws_restJson1ProfileTimes = (output, context) => {
1886
+ const de_ProfileTimes = (output, context) => {
1899
1887
  const retVal = (output || [])
1900
1888
  .filter((e) => e != null)
1901
1889
  .map((entry) => {
1902
1890
  if (entry === null) {
1903
1891
  return null;
1904
1892
  }
1905
- return deserializeAws_restJson1ProfileTime(entry, context);
1893
+ return de_ProfileTime(entry, context);
1906
1894
  });
1907
1895
  return retVal;
1908
1896
  };
1909
- const deserializeAws_restJson1ProfilingGroupDescription = (output, context) => {
1897
+ const de_ProfilingGroupDescription = (output, context) => {
1910
1898
  return {
1911
1899
  agentOrchestrationConfig: output.agentOrchestrationConfig != null
1912
- ? deserializeAws_restJson1AgentOrchestrationConfig(output.agentOrchestrationConfig, context)
1900
+ ? de_AgentOrchestrationConfig(output.agentOrchestrationConfig, context)
1913
1901
  : undefined,
1914
1902
  arn: __expectString(output.arn),
1915
1903
  computePlatform: __expectString(output.computePlatform),
1916
1904
  createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
1917
1905
  name: __expectString(output.name),
1918
- profilingStatus: output.profilingStatus != null
1919
- ? deserializeAws_restJson1ProfilingStatus(output.profilingStatus, context)
1920
- : undefined,
1921
- tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
1906
+ profilingStatus: output.profilingStatus != null ? de_ProfilingStatus(output.profilingStatus, context) : undefined,
1907
+ tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
1922
1908
  updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
1923
1909
  };
1924
1910
  };
1925
- const deserializeAws_restJson1ProfilingGroupDescriptions = (output, context) => {
1911
+ const de_ProfilingGroupDescriptions = (output, context) => {
1926
1912
  const retVal = (output || [])
1927
1913
  .filter((e) => e != null)
1928
1914
  .map((entry) => {
1929
1915
  if (entry === null) {
1930
1916
  return null;
1931
1917
  }
1932
- return deserializeAws_restJson1ProfilingGroupDescription(entry, context);
1918
+ return de_ProfilingGroupDescription(entry, context);
1933
1919
  });
1934
1920
  return retVal;
1935
1921
  };
1936
- const deserializeAws_restJson1ProfilingGroupNames = (output, context) => {
1922
+ const de_ProfilingGroupNames = (output, context) => {
1937
1923
  const retVal = (output || [])
1938
1924
  .filter((e) => e != null)
1939
1925
  .map((entry) => {
@@ -1944,7 +1930,7 @@ const deserializeAws_restJson1ProfilingGroupNames = (output, context) => {
1944
1930
  });
1945
1931
  return retVal;
1946
1932
  };
1947
- const deserializeAws_restJson1ProfilingStatus = (output, context) => {
1933
+ const de_ProfilingStatus = (output, context) => {
1948
1934
  return {
1949
1935
  latestAgentOrchestratedAt: output.latestAgentOrchestratedAt != null
1950
1936
  ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.latestAgentOrchestratedAt))
@@ -1953,32 +1939,32 @@ const deserializeAws_restJson1ProfilingStatus = (output, context) => {
1953
1939
  ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.latestAgentProfileReportedAt))
1954
1940
  : undefined,
1955
1941
  latestAggregatedProfile: output.latestAggregatedProfile != null
1956
- ? deserializeAws_restJson1AggregatedProfileTime(output.latestAggregatedProfile, context)
1942
+ ? de_AggregatedProfileTime(output.latestAggregatedProfile, context)
1957
1943
  : undefined,
1958
1944
  };
1959
1945
  };
1960
- const deserializeAws_restJson1Recommendation = (output, context) => {
1946
+ const de_Recommendation = (output, context) => {
1961
1947
  return {
1962
1948
  allMatchesCount: __expectInt32(output.allMatchesCount),
1963
1949
  allMatchesSum: __limitedParseDouble(output.allMatchesSum),
1964
1950
  endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
1965
- pattern: output.pattern != null ? deserializeAws_restJson1Pattern(output.pattern, context) : undefined,
1951
+ pattern: output.pattern != null ? de_Pattern(output.pattern, context) : undefined,
1966
1952
  startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startTime)) : undefined,
1967
- topMatches: output.topMatches != null ? deserializeAws_restJson1Matches(output.topMatches, context) : undefined,
1953
+ topMatches: output.topMatches != null ? de_Matches(output.topMatches, context) : undefined,
1968
1954
  };
1969
1955
  };
1970
- const deserializeAws_restJson1Recommendations = (output, context) => {
1956
+ const de_Recommendations = (output, context) => {
1971
1957
  const retVal = (output || [])
1972
1958
  .filter((e) => e != null)
1973
1959
  .map((entry) => {
1974
1960
  if (entry === null) {
1975
1961
  return null;
1976
1962
  }
1977
- return deserializeAws_restJson1Recommendation(entry, context);
1963
+ return de_Recommendation(entry, context);
1978
1964
  });
1979
1965
  return retVal;
1980
1966
  };
1981
- const deserializeAws_restJson1Strings = (output, context) => {
1967
+ const de_Strings = (output, context) => {
1982
1968
  const retVal = (output || [])
1983
1969
  .filter((e) => e != null)
1984
1970
  .map((entry) => {
@@ -1989,7 +1975,7 @@ const deserializeAws_restJson1Strings = (output, context) => {
1989
1975
  });
1990
1976
  return retVal;
1991
1977
  };
1992
- const deserializeAws_restJson1TagsMap = (output, context) => {
1978
+ const de_TagsMap = (output, context) => {
1993
1979
  return Object.entries(output).reduce((acc, [key, value]) => {
1994
1980
  if (value === null) {
1995
1981
  return acc;
@@ -1998,7 +1984,7 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
1998
1984
  return acc;
1999
1985
  }, {});
2000
1986
  };
2001
- const deserializeAws_restJson1TargetFrame = (output, context) => {
1987
+ const de_TargetFrame = (output, context) => {
2002
1988
  const retVal = (output || [])
2003
1989
  .filter((e) => e != null)
2004
1990
  .map((entry) => {
@@ -2009,18 +1995,18 @@ const deserializeAws_restJson1TargetFrame = (output, context) => {
2009
1995
  });
2010
1996
  return retVal;
2011
1997
  };
2012
- const deserializeAws_restJson1TargetFrames = (output, context) => {
1998
+ const de_TargetFrames = (output, context) => {
2013
1999
  const retVal = (output || [])
2014
2000
  .filter((e) => e != null)
2015
2001
  .map((entry) => {
2016
2002
  if (entry === null) {
2017
2003
  return null;
2018
2004
  }
2019
- return deserializeAws_restJson1TargetFrame(entry, context);
2005
+ return de_TargetFrame(entry, context);
2020
2006
  });
2021
2007
  return retVal;
2022
2008
  };
2023
- const deserializeAws_restJson1ThreadStates = (output, context) => {
2009
+ const de_ThreadStates = (output, context) => {
2024
2010
  const retVal = (output || [])
2025
2011
  .filter((e) => e != null)
2026
2012
  .map((entry) => {
@@ -2031,21 +2017,21 @@ const deserializeAws_restJson1ThreadStates = (output, context) => {
2031
2017
  });
2032
2018
  return retVal;
2033
2019
  };
2034
- const deserializeAws_restJson1TimestampStructure = (output, context) => {
2020
+ const de_TimestampStructure = (output, context) => {
2035
2021
  return {
2036
2022
  value: output.value != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.value)) : undefined,
2037
2023
  };
2038
2024
  };
2039
- const deserializeAws_restJson1UnprocessedEndTimeMap = (output, context) => {
2025
+ const de_UnprocessedEndTimeMap = (output, context) => {
2040
2026
  return Object.entries(output).reduce((acc, [key, value]) => {
2041
2027
  if (value === null) {
2042
2028
  return acc;
2043
2029
  }
2044
- acc[key] = deserializeAws_restJson1ListOfTimestamps(value, context);
2030
+ acc[key] = de_ListOfTimestamps(value, context);
2045
2031
  return acc;
2046
2032
  }, {});
2047
2033
  };
2048
- const deserializeAws_restJson1UserFeedback = (output, context) => {
2034
+ const de_UserFeedback = (output, context) => {
2049
2035
  return {
2050
2036
  type: __expectString(output.type),
2051
2037
  };