@aws-sdk/client-amp 3.54.0 → 3.56.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 (33) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/AmpClient.js +13 -13
  3. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +3 -3
  4. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +3 -3
  5. package/dist-cjs/commands/CreateWorkspaceCommand.js +3 -3
  6. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteWorkspaceCommand.js +3 -3
  9. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeWorkspaceCommand.js +3 -3
  12. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +3 -3
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  14. package/dist-cjs/commands/ListWorkspacesCommand.js +3 -3
  15. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +3 -3
  16. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +3 -3
  17. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  18. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  19. package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +3 -3
  20. package/dist-cjs/endpoints.js +1 -1
  21. package/dist-cjs/protocols/Aws_restJson1.js +114 -114
  22. package/dist-cjs/runtimeConfig.browser.js +4 -4
  23. package/dist-cjs/runtimeConfig.js +9 -9
  24. package/dist-cjs/runtimeConfig.native.js +1 -1
  25. package/dist-cjs/waiters/waitForWorkspaceActive.js +3 -3
  26. package/dist-cjs/waiters/waitForWorkspaceDeleted.js +3 -3
  27. package/dist-es/Amp.js +17 -17
  28. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +4 -4
  29. package/dist-es/pagination/ListWorkspacesPaginator.js +4 -4
  30. package/dist-es/protocols/Aws_restJson1.js +17 -17
  31. package/dist-types/runtimeConfig.native.d.ts +2 -2
  32. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  33. package/package.json +35 -35
@@ -19,14 +19,14 @@ const serializeAws_restJson1CreateAlertManagerDefinitionCommand = async (input,
19
19
  if (labelValue.length <= 0) {
20
20
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
21
21
  }
22
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
22
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
23
23
  }
24
24
  else {
25
25
  throw new Error("No value provided for input HTTP label: workspaceId.");
26
26
  }
27
27
  let body;
28
28
  body = JSON.stringify({
29
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
29
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
30
30
  ...(input.data !== undefined && input.data !== null && { data: context.base64Encoder(input.data) }),
31
31
  });
32
32
  return new protocol_http_1.HttpRequest({
@@ -53,14 +53,14 @@ const serializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (input, con
53
53
  if (labelValue.length <= 0) {
54
54
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
55
55
  }
56
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
56
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
57
57
  }
58
58
  else {
59
59
  throw new Error("No value provided for input HTTP label: workspaceId.");
60
60
  }
61
61
  let body;
62
62
  body = JSON.stringify({
63
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
63
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
64
64
  ...(input.data !== undefined && input.data !== null && { data: context.base64Encoder(input.data) }),
65
65
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
66
66
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
@@ -86,7 +86,7 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
86
86
  let body;
87
87
  body = JSON.stringify({
88
88
  ...(input.alias !== undefined && input.alias !== null && { alias: input.alias }),
89
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
89
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
90
90
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
91
91
  });
92
92
  return new protocol_http_1.HttpRequest({
@@ -110,7 +110,7 @@ const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (input,
110
110
  if (labelValue.length <= 0) {
111
111
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
112
112
  }
113
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
113
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
114
114
  }
115
115
  else {
116
116
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -141,7 +141,7 @@ const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (input, con
141
141
  if (labelValue.length <= 0) {
142
142
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
143
143
  }
144
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
144
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
145
145
  }
146
146
  else {
147
147
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -151,7 +151,7 @@ const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (input, con
151
151
  if (labelValue.length <= 0) {
152
152
  throw new Error("Empty value provided for input HTTP label: name.");
153
153
  }
154
- resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
154
+ resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
155
155
  }
156
156
  else {
157
157
  throw new Error("No value provided for input HTTP label: name.");
@@ -181,7 +181,7 @@ const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
181
181
  if (labelValue.length <= 0) {
182
182
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
183
183
  }
184
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
184
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
185
185
  }
186
186
  else {
187
187
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -212,7 +212,7 @@ const serializeAws_restJson1DescribeAlertManagerDefinitionCommand = async (input
212
212
  if (labelValue.length <= 0) {
213
213
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
214
214
  }
215
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
215
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
216
216
  }
217
217
  else {
218
218
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -239,7 +239,7 @@ const serializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (input, c
239
239
  if (labelValue.length <= 0) {
240
240
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
241
241
  }
242
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
242
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
243
243
  }
244
244
  else {
245
245
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -249,7 +249,7 @@ const serializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (input, c
249
249
  if (labelValue.length <= 0) {
250
250
  throw new Error("Empty value provided for input HTTP label: name.");
251
251
  }
252
- resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
252
+ resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
253
253
  }
254
254
  else {
255
255
  throw new Error("No value provided for input HTTP label: name.");
@@ -275,7 +275,7 @@ const serializeAws_restJson1DescribeWorkspaceCommand = async (input, context) =>
275
275
  if (labelValue.length <= 0) {
276
276
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
277
277
  }
278
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
278
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
279
279
  }
280
280
  else {
281
281
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -302,7 +302,7 @@ const serializeAws_restJson1ListRuleGroupsNamespacesCommand = async (input, cont
302
302
  if (labelValue.length <= 0) {
303
303
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
304
304
  }
305
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
305
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
306
306
  }
307
307
  else {
308
308
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -334,7 +334,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
334
334
  if (labelValue.length <= 0) {
335
335
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
336
336
  }
337
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
337
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
338
338
  }
339
339
  else {
340
340
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -386,14 +386,14 @@ const serializeAws_restJson1PutAlertManagerDefinitionCommand = async (input, con
386
386
  if (labelValue.length <= 0) {
387
387
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
388
388
  }
389
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
389
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
390
390
  }
391
391
  else {
392
392
  throw new Error("No value provided for input HTTP label: workspaceId.");
393
393
  }
394
394
  let body;
395
395
  body = JSON.stringify({
396
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
396
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
397
397
  ...(input.data !== undefined && input.data !== null && { data: context.base64Encoder(input.data) }),
398
398
  });
399
399
  return new protocol_http_1.HttpRequest({
@@ -420,7 +420,7 @@ const serializeAws_restJson1PutRuleGroupsNamespaceCommand = async (input, contex
420
420
  if (labelValue.length <= 0) {
421
421
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
422
422
  }
423
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
423
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
424
424
  }
425
425
  else {
426
426
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -430,14 +430,14 @@ const serializeAws_restJson1PutRuleGroupsNamespaceCommand = async (input, contex
430
430
  if (labelValue.length <= 0) {
431
431
  throw new Error("Empty value provided for input HTTP label: name.");
432
432
  }
433
- resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
433
+ resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
434
434
  }
435
435
  else {
436
436
  throw new Error("No value provided for input HTTP label: name.");
437
437
  }
438
438
  let body;
439
439
  body = JSON.stringify({
440
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
440
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
441
441
  ...(input.data !== undefined && input.data !== null && { data: context.base64Encoder(input.data) }),
442
442
  });
443
443
  return new protocol_http_1.HttpRequest({
@@ -462,7 +462,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
462
462
  if (labelValue.length <= 0) {
463
463
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
464
464
  }
465
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
465
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
466
466
  }
467
467
  else {
468
468
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -491,7 +491,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
491
491
  if (labelValue.length <= 0) {
492
492
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
493
493
  }
494
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
494
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
495
495
  }
496
496
  else {
497
497
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -524,7 +524,7 @@ const serializeAws_restJson1UpdateWorkspaceAliasCommand = async (input, context)
524
524
  if (labelValue.length <= 0) {
525
525
  throw new Error("Empty value provided for input HTTP label: workspaceId.");
526
526
  }
527
- resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
527
+ resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
528
528
  }
529
529
  else {
530
530
  throw new Error("No value provided for input HTTP label: workspaceId.");
@@ -532,7 +532,7 @@ const serializeAws_restJson1UpdateWorkspaceAliasCommand = async (input, context)
532
532
  let body;
533
533
  body = JSON.stringify({
534
534
  ...(input.alias !== undefined && input.alias !== null && { alias: input.alias }),
535
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
535
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
536
536
  });
537
537
  return new protocol_http_1.HttpRequest({
538
538
  protocol,
@@ -553,7 +553,7 @@ const deserializeAws_restJson1CreateAlertManagerDefinitionCommand = async (outpu
553
553
  $metadata: deserializeMetadata(output),
554
554
  status: undefined,
555
555
  };
556
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
556
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
557
557
  if (data.status !== undefined && data.status !== null) {
558
558
  contents.status = deserializeAws_restJson1AlertManagerDefinitionStatus(data.status, context);
559
559
  }
@@ -597,7 +597,7 @@ const deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = async (
597
597
  $fault: "client",
598
598
  $metadata: deserializeMetadata(output),
599
599
  });
600
- throw smithy_client_1.decorateServiceException(response, parsedBody);
600
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
601
601
  }
602
602
  };
603
603
  const deserializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (output, context) => {
@@ -611,12 +611,12 @@ const deserializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (output,
611
611
  status: undefined,
612
612
  tags: undefined,
613
613
  };
614
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
614
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
615
615
  if (data.arn !== undefined && data.arn !== null) {
616
- contents.arn = smithy_client_1.expectString(data.arn);
616
+ contents.arn = (0, smithy_client_1.expectString)(data.arn);
617
617
  }
618
618
  if (data.name !== undefined && data.name !== null) {
619
- contents.name = smithy_client_1.expectString(data.name);
619
+ contents.name = (0, smithy_client_1.expectString)(data.name);
620
620
  }
621
621
  if (data.status !== undefined && data.status !== null) {
622
622
  contents.status = deserializeAws_restJson1RuleGroupsNamespaceStatus(data.status, context);
@@ -664,7 +664,7 @@ const deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError = async (out
664
664
  $fault: "client",
665
665
  $metadata: deserializeMetadata(output),
666
666
  });
667
- throw smithy_client_1.decorateServiceException(response, parsedBody);
667
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
668
668
  }
669
669
  };
670
670
  const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) => {
@@ -678,9 +678,9 @@ const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) =
678
678
  tags: undefined,
679
679
  workspaceId: undefined,
680
680
  };
681
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
681
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
682
682
  if (data.arn !== undefined && data.arn !== null) {
683
- contents.arn = smithy_client_1.expectString(data.arn);
683
+ contents.arn = (0, smithy_client_1.expectString)(data.arn);
684
684
  }
685
685
  if (data.status !== undefined && data.status !== null) {
686
686
  contents.status = deserializeAws_restJson1WorkspaceStatus(data.status, context);
@@ -689,7 +689,7 @@ const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) =
689
689
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
690
690
  }
691
691
  if (data.workspaceId !== undefined && data.workspaceId !== null) {
692
- contents.workspaceId = smithy_client_1.expectString(data.workspaceId);
692
+ contents.workspaceId = (0, smithy_client_1.expectString)(data.workspaceId);
693
693
  }
694
694
  return Promise.resolve(contents);
695
695
  };
@@ -728,7 +728,7 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
728
728
  $fault: "client",
729
729
  $metadata: deserializeMetadata(output),
730
730
  });
731
- throw smithy_client_1.decorateServiceException(response, parsedBody);
731
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
732
732
  }
733
733
  };
734
734
  const deserializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (output, context) => {
@@ -776,7 +776,7 @@ const deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = async (
776
776
  $fault: "client",
777
777
  $metadata: deserializeMetadata(output),
778
778
  });
779
- throw smithy_client_1.decorateServiceException(response, parsedBody);
779
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
780
780
  }
781
781
  };
782
782
  const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (output, context) => {
@@ -824,7 +824,7 @@ const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError = async (out
824
824
  $fault: "client",
825
825
  $metadata: deserializeMetadata(output),
826
826
  });
827
- throw smithy_client_1.decorateServiceException(response, parsedBody);
827
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
828
828
  }
829
829
  };
830
830
  const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, context) => {
@@ -872,7 +872,7 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
872
872
  $fault: "client",
873
873
  $metadata: deserializeMetadata(output),
874
874
  });
875
- throw smithy_client_1.decorateServiceException(response, parsedBody);
875
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
876
876
  }
877
877
  };
878
878
  const deserializeAws_restJson1DescribeAlertManagerDefinitionCommand = async (output, context) => {
@@ -883,7 +883,7 @@ const deserializeAws_restJson1DescribeAlertManagerDefinitionCommand = async (out
883
883
  $metadata: deserializeMetadata(output),
884
884
  alertManagerDefinition: undefined,
885
885
  };
886
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
886
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
887
887
  if (data.alertManagerDefinition !== undefined && data.alertManagerDefinition !== null) {
888
888
  contents.alertManagerDefinition = deserializeAws_restJson1AlertManagerDefinitionDescription(data.alertManagerDefinition, context);
889
889
  }
@@ -921,7 +921,7 @@ const deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = async
921
921
  $fault: "client",
922
922
  $metadata: deserializeMetadata(output),
923
923
  });
924
- throw smithy_client_1.decorateServiceException(response, parsedBody);
924
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
925
925
  }
926
926
  };
927
927
  const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (output, context) => {
@@ -932,7 +932,7 @@ const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (output
932
932
  $metadata: deserializeMetadata(output),
933
933
  ruleGroupsNamespace: undefined,
934
934
  };
935
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
935
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
936
936
  if (data.ruleGroupsNamespace !== undefined && data.ruleGroupsNamespace !== null) {
937
937
  contents.ruleGroupsNamespace = deserializeAws_restJson1RuleGroupsNamespaceDescription(data.ruleGroupsNamespace, context);
938
938
  }
@@ -970,7 +970,7 @@ const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError = async (o
970
970
  $fault: "client",
971
971
  $metadata: deserializeMetadata(output),
972
972
  });
973
- throw smithy_client_1.decorateServiceException(response, parsedBody);
973
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
974
974
  }
975
975
  };
976
976
  const deserializeAws_restJson1DescribeWorkspaceCommand = async (output, context) => {
@@ -981,7 +981,7 @@ const deserializeAws_restJson1DescribeWorkspaceCommand = async (output, context)
981
981
  $metadata: deserializeMetadata(output),
982
982
  workspace: undefined,
983
983
  };
984
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
984
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
985
985
  if (data.workspace !== undefined && data.workspace !== null) {
986
986
  contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
987
987
  }
@@ -1019,7 +1019,7 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
1019
1019
  $fault: "client",
1020
1020
  $metadata: deserializeMetadata(output),
1021
1021
  });
1022
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1022
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1023
1023
  }
1024
1024
  };
1025
1025
  const deserializeAws_restJson1ListRuleGroupsNamespacesCommand = async (output, context) => {
@@ -1031,9 +1031,9 @@ const deserializeAws_restJson1ListRuleGroupsNamespacesCommand = async (output, c
1031
1031
  nextToken: undefined,
1032
1032
  ruleGroupsNamespaces: undefined,
1033
1033
  };
1034
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1034
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1035
1035
  if (data.nextToken !== undefined && data.nextToken !== null) {
1036
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1036
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1037
1037
  }
1038
1038
  if (data.ruleGroupsNamespaces !== undefined && data.ruleGroupsNamespaces !== null) {
1039
1039
  contents.ruleGroupsNamespaces = deserializeAws_restJson1RuleGroupsNamespaceSummaryList(data.ruleGroupsNamespaces, context);
@@ -1072,7 +1072,7 @@ const deserializeAws_restJson1ListRuleGroupsNamespacesCommandError = async (outp
1072
1072
  $fault: "client",
1073
1073
  $metadata: deserializeMetadata(output),
1074
1074
  });
1075
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1075
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1076
1076
  }
1077
1077
  };
1078
1078
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -1083,7 +1083,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
1083
1083
  $metadata: deserializeMetadata(output),
1084
1084
  tags: undefined,
1085
1085
  };
1086
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1086
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1087
1087
  if (data.tags !== undefined && data.tags !== null) {
1088
1088
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
1089
1089
  }
@@ -1121,7 +1121,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1121
1121
  $fault: "client",
1122
1122
  $metadata: deserializeMetadata(output),
1123
1123
  });
1124
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1124
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1125
1125
  }
1126
1126
  };
1127
1127
  const deserializeAws_restJson1ListWorkspacesCommand = async (output, context) => {
@@ -1133,9 +1133,9 @@ const deserializeAws_restJson1ListWorkspacesCommand = async (output, context) =>
1133
1133
  nextToken: undefined,
1134
1134
  workspaces: undefined,
1135
1135
  };
1136
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1136
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1137
1137
  if (data.nextToken !== undefined && data.nextToken !== null) {
1138
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1138
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1139
1139
  }
1140
1140
  if (data.workspaces !== undefined && data.workspaces !== null) {
1141
1141
  contents.workspaces = deserializeAws_restJson1WorkspaceSummaryList(data.workspaces, context);
@@ -1171,7 +1171,7 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
1171
1171
  $fault: "client",
1172
1172
  $metadata: deserializeMetadata(output),
1173
1173
  });
1174
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1174
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1175
1175
  }
1176
1176
  };
1177
1177
  const deserializeAws_restJson1PutAlertManagerDefinitionCommand = async (output, context) => {
@@ -1182,7 +1182,7 @@ const deserializeAws_restJson1PutAlertManagerDefinitionCommand = async (output,
1182
1182
  $metadata: deserializeMetadata(output),
1183
1183
  status: undefined,
1184
1184
  };
1185
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1185
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1186
1186
  if (data.status !== undefined && data.status !== null) {
1187
1187
  contents.status = deserializeAws_restJson1AlertManagerDefinitionStatus(data.status, context);
1188
1188
  }
@@ -1226,7 +1226,7 @@ const deserializeAws_restJson1PutAlertManagerDefinitionCommandError = async (out
1226
1226
  $fault: "client",
1227
1227
  $metadata: deserializeMetadata(output),
1228
1228
  });
1229
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1229
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1230
1230
  }
1231
1231
  };
1232
1232
  const deserializeAws_restJson1PutRuleGroupsNamespaceCommand = async (output, context) => {
@@ -1240,12 +1240,12 @@ const deserializeAws_restJson1PutRuleGroupsNamespaceCommand = async (output, con
1240
1240
  status: undefined,
1241
1241
  tags: undefined,
1242
1242
  };
1243
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1243
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1244
1244
  if (data.arn !== undefined && data.arn !== null) {
1245
- contents.arn = smithy_client_1.expectString(data.arn);
1245
+ contents.arn = (0, smithy_client_1.expectString)(data.arn);
1246
1246
  }
1247
1247
  if (data.name !== undefined && data.name !== null) {
1248
- contents.name = smithy_client_1.expectString(data.name);
1248
+ contents.name = (0, smithy_client_1.expectString)(data.name);
1249
1249
  }
1250
1250
  if (data.status !== undefined && data.status !== null) {
1251
1251
  contents.status = deserializeAws_restJson1RuleGroupsNamespaceStatus(data.status, context);
@@ -1293,7 +1293,7 @@ const deserializeAws_restJson1PutRuleGroupsNamespaceCommandError = async (output
1293
1293
  $fault: "client",
1294
1294
  $metadata: deserializeMetadata(output),
1295
1295
  });
1296
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1296
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1297
1297
  }
1298
1298
  };
1299
1299
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -1338,7 +1338,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1338
1338
  $fault: "client",
1339
1339
  $metadata: deserializeMetadata(output),
1340
1340
  });
1341
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1341
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1342
1342
  }
1343
1343
  };
1344
1344
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -1383,7 +1383,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1383
1383
  $fault: "client",
1384
1384
  $metadata: deserializeMetadata(output),
1385
1385
  });
1386
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1386
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1387
1387
  }
1388
1388
  };
1389
1389
  const deserializeAws_restJson1UpdateWorkspaceAliasCommand = async (output, context) => {
@@ -1434,116 +1434,116 @@ const deserializeAws_restJson1UpdateWorkspaceAliasCommandError = async (output,
1434
1434
  $fault: "client",
1435
1435
  $metadata: deserializeMetadata(output),
1436
1436
  });
1437
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1437
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1438
1438
  }
1439
1439
  };
1440
1440
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1441
1441
  const contents = {};
1442
1442
  const data = parsedOutput.body;
1443
1443
  if (data.message !== undefined && data.message !== null) {
1444
- contents.message = smithy_client_1.expectString(data.message);
1444
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1445
1445
  }
1446
1446
  const exception = new models_0_1.AccessDeniedException({
1447
1447
  $metadata: deserializeMetadata(parsedOutput),
1448
1448
  ...contents,
1449
1449
  });
1450
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1450
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1451
1451
  };
1452
1452
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1453
1453
  const contents = {};
1454
1454
  const data = parsedOutput.body;
1455
1455
  if (data.message !== undefined && data.message !== null) {
1456
- contents.message = smithy_client_1.expectString(data.message);
1456
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1457
1457
  }
1458
1458
  if (data.resourceId !== undefined && data.resourceId !== null) {
1459
- contents.resourceId = smithy_client_1.expectString(data.resourceId);
1459
+ contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
1460
1460
  }
1461
1461
  if (data.resourceType !== undefined && data.resourceType !== null) {
1462
- contents.resourceType = smithy_client_1.expectString(data.resourceType);
1462
+ contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
1463
1463
  }
1464
1464
  const exception = new models_0_1.ConflictException({
1465
1465
  $metadata: deserializeMetadata(parsedOutput),
1466
1466
  ...contents,
1467
1467
  });
1468
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1468
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1469
1469
  };
1470
1470
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1471
1471
  const contents = {};
1472
1472
  if (parsedOutput.headers["retry-after"] !== undefined) {
1473
- contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
1473
+ contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
1474
1474
  }
1475
1475
  const data = parsedOutput.body;
1476
1476
  if (data.message !== undefined && data.message !== null) {
1477
- contents.message = smithy_client_1.expectString(data.message);
1477
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1478
1478
  }
1479
1479
  const exception = new models_0_1.InternalServerException({
1480
1480
  $metadata: deserializeMetadata(parsedOutput),
1481
1481
  ...contents,
1482
1482
  });
1483
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1483
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1484
1484
  };
1485
1485
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1486
1486
  const contents = {};
1487
1487
  const data = parsedOutput.body;
1488
1488
  if (data.message !== undefined && data.message !== null) {
1489
- contents.message = smithy_client_1.expectString(data.message);
1489
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1490
1490
  }
1491
1491
  if (data.resourceId !== undefined && data.resourceId !== null) {
1492
- contents.resourceId = smithy_client_1.expectString(data.resourceId);
1492
+ contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
1493
1493
  }
1494
1494
  if (data.resourceType !== undefined && data.resourceType !== null) {
1495
- contents.resourceType = smithy_client_1.expectString(data.resourceType);
1495
+ contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
1496
1496
  }
1497
1497
  const exception = new models_0_1.ResourceNotFoundException({
1498
1498
  $metadata: deserializeMetadata(parsedOutput),
1499
1499
  ...contents,
1500
1500
  });
1501
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1501
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1502
1502
  };
1503
1503
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1504
1504
  const contents = {};
1505
1505
  const data = parsedOutput.body;
1506
1506
  if (data.message !== undefined && data.message !== null) {
1507
- contents.message = smithy_client_1.expectString(data.message);
1507
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1508
1508
  }
1509
1509
  if (data.quotaCode !== undefined && data.quotaCode !== null) {
1510
- contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
1510
+ contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
1511
1511
  }
1512
1512
  if (data.resourceId !== undefined && data.resourceId !== null) {
1513
- contents.resourceId = smithy_client_1.expectString(data.resourceId);
1513
+ contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
1514
1514
  }
1515
1515
  if (data.resourceType !== undefined && data.resourceType !== null) {
1516
- contents.resourceType = smithy_client_1.expectString(data.resourceType);
1516
+ contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
1517
1517
  }
1518
1518
  if (data.serviceCode !== undefined && data.serviceCode !== null) {
1519
- contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
1519
+ contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
1520
1520
  }
1521
1521
  const exception = new models_0_1.ServiceQuotaExceededException({
1522
1522
  $metadata: deserializeMetadata(parsedOutput),
1523
1523
  ...contents,
1524
1524
  });
1525
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1525
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1526
1526
  };
1527
1527
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1528
1528
  const contents = {};
1529
1529
  if (parsedOutput.headers["retry-after"] !== undefined) {
1530
- contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
1530
+ contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
1531
1531
  }
1532
1532
  const data = parsedOutput.body;
1533
1533
  if (data.message !== undefined && data.message !== null) {
1534
- contents.message = smithy_client_1.expectString(data.message);
1534
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1535
1535
  }
1536
1536
  if (data.quotaCode !== undefined && data.quotaCode !== null) {
1537
- contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
1537
+ contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
1538
1538
  }
1539
1539
  if (data.serviceCode !== undefined && data.serviceCode !== null) {
1540
- contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
1540
+ contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
1541
1541
  }
1542
1542
  const exception = new models_0_1.ThrottlingException({
1543
1543
  $metadata: deserializeMetadata(parsedOutput),
1544
1544
  ...contents,
1545
1545
  });
1546
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1546
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1547
1547
  };
1548
1548
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1549
1549
  const contents = {};
@@ -1552,16 +1552,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1552
1552
  contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
1553
1553
  }
1554
1554
  if (data.message !== undefined && data.message !== null) {
1555
- contents.message = smithy_client_1.expectString(data.message);
1555
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1556
1556
  }
1557
1557
  if (data.reason !== undefined && data.reason !== null) {
1558
- contents.reason = smithy_client_1.expectString(data.reason);
1558
+ contents.reason = (0, smithy_client_1.expectString)(data.reason);
1559
1559
  }
1560
1560
  const exception = new models_0_1.ValidationException({
1561
1561
  $metadata: deserializeMetadata(parsedOutput),
1562
1562
  ...contents,
1563
1563
  });
1564
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1564
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1565
1565
  };
1566
1566
  const serializeAws_restJson1TagMap = (input, context) => {
1567
1567
  return Object.entries(input).reduce((acc, [key, value]) => {
@@ -1577,11 +1577,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
1577
1577
  const deserializeAws_restJson1AlertManagerDefinitionDescription = (output, context) => {
1578
1578
  return {
1579
1579
  createdAt: output.createdAt !== undefined && output.createdAt !== null
1580
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
1580
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1581
1581
  : undefined,
1582
1582
  data: output.data !== undefined && output.data !== null ? context.base64Decoder(output.data) : undefined,
1583
1583
  modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
1584
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
1584
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt)))
1585
1585
  : undefined,
1586
1586
  status: output.status !== undefined && output.status !== null
1587
1587
  ? deserializeAws_restJson1AlertManagerDefinitionStatus(output.status, context)
@@ -1590,21 +1590,21 @@ const deserializeAws_restJson1AlertManagerDefinitionDescription = (output, conte
1590
1590
  };
1591
1591
  const deserializeAws_restJson1AlertManagerDefinitionStatus = (output, context) => {
1592
1592
  return {
1593
- statusCode: smithy_client_1.expectString(output.statusCode),
1594
- statusReason: smithy_client_1.expectString(output.statusReason),
1593
+ statusCode: (0, smithy_client_1.expectString)(output.statusCode),
1594
+ statusReason: (0, smithy_client_1.expectString)(output.statusReason),
1595
1595
  };
1596
1596
  };
1597
1597
  const deserializeAws_restJson1RuleGroupsNamespaceDescription = (output, context) => {
1598
1598
  return {
1599
- arn: smithy_client_1.expectString(output.arn),
1599
+ arn: (0, smithy_client_1.expectString)(output.arn),
1600
1600
  createdAt: output.createdAt !== undefined && output.createdAt !== null
1601
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
1601
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1602
1602
  : undefined,
1603
1603
  data: output.data !== undefined && output.data !== null ? context.base64Decoder(output.data) : undefined,
1604
1604
  modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
1605
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
1605
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt)))
1606
1606
  : undefined,
1607
- name: smithy_client_1.expectString(output.name),
1607
+ name: (0, smithy_client_1.expectString)(output.name),
1608
1608
  status: output.status !== undefined && output.status !== null
1609
1609
  ? deserializeAws_restJson1RuleGroupsNamespaceStatus(output.status, context)
1610
1610
  : undefined,
@@ -1615,20 +1615,20 @@ const deserializeAws_restJson1RuleGroupsNamespaceDescription = (output, context)
1615
1615
  };
1616
1616
  const deserializeAws_restJson1RuleGroupsNamespaceStatus = (output, context) => {
1617
1617
  return {
1618
- statusCode: smithy_client_1.expectString(output.statusCode),
1619
- statusReason: smithy_client_1.expectString(output.statusReason),
1618
+ statusCode: (0, smithy_client_1.expectString)(output.statusCode),
1619
+ statusReason: (0, smithy_client_1.expectString)(output.statusReason),
1620
1620
  };
1621
1621
  };
1622
1622
  const deserializeAws_restJson1RuleGroupsNamespaceSummary = (output, context) => {
1623
1623
  return {
1624
- arn: smithy_client_1.expectString(output.arn),
1624
+ arn: (0, smithy_client_1.expectString)(output.arn),
1625
1625
  createdAt: output.createdAt !== undefined && output.createdAt !== null
1626
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
1626
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1627
1627
  : undefined,
1628
1628
  modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
1629
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
1629
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt)))
1630
1630
  : undefined,
1631
- name: smithy_client_1.expectString(output.name),
1631
+ name: (0, smithy_client_1.expectString)(output.name),
1632
1632
  status: output.status !== undefined && output.status !== null
1633
1633
  ? deserializeAws_restJson1RuleGroupsNamespaceStatus(output.status, context)
1634
1634
  : undefined,
@@ -1655,14 +1655,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1655
1655
  }
1656
1656
  return {
1657
1657
  ...acc,
1658
- [key]: smithy_client_1.expectString(value),
1658
+ [key]: (0, smithy_client_1.expectString)(value),
1659
1659
  };
1660
1660
  }, {});
1661
1661
  };
1662
1662
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
1663
1663
  return {
1664
- message: smithy_client_1.expectString(output.message),
1665
- name: smithy_client_1.expectString(output.name),
1664
+ message: (0, smithy_client_1.expectString)(output.message),
1665
+ name: (0, smithy_client_1.expectString)(output.name),
1666
1666
  };
1667
1667
  };
1668
1668
  const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
@@ -1678,32 +1678,32 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
1678
1678
  };
1679
1679
  const deserializeAws_restJson1WorkspaceDescription = (output, context) => {
1680
1680
  return {
1681
- alias: smithy_client_1.expectString(output.alias),
1682
- arn: smithy_client_1.expectString(output.arn),
1681
+ alias: (0, smithy_client_1.expectString)(output.alias),
1682
+ arn: (0, smithy_client_1.expectString)(output.arn),
1683
1683
  createdAt: output.createdAt !== undefined && output.createdAt !== null
1684
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
1684
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1685
1685
  : undefined,
1686
- prometheusEndpoint: smithy_client_1.expectString(output.prometheusEndpoint),
1686
+ prometheusEndpoint: (0, smithy_client_1.expectString)(output.prometheusEndpoint),
1687
1687
  status: output.status !== undefined && output.status !== null
1688
1688
  ? deserializeAws_restJson1WorkspaceStatus(output.status, context)
1689
1689
  : undefined,
1690
1690
  tags: output.tags !== undefined && output.tags !== null
1691
1691
  ? deserializeAws_restJson1TagMap(output.tags, context)
1692
1692
  : undefined,
1693
- workspaceId: smithy_client_1.expectString(output.workspaceId),
1693
+ workspaceId: (0, smithy_client_1.expectString)(output.workspaceId),
1694
1694
  };
1695
1695
  };
1696
1696
  const deserializeAws_restJson1WorkspaceStatus = (output, context) => {
1697
1697
  return {
1698
- statusCode: smithy_client_1.expectString(output.statusCode),
1698
+ statusCode: (0, smithy_client_1.expectString)(output.statusCode),
1699
1699
  };
1700
1700
  };
1701
1701
  const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
1702
1702
  return {
1703
- alias: smithy_client_1.expectString(output.alias),
1704
- arn: smithy_client_1.expectString(output.arn),
1703
+ alias: (0, smithy_client_1.expectString)(output.alias),
1704
+ arn: (0, smithy_client_1.expectString)(output.arn),
1705
1705
  createdAt: output.createdAt !== undefined && output.createdAt !== null
1706
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
1706
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1707
1707
  : undefined,
1708
1708
  status: output.status !== undefined && output.status !== null
1709
1709
  ? deserializeAws_restJson1WorkspaceStatus(output.status, context)
@@ -1711,7 +1711,7 @@ const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
1711
1711
  tags: output.tags !== undefined && output.tags !== null
1712
1712
  ? deserializeAws_restJson1TagMap(output.tags, context)
1713
1713
  : undefined,
1714
- workspaceId: smithy_client_1.expectString(output.workspaceId),
1714
+ workspaceId: (0, smithy_client_1.expectString)(output.workspaceId),
1715
1715
  };
1716
1716
  };
1717
1717
  const deserializeAws_restJson1WorkspaceSummaryList = (output, context) => {