@aws-sdk/client-amp 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 (47) hide show
  1. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +2 -2
  2. package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +2 -2
  3. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +2 -2
  4. package/dist-cjs/commands/CreateWorkspaceCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteWorkspaceCommand.js +2 -2
  9. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +2 -2
  10. package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +2 -2
  11. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +2 -2
  12. package/dist-cjs/commands/DescribeWorkspaceCommand.js +2 -2
  13. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +2 -2
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  15. package/dist-cjs/commands/ListWorkspacesCommand.js +2 -2
  16. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +2 -2
  17. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +2 -2
  18. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  19. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  20. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +2 -2
  21. package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +2 -2
  22. package/dist-cjs/protocols/Aws_restJson1.js +300 -300
  23. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +3 -3
  24. package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -3
  25. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +3 -3
  26. package/dist-es/commands/CreateWorkspaceCommand.js +3 -3
  27. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +3 -3
  28. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -3
  29. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +3 -3
  30. package/dist-es/commands/DeleteWorkspaceCommand.js +3 -3
  31. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +3 -3
  32. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +3 -3
  33. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +3 -3
  34. package/dist-es/commands/DescribeWorkspaceCommand.js +3 -3
  35. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +3 -3
  36. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  37. package/dist-es/commands/ListWorkspacesCommand.js +3 -3
  38. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +3 -3
  39. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +3 -3
  40. package/dist-es/commands/TagResourceCommand.js +3 -3
  41. package/dist-es/commands/UntagResourceCommand.js +3 -3
  42. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -3
  43. package/dist-es/commands/UpdateWorkspaceAliasCommand.js +3 -3
  44. package/dist-es/protocols/Aws_restJson1.js +257 -257
  45. package/dist-types/protocols/Aws_restJson1.d.ts +168 -42
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +42 -42
  47. package/package.json +6 -6
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectNonNull a
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AmpServiceException as __BaseException } from "../models/AmpServiceException";
5
5
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const serializeAws_restJson1CreateAlertManagerDefinitionCommand = async (input, context) => {
6
+ export const se_CreateAlertManagerDefinitionCommand = 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",
@@ -26,7 +26,7 @@ export const serializeAws_restJson1CreateAlertManagerDefinitionCommand = async (
26
26
  body,
27
27
  });
28
28
  };
29
- export const serializeAws_restJson1CreateLoggingConfigurationCommand = async (input, context) => {
29
+ export const se_CreateLoggingConfigurationCommand = async (input, context) => {
30
30
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
31
  const headers = {
32
32
  "content-type": "application/json",
@@ -48,7 +48,7 @@ export const serializeAws_restJson1CreateLoggingConfigurationCommand = async (in
48
48
  body,
49
49
  });
50
50
  };
51
- export const serializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (input, context) => {
51
+ export const se_CreateRuleGroupsNamespaceCommand = async (input, context) => {
52
52
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
53
  const headers = {
54
54
  "content-type": "application/json",
@@ -61,7 +61,7 @@ export const serializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (inp
61
61
  clientToken: input.clientToken ?? generateIdempotencyToken(),
62
62
  ...(input.data != null && { data: context.base64Encoder(input.data) }),
63
63
  ...(input.name != null && { name: input.name }),
64
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
64
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
65
65
  });
66
66
  return new __HttpRequest({
67
67
  protocol,
@@ -73,7 +73,7 @@ export const serializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (inp
73
73
  body,
74
74
  });
75
75
  };
76
- export const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
76
+ export const se_CreateWorkspaceCommand = async (input, context) => {
77
77
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
78
78
  const headers = {
79
79
  "content-type": "application/json",
@@ -83,7 +83,7 @@ export const serializeAws_restJson1CreateWorkspaceCommand = async (input, contex
83
83
  body = JSON.stringify({
84
84
  ...(input.alias != null && { alias: input.alias }),
85
85
  clientToken: input.clientToken ?? generateIdempotencyToken(),
86
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
86
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
87
87
  });
88
88
  return new __HttpRequest({
89
89
  protocol,
@@ -95,7 +95,7 @@ export const serializeAws_restJson1CreateWorkspaceCommand = async (input, contex
95
95
  body,
96
96
  });
97
97
  };
98
- export const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (input, context) => {
98
+ export const se_DeleteAlertManagerDefinitionCommand = async (input, context) => {
99
99
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
100
  const headers = {};
101
101
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -116,7 +116,7 @@ export const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (
116
116
  body,
117
117
  });
118
118
  };
119
- export const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (input, context) => {
119
+ export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
120
120
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
121
  const headers = {};
122
122
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
@@ -136,7 +136,7 @@ export const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (in
136
136
  body,
137
137
  });
138
138
  };
139
- export const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (input, context) => {
139
+ export const se_DeleteRuleGroupsNamespaceCommand = async (input, context) => {
140
140
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
141
  const headers = {};
142
142
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -158,7 +158,7 @@ export const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (inp
158
158
  body,
159
159
  });
160
160
  };
161
- export const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
161
+ export const se_DeleteWorkspaceCommand = async (input, context) => {
162
162
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
163
  const headers = {};
164
164
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
@@ -178,7 +178,7 @@ export const serializeAws_restJson1DeleteWorkspaceCommand = async (input, contex
178
178
  body,
179
179
  });
180
180
  };
181
- export const serializeAws_restJson1DescribeAlertManagerDefinitionCommand = async (input, context) => {
181
+ export const se_DescribeAlertManagerDefinitionCommand = async (input, context) => {
182
182
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
183
183
  const headers = {};
184
184
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -195,7 +195,7 @@ export const serializeAws_restJson1DescribeAlertManagerDefinitionCommand = async
195
195
  body,
196
196
  });
197
197
  };
198
- export const serializeAws_restJson1DescribeLoggingConfigurationCommand = async (input, context) => {
198
+ export const se_DescribeLoggingConfigurationCommand = async (input, context) => {
199
199
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
200
  const headers = {};
201
201
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
@@ -211,7 +211,7 @@ export const serializeAws_restJson1DescribeLoggingConfigurationCommand = async (
211
211
  body,
212
212
  });
213
213
  };
214
- export const serializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (input, context) => {
214
+ export const se_DescribeRuleGroupsNamespaceCommand = async (input, context) => {
215
215
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
216
  const headers = {};
217
217
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -229,7 +229,7 @@ export const serializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (i
229
229
  body,
230
230
  });
231
231
  };
232
- export const serializeAws_restJson1DescribeWorkspaceCommand = async (input, context) => {
232
+ export const se_DescribeWorkspaceCommand = async (input, context) => {
233
233
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
234
  const headers = {};
235
235
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
@@ -245,7 +245,7 @@ export const serializeAws_restJson1DescribeWorkspaceCommand = async (input, cont
245
245
  body,
246
246
  });
247
247
  };
248
- export const serializeAws_restJson1ListRuleGroupsNamespacesCommand = async (input, context) => {
248
+ export const se_ListRuleGroupsNamespacesCommand = async (input, context) => {
249
249
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
250
  const headers = {};
251
251
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -268,7 +268,7 @@ export const serializeAws_restJson1ListRuleGroupsNamespacesCommand = async (inpu
268
268
  body,
269
269
  });
270
270
  };
271
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
271
+ export const se_ListTagsForResourceCommand = async (input, context) => {
272
272
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
273
  const headers = {};
274
274
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -284,7 +284,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
284
284
  body,
285
285
  });
286
286
  };
287
- export const serializeAws_restJson1ListWorkspacesCommand = async (input, context) => {
287
+ export const se_ListWorkspacesCommand = async (input, context) => {
288
288
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
289
289
  const headers = {};
290
290
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
@@ -305,7 +305,7 @@ export const serializeAws_restJson1ListWorkspacesCommand = async (input, context
305
305
  body,
306
306
  });
307
307
  };
308
- export const serializeAws_restJson1PutAlertManagerDefinitionCommand = async (input, context) => {
308
+ export const se_PutAlertManagerDefinitionCommand = async (input, context) => {
309
309
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
310
  const headers = {
311
311
  "content-type": "application/json",
@@ -328,7 +328,7 @@ export const serializeAws_restJson1PutAlertManagerDefinitionCommand = async (inp
328
328
  body,
329
329
  });
330
330
  };
331
- export const serializeAws_restJson1PutRuleGroupsNamespaceCommand = async (input, context) => {
331
+ export const se_PutRuleGroupsNamespaceCommand = async (input, context) => {
332
332
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
333
  const headers = {
334
334
  "content-type": "application/json",
@@ -352,7 +352,7 @@ export const serializeAws_restJson1PutRuleGroupsNamespaceCommand = async (input,
352
352
  body,
353
353
  });
354
354
  };
355
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
355
+ export const se_TagResourceCommand = async (input, context) => {
356
356
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
357
357
  const headers = {
358
358
  "content-type": "application/json",
@@ -361,7 +361,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
361
361
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
362
362
  let body;
363
363
  body = JSON.stringify({
364
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
364
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
365
365
  });
366
366
  return new __HttpRequest({
367
367
  protocol,
@@ -373,7 +373,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
373
373
  body,
374
374
  });
375
375
  };
376
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
376
+ export const se_UntagResourceCommand = async (input, context) => {
377
377
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
378
378
  const headers = {};
379
379
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -396,7 +396,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
396
396
  body,
397
397
  });
398
398
  };
399
- export const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (input, context) => {
399
+ export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
400
400
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
401
401
  const headers = {
402
402
  "content-type": "application/json",
@@ -418,7 +418,7 @@ export const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (in
418
418
  body,
419
419
  });
420
420
  };
421
- export const serializeAws_restJson1UpdateWorkspaceAliasCommand = async (input, context) => {
421
+ export const se_UpdateWorkspaceAliasCommand = async (input, context) => {
422
422
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
423
  const headers = {
424
424
  "content-type": "application/json",
@@ -440,20 +440,20 @@ export const serializeAws_restJson1UpdateWorkspaceAliasCommand = async (input, c
440
440
  body,
441
441
  });
442
442
  };
443
- export const deserializeAws_restJson1CreateAlertManagerDefinitionCommand = async (output, context) => {
443
+ export const de_CreateAlertManagerDefinitionCommand = async (output, context) => {
444
444
  if (output.statusCode !== 202 && output.statusCode >= 300) {
445
- return deserializeAws_restJson1CreateAlertManagerDefinitionCommandError(output, context);
445
+ return de_CreateAlertManagerDefinitionCommandError(output, context);
446
446
  }
447
447
  const contents = map({
448
448
  $metadata: deserializeMetadata(output),
449
449
  });
450
450
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
451
451
  if (data.status != null) {
452
- contents.status = deserializeAws_restJson1AlertManagerDefinitionStatus(data.status, context);
452
+ contents.status = de_AlertManagerDefinitionStatus(data.status, context);
453
453
  }
454
454
  return contents;
455
455
  };
456
- const deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = async (output, context) => {
456
+ const de_CreateAlertManagerDefinitionCommandError = async (output, context) => {
457
457
  const parsedOutput = {
458
458
  ...output,
459
459
  body: await parseErrorBody(output.body, context),
@@ -462,25 +462,25 @@ const deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = async (
462
462
  switch (errorCode) {
463
463
  case "AccessDeniedException":
464
464
  case "com.amazonaws.amp#AccessDeniedException":
465
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
465
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
466
466
  case "ConflictException":
467
467
  case "com.amazonaws.amp#ConflictException":
468
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
468
+ throw await de_ConflictExceptionRes(parsedOutput, context);
469
469
  case "InternalServerException":
470
470
  case "com.amazonaws.amp#InternalServerException":
471
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
471
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
472
472
  case "ResourceNotFoundException":
473
473
  case "com.amazonaws.amp#ResourceNotFoundException":
474
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
474
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
475
475
  case "ServiceQuotaExceededException":
476
476
  case "com.amazonaws.amp#ServiceQuotaExceededException":
477
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
477
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
478
478
  case "ThrottlingException":
479
479
  case "com.amazonaws.amp#ThrottlingException":
480
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
480
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
481
481
  case "ValidationException":
482
482
  case "com.amazonaws.amp#ValidationException":
483
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
483
+ throw await de_ValidationExceptionRes(parsedOutput, context);
484
484
  default:
485
485
  const parsedBody = parsedOutput.body;
486
486
  throwDefaultError({
@@ -491,20 +491,20 @@ const deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = async (
491
491
  });
492
492
  }
493
493
  };
494
- export const deserializeAws_restJson1CreateLoggingConfigurationCommand = async (output, context) => {
494
+ export const de_CreateLoggingConfigurationCommand = async (output, context) => {
495
495
  if (output.statusCode !== 202 && output.statusCode >= 300) {
496
- return deserializeAws_restJson1CreateLoggingConfigurationCommandError(output, context);
496
+ return de_CreateLoggingConfigurationCommandError(output, context);
497
497
  }
498
498
  const contents = map({
499
499
  $metadata: deserializeMetadata(output),
500
500
  });
501
501
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
502
502
  if (data.status != null) {
503
- contents.status = deserializeAws_restJson1LoggingConfigurationStatus(data.status, context);
503
+ contents.status = de_LoggingConfigurationStatus(data.status, context);
504
504
  }
505
505
  return contents;
506
506
  };
507
- const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (output, context) => {
507
+ const de_CreateLoggingConfigurationCommandError = async (output, context) => {
508
508
  const parsedOutput = {
509
509
  ...output,
510
510
  body: await parseErrorBody(output.body, context),
@@ -513,16 +513,16 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
513
513
  switch (errorCode) {
514
514
  case "AccessDeniedException":
515
515
  case "com.amazonaws.amp#AccessDeniedException":
516
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
516
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
517
517
  case "InternalServerException":
518
518
  case "com.amazonaws.amp#InternalServerException":
519
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
519
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
520
520
  case "ResourceNotFoundException":
521
521
  case "com.amazonaws.amp#ResourceNotFoundException":
522
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
522
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
523
523
  case "ValidationException":
524
524
  case "com.amazonaws.amp#ValidationException":
525
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
525
+ throw await de_ValidationExceptionRes(parsedOutput, context);
526
526
  default:
527
527
  const parsedBody = parsedOutput.body;
528
528
  throwDefaultError({
@@ -533,9 +533,9 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
533
533
  });
534
534
  }
535
535
  };
536
- export const deserializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (output, context) => {
536
+ export const de_CreateRuleGroupsNamespaceCommand = async (output, context) => {
537
537
  if (output.statusCode !== 202 && output.statusCode >= 300) {
538
- return deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError(output, context);
538
+ return de_CreateRuleGroupsNamespaceCommandError(output, context);
539
539
  }
540
540
  const contents = map({
541
541
  $metadata: deserializeMetadata(output),
@@ -548,14 +548,14 @@ export const deserializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (o
548
548
  contents.name = __expectString(data.name);
549
549
  }
550
550
  if (data.status != null) {
551
- contents.status = deserializeAws_restJson1RuleGroupsNamespaceStatus(data.status, context);
551
+ contents.status = de_RuleGroupsNamespaceStatus(data.status, context);
552
552
  }
553
553
  if (data.tags != null) {
554
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
554
+ contents.tags = de_TagMap(data.tags, context);
555
555
  }
556
556
  return contents;
557
557
  };
558
- const deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError = async (output, context) => {
558
+ const de_CreateRuleGroupsNamespaceCommandError = async (output, context) => {
559
559
  const parsedOutput = {
560
560
  ...output,
561
561
  body: await parseErrorBody(output.body, context),
@@ -564,25 +564,25 @@ const deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError = async (out
564
564
  switch (errorCode) {
565
565
  case "AccessDeniedException":
566
566
  case "com.amazonaws.amp#AccessDeniedException":
567
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
567
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
568
568
  case "ConflictException":
569
569
  case "com.amazonaws.amp#ConflictException":
570
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
570
+ throw await de_ConflictExceptionRes(parsedOutput, context);
571
571
  case "InternalServerException":
572
572
  case "com.amazonaws.amp#InternalServerException":
573
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
573
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
574
574
  case "ResourceNotFoundException":
575
575
  case "com.amazonaws.amp#ResourceNotFoundException":
576
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
576
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
577
577
  case "ServiceQuotaExceededException":
578
578
  case "com.amazonaws.amp#ServiceQuotaExceededException":
579
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
579
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
580
580
  case "ThrottlingException":
581
581
  case "com.amazonaws.amp#ThrottlingException":
582
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
582
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
583
583
  case "ValidationException":
584
584
  case "com.amazonaws.amp#ValidationException":
585
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
585
+ throw await de_ValidationExceptionRes(parsedOutput, context);
586
586
  default:
587
587
  const parsedBody = parsedOutput.body;
588
588
  throwDefaultError({
@@ -593,9 +593,9 @@ const deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError = async (out
593
593
  });
594
594
  }
595
595
  };
596
- export const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) => {
596
+ export const de_CreateWorkspaceCommand = async (output, context) => {
597
597
  if (output.statusCode !== 202 && output.statusCode >= 300) {
598
- return deserializeAws_restJson1CreateWorkspaceCommandError(output, context);
598
+ return de_CreateWorkspaceCommandError(output, context);
599
599
  }
600
600
  const contents = map({
601
601
  $metadata: deserializeMetadata(output),
@@ -605,17 +605,17 @@ export const deserializeAws_restJson1CreateWorkspaceCommand = async (output, con
605
605
  contents.arn = __expectString(data.arn);
606
606
  }
607
607
  if (data.status != null) {
608
- contents.status = deserializeAws_restJson1WorkspaceStatus(data.status, context);
608
+ contents.status = de_WorkspaceStatus(data.status, context);
609
609
  }
610
610
  if (data.tags != null) {
611
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
611
+ contents.tags = de_TagMap(data.tags, context);
612
612
  }
613
613
  if (data.workspaceId != null) {
614
614
  contents.workspaceId = __expectString(data.workspaceId);
615
615
  }
616
616
  return contents;
617
617
  };
618
- const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, context) => {
618
+ const de_CreateWorkspaceCommandError = async (output, context) => {
619
619
  const parsedOutput = {
620
620
  ...output,
621
621
  body: await parseErrorBody(output.body, context),
@@ -624,22 +624,22 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
624
624
  switch (errorCode) {
625
625
  case "AccessDeniedException":
626
626
  case "com.amazonaws.amp#AccessDeniedException":
627
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
627
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
628
628
  case "ConflictException":
629
629
  case "com.amazonaws.amp#ConflictException":
630
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
630
+ throw await de_ConflictExceptionRes(parsedOutput, context);
631
631
  case "InternalServerException":
632
632
  case "com.amazonaws.amp#InternalServerException":
633
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
633
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
634
634
  case "ServiceQuotaExceededException":
635
635
  case "com.amazonaws.amp#ServiceQuotaExceededException":
636
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
636
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
637
637
  case "ThrottlingException":
638
638
  case "com.amazonaws.amp#ThrottlingException":
639
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
639
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
640
640
  case "ValidationException":
641
641
  case "com.amazonaws.amp#ValidationException":
642
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
642
+ throw await de_ValidationExceptionRes(parsedOutput, context);
643
643
  default:
644
644
  const parsedBody = parsedOutput.body;
645
645
  throwDefaultError({
@@ -650,9 +650,9 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
650
650
  });
651
651
  }
652
652
  };
653
- export const deserializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (output, context) => {
653
+ export const de_DeleteAlertManagerDefinitionCommand = async (output, context) => {
654
654
  if (output.statusCode !== 202 && output.statusCode >= 300) {
655
- return deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError(output, context);
655
+ return de_DeleteAlertManagerDefinitionCommandError(output, context);
656
656
  }
657
657
  const contents = map({
658
658
  $metadata: deserializeMetadata(output),
@@ -660,7 +660,7 @@ export const deserializeAws_restJson1DeleteAlertManagerDefinitionCommand = async
660
660
  await collectBody(output.body, context);
661
661
  return contents;
662
662
  };
663
- const deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = async (output, context) => {
663
+ const de_DeleteAlertManagerDefinitionCommandError = async (output, context) => {
664
664
  const parsedOutput = {
665
665
  ...output,
666
666
  body: await parseErrorBody(output.body, context),
@@ -669,22 +669,22 @@ const deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = async (
669
669
  switch (errorCode) {
670
670
  case "AccessDeniedException":
671
671
  case "com.amazonaws.amp#AccessDeniedException":
672
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
672
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
673
673
  case "ConflictException":
674
674
  case "com.amazonaws.amp#ConflictException":
675
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
675
+ throw await de_ConflictExceptionRes(parsedOutput, context);
676
676
  case "InternalServerException":
677
677
  case "com.amazonaws.amp#InternalServerException":
678
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
678
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
679
679
  case "ResourceNotFoundException":
680
680
  case "com.amazonaws.amp#ResourceNotFoundException":
681
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
681
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
682
682
  case "ThrottlingException":
683
683
  case "com.amazonaws.amp#ThrottlingException":
684
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
684
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
685
685
  case "ValidationException":
686
686
  case "com.amazonaws.amp#ValidationException":
687
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
687
+ throw await de_ValidationExceptionRes(parsedOutput, context);
688
688
  default:
689
689
  const parsedBody = parsedOutput.body;
690
690
  throwDefaultError({
@@ -695,9 +695,9 @@ const deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = async (
695
695
  });
696
696
  }
697
697
  };
698
- export const deserializeAws_restJson1DeleteLoggingConfigurationCommand = async (output, context) => {
698
+ export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
699
699
  if (output.statusCode !== 202 && output.statusCode >= 300) {
700
- return deserializeAws_restJson1DeleteLoggingConfigurationCommandError(output, context);
700
+ return de_DeleteLoggingConfigurationCommandError(output, context);
701
701
  }
702
702
  const contents = map({
703
703
  $metadata: deserializeMetadata(output),
@@ -705,7 +705,7 @@ export const deserializeAws_restJson1DeleteLoggingConfigurationCommand = async (
705
705
  await collectBody(output.body, context);
706
706
  return contents;
707
707
  };
708
- const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (output, context) => {
708
+ const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
709
709
  const parsedOutput = {
710
710
  ...output,
711
711
  body: await parseErrorBody(output.body, context),
@@ -714,19 +714,19 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
714
714
  switch (errorCode) {
715
715
  case "AccessDeniedException":
716
716
  case "com.amazonaws.amp#AccessDeniedException":
717
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
717
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
718
718
  case "ConflictException":
719
719
  case "com.amazonaws.amp#ConflictException":
720
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
720
+ throw await de_ConflictExceptionRes(parsedOutput, context);
721
721
  case "InternalServerException":
722
722
  case "com.amazonaws.amp#InternalServerException":
723
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
723
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
724
724
  case "ResourceNotFoundException":
725
725
  case "com.amazonaws.amp#ResourceNotFoundException":
726
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
726
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
727
727
  case "ValidationException":
728
728
  case "com.amazonaws.amp#ValidationException":
729
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
729
+ throw await de_ValidationExceptionRes(parsedOutput, context);
730
730
  default:
731
731
  const parsedBody = parsedOutput.body;
732
732
  throwDefaultError({
@@ -737,9 +737,9 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
737
737
  });
738
738
  }
739
739
  };
740
- export const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (output, context) => {
740
+ export const de_DeleteRuleGroupsNamespaceCommand = async (output, context) => {
741
741
  if (output.statusCode !== 202 && output.statusCode >= 300) {
742
- return deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError(output, context);
742
+ return de_DeleteRuleGroupsNamespaceCommandError(output, context);
743
743
  }
744
744
  const contents = map({
745
745
  $metadata: deserializeMetadata(output),
@@ -747,7 +747,7 @@ export const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (o
747
747
  await collectBody(output.body, context);
748
748
  return contents;
749
749
  };
750
- const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError = async (output, context) => {
750
+ const de_DeleteRuleGroupsNamespaceCommandError = async (output, context) => {
751
751
  const parsedOutput = {
752
752
  ...output,
753
753
  body: await parseErrorBody(output.body, context),
@@ -756,22 +756,22 @@ const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError = async (out
756
756
  switch (errorCode) {
757
757
  case "AccessDeniedException":
758
758
  case "com.amazonaws.amp#AccessDeniedException":
759
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
759
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
760
760
  case "ConflictException":
761
761
  case "com.amazonaws.amp#ConflictException":
762
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
762
+ throw await de_ConflictExceptionRes(parsedOutput, context);
763
763
  case "InternalServerException":
764
764
  case "com.amazonaws.amp#InternalServerException":
765
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
765
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
766
766
  case "ResourceNotFoundException":
767
767
  case "com.amazonaws.amp#ResourceNotFoundException":
768
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
768
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
769
769
  case "ThrottlingException":
770
770
  case "com.amazonaws.amp#ThrottlingException":
771
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
771
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
772
772
  case "ValidationException":
773
773
  case "com.amazonaws.amp#ValidationException":
774
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
774
+ throw await de_ValidationExceptionRes(parsedOutput, context);
775
775
  default:
776
776
  const parsedBody = parsedOutput.body;
777
777
  throwDefaultError({
@@ -782,9 +782,9 @@ const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError = async (out
782
782
  });
783
783
  }
784
784
  };
785
- export const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, context) => {
785
+ export const de_DeleteWorkspaceCommand = async (output, context) => {
786
786
  if (output.statusCode !== 202 && output.statusCode >= 300) {
787
- return deserializeAws_restJson1DeleteWorkspaceCommandError(output, context);
787
+ return de_DeleteWorkspaceCommandError(output, context);
788
788
  }
789
789
  const contents = map({
790
790
  $metadata: deserializeMetadata(output),
@@ -792,7 +792,7 @@ export const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, con
792
792
  await collectBody(output.body, context);
793
793
  return contents;
794
794
  };
795
- const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, context) => {
795
+ const de_DeleteWorkspaceCommandError = async (output, context) => {
796
796
  const parsedOutput = {
797
797
  ...output,
798
798
  body: await parseErrorBody(output.body, context),
@@ -801,22 +801,22 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
801
801
  switch (errorCode) {
802
802
  case "AccessDeniedException":
803
803
  case "com.amazonaws.amp#AccessDeniedException":
804
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
804
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
805
805
  case "ConflictException":
806
806
  case "com.amazonaws.amp#ConflictException":
807
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
807
+ throw await de_ConflictExceptionRes(parsedOutput, context);
808
808
  case "InternalServerException":
809
809
  case "com.amazonaws.amp#InternalServerException":
810
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
810
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
811
811
  case "ResourceNotFoundException":
812
812
  case "com.amazonaws.amp#ResourceNotFoundException":
813
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
813
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
814
814
  case "ThrottlingException":
815
815
  case "com.amazonaws.amp#ThrottlingException":
816
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
816
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
817
817
  case "ValidationException":
818
818
  case "com.amazonaws.amp#ValidationException":
819
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
819
+ throw await de_ValidationExceptionRes(parsedOutput, context);
820
820
  default:
821
821
  const parsedBody = parsedOutput.body;
822
822
  throwDefaultError({
@@ -827,20 +827,20 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
827
827
  });
828
828
  }
829
829
  };
830
- export const deserializeAws_restJson1DescribeAlertManagerDefinitionCommand = async (output, context) => {
830
+ export const de_DescribeAlertManagerDefinitionCommand = async (output, context) => {
831
831
  if (output.statusCode !== 200 && output.statusCode >= 300) {
832
- return deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError(output, context);
832
+ return de_DescribeAlertManagerDefinitionCommandError(output, context);
833
833
  }
834
834
  const contents = map({
835
835
  $metadata: deserializeMetadata(output),
836
836
  });
837
837
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
838
838
  if (data.alertManagerDefinition != null) {
839
- contents.alertManagerDefinition = deserializeAws_restJson1AlertManagerDefinitionDescription(data.alertManagerDefinition, context);
839
+ contents.alertManagerDefinition = de_AlertManagerDefinitionDescription(data.alertManagerDefinition, context);
840
840
  }
841
841
  return contents;
842
842
  };
843
- const deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = async (output, context) => {
843
+ const de_DescribeAlertManagerDefinitionCommandError = async (output, context) => {
844
844
  const parsedOutput = {
845
845
  ...output,
846
846
  body: await parseErrorBody(output.body, context),
@@ -849,19 +849,19 @@ const deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = async
849
849
  switch (errorCode) {
850
850
  case "AccessDeniedException":
851
851
  case "com.amazonaws.amp#AccessDeniedException":
852
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
852
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
853
853
  case "InternalServerException":
854
854
  case "com.amazonaws.amp#InternalServerException":
855
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
855
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
856
856
  case "ResourceNotFoundException":
857
857
  case "com.amazonaws.amp#ResourceNotFoundException":
858
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
858
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
859
859
  case "ThrottlingException":
860
860
  case "com.amazonaws.amp#ThrottlingException":
861
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
861
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
862
862
  case "ValidationException":
863
863
  case "com.amazonaws.amp#ValidationException":
864
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
864
+ throw await de_ValidationExceptionRes(parsedOutput, context);
865
865
  default:
866
866
  const parsedBody = parsedOutput.body;
867
867
  throwDefaultError({
@@ -872,20 +872,20 @@ const deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = async
872
872
  });
873
873
  }
874
874
  };
875
- export const deserializeAws_restJson1DescribeLoggingConfigurationCommand = async (output, context) => {
875
+ export const de_DescribeLoggingConfigurationCommand = async (output, context) => {
876
876
  if (output.statusCode !== 200 && output.statusCode >= 300) {
877
- return deserializeAws_restJson1DescribeLoggingConfigurationCommandError(output, context);
877
+ return de_DescribeLoggingConfigurationCommandError(output, context);
878
878
  }
879
879
  const contents = map({
880
880
  $metadata: deserializeMetadata(output),
881
881
  });
882
882
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
883
883
  if (data.loggingConfiguration != null) {
884
- contents.loggingConfiguration = deserializeAws_restJson1LoggingConfigurationMetadata(data.loggingConfiguration, context);
884
+ contents.loggingConfiguration = de_LoggingConfigurationMetadata(data.loggingConfiguration, context);
885
885
  }
886
886
  return contents;
887
887
  };
888
- const deserializeAws_restJson1DescribeLoggingConfigurationCommandError = async (output, context) => {
888
+ const de_DescribeLoggingConfigurationCommandError = async (output, context) => {
889
889
  const parsedOutput = {
890
890
  ...output,
891
891
  body: await parseErrorBody(output.body, context),
@@ -894,16 +894,16 @@ const deserializeAws_restJson1DescribeLoggingConfigurationCommandError = async (
894
894
  switch (errorCode) {
895
895
  case "AccessDeniedException":
896
896
  case "com.amazonaws.amp#AccessDeniedException":
897
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
897
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
898
898
  case "InternalServerException":
899
899
  case "com.amazonaws.amp#InternalServerException":
900
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
900
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
901
901
  case "ResourceNotFoundException":
902
902
  case "com.amazonaws.amp#ResourceNotFoundException":
903
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
903
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
904
904
  case "ValidationException":
905
905
  case "com.amazonaws.amp#ValidationException":
906
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
906
+ throw await de_ValidationExceptionRes(parsedOutput, context);
907
907
  default:
908
908
  const parsedBody = parsedOutput.body;
909
909
  throwDefaultError({
@@ -914,20 +914,20 @@ const deserializeAws_restJson1DescribeLoggingConfigurationCommandError = async (
914
914
  });
915
915
  }
916
916
  };
917
- export const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (output, context) => {
917
+ export const de_DescribeRuleGroupsNamespaceCommand = async (output, context) => {
918
918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
919
- return deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError(output, context);
919
+ return de_DescribeRuleGroupsNamespaceCommandError(output, context);
920
920
  }
921
921
  const contents = map({
922
922
  $metadata: deserializeMetadata(output),
923
923
  });
924
924
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
925
925
  if (data.ruleGroupsNamespace != null) {
926
- contents.ruleGroupsNamespace = deserializeAws_restJson1RuleGroupsNamespaceDescription(data.ruleGroupsNamespace, context);
926
+ contents.ruleGroupsNamespace = de_RuleGroupsNamespaceDescription(data.ruleGroupsNamespace, context);
927
927
  }
928
928
  return contents;
929
929
  };
930
- const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError = async (output, context) => {
930
+ const de_DescribeRuleGroupsNamespaceCommandError = async (output, context) => {
931
931
  const parsedOutput = {
932
932
  ...output,
933
933
  body: await parseErrorBody(output.body, context),
@@ -936,19 +936,19 @@ const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError = async (o
936
936
  switch (errorCode) {
937
937
  case "AccessDeniedException":
938
938
  case "com.amazonaws.amp#AccessDeniedException":
939
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
939
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
940
940
  case "InternalServerException":
941
941
  case "com.amazonaws.amp#InternalServerException":
942
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
942
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
943
943
  case "ResourceNotFoundException":
944
944
  case "com.amazonaws.amp#ResourceNotFoundException":
945
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
945
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
946
946
  case "ThrottlingException":
947
947
  case "com.amazonaws.amp#ThrottlingException":
948
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
948
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
949
949
  case "ValidationException":
950
950
  case "com.amazonaws.amp#ValidationException":
951
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
951
+ throw await de_ValidationExceptionRes(parsedOutput, context);
952
952
  default:
953
953
  const parsedBody = parsedOutput.body;
954
954
  throwDefaultError({
@@ -959,20 +959,20 @@ const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError = async (o
959
959
  });
960
960
  }
961
961
  };
962
- export const deserializeAws_restJson1DescribeWorkspaceCommand = async (output, context) => {
962
+ export const de_DescribeWorkspaceCommand = async (output, context) => {
963
963
  if (output.statusCode !== 200 && output.statusCode >= 300) {
964
- return deserializeAws_restJson1DescribeWorkspaceCommandError(output, context);
964
+ return de_DescribeWorkspaceCommandError(output, context);
965
965
  }
966
966
  const contents = map({
967
967
  $metadata: deserializeMetadata(output),
968
968
  });
969
969
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
970
970
  if (data.workspace != null) {
971
- contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
971
+ contents.workspace = de_WorkspaceDescription(data.workspace, context);
972
972
  }
973
973
  return contents;
974
974
  };
975
- const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, context) => {
975
+ const de_DescribeWorkspaceCommandError = async (output, context) => {
976
976
  const parsedOutput = {
977
977
  ...output,
978
978
  body: await parseErrorBody(output.body, context),
@@ -981,19 +981,19 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
981
981
  switch (errorCode) {
982
982
  case "AccessDeniedException":
983
983
  case "com.amazonaws.amp#AccessDeniedException":
984
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
984
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
985
985
  case "InternalServerException":
986
986
  case "com.amazonaws.amp#InternalServerException":
987
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
987
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
988
988
  case "ResourceNotFoundException":
989
989
  case "com.amazonaws.amp#ResourceNotFoundException":
990
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
990
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
991
991
  case "ThrottlingException":
992
992
  case "com.amazonaws.amp#ThrottlingException":
993
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
993
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
994
994
  case "ValidationException":
995
995
  case "com.amazonaws.amp#ValidationException":
996
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
996
+ throw await de_ValidationExceptionRes(parsedOutput, context);
997
997
  default:
998
998
  const parsedBody = parsedOutput.body;
999
999
  throwDefaultError({
@@ -1004,9 +1004,9 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
1004
1004
  });
1005
1005
  }
1006
1006
  };
1007
- export const deserializeAws_restJson1ListRuleGroupsNamespacesCommand = async (output, context) => {
1007
+ export const de_ListRuleGroupsNamespacesCommand = async (output, context) => {
1008
1008
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1009
- return deserializeAws_restJson1ListRuleGroupsNamespacesCommandError(output, context);
1009
+ return de_ListRuleGroupsNamespacesCommandError(output, context);
1010
1010
  }
1011
1011
  const contents = map({
1012
1012
  $metadata: deserializeMetadata(output),
@@ -1016,11 +1016,11 @@ export const deserializeAws_restJson1ListRuleGroupsNamespacesCommand = async (ou
1016
1016
  contents.nextToken = __expectString(data.nextToken);
1017
1017
  }
1018
1018
  if (data.ruleGroupsNamespaces != null) {
1019
- contents.ruleGroupsNamespaces = deserializeAws_restJson1RuleGroupsNamespaceSummaryList(data.ruleGroupsNamespaces, context);
1019
+ contents.ruleGroupsNamespaces = de_RuleGroupsNamespaceSummaryList(data.ruleGroupsNamespaces, context);
1020
1020
  }
1021
1021
  return contents;
1022
1022
  };
1023
- const deserializeAws_restJson1ListRuleGroupsNamespacesCommandError = async (output, context) => {
1023
+ const de_ListRuleGroupsNamespacesCommandError = async (output, context) => {
1024
1024
  const parsedOutput = {
1025
1025
  ...output,
1026
1026
  body: await parseErrorBody(output.body, context),
@@ -1029,19 +1029,19 @@ const deserializeAws_restJson1ListRuleGroupsNamespacesCommandError = async (outp
1029
1029
  switch (errorCode) {
1030
1030
  case "AccessDeniedException":
1031
1031
  case "com.amazonaws.amp#AccessDeniedException":
1032
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1032
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1033
1033
  case "InternalServerException":
1034
1034
  case "com.amazonaws.amp#InternalServerException":
1035
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1035
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1036
1036
  case "ResourceNotFoundException":
1037
1037
  case "com.amazonaws.amp#ResourceNotFoundException":
1038
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1038
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1039
1039
  case "ThrottlingException":
1040
1040
  case "com.amazonaws.amp#ThrottlingException":
1041
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1041
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1042
1042
  case "ValidationException":
1043
1043
  case "com.amazonaws.amp#ValidationException":
1044
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1044
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1045
1045
  default:
1046
1046
  const parsedBody = parsedOutput.body;
1047
1047
  throwDefaultError({
@@ -1052,20 +1052,20 @@ const deserializeAws_restJson1ListRuleGroupsNamespacesCommandError = async (outp
1052
1052
  });
1053
1053
  }
1054
1054
  };
1055
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1055
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1056
1056
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1057
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
1057
+ return de_ListTagsForResourceCommandError(output, context);
1058
1058
  }
1059
1059
  const contents = map({
1060
1060
  $metadata: deserializeMetadata(output),
1061
1061
  });
1062
1062
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1063
1063
  if (data.tags != null) {
1064
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
1064
+ contents.tags = de_TagMap(data.tags, context);
1065
1065
  }
1066
1066
  return contents;
1067
1067
  };
1068
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1068
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1069
1069
  const parsedOutput = {
1070
1070
  ...output,
1071
1071
  body: await parseErrorBody(output.body, context),
@@ -1074,19 +1074,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1074
1074
  switch (errorCode) {
1075
1075
  case "AccessDeniedException":
1076
1076
  case "com.amazonaws.amp#AccessDeniedException":
1077
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1077
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1078
1078
  case "InternalServerException":
1079
1079
  case "com.amazonaws.amp#InternalServerException":
1080
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1080
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1081
1081
  case "ResourceNotFoundException":
1082
1082
  case "com.amazonaws.amp#ResourceNotFoundException":
1083
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1083
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1084
1084
  case "ThrottlingException":
1085
1085
  case "com.amazonaws.amp#ThrottlingException":
1086
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1086
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1087
1087
  case "ValidationException":
1088
1088
  case "com.amazonaws.amp#ValidationException":
1089
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1089
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1090
1090
  default:
1091
1091
  const parsedBody = parsedOutput.body;
1092
1092
  throwDefaultError({
@@ -1097,9 +1097,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1097
1097
  });
1098
1098
  }
1099
1099
  };
1100
- export const deserializeAws_restJson1ListWorkspacesCommand = async (output, context) => {
1100
+ export const de_ListWorkspacesCommand = async (output, context) => {
1101
1101
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
- return deserializeAws_restJson1ListWorkspacesCommandError(output, context);
1102
+ return de_ListWorkspacesCommandError(output, context);
1103
1103
  }
1104
1104
  const contents = map({
1105
1105
  $metadata: deserializeMetadata(output),
@@ -1109,11 +1109,11 @@ export const deserializeAws_restJson1ListWorkspacesCommand = async (output, cont
1109
1109
  contents.nextToken = __expectString(data.nextToken);
1110
1110
  }
1111
1111
  if (data.workspaces != null) {
1112
- contents.workspaces = deserializeAws_restJson1WorkspaceSummaryList(data.workspaces, context);
1112
+ contents.workspaces = de_WorkspaceSummaryList(data.workspaces, context);
1113
1113
  }
1114
1114
  return contents;
1115
1115
  };
1116
- const deserializeAws_restJson1ListWorkspacesCommandError = async (output, context) => {
1116
+ const de_ListWorkspacesCommandError = async (output, context) => {
1117
1117
  const parsedOutput = {
1118
1118
  ...output,
1119
1119
  body: await parseErrorBody(output.body, context),
@@ -1122,16 +1122,16 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
1122
1122
  switch (errorCode) {
1123
1123
  case "AccessDeniedException":
1124
1124
  case "com.amazonaws.amp#AccessDeniedException":
1125
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1125
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1126
1126
  case "InternalServerException":
1127
1127
  case "com.amazonaws.amp#InternalServerException":
1128
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1128
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1129
1129
  case "ThrottlingException":
1130
1130
  case "com.amazonaws.amp#ThrottlingException":
1131
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1131
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1132
1132
  case "ValidationException":
1133
1133
  case "com.amazonaws.amp#ValidationException":
1134
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1134
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1135
1135
  default:
1136
1136
  const parsedBody = parsedOutput.body;
1137
1137
  throwDefaultError({
@@ -1142,20 +1142,20 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
1142
1142
  });
1143
1143
  }
1144
1144
  };
1145
- export const deserializeAws_restJson1PutAlertManagerDefinitionCommand = async (output, context) => {
1145
+ export const de_PutAlertManagerDefinitionCommand = async (output, context) => {
1146
1146
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1147
- return deserializeAws_restJson1PutAlertManagerDefinitionCommandError(output, context);
1147
+ return de_PutAlertManagerDefinitionCommandError(output, context);
1148
1148
  }
1149
1149
  const contents = map({
1150
1150
  $metadata: deserializeMetadata(output),
1151
1151
  });
1152
1152
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1153
1153
  if (data.status != null) {
1154
- contents.status = deserializeAws_restJson1AlertManagerDefinitionStatus(data.status, context);
1154
+ contents.status = de_AlertManagerDefinitionStatus(data.status, context);
1155
1155
  }
1156
1156
  return contents;
1157
1157
  };
1158
- const deserializeAws_restJson1PutAlertManagerDefinitionCommandError = async (output, context) => {
1158
+ const de_PutAlertManagerDefinitionCommandError = async (output, context) => {
1159
1159
  const parsedOutput = {
1160
1160
  ...output,
1161
1161
  body: await parseErrorBody(output.body, context),
@@ -1164,25 +1164,25 @@ const deserializeAws_restJson1PutAlertManagerDefinitionCommandError = async (out
1164
1164
  switch (errorCode) {
1165
1165
  case "AccessDeniedException":
1166
1166
  case "com.amazonaws.amp#AccessDeniedException":
1167
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1167
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1168
1168
  case "ConflictException":
1169
1169
  case "com.amazonaws.amp#ConflictException":
1170
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1170
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1171
1171
  case "InternalServerException":
1172
1172
  case "com.amazonaws.amp#InternalServerException":
1173
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1173
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1174
1174
  case "ResourceNotFoundException":
1175
1175
  case "com.amazonaws.amp#ResourceNotFoundException":
1176
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1176
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1177
1177
  case "ServiceQuotaExceededException":
1178
1178
  case "com.amazonaws.amp#ServiceQuotaExceededException":
1179
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1179
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1180
1180
  case "ThrottlingException":
1181
1181
  case "com.amazonaws.amp#ThrottlingException":
1182
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1182
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1183
1183
  case "ValidationException":
1184
1184
  case "com.amazonaws.amp#ValidationException":
1185
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1185
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1186
1186
  default:
1187
1187
  const parsedBody = parsedOutput.body;
1188
1188
  throwDefaultError({
@@ -1193,9 +1193,9 @@ const deserializeAws_restJson1PutAlertManagerDefinitionCommandError = async (out
1193
1193
  });
1194
1194
  }
1195
1195
  };
1196
- export const deserializeAws_restJson1PutRuleGroupsNamespaceCommand = async (output, context) => {
1196
+ export const de_PutRuleGroupsNamespaceCommand = async (output, context) => {
1197
1197
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1198
- return deserializeAws_restJson1PutRuleGroupsNamespaceCommandError(output, context);
1198
+ return de_PutRuleGroupsNamespaceCommandError(output, context);
1199
1199
  }
1200
1200
  const contents = map({
1201
1201
  $metadata: deserializeMetadata(output),
@@ -1208,14 +1208,14 @@ export const deserializeAws_restJson1PutRuleGroupsNamespaceCommand = async (outp
1208
1208
  contents.name = __expectString(data.name);
1209
1209
  }
1210
1210
  if (data.status != null) {
1211
- contents.status = deserializeAws_restJson1RuleGroupsNamespaceStatus(data.status, context);
1211
+ contents.status = de_RuleGroupsNamespaceStatus(data.status, context);
1212
1212
  }
1213
1213
  if (data.tags != null) {
1214
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
1214
+ contents.tags = de_TagMap(data.tags, context);
1215
1215
  }
1216
1216
  return contents;
1217
1217
  };
1218
- const deserializeAws_restJson1PutRuleGroupsNamespaceCommandError = async (output, context) => {
1218
+ const de_PutRuleGroupsNamespaceCommandError = async (output, context) => {
1219
1219
  const parsedOutput = {
1220
1220
  ...output,
1221
1221
  body: await parseErrorBody(output.body, context),
@@ -1224,25 +1224,25 @@ const deserializeAws_restJson1PutRuleGroupsNamespaceCommandError = async (output
1224
1224
  switch (errorCode) {
1225
1225
  case "AccessDeniedException":
1226
1226
  case "com.amazonaws.amp#AccessDeniedException":
1227
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1227
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1228
1228
  case "ConflictException":
1229
1229
  case "com.amazonaws.amp#ConflictException":
1230
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1230
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1231
1231
  case "InternalServerException":
1232
1232
  case "com.amazonaws.amp#InternalServerException":
1233
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1233
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1234
1234
  case "ResourceNotFoundException":
1235
1235
  case "com.amazonaws.amp#ResourceNotFoundException":
1236
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1236
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1237
1237
  case "ServiceQuotaExceededException":
1238
1238
  case "com.amazonaws.amp#ServiceQuotaExceededException":
1239
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1239
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1240
1240
  case "ThrottlingException":
1241
1241
  case "com.amazonaws.amp#ThrottlingException":
1242
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1242
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1243
1243
  case "ValidationException":
1244
1244
  case "com.amazonaws.amp#ValidationException":
1245
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1245
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1246
1246
  default:
1247
1247
  const parsedBody = parsedOutput.body;
1248
1248
  throwDefaultError({
@@ -1253,9 +1253,9 @@ const deserializeAws_restJson1PutRuleGroupsNamespaceCommandError = async (output
1253
1253
  });
1254
1254
  }
1255
1255
  };
1256
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1256
+ export const de_TagResourceCommand = async (output, context) => {
1257
1257
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1258
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1258
+ return de_TagResourceCommandError(output, context);
1259
1259
  }
1260
1260
  const contents = map({
1261
1261
  $metadata: deserializeMetadata(output),
@@ -1263,7 +1263,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
1263
1263
  await collectBody(output.body, context);
1264
1264
  return contents;
1265
1265
  };
1266
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1266
+ const de_TagResourceCommandError = async (output, context) => {
1267
1267
  const parsedOutput = {
1268
1268
  ...output,
1269
1269
  body: await parseErrorBody(output.body, context),
@@ -1272,19 +1272,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1272
1272
  switch (errorCode) {
1273
1273
  case "AccessDeniedException":
1274
1274
  case "com.amazonaws.amp#AccessDeniedException":
1275
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1275
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1276
1276
  case "InternalServerException":
1277
1277
  case "com.amazonaws.amp#InternalServerException":
1278
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1278
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1279
1279
  case "ResourceNotFoundException":
1280
1280
  case "com.amazonaws.amp#ResourceNotFoundException":
1281
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1281
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1282
1282
  case "ThrottlingException":
1283
1283
  case "com.amazonaws.amp#ThrottlingException":
1284
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1284
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1285
1285
  case "ValidationException":
1286
1286
  case "com.amazonaws.amp#ValidationException":
1287
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1287
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1288
1288
  default:
1289
1289
  const parsedBody = parsedOutput.body;
1290
1290
  throwDefaultError({
@@ -1295,9 +1295,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1295
1295
  });
1296
1296
  }
1297
1297
  };
1298
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1298
+ export const de_UntagResourceCommand = async (output, context) => {
1299
1299
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1300
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1300
+ return de_UntagResourceCommandError(output, context);
1301
1301
  }
1302
1302
  const contents = map({
1303
1303
  $metadata: deserializeMetadata(output),
@@ -1305,7 +1305,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
1305
1305
  await collectBody(output.body, context);
1306
1306
  return contents;
1307
1307
  };
1308
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1308
+ const de_UntagResourceCommandError = async (output, context) => {
1309
1309
  const parsedOutput = {
1310
1310
  ...output,
1311
1311
  body: await parseErrorBody(output.body, context),
@@ -1314,19 +1314,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1314
1314
  switch (errorCode) {
1315
1315
  case "AccessDeniedException":
1316
1316
  case "com.amazonaws.amp#AccessDeniedException":
1317
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1317
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1318
1318
  case "InternalServerException":
1319
1319
  case "com.amazonaws.amp#InternalServerException":
1320
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1320
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1321
1321
  case "ResourceNotFoundException":
1322
1322
  case "com.amazonaws.amp#ResourceNotFoundException":
1323
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1323
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1324
1324
  case "ThrottlingException":
1325
1325
  case "com.amazonaws.amp#ThrottlingException":
1326
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1326
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1327
1327
  case "ValidationException":
1328
1328
  case "com.amazonaws.amp#ValidationException":
1329
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1329
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1330
1330
  default:
1331
1331
  const parsedBody = parsedOutput.body;
1332
1332
  throwDefaultError({
@@ -1337,20 +1337,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1337
1337
  });
1338
1338
  }
1339
1339
  };
1340
- export const deserializeAws_restJson1UpdateLoggingConfigurationCommand = async (output, context) => {
1340
+ export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
1341
1341
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1342
- return deserializeAws_restJson1UpdateLoggingConfigurationCommandError(output, context);
1342
+ return de_UpdateLoggingConfigurationCommandError(output, context);
1343
1343
  }
1344
1344
  const contents = map({
1345
1345
  $metadata: deserializeMetadata(output),
1346
1346
  });
1347
1347
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1348
1348
  if (data.status != null) {
1349
- contents.status = deserializeAws_restJson1LoggingConfigurationStatus(data.status, context);
1349
+ contents.status = de_LoggingConfigurationStatus(data.status, context);
1350
1350
  }
1351
1351
  return contents;
1352
1352
  };
1353
- const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (output, context) => {
1353
+ const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
1354
1354
  const parsedOutput = {
1355
1355
  ...output,
1356
1356
  body: await parseErrorBody(output.body, context),
@@ -1359,19 +1359,19 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
1359
1359
  switch (errorCode) {
1360
1360
  case "AccessDeniedException":
1361
1361
  case "com.amazonaws.amp#AccessDeniedException":
1362
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1362
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1363
1363
  case "ConflictException":
1364
1364
  case "com.amazonaws.amp#ConflictException":
1365
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1365
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1366
1366
  case "InternalServerException":
1367
1367
  case "com.amazonaws.amp#InternalServerException":
1368
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1368
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1369
1369
  case "ResourceNotFoundException":
1370
1370
  case "com.amazonaws.amp#ResourceNotFoundException":
1371
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1371
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1372
1372
  case "ValidationException":
1373
1373
  case "com.amazonaws.amp#ValidationException":
1374
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1374
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1375
1375
  default:
1376
1376
  const parsedBody = parsedOutput.body;
1377
1377
  throwDefaultError({
@@ -1382,9 +1382,9 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
1382
1382
  });
1383
1383
  }
1384
1384
  };
1385
- export const deserializeAws_restJson1UpdateWorkspaceAliasCommand = async (output, context) => {
1385
+ export const de_UpdateWorkspaceAliasCommand = async (output, context) => {
1386
1386
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1387
- return deserializeAws_restJson1UpdateWorkspaceAliasCommandError(output, context);
1387
+ return de_UpdateWorkspaceAliasCommandError(output, context);
1388
1388
  }
1389
1389
  const contents = map({
1390
1390
  $metadata: deserializeMetadata(output),
@@ -1392,7 +1392,7 @@ export const deserializeAws_restJson1UpdateWorkspaceAliasCommand = async (output
1392
1392
  await collectBody(output.body, context);
1393
1393
  return contents;
1394
1394
  };
1395
- const deserializeAws_restJson1UpdateWorkspaceAliasCommandError = async (output, context) => {
1395
+ const de_UpdateWorkspaceAliasCommandError = async (output, context) => {
1396
1396
  const parsedOutput = {
1397
1397
  ...output,
1398
1398
  body: await parseErrorBody(output.body, context),
@@ -1401,25 +1401,25 @@ const deserializeAws_restJson1UpdateWorkspaceAliasCommandError = async (output,
1401
1401
  switch (errorCode) {
1402
1402
  case "AccessDeniedException":
1403
1403
  case "com.amazonaws.amp#AccessDeniedException":
1404
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1404
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1405
1405
  case "ConflictException":
1406
1406
  case "com.amazonaws.amp#ConflictException":
1407
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1407
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1408
1408
  case "InternalServerException":
1409
1409
  case "com.amazonaws.amp#InternalServerException":
1410
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1410
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1411
1411
  case "ResourceNotFoundException":
1412
1412
  case "com.amazonaws.amp#ResourceNotFoundException":
1413
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1413
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1414
1414
  case "ServiceQuotaExceededException":
1415
1415
  case "com.amazonaws.amp#ServiceQuotaExceededException":
1416
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1416
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1417
1417
  case "ThrottlingException":
1418
1418
  case "com.amazonaws.amp#ThrottlingException":
1419
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1419
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1420
1420
  case "ValidationException":
1421
1421
  case "com.amazonaws.amp#ValidationException":
1422
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1422
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1423
1423
  default:
1424
1424
  const parsedBody = parsedOutput.body;
1425
1425
  throwDefaultError({
@@ -1431,7 +1431,7 @@ const deserializeAws_restJson1UpdateWorkspaceAliasCommandError = async (output,
1431
1431
  }
1432
1432
  };
1433
1433
  const map = __map;
1434
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1434
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1435
1435
  const contents = map({});
1436
1436
  const data = parsedOutput.body;
1437
1437
  if (data.message != null) {
@@ -1443,7 +1443,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1443
1443
  });
1444
1444
  return __decorateServiceException(exception, parsedOutput.body);
1445
1445
  };
1446
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1446
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1447
1447
  const contents = map({});
1448
1448
  const data = parsedOutput.body;
1449
1449
  if (data.message != null) {
@@ -1461,7 +1461,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1461
1461
  });
1462
1462
  return __decorateServiceException(exception, parsedOutput.body);
1463
1463
  };
1464
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1464
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1465
1465
  const contents = map({
1466
1466
  retryAfterSeconds: [
1467
1467
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -1478,7 +1478,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1478
1478
  });
1479
1479
  return __decorateServiceException(exception, parsedOutput.body);
1480
1480
  };
1481
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1481
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1482
1482
  const contents = map({});
1483
1483
  const data = parsedOutput.body;
1484
1484
  if (data.message != null) {
@@ -1496,7 +1496,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1496
1496
  });
1497
1497
  return __decorateServiceException(exception, parsedOutput.body);
1498
1498
  };
1499
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1499
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1500
1500
  const contents = map({});
1501
1501
  const data = parsedOutput.body;
1502
1502
  if (data.message != null) {
@@ -1520,7 +1520,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1520
1520
  });
1521
1521
  return __decorateServiceException(exception, parsedOutput.body);
1522
1522
  };
1523
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1523
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1524
1524
  const contents = map({
1525
1525
  retryAfterSeconds: [
1526
1526
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -1543,11 +1543,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1543
1543
  });
1544
1544
  return __decorateServiceException(exception, parsedOutput.body);
1545
1545
  };
1546
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1546
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1547
1547
  const contents = map({});
1548
1548
  const data = parsedOutput.body;
1549
1549
  if (data.fieldList != null) {
1550
- contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
1550
+ contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
1551
1551
  }
1552
1552
  if (data.message != null) {
1553
1553
  contents.message = __expectString(data.message);
@@ -1561,7 +1561,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1561
1561
  });
1562
1562
  return __decorateServiceException(exception, parsedOutput.body);
1563
1563
  };
1564
- const serializeAws_restJson1TagMap = (input, context) => {
1564
+ const se_TagMap = (input, context) => {
1565
1565
  return Object.entries(input).reduce((acc, [key, value]) => {
1566
1566
  if (value === null) {
1567
1567
  return acc;
@@ -1570,74 +1570,74 @@ const serializeAws_restJson1TagMap = (input, context) => {
1570
1570
  return acc;
1571
1571
  }, {});
1572
1572
  };
1573
- const deserializeAws_restJson1AlertManagerDefinitionDescription = (output, context) => {
1573
+ const de_AlertManagerDefinitionDescription = (output, context) => {
1574
1574
  return {
1575
1575
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1576
1576
  data: output.data != null ? context.base64Decoder(output.data) : undefined,
1577
1577
  modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
1578
- status: output.status != null ? deserializeAws_restJson1AlertManagerDefinitionStatus(output.status, context) : undefined,
1578
+ status: output.status != null ? de_AlertManagerDefinitionStatus(output.status, context) : undefined,
1579
1579
  };
1580
1580
  };
1581
- const deserializeAws_restJson1AlertManagerDefinitionStatus = (output, context) => {
1581
+ const de_AlertManagerDefinitionStatus = (output, context) => {
1582
1582
  return {
1583
1583
  statusCode: __expectString(output.statusCode),
1584
1584
  statusReason: __expectString(output.statusReason),
1585
1585
  };
1586
1586
  };
1587
- const deserializeAws_restJson1LoggingConfigurationMetadata = (output, context) => {
1587
+ const de_LoggingConfigurationMetadata = (output, context) => {
1588
1588
  return {
1589
1589
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1590
1590
  logGroupArn: __expectString(output.logGroupArn),
1591
1591
  modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
1592
- status: output.status != null ? deserializeAws_restJson1LoggingConfigurationStatus(output.status, context) : undefined,
1592
+ status: output.status != null ? de_LoggingConfigurationStatus(output.status, context) : undefined,
1593
1593
  workspace: __expectString(output.workspace),
1594
1594
  };
1595
1595
  };
1596
- const deserializeAws_restJson1LoggingConfigurationStatus = (output, context) => {
1596
+ const de_LoggingConfigurationStatus = (output, context) => {
1597
1597
  return {
1598
1598
  statusCode: __expectString(output.statusCode),
1599
1599
  statusReason: __expectString(output.statusReason),
1600
1600
  };
1601
1601
  };
1602
- const deserializeAws_restJson1RuleGroupsNamespaceDescription = (output, context) => {
1602
+ const de_RuleGroupsNamespaceDescription = (output, context) => {
1603
1603
  return {
1604
1604
  arn: __expectString(output.arn),
1605
1605
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1606
1606
  data: output.data != null ? context.base64Decoder(output.data) : undefined,
1607
1607
  modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
1608
1608
  name: __expectString(output.name),
1609
- status: output.status != null ? deserializeAws_restJson1RuleGroupsNamespaceStatus(output.status, context) : undefined,
1610
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1609
+ status: output.status != null ? de_RuleGroupsNamespaceStatus(output.status, context) : undefined,
1610
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1611
1611
  };
1612
1612
  };
1613
- const deserializeAws_restJson1RuleGroupsNamespaceStatus = (output, context) => {
1613
+ const de_RuleGroupsNamespaceStatus = (output, context) => {
1614
1614
  return {
1615
1615
  statusCode: __expectString(output.statusCode),
1616
1616
  statusReason: __expectString(output.statusReason),
1617
1617
  };
1618
1618
  };
1619
- const deserializeAws_restJson1RuleGroupsNamespaceSummary = (output, context) => {
1619
+ const de_RuleGroupsNamespaceSummary = (output, context) => {
1620
1620
  return {
1621
1621
  arn: __expectString(output.arn),
1622
1622
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1623
1623
  modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
1624
1624
  name: __expectString(output.name),
1625
- status: output.status != null ? deserializeAws_restJson1RuleGroupsNamespaceStatus(output.status, context) : undefined,
1626
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1625
+ status: output.status != null ? de_RuleGroupsNamespaceStatus(output.status, context) : undefined,
1626
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1627
1627
  };
1628
1628
  };
1629
- const deserializeAws_restJson1RuleGroupsNamespaceSummaryList = (output, context) => {
1629
+ const de_RuleGroupsNamespaceSummaryList = (output, context) => {
1630
1630
  const retVal = (output || [])
1631
1631
  .filter((e) => e != null)
1632
1632
  .map((entry) => {
1633
1633
  if (entry === null) {
1634
1634
  return null;
1635
1635
  }
1636
- return deserializeAws_restJson1RuleGroupsNamespaceSummary(entry, context);
1636
+ return de_RuleGroupsNamespaceSummary(entry, context);
1637
1637
  });
1638
1638
  return retVal;
1639
1639
  };
1640
- const deserializeAws_restJson1TagMap = (output, context) => {
1640
+ const de_TagMap = (output, context) => {
1641
1641
  return Object.entries(output).reduce((acc, [key, value]) => {
1642
1642
  if (value === null) {
1643
1643
  return acc;
@@ -1646,57 +1646,57 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1646
1646
  return acc;
1647
1647
  }, {});
1648
1648
  };
1649
- const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
1649
+ const de_ValidationExceptionField = (output, context) => {
1650
1650
  return {
1651
1651
  message: __expectString(output.message),
1652
1652
  name: __expectString(output.name),
1653
1653
  };
1654
1654
  };
1655
- const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
1655
+ const de_ValidationExceptionFieldList = (output, context) => {
1656
1656
  const retVal = (output || [])
1657
1657
  .filter((e) => e != null)
1658
1658
  .map((entry) => {
1659
1659
  if (entry === null) {
1660
1660
  return null;
1661
1661
  }
1662
- return deserializeAws_restJson1ValidationExceptionField(entry, context);
1662
+ return de_ValidationExceptionField(entry, context);
1663
1663
  });
1664
1664
  return retVal;
1665
1665
  };
1666
- const deserializeAws_restJson1WorkspaceDescription = (output, context) => {
1666
+ const de_WorkspaceDescription = (output, context) => {
1667
1667
  return {
1668
1668
  alias: __expectString(output.alias),
1669
1669
  arn: __expectString(output.arn),
1670
1670
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1671
1671
  prometheusEndpoint: __expectString(output.prometheusEndpoint),
1672
- status: output.status != null ? deserializeAws_restJson1WorkspaceStatus(output.status, context) : undefined,
1673
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1672
+ status: output.status != null ? de_WorkspaceStatus(output.status, context) : undefined,
1673
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1674
1674
  workspaceId: __expectString(output.workspaceId),
1675
1675
  };
1676
1676
  };
1677
- const deserializeAws_restJson1WorkspaceStatus = (output, context) => {
1677
+ const de_WorkspaceStatus = (output, context) => {
1678
1678
  return {
1679
1679
  statusCode: __expectString(output.statusCode),
1680
1680
  };
1681
1681
  };
1682
- const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
1682
+ const de_WorkspaceSummary = (output, context) => {
1683
1683
  return {
1684
1684
  alias: __expectString(output.alias),
1685
1685
  arn: __expectString(output.arn),
1686
1686
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1687
- status: output.status != null ? deserializeAws_restJson1WorkspaceStatus(output.status, context) : undefined,
1688
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1687
+ status: output.status != null ? de_WorkspaceStatus(output.status, context) : undefined,
1688
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1689
1689
  workspaceId: __expectString(output.workspaceId),
1690
1690
  };
1691
1691
  };
1692
- const deserializeAws_restJson1WorkspaceSummaryList = (output, context) => {
1692
+ const de_WorkspaceSummaryList = (output, context) => {
1693
1693
  const retVal = (output || [])
1694
1694
  .filter((e) => e != null)
1695
1695
  .map((entry) => {
1696
1696
  if (entry === null) {
1697
1697
  return null;
1698
1698
  }
1699
- return deserializeAws_restJson1WorkspaceSummary(entry, context);
1699
+ return de_WorkspaceSummary(entry, context);
1700
1700
  });
1701
1701
  return retVal;
1702
1702
  };