@aws-sdk/client-cloudfront 3.310.0 → 3.315.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.
@@ -18,7 +18,7 @@ const se_AssociateAliasCommand = async (input, context) => {
18
18
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
19
19
  "/2020-05-31/distribution/{TargetDistributionId}/associate-alias";
20
20
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TargetDistributionId", () => input.TargetDistributionId, "{TargetDistributionId}", false);
21
- const query = map({
21
+ const query = (0, smithy_client_1.map)({
22
22
  Alias: [, (0, smithy_client_1.expectNonNull)(input.Alias, `Alias`)],
23
23
  });
24
24
  let body;
@@ -36,7 +36,7 @@ const se_AssociateAliasCommand = async (input, context) => {
36
36
  exports.se_AssociateAliasCommand = se_AssociateAliasCommand;
37
37
  const se_CopyDistributionCommand = async (input, context) => {
38
38
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
- const headers = map({}, isSerializableHeaderValue, {
39
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
40
40
  "content-type": "application/xml",
41
41
  staging: [() => isSerializableHeaderValue(input.Staging), () => input.Staging.toString()],
42
42
  "if-match": input.IfMatch,
@@ -183,7 +183,7 @@ const se_CreateDistributionWithTagsCommand = async (input, context) => {
183
183
  "content-type": "application/xml",
184
184
  };
185
185
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution";
186
- const query = map({
186
+ const query = (0, smithy_client_1.map)({
187
187
  WithTags: [, ""],
188
188
  });
189
189
  let body;
@@ -580,7 +580,7 @@ const se_CreateStreamingDistributionWithTagsCommand = async (input, context) =>
580
580
  "content-type": "application/xml",
581
581
  };
582
582
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution";
583
- const query = map({
583
+ const query = (0, smithy_client_1.map)({
584
584
  WithTags: [, ""],
585
585
  });
586
586
  let body;
@@ -608,7 +608,7 @@ const se_CreateStreamingDistributionWithTagsCommand = async (input, context) =>
608
608
  exports.se_CreateStreamingDistributionWithTagsCommand = se_CreateStreamingDistributionWithTagsCommand;
609
609
  const se_DeleteCachePolicyCommand = async (input, context) => {
610
610
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
611
- const headers = map({}, isSerializableHeaderValue, {
611
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
612
612
  "if-match": input.IfMatch,
613
613
  });
614
614
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy/{Id}";
@@ -627,7 +627,7 @@ const se_DeleteCachePolicyCommand = async (input, context) => {
627
627
  exports.se_DeleteCachePolicyCommand = se_DeleteCachePolicyCommand;
628
628
  const se_DeleteCloudFrontOriginAccessIdentityCommand = async (input, context) => {
629
629
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
630
- const headers = map({}, isSerializableHeaderValue, {
630
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
631
631
  "if-match": input.IfMatch,
632
632
  });
633
633
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -647,7 +647,7 @@ const se_DeleteCloudFrontOriginAccessIdentityCommand = async (input, context) =>
647
647
  exports.se_DeleteCloudFrontOriginAccessIdentityCommand = se_DeleteCloudFrontOriginAccessIdentityCommand;
648
648
  const se_DeleteContinuousDeploymentPolicyCommand = async (input, context) => {
649
649
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
650
- const headers = map({}, isSerializableHeaderValue, {
650
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
651
651
  "if-match": input.IfMatch,
652
652
  });
653
653
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -667,7 +667,7 @@ const se_DeleteContinuousDeploymentPolicyCommand = async (input, context) => {
667
667
  exports.se_DeleteContinuousDeploymentPolicyCommand = se_DeleteContinuousDeploymentPolicyCommand;
668
668
  const se_DeleteDistributionCommand = async (input, context) => {
669
669
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
670
- const headers = map({}, isSerializableHeaderValue, {
670
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
671
671
  "if-match": input.IfMatch,
672
672
  });
673
673
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution/{Id}";
@@ -686,7 +686,7 @@ const se_DeleteDistributionCommand = async (input, context) => {
686
686
  exports.se_DeleteDistributionCommand = se_DeleteDistributionCommand;
687
687
  const se_DeleteFieldLevelEncryptionConfigCommand = async (input, context) => {
688
688
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
689
- const headers = map({}, isSerializableHeaderValue, {
689
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
690
690
  "if-match": input.IfMatch,
691
691
  });
692
692
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/field-level-encryption/{Id}";
@@ -705,7 +705,7 @@ const se_DeleteFieldLevelEncryptionConfigCommand = async (input, context) => {
705
705
  exports.se_DeleteFieldLevelEncryptionConfigCommand = se_DeleteFieldLevelEncryptionConfigCommand;
706
706
  const se_DeleteFieldLevelEncryptionProfileCommand = async (input, context) => {
707
707
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
708
- const headers = map({}, isSerializableHeaderValue, {
708
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
709
709
  "if-match": input.IfMatch,
710
710
  });
711
711
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -725,7 +725,7 @@ const se_DeleteFieldLevelEncryptionProfileCommand = async (input, context) => {
725
725
  exports.se_DeleteFieldLevelEncryptionProfileCommand = se_DeleteFieldLevelEncryptionProfileCommand;
726
726
  const se_DeleteFunctionCommand = async (input, context) => {
727
727
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
728
- const headers = map({}, isSerializableHeaderValue, {
728
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
729
729
  "if-match": input.IfMatch,
730
730
  });
731
731
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}";
@@ -744,7 +744,7 @@ const se_DeleteFunctionCommand = async (input, context) => {
744
744
  exports.se_DeleteFunctionCommand = se_DeleteFunctionCommand;
745
745
  const se_DeleteKeyGroupCommand = async (input, context) => {
746
746
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
747
- const headers = map({}, isSerializableHeaderValue, {
747
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
748
748
  "if-match": input.IfMatch,
749
749
  });
750
750
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group/{Id}";
@@ -781,7 +781,7 @@ const se_DeleteMonitoringSubscriptionCommand = async (input, context) => {
781
781
  exports.se_DeleteMonitoringSubscriptionCommand = se_DeleteMonitoringSubscriptionCommand;
782
782
  const se_DeleteOriginAccessControlCommand = async (input, context) => {
783
783
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
784
- const headers = map({}, isSerializableHeaderValue, {
784
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
785
785
  "if-match": input.IfMatch,
786
786
  });
787
787
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control/{Id}";
@@ -800,7 +800,7 @@ const se_DeleteOriginAccessControlCommand = async (input, context) => {
800
800
  exports.se_DeleteOriginAccessControlCommand = se_DeleteOriginAccessControlCommand;
801
801
  const se_DeleteOriginRequestPolicyCommand = async (input, context) => {
802
802
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
803
- const headers = map({}, isSerializableHeaderValue, {
803
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
804
804
  "if-match": input.IfMatch,
805
805
  });
806
806
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-request-policy/{Id}";
@@ -819,7 +819,7 @@ const se_DeleteOriginRequestPolicyCommand = async (input, context) => {
819
819
  exports.se_DeleteOriginRequestPolicyCommand = se_DeleteOriginRequestPolicyCommand;
820
820
  const se_DeletePublicKeyCommand = async (input, context) => {
821
821
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
822
- const headers = map({}, isSerializableHeaderValue, {
822
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
823
823
  "if-match": input.IfMatch,
824
824
  });
825
825
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key/{Id}";
@@ -868,7 +868,7 @@ const se_DeleteRealtimeLogConfigCommand = async (input, context) => {
868
868
  exports.se_DeleteRealtimeLogConfigCommand = se_DeleteRealtimeLogConfigCommand;
869
869
  const se_DeleteResponseHeadersPolicyCommand = async (input, context) => {
870
870
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
871
- const headers = map({}, isSerializableHeaderValue, {
871
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
872
872
  "if-match": input.IfMatch,
873
873
  });
874
874
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy/{Id}";
@@ -887,7 +887,7 @@ const se_DeleteResponseHeadersPolicyCommand = async (input, context) => {
887
887
  exports.se_DeleteResponseHeadersPolicyCommand = se_DeleteResponseHeadersPolicyCommand;
888
888
  const se_DeleteStreamingDistributionCommand = async (input, context) => {
889
889
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
890
- const headers = map({}, isSerializableHeaderValue, {
890
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
891
891
  "if-match": input.IfMatch,
892
892
  });
893
893
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution/{Id}";
@@ -909,7 +909,7 @@ const se_DescribeFunctionCommand = async (input, context) => {
909
909
  const headers = {};
910
910
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}/describe";
911
911
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
912
- const query = map({
912
+ const query = (0, smithy_client_1.map)({
913
913
  Stage: [, input.Stage],
914
914
  });
915
915
  let body;
@@ -1141,7 +1141,7 @@ const se_GetFunctionCommand = async (input, context) => {
1141
1141
  const headers = {};
1142
1142
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}";
1143
1143
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
1144
- const query = map({
1144
+ const query = (0, smithy_client_1.map)({
1145
1145
  Stage: [, input.Stage],
1146
1146
  });
1147
1147
  let body;
@@ -1436,7 +1436,7 @@ const se_ListCachePoliciesCommand = async (input, context) => {
1436
1436
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1437
1437
  const headers = {};
1438
1438
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy";
1439
- const query = map({
1439
+ const query = (0, smithy_client_1.map)({
1440
1440
  Type: [, input.Type],
1441
1441
  Marker: [, input.Marker],
1442
1442
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
@@ -1459,7 +1459,7 @@ const se_ListCloudFrontOriginAccessIdentitiesCommand = async (input, context) =>
1459
1459
  const headers = {};
1460
1460
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1461
1461
  "/2020-05-31/origin-access-identity/cloudfront";
1462
- const query = map({
1462
+ const query = (0, smithy_client_1.map)({
1463
1463
  Marker: [, input.Marker],
1464
1464
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1465
1465
  });
@@ -1480,7 +1480,7 @@ const se_ListConflictingAliasesCommand = async (input, context) => {
1480
1480
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1481
1481
  const headers = {};
1482
1482
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/conflicting-alias";
1483
- const query = map({
1483
+ const query = (0, smithy_client_1.map)({
1484
1484
  DistributionId: [, (0, smithy_client_1.expectNonNull)(input.DistributionId, `DistributionId`)],
1485
1485
  Alias: [, (0, smithy_client_1.expectNonNull)(input.Alias, `Alias`)],
1486
1486
  Marker: [, input.Marker],
@@ -1503,7 +1503,7 @@ const se_ListContinuousDeploymentPoliciesCommand = async (input, context) => {
1503
1503
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1504
1504
  const headers = {};
1505
1505
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/continuous-deployment-policy";
1506
- const query = map({
1506
+ const query = (0, smithy_client_1.map)({
1507
1507
  Marker: [, input.Marker],
1508
1508
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1509
1509
  });
@@ -1524,7 +1524,7 @@ const se_ListDistributionsCommand = async (input, context) => {
1524
1524
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1525
1525
  const headers = {};
1526
1526
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution";
1527
- const query = map({
1527
+ const query = (0, smithy_client_1.map)({
1528
1528
  Marker: [, input.Marker],
1529
1529
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1530
1530
  });
@@ -1547,7 +1547,7 @@ const se_ListDistributionsByCachePolicyIdCommand = async (input, context) => {
1547
1547
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1548
1548
  "/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}";
1549
1549
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CachePolicyId", () => input.CachePolicyId, "{CachePolicyId}", false);
1550
- const query = map({
1550
+ const query = (0, smithy_client_1.map)({
1551
1551
  Marker: [, input.Marker],
1552
1552
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1553
1553
  });
@@ -1570,7 +1570,7 @@ const se_ListDistributionsByKeyGroupCommand = async (input, context) => {
1570
1570
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1571
1571
  "/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}";
1572
1572
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KeyGroupId", () => input.KeyGroupId, "{KeyGroupId}", false);
1573
- const query = map({
1573
+ const query = (0, smithy_client_1.map)({
1574
1574
  Marker: [, input.Marker],
1575
1575
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1576
1576
  });
@@ -1593,7 +1593,7 @@ const se_ListDistributionsByOriginRequestPolicyIdCommand = async (input, context
1593
1593
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1594
1594
  "/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}";
1595
1595
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OriginRequestPolicyId", () => input.OriginRequestPolicyId, "{OriginRequestPolicyId}", false);
1596
- const query = map({
1596
+ const query = (0, smithy_client_1.map)({
1597
1597
  Marker: [, input.Marker],
1598
1598
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1599
1599
  });
@@ -1655,7 +1655,7 @@ const se_ListDistributionsByResponseHeadersPolicyIdCommand = async (input, conte
1655
1655
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1656
1656
  "/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}";
1657
1657
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResponseHeadersPolicyId", () => input.ResponseHeadersPolicyId, "{ResponseHeadersPolicyId}", false);
1658
- const query = map({
1658
+ const query = (0, smithy_client_1.map)({
1659
1659
  Marker: [, input.Marker],
1660
1660
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1661
1661
  });
@@ -1678,7 +1678,7 @@ const se_ListDistributionsByWebACLIdCommand = async (input, context) => {
1678
1678
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1679
1679
  "/2020-05-31/distributionsByWebACLId/{WebACLId}";
1680
1680
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WebACLId", () => input.WebACLId, "{WebACLId}", false);
1681
- const query = map({
1681
+ const query = (0, smithy_client_1.map)({
1682
1682
  Marker: [, input.Marker],
1683
1683
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1684
1684
  });
@@ -1699,7 +1699,7 @@ const se_ListFieldLevelEncryptionConfigsCommand = async (input, context) => {
1699
1699
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1700
1700
  const headers = {};
1701
1701
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/field-level-encryption";
1702
- const query = map({
1702
+ const query = (0, smithy_client_1.map)({
1703
1703
  Marker: [, input.Marker],
1704
1704
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1705
1705
  });
@@ -1721,7 +1721,7 @@ const se_ListFieldLevelEncryptionProfilesCommand = async (input, context) => {
1721
1721
  const headers = {};
1722
1722
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1723
1723
  "/2020-05-31/field-level-encryption-profile";
1724
- const query = map({
1724
+ const query = (0, smithy_client_1.map)({
1725
1725
  Marker: [, input.Marker],
1726
1726
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1727
1727
  });
@@ -1742,7 +1742,7 @@ const se_ListFunctionsCommand = async (input, context) => {
1742
1742
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1743
1743
  const headers = {};
1744
1744
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function";
1745
- const query = map({
1745
+ const query = (0, smithy_client_1.map)({
1746
1746
  Marker: [, input.Marker],
1747
1747
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1748
1748
  Stage: [, input.Stage],
@@ -1766,7 +1766,7 @@ const se_ListInvalidationsCommand = async (input, context) => {
1766
1766
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1767
1767
  "/2020-05-31/distribution/{DistributionId}/invalidation";
1768
1768
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DistributionId", () => input.DistributionId, "{DistributionId}", false);
1769
- const query = map({
1769
+ const query = (0, smithy_client_1.map)({
1770
1770
  Marker: [, input.Marker],
1771
1771
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1772
1772
  });
@@ -1787,7 +1787,7 @@ const se_ListKeyGroupsCommand = async (input, context) => {
1787
1787
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1788
1788
  const headers = {};
1789
1789
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group";
1790
- const query = map({
1790
+ const query = (0, smithy_client_1.map)({
1791
1791
  Marker: [, input.Marker],
1792
1792
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1793
1793
  });
@@ -1808,7 +1808,7 @@ const se_ListOriginAccessControlsCommand = async (input, context) => {
1808
1808
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1809
1809
  const headers = {};
1810
1810
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control";
1811
- const query = map({
1811
+ const query = (0, smithy_client_1.map)({
1812
1812
  Marker: [, input.Marker],
1813
1813
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1814
1814
  });
@@ -1829,7 +1829,7 @@ const se_ListOriginRequestPoliciesCommand = async (input, context) => {
1829
1829
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1830
1830
  const headers = {};
1831
1831
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-request-policy";
1832
- const query = map({
1832
+ const query = (0, smithy_client_1.map)({
1833
1833
  Type: [, input.Type],
1834
1834
  Marker: [, input.Marker],
1835
1835
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
@@ -1851,7 +1851,7 @@ const se_ListPublicKeysCommand = async (input, context) => {
1851
1851
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1852
1852
  const headers = {};
1853
1853
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key";
1854
- const query = map({
1854
+ const query = (0, smithy_client_1.map)({
1855
1855
  Marker: [, input.Marker],
1856
1856
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1857
1857
  });
@@ -1872,7 +1872,7 @@ const se_ListRealtimeLogConfigsCommand = async (input, context) => {
1872
1872
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1873
1873
  const headers = {};
1874
1874
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/realtime-log-config";
1875
- const query = map({
1875
+ const query = (0, smithy_client_1.map)({
1876
1876
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1877
1877
  Marker: [, input.Marker],
1878
1878
  });
@@ -1893,7 +1893,7 @@ const se_ListResponseHeadersPoliciesCommand = async (input, context) => {
1893
1893
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1894
1894
  const headers = {};
1895
1895
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy";
1896
- const query = map({
1896
+ const query = (0, smithy_client_1.map)({
1897
1897
  Type: [, input.Type],
1898
1898
  Marker: [, input.Marker],
1899
1899
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
@@ -1915,7 +1915,7 @@ const se_ListStreamingDistributionsCommand = async (input, context) => {
1915
1915
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1916
1916
  const headers = {};
1917
1917
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution";
1918
- const query = map({
1918
+ const query = (0, smithy_client_1.map)({
1919
1919
  Marker: [, input.Marker],
1920
1920
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1921
1921
  });
@@ -1936,7 +1936,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
1936
1936
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1937
1937
  const headers = {};
1938
1938
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/tagging";
1939
- const query = map({
1939
+ const query = (0, smithy_client_1.map)({
1940
1940
  Resource: [, (0, smithy_client_1.expectNonNull)(input.Resource, `Resource`)],
1941
1941
  });
1942
1942
  let body;
@@ -1954,7 +1954,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
1954
1954
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1955
1955
  const se_PublishFunctionCommand = async (input, context) => {
1956
1956
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1957
- const headers = map({}, isSerializableHeaderValue, {
1957
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1958
1958
  "if-match": input.IfMatch,
1959
1959
  });
1960
1960
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}/publish";
@@ -1977,7 +1977,7 @@ const se_TagResourceCommand = async (input, context) => {
1977
1977
  "content-type": "application/xml",
1978
1978
  };
1979
1979
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/tagging";
1980
- const query = map({
1980
+ const query = (0, smithy_client_1.map)({
1981
1981
  Operation: [, "Tag"],
1982
1982
  Resource: [, (0, smithy_client_1.expectNonNull)(input.Resource, `Resource`)],
1983
1983
  });
@@ -2006,7 +2006,7 @@ const se_TagResourceCommand = async (input, context) => {
2006
2006
  exports.se_TagResourceCommand = se_TagResourceCommand;
2007
2007
  const se_TestFunctionCommand = async (input, context) => {
2008
2008
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2009
- const headers = map({}, isSerializableHeaderValue, {
2009
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2010
2010
  "content-type": "application/xml",
2011
2011
  "if-match": input.IfMatch,
2012
2012
  });
@@ -2042,7 +2042,7 @@ const se_UntagResourceCommand = async (input, context) => {
2042
2042
  "content-type": "application/xml",
2043
2043
  };
2044
2044
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/tagging";
2045
- const query = map({
2045
+ const query = (0, smithy_client_1.map)({
2046
2046
  Operation: [, "Untag"],
2047
2047
  Resource: [, (0, smithy_client_1.expectNonNull)(input.Resource, `Resource`)],
2048
2048
  });
@@ -2071,7 +2071,7 @@ const se_UntagResourceCommand = async (input, context) => {
2071
2071
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
2072
2072
  const se_UpdateCachePolicyCommand = async (input, context) => {
2073
2073
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2074
- const headers = map({}, isSerializableHeaderValue, {
2074
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2075
2075
  "content-type": "application/xml",
2076
2076
  "if-match": input.IfMatch,
2077
2077
  });
@@ -2101,7 +2101,7 @@ const se_UpdateCachePolicyCommand = async (input, context) => {
2101
2101
  exports.se_UpdateCachePolicyCommand = se_UpdateCachePolicyCommand;
2102
2102
  const se_UpdateCloudFrontOriginAccessIdentityCommand = async (input, context) => {
2103
2103
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2104
- const headers = map({}, isSerializableHeaderValue, {
2104
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2105
2105
  "content-type": "application/xml",
2106
2106
  "if-match": input.IfMatch,
2107
2107
  });
@@ -2132,7 +2132,7 @@ const se_UpdateCloudFrontOriginAccessIdentityCommand = async (input, context) =>
2132
2132
  exports.se_UpdateCloudFrontOriginAccessIdentityCommand = se_UpdateCloudFrontOriginAccessIdentityCommand;
2133
2133
  const se_UpdateContinuousDeploymentPolicyCommand = async (input, context) => {
2134
2134
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2135
- const headers = map({}, isSerializableHeaderValue, {
2135
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2136
2136
  "content-type": "application/xml",
2137
2137
  "if-match": input.IfMatch,
2138
2138
  });
@@ -2163,7 +2163,7 @@ const se_UpdateContinuousDeploymentPolicyCommand = async (input, context) => {
2163
2163
  exports.se_UpdateContinuousDeploymentPolicyCommand = se_UpdateContinuousDeploymentPolicyCommand;
2164
2164
  const se_UpdateDistributionCommand = async (input, context) => {
2165
2165
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2166
- const headers = map({}, isSerializableHeaderValue, {
2166
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2167
2167
  "content-type": "application/xml",
2168
2168
  "if-match": input.IfMatch,
2169
2169
  });
@@ -2193,13 +2193,13 @@ const se_UpdateDistributionCommand = async (input, context) => {
2193
2193
  exports.se_UpdateDistributionCommand = se_UpdateDistributionCommand;
2194
2194
  const se_UpdateDistributionWithStagingConfigCommand = async (input, context) => {
2195
2195
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2196
- const headers = map({}, isSerializableHeaderValue, {
2196
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2197
2197
  "if-match": input.IfMatch,
2198
2198
  });
2199
2199
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2200
2200
  "/2020-05-31/distribution/{Id}/promote-staging-config";
2201
2201
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
2202
- const query = map({
2202
+ const query = (0, smithy_client_1.map)({
2203
2203
  StagingDistributionId: [, input.StagingDistributionId],
2204
2204
  });
2205
2205
  let body;
@@ -2217,7 +2217,7 @@ const se_UpdateDistributionWithStagingConfigCommand = async (input, context) =>
2217
2217
  exports.se_UpdateDistributionWithStagingConfigCommand = se_UpdateDistributionWithStagingConfigCommand;
2218
2218
  const se_UpdateFieldLevelEncryptionConfigCommand = async (input, context) => {
2219
2219
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2220
- const headers = map({}, isSerializableHeaderValue, {
2220
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2221
2221
  "content-type": "application/xml",
2222
2222
  "if-match": input.IfMatch,
2223
2223
  });
@@ -2248,7 +2248,7 @@ const se_UpdateFieldLevelEncryptionConfigCommand = async (input, context) => {
2248
2248
  exports.se_UpdateFieldLevelEncryptionConfigCommand = se_UpdateFieldLevelEncryptionConfigCommand;
2249
2249
  const se_UpdateFieldLevelEncryptionProfileCommand = async (input, context) => {
2250
2250
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2251
- const headers = map({}, isSerializableHeaderValue, {
2251
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2252
2252
  "content-type": "application/xml",
2253
2253
  "if-match": input.IfMatch,
2254
2254
  });
@@ -2279,7 +2279,7 @@ const se_UpdateFieldLevelEncryptionProfileCommand = async (input, context) => {
2279
2279
  exports.se_UpdateFieldLevelEncryptionProfileCommand = se_UpdateFieldLevelEncryptionProfileCommand;
2280
2280
  const se_UpdateFunctionCommand = async (input, context) => {
2281
2281
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2282
- const headers = map({}, isSerializableHeaderValue, {
2282
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2283
2283
  "content-type": "application/xml",
2284
2284
  "if-match": input.IfMatch,
2285
2285
  });
@@ -2311,7 +2311,7 @@ const se_UpdateFunctionCommand = async (input, context) => {
2311
2311
  exports.se_UpdateFunctionCommand = se_UpdateFunctionCommand;
2312
2312
  const se_UpdateKeyGroupCommand = async (input, context) => {
2313
2313
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2314
- const headers = map({}, isSerializableHeaderValue, {
2314
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2315
2315
  "content-type": "application/xml",
2316
2316
  "if-match": input.IfMatch,
2317
2317
  });
@@ -2341,7 +2341,7 @@ const se_UpdateKeyGroupCommand = async (input, context) => {
2341
2341
  exports.se_UpdateKeyGroupCommand = se_UpdateKeyGroupCommand;
2342
2342
  const se_UpdateOriginAccessControlCommand = async (input, context) => {
2343
2343
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2344
- const headers = map({}, isSerializableHeaderValue, {
2344
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2345
2345
  "content-type": "application/xml",
2346
2346
  "if-match": input.IfMatch,
2347
2347
  });
@@ -2372,7 +2372,7 @@ const se_UpdateOriginAccessControlCommand = async (input, context) => {
2372
2372
  exports.se_UpdateOriginAccessControlCommand = se_UpdateOriginAccessControlCommand;
2373
2373
  const se_UpdateOriginRequestPolicyCommand = async (input, context) => {
2374
2374
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2375
- const headers = map({}, isSerializableHeaderValue, {
2375
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2376
2376
  "content-type": "application/xml",
2377
2377
  "if-match": input.IfMatch,
2378
2378
  });
@@ -2402,7 +2402,7 @@ const se_UpdateOriginRequestPolicyCommand = async (input, context) => {
2402
2402
  exports.se_UpdateOriginRequestPolicyCommand = se_UpdateOriginRequestPolicyCommand;
2403
2403
  const se_UpdatePublicKeyCommand = async (input, context) => {
2404
2404
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2405
- const headers = map({}, isSerializableHeaderValue, {
2405
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2406
2406
  "content-type": "application/xml",
2407
2407
  "if-match": input.IfMatch,
2408
2408
  });
@@ -2482,7 +2482,7 @@ const se_UpdateRealtimeLogConfigCommand = async (input, context) => {
2482
2482
  exports.se_UpdateRealtimeLogConfigCommand = se_UpdateRealtimeLogConfigCommand;
2483
2483
  const se_UpdateResponseHeadersPolicyCommand = async (input, context) => {
2484
2484
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2485
- const headers = map({}, isSerializableHeaderValue, {
2485
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2486
2486
  "content-type": "application/xml",
2487
2487
  "if-match": input.IfMatch,
2488
2488
  });
@@ -2512,7 +2512,7 @@ const se_UpdateResponseHeadersPolicyCommand = async (input, context) => {
2512
2512
  exports.se_UpdateResponseHeadersPolicyCommand = se_UpdateResponseHeadersPolicyCommand;
2513
2513
  const se_UpdateStreamingDistributionCommand = async (input, context) => {
2514
2514
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2515
- const headers = map({}, isSerializableHeaderValue, {
2515
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2516
2516
  "content-type": "application/xml",
2517
2517
  "if-match": input.IfMatch,
2518
2518
  });
@@ -2545,7 +2545,7 @@ const de_AssociateAliasCommand = async (output, context) => {
2545
2545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2546
2546
  return de_AssociateAliasCommandError(output, context);
2547
2547
  }
2548
- const contents = map({
2548
+ const contents = (0, smithy_client_1.map)({
2549
2549
  $metadata: deserializeMetadata(output),
2550
2550
  });
2551
2551
  await collectBody(output.body, context);
@@ -2576,10 +2576,9 @@ const de_AssociateAliasCommandError = async (output, context) => {
2576
2576
  throw await de_TooManyDistributionCNAMEsRes(parsedOutput, context);
2577
2577
  default:
2578
2578
  const parsedBody = parsedOutput.body;
2579
- (0, smithy_client_1.throwDefaultError)({
2579
+ return throwDefaultError({
2580
2580
  output,
2581
2581
  parsedBody: parsedBody.Error,
2582
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
2583
2582
  errorCode,
2584
2583
  });
2585
2584
  }
@@ -2588,7 +2587,7 @@ const de_CopyDistributionCommand = async (output, context) => {
2588
2587
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2589
2588
  return de_CopyDistributionCommandError(output, context);
2590
2589
  }
2591
- const contents = map({
2590
+ const contents = (0, smithy_client_1.map)({
2592
2591
  $metadata: deserializeMetadata(output),
2593
2592
  Location: [, output.headers["location"]],
2594
2593
  ETag: [, output.headers["etag"]],
@@ -2796,10 +2795,9 @@ const de_CopyDistributionCommandError = async (output, context) => {
2796
2795
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
2797
2796
  default:
2798
2797
  const parsedBody = parsedOutput.body;
2799
- (0, smithy_client_1.throwDefaultError)({
2798
+ return throwDefaultError({
2800
2799
  output,
2801
2800
  parsedBody: parsedBody.Error,
2802
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
2803
2801
  errorCode,
2804
2802
  });
2805
2803
  }
@@ -2808,7 +2806,7 @@ const de_CreateCachePolicyCommand = async (output, context) => {
2808
2806
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2809
2807
  return de_CreateCachePolicyCommandError(output, context);
2810
2808
  }
2811
- const contents = map({
2809
+ const contents = (0, smithy_client_1.map)({
2812
2810
  $metadata: deserializeMetadata(output),
2813
2811
  Location: [, output.headers["location"]],
2814
2812
  ETag: [, output.headers["etag"]],
@@ -2851,10 +2849,9 @@ const de_CreateCachePolicyCommandError = async (output, context) => {
2851
2849
  throw await de_TooManyQueryStringsInCachePolicyRes(parsedOutput, context);
2852
2850
  default:
2853
2851
  const parsedBody = parsedOutput.body;
2854
- (0, smithy_client_1.throwDefaultError)({
2852
+ return throwDefaultError({
2855
2853
  output,
2856
2854
  parsedBody: parsedBody.Error,
2857
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
2858
2855
  errorCode,
2859
2856
  });
2860
2857
  }
@@ -2863,7 +2860,7 @@ const de_CreateCloudFrontOriginAccessIdentityCommand = async (output, context) =
2863
2860
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2864
2861
  return de_CreateCloudFrontOriginAccessIdentityCommandError(output, context);
2865
2862
  }
2866
- const contents = map({
2863
+ const contents = (0, smithy_client_1.map)({
2867
2864
  $metadata: deserializeMetadata(output),
2868
2865
  Location: [, output.headers["location"]],
2869
2866
  ETag: [, output.headers["etag"]],
@@ -2897,10 +2894,9 @@ const de_CreateCloudFrontOriginAccessIdentityCommandError = async (output, conte
2897
2894
  throw await de_TooManyCloudFrontOriginAccessIdentitiesRes(parsedOutput, context);
2898
2895
  default:
2899
2896
  const parsedBody = parsedOutput.body;
2900
- (0, smithy_client_1.throwDefaultError)({
2897
+ return throwDefaultError({
2901
2898
  output,
2902
2899
  parsedBody: parsedBody.Error,
2903
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
2904
2900
  errorCode,
2905
2901
  });
2906
2902
  }
@@ -2909,7 +2905,7 @@ const de_CreateContinuousDeploymentPolicyCommand = async (output, context) => {
2909
2905
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2910
2906
  return de_CreateContinuousDeploymentPolicyCommandError(output, context);
2911
2907
  }
2912
- const contents = map({
2908
+ const contents = (0, smithy_client_1.map)({
2913
2909
  $metadata: deserializeMetadata(output),
2914
2910
  Location: [, output.headers["location"]],
2915
2911
  ETag: [, output.headers["etag"]],
@@ -2946,10 +2942,9 @@ const de_CreateContinuousDeploymentPolicyCommandError = async (output, context)
2946
2942
  throw await de_TooManyContinuousDeploymentPoliciesRes(parsedOutput, context);
2947
2943
  default:
2948
2944
  const parsedBody = parsedOutput.body;
2949
- (0, smithy_client_1.throwDefaultError)({
2945
+ return throwDefaultError({
2950
2946
  output,
2951
2947
  parsedBody: parsedBody.Error,
2952
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
2953
2948
  errorCode,
2954
2949
  });
2955
2950
  }
@@ -2958,7 +2953,7 @@ const de_CreateDistributionCommand = async (output, context) => {
2958
2953
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2959
2954
  return de_CreateDistributionCommandError(output, context);
2960
2955
  }
2961
- const contents = map({
2956
+ const contents = (0, smithy_client_1.map)({
2962
2957
  $metadata: deserializeMetadata(output),
2963
2958
  Location: [, output.headers["location"]],
2964
2959
  ETag: [, output.headers["etag"]],
@@ -3172,10 +3167,9 @@ const de_CreateDistributionCommandError = async (output, context) => {
3172
3167
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
3173
3168
  default:
3174
3169
  const parsedBody = parsedOutput.body;
3175
- (0, smithy_client_1.throwDefaultError)({
3170
+ return throwDefaultError({
3176
3171
  output,
3177
3172
  parsedBody: parsedBody.Error,
3178
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3179
3173
  errorCode,
3180
3174
  });
3181
3175
  }
@@ -3184,7 +3178,7 @@ const de_CreateDistributionWithTagsCommand = async (output, context) => {
3184
3178
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3185
3179
  return de_CreateDistributionWithTagsCommandError(output, context);
3186
3180
  }
3187
- const contents = map({
3181
+ const contents = (0, smithy_client_1.map)({
3188
3182
  $metadata: deserializeMetadata(output),
3189
3183
  Location: [, output.headers["location"]],
3190
3184
  ETag: [, output.headers["etag"]],
@@ -3395,10 +3389,9 @@ const de_CreateDistributionWithTagsCommandError = async (output, context) => {
3395
3389
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
3396
3390
  default:
3397
3391
  const parsedBody = parsedOutput.body;
3398
- (0, smithy_client_1.throwDefaultError)({
3392
+ return throwDefaultError({
3399
3393
  output,
3400
3394
  parsedBody: parsedBody.Error,
3401
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3402
3395
  errorCode,
3403
3396
  });
3404
3397
  }
@@ -3407,7 +3400,7 @@ const de_CreateFieldLevelEncryptionConfigCommand = async (output, context) => {
3407
3400
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3408
3401
  return de_CreateFieldLevelEncryptionConfigCommandError(output, context);
3409
3402
  }
3410
- const contents = map({
3403
+ const contents = (0, smithy_client_1.map)({
3411
3404
  $metadata: deserializeMetadata(output),
3412
3405
  Location: [, output.headers["location"]],
3413
3406
  ETag: [, output.headers["etag"]],
@@ -3450,10 +3443,9 @@ const de_CreateFieldLevelEncryptionConfigCommandError = async (output, context)
3450
3443
  throw await de_TooManyFieldLevelEncryptionQueryArgProfilesRes(parsedOutput, context);
3451
3444
  default:
3452
3445
  const parsedBody = parsedOutput.body;
3453
- (0, smithy_client_1.throwDefaultError)({
3446
+ return throwDefaultError({
3454
3447
  output,
3455
3448
  parsedBody: parsedBody.Error,
3456
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3457
3449
  errorCode,
3458
3450
  });
3459
3451
  }
@@ -3462,7 +3454,7 @@ const de_CreateFieldLevelEncryptionProfileCommand = async (output, context) => {
3462
3454
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3463
3455
  return de_CreateFieldLevelEncryptionProfileCommandError(output, context);
3464
3456
  }
3465
- const contents = map({
3457
+ const contents = (0, smithy_client_1.map)({
3466
3458
  $metadata: deserializeMetadata(output),
3467
3459
  Location: [, output.headers["location"]],
3468
3460
  ETag: [, output.headers["etag"]],
@@ -3505,10 +3497,9 @@ const de_CreateFieldLevelEncryptionProfileCommandError = async (output, context)
3505
3497
  throw await de_TooManyFieldLevelEncryptionProfilesRes(parsedOutput, context);
3506
3498
  default:
3507
3499
  const parsedBody = parsedOutput.body;
3508
- (0, smithy_client_1.throwDefaultError)({
3500
+ return throwDefaultError({
3509
3501
  output,
3510
3502
  parsedBody: parsedBody.Error,
3511
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3512
3503
  errorCode,
3513
3504
  });
3514
3505
  }
@@ -3517,7 +3508,7 @@ const de_CreateFunctionCommand = async (output, context) => {
3517
3508
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3518
3509
  return de_CreateFunctionCommandError(output, context);
3519
3510
  }
3520
- const contents = map({
3511
+ const contents = (0, smithy_client_1.map)({
3521
3512
  $metadata: deserializeMetadata(output),
3522
3513
  Location: [, output.headers["location"]],
3523
3514
  ETag: [, output.headers["etag"]],
@@ -3551,10 +3542,9 @@ const de_CreateFunctionCommandError = async (output, context) => {
3551
3542
  throw await de_UnsupportedOperationRes(parsedOutput, context);
3552
3543
  default:
3553
3544
  const parsedBody = parsedOutput.body;
3554
- (0, smithy_client_1.throwDefaultError)({
3545
+ return throwDefaultError({
3555
3546
  output,
3556
3547
  parsedBody: parsedBody.Error,
3557
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3558
3548
  errorCode,
3559
3549
  });
3560
3550
  }
@@ -3563,7 +3553,7 @@ const de_CreateInvalidationCommand = async (output, context) => {
3563
3553
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3564
3554
  return de_CreateInvalidationCommandError(output, context);
3565
3555
  }
3566
- const contents = map({
3556
+ const contents = (0, smithy_client_1.map)({
3567
3557
  $metadata: deserializeMetadata(output),
3568
3558
  Location: [, output.headers["location"]],
3569
3559
  });
@@ -3602,10 +3592,9 @@ const de_CreateInvalidationCommandError = async (output, context) => {
3602
3592
  throw await de_TooManyInvalidationsInProgressRes(parsedOutput, context);
3603
3593
  default:
3604
3594
  const parsedBody = parsedOutput.body;
3605
- (0, smithy_client_1.throwDefaultError)({
3595
+ return throwDefaultError({
3606
3596
  output,
3607
3597
  parsedBody: parsedBody.Error,
3608
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3609
3598
  errorCode,
3610
3599
  });
3611
3600
  }
@@ -3614,7 +3603,7 @@ const de_CreateKeyGroupCommand = async (output, context) => {
3614
3603
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3615
3604
  return de_CreateKeyGroupCommandError(output, context);
3616
3605
  }
3617
- const contents = map({
3606
+ const contents = (0, smithy_client_1.map)({
3618
3607
  $metadata: deserializeMetadata(output),
3619
3608
  Location: [, output.headers["location"]],
3620
3609
  ETag: [, output.headers["etag"]],
@@ -3645,10 +3634,9 @@ const de_CreateKeyGroupCommandError = async (output, context) => {
3645
3634
  throw await de_TooManyPublicKeysInKeyGroupRes(parsedOutput, context);
3646
3635
  default:
3647
3636
  const parsedBody = parsedOutput.body;
3648
- (0, smithy_client_1.throwDefaultError)({
3637
+ return throwDefaultError({
3649
3638
  output,
3650
3639
  parsedBody: parsedBody.Error,
3651
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3652
3640
  errorCode,
3653
3641
  });
3654
3642
  }
@@ -3657,7 +3645,7 @@ const de_CreateMonitoringSubscriptionCommand = async (output, context) => {
3657
3645
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3658
3646
  return de_CreateMonitoringSubscriptionCommandError(output, context);
3659
3647
  }
3660
- const contents = map({
3648
+ const contents = (0, smithy_client_1.map)({
3661
3649
  $metadata: deserializeMetadata(output),
3662
3650
  });
3663
3651
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -3686,10 +3674,9 @@ const de_CreateMonitoringSubscriptionCommandError = async (output, context) => {
3686
3674
  throw await de_UnsupportedOperationRes(parsedOutput, context);
3687
3675
  default:
3688
3676
  const parsedBody = parsedOutput.body;
3689
- (0, smithy_client_1.throwDefaultError)({
3677
+ return throwDefaultError({
3690
3678
  output,
3691
3679
  parsedBody: parsedBody.Error,
3692
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3693
3680
  errorCode,
3694
3681
  });
3695
3682
  }
@@ -3698,7 +3685,7 @@ const de_CreateOriginAccessControlCommand = async (output, context) => {
3698
3685
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3699
3686
  return de_CreateOriginAccessControlCommandError(output, context);
3700
3687
  }
3701
- const contents = map({
3688
+ const contents = (0, smithy_client_1.map)({
3702
3689
  $metadata: deserializeMetadata(output),
3703
3690
  Location: [, output.headers["location"]],
3704
3691
  ETag: [, output.headers["etag"]],
@@ -3726,10 +3713,9 @@ const de_CreateOriginAccessControlCommandError = async (output, context) => {
3726
3713
  throw await de_TooManyOriginAccessControlsRes(parsedOutput, context);
3727
3714
  default:
3728
3715
  const parsedBody = parsedOutput.body;
3729
- (0, smithy_client_1.throwDefaultError)({
3716
+ return throwDefaultError({
3730
3717
  output,
3731
3718
  parsedBody: parsedBody.Error,
3732
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3733
3719
  errorCode,
3734
3720
  });
3735
3721
  }
@@ -3738,7 +3724,7 @@ const de_CreateOriginRequestPolicyCommand = async (output, context) => {
3738
3724
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3739
3725
  return de_CreateOriginRequestPolicyCommandError(output, context);
3740
3726
  }
3741
- const contents = map({
3727
+ const contents = (0, smithy_client_1.map)({
3742
3728
  $metadata: deserializeMetadata(output),
3743
3729
  Location: [, output.headers["location"]],
3744
3730
  ETag: [, output.headers["etag"]],
@@ -3781,10 +3767,9 @@ const de_CreateOriginRequestPolicyCommandError = async (output, context) => {
3781
3767
  throw await de_TooManyQueryStringsInOriginRequestPolicyRes(parsedOutput, context);
3782
3768
  default:
3783
3769
  const parsedBody = parsedOutput.body;
3784
- (0, smithy_client_1.throwDefaultError)({
3770
+ return throwDefaultError({
3785
3771
  output,
3786
3772
  parsedBody: parsedBody.Error,
3787
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3788
3773
  errorCode,
3789
3774
  });
3790
3775
  }
@@ -3793,7 +3778,7 @@ const de_CreatePublicKeyCommand = async (output, context) => {
3793
3778
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3794
3779
  return de_CreatePublicKeyCommandError(output, context);
3795
3780
  }
3796
- const contents = map({
3781
+ const contents = (0, smithy_client_1.map)({
3797
3782
  $metadata: deserializeMetadata(output),
3798
3783
  Location: [, output.headers["location"]],
3799
3784
  ETag: [, output.headers["etag"]],
@@ -3821,10 +3806,9 @@ const de_CreatePublicKeyCommandError = async (output, context) => {
3821
3806
  throw await de_TooManyPublicKeysRes(parsedOutput, context);
3822
3807
  default:
3823
3808
  const parsedBody = parsedOutput.body;
3824
- (0, smithy_client_1.throwDefaultError)({
3809
+ return throwDefaultError({
3825
3810
  output,
3826
3811
  parsedBody: parsedBody.Error,
3827
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3828
3812
  errorCode,
3829
3813
  });
3830
3814
  }
@@ -3833,7 +3817,7 @@ const de_CreateRealtimeLogConfigCommand = async (output, context) => {
3833
3817
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3834
3818
  return de_CreateRealtimeLogConfigCommandError(output, context);
3835
3819
  }
3836
- const contents = map({
3820
+ const contents = (0, smithy_client_1.map)({
3837
3821
  $metadata: deserializeMetadata(output),
3838
3822
  });
3839
3823
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3864,10 +3848,9 @@ const de_CreateRealtimeLogConfigCommandError = async (output, context) => {
3864
3848
  throw await de_TooManyRealtimeLogConfigsRes(parsedOutput, context);
3865
3849
  default:
3866
3850
  const parsedBody = parsedOutput.body;
3867
- (0, smithy_client_1.throwDefaultError)({
3851
+ return throwDefaultError({
3868
3852
  output,
3869
3853
  parsedBody: parsedBody.Error,
3870
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3871
3854
  errorCode,
3872
3855
  });
3873
3856
  }
@@ -3876,7 +3859,7 @@ const de_CreateResponseHeadersPolicyCommand = async (output, context) => {
3876
3859
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3877
3860
  return de_CreateResponseHeadersPolicyCommandError(output, context);
3878
3861
  }
3879
- const contents = map({
3862
+ const contents = (0, smithy_client_1.map)({
3880
3863
  $metadata: deserializeMetadata(output),
3881
3864
  Location: [, output.headers["location"]],
3882
3865
  ETag: [, output.headers["etag"]],
@@ -3919,10 +3902,9 @@ const de_CreateResponseHeadersPolicyCommandError = async (output, context) => {
3919
3902
  throw await de_TooManyResponseHeadersPoliciesRes(parsedOutput, context);
3920
3903
  default:
3921
3904
  const parsedBody = parsedOutput.body;
3922
- (0, smithy_client_1.throwDefaultError)({
3905
+ return throwDefaultError({
3923
3906
  output,
3924
3907
  parsedBody: parsedBody.Error,
3925
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3926
3908
  errorCode,
3927
3909
  });
3928
3910
  }
@@ -3931,7 +3913,7 @@ const de_CreateStreamingDistributionCommand = async (output, context) => {
3931
3913
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3932
3914
  return de_CreateStreamingDistributionCommandError(output, context);
3933
3915
  }
3934
- const contents = map({
3916
+ const contents = (0, smithy_client_1.map)({
3935
3917
  $metadata: deserializeMetadata(output),
3936
3918
  Location: [, output.headers["location"]],
3937
3919
  ETag: [, output.headers["etag"]],
@@ -3989,10 +3971,9 @@ const de_CreateStreamingDistributionCommandError = async (output, context) => {
3989
3971
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
3990
3972
  default:
3991
3973
  const parsedBody = parsedOutput.body;
3992
- (0, smithy_client_1.throwDefaultError)({
3974
+ return throwDefaultError({
3993
3975
  output,
3994
3976
  parsedBody: parsedBody.Error,
3995
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
3996
3977
  errorCode,
3997
3978
  });
3998
3979
  }
@@ -4001,7 +3982,7 @@ const de_CreateStreamingDistributionWithTagsCommand = async (output, context) =>
4001
3982
  if (output.statusCode !== 201 && output.statusCode >= 300) {
4002
3983
  return de_CreateStreamingDistributionWithTagsCommandError(output, context);
4003
3984
  }
4004
- const contents = map({
3985
+ const contents = (0, smithy_client_1.map)({
4005
3986
  $metadata: deserializeMetadata(output),
4006
3987
  Location: [, output.headers["location"]],
4007
3988
  ETag: [, output.headers["etag"]],
@@ -4062,10 +4043,9 @@ const de_CreateStreamingDistributionWithTagsCommandError = async (output, contex
4062
4043
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
4063
4044
  default:
4064
4045
  const parsedBody = parsedOutput.body;
4065
- (0, smithy_client_1.throwDefaultError)({
4046
+ return throwDefaultError({
4066
4047
  output,
4067
4048
  parsedBody: parsedBody.Error,
4068
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4069
4049
  errorCode,
4070
4050
  });
4071
4051
  }
@@ -4074,7 +4054,7 @@ const de_DeleteCachePolicyCommand = async (output, context) => {
4074
4054
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4075
4055
  return de_DeleteCachePolicyCommandError(output, context);
4076
4056
  }
4077
- const contents = map({
4057
+ const contents = (0, smithy_client_1.map)({
4078
4058
  $metadata: deserializeMetadata(output),
4079
4059
  });
4080
4060
  await collectBody(output.body, context);
@@ -4108,10 +4088,9 @@ const de_DeleteCachePolicyCommandError = async (output, context) => {
4108
4088
  throw await de_PreconditionFailedRes(parsedOutput, context);
4109
4089
  default:
4110
4090
  const parsedBody = parsedOutput.body;
4111
- (0, smithy_client_1.throwDefaultError)({
4091
+ return throwDefaultError({
4112
4092
  output,
4113
4093
  parsedBody: parsedBody.Error,
4114
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4115
4094
  errorCode,
4116
4095
  });
4117
4096
  }
@@ -4120,7 +4099,7 @@ const de_DeleteCloudFrontOriginAccessIdentityCommand = async (output, context) =
4120
4099
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4121
4100
  return de_DeleteCloudFrontOriginAccessIdentityCommandError(output, context);
4122
4101
  }
4123
- const contents = map({
4102
+ const contents = (0, smithy_client_1.map)({
4124
4103
  $metadata: deserializeMetadata(output),
4125
4104
  });
4126
4105
  await collectBody(output.body, context);
@@ -4151,10 +4130,9 @@ const de_DeleteCloudFrontOriginAccessIdentityCommandError = async (output, conte
4151
4130
  throw await de_PreconditionFailedRes(parsedOutput, context);
4152
4131
  default:
4153
4132
  const parsedBody = parsedOutput.body;
4154
- (0, smithy_client_1.throwDefaultError)({
4133
+ return throwDefaultError({
4155
4134
  output,
4156
4135
  parsedBody: parsedBody.Error,
4157
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4158
4136
  errorCode,
4159
4137
  });
4160
4138
  }
@@ -4163,7 +4141,7 @@ const de_DeleteContinuousDeploymentPolicyCommand = async (output, context) => {
4163
4141
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4164
4142
  return de_DeleteContinuousDeploymentPolicyCommandError(output, context);
4165
4143
  }
4166
- const contents = map({
4144
+ const contents = (0, smithy_client_1.map)({
4167
4145
  $metadata: deserializeMetadata(output),
4168
4146
  });
4169
4147
  await collectBody(output.body, context);
@@ -4197,10 +4175,9 @@ const de_DeleteContinuousDeploymentPolicyCommandError = async (output, context)
4197
4175
  throw await de_PreconditionFailedRes(parsedOutput, context);
4198
4176
  default:
4199
4177
  const parsedBody = parsedOutput.body;
4200
- (0, smithy_client_1.throwDefaultError)({
4178
+ return throwDefaultError({
4201
4179
  output,
4202
4180
  parsedBody: parsedBody.Error,
4203
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4204
4181
  errorCode,
4205
4182
  });
4206
4183
  }
@@ -4209,7 +4186,7 @@ const de_DeleteDistributionCommand = async (output, context) => {
4209
4186
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4210
4187
  return de_DeleteDistributionCommandError(output, context);
4211
4188
  }
4212
- const contents = map({
4189
+ const contents = (0, smithy_client_1.map)({
4213
4190
  $metadata: deserializeMetadata(output),
4214
4191
  });
4215
4192
  await collectBody(output.body, context);
@@ -4240,10 +4217,9 @@ const de_DeleteDistributionCommandError = async (output, context) => {
4240
4217
  throw await de_PreconditionFailedRes(parsedOutput, context);
4241
4218
  default:
4242
4219
  const parsedBody = parsedOutput.body;
4243
- (0, smithy_client_1.throwDefaultError)({
4220
+ return throwDefaultError({
4244
4221
  output,
4245
4222
  parsedBody: parsedBody.Error,
4246
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4247
4223
  errorCode,
4248
4224
  });
4249
4225
  }
@@ -4252,7 +4228,7 @@ const de_DeleteFieldLevelEncryptionConfigCommand = async (output, context) => {
4252
4228
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4253
4229
  return de_DeleteFieldLevelEncryptionConfigCommandError(output, context);
4254
4230
  }
4255
- const contents = map({
4231
+ const contents = (0, smithy_client_1.map)({
4256
4232
  $metadata: deserializeMetadata(output),
4257
4233
  });
4258
4234
  await collectBody(output.body, context);
@@ -4283,10 +4259,9 @@ const de_DeleteFieldLevelEncryptionConfigCommandError = async (output, context)
4283
4259
  throw await de_PreconditionFailedRes(parsedOutput, context);
4284
4260
  default:
4285
4261
  const parsedBody = parsedOutput.body;
4286
- (0, smithy_client_1.throwDefaultError)({
4262
+ return throwDefaultError({
4287
4263
  output,
4288
4264
  parsedBody: parsedBody.Error,
4289
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4290
4265
  errorCode,
4291
4266
  });
4292
4267
  }
@@ -4295,7 +4270,7 @@ const de_DeleteFieldLevelEncryptionProfileCommand = async (output, context) => {
4295
4270
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4296
4271
  return de_DeleteFieldLevelEncryptionProfileCommandError(output, context);
4297
4272
  }
4298
- const contents = map({
4273
+ const contents = (0, smithy_client_1.map)({
4299
4274
  $metadata: deserializeMetadata(output),
4300
4275
  });
4301
4276
  await collectBody(output.body, context);
@@ -4326,10 +4301,9 @@ const de_DeleteFieldLevelEncryptionProfileCommandError = async (output, context)
4326
4301
  throw await de_PreconditionFailedRes(parsedOutput, context);
4327
4302
  default:
4328
4303
  const parsedBody = parsedOutput.body;
4329
- (0, smithy_client_1.throwDefaultError)({
4304
+ return throwDefaultError({
4330
4305
  output,
4331
4306
  parsedBody: parsedBody.Error,
4332
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4333
4307
  errorCode,
4334
4308
  });
4335
4309
  }
@@ -4338,7 +4312,7 @@ const de_DeleteFunctionCommand = async (output, context) => {
4338
4312
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4339
4313
  return de_DeleteFunctionCommandError(output, context);
4340
4314
  }
4341
- const contents = map({
4315
+ const contents = (0, smithy_client_1.map)({
4342
4316
  $metadata: deserializeMetadata(output),
4343
4317
  });
4344
4318
  await collectBody(output.body, context);
@@ -4369,10 +4343,9 @@ const de_DeleteFunctionCommandError = async (output, context) => {
4369
4343
  throw await de_UnsupportedOperationRes(parsedOutput, context);
4370
4344
  default:
4371
4345
  const parsedBody = parsedOutput.body;
4372
- (0, smithy_client_1.throwDefaultError)({
4346
+ return throwDefaultError({
4373
4347
  output,
4374
4348
  parsedBody: parsedBody.Error,
4375
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4376
4349
  errorCode,
4377
4350
  });
4378
4351
  }
@@ -4381,7 +4354,7 @@ const de_DeleteKeyGroupCommand = async (output, context) => {
4381
4354
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4382
4355
  return de_DeleteKeyGroupCommandError(output, context);
4383
4356
  }
4384
- const contents = map({
4357
+ const contents = (0, smithy_client_1.map)({
4385
4358
  $metadata: deserializeMetadata(output),
4386
4359
  });
4387
4360
  await collectBody(output.body, context);
@@ -4409,10 +4382,9 @@ const de_DeleteKeyGroupCommandError = async (output, context) => {
4409
4382
  throw await de_ResourceInUseRes(parsedOutput, context);
4410
4383
  default:
4411
4384
  const parsedBody = parsedOutput.body;
4412
- (0, smithy_client_1.throwDefaultError)({
4385
+ return throwDefaultError({
4413
4386
  output,
4414
4387
  parsedBody: parsedBody.Error,
4415
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4416
4388
  errorCode,
4417
4389
  });
4418
4390
  }
@@ -4421,7 +4393,7 @@ const de_DeleteMonitoringSubscriptionCommand = async (output, context) => {
4421
4393
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4422
4394
  return de_DeleteMonitoringSubscriptionCommandError(output, context);
4423
4395
  }
4424
- const contents = map({
4396
+ const contents = (0, smithy_client_1.map)({
4425
4397
  $metadata: deserializeMetadata(output),
4426
4398
  });
4427
4399
  await collectBody(output.body, context);
@@ -4449,10 +4421,9 @@ const de_DeleteMonitoringSubscriptionCommandError = async (output, context) => {
4449
4421
  throw await de_UnsupportedOperationRes(parsedOutput, context);
4450
4422
  default:
4451
4423
  const parsedBody = parsedOutput.body;
4452
- (0, smithy_client_1.throwDefaultError)({
4424
+ return throwDefaultError({
4453
4425
  output,
4454
4426
  parsedBody: parsedBody.Error,
4455
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4456
4427
  errorCode,
4457
4428
  });
4458
4429
  }
@@ -4461,7 +4432,7 @@ const de_DeleteOriginAccessControlCommand = async (output, context) => {
4461
4432
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4462
4433
  return de_DeleteOriginAccessControlCommandError(output, context);
4463
4434
  }
4464
- const contents = map({
4435
+ const contents = (0, smithy_client_1.map)({
4465
4436
  $metadata: deserializeMetadata(output),
4466
4437
  });
4467
4438
  await collectBody(output.body, context);
@@ -4492,10 +4463,9 @@ const de_DeleteOriginAccessControlCommandError = async (output, context) => {
4492
4463
  throw await de_PreconditionFailedRes(parsedOutput, context);
4493
4464
  default:
4494
4465
  const parsedBody = parsedOutput.body;
4495
- (0, smithy_client_1.throwDefaultError)({
4466
+ return throwDefaultError({
4496
4467
  output,
4497
4468
  parsedBody: parsedBody.Error,
4498
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4499
4469
  errorCode,
4500
4470
  });
4501
4471
  }
@@ -4504,7 +4474,7 @@ const de_DeleteOriginRequestPolicyCommand = async (output, context) => {
4504
4474
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4505
4475
  return de_DeleteOriginRequestPolicyCommandError(output, context);
4506
4476
  }
4507
- const contents = map({
4477
+ const contents = (0, smithy_client_1.map)({
4508
4478
  $metadata: deserializeMetadata(output),
4509
4479
  });
4510
4480
  await collectBody(output.body, context);
@@ -4538,10 +4508,9 @@ const de_DeleteOriginRequestPolicyCommandError = async (output, context) => {
4538
4508
  throw await de_PreconditionFailedRes(parsedOutput, context);
4539
4509
  default:
4540
4510
  const parsedBody = parsedOutput.body;
4541
- (0, smithy_client_1.throwDefaultError)({
4511
+ return throwDefaultError({
4542
4512
  output,
4543
4513
  parsedBody: parsedBody.Error,
4544
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4545
4514
  errorCode,
4546
4515
  });
4547
4516
  }
@@ -4550,7 +4519,7 @@ const de_DeletePublicKeyCommand = async (output, context) => {
4550
4519
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4551
4520
  return de_DeletePublicKeyCommandError(output, context);
4552
4521
  }
4553
- const contents = map({
4522
+ const contents = (0, smithy_client_1.map)({
4554
4523
  $metadata: deserializeMetadata(output),
4555
4524
  });
4556
4525
  await collectBody(output.body, context);
@@ -4581,10 +4550,9 @@ const de_DeletePublicKeyCommandError = async (output, context) => {
4581
4550
  throw await de_PublicKeyInUseRes(parsedOutput, context);
4582
4551
  default:
4583
4552
  const parsedBody = parsedOutput.body;
4584
- (0, smithy_client_1.throwDefaultError)({
4553
+ return throwDefaultError({
4585
4554
  output,
4586
4555
  parsedBody: parsedBody.Error,
4587
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4588
4556
  errorCode,
4589
4557
  });
4590
4558
  }
@@ -4593,7 +4561,7 @@ const de_DeleteRealtimeLogConfigCommand = async (output, context) => {
4593
4561
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4594
4562
  return de_DeleteRealtimeLogConfigCommandError(output, context);
4595
4563
  }
4596
- const contents = map({
4564
+ const contents = (0, smithy_client_1.map)({
4597
4565
  $metadata: deserializeMetadata(output),
4598
4566
  });
4599
4567
  await collectBody(output.body, context);
@@ -4621,10 +4589,9 @@ const de_DeleteRealtimeLogConfigCommandError = async (output, context) => {
4621
4589
  throw await de_RealtimeLogConfigInUseRes(parsedOutput, context);
4622
4590
  default:
4623
4591
  const parsedBody = parsedOutput.body;
4624
- (0, smithy_client_1.throwDefaultError)({
4592
+ return throwDefaultError({
4625
4593
  output,
4626
4594
  parsedBody: parsedBody.Error,
4627
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4628
4595
  errorCode,
4629
4596
  });
4630
4597
  }
@@ -4633,7 +4600,7 @@ const de_DeleteResponseHeadersPolicyCommand = async (output, context) => {
4633
4600
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4634
4601
  return de_DeleteResponseHeadersPolicyCommandError(output, context);
4635
4602
  }
4636
- const contents = map({
4603
+ const contents = (0, smithy_client_1.map)({
4637
4604
  $metadata: deserializeMetadata(output),
4638
4605
  });
4639
4606
  await collectBody(output.body, context);
@@ -4667,10 +4634,9 @@ const de_DeleteResponseHeadersPolicyCommandError = async (output, context) => {
4667
4634
  throw await de_ResponseHeadersPolicyInUseRes(parsedOutput, context);
4668
4635
  default:
4669
4636
  const parsedBody = parsedOutput.body;
4670
- (0, smithy_client_1.throwDefaultError)({
4637
+ return throwDefaultError({
4671
4638
  output,
4672
4639
  parsedBody: parsedBody.Error,
4673
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4674
4640
  errorCode,
4675
4641
  });
4676
4642
  }
@@ -4679,7 +4645,7 @@ const de_DeleteStreamingDistributionCommand = async (output, context) => {
4679
4645
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4680
4646
  return de_DeleteStreamingDistributionCommandError(output, context);
4681
4647
  }
4682
- const contents = map({
4648
+ const contents = (0, smithy_client_1.map)({
4683
4649
  $metadata: deserializeMetadata(output),
4684
4650
  });
4685
4651
  await collectBody(output.body, context);
@@ -4710,10 +4676,9 @@ const de_DeleteStreamingDistributionCommandError = async (output, context) => {
4710
4676
  throw await de_StreamingDistributionNotDisabledRes(parsedOutput, context);
4711
4677
  default:
4712
4678
  const parsedBody = parsedOutput.body;
4713
- (0, smithy_client_1.throwDefaultError)({
4679
+ return throwDefaultError({
4714
4680
  output,
4715
4681
  parsedBody: parsedBody.Error,
4716
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4717
4682
  errorCode,
4718
4683
  });
4719
4684
  }
@@ -4722,7 +4687,7 @@ const de_DescribeFunctionCommand = async (output, context) => {
4722
4687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4723
4688
  return de_DescribeFunctionCommandError(output, context);
4724
4689
  }
4725
- const contents = map({
4690
+ const contents = (0, smithy_client_1.map)({
4726
4691
  $metadata: deserializeMetadata(output),
4727
4692
  ETag: [, output.headers["etag"]],
4728
4693
  });
@@ -4746,10 +4711,9 @@ const de_DescribeFunctionCommandError = async (output, context) => {
4746
4711
  throw await de_UnsupportedOperationRes(parsedOutput, context);
4747
4712
  default:
4748
4713
  const parsedBody = parsedOutput.body;
4749
- (0, smithy_client_1.throwDefaultError)({
4714
+ return throwDefaultError({
4750
4715
  output,
4751
4716
  parsedBody: parsedBody.Error,
4752
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4753
4717
  errorCode,
4754
4718
  });
4755
4719
  }
@@ -4758,7 +4722,7 @@ const de_GetCachePolicyCommand = async (output, context) => {
4758
4722
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4759
4723
  return de_GetCachePolicyCommandError(output, context);
4760
4724
  }
4761
- const contents = map({
4725
+ const contents = (0, smithy_client_1.map)({
4762
4726
  $metadata: deserializeMetadata(output),
4763
4727
  ETag: [, output.headers["etag"]],
4764
4728
  });
@@ -4782,10 +4746,9 @@ const de_GetCachePolicyCommandError = async (output, context) => {
4782
4746
  throw await de_NoSuchCachePolicyRes(parsedOutput, context);
4783
4747
  default:
4784
4748
  const parsedBody = parsedOutput.body;
4785
- (0, smithy_client_1.throwDefaultError)({
4749
+ return throwDefaultError({
4786
4750
  output,
4787
4751
  parsedBody: parsedBody.Error,
4788
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4789
4752
  errorCode,
4790
4753
  });
4791
4754
  }
@@ -4794,7 +4757,7 @@ const de_GetCachePolicyConfigCommand = async (output, context) => {
4794
4757
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4795
4758
  return de_GetCachePolicyConfigCommandError(output, context);
4796
4759
  }
4797
- const contents = map({
4760
+ const contents = (0, smithy_client_1.map)({
4798
4761
  $metadata: deserializeMetadata(output),
4799
4762
  ETag: [, output.headers["etag"]],
4800
4763
  });
@@ -4818,10 +4781,9 @@ const de_GetCachePolicyConfigCommandError = async (output, context) => {
4818
4781
  throw await de_NoSuchCachePolicyRes(parsedOutput, context);
4819
4782
  default:
4820
4783
  const parsedBody = parsedOutput.body;
4821
- (0, smithy_client_1.throwDefaultError)({
4784
+ return throwDefaultError({
4822
4785
  output,
4823
4786
  parsedBody: parsedBody.Error,
4824
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4825
4787
  errorCode,
4826
4788
  });
4827
4789
  }
@@ -4830,7 +4792,7 @@ const de_GetCloudFrontOriginAccessIdentityCommand = async (output, context) => {
4830
4792
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4831
4793
  return de_GetCloudFrontOriginAccessIdentityCommandError(output, context);
4832
4794
  }
4833
- const contents = map({
4795
+ const contents = (0, smithy_client_1.map)({
4834
4796
  $metadata: deserializeMetadata(output),
4835
4797
  ETag: [, output.headers["etag"]],
4836
4798
  });
@@ -4854,10 +4816,9 @@ const de_GetCloudFrontOriginAccessIdentityCommandError = async (output, context)
4854
4816
  throw await de_NoSuchCloudFrontOriginAccessIdentityRes(parsedOutput, context);
4855
4817
  default:
4856
4818
  const parsedBody = parsedOutput.body;
4857
- (0, smithy_client_1.throwDefaultError)({
4819
+ return throwDefaultError({
4858
4820
  output,
4859
4821
  parsedBody: parsedBody.Error,
4860
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4861
4822
  errorCode,
4862
4823
  });
4863
4824
  }
@@ -4866,7 +4827,7 @@ const de_GetCloudFrontOriginAccessIdentityConfigCommand = async (output, context
4866
4827
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4867
4828
  return de_GetCloudFrontOriginAccessIdentityConfigCommandError(output, context);
4868
4829
  }
4869
- const contents = map({
4830
+ const contents = (0, smithy_client_1.map)({
4870
4831
  $metadata: deserializeMetadata(output),
4871
4832
  ETag: [, output.headers["etag"]],
4872
4833
  });
@@ -4890,10 +4851,9 @@ const de_GetCloudFrontOriginAccessIdentityConfigCommandError = async (output, co
4890
4851
  throw await de_NoSuchCloudFrontOriginAccessIdentityRes(parsedOutput, context);
4891
4852
  default:
4892
4853
  const parsedBody = parsedOutput.body;
4893
- (0, smithy_client_1.throwDefaultError)({
4854
+ return throwDefaultError({
4894
4855
  output,
4895
4856
  parsedBody: parsedBody.Error,
4896
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4897
4857
  errorCode,
4898
4858
  });
4899
4859
  }
@@ -4902,7 +4862,7 @@ const de_GetContinuousDeploymentPolicyCommand = async (output, context) => {
4902
4862
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4903
4863
  return de_GetContinuousDeploymentPolicyCommandError(output, context);
4904
4864
  }
4905
- const contents = map({
4865
+ const contents = (0, smithy_client_1.map)({
4906
4866
  $metadata: deserializeMetadata(output),
4907
4867
  ETag: [, output.headers["etag"]],
4908
4868
  });
@@ -4926,10 +4886,9 @@ const de_GetContinuousDeploymentPolicyCommandError = async (output, context) =>
4926
4886
  throw await de_NoSuchContinuousDeploymentPolicyRes(parsedOutput, context);
4927
4887
  default:
4928
4888
  const parsedBody = parsedOutput.body;
4929
- (0, smithy_client_1.throwDefaultError)({
4889
+ return throwDefaultError({
4930
4890
  output,
4931
4891
  parsedBody: parsedBody.Error,
4932
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4933
4892
  errorCode,
4934
4893
  });
4935
4894
  }
@@ -4938,7 +4897,7 @@ const de_GetContinuousDeploymentPolicyConfigCommand = async (output, context) =>
4938
4897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4939
4898
  return de_GetContinuousDeploymentPolicyConfigCommandError(output, context);
4940
4899
  }
4941
- const contents = map({
4900
+ const contents = (0, smithy_client_1.map)({
4942
4901
  $metadata: deserializeMetadata(output),
4943
4902
  ETag: [, output.headers["etag"]],
4944
4903
  });
@@ -4962,10 +4921,9 @@ const de_GetContinuousDeploymentPolicyConfigCommandError = async (output, contex
4962
4921
  throw await de_NoSuchContinuousDeploymentPolicyRes(parsedOutput, context);
4963
4922
  default:
4964
4923
  const parsedBody = parsedOutput.body;
4965
- (0, smithy_client_1.throwDefaultError)({
4924
+ return throwDefaultError({
4966
4925
  output,
4967
4926
  parsedBody: parsedBody.Error,
4968
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
4969
4927
  errorCode,
4970
4928
  });
4971
4929
  }
@@ -4974,7 +4932,7 @@ const de_GetDistributionCommand = async (output, context) => {
4974
4932
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4975
4933
  return de_GetDistributionCommandError(output, context);
4976
4934
  }
4977
- const contents = map({
4935
+ const contents = (0, smithy_client_1.map)({
4978
4936
  $metadata: deserializeMetadata(output),
4979
4937
  ETag: [, output.headers["etag"]],
4980
4938
  });
@@ -4998,10 +4956,9 @@ const de_GetDistributionCommandError = async (output, context) => {
4998
4956
  throw await de_NoSuchDistributionRes(parsedOutput, context);
4999
4957
  default:
5000
4958
  const parsedBody = parsedOutput.body;
5001
- (0, smithy_client_1.throwDefaultError)({
4959
+ return throwDefaultError({
5002
4960
  output,
5003
4961
  parsedBody: parsedBody.Error,
5004
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5005
4962
  errorCode,
5006
4963
  });
5007
4964
  }
@@ -5010,7 +4967,7 @@ const de_GetDistributionConfigCommand = async (output, context) => {
5010
4967
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5011
4968
  return de_GetDistributionConfigCommandError(output, context);
5012
4969
  }
5013
- const contents = map({
4970
+ const contents = (0, smithy_client_1.map)({
5014
4971
  $metadata: deserializeMetadata(output),
5015
4972
  ETag: [, output.headers["etag"]],
5016
4973
  });
@@ -5034,10 +4991,9 @@ const de_GetDistributionConfigCommandError = async (output, context) => {
5034
4991
  throw await de_NoSuchDistributionRes(parsedOutput, context);
5035
4992
  default:
5036
4993
  const parsedBody = parsedOutput.body;
5037
- (0, smithy_client_1.throwDefaultError)({
4994
+ return throwDefaultError({
5038
4995
  output,
5039
4996
  parsedBody: parsedBody.Error,
5040
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5041
4997
  errorCode,
5042
4998
  });
5043
4999
  }
@@ -5046,7 +5002,7 @@ const de_GetFieldLevelEncryptionCommand = async (output, context) => {
5046
5002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5047
5003
  return de_GetFieldLevelEncryptionCommandError(output, context);
5048
5004
  }
5049
- const contents = map({
5005
+ const contents = (0, smithy_client_1.map)({
5050
5006
  $metadata: deserializeMetadata(output),
5051
5007
  ETag: [, output.headers["etag"]],
5052
5008
  });
@@ -5070,10 +5026,9 @@ const de_GetFieldLevelEncryptionCommandError = async (output, context) => {
5070
5026
  throw await de_NoSuchFieldLevelEncryptionConfigRes(parsedOutput, context);
5071
5027
  default:
5072
5028
  const parsedBody = parsedOutput.body;
5073
- (0, smithy_client_1.throwDefaultError)({
5029
+ return throwDefaultError({
5074
5030
  output,
5075
5031
  parsedBody: parsedBody.Error,
5076
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5077
5032
  errorCode,
5078
5033
  });
5079
5034
  }
@@ -5082,7 +5037,7 @@ const de_GetFieldLevelEncryptionConfigCommand = async (output, context) => {
5082
5037
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5083
5038
  return de_GetFieldLevelEncryptionConfigCommandError(output, context);
5084
5039
  }
5085
- const contents = map({
5040
+ const contents = (0, smithy_client_1.map)({
5086
5041
  $metadata: deserializeMetadata(output),
5087
5042
  ETag: [, output.headers["etag"]],
5088
5043
  });
@@ -5106,10 +5061,9 @@ const de_GetFieldLevelEncryptionConfigCommandError = async (output, context) =>
5106
5061
  throw await de_NoSuchFieldLevelEncryptionConfigRes(parsedOutput, context);
5107
5062
  default:
5108
5063
  const parsedBody = parsedOutput.body;
5109
- (0, smithy_client_1.throwDefaultError)({
5064
+ return throwDefaultError({
5110
5065
  output,
5111
5066
  parsedBody: parsedBody.Error,
5112
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5113
5067
  errorCode,
5114
5068
  });
5115
5069
  }
@@ -5118,7 +5072,7 @@ const de_GetFieldLevelEncryptionProfileCommand = async (output, context) => {
5118
5072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5119
5073
  return de_GetFieldLevelEncryptionProfileCommandError(output, context);
5120
5074
  }
5121
- const contents = map({
5075
+ const contents = (0, smithy_client_1.map)({
5122
5076
  $metadata: deserializeMetadata(output),
5123
5077
  ETag: [, output.headers["etag"]],
5124
5078
  });
@@ -5142,10 +5096,9 @@ const de_GetFieldLevelEncryptionProfileCommandError = async (output, context) =>
5142
5096
  throw await de_NoSuchFieldLevelEncryptionProfileRes(parsedOutput, context);
5143
5097
  default:
5144
5098
  const parsedBody = parsedOutput.body;
5145
- (0, smithy_client_1.throwDefaultError)({
5099
+ return throwDefaultError({
5146
5100
  output,
5147
5101
  parsedBody: parsedBody.Error,
5148
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5149
5102
  errorCode,
5150
5103
  });
5151
5104
  }
@@ -5154,7 +5107,7 @@ const de_GetFieldLevelEncryptionProfileConfigCommand = async (output, context) =
5154
5107
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5155
5108
  return de_GetFieldLevelEncryptionProfileConfigCommandError(output, context);
5156
5109
  }
5157
- const contents = map({
5110
+ const contents = (0, smithy_client_1.map)({
5158
5111
  $metadata: deserializeMetadata(output),
5159
5112
  ETag: [, output.headers["etag"]],
5160
5113
  });
@@ -5178,10 +5131,9 @@ const de_GetFieldLevelEncryptionProfileConfigCommandError = async (output, conte
5178
5131
  throw await de_NoSuchFieldLevelEncryptionProfileRes(parsedOutput, context);
5179
5132
  default:
5180
5133
  const parsedBody = parsedOutput.body;
5181
- (0, smithy_client_1.throwDefaultError)({
5134
+ return throwDefaultError({
5182
5135
  output,
5183
5136
  parsedBody: parsedBody.Error,
5184
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5185
5137
  errorCode,
5186
5138
  });
5187
5139
  }
@@ -5190,7 +5142,7 @@ const de_GetFunctionCommand = async (output, context) => {
5190
5142
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5191
5143
  return de_GetFunctionCommandError(output, context);
5192
5144
  }
5193
- const contents = map({
5145
+ const contents = (0, smithy_client_1.map)({
5194
5146
  $metadata: deserializeMetadata(output),
5195
5147
  ETag: [, output.headers["etag"]],
5196
5148
  ContentType: [, output.headers["content-type"]],
@@ -5215,10 +5167,9 @@ const de_GetFunctionCommandError = async (output, context) => {
5215
5167
  throw await de_UnsupportedOperationRes(parsedOutput, context);
5216
5168
  default:
5217
5169
  const parsedBody = parsedOutput.body;
5218
- (0, smithy_client_1.throwDefaultError)({
5170
+ return throwDefaultError({
5219
5171
  output,
5220
5172
  parsedBody: parsedBody.Error,
5221
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5222
5173
  errorCode,
5223
5174
  });
5224
5175
  }
@@ -5227,7 +5178,7 @@ const de_GetInvalidationCommand = async (output, context) => {
5227
5178
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5228
5179
  return de_GetInvalidationCommandError(output, context);
5229
5180
  }
5230
- const contents = map({
5181
+ const contents = (0, smithy_client_1.map)({
5231
5182
  $metadata: deserializeMetadata(output),
5232
5183
  });
5233
5184
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5253,10 +5204,9 @@ const de_GetInvalidationCommandError = async (output, context) => {
5253
5204
  throw await de_NoSuchInvalidationRes(parsedOutput, context);
5254
5205
  default:
5255
5206
  const parsedBody = parsedOutput.body;
5256
- (0, smithy_client_1.throwDefaultError)({
5207
+ return throwDefaultError({
5257
5208
  output,
5258
5209
  parsedBody: parsedBody.Error,
5259
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5260
5210
  errorCode,
5261
5211
  });
5262
5212
  }
@@ -5265,7 +5215,7 @@ const de_GetKeyGroupCommand = async (output, context) => {
5265
5215
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5266
5216
  return de_GetKeyGroupCommandError(output, context);
5267
5217
  }
5268
- const contents = map({
5218
+ const contents = (0, smithy_client_1.map)({
5269
5219
  $metadata: deserializeMetadata(output),
5270
5220
  ETag: [, output.headers["etag"]],
5271
5221
  });
@@ -5286,10 +5236,9 @@ const de_GetKeyGroupCommandError = async (output, context) => {
5286
5236
  throw await de_NoSuchResourceRes(parsedOutput, context);
5287
5237
  default:
5288
5238
  const parsedBody = parsedOutput.body;
5289
- (0, smithy_client_1.throwDefaultError)({
5239
+ return throwDefaultError({
5290
5240
  output,
5291
5241
  parsedBody: parsedBody.Error,
5292
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5293
5242
  errorCode,
5294
5243
  });
5295
5244
  }
@@ -5298,7 +5247,7 @@ const de_GetKeyGroupConfigCommand = async (output, context) => {
5298
5247
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5299
5248
  return de_GetKeyGroupConfigCommandError(output, context);
5300
5249
  }
5301
- const contents = map({
5250
+ const contents = (0, smithy_client_1.map)({
5302
5251
  $metadata: deserializeMetadata(output),
5303
5252
  ETag: [, output.headers["etag"]],
5304
5253
  });
@@ -5319,10 +5268,9 @@ const de_GetKeyGroupConfigCommandError = async (output, context) => {
5319
5268
  throw await de_NoSuchResourceRes(parsedOutput, context);
5320
5269
  default:
5321
5270
  const parsedBody = parsedOutput.body;
5322
- (0, smithy_client_1.throwDefaultError)({
5271
+ return throwDefaultError({
5323
5272
  output,
5324
5273
  parsedBody: parsedBody.Error,
5325
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5326
5274
  errorCode,
5327
5275
  });
5328
5276
  }
@@ -5331,7 +5279,7 @@ const de_GetMonitoringSubscriptionCommand = async (output, context) => {
5331
5279
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5332
5280
  return de_GetMonitoringSubscriptionCommandError(output, context);
5333
5281
  }
5334
- const contents = map({
5282
+ const contents = (0, smithy_client_1.map)({
5335
5283
  $metadata: deserializeMetadata(output),
5336
5284
  });
5337
5285
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5360,10 +5308,9 @@ const de_GetMonitoringSubscriptionCommandError = async (output, context) => {
5360
5308
  throw await de_UnsupportedOperationRes(parsedOutput, context);
5361
5309
  default:
5362
5310
  const parsedBody = parsedOutput.body;
5363
- (0, smithy_client_1.throwDefaultError)({
5311
+ return throwDefaultError({
5364
5312
  output,
5365
5313
  parsedBody: parsedBody.Error,
5366
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5367
5314
  errorCode,
5368
5315
  });
5369
5316
  }
@@ -5372,7 +5319,7 @@ const de_GetOriginAccessControlCommand = async (output, context) => {
5372
5319
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5373
5320
  return de_GetOriginAccessControlCommandError(output, context);
5374
5321
  }
5375
- const contents = map({
5322
+ const contents = (0, smithy_client_1.map)({
5376
5323
  $metadata: deserializeMetadata(output),
5377
5324
  ETag: [, output.headers["etag"]],
5378
5325
  });
@@ -5396,10 +5343,9 @@ const de_GetOriginAccessControlCommandError = async (output, context) => {
5396
5343
  throw await de_NoSuchOriginAccessControlRes(parsedOutput, context);
5397
5344
  default:
5398
5345
  const parsedBody = parsedOutput.body;
5399
- (0, smithy_client_1.throwDefaultError)({
5346
+ return throwDefaultError({
5400
5347
  output,
5401
5348
  parsedBody: parsedBody.Error,
5402
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5403
5349
  errorCode,
5404
5350
  });
5405
5351
  }
@@ -5408,7 +5354,7 @@ const de_GetOriginAccessControlConfigCommand = async (output, context) => {
5408
5354
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5409
5355
  return de_GetOriginAccessControlConfigCommandError(output, context);
5410
5356
  }
5411
- const contents = map({
5357
+ const contents = (0, smithy_client_1.map)({
5412
5358
  $metadata: deserializeMetadata(output),
5413
5359
  ETag: [, output.headers["etag"]],
5414
5360
  });
@@ -5432,10 +5378,9 @@ const de_GetOriginAccessControlConfigCommandError = async (output, context) => {
5432
5378
  throw await de_NoSuchOriginAccessControlRes(parsedOutput, context);
5433
5379
  default:
5434
5380
  const parsedBody = parsedOutput.body;
5435
- (0, smithy_client_1.throwDefaultError)({
5381
+ return throwDefaultError({
5436
5382
  output,
5437
5383
  parsedBody: parsedBody.Error,
5438
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5439
5384
  errorCode,
5440
5385
  });
5441
5386
  }
@@ -5444,7 +5389,7 @@ const de_GetOriginRequestPolicyCommand = async (output, context) => {
5444
5389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5445
5390
  return de_GetOriginRequestPolicyCommandError(output, context);
5446
5391
  }
5447
- const contents = map({
5392
+ const contents = (0, smithy_client_1.map)({
5448
5393
  $metadata: deserializeMetadata(output),
5449
5394
  ETag: [, output.headers["etag"]],
5450
5395
  });
@@ -5468,10 +5413,9 @@ const de_GetOriginRequestPolicyCommandError = async (output, context) => {
5468
5413
  throw await de_NoSuchOriginRequestPolicyRes(parsedOutput, context);
5469
5414
  default:
5470
5415
  const parsedBody = parsedOutput.body;
5471
- (0, smithy_client_1.throwDefaultError)({
5416
+ return throwDefaultError({
5472
5417
  output,
5473
5418
  parsedBody: parsedBody.Error,
5474
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5475
5419
  errorCode,
5476
5420
  });
5477
5421
  }
@@ -5480,7 +5424,7 @@ const de_GetOriginRequestPolicyConfigCommand = async (output, context) => {
5480
5424
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5481
5425
  return de_GetOriginRequestPolicyConfigCommandError(output, context);
5482
5426
  }
5483
- const contents = map({
5427
+ const contents = (0, smithy_client_1.map)({
5484
5428
  $metadata: deserializeMetadata(output),
5485
5429
  ETag: [, output.headers["etag"]],
5486
5430
  });
@@ -5504,10 +5448,9 @@ const de_GetOriginRequestPolicyConfigCommandError = async (output, context) => {
5504
5448
  throw await de_NoSuchOriginRequestPolicyRes(parsedOutput, context);
5505
5449
  default:
5506
5450
  const parsedBody = parsedOutput.body;
5507
- (0, smithy_client_1.throwDefaultError)({
5451
+ return throwDefaultError({
5508
5452
  output,
5509
5453
  parsedBody: parsedBody.Error,
5510
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5511
5454
  errorCode,
5512
5455
  });
5513
5456
  }
@@ -5516,7 +5459,7 @@ const de_GetPublicKeyCommand = async (output, context) => {
5516
5459
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5517
5460
  return de_GetPublicKeyCommandError(output, context);
5518
5461
  }
5519
- const contents = map({
5462
+ const contents = (0, smithy_client_1.map)({
5520
5463
  $metadata: deserializeMetadata(output),
5521
5464
  ETag: [, output.headers["etag"]],
5522
5465
  });
@@ -5540,10 +5483,9 @@ const de_GetPublicKeyCommandError = async (output, context) => {
5540
5483
  throw await de_NoSuchPublicKeyRes(parsedOutput, context);
5541
5484
  default:
5542
5485
  const parsedBody = parsedOutput.body;
5543
- (0, smithy_client_1.throwDefaultError)({
5486
+ return throwDefaultError({
5544
5487
  output,
5545
5488
  parsedBody: parsedBody.Error,
5546
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5547
5489
  errorCode,
5548
5490
  });
5549
5491
  }
@@ -5552,7 +5494,7 @@ const de_GetPublicKeyConfigCommand = async (output, context) => {
5552
5494
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5553
5495
  return de_GetPublicKeyConfigCommandError(output, context);
5554
5496
  }
5555
- const contents = map({
5497
+ const contents = (0, smithy_client_1.map)({
5556
5498
  $metadata: deserializeMetadata(output),
5557
5499
  ETag: [, output.headers["etag"]],
5558
5500
  });
@@ -5576,10 +5518,9 @@ const de_GetPublicKeyConfigCommandError = async (output, context) => {
5576
5518
  throw await de_NoSuchPublicKeyRes(parsedOutput, context);
5577
5519
  default:
5578
5520
  const parsedBody = parsedOutput.body;
5579
- (0, smithy_client_1.throwDefaultError)({
5521
+ return throwDefaultError({
5580
5522
  output,
5581
5523
  parsedBody: parsedBody.Error,
5582
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5583
5524
  errorCode,
5584
5525
  });
5585
5526
  }
@@ -5588,7 +5529,7 @@ const de_GetRealtimeLogConfigCommand = async (output, context) => {
5588
5529
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5589
5530
  return de_GetRealtimeLogConfigCommandError(output, context);
5590
5531
  }
5591
- const contents = map({
5532
+ const contents = (0, smithy_client_1.map)({
5592
5533
  $metadata: deserializeMetadata(output),
5593
5534
  });
5594
5535
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -5616,10 +5557,9 @@ const de_GetRealtimeLogConfigCommandError = async (output, context) => {
5616
5557
  throw await de_NoSuchRealtimeLogConfigRes(parsedOutput, context);
5617
5558
  default:
5618
5559
  const parsedBody = parsedOutput.body;
5619
- (0, smithy_client_1.throwDefaultError)({
5560
+ return throwDefaultError({
5620
5561
  output,
5621
5562
  parsedBody: parsedBody.Error,
5622
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5623
5563
  errorCode,
5624
5564
  });
5625
5565
  }
@@ -5628,7 +5568,7 @@ const de_GetResponseHeadersPolicyCommand = async (output, context) => {
5628
5568
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5629
5569
  return de_GetResponseHeadersPolicyCommandError(output, context);
5630
5570
  }
5631
- const contents = map({
5571
+ const contents = (0, smithy_client_1.map)({
5632
5572
  $metadata: deserializeMetadata(output),
5633
5573
  ETag: [, output.headers["etag"]],
5634
5574
  });
@@ -5652,10 +5592,9 @@ const de_GetResponseHeadersPolicyCommandError = async (output, context) => {
5652
5592
  throw await de_NoSuchResponseHeadersPolicyRes(parsedOutput, context);
5653
5593
  default:
5654
5594
  const parsedBody = parsedOutput.body;
5655
- (0, smithy_client_1.throwDefaultError)({
5595
+ return throwDefaultError({
5656
5596
  output,
5657
5597
  parsedBody: parsedBody.Error,
5658
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5659
5598
  errorCode,
5660
5599
  });
5661
5600
  }
@@ -5664,7 +5603,7 @@ const de_GetResponseHeadersPolicyConfigCommand = async (output, context) => {
5664
5603
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5665
5604
  return de_GetResponseHeadersPolicyConfigCommandError(output, context);
5666
5605
  }
5667
- const contents = map({
5606
+ const contents = (0, smithy_client_1.map)({
5668
5607
  $metadata: deserializeMetadata(output),
5669
5608
  ETag: [, output.headers["etag"]],
5670
5609
  });
@@ -5688,10 +5627,9 @@ const de_GetResponseHeadersPolicyConfigCommandError = async (output, context) =>
5688
5627
  throw await de_NoSuchResponseHeadersPolicyRes(parsedOutput, context);
5689
5628
  default:
5690
5629
  const parsedBody = parsedOutput.body;
5691
- (0, smithy_client_1.throwDefaultError)({
5630
+ return throwDefaultError({
5692
5631
  output,
5693
5632
  parsedBody: parsedBody.Error,
5694
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5695
5633
  errorCode,
5696
5634
  });
5697
5635
  }
@@ -5700,7 +5638,7 @@ const de_GetStreamingDistributionCommand = async (output, context) => {
5700
5638
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5701
5639
  return de_GetStreamingDistributionCommandError(output, context);
5702
5640
  }
5703
- const contents = map({
5641
+ const contents = (0, smithy_client_1.map)({
5704
5642
  $metadata: deserializeMetadata(output),
5705
5643
  ETag: [, output.headers["etag"]],
5706
5644
  });
@@ -5724,10 +5662,9 @@ const de_GetStreamingDistributionCommandError = async (output, context) => {
5724
5662
  throw await de_NoSuchStreamingDistributionRes(parsedOutput, context);
5725
5663
  default:
5726
5664
  const parsedBody = parsedOutput.body;
5727
- (0, smithy_client_1.throwDefaultError)({
5665
+ return throwDefaultError({
5728
5666
  output,
5729
5667
  parsedBody: parsedBody.Error,
5730
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5731
5668
  errorCode,
5732
5669
  });
5733
5670
  }
@@ -5736,7 +5673,7 @@ const de_GetStreamingDistributionConfigCommand = async (output, context) => {
5736
5673
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5737
5674
  return de_GetStreamingDistributionConfigCommandError(output, context);
5738
5675
  }
5739
- const contents = map({
5676
+ const contents = (0, smithy_client_1.map)({
5740
5677
  $metadata: deserializeMetadata(output),
5741
5678
  ETag: [, output.headers["etag"]],
5742
5679
  });
@@ -5760,10 +5697,9 @@ const de_GetStreamingDistributionConfigCommandError = async (output, context) =>
5760
5697
  throw await de_NoSuchStreamingDistributionRes(parsedOutput, context);
5761
5698
  default:
5762
5699
  const parsedBody = parsedOutput.body;
5763
- (0, smithy_client_1.throwDefaultError)({
5700
+ return throwDefaultError({
5764
5701
  output,
5765
5702
  parsedBody: parsedBody.Error,
5766
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5767
5703
  errorCode,
5768
5704
  });
5769
5705
  }
@@ -5772,7 +5708,7 @@ const de_ListCachePoliciesCommand = async (output, context) => {
5772
5708
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5773
5709
  return de_ListCachePoliciesCommandError(output, context);
5774
5710
  }
5775
- const contents = map({
5711
+ const contents = (0, smithy_client_1.map)({
5776
5712
  $metadata: deserializeMetadata(output),
5777
5713
  });
5778
5714
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5798,10 +5734,9 @@ const de_ListCachePoliciesCommandError = async (output, context) => {
5798
5734
  throw await de_NoSuchCachePolicyRes(parsedOutput, context);
5799
5735
  default:
5800
5736
  const parsedBody = parsedOutput.body;
5801
- (0, smithy_client_1.throwDefaultError)({
5737
+ return throwDefaultError({
5802
5738
  output,
5803
5739
  parsedBody: parsedBody.Error,
5804
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5805
5740
  errorCode,
5806
5741
  });
5807
5742
  }
@@ -5810,7 +5745,7 @@ const de_ListCloudFrontOriginAccessIdentitiesCommand = async (output, context) =
5810
5745
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5811
5746
  return de_ListCloudFrontOriginAccessIdentitiesCommandError(output, context);
5812
5747
  }
5813
- const contents = map({
5748
+ const contents = (0, smithy_client_1.map)({
5814
5749
  $metadata: deserializeMetadata(output),
5815
5750
  });
5816
5751
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5830,10 +5765,9 @@ const de_ListCloudFrontOriginAccessIdentitiesCommandError = async (output, conte
5830
5765
  throw await de_InvalidArgumentRes(parsedOutput, context);
5831
5766
  default:
5832
5767
  const parsedBody = parsedOutput.body;
5833
- (0, smithy_client_1.throwDefaultError)({
5768
+ return throwDefaultError({
5834
5769
  output,
5835
5770
  parsedBody: parsedBody.Error,
5836
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5837
5771
  errorCode,
5838
5772
  });
5839
5773
  }
@@ -5842,7 +5776,7 @@ const de_ListConflictingAliasesCommand = async (output, context) => {
5842
5776
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5843
5777
  return de_ListConflictingAliasesCommandError(output, context);
5844
5778
  }
5845
- const contents = map({
5779
+ const contents = (0, smithy_client_1.map)({
5846
5780
  $metadata: deserializeMetadata(output),
5847
5781
  });
5848
5782
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5865,10 +5799,9 @@ const de_ListConflictingAliasesCommandError = async (output, context) => {
5865
5799
  throw await de_NoSuchDistributionRes(parsedOutput, context);
5866
5800
  default:
5867
5801
  const parsedBody = parsedOutput.body;
5868
- (0, smithy_client_1.throwDefaultError)({
5802
+ return throwDefaultError({
5869
5803
  output,
5870
5804
  parsedBody: parsedBody.Error,
5871
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5872
5805
  errorCode,
5873
5806
  });
5874
5807
  }
@@ -5877,7 +5810,7 @@ const de_ListContinuousDeploymentPoliciesCommand = async (output, context) => {
5877
5810
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5878
5811
  return de_ListContinuousDeploymentPoliciesCommandError(output, context);
5879
5812
  }
5880
- const contents = map({
5813
+ const contents = (0, smithy_client_1.map)({
5881
5814
  $metadata: deserializeMetadata(output),
5882
5815
  });
5883
5816
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5903,10 +5836,9 @@ const de_ListContinuousDeploymentPoliciesCommandError = async (output, context)
5903
5836
  throw await de_NoSuchContinuousDeploymentPolicyRes(parsedOutput, context);
5904
5837
  default:
5905
5838
  const parsedBody = parsedOutput.body;
5906
- (0, smithy_client_1.throwDefaultError)({
5839
+ return throwDefaultError({
5907
5840
  output,
5908
5841
  parsedBody: parsedBody.Error,
5909
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5910
5842
  errorCode,
5911
5843
  });
5912
5844
  }
@@ -5915,7 +5847,7 @@ const de_ListDistributionsCommand = async (output, context) => {
5915
5847
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5916
5848
  return de_ListDistributionsCommandError(output, context);
5917
5849
  }
5918
- const contents = map({
5850
+ const contents = (0, smithy_client_1.map)({
5919
5851
  $metadata: deserializeMetadata(output),
5920
5852
  });
5921
5853
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5935,10 +5867,9 @@ const de_ListDistributionsCommandError = async (output, context) => {
5935
5867
  throw await de_InvalidArgumentRes(parsedOutput, context);
5936
5868
  default:
5937
5869
  const parsedBody = parsedOutput.body;
5938
- (0, smithy_client_1.throwDefaultError)({
5870
+ return throwDefaultError({
5939
5871
  output,
5940
5872
  parsedBody: parsedBody.Error,
5941
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5942
5873
  errorCode,
5943
5874
  });
5944
5875
  }
@@ -5947,7 +5878,7 @@ const de_ListDistributionsByCachePolicyIdCommand = async (output, context) => {
5947
5878
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5948
5879
  return de_ListDistributionsByCachePolicyIdCommandError(output, context);
5949
5880
  }
5950
- const contents = map({
5881
+ const contents = (0, smithy_client_1.map)({
5951
5882
  $metadata: deserializeMetadata(output),
5952
5883
  });
5953
5884
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -5973,10 +5904,9 @@ const de_ListDistributionsByCachePolicyIdCommandError = async (output, context)
5973
5904
  throw await de_NoSuchCachePolicyRes(parsedOutput, context);
5974
5905
  default:
5975
5906
  const parsedBody = parsedOutput.body;
5976
- (0, smithy_client_1.throwDefaultError)({
5907
+ return throwDefaultError({
5977
5908
  output,
5978
5909
  parsedBody: parsedBody.Error,
5979
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
5980
5910
  errorCode,
5981
5911
  });
5982
5912
  }
@@ -5985,7 +5915,7 @@ const de_ListDistributionsByKeyGroupCommand = async (output, context) => {
5985
5915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5986
5916
  return de_ListDistributionsByKeyGroupCommandError(output, context);
5987
5917
  }
5988
- const contents = map({
5918
+ const contents = (0, smithy_client_1.map)({
5989
5919
  $metadata: deserializeMetadata(output),
5990
5920
  });
5991
5921
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6008,10 +5938,9 @@ const de_ListDistributionsByKeyGroupCommandError = async (output, context) => {
6008
5938
  throw await de_NoSuchResourceRes(parsedOutput, context);
6009
5939
  default:
6010
5940
  const parsedBody = parsedOutput.body;
6011
- (0, smithy_client_1.throwDefaultError)({
5941
+ return throwDefaultError({
6012
5942
  output,
6013
5943
  parsedBody: parsedBody.Error,
6014
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6015
5944
  errorCode,
6016
5945
  });
6017
5946
  }
@@ -6020,7 +5949,7 @@ const de_ListDistributionsByOriginRequestPolicyIdCommand = async (output, contex
6020
5949
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6021
5950
  return de_ListDistributionsByOriginRequestPolicyIdCommandError(output, context);
6022
5951
  }
6023
- const contents = map({
5952
+ const contents = (0, smithy_client_1.map)({
6024
5953
  $metadata: deserializeMetadata(output),
6025
5954
  });
6026
5955
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6046,10 +5975,9 @@ const de_ListDistributionsByOriginRequestPolicyIdCommandError = async (output, c
6046
5975
  throw await de_NoSuchOriginRequestPolicyRes(parsedOutput, context);
6047
5976
  default:
6048
5977
  const parsedBody = parsedOutput.body;
6049
- (0, smithy_client_1.throwDefaultError)({
5978
+ return throwDefaultError({
6050
5979
  output,
6051
5980
  parsedBody: parsedBody.Error,
6052
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6053
5981
  errorCode,
6054
5982
  });
6055
5983
  }
@@ -6058,7 +5986,7 @@ const de_ListDistributionsByRealtimeLogConfigCommand = async (output, context) =
6058
5986
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6059
5987
  return de_ListDistributionsByRealtimeLogConfigCommandError(output, context);
6060
5988
  }
6061
- const contents = map({
5989
+ const contents = (0, smithy_client_1.map)({
6062
5990
  $metadata: deserializeMetadata(output),
6063
5991
  });
6064
5992
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6078,10 +6006,9 @@ const de_ListDistributionsByRealtimeLogConfigCommandError = async (output, conte
6078
6006
  throw await de_InvalidArgumentRes(parsedOutput, context);
6079
6007
  default:
6080
6008
  const parsedBody = parsedOutput.body;
6081
- (0, smithy_client_1.throwDefaultError)({
6009
+ return throwDefaultError({
6082
6010
  output,
6083
6011
  parsedBody: parsedBody.Error,
6084
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6085
6012
  errorCode,
6086
6013
  });
6087
6014
  }
@@ -6090,7 +6017,7 @@ const de_ListDistributionsByResponseHeadersPolicyIdCommand = async (output, cont
6090
6017
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6091
6018
  return de_ListDistributionsByResponseHeadersPolicyIdCommandError(output, context);
6092
6019
  }
6093
- const contents = map({
6020
+ const contents = (0, smithy_client_1.map)({
6094
6021
  $metadata: deserializeMetadata(output),
6095
6022
  });
6096
6023
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6116,10 +6043,9 @@ const de_ListDistributionsByResponseHeadersPolicyIdCommandError = async (output,
6116
6043
  throw await de_NoSuchResponseHeadersPolicyRes(parsedOutput, context);
6117
6044
  default:
6118
6045
  const parsedBody = parsedOutput.body;
6119
- (0, smithy_client_1.throwDefaultError)({
6046
+ return throwDefaultError({
6120
6047
  output,
6121
6048
  parsedBody: parsedBody.Error,
6122
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6123
6049
  errorCode,
6124
6050
  });
6125
6051
  }
@@ -6128,7 +6054,7 @@ const de_ListDistributionsByWebACLIdCommand = async (output, context) => {
6128
6054
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6129
6055
  return de_ListDistributionsByWebACLIdCommandError(output, context);
6130
6056
  }
6131
- const contents = map({
6057
+ const contents = (0, smithy_client_1.map)({
6132
6058
  $metadata: deserializeMetadata(output),
6133
6059
  });
6134
6060
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6151,10 +6077,9 @@ const de_ListDistributionsByWebACLIdCommandError = async (output, context) => {
6151
6077
  throw await de_InvalidWebACLIdRes(parsedOutput, context);
6152
6078
  default:
6153
6079
  const parsedBody = parsedOutput.body;
6154
- (0, smithy_client_1.throwDefaultError)({
6080
+ return throwDefaultError({
6155
6081
  output,
6156
6082
  parsedBody: parsedBody.Error,
6157
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6158
6083
  errorCode,
6159
6084
  });
6160
6085
  }
@@ -6163,7 +6088,7 @@ const de_ListFieldLevelEncryptionConfigsCommand = async (output, context) => {
6163
6088
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6164
6089
  return de_ListFieldLevelEncryptionConfigsCommandError(output, context);
6165
6090
  }
6166
- const contents = map({
6091
+ const contents = (0, smithy_client_1.map)({
6167
6092
  $metadata: deserializeMetadata(output),
6168
6093
  });
6169
6094
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6183,10 +6108,9 @@ const de_ListFieldLevelEncryptionConfigsCommandError = async (output, context) =
6183
6108
  throw await de_InvalidArgumentRes(parsedOutput, context);
6184
6109
  default:
6185
6110
  const parsedBody = parsedOutput.body;
6186
- (0, smithy_client_1.throwDefaultError)({
6111
+ return throwDefaultError({
6187
6112
  output,
6188
6113
  parsedBody: parsedBody.Error,
6189
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6190
6114
  errorCode,
6191
6115
  });
6192
6116
  }
@@ -6195,7 +6119,7 @@ const de_ListFieldLevelEncryptionProfilesCommand = async (output, context) => {
6195
6119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6196
6120
  return de_ListFieldLevelEncryptionProfilesCommandError(output, context);
6197
6121
  }
6198
- const contents = map({
6122
+ const contents = (0, smithy_client_1.map)({
6199
6123
  $metadata: deserializeMetadata(output),
6200
6124
  });
6201
6125
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6215,10 +6139,9 @@ const de_ListFieldLevelEncryptionProfilesCommandError = async (output, context)
6215
6139
  throw await de_InvalidArgumentRes(parsedOutput, context);
6216
6140
  default:
6217
6141
  const parsedBody = parsedOutput.body;
6218
- (0, smithy_client_1.throwDefaultError)({
6142
+ return throwDefaultError({
6219
6143
  output,
6220
6144
  parsedBody: parsedBody.Error,
6221
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6222
6145
  errorCode,
6223
6146
  });
6224
6147
  }
@@ -6227,7 +6150,7 @@ const de_ListFunctionsCommand = async (output, context) => {
6227
6150
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6228
6151
  return de_ListFunctionsCommandError(output, context);
6229
6152
  }
6230
- const contents = map({
6153
+ const contents = (0, smithy_client_1.map)({
6231
6154
  $metadata: deserializeMetadata(output),
6232
6155
  });
6233
6156
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6250,10 +6173,9 @@ const de_ListFunctionsCommandError = async (output, context) => {
6250
6173
  throw await de_UnsupportedOperationRes(parsedOutput, context);
6251
6174
  default:
6252
6175
  const parsedBody = parsedOutput.body;
6253
- (0, smithy_client_1.throwDefaultError)({
6176
+ return throwDefaultError({
6254
6177
  output,
6255
6178
  parsedBody: parsedBody.Error,
6256
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6257
6179
  errorCode,
6258
6180
  });
6259
6181
  }
@@ -6262,7 +6184,7 @@ const de_ListInvalidationsCommand = async (output, context) => {
6262
6184
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6263
6185
  return de_ListInvalidationsCommandError(output, context);
6264
6186
  }
6265
- const contents = map({
6187
+ const contents = (0, smithy_client_1.map)({
6266
6188
  $metadata: deserializeMetadata(output),
6267
6189
  });
6268
6190
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6288,10 +6210,9 @@ const de_ListInvalidationsCommandError = async (output, context) => {
6288
6210
  throw await de_NoSuchDistributionRes(parsedOutput, context);
6289
6211
  default:
6290
6212
  const parsedBody = parsedOutput.body;
6291
- (0, smithy_client_1.throwDefaultError)({
6213
+ return throwDefaultError({
6292
6214
  output,
6293
6215
  parsedBody: parsedBody.Error,
6294
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6295
6216
  errorCode,
6296
6217
  });
6297
6218
  }
@@ -6300,7 +6221,7 @@ const de_ListKeyGroupsCommand = async (output, context) => {
6300
6221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6301
6222
  return de_ListKeyGroupsCommandError(output, context);
6302
6223
  }
6303
- const contents = map({
6224
+ const contents = (0, smithy_client_1.map)({
6304
6225
  $metadata: deserializeMetadata(output),
6305
6226
  });
6306
6227
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6320,10 +6241,9 @@ const de_ListKeyGroupsCommandError = async (output, context) => {
6320
6241
  throw await de_InvalidArgumentRes(parsedOutput, context);
6321
6242
  default:
6322
6243
  const parsedBody = parsedOutput.body;
6323
- (0, smithy_client_1.throwDefaultError)({
6244
+ return throwDefaultError({
6324
6245
  output,
6325
6246
  parsedBody: parsedBody.Error,
6326
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6327
6247
  errorCode,
6328
6248
  });
6329
6249
  }
@@ -6332,7 +6252,7 @@ const de_ListOriginAccessControlsCommand = async (output, context) => {
6332
6252
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6333
6253
  return de_ListOriginAccessControlsCommandError(output, context);
6334
6254
  }
6335
- const contents = map({
6255
+ const contents = (0, smithy_client_1.map)({
6336
6256
  $metadata: deserializeMetadata(output),
6337
6257
  });
6338
6258
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6352,10 +6272,9 @@ const de_ListOriginAccessControlsCommandError = async (output, context) => {
6352
6272
  throw await de_InvalidArgumentRes(parsedOutput, context);
6353
6273
  default:
6354
6274
  const parsedBody = parsedOutput.body;
6355
- (0, smithy_client_1.throwDefaultError)({
6275
+ return throwDefaultError({
6356
6276
  output,
6357
6277
  parsedBody: parsedBody.Error,
6358
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6359
6278
  errorCode,
6360
6279
  });
6361
6280
  }
@@ -6364,7 +6283,7 @@ const de_ListOriginRequestPoliciesCommand = async (output, context) => {
6364
6283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6365
6284
  return de_ListOriginRequestPoliciesCommandError(output, context);
6366
6285
  }
6367
- const contents = map({
6286
+ const contents = (0, smithy_client_1.map)({
6368
6287
  $metadata: deserializeMetadata(output),
6369
6288
  });
6370
6289
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6390,10 +6309,9 @@ const de_ListOriginRequestPoliciesCommandError = async (output, context) => {
6390
6309
  throw await de_NoSuchOriginRequestPolicyRes(parsedOutput, context);
6391
6310
  default:
6392
6311
  const parsedBody = parsedOutput.body;
6393
- (0, smithy_client_1.throwDefaultError)({
6312
+ return throwDefaultError({
6394
6313
  output,
6395
6314
  parsedBody: parsedBody.Error,
6396
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6397
6315
  errorCode,
6398
6316
  });
6399
6317
  }
@@ -6402,7 +6320,7 @@ const de_ListPublicKeysCommand = async (output, context) => {
6402
6320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6403
6321
  return de_ListPublicKeysCommandError(output, context);
6404
6322
  }
6405
- const contents = map({
6323
+ const contents = (0, smithy_client_1.map)({
6406
6324
  $metadata: deserializeMetadata(output),
6407
6325
  });
6408
6326
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6422,10 +6340,9 @@ const de_ListPublicKeysCommandError = async (output, context) => {
6422
6340
  throw await de_InvalidArgumentRes(parsedOutput, context);
6423
6341
  default:
6424
6342
  const parsedBody = parsedOutput.body;
6425
- (0, smithy_client_1.throwDefaultError)({
6343
+ return throwDefaultError({
6426
6344
  output,
6427
6345
  parsedBody: parsedBody.Error,
6428
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6429
6346
  errorCode,
6430
6347
  });
6431
6348
  }
@@ -6434,7 +6351,7 @@ const de_ListRealtimeLogConfigsCommand = async (output, context) => {
6434
6351
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6435
6352
  return de_ListRealtimeLogConfigsCommandError(output, context);
6436
6353
  }
6437
- const contents = map({
6354
+ const contents = (0, smithy_client_1.map)({
6438
6355
  $metadata: deserializeMetadata(output),
6439
6356
  });
6440
6357
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6460,10 +6377,9 @@ const de_ListRealtimeLogConfigsCommandError = async (output, context) => {
6460
6377
  throw await de_NoSuchRealtimeLogConfigRes(parsedOutput, context);
6461
6378
  default:
6462
6379
  const parsedBody = parsedOutput.body;
6463
- (0, smithy_client_1.throwDefaultError)({
6380
+ return throwDefaultError({
6464
6381
  output,
6465
6382
  parsedBody: parsedBody.Error,
6466
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6467
6383
  errorCode,
6468
6384
  });
6469
6385
  }
@@ -6472,7 +6388,7 @@ const de_ListResponseHeadersPoliciesCommand = async (output, context) => {
6472
6388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6473
6389
  return de_ListResponseHeadersPoliciesCommandError(output, context);
6474
6390
  }
6475
- const contents = map({
6391
+ const contents = (0, smithy_client_1.map)({
6476
6392
  $metadata: deserializeMetadata(output),
6477
6393
  });
6478
6394
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6498,10 +6414,9 @@ const de_ListResponseHeadersPoliciesCommandError = async (output, context) => {
6498
6414
  throw await de_NoSuchResponseHeadersPolicyRes(parsedOutput, context);
6499
6415
  default:
6500
6416
  const parsedBody = parsedOutput.body;
6501
- (0, smithy_client_1.throwDefaultError)({
6417
+ return throwDefaultError({
6502
6418
  output,
6503
6419
  parsedBody: parsedBody.Error,
6504
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6505
6420
  errorCode,
6506
6421
  });
6507
6422
  }
@@ -6510,7 +6425,7 @@ const de_ListStreamingDistributionsCommand = async (output, context) => {
6510
6425
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6511
6426
  return de_ListStreamingDistributionsCommandError(output, context);
6512
6427
  }
6513
- const contents = map({
6428
+ const contents = (0, smithy_client_1.map)({
6514
6429
  $metadata: deserializeMetadata(output),
6515
6430
  });
6516
6431
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6530,10 +6445,9 @@ const de_ListStreamingDistributionsCommandError = async (output, context) => {
6530
6445
  throw await de_InvalidArgumentRes(parsedOutput, context);
6531
6446
  default:
6532
6447
  const parsedBody = parsedOutput.body;
6533
- (0, smithy_client_1.throwDefaultError)({
6448
+ return throwDefaultError({
6534
6449
  output,
6535
6450
  parsedBody: parsedBody.Error,
6536
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6537
6451
  errorCode,
6538
6452
  });
6539
6453
  }
@@ -6542,7 +6456,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
6542
6456
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6543
6457
  return de_ListTagsForResourceCommandError(output, context);
6544
6458
  }
6545
- const contents = map({
6459
+ const contents = (0, smithy_client_1.map)({
6546
6460
  $metadata: deserializeMetadata(output),
6547
6461
  });
6548
6462
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6571,10 +6485,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
6571
6485
  throw await de_NoSuchResourceRes(parsedOutput, context);
6572
6486
  default:
6573
6487
  const parsedBody = parsedOutput.body;
6574
- (0, smithy_client_1.throwDefaultError)({
6488
+ return throwDefaultError({
6575
6489
  output,
6576
6490
  parsedBody: parsedBody.Error,
6577
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6578
6491
  errorCode,
6579
6492
  });
6580
6493
  }
@@ -6583,7 +6496,7 @@ const de_PublishFunctionCommand = async (output, context) => {
6583
6496
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6584
6497
  return de_PublishFunctionCommandError(output, context);
6585
6498
  }
6586
- const contents = map({
6499
+ const contents = (0, smithy_client_1.map)({
6587
6500
  $metadata: deserializeMetadata(output),
6588
6501
  });
6589
6502
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6615,10 +6528,9 @@ const de_PublishFunctionCommandError = async (output, context) => {
6615
6528
  throw await de_UnsupportedOperationRes(parsedOutput, context);
6616
6529
  default:
6617
6530
  const parsedBody = parsedOutput.body;
6618
- (0, smithy_client_1.throwDefaultError)({
6531
+ return throwDefaultError({
6619
6532
  output,
6620
6533
  parsedBody: parsedBody.Error,
6621
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6622
6534
  errorCode,
6623
6535
  });
6624
6536
  }
@@ -6627,7 +6539,7 @@ const de_TagResourceCommand = async (output, context) => {
6627
6539
  if (output.statusCode !== 204 && output.statusCode >= 300) {
6628
6540
  return de_TagResourceCommandError(output, context);
6629
6541
  }
6630
- const contents = map({
6542
+ const contents = (0, smithy_client_1.map)({
6631
6543
  $metadata: deserializeMetadata(output),
6632
6544
  });
6633
6545
  await collectBody(output.body, context);
@@ -6655,10 +6567,9 @@ const de_TagResourceCommandError = async (output, context) => {
6655
6567
  throw await de_NoSuchResourceRes(parsedOutput, context);
6656
6568
  default:
6657
6569
  const parsedBody = parsedOutput.body;
6658
- (0, smithy_client_1.throwDefaultError)({
6570
+ return throwDefaultError({
6659
6571
  output,
6660
6572
  parsedBody: parsedBody.Error,
6661
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6662
6573
  errorCode,
6663
6574
  });
6664
6575
  }
@@ -6667,7 +6578,7 @@ const de_TestFunctionCommand = async (output, context) => {
6667
6578
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6668
6579
  return de_TestFunctionCommandError(output, context);
6669
6580
  }
6670
- const contents = map({
6581
+ const contents = (0, smithy_client_1.map)({
6671
6582
  $metadata: deserializeMetadata(output),
6672
6583
  });
6673
6584
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -6699,10 +6610,9 @@ const de_TestFunctionCommandError = async (output, context) => {
6699
6610
  throw await de_UnsupportedOperationRes(parsedOutput, context);
6700
6611
  default:
6701
6612
  const parsedBody = parsedOutput.body;
6702
- (0, smithy_client_1.throwDefaultError)({
6613
+ return throwDefaultError({
6703
6614
  output,
6704
6615
  parsedBody: parsedBody.Error,
6705
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6706
6616
  errorCode,
6707
6617
  });
6708
6618
  }
@@ -6711,7 +6621,7 @@ const de_UntagResourceCommand = async (output, context) => {
6711
6621
  if (output.statusCode !== 204 && output.statusCode >= 300) {
6712
6622
  return de_UntagResourceCommandError(output, context);
6713
6623
  }
6714
- const contents = map({
6624
+ const contents = (0, smithy_client_1.map)({
6715
6625
  $metadata: deserializeMetadata(output),
6716
6626
  });
6717
6627
  await collectBody(output.body, context);
@@ -6739,10 +6649,9 @@ const de_UntagResourceCommandError = async (output, context) => {
6739
6649
  throw await de_NoSuchResourceRes(parsedOutput, context);
6740
6650
  default:
6741
6651
  const parsedBody = parsedOutput.body;
6742
- (0, smithy_client_1.throwDefaultError)({
6652
+ return throwDefaultError({
6743
6653
  output,
6744
6654
  parsedBody: parsedBody.Error,
6745
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6746
6655
  errorCode,
6747
6656
  });
6748
6657
  }
@@ -6751,7 +6660,7 @@ const de_UpdateCachePolicyCommand = async (output, context) => {
6751
6660
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6752
6661
  return de_UpdateCachePolicyCommandError(output, context);
6753
6662
  }
6754
- const contents = map({
6663
+ const contents = (0, smithy_client_1.map)({
6755
6664
  $metadata: deserializeMetadata(output),
6756
6665
  ETag: [, output.headers["etag"]],
6757
6666
  });
@@ -6802,10 +6711,9 @@ const de_UpdateCachePolicyCommandError = async (output, context) => {
6802
6711
  throw await de_TooManyQueryStringsInCachePolicyRes(parsedOutput, context);
6803
6712
  default:
6804
6713
  const parsedBody = parsedOutput.body;
6805
- (0, smithy_client_1.throwDefaultError)({
6714
+ return throwDefaultError({
6806
6715
  output,
6807
6716
  parsedBody: parsedBody.Error,
6808
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6809
6717
  errorCode,
6810
6718
  });
6811
6719
  }
@@ -6814,7 +6722,7 @@ const de_UpdateCloudFrontOriginAccessIdentityCommand = async (output, context) =
6814
6722
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6815
6723
  return de_UpdateCloudFrontOriginAccessIdentityCommandError(output, context);
6816
6724
  }
6817
- const contents = map({
6725
+ const contents = (0, smithy_client_1.map)({
6818
6726
  $metadata: deserializeMetadata(output),
6819
6727
  ETag: [, output.headers["etag"]],
6820
6728
  });
@@ -6856,10 +6764,9 @@ const de_UpdateCloudFrontOriginAccessIdentityCommandError = async (output, conte
6856
6764
  throw await de_PreconditionFailedRes(parsedOutput, context);
6857
6765
  default:
6858
6766
  const parsedBody = parsedOutput.body;
6859
- (0, smithy_client_1.throwDefaultError)({
6767
+ return throwDefaultError({
6860
6768
  output,
6861
6769
  parsedBody: parsedBody.Error,
6862
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6863
6770
  errorCode,
6864
6771
  });
6865
6772
  }
@@ -6868,7 +6775,7 @@ const de_UpdateContinuousDeploymentPolicyCommand = async (output, context) => {
6868
6775
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6869
6776
  return de_UpdateContinuousDeploymentPolicyCommandError(output, context);
6870
6777
  }
6871
- const contents = map({
6778
+ const contents = (0, smithy_client_1.map)({
6872
6779
  $metadata: deserializeMetadata(output),
6873
6780
  ETag: [, output.headers["etag"]],
6874
6781
  });
@@ -6907,10 +6814,9 @@ const de_UpdateContinuousDeploymentPolicyCommandError = async (output, context)
6907
6814
  throw await de_StagingDistributionInUseRes(parsedOutput, context);
6908
6815
  default:
6909
6816
  const parsedBody = parsedOutput.body;
6910
- (0, smithy_client_1.throwDefaultError)({
6817
+ return throwDefaultError({
6911
6818
  output,
6912
6819
  parsedBody: parsedBody.Error,
6913
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
6914
6820
  errorCode,
6915
6821
  });
6916
6822
  }
@@ -6919,7 +6825,7 @@ const de_UpdateDistributionCommand = async (output, context) => {
6919
6825
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6920
6826
  return de_UpdateDistributionCommandError(output, context);
6921
6827
  }
6922
- const contents = map({
6828
+ const contents = (0, smithy_client_1.map)({
6923
6829
  $metadata: deserializeMetadata(output),
6924
6830
  ETag: [, output.headers["etag"]],
6925
6831
  });
@@ -7132,10 +7038,9 @@ const de_UpdateDistributionCommandError = async (output, context) => {
7132
7038
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
7133
7039
  default:
7134
7040
  const parsedBody = parsedOutput.body;
7135
- (0, smithy_client_1.throwDefaultError)({
7041
+ return throwDefaultError({
7136
7042
  output,
7137
7043
  parsedBody: parsedBody.Error,
7138
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7139
7044
  errorCode,
7140
7045
  });
7141
7046
  }
@@ -7144,7 +7049,7 @@ const de_UpdateDistributionWithStagingConfigCommand = async (output, context) =>
7144
7049
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7145
7050
  return de_UpdateDistributionWithStagingConfigCommandError(output, context);
7146
7051
  }
7147
- const contents = map({
7052
+ const contents = (0, smithy_client_1.map)({
7148
7053
  $metadata: deserializeMetadata(output),
7149
7054
  ETag: [, output.headers["etag"]],
7150
7055
  });
@@ -7342,10 +7247,9 @@ const de_UpdateDistributionWithStagingConfigCommandError = async (output, contex
7342
7247
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
7343
7248
  default:
7344
7249
  const parsedBody = parsedOutput.body;
7345
- (0, smithy_client_1.throwDefaultError)({
7250
+ return throwDefaultError({
7346
7251
  output,
7347
7252
  parsedBody: parsedBody.Error,
7348
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7349
7253
  errorCode,
7350
7254
  });
7351
7255
  }
@@ -7354,7 +7258,7 @@ const de_UpdateFieldLevelEncryptionConfigCommand = async (output, context) => {
7354
7258
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7355
7259
  return de_UpdateFieldLevelEncryptionConfigCommandError(output, context);
7356
7260
  }
7357
- const contents = map({
7261
+ const contents = (0, smithy_client_1.map)({
7358
7262
  $metadata: deserializeMetadata(output),
7359
7263
  ETag: [, output.headers["etag"]],
7360
7264
  });
@@ -7405,10 +7309,9 @@ const de_UpdateFieldLevelEncryptionConfigCommandError = async (output, context)
7405
7309
  throw await de_TooManyFieldLevelEncryptionQueryArgProfilesRes(parsedOutput, context);
7406
7310
  default:
7407
7311
  const parsedBody = parsedOutput.body;
7408
- (0, smithy_client_1.throwDefaultError)({
7312
+ return throwDefaultError({
7409
7313
  output,
7410
7314
  parsedBody: parsedBody.Error,
7411
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7412
7315
  errorCode,
7413
7316
  });
7414
7317
  }
@@ -7417,7 +7320,7 @@ const de_UpdateFieldLevelEncryptionProfileCommand = async (output, context) => {
7417
7320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7418
7321
  return de_UpdateFieldLevelEncryptionProfileCommandError(output, context);
7419
7322
  }
7420
- const contents = map({
7323
+ const contents = (0, smithy_client_1.map)({
7421
7324
  $metadata: deserializeMetadata(output),
7422
7325
  ETag: [, output.headers["etag"]],
7423
7326
  });
@@ -7471,10 +7374,9 @@ const de_UpdateFieldLevelEncryptionProfileCommandError = async (output, context)
7471
7374
  throw await de_TooManyFieldLevelEncryptionFieldPatternsRes(parsedOutput, context);
7472
7375
  default:
7473
7376
  const parsedBody = parsedOutput.body;
7474
- (0, smithy_client_1.throwDefaultError)({
7377
+ return throwDefaultError({
7475
7378
  output,
7476
7379
  parsedBody: parsedBody.Error,
7477
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7478
7380
  errorCode,
7479
7381
  });
7480
7382
  }
@@ -7483,7 +7385,7 @@ const de_UpdateFunctionCommand = async (output, context) => {
7483
7385
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7484
7386
  return de_UpdateFunctionCommandError(output, context);
7485
7387
  }
7486
- const contents = map({
7388
+ const contents = (0, smithy_client_1.map)({
7487
7389
  $metadata: deserializeMetadata(output),
7488
7390
  ETag: [, output.headers["ettag"]],
7489
7391
  });
@@ -7519,10 +7421,9 @@ const de_UpdateFunctionCommandError = async (output, context) => {
7519
7421
  throw await de_UnsupportedOperationRes(parsedOutput, context);
7520
7422
  default:
7521
7423
  const parsedBody = parsedOutput.body;
7522
- (0, smithy_client_1.throwDefaultError)({
7424
+ return throwDefaultError({
7523
7425
  output,
7524
7426
  parsedBody: parsedBody.Error,
7525
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7526
7427
  errorCode,
7527
7428
  });
7528
7429
  }
@@ -7531,7 +7432,7 @@ const de_UpdateKeyGroupCommand = async (output, context) => {
7531
7432
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7532
7433
  return de_UpdateKeyGroupCommandError(output, context);
7533
7434
  }
7534
- const contents = map({
7435
+ const contents = (0, smithy_client_1.map)({
7535
7436
  $metadata: deserializeMetadata(output),
7536
7437
  ETag: [, output.headers["etag"]],
7537
7438
  });
@@ -7567,10 +7468,9 @@ const de_UpdateKeyGroupCommandError = async (output, context) => {
7567
7468
  throw await de_TooManyPublicKeysInKeyGroupRes(parsedOutput, context);
7568
7469
  default:
7569
7470
  const parsedBody = parsedOutput.body;
7570
- (0, smithy_client_1.throwDefaultError)({
7471
+ return throwDefaultError({
7571
7472
  output,
7572
7473
  parsedBody: parsedBody.Error,
7573
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7574
7474
  errorCode,
7575
7475
  });
7576
7476
  }
@@ -7579,7 +7479,7 @@ const de_UpdateOriginAccessControlCommand = async (output, context) => {
7579
7479
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7580
7480
  return de_UpdateOriginAccessControlCommandError(output, context);
7581
7481
  }
7582
- const contents = map({
7482
+ const contents = (0, smithy_client_1.map)({
7583
7483
  $metadata: deserializeMetadata(output),
7584
7484
  ETag: [, output.headers["etag"]],
7585
7485
  });
@@ -7618,10 +7518,9 @@ const de_UpdateOriginAccessControlCommandError = async (output, context) => {
7618
7518
  throw await de_PreconditionFailedRes(parsedOutput, context);
7619
7519
  default:
7620
7520
  const parsedBody = parsedOutput.body;
7621
- (0, smithy_client_1.throwDefaultError)({
7521
+ return throwDefaultError({
7622
7522
  output,
7623
7523
  parsedBody: parsedBody.Error,
7624
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7625
7524
  errorCode,
7626
7525
  });
7627
7526
  }
@@ -7630,7 +7529,7 @@ const de_UpdateOriginRequestPolicyCommand = async (output, context) => {
7630
7529
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7631
7530
  return de_UpdateOriginRequestPolicyCommandError(output, context);
7632
7531
  }
7633
- const contents = map({
7532
+ const contents = (0, smithy_client_1.map)({
7634
7533
  $metadata: deserializeMetadata(output),
7635
7534
  ETag: [, output.headers["etag"]],
7636
7535
  });
@@ -7681,10 +7580,9 @@ const de_UpdateOriginRequestPolicyCommandError = async (output, context) => {
7681
7580
  throw await de_TooManyQueryStringsInOriginRequestPolicyRes(parsedOutput, context);
7682
7581
  default:
7683
7582
  const parsedBody = parsedOutput.body;
7684
- (0, smithy_client_1.throwDefaultError)({
7583
+ return throwDefaultError({
7685
7584
  output,
7686
7585
  parsedBody: parsedBody.Error,
7687
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7688
7586
  errorCode,
7689
7587
  });
7690
7588
  }
@@ -7693,7 +7591,7 @@ const de_UpdatePublicKeyCommand = async (output, context) => {
7693
7591
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7694
7592
  return de_UpdatePublicKeyCommandError(output, context);
7695
7593
  }
7696
- const contents = map({
7594
+ const contents = (0, smithy_client_1.map)({
7697
7595
  $metadata: deserializeMetadata(output),
7698
7596
  ETag: [, output.headers["etag"]],
7699
7597
  });
@@ -7732,10 +7630,9 @@ const de_UpdatePublicKeyCommandError = async (output, context) => {
7732
7630
  throw await de_PreconditionFailedRes(parsedOutput, context);
7733
7631
  default:
7734
7632
  const parsedBody = parsedOutput.body;
7735
- (0, smithy_client_1.throwDefaultError)({
7633
+ return throwDefaultError({
7736
7634
  output,
7737
7635
  parsedBody: parsedBody.Error,
7738
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7739
7636
  errorCode,
7740
7637
  });
7741
7638
  }
@@ -7744,7 +7641,7 @@ const de_UpdateRealtimeLogConfigCommand = async (output, context) => {
7744
7641
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7745
7642
  return de_UpdateRealtimeLogConfigCommandError(output, context);
7746
7643
  }
7747
- const contents = map({
7644
+ const contents = (0, smithy_client_1.map)({
7748
7645
  $metadata: deserializeMetadata(output),
7749
7646
  });
7750
7647
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -7772,10 +7669,9 @@ const de_UpdateRealtimeLogConfigCommandError = async (output, context) => {
7772
7669
  throw await de_NoSuchRealtimeLogConfigRes(parsedOutput, context);
7773
7670
  default:
7774
7671
  const parsedBody = parsedOutput.body;
7775
- (0, smithy_client_1.throwDefaultError)({
7672
+ return throwDefaultError({
7776
7673
  output,
7777
7674
  parsedBody: parsedBody.Error,
7778
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7779
7675
  errorCode,
7780
7676
  });
7781
7677
  }
@@ -7784,7 +7680,7 @@ const de_UpdateResponseHeadersPolicyCommand = async (output, context) => {
7784
7680
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7785
7681
  return de_UpdateResponseHeadersPolicyCommandError(output, context);
7786
7682
  }
7787
- const contents = map({
7683
+ const contents = (0, smithy_client_1.map)({
7788
7684
  $metadata: deserializeMetadata(output),
7789
7685
  ETag: [, output.headers["etag"]],
7790
7686
  });
@@ -7835,10 +7731,9 @@ const de_UpdateResponseHeadersPolicyCommandError = async (output, context) => {
7835
7731
  throw await de_TooManyRemoveHeadersInResponseHeadersPolicyRes(parsedOutput, context);
7836
7732
  default:
7837
7733
  const parsedBody = parsedOutput.body;
7838
- (0, smithy_client_1.throwDefaultError)({
7734
+ return throwDefaultError({
7839
7735
  output,
7840
7736
  parsedBody: parsedBody.Error,
7841
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7842
7737
  errorCode,
7843
7738
  });
7844
7739
  }
@@ -7847,7 +7742,7 @@ const de_UpdateStreamingDistributionCommand = async (output, context) => {
7847
7742
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7848
7743
  return de_UpdateStreamingDistributionCommandError(output, context);
7849
7744
  }
7850
- const contents = map({
7745
+ const contents = (0, smithy_client_1.map)({
7851
7746
  $metadata: deserializeMetadata(output),
7852
7747
  ETag: [, output.headers["etag"]],
7853
7748
  });
@@ -7907,17 +7802,16 @@ const de_UpdateStreamingDistributionCommandError = async (output, context) => {
7907
7802
  throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
7908
7803
  default:
7909
7804
  const parsedBody = parsedOutput.body;
7910
- (0, smithy_client_1.throwDefaultError)({
7805
+ return throwDefaultError({
7911
7806
  output,
7912
7807
  parsedBody: parsedBody.Error,
7913
- exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7914
7808
  errorCode,
7915
7809
  });
7916
7810
  }
7917
7811
  };
7918
- const map = smithy_client_1.map;
7812
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudFrontServiceException_1.CloudFrontServiceException);
7919
7813
  const de_AccessDeniedRes = async (parsedOutput, context) => {
7920
- const contents = map({});
7814
+ const contents = (0, smithy_client_1.map)({});
7921
7815
  const data = parsedOutput.body.Error;
7922
7816
  if (data["Message"] !== undefined) {
7923
7817
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -7929,7 +7823,7 @@ const de_AccessDeniedRes = async (parsedOutput, context) => {
7929
7823
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7930
7824
  };
7931
7825
  const de_BatchTooLargeRes = async (parsedOutput, context) => {
7932
- const contents = map({});
7826
+ const contents = (0, smithy_client_1.map)({});
7933
7827
  const data = parsedOutput.body.Error;
7934
7828
  if (data["Message"] !== undefined) {
7935
7829
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -7941,7 +7835,7 @@ const de_BatchTooLargeRes = async (parsedOutput, context) => {
7941
7835
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7942
7836
  };
7943
7837
  const de_CachePolicyAlreadyExistsRes = async (parsedOutput, context) => {
7944
- const contents = map({});
7838
+ const contents = (0, smithy_client_1.map)({});
7945
7839
  const data = parsedOutput.body.Error;
7946
7840
  if (data["Message"] !== undefined) {
7947
7841
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -7953,7 +7847,7 @@ const de_CachePolicyAlreadyExistsRes = async (parsedOutput, context) => {
7953
7847
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7954
7848
  };
7955
7849
  const de_CachePolicyInUseRes = async (parsedOutput, context) => {
7956
- const contents = map({});
7850
+ const contents = (0, smithy_client_1.map)({});
7957
7851
  const data = parsedOutput.body.Error;
7958
7852
  if (data["Message"] !== undefined) {
7959
7853
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -7965,7 +7859,7 @@ const de_CachePolicyInUseRes = async (parsedOutput, context) => {
7965
7859
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7966
7860
  };
7967
7861
  const de_CannotChangeImmutablePublicKeyFieldsRes = async (parsedOutput, context) => {
7968
- const contents = map({});
7862
+ const contents = (0, smithy_client_1.map)({});
7969
7863
  const data = parsedOutput.body.Error;
7970
7864
  if (data["Message"] !== undefined) {
7971
7865
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -7977,7 +7871,7 @@ const de_CannotChangeImmutablePublicKeyFieldsRes = async (parsedOutput, context)
7977
7871
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7978
7872
  };
7979
7873
  const de_CloudFrontOriginAccessIdentityAlreadyExistsRes = async (parsedOutput, context) => {
7980
- const contents = map({});
7874
+ const contents = (0, smithy_client_1.map)({});
7981
7875
  const data = parsedOutput.body.Error;
7982
7876
  if (data["Message"] !== undefined) {
7983
7877
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -7989,7 +7883,7 @@ const de_CloudFrontOriginAccessIdentityAlreadyExistsRes = async (parsedOutput, c
7989
7883
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7990
7884
  };
7991
7885
  const de_CloudFrontOriginAccessIdentityInUseRes = async (parsedOutput, context) => {
7992
- const contents = map({});
7886
+ const contents = (0, smithy_client_1.map)({});
7993
7887
  const data = parsedOutput.body.Error;
7994
7888
  if (data["Message"] !== undefined) {
7995
7889
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8001,7 +7895,7 @@ const de_CloudFrontOriginAccessIdentityInUseRes = async (parsedOutput, context)
8001
7895
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8002
7896
  };
8003
7897
  const de_CNAMEAlreadyExistsRes = async (parsedOutput, context) => {
8004
- const contents = map({});
7898
+ const contents = (0, smithy_client_1.map)({});
8005
7899
  const data = parsedOutput.body.Error;
8006
7900
  if (data["Message"] !== undefined) {
8007
7901
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8013,7 +7907,7 @@ const de_CNAMEAlreadyExistsRes = async (parsedOutput, context) => {
8013
7907
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8014
7908
  };
8015
7909
  const de_ContinuousDeploymentPolicyAlreadyExistsRes = async (parsedOutput, context) => {
8016
- const contents = map({});
7910
+ const contents = (0, smithy_client_1.map)({});
8017
7911
  const data = parsedOutput.body.Error;
8018
7912
  if (data["Message"] !== undefined) {
8019
7913
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8025,7 +7919,7 @@ const de_ContinuousDeploymentPolicyAlreadyExistsRes = async (parsedOutput, conte
8025
7919
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8026
7920
  };
8027
7921
  const de_ContinuousDeploymentPolicyInUseRes = async (parsedOutput, context) => {
8028
- const contents = map({});
7922
+ const contents = (0, smithy_client_1.map)({});
8029
7923
  const data = parsedOutput.body.Error;
8030
7924
  if (data["Message"] !== undefined) {
8031
7925
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8037,7 +7931,7 @@ const de_ContinuousDeploymentPolicyInUseRes = async (parsedOutput, context) => {
8037
7931
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8038
7932
  };
8039
7933
  const de_DistributionAlreadyExistsRes = async (parsedOutput, context) => {
8040
- const contents = map({});
7934
+ const contents = (0, smithy_client_1.map)({});
8041
7935
  const data = parsedOutput.body.Error;
8042
7936
  if (data["Message"] !== undefined) {
8043
7937
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8049,7 +7943,7 @@ const de_DistributionAlreadyExistsRes = async (parsedOutput, context) => {
8049
7943
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8050
7944
  };
8051
7945
  const de_DistributionNotDisabledRes = async (parsedOutput, context) => {
8052
- const contents = map({});
7946
+ const contents = (0, smithy_client_1.map)({});
8053
7947
  const data = parsedOutput.body.Error;
8054
7948
  if (data["Message"] !== undefined) {
8055
7949
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8061,7 +7955,7 @@ const de_DistributionNotDisabledRes = async (parsedOutput, context) => {
8061
7955
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8062
7956
  };
8063
7957
  const de_FieldLevelEncryptionConfigAlreadyExistsRes = async (parsedOutput, context) => {
8064
- const contents = map({});
7958
+ const contents = (0, smithy_client_1.map)({});
8065
7959
  const data = parsedOutput.body.Error;
8066
7960
  if (data["Message"] !== undefined) {
8067
7961
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8073,7 +7967,7 @@ const de_FieldLevelEncryptionConfigAlreadyExistsRes = async (parsedOutput, conte
8073
7967
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8074
7968
  };
8075
7969
  const de_FieldLevelEncryptionConfigInUseRes = async (parsedOutput, context) => {
8076
- const contents = map({});
7970
+ const contents = (0, smithy_client_1.map)({});
8077
7971
  const data = parsedOutput.body.Error;
8078
7972
  if (data["Message"] !== undefined) {
8079
7973
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8085,7 +7979,7 @@ const de_FieldLevelEncryptionConfigInUseRes = async (parsedOutput, context) => {
8085
7979
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8086
7980
  };
8087
7981
  const de_FieldLevelEncryptionProfileAlreadyExistsRes = async (parsedOutput, context) => {
8088
- const contents = map({});
7982
+ const contents = (0, smithy_client_1.map)({});
8089
7983
  const data = parsedOutput.body.Error;
8090
7984
  if (data["Message"] !== undefined) {
8091
7985
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8097,7 +7991,7 @@ const de_FieldLevelEncryptionProfileAlreadyExistsRes = async (parsedOutput, cont
8097
7991
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8098
7992
  };
8099
7993
  const de_FieldLevelEncryptionProfileInUseRes = async (parsedOutput, context) => {
8100
- const contents = map({});
7994
+ const contents = (0, smithy_client_1.map)({});
8101
7995
  const data = parsedOutput.body.Error;
8102
7996
  if (data["Message"] !== undefined) {
8103
7997
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8109,7 +8003,7 @@ const de_FieldLevelEncryptionProfileInUseRes = async (parsedOutput, context) =>
8109
8003
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8110
8004
  };
8111
8005
  const de_FieldLevelEncryptionProfileSizeExceededRes = async (parsedOutput, context) => {
8112
- const contents = map({});
8006
+ const contents = (0, smithy_client_1.map)({});
8113
8007
  const data = parsedOutput.body.Error;
8114
8008
  if (data["Message"] !== undefined) {
8115
8009
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8121,7 +8015,7 @@ const de_FieldLevelEncryptionProfileSizeExceededRes = async (parsedOutput, conte
8121
8015
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8122
8016
  };
8123
8017
  const de_FunctionAlreadyExistsRes = async (parsedOutput, context) => {
8124
- const contents = map({});
8018
+ const contents = (0, smithy_client_1.map)({});
8125
8019
  const data = parsedOutput.body.Error;
8126
8020
  if (data["Message"] !== undefined) {
8127
8021
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8133,7 +8027,7 @@ const de_FunctionAlreadyExistsRes = async (parsedOutput, context) => {
8133
8027
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8134
8028
  };
8135
8029
  const de_FunctionInUseRes = async (parsedOutput, context) => {
8136
- const contents = map({});
8030
+ const contents = (0, smithy_client_1.map)({});
8137
8031
  const data = parsedOutput.body.Error;
8138
8032
  if (data["Message"] !== undefined) {
8139
8033
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8145,7 +8039,7 @@ const de_FunctionInUseRes = async (parsedOutput, context) => {
8145
8039
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8146
8040
  };
8147
8041
  const de_FunctionSizeLimitExceededRes = async (parsedOutput, context) => {
8148
- const contents = map({});
8042
+ const contents = (0, smithy_client_1.map)({});
8149
8043
  const data = parsedOutput.body.Error;
8150
8044
  if (data["Message"] !== undefined) {
8151
8045
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8157,7 +8051,7 @@ const de_FunctionSizeLimitExceededRes = async (parsedOutput, context) => {
8157
8051
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8158
8052
  };
8159
8053
  const de_IllegalDeleteRes = async (parsedOutput, context) => {
8160
- const contents = map({});
8054
+ const contents = (0, smithy_client_1.map)({});
8161
8055
  const data = parsedOutput.body.Error;
8162
8056
  if (data["Message"] !== undefined) {
8163
8057
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8169,7 +8063,7 @@ const de_IllegalDeleteRes = async (parsedOutput, context) => {
8169
8063
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8170
8064
  };
8171
8065
  const de_IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorRes = async (parsedOutput, context) => {
8172
- const contents = map({});
8066
+ const contents = (0, smithy_client_1.map)({});
8173
8067
  const data = parsedOutput.body.Error;
8174
8068
  if (data["Message"] !== undefined) {
8175
8069
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8181,7 +8075,7 @@ const de_IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorRes = asyn
8181
8075
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8182
8076
  };
8183
8077
  const de_IllegalOriginAccessConfigurationRes = async (parsedOutput, context) => {
8184
- const contents = map({});
8078
+ const contents = (0, smithy_client_1.map)({});
8185
8079
  const data = parsedOutput.body.Error;
8186
8080
  if (data["Message"] !== undefined) {
8187
8081
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8193,7 +8087,7 @@ const de_IllegalOriginAccessConfigurationRes = async (parsedOutput, context) =>
8193
8087
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8194
8088
  };
8195
8089
  const de_IllegalUpdateRes = async (parsedOutput, context) => {
8196
- const contents = map({});
8090
+ const contents = (0, smithy_client_1.map)({});
8197
8091
  const data = parsedOutput.body.Error;
8198
8092
  if (data["Message"] !== undefined) {
8199
8093
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8205,7 +8099,7 @@ const de_IllegalUpdateRes = async (parsedOutput, context) => {
8205
8099
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8206
8100
  };
8207
8101
  const de_InconsistentQuantitiesRes = async (parsedOutput, context) => {
8208
- const contents = map({});
8102
+ const contents = (0, smithy_client_1.map)({});
8209
8103
  const data = parsedOutput.body.Error;
8210
8104
  if (data["Message"] !== undefined) {
8211
8105
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8217,7 +8111,7 @@ const de_InconsistentQuantitiesRes = async (parsedOutput, context) => {
8217
8111
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8218
8112
  };
8219
8113
  const de_InvalidArgumentRes = async (parsedOutput, context) => {
8220
- const contents = map({});
8114
+ const contents = (0, smithy_client_1.map)({});
8221
8115
  const data = parsedOutput.body.Error;
8222
8116
  if (data["Message"] !== undefined) {
8223
8117
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8229,7 +8123,7 @@ const de_InvalidArgumentRes = async (parsedOutput, context) => {
8229
8123
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8230
8124
  };
8231
8125
  const de_InvalidDefaultRootObjectRes = async (parsedOutput, context) => {
8232
- const contents = map({});
8126
+ const contents = (0, smithy_client_1.map)({});
8233
8127
  const data = parsedOutput.body.Error;
8234
8128
  if (data["Message"] !== undefined) {
8235
8129
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8241,7 +8135,7 @@ const de_InvalidDefaultRootObjectRes = async (parsedOutput, context) => {
8241
8135
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8242
8136
  };
8243
8137
  const de_InvalidDomainNameForOriginAccessControlRes = async (parsedOutput, context) => {
8244
- const contents = map({});
8138
+ const contents = (0, smithy_client_1.map)({});
8245
8139
  const data = parsedOutput.body.Error;
8246
8140
  if (data["Message"] !== undefined) {
8247
8141
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8253,7 +8147,7 @@ const de_InvalidDomainNameForOriginAccessControlRes = async (parsedOutput, conte
8253
8147
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8254
8148
  };
8255
8149
  const de_InvalidErrorCodeRes = async (parsedOutput, context) => {
8256
- const contents = map({});
8150
+ const contents = (0, smithy_client_1.map)({});
8257
8151
  const data = parsedOutput.body.Error;
8258
8152
  if (data["Message"] !== undefined) {
8259
8153
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8265,7 +8159,7 @@ const de_InvalidErrorCodeRes = async (parsedOutput, context) => {
8265
8159
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8266
8160
  };
8267
8161
  const de_InvalidForwardCookiesRes = async (parsedOutput, context) => {
8268
- const contents = map({});
8162
+ const contents = (0, smithy_client_1.map)({});
8269
8163
  const data = parsedOutput.body.Error;
8270
8164
  if (data["Message"] !== undefined) {
8271
8165
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8277,7 +8171,7 @@ const de_InvalidForwardCookiesRes = async (parsedOutput, context) => {
8277
8171
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8278
8172
  };
8279
8173
  const de_InvalidFunctionAssociationRes = async (parsedOutput, context) => {
8280
- const contents = map({});
8174
+ const contents = (0, smithy_client_1.map)({});
8281
8175
  const data = parsedOutput.body.Error;
8282
8176
  if (data["Message"] !== undefined) {
8283
8177
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8289,7 +8183,7 @@ const de_InvalidFunctionAssociationRes = async (parsedOutput, context) => {
8289
8183
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8290
8184
  };
8291
8185
  const de_InvalidGeoRestrictionParameterRes = async (parsedOutput, context) => {
8292
- const contents = map({});
8186
+ const contents = (0, smithy_client_1.map)({});
8293
8187
  const data = parsedOutput.body.Error;
8294
8188
  if (data["Message"] !== undefined) {
8295
8189
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8301,7 +8195,7 @@ const de_InvalidGeoRestrictionParameterRes = async (parsedOutput, context) => {
8301
8195
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8302
8196
  };
8303
8197
  const de_InvalidHeadersForS3OriginRes = async (parsedOutput, context) => {
8304
- const contents = map({});
8198
+ const contents = (0, smithy_client_1.map)({});
8305
8199
  const data = parsedOutput.body.Error;
8306
8200
  if (data["Message"] !== undefined) {
8307
8201
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8313,7 +8207,7 @@ const de_InvalidHeadersForS3OriginRes = async (parsedOutput, context) => {
8313
8207
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8314
8208
  };
8315
8209
  const de_InvalidIfMatchVersionRes = async (parsedOutput, context) => {
8316
- const contents = map({});
8210
+ const contents = (0, smithy_client_1.map)({});
8317
8211
  const data = parsedOutput.body.Error;
8318
8212
  if (data["Message"] !== undefined) {
8319
8213
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8325,7 +8219,7 @@ const de_InvalidIfMatchVersionRes = async (parsedOutput, context) => {
8325
8219
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8326
8220
  };
8327
8221
  const de_InvalidLambdaFunctionAssociationRes = async (parsedOutput, context) => {
8328
- const contents = map({});
8222
+ const contents = (0, smithy_client_1.map)({});
8329
8223
  const data = parsedOutput.body.Error;
8330
8224
  if (data["Message"] !== undefined) {
8331
8225
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8337,7 +8231,7 @@ const de_InvalidLambdaFunctionAssociationRes = async (parsedOutput, context) =>
8337
8231
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8338
8232
  };
8339
8233
  const de_InvalidLocationCodeRes = async (parsedOutput, context) => {
8340
- const contents = map({});
8234
+ const contents = (0, smithy_client_1.map)({});
8341
8235
  const data = parsedOutput.body.Error;
8342
8236
  if (data["Message"] !== undefined) {
8343
8237
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8349,7 +8243,7 @@ const de_InvalidLocationCodeRes = async (parsedOutput, context) => {
8349
8243
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8350
8244
  };
8351
8245
  const de_InvalidMinimumProtocolVersionRes = async (parsedOutput, context) => {
8352
- const contents = map({});
8246
+ const contents = (0, smithy_client_1.map)({});
8353
8247
  const data = parsedOutput.body.Error;
8354
8248
  if (data["Message"] !== undefined) {
8355
8249
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8361,7 +8255,7 @@ const de_InvalidMinimumProtocolVersionRes = async (parsedOutput, context) => {
8361
8255
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8362
8256
  };
8363
8257
  const de_InvalidOriginRes = async (parsedOutput, context) => {
8364
- const contents = map({});
8258
+ const contents = (0, smithy_client_1.map)({});
8365
8259
  const data = parsedOutput.body.Error;
8366
8260
  if (data["Message"] !== undefined) {
8367
8261
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8373,7 +8267,7 @@ const de_InvalidOriginRes = async (parsedOutput, context) => {
8373
8267
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8374
8268
  };
8375
8269
  const de_InvalidOriginAccessControlRes = async (parsedOutput, context) => {
8376
- const contents = map({});
8270
+ const contents = (0, smithy_client_1.map)({});
8377
8271
  const data = parsedOutput.body.Error;
8378
8272
  if (data["Message"] !== undefined) {
8379
8273
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8385,7 +8279,7 @@ const de_InvalidOriginAccessControlRes = async (parsedOutput, context) => {
8385
8279
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8386
8280
  };
8387
8281
  const de_InvalidOriginAccessIdentityRes = async (parsedOutput, context) => {
8388
- const contents = map({});
8282
+ const contents = (0, smithy_client_1.map)({});
8389
8283
  const data = parsedOutput.body.Error;
8390
8284
  if (data["Message"] !== undefined) {
8391
8285
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8397,7 +8291,7 @@ const de_InvalidOriginAccessIdentityRes = async (parsedOutput, context) => {
8397
8291
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8398
8292
  };
8399
8293
  const de_InvalidOriginKeepaliveTimeoutRes = async (parsedOutput, context) => {
8400
- const contents = map({});
8294
+ const contents = (0, smithy_client_1.map)({});
8401
8295
  const data = parsedOutput.body.Error;
8402
8296
  if (data["Message"] !== undefined) {
8403
8297
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8409,7 +8303,7 @@ const de_InvalidOriginKeepaliveTimeoutRes = async (parsedOutput, context) => {
8409
8303
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8410
8304
  };
8411
8305
  const de_InvalidOriginReadTimeoutRes = async (parsedOutput, context) => {
8412
- const contents = map({});
8306
+ const contents = (0, smithy_client_1.map)({});
8413
8307
  const data = parsedOutput.body.Error;
8414
8308
  if (data["Message"] !== undefined) {
8415
8309
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8421,7 +8315,7 @@ const de_InvalidOriginReadTimeoutRes = async (parsedOutput, context) => {
8421
8315
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8422
8316
  };
8423
8317
  const de_InvalidProtocolSettingsRes = async (parsedOutput, context) => {
8424
- const contents = map({});
8318
+ const contents = (0, smithy_client_1.map)({});
8425
8319
  const data = parsedOutput.body.Error;
8426
8320
  if (data["Message"] !== undefined) {
8427
8321
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8433,7 +8327,7 @@ const de_InvalidProtocolSettingsRes = async (parsedOutput, context) => {
8433
8327
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8434
8328
  };
8435
8329
  const de_InvalidQueryStringParametersRes = async (parsedOutput, context) => {
8436
- const contents = map({});
8330
+ const contents = (0, smithy_client_1.map)({});
8437
8331
  const data = parsedOutput.body.Error;
8438
8332
  if (data["Message"] !== undefined) {
8439
8333
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8445,7 +8339,7 @@ const de_InvalidQueryStringParametersRes = async (parsedOutput, context) => {
8445
8339
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8446
8340
  };
8447
8341
  const de_InvalidRelativePathRes = async (parsedOutput, context) => {
8448
- const contents = map({});
8342
+ const contents = (0, smithy_client_1.map)({});
8449
8343
  const data = parsedOutput.body.Error;
8450
8344
  if (data["Message"] !== undefined) {
8451
8345
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8457,7 +8351,7 @@ const de_InvalidRelativePathRes = async (parsedOutput, context) => {
8457
8351
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8458
8352
  };
8459
8353
  const de_InvalidRequiredProtocolRes = async (parsedOutput, context) => {
8460
- const contents = map({});
8354
+ const contents = (0, smithy_client_1.map)({});
8461
8355
  const data = parsedOutput.body.Error;
8462
8356
  if (data["Message"] !== undefined) {
8463
8357
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8469,7 +8363,7 @@ const de_InvalidRequiredProtocolRes = async (parsedOutput, context) => {
8469
8363
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8470
8364
  };
8471
8365
  const de_InvalidResponseCodeRes = async (parsedOutput, context) => {
8472
- const contents = map({});
8366
+ const contents = (0, smithy_client_1.map)({});
8473
8367
  const data = parsedOutput.body.Error;
8474
8368
  if (data["Message"] !== undefined) {
8475
8369
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8481,7 +8375,7 @@ const de_InvalidResponseCodeRes = async (parsedOutput, context) => {
8481
8375
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8482
8376
  };
8483
8377
  const de_InvalidTaggingRes = async (parsedOutput, context) => {
8484
- const contents = map({});
8378
+ const contents = (0, smithy_client_1.map)({});
8485
8379
  const data = parsedOutput.body.Error;
8486
8380
  if (data["Message"] !== undefined) {
8487
8381
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8493,7 +8387,7 @@ const de_InvalidTaggingRes = async (parsedOutput, context) => {
8493
8387
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8494
8388
  };
8495
8389
  const de_InvalidTTLOrderRes = async (parsedOutput, context) => {
8496
- const contents = map({});
8390
+ const contents = (0, smithy_client_1.map)({});
8497
8391
  const data = parsedOutput.body.Error;
8498
8392
  if (data["Message"] !== undefined) {
8499
8393
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8505,7 +8399,7 @@ const de_InvalidTTLOrderRes = async (parsedOutput, context) => {
8505
8399
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8506
8400
  };
8507
8401
  const de_InvalidViewerCertificateRes = async (parsedOutput, context) => {
8508
- const contents = map({});
8402
+ const contents = (0, smithy_client_1.map)({});
8509
8403
  const data = parsedOutput.body.Error;
8510
8404
  if (data["Message"] !== undefined) {
8511
8405
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8517,7 +8411,7 @@ const de_InvalidViewerCertificateRes = async (parsedOutput, context) => {
8517
8411
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8518
8412
  };
8519
8413
  const de_InvalidWebACLIdRes = async (parsedOutput, context) => {
8520
- const contents = map({});
8414
+ const contents = (0, smithy_client_1.map)({});
8521
8415
  const data = parsedOutput.body.Error;
8522
8416
  if (data["Message"] !== undefined) {
8523
8417
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8529,7 +8423,7 @@ const de_InvalidWebACLIdRes = async (parsedOutput, context) => {
8529
8423
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8530
8424
  };
8531
8425
  const de_KeyGroupAlreadyExistsRes = async (parsedOutput, context) => {
8532
- const contents = map({});
8426
+ const contents = (0, smithy_client_1.map)({});
8533
8427
  const data = parsedOutput.body.Error;
8534
8428
  if (data["Message"] !== undefined) {
8535
8429
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8541,7 +8435,7 @@ const de_KeyGroupAlreadyExistsRes = async (parsedOutput, context) => {
8541
8435
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8542
8436
  };
8543
8437
  const de_MissingBodyRes = async (parsedOutput, context) => {
8544
- const contents = map({});
8438
+ const contents = (0, smithy_client_1.map)({});
8545
8439
  const data = parsedOutput.body.Error;
8546
8440
  if (data["Message"] !== undefined) {
8547
8441
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8553,7 +8447,7 @@ const de_MissingBodyRes = async (parsedOutput, context) => {
8553
8447
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8554
8448
  };
8555
8449
  const de_MonitoringSubscriptionAlreadyExistsRes = async (parsedOutput, context) => {
8556
- const contents = map({});
8450
+ const contents = (0, smithy_client_1.map)({});
8557
8451
  const data = parsedOutput.body.Error;
8558
8452
  if (data["Message"] !== undefined) {
8559
8453
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8565,7 +8459,7 @@ const de_MonitoringSubscriptionAlreadyExistsRes = async (parsedOutput, context)
8565
8459
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8566
8460
  };
8567
8461
  const de_NoSuchCachePolicyRes = async (parsedOutput, context) => {
8568
- const contents = map({});
8462
+ const contents = (0, smithy_client_1.map)({});
8569
8463
  const data = parsedOutput.body.Error;
8570
8464
  if (data["Message"] !== undefined) {
8571
8465
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8577,7 +8471,7 @@ const de_NoSuchCachePolicyRes = async (parsedOutput, context) => {
8577
8471
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8578
8472
  };
8579
8473
  const de_NoSuchCloudFrontOriginAccessIdentityRes = async (parsedOutput, context) => {
8580
- const contents = map({});
8474
+ const contents = (0, smithy_client_1.map)({});
8581
8475
  const data = parsedOutput.body.Error;
8582
8476
  if (data["Message"] !== undefined) {
8583
8477
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8589,7 +8483,7 @@ const de_NoSuchCloudFrontOriginAccessIdentityRes = async (parsedOutput, context)
8589
8483
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8590
8484
  };
8591
8485
  const de_NoSuchContinuousDeploymentPolicyRes = async (parsedOutput, context) => {
8592
- const contents = map({});
8486
+ const contents = (0, smithy_client_1.map)({});
8593
8487
  const data = parsedOutput.body.Error;
8594
8488
  if (data["Message"] !== undefined) {
8595
8489
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8601,7 +8495,7 @@ const de_NoSuchContinuousDeploymentPolicyRes = async (parsedOutput, context) =>
8601
8495
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8602
8496
  };
8603
8497
  const de_NoSuchDistributionRes = async (parsedOutput, context) => {
8604
- const contents = map({});
8498
+ const contents = (0, smithy_client_1.map)({});
8605
8499
  const data = parsedOutput.body.Error;
8606
8500
  if (data["Message"] !== undefined) {
8607
8501
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8613,7 +8507,7 @@ const de_NoSuchDistributionRes = async (parsedOutput, context) => {
8613
8507
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8614
8508
  };
8615
8509
  const de_NoSuchFieldLevelEncryptionConfigRes = async (parsedOutput, context) => {
8616
- const contents = map({});
8510
+ const contents = (0, smithy_client_1.map)({});
8617
8511
  const data = parsedOutput.body.Error;
8618
8512
  if (data["Message"] !== undefined) {
8619
8513
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8625,7 +8519,7 @@ const de_NoSuchFieldLevelEncryptionConfigRes = async (parsedOutput, context) =>
8625
8519
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8626
8520
  };
8627
8521
  const de_NoSuchFieldLevelEncryptionProfileRes = async (parsedOutput, context) => {
8628
- const contents = map({});
8522
+ const contents = (0, smithy_client_1.map)({});
8629
8523
  const data = parsedOutput.body.Error;
8630
8524
  if (data["Message"] !== undefined) {
8631
8525
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8637,7 +8531,7 @@ const de_NoSuchFieldLevelEncryptionProfileRes = async (parsedOutput, context) =>
8637
8531
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8638
8532
  };
8639
8533
  const de_NoSuchFunctionExistsRes = async (parsedOutput, context) => {
8640
- const contents = map({});
8534
+ const contents = (0, smithy_client_1.map)({});
8641
8535
  const data = parsedOutput.body.Error;
8642
8536
  if (data["Message"] !== undefined) {
8643
8537
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8649,7 +8543,7 @@ const de_NoSuchFunctionExistsRes = async (parsedOutput, context) => {
8649
8543
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8650
8544
  };
8651
8545
  const de_NoSuchInvalidationRes = async (parsedOutput, context) => {
8652
- const contents = map({});
8546
+ const contents = (0, smithy_client_1.map)({});
8653
8547
  const data = parsedOutput.body.Error;
8654
8548
  if (data["Message"] !== undefined) {
8655
8549
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8661,7 +8555,7 @@ const de_NoSuchInvalidationRes = async (parsedOutput, context) => {
8661
8555
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8662
8556
  };
8663
8557
  const de_NoSuchMonitoringSubscriptionRes = async (parsedOutput, context) => {
8664
- const contents = map({});
8558
+ const contents = (0, smithy_client_1.map)({});
8665
8559
  const data = parsedOutput.body.Error;
8666
8560
  if (data["Message"] !== undefined) {
8667
8561
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8673,7 +8567,7 @@ const de_NoSuchMonitoringSubscriptionRes = async (parsedOutput, context) => {
8673
8567
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8674
8568
  };
8675
8569
  const de_NoSuchOriginRes = async (parsedOutput, context) => {
8676
- const contents = map({});
8570
+ const contents = (0, smithy_client_1.map)({});
8677
8571
  const data = parsedOutput.body.Error;
8678
8572
  if (data["Message"] !== undefined) {
8679
8573
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8685,7 +8579,7 @@ const de_NoSuchOriginRes = async (parsedOutput, context) => {
8685
8579
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8686
8580
  };
8687
8581
  const de_NoSuchOriginAccessControlRes = async (parsedOutput, context) => {
8688
- const contents = map({});
8582
+ const contents = (0, smithy_client_1.map)({});
8689
8583
  const data = parsedOutput.body.Error;
8690
8584
  if (data["Message"] !== undefined) {
8691
8585
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8697,7 +8591,7 @@ const de_NoSuchOriginAccessControlRes = async (parsedOutput, context) => {
8697
8591
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8698
8592
  };
8699
8593
  const de_NoSuchOriginRequestPolicyRes = async (parsedOutput, context) => {
8700
- const contents = map({});
8594
+ const contents = (0, smithy_client_1.map)({});
8701
8595
  const data = parsedOutput.body.Error;
8702
8596
  if (data["Message"] !== undefined) {
8703
8597
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8709,7 +8603,7 @@ const de_NoSuchOriginRequestPolicyRes = async (parsedOutput, context) => {
8709
8603
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8710
8604
  };
8711
8605
  const de_NoSuchPublicKeyRes = async (parsedOutput, context) => {
8712
- const contents = map({});
8606
+ const contents = (0, smithy_client_1.map)({});
8713
8607
  const data = parsedOutput.body.Error;
8714
8608
  if (data["Message"] !== undefined) {
8715
8609
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8721,7 +8615,7 @@ const de_NoSuchPublicKeyRes = async (parsedOutput, context) => {
8721
8615
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8722
8616
  };
8723
8617
  const de_NoSuchRealtimeLogConfigRes = async (parsedOutput, context) => {
8724
- const contents = map({});
8618
+ const contents = (0, smithy_client_1.map)({});
8725
8619
  const data = parsedOutput.body.Error;
8726
8620
  if (data["Message"] !== undefined) {
8727
8621
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8733,7 +8627,7 @@ const de_NoSuchRealtimeLogConfigRes = async (parsedOutput, context) => {
8733
8627
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8734
8628
  };
8735
8629
  const de_NoSuchResourceRes = async (parsedOutput, context) => {
8736
- const contents = map({});
8630
+ const contents = (0, smithy_client_1.map)({});
8737
8631
  const data = parsedOutput.body.Error;
8738
8632
  if (data["Message"] !== undefined) {
8739
8633
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8745,7 +8639,7 @@ const de_NoSuchResourceRes = async (parsedOutput, context) => {
8745
8639
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8746
8640
  };
8747
8641
  const de_NoSuchResponseHeadersPolicyRes = async (parsedOutput, context) => {
8748
- const contents = map({});
8642
+ const contents = (0, smithy_client_1.map)({});
8749
8643
  const data = parsedOutput.body.Error;
8750
8644
  if (data["Message"] !== undefined) {
8751
8645
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8757,7 +8651,7 @@ const de_NoSuchResponseHeadersPolicyRes = async (parsedOutput, context) => {
8757
8651
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8758
8652
  };
8759
8653
  const de_NoSuchStreamingDistributionRes = async (parsedOutput, context) => {
8760
- const contents = map({});
8654
+ const contents = (0, smithy_client_1.map)({});
8761
8655
  const data = parsedOutput.body.Error;
8762
8656
  if (data["Message"] !== undefined) {
8763
8657
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8769,7 +8663,7 @@ const de_NoSuchStreamingDistributionRes = async (parsedOutput, context) => {
8769
8663
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8770
8664
  };
8771
8665
  const de_OriginAccessControlAlreadyExistsRes = async (parsedOutput, context) => {
8772
- const contents = map({});
8666
+ const contents = (0, smithy_client_1.map)({});
8773
8667
  const data = parsedOutput.body.Error;
8774
8668
  if (data["Message"] !== undefined) {
8775
8669
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8781,7 +8675,7 @@ const de_OriginAccessControlAlreadyExistsRes = async (parsedOutput, context) =>
8781
8675
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8782
8676
  };
8783
8677
  const de_OriginAccessControlInUseRes = async (parsedOutput, context) => {
8784
- const contents = map({});
8678
+ const contents = (0, smithy_client_1.map)({});
8785
8679
  const data = parsedOutput.body.Error;
8786
8680
  if (data["Message"] !== undefined) {
8787
8681
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8793,7 +8687,7 @@ const de_OriginAccessControlInUseRes = async (parsedOutput, context) => {
8793
8687
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8794
8688
  };
8795
8689
  const de_OriginRequestPolicyAlreadyExistsRes = async (parsedOutput, context) => {
8796
- const contents = map({});
8690
+ const contents = (0, smithy_client_1.map)({});
8797
8691
  const data = parsedOutput.body.Error;
8798
8692
  if (data["Message"] !== undefined) {
8799
8693
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8805,7 +8699,7 @@ const de_OriginRequestPolicyAlreadyExistsRes = async (parsedOutput, context) =>
8805
8699
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8806
8700
  };
8807
8701
  const de_OriginRequestPolicyInUseRes = async (parsedOutput, context) => {
8808
- const contents = map({});
8702
+ const contents = (0, smithy_client_1.map)({});
8809
8703
  const data = parsedOutput.body.Error;
8810
8704
  if (data["Message"] !== undefined) {
8811
8705
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8817,7 +8711,7 @@ const de_OriginRequestPolicyInUseRes = async (parsedOutput, context) => {
8817
8711
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8818
8712
  };
8819
8713
  const de_PreconditionFailedRes = async (parsedOutput, context) => {
8820
- const contents = map({});
8714
+ const contents = (0, smithy_client_1.map)({});
8821
8715
  const data = parsedOutput.body.Error;
8822
8716
  if (data["Message"] !== undefined) {
8823
8717
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8829,7 +8723,7 @@ const de_PreconditionFailedRes = async (parsedOutput, context) => {
8829
8723
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8830
8724
  };
8831
8725
  const de_PublicKeyAlreadyExistsRes = async (parsedOutput, context) => {
8832
- const contents = map({});
8726
+ const contents = (0, smithy_client_1.map)({});
8833
8727
  const data = parsedOutput.body.Error;
8834
8728
  if (data["Message"] !== undefined) {
8835
8729
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8841,7 +8735,7 @@ const de_PublicKeyAlreadyExistsRes = async (parsedOutput, context) => {
8841
8735
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8842
8736
  };
8843
8737
  const de_PublicKeyInUseRes = async (parsedOutput, context) => {
8844
- const contents = map({});
8738
+ const contents = (0, smithy_client_1.map)({});
8845
8739
  const data = parsedOutput.body.Error;
8846
8740
  if (data["Message"] !== undefined) {
8847
8741
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8853,7 +8747,7 @@ const de_PublicKeyInUseRes = async (parsedOutput, context) => {
8853
8747
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8854
8748
  };
8855
8749
  const de_QueryArgProfileEmptyRes = async (parsedOutput, context) => {
8856
- const contents = map({});
8750
+ const contents = (0, smithy_client_1.map)({});
8857
8751
  const data = parsedOutput.body.Error;
8858
8752
  if (data["Message"] !== undefined) {
8859
8753
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8865,7 +8759,7 @@ const de_QueryArgProfileEmptyRes = async (parsedOutput, context) => {
8865
8759
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8866
8760
  };
8867
8761
  const de_RealtimeLogConfigAlreadyExistsRes = async (parsedOutput, context) => {
8868
- const contents = map({});
8762
+ const contents = (0, smithy_client_1.map)({});
8869
8763
  const data = parsedOutput.body.Error;
8870
8764
  if (data["Message"] !== undefined) {
8871
8765
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8877,7 +8771,7 @@ const de_RealtimeLogConfigAlreadyExistsRes = async (parsedOutput, context) => {
8877
8771
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8878
8772
  };
8879
8773
  const de_RealtimeLogConfigInUseRes = async (parsedOutput, context) => {
8880
- const contents = map({});
8774
+ const contents = (0, smithy_client_1.map)({});
8881
8775
  const data = parsedOutput.body.Error;
8882
8776
  if (data["Message"] !== undefined) {
8883
8777
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8889,7 +8783,7 @@ const de_RealtimeLogConfigInUseRes = async (parsedOutput, context) => {
8889
8783
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8890
8784
  };
8891
8785
  const de_RealtimeLogConfigOwnerMismatchRes = async (parsedOutput, context) => {
8892
- const contents = map({});
8786
+ const contents = (0, smithy_client_1.map)({});
8893
8787
  const data = parsedOutput.body.Error;
8894
8788
  if (data["Message"] !== undefined) {
8895
8789
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8901,7 +8795,7 @@ const de_RealtimeLogConfigOwnerMismatchRes = async (parsedOutput, context) => {
8901
8795
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8902
8796
  };
8903
8797
  const de_ResourceInUseRes = async (parsedOutput, context) => {
8904
- const contents = map({});
8798
+ const contents = (0, smithy_client_1.map)({});
8905
8799
  const data = parsedOutput.body.Error;
8906
8800
  if (data["Message"] !== undefined) {
8907
8801
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8913,7 +8807,7 @@ const de_ResourceInUseRes = async (parsedOutput, context) => {
8913
8807
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8914
8808
  };
8915
8809
  const de_ResponseHeadersPolicyAlreadyExistsRes = async (parsedOutput, context) => {
8916
- const contents = map({});
8810
+ const contents = (0, smithy_client_1.map)({});
8917
8811
  const data = parsedOutput.body.Error;
8918
8812
  if (data["Message"] !== undefined) {
8919
8813
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8925,7 +8819,7 @@ const de_ResponseHeadersPolicyAlreadyExistsRes = async (parsedOutput, context) =
8925
8819
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8926
8820
  };
8927
8821
  const de_ResponseHeadersPolicyInUseRes = async (parsedOutput, context) => {
8928
- const contents = map({});
8822
+ const contents = (0, smithy_client_1.map)({});
8929
8823
  const data = parsedOutput.body.Error;
8930
8824
  if (data["Message"] !== undefined) {
8931
8825
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8937,7 +8831,7 @@ const de_ResponseHeadersPolicyInUseRes = async (parsedOutput, context) => {
8937
8831
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8938
8832
  };
8939
8833
  const de_StagingDistributionInUseRes = async (parsedOutput, context) => {
8940
- const contents = map({});
8834
+ const contents = (0, smithy_client_1.map)({});
8941
8835
  const data = parsedOutput.body.Error;
8942
8836
  if (data["Message"] !== undefined) {
8943
8837
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8949,7 +8843,7 @@ const de_StagingDistributionInUseRes = async (parsedOutput, context) => {
8949
8843
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8950
8844
  };
8951
8845
  const de_StreamingDistributionAlreadyExistsRes = async (parsedOutput, context) => {
8952
- const contents = map({});
8846
+ const contents = (0, smithy_client_1.map)({});
8953
8847
  const data = parsedOutput.body.Error;
8954
8848
  if (data["Message"] !== undefined) {
8955
8849
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8961,7 +8855,7 @@ const de_StreamingDistributionAlreadyExistsRes = async (parsedOutput, context) =
8961
8855
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8962
8856
  };
8963
8857
  const de_StreamingDistributionNotDisabledRes = async (parsedOutput, context) => {
8964
- const contents = map({});
8858
+ const contents = (0, smithy_client_1.map)({});
8965
8859
  const data = parsedOutput.body.Error;
8966
8860
  if (data["Message"] !== undefined) {
8967
8861
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8973,7 +8867,7 @@ const de_StreamingDistributionNotDisabledRes = async (parsedOutput, context) =>
8973
8867
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8974
8868
  };
8975
8869
  const de_TestFunctionFailedRes = async (parsedOutput, context) => {
8976
- const contents = map({});
8870
+ const contents = (0, smithy_client_1.map)({});
8977
8871
  const data = parsedOutput.body.Error;
8978
8872
  if (data["Message"] !== undefined) {
8979
8873
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8985,7 +8879,7 @@ const de_TestFunctionFailedRes = async (parsedOutput, context) => {
8985
8879
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8986
8880
  };
8987
8881
  const de_TooLongCSPInResponseHeadersPolicyRes = async (parsedOutput, context) => {
8988
- const contents = map({});
8882
+ const contents = (0, smithy_client_1.map)({});
8989
8883
  const data = parsedOutput.body.Error;
8990
8884
  if (data["Message"] !== undefined) {
8991
8885
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -8997,7 +8891,7 @@ const de_TooLongCSPInResponseHeadersPolicyRes = async (parsedOutput, context) =>
8997
8891
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8998
8892
  };
8999
8893
  const de_TooManyCacheBehaviorsRes = async (parsedOutput, context) => {
9000
- const contents = map({});
8894
+ const contents = (0, smithy_client_1.map)({});
9001
8895
  const data = parsedOutput.body.Error;
9002
8896
  if (data["Message"] !== undefined) {
9003
8897
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9009,7 +8903,7 @@ const de_TooManyCacheBehaviorsRes = async (parsedOutput, context) => {
9009
8903
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9010
8904
  };
9011
8905
  const de_TooManyCachePoliciesRes = async (parsedOutput, context) => {
9012
- const contents = map({});
8906
+ const contents = (0, smithy_client_1.map)({});
9013
8907
  const data = parsedOutput.body.Error;
9014
8908
  if (data["Message"] !== undefined) {
9015
8909
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9021,7 +8915,7 @@ const de_TooManyCachePoliciesRes = async (parsedOutput, context) => {
9021
8915
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9022
8916
  };
9023
8917
  const de_TooManyCertificatesRes = async (parsedOutput, context) => {
9024
- const contents = map({});
8918
+ const contents = (0, smithy_client_1.map)({});
9025
8919
  const data = parsedOutput.body.Error;
9026
8920
  if (data["Message"] !== undefined) {
9027
8921
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9033,7 +8927,7 @@ const de_TooManyCertificatesRes = async (parsedOutput, context) => {
9033
8927
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9034
8928
  };
9035
8929
  const de_TooManyCloudFrontOriginAccessIdentitiesRes = async (parsedOutput, context) => {
9036
- const contents = map({});
8930
+ const contents = (0, smithy_client_1.map)({});
9037
8931
  const data = parsedOutput.body.Error;
9038
8932
  if (data["Message"] !== undefined) {
9039
8933
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9045,7 +8939,7 @@ const de_TooManyCloudFrontOriginAccessIdentitiesRes = async (parsedOutput, conte
9045
8939
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9046
8940
  };
9047
8941
  const de_TooManyContinuousDeploymentPoliciesRes = async (parsedOutput, context) => {
9048
- const contents = map({});
8942
+ const contents = (0, smithy_client_1.map)({});
9049
8943
  const data = parsedOutput.body.Error;
9050
8944
  if (data["Message"] !== undefined) {
9051
8945
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9057,7 +8951,7 @@ const de_TooManyContinuousDeploymentPoliciesRes = async (parsedOutput, context)
9057
8951
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9058
8952
  };
9059
8953
  const de_TooManyCookieNamesInWhiteListRes = async (parsedOutput, context) => {
9060
- const contents = map({});
8954
+ const contents = (0, smithy_client_1.map)({});
9061
8955
  const data = parsedOutput.body.Error;
9062
8956
  if (data["Message"] !== undefined) {
9063
8957
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9069,7 +8963,7 @@ const de_TooManyCookieNamesInWhiteListRes = async (parsedOutput, context) => {
9069
8963
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9070
8964
  };
9071
8965
  const de_TooManyCookiesInCachePolicyRes = async (parsedOutput, context) => {
9072
- const contents = map({});
8966
+ const contents = (0, smithy_client_1.map)({});
9073
8967
  const data = parsedOutput.body.Error;
9074
8968
  if (data["Message"] !== undefined) {
9075
8969
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9081,7 +8975,7 @@ const de_TooManyCookiesInCachePolicyRes = async (parsedOutput, context) => {
9081
8975
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9082
8976
  };
9083
8977
  const de_TooManyCookiesInOriginRequestPolicyRes = async (parsedOutput, context) => {
9084
- const contents = map({});
8978
+ const contents = (0, smithy_client_1.map)({});
9085
8979
  const data = parsedOutput.body.Error;
9086
8980
  if (data["Message"] !== undefined) {
9087
8981
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9093,7 +8987,7 @@ const de_TooManyCookiesInOriginRequestPolicyRes = async (parsedOutput, context)
9093
8987
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9094
8988
  };
9095
8989
  const de_TooManyCustomHeadersInResponseHeadersPolicyRes = async (parsedOutput, context) => {
9096
- const contents = map({});
8990
+ const contents = (0, smithy_client_1.map)({});
9097
8991
  const data = parsedOutput.body.Error;
9098
8992
  if (data["Message"] !== undefined) {
9099
8993
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9105,7 +8999,7 @@ const de_TooManyCustomHeadersInResponseHeadersPolicyRes = async (parsedOutput, c
9105
8999
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9106
9000
  };
9107
9001
  const de_TooManyDistributionCNAMEsRes = async (parsedOutput, context) => {
9108
- const contents = map({});
9002
+ const contents = (0, smithy_client_1.map)({});
9109
9003
  const data = parsedOutput.body.Error;
9110
9004
  if (data["Message"] !== undefined) {
9111
9005
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9117,7 +9011,7 @@ const de_TooManyDistributionCNAMEsRes = async (parsedOutput, context) => {
9117
9011
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9118
9012
  };
9119
9013
  const de_TooManyDistributionsRes = async (parsedOutput, context) => {
9120
- const contents = map({});
9014
+ const contents = (0, smithy_client_1.map)({});
9121
9015
  const data = parsedOutput.body.Error;
9122
9016
  if (data["Message"] !== undefined) {
9123
9017
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9129,7 +9023,7 @@ const de_TooManyDistributionsRes = async (parsedOutput, context) => {
9129
9023
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9130
9024
  };
9131
9025
  const de_TooManyDistributionsAssociatedToCachePolicyRes = async (parsedOutput, context) => {
9132
- const contents = map({});
9026
+ const contents = (0, smithy_client_1.map)({});
9133
9027
  const data = parsedOutput.body.Error;
9134
9028
  if (data["Message"] !== undefined) {
9135
9029
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9141,7 +9035,7 @@ const de_TooManyDistributionsAssociatedToCachePolicyRes = async (parsedOutput, c
9141
9035
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9142
9036
  };
9143
9037
  const de_TooManyDistributionsAssociatedToFieldLevelEncryptionConfigRes = async (parsedOutput, context) => {
9144
- const contents = map({});
9038
+ const contents = (0, smithy_client_1.map)({});
9145
9039
  const data = parsedOutput.body.Error;
9146
9040
  if (data["Message"] !== undefined) {
9147
9041
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9153,7 +9047,7 @@ const de_TooManyDistributionsAssociatedToFieldLevelEncryptionConfigRes = async (
9153
9047
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9154
9048
  };
9155
9049
  const de_TooManyDistributionsAssociatedToKeyGroupRes = async (parsedOutput, context) => {
9156
- const contents = map({});
9050
+ const contents = (0, smithy_client_1.map)({});
9157
9051
  const data = parsedOutput.body.Error;
9158
9052
  if (data["Message"] !== undefined) {
9159
9053
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9165,7 +9059,7 @@ const de_TooManyDistributionsAssociatedToKeyGroupRes = async (parsedOutput, cont
9165
9059
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9166
9060
  };
9167
9061
  const de_TooManyDistributionsAssociatedToOriginAccessControlRes = async (parsedOutput, context) => {
9168
- const contents = map({});
9062
+ const contents = (0, smithy_client_1.map)({});
9169
9063
  const data = parsedOutput.body.Error;
9170
9064
  if (data["Message"] !== undefined) {
9171
9065
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9177,7 +9071,7 @@ const de_TooManyDistributionsAssociatedToOriginAccessControlRes = async (parsedO
9177
9071
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9178
9072
  };
9179
9073
  const de_TooManyDistributionsAssociatedToOriginRequestPolicyRes = async (parsedOutput, context) => {
9180
- const contents = map({});
9074
+ const contents = (0, smithy_client_1.map)({});
9181
9075
  const data = parsedOutput.body.Error;
9182
9076
  if (data["Message"] !== undefined) {
9183
9077
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9189,7 +9083,7 @@ const de_TooManyDistributionsAssociatedToOriginRequestPolicyRes = async (parsedO
9189
9083
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9190
9084
  };
9191
9085
  const de_TooManyDistributionsAssociatedToResponseHeadersPolicyRes = async (parsedOutput, context) => {
9192
- const contents = map({});
9086
+ const contents = (0, smithy_client_1.map)({});
9193
9087
  const data = parsedOutput.body.Error;
9194
9088
  if (data["Message"] !== undefined) {
9195
9089
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9201,7 +9095,7 @@ const de_TooManyDistributionsAssociatedToResponseHeadersPolicyRes = async (parse
9201
9095
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9202
9096
  };
9203
9097
  const de_TooManyDistributionsWithFunctionAssociationsRes = async (parsedOutput, context) => {
9204
- const contents = map({});
9098
+ const contents = (0, smithy_client_1.map)({});
9205
9099
  const data = parsedOutput.body.Error;
9206
9100
  if (data["Message"] !== undefined) {
9207
9101
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9213,7 +9107,7 @@ const de_TooManyDistributionsWithFunctionAssociationsRes = async (parsedOutput,
9213
9107
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9214
9108
  };
9215
9109
  const de_TooManyDistributionsWithLambdaAssociationsRes = async (parsedOutput, context) => {
9216
- const contents = map({});
9110
+ const contents = (0, smithy_client_1.map)({});
9217
9111
  const data = parsedOutput.body.Error;
9218
9112
  if (data["Message"] !== undefined) {
9219
9113
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9225,7 +9119,7 @@ const de_TooManyDistributionsWithLambdaAssociationsRes = async (parsedOutput, co
9225
9119
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9226
9120
  };
9227
9121
  const de_TooManyDistributionsWithSingleFunctionARNRes = async (parsedOutput, context) => {
9228
- const contents = map({});
9122
+ const contents = (0, smithy_client_1.map)({});
9229
9123
  const data = parsedOutput.body.Error;
9230
9124
  if (data["Message"] !== undefined) {
9231
9125
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9237,7 +9131,7 @@ const de_TooManyDistributionsWithSingleFunctionARNRes = async (parsedOutput, con
9237
9131
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9238
9132
  };
9239
9133
  const de_TooManyFieldLevelEncryptionConfigsRes = async (parsedOutput, context) => {
9240
- const contents = map({});
9134
+ const contents = (0, smithy_client_1.map)({});
9241
9135
  const data = parsedOutput.body.Error;
9242
9136
  if (data["Message"] !== undefined) {
9243
9137
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9249,7 +9143,7 @@ const de_TooManyFieldLevelEncryptionConfigsRes = async (parsedOutput, context) =
9249
9143
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9250
9144
  };
9251
9145
  const de_TooManyFieldLevelEncryptionContentTypeProfilesRes = async (parsedOutput, context) => {
9252
- const contents = map({});
9146
+ const contents = (0, smithy_client_1.map)({});
9253
9147
  const data = parsedOutput.body.Error;
9254
9148
  if (data["Message"] !== undefined) {
9255
9149
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9261,7 +9155,7 @@ const de_TooManyFieldLevelEncryptionContentTypeProfilesRes = async (parsedOutput
9261
9155
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9262
9156
  };
9263
9157
  const de_TooManyFieldLevelEncryptionEncryptionEntitiesRes = async (parsedOutput, context) => {
9264
- const contents = map({});
9158
+ const contents = (0, smithy_client_1.map)({});
9265
9159
  const data = parsedOutput.body.Error;
9266
9160
  if (data["Message"] !== undefined) {
9267
9161
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9273,7 +9167,7 @@ const de_TooManyFieldLevelEncryptionEncryptionEntitiesRes = async (parsedOutput,
9273
9167
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9274
9168
  };
9275
9169
  const de_TooManyFieldLevelEncryptionFieldPatternsRes = async (parsedOutput, context) => {
9276
- const contents = map({});
9170
+ const contents = (0, smithy_client_1.map)({});
9277
9171
  const data = parsedOutput.body.Error;
9278
9172
  if (data["Message"] !== undefined) {
9279
9173
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9285,7 +9179,7 @@ const de_TooManyFieldLevelEncryptionFieldPatternsRes = async (parsedOutput, cont
9285
9179
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9286
9180
  };
9287
9181
  const de_TooManyFieldLevelEncryptionProfilesRes = async (parsedOutput, context) => {
9288
- const contents = map({});
9182
+ const contents = (0, smithy_client_1.map)({});
9289
9183
  const data = parsedOutput.body.Error;
9290
9184
  if (data["Message"] !== undefined) {
9291
9185
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9297,7 +9191,7 @@ const de_TooManyFieldLevelEncryptionProfilesRes = async (parsedOutput, context)
9297
9191
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9298
9192
  };
9299
9193
  const de_TooManyFieldLevelEncryptionQueryArgProfilesRes = async (parsedOutput, context) => {
9300
- const contents = map({});
9194
+ const contents = (0, smithy_client_1.map)({});
9301
9195
  const data = parsedOutput.body.Error;
9302
9196
  if (data["Message"] !== undefined) {
9303
9197
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9309,7 +9203,7 @@ const de_TooManyFieldLevelEncryptionQueryArgProfilesRes = async (parsedOutput, c
9309
9203
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9310
9204
  };
9311
9205
  const de_TooManyFunctionAssociationsRes = async (parsedOutput, context) => {
9312
- const contents = map({});
9206
+ const contents = (0, smithy_client_1.map)({});
9313
9207
  const data = parsedOutput.body.Error;
9314
9208
  if (data["Message"] !== undefined) {
9315
9209
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9321,7 +9215,7 @@ const de_TooManyFunctionAssociationsRes = async (parsedOutput, context) => {
9321
9215
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9322
9216
  };
9323
9217
  const de_TooManyFunctionsRes = async (parsedOutput, context) => {
9324
- const contents = map({});
9218
+ const contents = (0, smithy_client_1.map)({});
9325
9219
  const data = parsedOutput.body.Error;
9326
9220
  if (data["Message"] !== undefined) {
9327
9221
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9333,7 +9227,7 @@ const de_TooManyFunctionsRes = async (parsedOutput, context) => {
9333
9227
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9334
9228
  };
9335
9229
  const de_TooManyHeadersInCachePolicyRes = async (parsedOutput, context) => {
9336
- const contents = map({});
9230
+ const contents = (0, smithy_client_1.map)({});
9337
9231
  const data = parsedOutput.body.Error;
9338
9232
  if (data["Message"] !== undefined) {
9339
9233
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9345,7 +9239,7 @@ const de_TooManyHeadersInCachePolicyRes = async (parsedOutput, context) => {
9345
9239
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9346
9240
  };
9347
9241
  const de_TooManyHeadersInForwardedValuesRes = async (parsedOutput, context) => {
9348
- const contents = map({});
9242
+ const contents = (0, smithy_client_1.map)({});
9349
9243
  const data = parsedOutput.body.Error;
9350
9244
  if (data["Message"] !== undefined) {
9351
9245
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9357,7 +9251,7 @@ const de_TooManyHeadersInForwardedValuesRes = async (parsedOutput, context) => {
9357
9251
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9358
9252
  };
9359
9253
  const de_TooManyHeadersInOriginRequestPolicyRes = async (parsedOutput, context) => {
9360
- const contents = map({});
9254
+ const contents = (0, smithy_client_1.map)({});
9361
9255
  const data = parsedOutput.body.Error;
9362
9256
  if (data["Message"] !== undefined) {
9363
9257
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9369,7 +9263,7 @@ const de_TooManyHeadersInOriginRequestPolicyRes = async (parsedOutput, context)
9369
9263
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9370
9264
  };
9371
9265
  const de_TooManyInvalidationsInProgressRes = async (parsedOutput, context) => {
9372
- const contents = map({});
9266
+ const contents = (0, smithy_client_1.map)({});
9373
9267
  const data = parsedOutput.body.Error;
9374
9268
  if (data["Message"] !== undefined) {
9375
9269
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9381,7 +9275,7 @@ const de_TooManyInvalidationsInProgressRes = async (parsedOutput, context) => {
9381
9275
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9382
9276
  };
9383
9277
  const de_TooManyKeyGroupsRes = async (parsedOutput, context) => {
9384
- const contents = map({});
9278
+ const contents = (0, smithy_client_1.map)({});
9385
9279
  const data = parsedOutput.body.Error;
9386
9280
  if (data["Message"] !== undefined) {
9387
9281
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9393,7 +9287,7 @@ const de_TooManyKeyGroupsRes = async (parsedOutput, context) => {
9393
9287
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9394
9288
  };
9395
9289
  const de_TooManyKeyGroupsAssociatedToDistributionRes = async (parsedOutput, context) => {
9396
- const contents = map({});
9290
+ const contents = (0, smithy_client_1.map)({});
9397
9291
  const data = parsedOutput.body.Error;
9398
9292
  if (data["Message"] !== undefined) {
9399
9293
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9405,7 +9299,7 @@ const de_TooManyKeyGroupsAssociatedToDistributionRes = async (parsedOutput, cont
9405
9299
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9406
9300
  };
9407
9301
  const de_TooManyLambdaFunctionAssociationsRes = async (parsedOutput, context) => {
9408
- const contents = map({});
9302
+ const contents = (0, smithy_client_1.map)({});
9409
9303
  const data = parsedOutput.body.Error;
9410
9304
  if (data["Message"] !== undefined) {
9411
9305
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9417,7 +9311,7 @@ const de_TooManyLambdaFunctionAssociationsRes = async (parsedOutput, context) =>
9417
9311
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9418
9312
  };
9419
9313
  const de_TooManyOriginAccessControlsRes = async (parsedOutput, context) => {
9420
- const contents = map({});
9314
+ const contents = (0, smithy_client_1.map)({});
9421
9315
  const data = parsedOutput.body.Error;
9422
9316
  if (data["Message"] !== undefined) {
9423
9317
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9429,7 +9323,7 @@ const de_TooManyOriginAccessControlsRes = async (parsedOutput, context) => {
9429
9323
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9430
9324
  };
9431
9325
  const de_TooManyOriginCustomHeadersRes = async (parsedOutput, context) => {
9432
- const contents = map({});
9326
+ const contents = (0, smithy_client_1.map)({});
9433
9327
  const data = parsedOutput.body.Error;
9434
9328
  if (data["Message"] !== undefined) {
9435
9329
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9441,7 +9335,7 @@ const de_TooManyOriginCustomHeadersRes = async (parsedOutput, context) => {
9441
9335
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9442
9336
  };
9443
9337
  const de_TooManyOriginGroupsPerDistributionRes = async (parsedOutput, context) => {
9444
- const contents = map({});
9338
+ const contents = (0, smithy_client_1.map)({});
9445
9339
  const data = parsedOutput.body.Error;
9446
9340
  if (data["Message"] !== undefined) {
9447
9341
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9453,7 +9347,7 @@ const de_TooManyOriginGroupsPerDistributionRes = async (parsedOutput, context) =
9453
9347
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9454
9348
  };
9455
9349
  const de_TooManyOriginRequestPoliciesRes = async (parsedOutput, context) => {
9456
- const contents = map({});
9350
+ const contents = (0, smithy_client_1.map)({});
9457
9351
  const data = parsedOutput.body.Error;
9458
9352
  if (data["Message"] !== undefined) {
9459
9353
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9465,7 +9359,7 @@ const de_TooManyOriginRequestPoliciesRes = async (parsedOutput, context) => {
9465
9359
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9466
9360
  };
9467
9361
  const de_TooManyOriginsRes = async (parsedOutput, context) => {
9468
- const contents = map({});
9362
+ const contents = (0, smithy_client_1.map)({});
9469
9363
  const data = parsedOutput.body.Error;
9470
9364
  if (data["Message"] !== undefined) {
9471
9365
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9477,7 +9371,7 @@ const de_TooManyOriginsRes = async (parsedOutput, context) => {
9477
9371
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9478
9372
  };
9479
9373
  const de_TooManyPublicKeysRes = async (parsedOutput, context) => {
9480
- const contents = map({});
9374
+ const contents = (0, smithy_client_1.map)({});
9481
9375
  const data = parsedOutput.body.Error;
9482
9376
  if (data["Message"] !== undefined) {
9483
9377
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9489,7 +9383,7 @@ const de_TooManyPublicKeysRes = async (parsedOutput, context) => {
9489
9383
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9490
9384
  };
9491
9385
  const de_TooManyPublicKeysInKeyGroupRes = async (parsedOutput, context) => {
9492
- const contents = map({});
9386
+ const contents = (0, smithy_client_1.map)({});
9493
9387
  const data = parsedOutput.body.Error;
9494
9388
  if (data["Message"] !== undefined) {
9495
9389
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9501,7 +9395,7 @@ const de_TooManyPublicKeysInKeyGroupRes = async (parsedOutput, context) => {
9501
9395
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9502
9396
  };
9503
9397
  const de_TooManyQueryStringParametersRes = async (parsedOutput, context) => {
9504
- const contents = map({});
9398
+ const contents = (0, smithy_client_1.map)({});
9505
9399
  const data = parsedOutput.body.Error;
9506
9400
  if (data["Message"] !== undefined) {
9507
9401
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9513,7 +9407,7 @@ const de_TooManyQueryStringParametersRes = async (parsedOutput, context) => {
9513
9407
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9514
9408
  };
9515
9409
  const de_TooManyQueryStringsInCachePolicyRes = async (parsedOutput, context) => {
9516
- const contents = map({});
9410
+ const contents = (0, smithy_client_1.map)({});
9517
9411
  const data = parsedOutput.body.Error;
9518
9412
  if (data["Message"] !== undefined) {
9519
9413
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9525,7 +9419,7 @@ const de_TooManyQueryStringsInCachePolicyRes = async (parsedOutput, context) =>
9525
9419
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9526
9420
  };
9527
9421
  const de_TooManyQueryStringsInOriginRequestPolicyRes = async (parsedOutput, context) => {
9528
- const contents = map({});
9422
+ const contents = (0, smithy_client_1.map)({});
9529
9423
  const data = parsedOutput.body.Error;
9530
9424
  if (data["Message"] !== undefined) {
9531
9425
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9537,7 +9431,7 @@ const de_TooManyQueryStringsInOriginRequestPolicyRes = async (parsedOutput, cont
9537
9431
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9538
9432
  };
9539
9433
  const de_TooManyRealtimeLogConfigsRes = async (parsedOutput, context) => {
9540
- const contents = map({});
9434
+ const contents = (0, smithy_client_1.map)({});
9541
9435
  const data = parsedOutput.body.Error;
9542
9436
  if (data["Message"] !== undefined) {
9543
9437
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9549,7 +9443,7 @@ const de_TooManyRealtimeLogConfigsRes = async (parsedOutput, context) => {
9549
9443
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9550
9444
  };
9551
9445
  const de_TooManyRemoveHeadersInResponseHeadersPolicyRes = async (parsedOutput, context) => {
9552
- const contents = map({});
9446
+ const contents = (0, smithy_client_1.map)({});
9553
9447
  const data = parsedOutput.body.Error;
9554
9448
  if (data["Message"] !== undefined) {
9555
9449
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9561,7 +9455,7 @@ const de_TooManyRemoveHeadersInResponseHeadersPolicyRes = async (parsedOutput, c
9561
9455
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9562
9456
  };
9563
9457
  const de_TooManyResponseHeadersPoliciesRes = async (parsedOutput, context) => {
9564
- const contents = map({});
9458
+ const contents = (0, smithy_client_1.map)({});
9565
9459
  const data = parsedOutput.body.Error;
9566
9460
  if (data["Message"] !== undefined) {
9567
9461
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9573,7 +9467,7 @@ const de_TooManyResponseHeadersPoliciesRes = async (parsedOutput, context) => {
9573
9467
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9574
9468
  };
9575
9469
  const de_TooManyStreamingDistributionCNAMEsRes = async (parsedOutput, context) => {
9576
- const contents = map({});
9470
+ const contents = (0, smithy_client_1.map)({});
9577
9471
  const data = parsedOutput.body.Error;
9578
9472
  if (data["Message"] !== undefined) {
9579
9473
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9585,7 +9479,7 @@ const de_TooManyStreamingDistributionCNAMEsRes = async (parsedOutput, context) =
9585
9479
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9586
9480
  };
9587
9481
  const de_TooManyStreamingDistributionsRes = async (parsedOutput, context) => {
9588
- const contents = map({});
9482
+ const contents = (0, smithy_client_1.map)({});
9589
9483
  const data = parsedOutput.body.Error;
9590
9484
  if (data["Message"] !== undefined) {
9591
9485
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9597,7 +9491,7 @@ const de_TooManyStreamingDistributionsRes = async (parsedOutput, context) => {
9597
9491
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9598
9492
  };
9599
9493
  const de_TooManyTrustedSignersRes = async (parsedOutput, context) => {
9600
- const contents = map({});
9494
+ const contents = (0, smithy_client_1.map)({});
9601
9495
  const data = parsedOutput.body.Error;
9602
9496
  if (data["Message"] !== undefined) {
9603
9497
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9609,7 +9503,7 @@ const de_TooManyTrustedSignersRes = async (parsedOutput, context) => {
9609
9503
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9610
9504
  };
9611
9505
  const de_TrustedKeyGroupDoesNotExistRes = async (parsedOutput, context) => {
9612
- const contents = map({});
9506
+ const contents = (0, smithy_client_1.map)({});
9613
9507
  const data = parsedOutput.body.Error;
9614
9508
  if (data["Message"] !== undefined) {
9615
9509
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9621,7 +9515,7 @@ const de_TrustedKeyGroupDoesNotExistRes = async (parsedOutput, context) => {
9621
9515
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9622
9516
  };
9623
9517
  const de_TrustedSignerDoesNotExistRes = async (parsedOutput, context) => {
9624
- const contents = map({});
9518
+ const contents = (0, smithy_client_1.map)({});
9625
9519
  const data = parsedOutput.body.Error;
9626
9520
  if (data["Message"] !== undefined) {
9627
9521
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -9633,7 +9527,7 @@ const de_TrustedSignerDoesNotExistRes = async (parsedOutput, context) => {
9633
9527
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9634
9528
  };
9635
9529
  const de_UnsupportedOperationRes = async (parsedOutput, context) => {
9636
- const contents = map({});
9530
+ const contents = (0, smithy_client_1.map)({});
9637
9531
  const data = parsedOutput.body.Error;
9638
9532
  if (data["Message"] !== undefined) {
9639
9533
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);