@aws-sdk/client-route-53 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.
@@ -836,7 +836,7 @@ const se_GetGeoLocationCommand = async (input, context) => {
836
836
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
837
837
  const headers = {};
838
838
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/geolocation";
839
- const query = map({
839
+ const query = (0, smithy_client_1.map)({
840
840
  continentcode: [, input.ContinentCode],
841
841
  countrycode: [, input.CountryCode],
842
842
  subdivisioncode: [, input.SubdivisionCode],
@@ -1094,7 +1094,7 @@ const se_ListCidrBlocksCommand = async (input, context) => {
1094
1094
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1095
1095
  "/2013-04-01/cidrcollection/{CollectionId}/cidrblocks";
1096
1096
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionId", () => input.CollectionId, "{CollectionId}", false);
1097
- const query = map({
1097
+ const query = (0, smithy_client_1.map)({
1098
1098
  location: [, input.LocationName],
1099
1099
  nexttoken: [, input.NextToken],
1100
1100
  maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1116,7 +1116,7 @@ const se_ListCidrCollectionsCommand = async (input, context) => {
1116
1116
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1117
1117
  const headers = {};
1118
1118
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection";
1119
- const query = map({
1119
+ const query = (0, smithy_client_1.map)({
1120
1120
  nexttoken: [, input.NextToken],
1121
1121
  maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1122
1122
  });
@@ -1138,7 +1138,7 @@ const se_ListCidrLocationsCommand = async (input, context) => {
1138
1138
  const headers = {};
1139
1139
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection/{CollectionId}";
1140
1140
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionId", () => input.CollectionId, "{CollectionId}", false);
1141
- const query = map({
1141
+ const query = (0, smithy_client_1.map)({
1142
1142
  nexttoken: [, input.NextToken],
1143
1143
  maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1144
1144
  });
@@ -1159,7 +1159,7 @@ const se_ListGeoLocationsCommand = async (input, context) => {
1159
1159
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1160
1160
  const headers = {};
1161
1161
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/geolocations";
1162
- const query = map({
1162
+ const query = (0, smithy_client_1.map)({
1163
1163
  startcontinentcode: [, input.StartContinentCode],
1164
1164
  startcountrycode: [, input.StartCountryCode],
1165
1165
  startsubdivisioncode: [, input.StartSubdivisionCode],
@@ -1182,7 +1182,7 @@ const se_ListHealthChecksCommand = async (input, context) => {
1182
1182
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1183
1183
  const headers = {};
1184
1184
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/healthcheck";
1185
- const query = map({
1185
+ const query = (0, smithy_client_1.map)({
1186
1186
  marker: [, input.Marker],
1187
1187
  maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1188
1188
  });
@@ -1203,7 +1203,7 @@ const se_ListHostedZonesCommand = async (input, context) => {
1203
1203
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1204
1204
  const headers = {};
1205
1205
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzone";
1206
- const query = map({
1206
+ const query = (0, smithy_client_1.map)({
1207
1207
  marker: [, input.Marker],
1208
1208
  maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1209
1209
  delegationsetid: [, input.DelegationSetId],
@@ -1225,7 +1225,7 @@ const se_ListHostedZonesByNameCommand = async (input, context) => {
1225
1225
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1226
1226
  const headers = {};
1227
1227
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzonesbyname";
1228
- const query = map({
1228
+ const query = (0, smithy_client_1.map)({
1229
1229
  dnsname: [, input.DNSName],
1230
1230
  hostedzoneid: [, input.HostedZoneId],
1231
1231
  maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
@@ -1247,7 +1247,7 @@ const se_ListHostedZonesByVPCCommand = async (input, context) => {
1247
1247
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1248
1248
  const headers = {};
1249
1249
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzonesbyvpc";
1250
- const query = map({
1250
+ const query = (0, smithy_client_1.map)({
1251
1251
  vpcid: [, (0, smithy_client_1.expectNonNull)(input.VPCId, `VPCId`)],
1252
1252
  vpcregion: [, (0, smithy_client_1.expectNonNull)(input.VPCRegion, `VPCRegion`)],
1253
1253
  maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
@@ -1270,7 +1270,7 @@ const se_ListQueryLoggingConfigsCommand = async (input, context) => {
1270
1270
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1271
1271
  const headers = {};
1272
1272
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/queryloggingconfig";
1273
- const query = map({
1273
+ const query = (0, smithy_client_1.map)({
1274
1274
  hostedzoneid: [, input.HostedZoneId],
1275
1275
  nexttoken: [, input.NextToken],
1276
1276
  maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1294,7 +1294,7 @@ const se_ListResourceRecordSetsCommand = async (input, context) => {
1294
1294
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1295
1295
  "/2013-04-01/hostedzone/{HostedZoneId}/rrset";
1296
1296
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
1297
- const query = map({
1297
+ const query = (0, smithy_client_1.map)({
1298
1298
  name: [, input.StartRecordName],
1299
1299
  type: [, input.StartRecordType],
1300
1300
  identifier: [, input.StartRecordIdentifier],
@@ -1317,7 +1317,7 @@ const se_ListReusableDelegationSetsCommand = async (input, context) => {
1317
1317
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1318
1318
  const headers = {};
1319
1319
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/delegationset";
1320
- const query = map({
1320
+ const query = (0, smithy_client_1.map)({
1321
1321
  marker: [, input.Marker],
1322
1322
  maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1323
1323
  });
@@ -1388,7 +1388,7 @@ const se_ListTrafficPoliciesCommand = async (input, context) => {
1388
1388
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1389
1389
  const headers = {};
1390
1390
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicies";
1391
- const query = map({
1391
+ const query = (0, smithy_client_1.map)({
1392
1392
  trafficpolicyid: [, input.TrafficPolicyIdMarker],
1393
1393
  maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1394
1394
  });
@@ -1409,7 +1409,7 @@ const se_ListTrafficPolicyInstancesCommand = async (input, context) => {
1409
1409
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1410
1410
  const headers = {};
1411
1411
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicyinstances";
1412
- const query = map({
1412
+ const query = (0, smithy_client_1.map)({
1413
1413
  hostedzoneid: [, input.HostedZoneIdMarker],
1414
1414
  trafficpolicyinstancename: [, input.TrafficPolicyInstanceNameMarker],
1415
1415
  trafficpolicyinstancetype: [, input.TrafficPolicyInstanceTypeMarker],
@@ -1433,7 +1433,7 @@ const se_ListTrafficPolicyInstancesByHostedZoneCommand = async (input, context)
1433
1433
  const headers = {};
1434
1434
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1435
1435
  "/2013-04-01/trafficpolicyinstances/hostedzone";
1436
- const query = map({
1436
+ const query = (0, smithy_client_1.map)({
1437
1437
  id: [, (0, smithy_client_1.expectNonNull)(input.HostedZoneId, `HostedZoneId`)],
1438
1438
  trafficpolicyinstancename: [, input.TrafficPolicyInstanceNameMarker],
1439
1439
  trafficpolicyinstancetype: [, input.TrafficPolicyInstanceTypeMarker],
@@ -1457,7 +1457,7 @@ const se_ListTrafficPolicyInstancesByPolicyCommand = async (input, context) => {
1457
1457
  const headers = {};
1458
1458
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1459
1459
  "/2013-04-01/trafficpolicyinstances/trafficpolicy";
1460
- const query = map({
1460
+ const query = (0, smithy_client_1.map)({
1461
1461
  id: [, (0, smithy_client_1.expectNonNull)(input.TrafficPolicyId, `TrafficPolicyId`)],
1462
1462
  version: [
1463
1463
  (0, smithy_client_1.expectNonNull)(input.TrafficPolicyVersion, `TrafficPolicyVersion`) != null,
@@ -1486,7 +1486,7 @@ const se_ListTrafficPolicyVersionsCommand = async (input, context) => {
1486
1486
  const headers = {};
1487
1487
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicies/{Id}/versions";
1488
1488
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1489
- const query = map({
1489
+ const query = (0, smithy_client_1.map)({
1490
1490
  trafficpolicyversion: [, input.TrafficPolicyVersionMarker],
1491
1491
  maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1492
1492
  });
@@ -1509,7 +1509,7 @@ const se_ListVPCAssociationAuthorizationsCommand = async (input, context) => {
1509
1509
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1510
1510
  "/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation";
1511
1511
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
1512
- const query = map({
1512
+ const query = (0, smithy_client_1.map)({
1513
1513
  nexttoken: [, input.NextToken],
1514
1514
  maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1515
1515
  });
@@ -1530,7 +1530,7 @@ const se_TestDNSAnswerCommand = async (input, context) => {
1530
1530
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1531
1531
  const headers = {};
1532
1532
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/testdnsanswer";
1533
- const query = map({
1533
+ const query = (0, smithy_client_1.map)({
1534
1534
  hostedzoneid: [, (0, smithy_client_1.expectNonNull)(input.HostedZoneId, `HostedZoneId`)],
1535
1535
  recordname: [, (0, smithy_client_1.expectNonNull)(input.RecordName, `RecordName`)],
1536
1536
  recordtype: [, (0, smithy_client_1.expectNonNull)(input.RecordType, `RecordType`)],
@@ -1750,7 +1750,7 @@ const de_ActivateKeySigningKeyCommand = async (output, context) => {
1750
1750
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1751
1751
  return de_ActivateKeySigningKeyCommandError(output, context);
1752
1752
  }
1753
- const contents = map({
1753
+ const contents = (0, smithy_client_1.map)({
1754
1754
  $metadata: deserializeMetadata(output),
1755
1755
  });
1756
1756
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -1787,10 +1787,9 @@ const de_ActivateKeySigningKeyCommandError = async (output, context) => {
1787
1787
  throw await de_NoSuchKeySigningKeyRes(parsedOutput, context);
1788
1788
  default:
1789
1789
  const parsedBody = parsedOutput.body;
1790
- (0, smithy_client_1.throwDefaultError)({
1790
+ return throwDefaultError({
1791
1791
  output,
1792
1792
  parsedBody: parsedBody.Error,
1793
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
1794
1793
  errorCode,
1795
1794
  });
1796
1795
  }
@@ -1799,7 +1798,7 @@ const de_AssociateVPCWithHostedZoneCommand = async (output, context) => {
1799
1798
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1800
1799
  return de_AssociateVPCWithHostedZoneCommandError(output, context);
1801
1800
  }
1802
- const contents = map({
1801
+ const contents = (0, smithy_client_1.map)({
1803
1802
  $metadata: deserializeMetadata(output),
1804
1803
  });
1805
1804
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -1842,10 +1841,9 @@ const de_AssociateVPCWithHostedZoneCommandError = async (output, context) => {
1842
1841
  throw await de_PublicZoneVPCAssociationRes(parsedOutput, context);
1843
1842
  default:
1844
1843
  const parsedBody = parsedOutput.body;
1845
- (0, smithy_client_1.throwDefaultError)({
1844
+ return throwDefaultError({
1846
1845
  output,
1847
1846
  parsedBody: parsedBody.Error,
1848
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
1849
1847
  errorCode,
1850
1848
  });
1851
1849
  }
@@ -1854,7 +1852,7 @@ const de_ChangeCidrCollectionCommand = async (output, context) => {
1854
1852
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1855
1853
  return de_ChangeCidrCollectionCommandError(output, context);
1856
1854
  }
1857
- const contents = map({
1855
+ const contents = (0, smithy_client_1.map)({
1858
1856
  $metadata: deserializeMetadata(output),
1859
1857
  });
1860
1858
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -1891,10 +1889,9 @@ const de_ChangeCidrCollectionCommandError = async (output, context) => {
1891
1889
  throw await de_NoSuchCidrCollectionExceptionRes(parsedOutput, context);
1892
1890
  default:
1893
1891
  const parsedBody = parsedOutput.body;
1894
- (0, smithy_client_1.throwDefaultError)({
1892
+ return throwDefaultError({
1895
1893
  output,
1896
1894
  parsedBody: parsedBody.Error,
1897
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
1898
1895
  errorCode,
1899
1896
  });
1900
1897
  }
@@ -1903,7 +1900,7 @@ const de_ChangeResourceRecordSetsCommand = async (output, context) => {
1903
1900
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1904
1901
  return de_ChangeResourceRecordSetsCommandError(output, context);
1905
1902
  }
1906
- const contents = map({
1903
+ const contents = (0, smithy_client_1.map)({
1907
1904
  $metadata: deserializeMetadata(output),
1908
1905
  });
1909
1906
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -1937,10 +1934,9 @@ const de_ChangeResourceRecordSetsCommandError = async (output, context) => {
1937
1934
  throw await de_PriorRequestNotCompleteRes(parsedOutput, context);
1938
1935
  default:
1939
1936
  const parsedBody = parsedOutput.body;
1940
- (0, smithy_client_1.throwDefaultError)({
1937
+ return throwDefaultError({
1941
1938
  output,
1942
1939
  parsedBody: parsedBody.Error,
1943
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
1944
1940
  errorCode,
1945
1941
  });
1946
1942
  }
@@ -1949,7 +1945,7 @@ const de_ChangeTagsForResourceCommand = async (output, context) => {
1949
1945
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1950
1946
  return de_ChangeTagsForResourceCommandError(output, context);
1951
1947
  }
1952
- const contents = map({
1948
+ const contents = (0, smithy_client_1.map)({
1953
1949
  $metadata: deserializeMetadata(output),
1954
1950
  });
1955
1951
  await collectBody(output.body, context);
@@ -1980,10 +1976,9 @@ const de_ChangeTagsForResourceCommandError = async (output, context) => {
1980
1976
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1981
1977
  default:
1982
1978
  const parsedBody = parsedOutput.body;
1983
- (0, smithy_client_1.throwDefaultError)({
1979
+ return throwDefaultError({
1984
1980
  output,
1985
1981
  parsedBody: parsedBody.Error,
1986
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
1987
1982
  errorCode,
1988
1983
  });
1989
1984
  }
@@ -1992,7 +1987,7 @@ const de_CreateCidrCollectionCommand = async (output, context) => {
1992
1987
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1993
1988
  return de_CreateCidrCollectionCommandError(output, context);
1994
1989
  }
1995
- const contents = map({
1990
+ const contents = (0, smithy_client_1.map)({
1996
1991
  $metadata: deserializeMetadata(output),
1997
1992
  Location: [, output.headers["location"]],
1998
1993
  });
@@ -2024,10 +2019,9 @@ const de_CreateCidrCollectionCommandError = async (output, context) => {
2024
2019
  throw await de_LimitsExceededRes(parsedOutput, context);
2025
2020
  default:
2026
2021
  const parsedBody = parsedOutput.body;
2027
- (0, smithy_client_1.throwDefaultError)({
2022
+ return throwDefaultError({
2028
2023
  output,
2029
2024
  parsedBody: parsedBody.Error,
2030
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2031
2025
  errorCode,
2032
2026
  });
2033
2027
  }
@@ -2036,7 +2030,7 @@ const de_CreateHealthCheckCommand = async (output, context) => {
2036
2030
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2037
2031
  return de_CreateHealthCheckCommandError(output, context);
2038
2032
  }
2039
- const contents = map({
2033
+ const contents = (0, smithy_client_1.map)({
2040
2034
  $metadata: deserializeMetadata(output),
2041
2035
  Location: [, output.headers["location"]],
2042
2036
  });
@@ -2065,10 +2059,9 @@ const de_CreateHealthCheckCommandError = async (output, context) => {
2065
2059
  throw await de_TooManyHealthChecksRes(parsedOutput, context);
2066
2060
  default:
2067
2061
  const parsedBody = parsedOutput.body;
2068
- (0, smithy_client_1.throwDefaultError)({
2062
+ return throwDefaultError({
2069
2063
  output,
2070
2064
  parsedBody: parsedBody.Error,
2071
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2072
2065
  errorCode,
2073
2066
  });
2074
2067
  }
@@ -2077,7 +2070,7 @@ const de_CreateHostedZoneCommand = async (output, context) => {
2077
2070
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2078
2071
  return de_CreateHostedZoneCommandError(output, context);
2079
2072
  }
2080
- const contents = map({
2073
+ const contents = (0, smithy_client_1.map)({
2081
2074
  $metadata: deserializeMetadata(output),
2082
2075
  Location: [, output.headers["location"]],
2083
2076
  });
@@ -2133,10 +2126,9 @@ const de_CreateHostedZoneCommandError = async (output, context) => {
2133
2126
  throw await de_TooManyHostedZonesRes(parsedOutput, context);
2134
2127
  default:
2135
2128
  const parsedBody = parsedOutput.body;
2136
- (0, smithy_client_1.throwDefaultError)({
2129
+ return throwDefaultError({
2137
2130
  output,
2138
2131
  parsedBody: parsedBody.Error,
2139
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2140
2132
  errorCode,
2141
2133
  });
2142
2134
  }
@@ -2145,7 +2137,7 @@ const de_CreateKeySigningKeyCommand = async (output, context) => {
2145
2137
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2146
2138
  return de_CreateKeySigningKeyCommandError(output, context);
2147
2139
  }
2148
- const contents = map({
2140
+ const contents = (0, smithy_client_1.map)({
2149
2141
  $metadata: deserializeMetadata(output),
2150
2142
  Location: [, output.headers["location"]],
2151
2143
  });
@@ -2198,10 +2190,9 @@ const de_CreateKeySigningKeyCommandError = async (output, context) => {
2198
2190
  throw await de_TooManyKeySigningKeysRes(parsedOutput, context);
2199
2191
  default:
2200
2192
  const parsedBody = parsedOutput.body;
2201
- (0, smithy_client_1.throwDefaultError)({
2193
+ return throwDefaultError({
2202
2194
  output,
2203
2195
  parsedBody: parsedBody.Error,
2204
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2205
2196
  errorCode,
2206
2197
  });
2207
2198
  }
@@ -2210,7 +2201,7 @@ const de_CreateQueryLoggingConfigCommand = async (output, context) => {
2210
2201
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2211
2202
  return de_CreateQueryLoggingConfigCommandError(output, context);
2212
2203
  }
2213
- const contents = map({
2204
+ const contents = (0, smithy_client_1.map)({
2214
2205
  $metadata: deserializeMetadata(output),
2215
2206
  Location: [, output.headers["location"]],
2216
2207
  });
@@ -2248,10 +2239,9 @@ const de_CreateQueryLoggingConfigCommandError = async (output, context) => {
2248
2239
  throw await de_QueryLoggingConfigAlreadyExistsRes(parsedOutput, context);
2249
2240
  default:
2250
2241
  const parsedBody = parsedOutput.body;
2251
- (0, smithy_client_1.throwDefaultError)({
2242
+ return throwDefaultError({
2252
2243
  output,
2253
2244
  parsedBody: parsedBody.Error,
2254
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2255
2245
  errorCode,
2256
2246
  });
2257
2247
  }
@@ -2260,7 +2250,7 @@ const de_CreateReusableDelegationSetCommand = async (output, context) => {
2260
2250
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2261
2251
  return de_CreateReusableDelegationSetCommandError(output, context);
2262
2252
  }
2263
- const contents = map({
2253
+ const contents = (0, smithy_client_1.map)({
2264
2254
  $metadata: deserializeMetadata(output),
2265
2255
  Location: [, output.headers["location"]],
2266
2256
  });
@@ -2301,10 +2291,9 @@ const de_CreateReusableDelegationSetCommandError = async (output, context) => {
2301
2291
  throw await de_LimitsExceededRes(parsedOutput, context);
2302
2292
  default:
2303
2293
  const parsedBody = parsedOutput.body;
2304
- (0, smithy_client_1.throwDefaultError)({
2294
+ return throwDefaultError({
2305
2295
  output,
2306
2296
  parsedBody: parsedBody.Error,
2307
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2308
2297
  errorCode,
2309
2298
  });
2310
2299
  }
@@ -2313,7 +2302,7 @@ const de_CreateTrafficPolicyCommand = async (output, context) => {
2313
2302
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2314
2303
  return de_CreateTrafficPolicyCommandError(output, context);
2315
2304
  }
2316
- const contents = map({
2305
+ const contents = (0, smithy_client_1.map)({
2317
2306
  $metadata: deserializeMetadata(output),
2318
2307
  Location: [, output.headers["location"]],
2319
2308
  });
@@ -2345,10 +2334,9 @@ const de_CreateTrafficPolicyCommandError = async (output, context) => {
2345
2334
  throw await de_TrafficPolicyAlreadyExistsRes(parsedOutput, context);
2346
2335
  default:
2347
2336
  const parsedBody = parsedOutput.body;
2348
- (0, smithy_client_1.throwDefaultError)({
2337
+ return throwDefaultError({
2349
2338
  output,
2350
2339
  parsedBody: parsedBody.Error,
2351
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2352
2340
  errorCode,
2353
2341
  });
2354
2342
  }
@@ -2357,7 +2345,7 @@ const de_CreateTrafficPolicyInstanceCommand = async (output, context) => {
2357
2345
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2358
2346
  return de_CreateTrafficPolicyInstanceCommandError(output, context);
2359
2347
  }
2360
- const contents = map({
2348
+ const contents = (0, smithy_client_1.map)({
2361
2349
  $metadata: deserializeMetadata(output),
2362
2350
  Location: [, output.headers["location"]],
2363
2351
  });
@@ -2392,10 +2380,9 @@ const de_CreateTrafficPolicyInstanceCommandError = async (output, context) => {
2392
2380
  throw await de_TrafficPolicyInstanceAlreadyExistsRes(parsedOutput, context);
2393
2381
  default:
2394
2382
  const parsedBody = parsedOutput.body;
2395
- (0, smithy_client_1.throwDefaultError)({
2383
+ return throwDefaultError({
2396
2384
  output,
2397
2385
  parsedBody: parsedBody.Error,
2398
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2399
2386
  errorCode,
2400
2387
  });
2401
2388
  }
@@ -2404,7 +2391,7 @@ const de_CreateTrafficPolicyVersionCommand = async (output, context) => {
2404
2391
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2405
2392
  return de_CreateTrafficPolicyVersionCommandError(output, context);
2406
2393
  }
2407
- const contents = map({
2394
+ const contents = (0, smithy_client_1.map)({
2408
2395
  $metadata: deserializeMetadata(output),
2409
2396
  Location: [, output.headers["location"]],
2410
2397
  });
@@ -2439,10 +2426,9 @@ const de_CreateTrafficPolicyVersionCommandError = async (output, context) => {
2439
2426
  throw await de_TooManyTrafficPolicyVersionsForCurrentPolicyRes(parsedOutput, context);
2440
2427
  default:
2441
2428
  const parsedBody = parsedOutput.body;
2442
- (0, smithy_client_1.throwDefaultError)({
2429
+ return throwDefaultError({
2443
2430
  output,
2444
2431
  parsedBody: parsedBody.Error,
2445
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2446
2432
  errorCode,
2447
2433
  });
2448
2434
  }
@@ -2451,7 +2437,7 @@ const de_CreateVPCAssociationAuthorizationCommand = async (output, context) => {
2451
2437
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2452
2438
  return de_CreateVPCAssociationAuthorizationCommandError(output, context);
2453
2439
  }
2454
- const contents = map({
2440
+ const contents = (0, smithy_client_1.map)({
2455
2441
  $metadata: deserializeMetadata(output),
2456
2442
  });
2457
2443
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2488,10 +2474,9 @@ const de_CreateVPCAssociationAuthorizationCommandError = async (output, context)
2488
2474
  throw await de_TooManyVPCAssociationAuthorizationsRes(parsedOutput, context);
2489
2475
  default:
2490
2476
  const parsedBody = parsedOutput.body;
2491
- (0, smithy_client_1.throwDefaultError)({
2477
+ return throwDefaultError({
2492
2478
  output,
2493
2479
  parsedBody: parsedBody.Error,
2494
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2495
2480
  errorCode,
2496
2481
  });
2497
2482
  }
@@ -2500,7 +2485,7 @@ const de_DeactivateKeySigningKeyCommand = async (output, context) => {
2500
2485
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2501
2486
  return de_DeactivateKeySigningKeyCommandError(output, context);
2502
2487
  }
2503
- const contents = map({
2488
+ const contents = (0, smithy_client_1.map)({
2504
2489
  $metadata: deserializeMetadata(output),
2505
2490
  });
2506
2491
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2540,10 +2525,9 @@ const de_DeactivateKeySigningKeyCommandError = async (output, context) => {
2540
2525
  throw await de_NoSuchKeySigningKeyRes(parsedOutput, context);
2541
2526
  default:
2542
2527
  const parsedBody = parsedOutput.body;
2543
- (0, smithy_client_1.throwDefaultError)({
2528
+ return throwDefaultError({
2544
2529
  output,
2545
2530
  parsedBody: parsedBody.Error,
2546
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2547
2531
  errorCode,
2548
2532
  });
2549
2533
  }
@@ -2552,7 +2536,7 @@ const de_DeleteCidrCollectionCommand = async (output, context) => {
2552
2536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2553
2537
  return de_DeleteCidrCollectionCommandError(output, context);
2554
2538
  }
2555
- const contents = map({
2539
+ const contents = (0, smithy_client_1.map)({
2556
2540
  $metadata: deserializeMetadata(output),
2557
2541
  });
2558
2542
  await collectBody(output.body, context);
@@ -2580,10 +2564,9 @@ const de_DeleteCidrCollectionCommandError = async (output, context) => {
2580
2564
  throw await de_NoSuchCidrCollectionExceptionRes(parsedOutput, context);
2581
2565
  default:
2582
2566
  const parsedBody = parsedOutput.body;
2583
- (0, smithy_client_1.throwDefaultError)({
2567
+ return throwDefaultError({
2584
2568
  output,
2585
2569
  parsedBody: parsedBody.Error,
2586
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2587
2570
  errorCode,
2588
2571
  });
2589
2572
  }
@@ -2592,7 +2575,7 @@ const de_DeleteHealthCheckCommand = async (output, context) => {
2592
2575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2593
2576
  return de_DeleteHealthCheckCommandError(output, context);
2594
2577
  }
2595
- const contents = map({
2578
+ const contents = (0, smithy_client_1.map)({
2596
2579
  $metadata: deserializeMetadata(output),
2597
2580
  });
2598
2581
  await collectBody(output.body, context);
@@ -2617,10 +2600,9 @@ const de_DeleteHealthCheckCommandError = async (output, context) => {
2617
2600
  throw await de_NoSuchHealthCheckRes(parsedOutput, context);
2618
2601
  default:
2619
2602
  const parsedBody = parsedOutput.body;
2620
- (0, smithy_client_1.throwDefaultError)({
2603
+ return throwDefaultError({
2621
2604
  output,
2622
2605
  parsedBody: parsedBody.Error,
2623
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2624
2606
  errorCode,
2625
2607
  });
2626
2608
  }
@@ -2629,7 +2611,7 @@ const de_DeleteHostedZoneCommand = async (output, context) => {
2629
2611
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2630
2612
  return de_DeleteHostedZoneCommandError(output, context);
2631
2613
  }
2632
- const contents = map({
2614
+ const contents = (0, smithy_client_1.map)({
2633
2615
  $metadata: deserializeMetadata(output),
2634
2616
  });
2635
2617
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2663,10 +2645,9 @@ const de_DeleteHostedZoneCommandError = async (output, context) => {
2663
2645
  throw await de_PriorRequestNotCompleteRes(parsedOutput, context);
2664
2646
  default:
2665
2647
  const parsedBody = parsedOutput.body;
2666
- (0, smithy_client_1.throwDefaultError)({
2648
+ return throwDefaultError({
2667
2649
  output,
2668
2650
  parsedBody: parsedBody.Error,
2669
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2670
2651
  errorCode,
2671
2652
  });
2672
2653
  }
@@ -2675,7 +2656,7 @@ const de_DeleteKeySigningKeyCommand = async (output, context) => {
2675
2656
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2676
2657
  return de_DeleteKeySigningKeyCommandError(output, context);
2677
2658
  }
2678
- const contents = map({
2659
+ const contents = (0, smithy_client_1.map)({
2679
2660
  $metadata: deserializeMetadata(output),
2680
2661
  });
2681
2662
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2712,10 +2693,9 @@ const de_DeleteKeySigningKeyCommandError = async (output, context) => {
2712
2693
  throw await de_NoSuchKeySigningKeyRes(parsedOutput, context);
2713
2694
  default:
2714
2695
  const parsedBody = parsedOutput.body;
2715
- (0, smithy_client_1.throwDefaultError)({
2696
+ return throwDefaultError({
2716
2697
  output,
2717
2698
  parsedBody: parsedBody.Error,
2718
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2719
2699
  errorCode,
2720
2700
  });
2721
2701
  }
@@ -2724,7 +2704,7 @@ const de_DeleteQueryLoggingConfigCommand = async (output, context) => {
2724
2704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2725
2705
  return de_DeleteQueryLoggingConfigCommandError(output, context);
2726
2706
  }
2727
- const contents = map({
2707
+ const contents = (0, smithy_client_1.map)({
2728
2708
  $metadata: deserializeMetadata(output),
2729
2709
  });
2730
2710
  await collectBody(output.body, context);
@@ -2749,10 +2729,9 @@ const de_DeleteQueryLoggingConfigCommandError = async (output, context) => {
2749
2729
  throw await de_NoSuchQueryLoggingConfigRes(parsedOutput, context);
2750
2730
  default:
2751
2731
  const parsedBody = parsedOutput.body;
2752
- (0, smithy_client_1.throwDefaultError)({
2732
+ return throwDefaultError({
2753
2733
  output,
2754
2734
  parsedBody: parsedBody.Error,
2755
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2756
2735
  errorCode,
2757
2736
  });
2758
2737
  }
@@ -2761,7 +2740,7 @@ const de_DeleteReusableDelegationSetCommand = async (output, context) => {
2761
2740
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2762
2741
  return de_DeleteReusableDelegationSetCommandError(output, context);
2763
2742
  }
2764
- const contents = map({
2743
+ const contents = (0, smithy_client_1.map)({
2765
2744
  $metadata: deserializeMetadata(output),
2766
2745
  });
2767
2746
  await collectBody(output.body, context);
@@ -2789,10 +2768,9 @@ const de_DeleteReusableDelegationSetCommandError = async (output, context) => {
2789
2768
  throw await de_NoSuchDelegationSetRes(parsedOutput, context);
2790
2769
  default:
2791
2770
  const parsedBody = parsedOutput.body;
2792
- (0, smithy_client_1.throwDefaultError)({
2771
+ return throwDefaultError({
2793
2772
  output,
2794
2773
  parsedBody: parsedBody.Error,
2795
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2796
2774
  errorCode,
2797
2775
  });
2798
2776
  }
@@ -2801,7 +2779,7 @@ const de_DeleteTrafficPolicyCommand = async (output, context) => {
2801
2779
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2802
2780
  return de_DeleteTrafficPolicyCommandError(output, context);
2803
2781
  }
2804
- const contents = map({
2782
+ const contents = (0, smithy_client_1.map)({
2805
2783
  $metadata: deserializeMetadata(output),
2806
2784
  });
2807
2785
  await collectBody(output.body, context);
@@ -2829,10 +2807,9 @@ const de_DeleteTrafficPolicyCommandError = async (output, context) => {
2829
2807
  throw await de_TrafficPolicyInUseRes(parsedOutput, context);
2830
2808
  default:
2831
2809
  const parsedBody = parsedOutput.body;
2832
- (0, smithy_client_1.throwDefaultError)({
2810
+ return throwDefaultError({
2833
2811
  output,
2834
2812
  parsedBody: parsedBody.Error,
2835
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2836
2813
  errorCode,
2837
2814
  });
2838
2815
  }
@@ -2841,7 +2818,7 @@ const de_DeleteTrafficPolicyInstanceCommand = async (output, context) => {
2841
2818
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2842
2819
  return de_DeleteTrafficPolicyInstanceCommandError(output, context);
2843
2820
  }
2844
- const contents = map({
2821
+ const contents = (0, smithy_client_1.map)({
2845
2822
  $metadata: deserializeMetadata(output),
2846
2823
  });
2847
2824
  await collectBody(output.body, context);
@@ -2866,10 +2843,9 @@ const de_DeleteTrafficPolicyInstanceCommandError = async (output, context) => {
2866
2843
  throw await de_PriorRequestNotCompleteRes(parsedOutput, context);
2867
2844
  default:
2868
2845
  const parsedBody = parsedOutput.body;
2869
- (0, smithy_client_1.throwDefaultError)({
2846
+ return throwDefaultError({
2870
2847
  output,
2871
2848
  parsedBody: parsedBody.Error,
2872
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2873
2849
  errorCode,
2874
2850
  });
2875
2851
  }
@@ -2878,7 +2854,7 @@ const de_DeleteVPCAssociationAuthorizationCommand = async (output, context) => {
2878
2854
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2879
2855
  return de_DeleteVPCAssociationAuthorizationCommandError(output, context);
2880
2856
  }
2881
- const contents = map({
2857
+ const contents = (0, smithy_client_1.map)({
2882
2858
  $metadata: deserializeMetadata(output),
2883
2859
  });
2884
2860
  await collectBody(output.body, context);
@@ -2909,10 +2885,9 @@ const de_DeleteVPCAssociationAuthorizationCommandError = async (output, context)
2909
2885
  throw await de_VPCAssociationAuthorizationNotFoundRes(parsedOutput, context);
2910
2886
  default:
2911
2887
  const parsedBody = parsedOutput.body;
2912
- (0, smithy_client_1.throwDefaultError)({
2888
+ return throwDefaultError({
2913
2889
  output,
2914
2890
  parsedBody: parsedBody.Error,
2915
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2916
2891
  errorCode,
2917
2892
  });
2918
2893
  }
@@ -2921,7 +2896,7 @@ const de_DisableHostedZoneDNSSECCommand = async (output, context) => {
2921
2896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2922
2897
  return de_DisableHostedZoneDNSSECCommandError(output, context);
2923
2898
  }
2924
- const contents = map({
2899
+ const contents = (0, smithy_client_1.map)({
2925
2900
  $metadata: deserializeMetadata(output),
2926
2901
  });
2927
2902
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2964,10 +2939,9 @@ const de_DisableHostedZoneDNSSECCommandError = async (output, context) => {
2964
2939
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
2965
2940
  default:
2966
2941
  const parsedBody = parsedOutput.body;
2967
- (0, smithy_client_1.throwDefaultError)({
2942
+ return throwDefaultError({
2968
2943
  output,
2969
2944
  parsedBody: parsedBody.Error,
2970
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
2971
2945
  errorCode,
2972
2946
  });
2973
2947
  }
@@ -2976,7 +2950,7 @@ const de_DisassociateVPCFromHostedZoneCommand = async (output, context) => {
2976
2950
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2977
2951
  return de_DisassociateVPCFromHostedZoneCommandError(output, context);
2978
2952
  }
2979
- const contents = map({
2953
+ const contents = (0, smithy_client_1.map)({
2980
2954
  $metadata: deserializeMetadata(output),
2981
2955
  });
2982
2956
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3010,10 +2984,9 @@ const de_DisassociateVPCFromHostedZoneCommandError = async (output, context) =>
3010
2984
  throw await de_VPCAssociationNotFoundRes(parsedOutput, context);
3011
2985
  default:
3012
2986
  const parsedBody = parsedOutput.body;
3013
- (0, smithy_client_1.throwDefaultError)({
2987
+ return throwDefaultError({
3014
2988
  output,
3015
2989
  parsedBody: parsedBody.Error,
3016
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3017
2990
  errorCode,
3018
2991
  });
3019
2992
  }
@@ -3022,7 +2995,7 @@ const de_EnableHostedZoneDNSSECCommand = async (output, context) => {
3022
2995
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3023
2996
  return de_EnableHostedZoneDNSSECCommandError(output, context);
3024
2997
  }
3025
- const contents = map({
2998
+ const contents = (0, smithy_client_1.map)({
3026
2999
  $metadata: deserializeMetadata(output),
3027
3000
  });
3028
3001
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3068,10 +3041,9 @@ const de_EnableHostedZoneDNSSECCommandError = async (output, context) => {
3068
3041
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
3069
3042
  default:
3070
3043
  const parsedBody = parsedOutput.body;
3071
- (0, smithy_client_1.throwDefaultError)({
3044
+ return throwDefaultError({
3072
3045
  output,
3073
3046
  parsedBody: parsedBody.Error,
3074
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3075
3047
  errorCode,
3076
3048
  });
3077
3049
  }
@@ -3080,7 +3052,7 @@ const de_GetAccountLimitCommand = async (output, context) => {
3080
3052
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3081
3053
  return de_GetAccountLimitCommandError(output, context);
3082
3054
  }
3083
- const contents = map({
3055
+ const contents = (0, smithy_client_1.map)({
3084
3056
  $metadata: deserializeMetadata(output),
3085
3057
  });
3086
3058
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3105,10 +3077,9 @@ const de_GetAccountLimitCommandError = async (output, context) => {
3105
3077
  throw await de_InvalidInputRes(parsedOutput, context);
3106
3078
  default:
3107
3079
  const parsedBody = parsedOutput.body;
3108
- (0, smithy_client_1.throwDefaultError)({
3080
+ return throwDefaultError({
3109
3081
  output,
3110
3082
  parsedBody: parsedBody.Error,
3111
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3112
3083
  errorCode,
3113
3084
  });
3114
3085
  }
@@ -3117,7 +3088,7 @@ const de_GetChangeCommand = async (output, context) => {
3117
3088
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3118
3089
  return de_GetChangeCommandError(output, context);
3119
3090
  }
3120
- const contents = map({
3091
+ const contents = (0, smithy_client_1.map)({
3121
3092
  $metadata: deserializeMetadata(output),
3122
3093
  });
3123
3094
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3142,10 +3113,9 @@ const de_GetChangeCommandError = async (output, context) => {
3142
3113
  throw await de_NoSuchChangeRes(parsedOutput, context);
3143
3114
  default:
3144
3115
  const parsedBody = parsedOutput.body;
3145
- (0, smithy_client_1.throwDefaultError)({
3116
+ return throwDefaultError({
3146
3117
  output,
3147
3118
  parsedBody: parsedBody.Error,
3148
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3149
3119
  errorCode,
3150
3120
  });
3151
3121
  }
@@ -3154,7 +3124,7 @@ const de_GetCheckerIpRangesCommand = async (output, context) => {
3154
3124
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3155
3125
  return de_GetCheckerIpRangesCommandError(output, context);
3156
3126
  }
3157
- const contents = map({
3127
+ const contents = (0, smithy_client_1.map)({
3158
3128
  $metadata: deserializeMetadata(output),
3159
3129
  });
3160
3130
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3174,10 +3144,9 @@ const de_GetCheckerIpRangesCommandError = async (output, context) => {
3174
3144
  };
3175
3145
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3176
3146
  const parsedBody = parsedOutput.body;
3177
- (0, smithy_client_1.throwDefaultError)({
3147
+ return throwDefaultError({
3178
3148
  output,
3179
3149
  parsedBody: parsedBody.Error,
3180
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3181
3150
  errorCode,
3182
3151
  });
3183
3152
  };
@@ -3185,7 +3154,7 @@ const de_GetDNSSECCommand = async (output, context) => {
3185
3154
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3186
3155
  return de_GetDNSSECCommandError(output, context);
3187
3156
  }
3188
- const contents = map({
3157
+ const contents = (0, smithy_client_1.map)({
3189
3158
  $metadata: deserializeMetadata(output),
3190
3159
  });
3191
3160
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3219,10 +3188,9 @@ const de_GetDNSSECCommandError = async (output, context) => {
3219
3188
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
3220
3189
  default:
3221
3190
  const parsedBody = parsedOutput.body;
3222
- (0, smithy_client_1.throwDefaultError)({
3191
+ return throwDefaultError({
3223
3192
  output,
3224
3193
  parsedBody: parsedBody.Error,
3225
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3226
3194
  errorCode,
3227
3195
  });
3228
3196
  }
@@ -3231,7 +3199,7 @@ const de_GetGeoLocationCommand = async (output, context) => {
3231
3199
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3232
3200
  return de_GetGeoLocationCommandError(output, context);
3233
3201
  }
3234
- const contents = map({
3202
+ const contents = (0, smithy_client_1.map)({
3235
3203
  $metadata: deserializeMetadata(output),
3236
3204
  });
3237
3205
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3256,10 +3224,9 @@ const de_GetGeoLocationCommandError = async (output, context) => {
3256
3224
  throw await de_NoSuchGeoLocationRes(parsedOutput, context);
3257
3225
  default:
3258
3226
  const parsedBody = parsedOutput.body;
3259
- (0, smithy_client_1.throwDefaultError)({
3227
+ return throwDefaultError({
3260
3228
  output,
3261
3229
  parsedBody: parsedBody.Error,
3262
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3263
3230
  errorCode,
3264
3231
  });
3265
3232
  }
@@ -3268,7 +3235,7 @@ const de_GetHealthCheckCommand = async (output, context) => {
3268
3235
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3269
3236
  return de_GetHealthCheckCommandError(output, context);
3270
3237
  }
3271
- const contents = map({
3238
+ const contents = (0, smithy_client_1.map)({
3272
3239
  $metadata: deserializeMetadata(output),
3273
3240
  });
3274
3241
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3296,10 +3263,9 @@ const de_GetHealthCheckCommandError = async (output, context) => {
3296
3263
  throw await de_NoSuchHealthCheckRes(parsedOutput, context);
3297
3264
  default:
3298
3265
  const parsedBody = parsedOutput.body;
3299
- (0, smithy_client_1.throwDefaultError)({
3266
+ return throwDefaultError({
3300
3267
  output,
3301
3268
  parsedBody: parsedBody.Error,
3302
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3303
3269
  errorCode,
3304
3270
  });
3305
3271
  }
@@ -3308,7 +3274,7 @@ const de_GetHealthCheckCountCommand = async (output, context) => {
3308
3274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3309
3275
  return de_GetHealthCheckCountCommandError(output, context);
3310
3276
  }
3311
- const contents = map({
3277
+ const contents = (0, smithy_client_1.map)({
3312
3278
  $metadata: deserializeMetadata(output),
3313
3279
  });
3314
3280
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3325,10 +3291,9 @@ const de_GetHealthCheckCountCommandError = async (output, context) => {
3325
3291
  };
3326
3292
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3327
3293
  const parsedBody = parsedOutput.body;
3328
- (0, smithy_client_1.throwDefaultError)({
3294
+ return throwDefaultError({
3329
3295
  output,
3330
3296
  parsedBody: parsedBody.Error,
3331
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3332
3297
  errorCode,
3333
3298
  });
3334
3299
  };
@@ -3336,7 +3301,7 @@ const de_GetHealthCheckLastFailureReasonCommand = async (output, context) => {
3336
3301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3337
3302
  return de_GetHealthCheckLastFailureReasonCommandError(output, context);
3338
3303
  }
3339
- const contents = map({
3304
+ const contents = (0, smithy_client_1.map)({
3340
3305
  $metadata: deserializeMetadata(output),
3341
3306
  });
3342
3307
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3365,10 +3330,9 @@ const de_GetHealthCheckLastFailureReasonCommandError = async (output, context) =
3365
3330
  throw await de_NoSuchHealthCheckRes(parsedOutput, context);
3366
3331
  default:
3367
3332
  const parsedBody = parsedOutput.body;
3368
- (0, smithy_client_1.throwDefaultError)({
3333
+ return throwDefaultError({
3369
3334
  output,
3370
3335
  parsedBody: parsedBody.Error,
3371
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3372
3336
  errorCode,
3373
3337
  });
3374
3338
  }
@@ -3377,7 +3341,7 @@ const de_GetHealthCheckStatusCommand = async (output, context) => {
3377
3341
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3378
3342
  return de_GetHealthCheckStatusCommandError(output, context);
3379
3343
  }
3380
- const contents = map({
3344
+ const contents = (0, smithy_client_1.map)({
3381
3345
  $metadata: deserializeMetadata(output),
3382
3346
  });
3383
3347
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3406,10 +3370,9 @@ const de_GetHealthCheckStatusCommandError = async (output, context) => {
3406
3370
  throw await de_NoSuchHealthCheckRes(parsedOutput, context);
3407
3371
  default:
3408
3372
  const parsedBody = parsedOutput.body;
3409
- (0, smithy_client_1.throwDefaultError)({
3373
+ return throwDefaultError({
3410
3374
  output,
3411
3375
  parsedBody: parsedBody.Error,
3412
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3413
3376
  errorCode,
3414
3377
  });
3415
3378
  }
@@ -3418,7 +3381,7 @@ const de_GetHostedZoneCommand = async (output, context) => {
3418
3381
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3419
3382
  return de_GetHostedZoneCommandError(output, context);
3420
3383
  }
3421
- const contents = map({
3384
+ const contents = (0, smithy_client_1.map)({
3422
3385
  $metadata: deserializeMetadata(output),
3423
3386
  });
3424
3387
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3452,10 +3415,9 @@ const de_GetHostedZoneCommandError = async (output, context) => {
3452
3415
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
3453
3416
  default:
3454
3417
  const parsedBody = parsedOutput.body;
3455
- (0, smithy_client_1.throwDefaultError)({
3418
+ return throwDefaultError({
3456
3419
  output,
3457
3420
  parsedBody: parsedBody.Error,
3458
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3459
3421
  errorCode,
3460
3422
  });
3461
3423
  }
@@ -3464,7 +3426,7 @@ const de_GetHostedZoneCountCommand = async (output, context) => {
3464
3426
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3465
3427
  return de_GetHostedZoneCountCommandError(output, context);
3466
3428
  }
3467
- const contents = map({
3429
+ const contents = (0, smithy_client_1.map)({
3468
3430
  $metadata: deserializeMetadata(output),
3469
3431
  });
3470
3432
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3486,10 +3448,9 @@ const de_GetHostedZoneCountCommandError = async (output, context) => {
3486
3448
  throw await de_InvalidInputRes(parsedOutput, context);
3487
3449
  default:
3488
3450
  const parsedBody = parsedOutput.body;
3489
- (0, smithy_client_1.throwDefaultError)({
3451
+ return throwDefaultError({
3490
3452
  output,
3491
3453
  parsedBody: parsedBody.Error,
3492
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3493
3454
  errorCode,
3494
3455
  });
3495
3456
  }
@@ -3498,7 +3459,7 @@ const de_GetHostedZoneLimitCommand = async (output, context) => {
3498
3459
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3499
3460
  return de_GetHostedZoneLimitCommandError(output, context);
3500
3461
  }
3501
- const contents = map({
3462
+ const contents = (0, smithy_client_1.map)({
3502
3463
  $metadata: deserializeMetadata(output),
3503
3464
  });
3504
3465
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3529,10 +3490,9 @@ const de_GetHostedZoneLimitCommandError = async (output, context) => {
3529
3490
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
3530
3491
  default:
3531
3492
  const parsedBody = parsedOutput.body;
3532
- (0, smithy_client_1.throwDefaultError)({
3493
+ return throwDefaultError({
3533
3494
  output,
3534
3495
  parsedBody: parsedBody.Error,
3535
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3536
3496
  errorCode,
3537
3497
  });
3538
3498
  }
@@ -3541,7 +3501,7 @@ const de_GetQueryLoggingConfigCommand = async (output, context) => {
3541
3501
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3542
3502
  return de_GetQueryLoggingConfigCommandError(output, context);
3543
3503
  }
3544
- const contents = map({
3504
+ const contents = (0, smithy_client_1.map)({
3545
3505
  $metadata: deserializeMetadata(output),
3546
3506
  });
3547
3507
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3566,10 +3526,9 @@ const de_GetQueryLoggingConfigCommandError = async (output, context) => {
3566
3526
  throw await de_NoSuchQueryLoggingConfigRes(parsedOutput, context);
3567
3527
  default:
3568
3528
  const parsedBody = parsedOutput.body;
3569
- (0, smithy_client_1.throwDefaultError)({
3529
+ return throwDefaultError({
3570
3530
  output,
3571
3531
  parsedBody: parsedBody.Error,
3572
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3573
3532
  errorCode,
3574
3533
  });
3575
3534
  }
@@ -3578,7 +3537,7 @@ const de_GetReusableDelegationSetCommand = async (output, context) => {
3578
3537
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3579
3538
  return de_GetReusableDelegationSetCommandError(output, context);
3580
3539
  }
3581
- const contents = map({
3540
+ const contents = (0, smithy_client_1.map)({
3582
3541
  $metadata: deserializeMetadata(output),
3583
3542
  });
3584
3543
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3606,10 +3565,9 @@ const de_GetReusableDelegationSetCommandError = async (output, context) => {
3606
3565
  throw await de_NoSuchDelegationSetRes(parsedOutput, context);
3607
3566
  default:
3608
3567
  const parsedBody = parsedOutput.body;
3609
- (0, smithy_client_1.throwDefaultError)({
3568
+ return throwDefaultError({
3610
3569
  output,
3611
3570
  parsedBody: parsedBody.Error,
3612
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3613
3571
  errorCode,
3614
3572
  });
3615
3573
  }
@@ -3618,7 +3576,7 @@ const de_GetReusableDelegationSetLimitCommand = async (output, context) => {
3618
3576
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3619
3577
  return de_GetReusableDelegationSetLimitCommandError(output, context);
3620
3578
  }
3621
- const contents = map({
3579
+ const contents = (0, smithy_client_1.map)({
3622
3580
  $metadata: deserializeMetadata(output),
3623
3581
  });
3624
3582
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3646,10 +3604,9 @@ const de_GetReusableDelegationSetLimitCommandError = async (output, context) =>
3646
3604
  throw await de_NoSuchDelegationSetRes(parsedOutput, context);
3647
3605
  default:
3648
3606
  const parsedBody = parsedOutput.body;
3649
- (0, smithy_client_1.throwDefaultError)({
3607
+ return throwDefaultError({
3650
3608
  output,
3651
3609
  parsedBody: parsedBody.Error,
3652
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3653
3610
  errorCode,
3654
3611
  });
3655
3612
  }
@@ -3658,7 +3615,7 @@ const de_GetTrafficPolicyCommand = async (output, context) => {
3658
3615
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3659
3616
  return de_GetTrafficPolicyCommandError(output, context);
3660
3617
  }
3661
- const contents = map({
3618
+ const contents = (0, smithy_client_1.map)({
3662
3619
  $metadata: deserializeMetadata(output),
3663
3620
  });
3664
3621
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3683,10 +3640,9 @@ const de_GetTrafficPolicyCommandError = async (output, context) => {
3683
3640
  throw await de_NoSuchTrafficPolicyRes(parsedOutput, context);
3684
3641
  default:
3685
3642
  const parsedBody = parsedOutput.body;
3686
- (0, smithy_client_1.throwDefaultError)({
3643
+ return throwDefaultError({
3687
3644
  output,
3688
3645
  parsedBody: parsedBody.Error,
3689
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3690
3646
  errorCode,
3691
3647
  });
3692
3648
  }
@@ -3695,7 +3651,7 @@ const de_GetTrafficPolicyInstanceCommand = async (output, context) => {
3695
3651
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3696
3652
  return de_GetTrafficPolicyInstanceCommandError(output, context);
3697
3653
  }
3698
- const contents = map({
3654
+ const contents = (0, smithy_client_1.map)({
3699
3655
  $metadata: deserializeMetadata(output),
3700
3656
  });
3701
3657
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3720,10 +3676,9 @@ const de_GetTrafficPolicyInstanceCommandError = async (output, context) => {
3720
3676
  throw await de_NoSuchTrafficPolicyInstanceRes(parsedOutput, context);
3721
3677
  default:
3722
3678
  const parsedBody = parsedOutput.body;
3723
- (0, smithy_client_1.throwDefaultError)({
3679
+ return throwDefaultError({
3724
3680
  output,
3725
3681
  parsedBody: parsedBody.Error,
3726
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3727
3682
  errorCode,
3728
3683
  });
3729
3684
  }
@@ -3732,7 +3687,7 @@ const de_GetTrafficPolicyInstanceCountCommand = async (output, context) => {
3732
3687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3733
3688
  return de_GetTrafficPolicyInstanceCountCommandError(output, context);
3734
3689
  }
3735
- const contents = map({
3690
+ const contents = (0, smithy_client_1.map)({
3736
3691
  $metadata: deserializeMetadata(output),
3737
3692
  });
3738
3693
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3749,10 +3704,9 @@ const de_GetTrafficPolicyInstanceCountCommandError = async (output, context) =>
3749
3704
  };
3750
3705
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3751
3706
  const parsedBody = parsedOutput.body;
3752
- (0, smithy_client_1.throwDefaultError)({
3707
+ return throwDefaultError({
3753
3708
  output,
3754
3709
  parsedBody: parsedBody.Error,
3755
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3756
3710
  errorCode,
3757
3711
  });
3758
3712
  };
@@ -3760,7 +3714,7 @@ const de_ListCidrBlocksCommand = async (output, context) => {
3760
3714
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3761
3715
  return de_ListCidrBlocksCommandError(output, context);
3762
3716
  }
3763
- const contents = map({
3717
+ const contents = (0, smithy_client_1.map)({
3764
3718
  $metadata: deserializeMetadata(output),
3765
3719
  });
3766
3720
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3794,10 +3748,9 @@ const de_ListCidrBlocksCommandError = async (output, context) => {
3794
3748
  throw await de_NoSuchCidrLocationExceptionRes(parsedOutput, context);
3795
3749
  default:
3796
3750
  const parsedBody = parsedOutput.body;
3797
- (0, smithy_client_1.throwDefaultError)({
3751
+ return throwDefaultError({
3798
3752
  output,
3799
3753
  parsedBody: parsedBody.Error,
3800
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3801
3754
  errorCode,
3802
3755
  });
3803
3756
  }
@@ -3806,7 +3759,7 @@ const de_ListCidrCollectionsCommand = async (output, context) => {
3806
3759
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3807
3760
  return de_ListCidrCollectionsCommandError(output, context);
3808
3761
  }
3809
- const contents = map({
3762
+ const contents = (0, smithy_client_1.map)({
3810
3763
  $metadata: deserializeMetadata(output),
3811
3764
  });
3812
3765
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3834,10 +3787,9 @@ const de_ListCidrCollectionsCommandError = async (output, context) => {
3834
3787
  throw await de_InvalidInputRes(parsedOutput, context);
3835
3788
  default:
3836
3789
  const parsedBody = parsedOutput.body;
3837
- (0, smithy_client_1.throwDefaultError)({
3790
+ return throwDefaultError({
3838
3791
  output,
3839
3792
  parsedBody: parsedBody.Error,
3840
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3841
3793
  errorCode,
3842
3794
  });
3843
3795
  }
@@ -3846,7 +3798,7 @@ const de_ListCidrLocationsCommand = async (output, context) => {
3846
3798
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3847
3799
  return de_ListCidrLocationsCommandError(output, context);
3848
3800
  }
3849
- const contents = map({
3801
+ const contents = (0, smithy_client_1.map)({
3850
3802
  $metadata: deserializeMetadata(output),
3851
3803
  });
3852
3804
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3877,10 +3829,9 @@ const de_ListCidrLocationsCommandError = async (output, context) => {
3877
3829
  throw await de_NoSuchCidrCollectionExceptionRes(parsedOutput, context);
3878
3830
  default:
3879
3831
  const parsedBody = parsedOutput.body;
3880
- (0, smithy_client_1.throwDefaultError)({
3832
+ return throwDefaultError({
3881
3833
  output,
3882
3834
  parsedBody: parsedBody.Error,
3883
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3884
3835
  errorCode,
3885
3836
  });
3886
3837
  }
@@ -3889,7 +3840,7 @@ const de_ListGeoLocationsCommand = async (output, context) => {
3889
3840
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3890
3841
  return de_ListGeoLocationsCommandError(output, context);
3891
3842
  }
3892
- const contents = map({
3843
+ const contents = (0, smithy_client_1.map)({
3893
3844
  $metadata: deserializeMetadata(output),
3894
3845
  });
3895
3846
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3930,10 +3881,9 @@ const de_ListGeoLocationsCommandError = async (output, context) => {
3930
3881
  throw await de_InvalidInputRes(parsedOutput, context);
3931
3882
  default:
3932
3883
  const parsedBody = parsedOutput.body;
3933
- (0, smithy_client_1.throwDefaultError)({
3884
+ return throwDefaultError({
3934
3885
  output,
3935
3886
  parsedBody: parsedBody.Error,
3936
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3937
3887
  errorCode,
3938
3888
  });
3939
3889
  }
@@ -3942,7 +3892,7 @@ const de_ListHealthChecksCommand = async (output, context) => {
3942
3892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3943
3893
  return de_ListHealthChecksCommandError(output, context);
3944
3894
  }
3945
- const contents = map({
3895
+ const contents = (0, smithy_client_1.map)({
3946
3896
  $metadata: deserializeMetadata(output),
3947
3897
  });
3948
3898
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3982,10 +3932,9 @@ const de_ListHealthChecksCommandError = async (output, context) => {
3982
3932
  throw await de_InvalidInputRes(parsedOutput, context);
3983
3933
  default:
3984
3934
  const parsedBody = parsedOutput.body;
3985
- (0, smithy_client_1.throwDefaultError)({
3935
+ return throwDefaultError({
3986
3936
  output,
3987
3937
  parsedBody: parsedBody.Error,
3988
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
3989
3938
  errorCode,
3990
3939
  });
3991
3940
  }
@@ -3994,7 +3943,7 @@ const de_ListHostedZonesCommand = async (output, context) => {
3994
3943
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3995
3944
  return de_ListHostedZonesCommandError(output, context);
3996
3945
  }
3997
- const contents = map({
3946
+ const contents = (0, smithy_client_1.map)({
3998
3947
  $metadata: deserializeMetadata(output),
3999
3948
  });
4000
3949
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4037,10 +3986,9 @@ const de_ListHostedZonesCommandError = async (output, context) => {
4037
3986
  throw await de_NoSuchDelegationSetRes(parsedOutput, context);
4038
3987
  default:
4039
3988
  const parsedBody = parsedOutput.body;
4040
- (0, smithy_client_1.throwDefaultError)({
3989
+ return throwDefaultError({
4041
3990
  output,
4042
3991
  parsedBody: parsedBody.Error,
4043
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4044
3992
  errorCode,
4045
3993
  });
4046
3994
  }
@@ -4049,7 +3997,7 @@ const de_ListHostedZonesByNameCommand = async (output, context) => {
4049
3997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4050
3998
  return de_ListHostedZonesByNameCommandError(output, context);
4051
3999
  }
4052
- const contents = map({
4000
+ const contents = (0, smithy_client_1.map)({
4053
4001
  $metadata: deserializeMetadata(output),
4054
4002
  });
4055
4003
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4095,10 +4043,9 @@ const de_ListHostedZonesByNameCommandError = async (output, context) => {
4095
4043
  throw await de_InvalidInputRes(parsedOutput, context);
4096
4044
  default:
4097
4045
  const parsedBody = parsedOutput.body;
4098
- (0, smithy_client_1.throwDefaultError)({
4046
+ return throwDefaultError({
4099
4047
  output,
4100
4048
  parsedBody: parsedBody.Error,
4101
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4102
4049
  errorCode,
4103
4050
  });
4104
4051
  }
@@ -4107,7 +4054,7 @@ const de_ListHostedZonesByVPCCommand = async (output, context) => {
4107
4054
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4108
4055
  return de_ListHostedZonesByVPCCommandError(output, context);
4109
4056
  }
4110
- const contents = map({
4057
+ const contents = (0, smithy_client_1.map)({
4111
4058
  $metadata: deserializeMetadata(output),
4112
4059
  });
4113
4060
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4142,10 +4089,9 @@ const de_ListHostedZonesByVPCCommandError = async (output, context) => {
4142
4089
  throw await de_InvalidPaginationTokenRes(parsedOutput, context);
4143
4090
  default:
4144
4091
  const parsedBody = parsedOutput.body;
4145
- (0, smithy_client_1.throwDefaultError)({
4092
+ return throwDefaultError({
4146
4093
  output,
4147
4094
  parsedBody: parsedBody.Error,
4148
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4149
4095
  errorCode,
4150
4096
  });
4151
4097
  }
@@ -4154,7 +4100,7 @@ const de_ListQueryLoggingConfigsCommand = async (output, context) => {
4154
4100
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4155
4101
  return de_ListQueryLoggingConfigsCommandError(output, context);
4156
4102
  }
4157
- const contents = map({
4103
+ const contents = (0, smithy_client_1.map)({
4158
4104
  $metadata: deserializeMetadata(output),
4159
4105
  });
4160
4106
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4189,10 +4135,9 @@ const de_ListQueryLoggingConfigsCommandError = async (output, context) => {
4189
4135
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
4190
4136
  default:
4191
4137
  const parsedBody = parsedOutput.body;
4192
- (0, smithy_client_1.throwDefaultError)({
4138
+ return throwDefaultError({
4193
4139
  output,
4194
4140
  parsedBody: parsedBody.Error,
4195
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4196
4141
  errorCode,
4197
4142
  });
4198
4143
  }
@@ -4201,7 +4146,7 @@ const de_ListResourceRecordSetsCommand = async (output, context) => {
4201
4146
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4202
4147
  return de_ListResourceRecordSetsCommandError(output, context);
4203
4148
  }
4204
- const contents = map({
4149
+ const contents = (0, smithy_client_1.map)({
4205
4150
  $metadata: deserializeMetadata(output),
4206
4151
  });
4207
4152
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4245,10 +4190,9 @@ const de_ListResourceRecordSetsCommandError = async (output, context) => {
4245
4190
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
4246
4191
  default:
4247
4192
  const parsedBody = parsedOutput.body;
4248
- (0, smithy_client_1.throwDefaultError)({
4193
+ return throwDefaultError({
4249
4194
  output,
4250
4195
  parsedBody: parsedBody.Error,
4251
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4252
4196
  errorCode,
4253
4197
  });
4254
4198
  }
@@ -4257,7 +4201,7 @@ const de_ListReusableDelegationSetsCommand = async (output, context) => {
4257
4201
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4258
4202
  return de_ListReusableDelegationSetsCommandError(output, context);
4259
4203
  }
4260
- const contents = map({
4204
+ const contents = (0, smithy_client_1.map)({
4261
4205
  $metadata: deserializeMetadata(output),
4262
4206
  });
4263
4207
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4294,10 +4238,9 @@ const de_ListReusableDelegationSetsCommandError = async (output, context) => {
4294
4238
  throw await de_InvalidInputRes(parsedOutput, context);
4295
4239
  default:
4296
4240
  const parsedBody = parsedOutput.body;
4297
- (0, smithy_client_1.throwDefaultError)({
4241
+ return throwDefaultError({
4298
4242
  output,
4299
4243
  parsedBody: parsedBody.Error,
4300
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4301
4244
  errorCode,
4302
4245
  });
4303
4246
  }
@@ -4306,7 +4249,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
4306
4249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4307
4250
  return de_ListTagsForResourceCommandError(output, context);
4308
4251
  }
4309
- const contents = map({
4252
+ const contents = (0, smithy_client_1.map)({
4310
4253
  $metadata: deserializeMetadata(output),
4311
4254
  });
4312
4255
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4340,10 +4283,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
4340
4283
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
4341
4284
  default:
4342
4285
  const parsedBody = parsedOutput.body;
4343
- (0, smithy_client_1.throwDefaultError)({
4286
+ return throwDefaultError({
4344
4287
  output,
4345
4288
  parsedBody: parsedBody.Error,
4346
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4347
4289
  errorCode,
4348
4290
  });
4349
4291
  }
@@ -4352,7 +4294,7 @@ const de_ListTagsForResourcesCommand = async (output, context) => {
4352
4294
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4353
4295
  return de_ListTagsForResourcesCommandError(output, context);
4354
4296
  }
4355
- const contents = map({
4297
+ const contents = (0, smithy_client_1.map)({
4356
4298
  $metadata: deserializeMetadata(output),
4357
4299
  });
4358
4300
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4389,10 +4331,9 @@ const de_ListTagsForResourcesCommandError = async (output, context) => {
4389
4331
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
4390
4332
  default:
4391
4333
  const parsedBody = parsedOutput.body;
4392
- (0, smithy_client_1.throwDefaultError)({
4334
+ return throwDefaultError({
4393
4335
  output,
4394
4336
  parsedBody: parsedBody.Error,
4395
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4396
4337
  errorCode,
4397
4338
  });
4398
4339
  }
@@ -4401,7 +4342,7 @@ const de_ListTrafficPoliciesCommand = async (output, context) => {
4401
4342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4402
4343
  return de_ListTrafficPoliciesCommandError(output, context);
4403
4344
  }
4404
- const contents = map({
4345
+ const contents = (0, smithy_client_1.map)({
4405
4346
  $metadata: deserializeMetadata(output),
4406
4347
  });
4407
4348
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4436,10 +4377,9 @@ const de_ListTrafficPoliciesCommandError = async (output, context) => {
4436
4377
  throw await de_InvalidInputRes(parsedOutput, context);
4437
4378
  default:
4438
4379
  const parsedBody = parsedOutput.body;
4439
- (0, smithy_client_1.throwDefaultError)({
4380
+ return throwDefaultError({
4440
4381
  output,
4441
4382
  parsedBody: parsedBody.Error,
4442
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4443
4383
  errorCode,
4444
4384
  });
4445
4385
  }
@@ -4448,7 +4388,7 @@ const de_ListTrafficPolicyInstancesCommand = async (output, context) => {
4448
4388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4449
4389
  return de_ListTrafficPolicyInstancesCommandError(output, context);
4450
4390
  }
4451
- const contents = map({
4391
+ const contents = (0, smithy_client_1.map)({
4452
4392
  $metadata: deserializeMetadata(output),
4453
4393
  });
4454
4394
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4492,10 +4432,9 @@ const de_ListTrafficPolicyInstancesCommandError = async (output, context) => {
4492
4432
  throw await de_NoSuchTrafficPolicyInstanceRes(parsedOutput, context);
4493
4433
  default:
4494
4434
  const parsedBody = parsedOutput.body;
4495
- (0, smithy_client_1.throwDefaultError)({
4435
+ return throwDefaultError({
4496
4436
  output,
4497
4437
  parsedBody: parsedBody.Error,
4498
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4499
4438
  errorCode,
4500
4439
  });
4501
4440
  }
@@ -4504,7 +4443,7 @@ const de_ListTrafficPolicyInstancesByHostedZoneCommand = async (output, context)
4504
4443
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4505
4444
  return de_ListTrafficPolicyInstancesByHostedZoneCommandError(output, context);
4506
4445
  }
4507
- const contents = map({
4446
+ const contents = (0, smithy_client_1.map)({
4508
4447
  $metadata: deserializeMetadata(output),
4509
4448
  });
4510
4449
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4548,10 +4487,9 @@ const de_ListTrafficPolicyInstancesByHostedZoneCommandError = async (output, con
4548
4487
  throw await de_NoSuchTrafficPolicyInstanceRes(parsedOutput, context);
4549
4488
  default:
4550
4489
  const parsedBody = parsedOutput.body;
4551
- (0, smithy_client_1.throwDefaultError)({
4490
+ return throwDefaultError({
4552
4491
  output,
4553
4492
  parsedBody: parsedBody.Error,
4554
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4555
4493
  errorCode,
4556
4494
  });
4557
4495
  }
@@ -4560,7 +4498,7 @@ const de_ListTrafficPolicyInstancesByPolicyCommand = async (output, context) =>
4560
4498
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4561
4499
  return de_ListTrafficPolicyInstancesByPolicyCommandError(output, context);
4562
4500
  }
4563
- const contents = map({
4501
+ const contents = (0, smithy_client_1.map)({
4564
4502
  $metadata: deserializeMetadata(output),
4565
4503
  });
4566
4504
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4607,10 +4545,9 @@ const de_ListTrafficPolicyInstancesByPolicyCommandError = async (output, context
4607
4545
  throw await de_NoSuchTrafficPolicyInstanceRes(parsedOutput, context);
4608
4546
  default:
4609
4547
  const parsedBody = parsedOutput.body;
4610
- (0, smithy_client_1.throwDefaultError)({
4548
+ return throwDefaultError({
4611
4549
  output,
4612
4550
  parsedBody: parsedBody.Error,
4613
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4614
4551
  errorCode,
4615
4552
  });
4616
4553
  }
@@ -4619,7 +4556,7 @@ const de_ListTrafficPolicyVersionsCommand = async (output, context) => {
4619
4556
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4620
4557
  return de_ListTrafficPolicyVersionsCommandError(output, context);
4621
4558
  }
4622
- const contents = map({
4559
+ const contents = (0, smithy_client_1.map)({
4623
4560
  $metadata: deserializeMetadata(output),
4624
4561
  });
4625
4562
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4656,10 +4593,9 @@ const de_ListTrafficPolicyVersionsCommandError = async (output, context) => {
4656
4593
  throw await de_NoSuchTrafficPolicyRes(parsedOutput, context);
4657
4594
  default:
4658
4595
  const parsedBody = parsedOutput.body;
4659
- (0, smithy_client_1.throwDefaultError)({
4596
+ return throwDefaultError({
4660
4597
  output,
4661
4598
  parsedBody: parsedBody.Error,
4662
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4663
4599
  errorCode,
4664
4600
  });
4665
4601
  }
@@ -4668,7 +4604,7 @@ const de_ListVPCAssociationAuthorizationsCommand = async (output, context) => {
4668
4604
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4669
4605
  return de_ListVPCAssociationAuthorizationsCommandError(output, context);
4670
4606
  }
4671
- const contents = map({
4607
+ const contents = (0, smithy_client_1.map)({
4672
4608
  $metadata: deserializeMetadata(output),
4673
4609
  });
4674
4610
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4705,10 +4641,9 @@ const de_ListVPCAssociationAuthorizationsCommandError = async (output, context)
4705
4641
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
4706
4642
  default:
4707
4643
  const parsedBody = parsedOutput.body;
4708
- (0, smithy_client_1.throwDefaultError)({
4644
+ return throwDefaultError({
4709
4645
  output,
4710
4646
  parsedBody: parsedBody.Error,
4711
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4712
4647
  errorCode,
4713
4648
  });
4714
4649
  }
@@ -4717,7 +4652,7 @@ const de_TestDNSAnswerCommand = async (output, context) => {
4717
4652
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4718
4653
  return de_TestDNSAnswerCommandError(output, context);
4719
4654
  }
4720
- const contents = map({
4655
+ const contents = (0, smithy_client_1.map)({
4721
4656
  $metadata: deserializeMetadata(output),
4722
4657
  });
4723
4658
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4760,10 +4695,9 @@ const de_TestDNSAnswerCommandError = async (output, context) => {
4760
4695
  throw await de_NoSuchHostedZoneRes(parsedOutput, context);
4761
4696
  default:
4762
4697
  const parsedBody = parsedOutput.body;
4763
- (0, smithy_client_1.throwDefaultError)({
4698
+ return throwDefaultError({
4764
4699
  output,
4765
4700
  parsedBody: parsedBody.Error,
4766
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4767
4701
  errorCode,
4768
4702
  });
4769
4703
  }
@@ -4772,7 +4706,7 @@ const de_UpdateHealthCheckCommand = async (output, context) => {
4772
4706
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4773
4707
  return de_UpdateHealthCheckCommandError(output, context);
4774
4708
  }
4775
- const contents = map({
4709
+ const contents = (0, smithy_client_1.map)({
4776
4710
  $metadata: deserializeMetadata(output),
4777
4711
  });
4778
4712
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4800,10 +4734,9 @@ const de_UpdateHealthCheckCommandError = async (output, context) => {
4800
4734
  throw await de_NoSuchHealthCheckRes(parsedOutput, context);
4801
4735
  default:
4802
4736
  const parsedBody = parsedOutput.body;
4803
- (0, smithy_client_1.throwDefaultError)({
4737
+ return throwDefaultError({
4804
4738
  output,
4805
4739
  parsedBody: parsedBody.Error,
4806
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4807
4740
  errorCode,
4808
4741
  });
4809
4742
  }
@@ -4812,7 +4745,7 @@ const de_UpdateHostedZoneCommentCommand = async (output, context) => {
4812
4745
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4813
4746
  return de_UpdateHostedZoneCommentCommandError(output, context);
4814
4747
  }
4815
- const contents = map({
4748
+ const contents = (0, smithy_client_1.map)({
4816
4749
  $metadata: deserializeMetadata(output),
4817
4750
  });
4818
4751
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4840,10 +4773,9 @@ const de_UpdateHostedZoneCommentCommandError = async (output, context) => {
4840
4773
  throw await de_PriorRequestNotCompleteRes(parsedOutput, context);
4841
4774
  default:
4842
4775
  const parsedBody = parsedOutput.body;
4843
- (0, smithy_client_1.throwDefaultError)({
4776
+ return throwDefaultError({
4844
4777
  output,
4845
4778
  parsedBody: parsedBody.Error,
4846
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4847
4779
  errorCode,
4848
4780
  });
4849
4781
  }
@@ -4852,7 +4784,7 @@ const de_UpdateTrafficPolicyCommentCommand = async (output, context) => {
4852
4784
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4853
4785
  return de_UpdateTrafficPolicyCommentCommandError(output, context);
4854
4786
  }
4855
- const contents = map({
4787
+ const contents = (0, smithy_client_1.map)({
4856
4788
  $metadata: deserializeMetadata(output),
4857
4789
  });
4858
4790
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4880,10 +4812,9 @@ const de_UpdateTrafficPolicyCommentCommandError = async (output, context) => {
4880
4812
  throw await de_NoSuchTrafficPolicyRes(parsedOutput, context);
4881
4813
  default:
4882
4814
  const parsedBody = parsedOutput.body;
4883
- (0, smithy_client_1.throwDefaultError)({
4815
+ return throwDefaultError({
4884
4816
  output,
4885
4817
  parsedBody: parsedBody.Error,
4886
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4887
4818
  errorCode,
4888
4819
  });
4889
4820
  }
@@ -4892,7 +4823,7 @@ const de_UpdateTrafficPolicyInstanceCommand = async (output, context) => {
4892
4823
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4893
4824
  return de_UpdateTrafficPolicyInstanceCommandError(output, context);
4894
4825
  }
4895
- const contents = map({
4826
+ const contents = (0, smithy_client_1.map)({
4896
4827
  $metadata: deserializeMetadata(output),
4897
4828
  });
4898
4829
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4926,17 +4857,16 @@ const de_UpdateTrafficPolicyInstanceCommandError = async (output, context) => {
4926
4857
  throw await de_PriorRequestNotCompleteRes(parsedOutput, context);
4927
4858
  default:
4928
4859
  const parsedBody = parsedOutput.body;
4929
- (0, smithy_client_1.throwDefaultError)({
4860
+ return throwDefaultError({
4930
4861
  output,
4931
4862
  parsedBody: parsedBody.Error,
4932
- exceptionCtor: Route53ServiceException_1.Route53ServiceException,
4933
4863
  errorCode,
4934
4864
  });
4935
4865
  }
4936
4866
  };
4937
- const map = smithy_client_1.map;
4867
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(Route53ServiceException_1.Route53ServiceException);
4938
4868
  const de_CidrBlockInUseExceptionRes = async (parsedOutput, context) => {
4939
- const contents = map({});
4869
+ const contents = (0, smithy_client_1.map)({});
4940
4870
  const data = parsedOutput.body.Error;
4941
4871
  if (data["Message"] !== undefined) {
4942
4872
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4948,7 +4878,7 @@ const de_CidrBlockInUseExceptionRes = async (parsedOutput, context) => {
4948
4878
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4949
4879
  };
4950
4880
  const de_CidrCollectionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
4951
- const contents = map({});
4881
+ const contents = (0, smithy_client_1.map)({});
4952
4882
  const data = parsedOutput.body.Error;
4953
4883
  if (data["Message"] !== undefined) {
4954
4884
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4960,7 +4890,7 @@ const de_CidrCollectionAlreadyExistsExceptionRes = async (parsedOutput, context)
4960
4890
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4961
4891
  };
4962
4892
  const de_CidrCollectionInUseExceptionRes = async (parsedOutput, context) => {
4963
- const contents = map({});
4893
+ const contents = (0, smithy_client_1.map)({});
4964
4894
  const data = parsedOutput.body.Error;
4965
4895
  if (data["Message"] !== undefined) {
4966
4896
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4972,7 +4902,7 @@ const de_CidrCollectionInUseExceptionRes = async (parsedOutput, context) => {
4972
4902
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4973
4903
  };
4974
4904
  const de_CidrCollectionVersionMismatchExceptionRes = async (parsedOutput, context) => {
4975
- const contents = map({});
4905
+ const contents = (0, smithy_client_1.map)({});
4976
4906
  const data = parsedOutput.body.Error;
4977
4907
  if (data["Message"] !== undefined) {
4978
4908
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4984,7 +4914,7 @@ const de_CidrCollectionVersionMismatchExceptionRes = async (parsedOutput, contex
4984
4914
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4985
4915
  };
4986
4916
  const de_ConcurrentModificationRes = async (parsedOutput, context) => {
4987
- const contents = map({});
4917
+ const contents = (0, smithy_client_1.map)({});
4988
4918
  const data = parsedOutput.body.Error;
4989
4919
  if (data["message"] !== undefined) {
4990
4920
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -4996,7 +4926,7 @@ const de_ConcurrentModificationRes = async (parsedOutput, context) => {
4996
4926
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4997
4927
  };
4998
4928
  const de_ConflictingDomainExistsRes = async (parsedOutput, context) => {
4999
- const contents = map({});
4929
+ const contents = (0, smithy_client_1.map)({});
5000
4930
  const data = parsedOutput.body.Error;
5001
4931
  if (data["message"] !== undefined) {
5002
4932
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5008,7 +4938,7 @@ const de_ConflictingDomainExistsRes = async (parsedOutput, context) => {
5008
4938
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5009
4939
  };
5010
4940
  const de_ConflictingTypesRes = async (parsedOutput, context) => {
5011
- const contents = map({});
4941
+ const contents = (0, smithy_client_1.map)({});
5012
4942
  const data = parsedOutput.body.Error;
5013
4943
  if (data["message"] !== undefined) {
5014
4944
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5020,7 +4950,7 @@ const de_ConflictingTypesRes = async (parsedOutput, context) => {
5020
4950
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5021
4951
  };
5022
4952
  const de_DelegationSetAlreadyCreatedRes = async (parsedOutput, context) => {
5023
- const contents = map({});
4953
+ const contents = (0, smithy_client_1.map)({});
5024
4954
  const data = parsedOutput.body.Error;
5025
4955
  if (data["message"] !== undefined) {
5026
4956
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5032,7 +4962,7 @@ const de_DelegationSetAlreadyCreatedRes = async (parsedOutput, context) => {
5032
4962
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5033
4963
  };
5034
4964
  const de_DelegationSetAlreadyReusableRes = async (parsedOutput, context) => {
5035
- const contents = map({});
4965
+ const contents = (0, smithy_client_1.map)({});
5036
4966
  const data = parsedOutput.body.Error;
5037
4967
  if (data["message"] !== undefined) {
5038
4968
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5044,7 +4974,7 @@ const de_DelegationSetAlreadyReusableRes = async (parsedOutput, context) => {
5044
4974
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5045
4975
  };
5046
4976
  const de_DelegationSetInUseRes = async (parsedOutput, context) => {
5047
- const contents = map({});
4977
+ const contents = (0, smithy_client_1.map)({});
5048
4978
  const data = parsedOutput.body.Error;
5049
4979
  if (data["message"] !== undefined) {
5050
4980
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5056,7 +4986,7 @@ const de_DelegationSetInUseRes = async (parsedOutput, context) => {
5056
4986
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5057
4987
  };
5058
4988
  const de_DelegationSetNotAvailableRes = async (parsedOutput, context) => {
5059
- const contents = map({});
4989
+ const contents = (0, smithy_client_1.map)({});
5060
4990
  const data = parsedOutput.body.Error;
5061
4991
  if (data["message"] !== undefined) {
5062
4992
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5068,7 +4998,7 @@ const de_DelegationSetNotAvailableRes = async (parsedOutput, context) => {
5068
4998
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5069
4999
  };
5070
5000
  const de_DelegationSetNotReusableRes = async (parsedOutput, context) => {
5071
- const contents = map({});
5001
+ const contents = (0, smithy_client_1.map)({});
5072
5002
  const data = parsedOutput.body.Error;
5073
5003
  if (data["message"] !== undefined) {
5074
5004
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5080,7 +5010,7 @@ const de_DelegationSetNotReusableRes = async (parsedOutput, context) => {
5080
5010
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5081
5011
  };
5082
5012
  const de_DNSSECNotFoundRes = async (parsedOutput, context) => {
5083
- const contents = map({});
5013
+ const contents = (0, smithy_client_1.map)({});
5084
5014
  const data = parsedOutput.body.Error;
5085
5015
  if (data["message"] !== undefined) {
5086
5016
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5092,7 +5022,7 @@ const de_DNSSECNotFoundRes = async (parsedOutput, context) => {
5092
5022
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5093
5023
  };
5094
5024
  const de_HealthCheckAlreadyExistsRes = async (parsedOutput, context) => {
5095
- const contents = map({});
5025
+ const contents = (0, smithy_client_1.map)({});
5096
5026
  const data = parsedOutput.body.Error;
5097
5027
  if (data["message"] !== undefined) {
5098
5028
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5104,7 +5034,7 @@ const de_HealthCheckAlreadyExistsRes = async (parsedOutput, context) => {
5104
5034
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5105
5035
  };
5106
5036
  const de_HealthCheckInUseRes = async (parsedOutput, context) => {
5107
- const contents = map({});
5037
+ const contents = (0, smithy_client_1.map)({});
5108
5038
  const data = parsedOutput.body.Error;
5109
5039
  if (data["message"] !== undefined) {
5110
5040
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5116,7 +5046,7 @@ const de_HealthCheckInUseRes = async (parsedOutput, context) => {
5116
5046
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5117
5047
  };
5118
5048
  const de_HealthCheckVersionMismatchRes = async (parsedOutput, context) => {
5119
- const contents = map({});
5049
+ const contents = (0, smithy_client_1.map)({});
5120
5050
  const data = parsedOutput.body.Error;
5121
5051
  if (data["message"] !== undefined) {
5122
5052
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5128,7 +5058,7 @@ const de_HealthCheckVersionMismatchRes = async (parsedOutput, context) => {
5128
5058
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5129
5059
  };
5130
5060
  const de_HostedZoneAlreadyExistsRes = async (parsedOutput, context) => {
5131
- const contents = map({});
5061
+ const contents = (0, smithy_client_1.map)({});
5132
5062
  const data = parsedOutput.body.Error;
5133
5063
  if (data["message"] !== undefined) {
5134
5064
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5140,7 +5070,7 @@ const de_HostedZoneAlreadyExistsRes = async (parsedOutput, context) => {
5140
5070
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5141
5071
  };
5142
5072
  const de_HostedZoneNotEmptyRes = async (parsedOutput, context) => {
5143
- const contents = map({});
5073
+ const contents = (0, smithy_client_1.map)({});
5144
5074
  const data = parsedOutput.body.Error;
5145
5075
  if (data["message"] !== undefined) {
5146
5076
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5152,7 +5082,7 @@ const de_HostedZoneNotEmptyRes = async (parsedOutput, context) => {
5152
5082
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5153
5083
  };
5154
5084
  const de_HostedZoneNotFoundRes = async (parsedOutput, context) => {
5155
- const contents = map({});
5085
+ const contents = (0, smithy_client_1.map)({});
5156
5086
  const data = parsedOutput.body.Error;
5157
5087
  if (data["message"] !== undefined) {
5158
5088
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5164,7 +5094,7 @@ const de_HostedZoneNotFoundRes = async (parsedOutput, context) => {
5164
5094
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5165
5095
  };
5166
5096
  const de_HostedZoneNotPrivateRes = async (parsedOutput, context) => {
5167
- const contents = map({});
5097
+ const contents = (0, smithy_client_1.map)({});
5168
5098
  const data = parsedOutput.body.Error;
5169
5099
  if (data["message"] !== undefined) {
5170
5100
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5176,7 +5106,7 @@ const de_HostedZoneNotPrivateRes = async (parsedOutput, context) => {
5176
5106
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5177
5107
  };
5178
5108
  const de_HostedZonePartiallyDelegatedRes = async (parsedOutput, context) => {
5179
- const contents = map({});
5109
+ const contents = (0, smithy_client_1.map)({});
5180
5110
  const data = parsedOutput.body.Error;
5181
5111
  if (data["message"] !== undefined) {
5182
5112
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5188,7 +5118,7 @@ const de_HostedZonePartiallyDelegatedRes = async (parsedOutput, context) => {
5188
5118
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5189
5119
  };
5190
5120
  const de_IncompatibleVersionRes = async (parsedOutput, context) => {
5191
- const contents = map({});
5121
+ const contents = (0, smithy_client_1.map)({});
5192
5122
  const data = parsedOutput.body.Error;
5193
5123
  if (data["message"] !== undefined) {
5194
5124
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5200,7 +5130,7 @@ const de_IncompatibleVersionRes = async (parsedOutput, context) => {
5200
5130
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5201
5131
  };
5202
5132
  const de_InsufficientCloudWatchLogsResourcePolicyRes = async (parsedOutput, context) => {
5203
- const contents = map({});
5133
+ const contents = (0, smithy_client_1.map)({});
5204
5134
  const data = parsedOutput.body.Error;
5205
5135
  if (data["message"] !== undefined) {
5206
5136
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5212,7 +5142,7 @@ const de_InsufficientCloudWatchLogsResourcePolicyRes = async (parsedOutput, cont
5212
5142
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5213
5143
  };
5214
5144
  const de_InvalidArgumentRes = async (parsedOutput, context) => {
5215
- const contents = map({});
5145
+ const contents = (0, smithy_client_1.map)({});
5216
5146
  const data = parsedOutput.body.Error;
5217
5147
  if (data["message"] !== undefined) {
5218
5148
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5224,7 +5154,7 @@ const de_InvalidArgumentRes = async (parsedOutput, context) => {
5224
5154
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5225
5155
  };
5226
5156
  const de_InvalidChangeBatchRes = async (parsedOutput, context) => {
5227
- const contents = map({});
5157
+ const contents = (0, smithy_client_1.map)({});
5228
5158
  const data = parsedOutput.body.Error;
5229
5159
  if (data["message"] !== undefined) {
5230
5160
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5242,7 +5172,7 @@ const de_InvalidChangeBatchRes = async (parsedOutput, context) => {
5242
5172
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5243
5173
  };
5244
5174
  const de_InvalidDomainNameRes = async (parsedOutput, context) => {
5245
- const contents = map({});
5175
+ const contents = (0, smithy_client_1.map)({});
5246
5176
  const data = parsedOutput.body.Error;
5247
5177
  if (data["message"] !== undefined) {
5248
5178
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5254,7 +5184,7 @@ const de_InvalidDomainNameRes = async (parsedOutput, context) => {
5254
5184
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5255
5185
  };
5256
5186
  const de_InvalidInputRes = async (parsedOutput, context) => {
5257
- const contents = map({});
5187
+ const contents = (0, smithy_client_1.map)({});
5258
5188
  const data = parsedOutput.body.Error;
5259
5189
  if (data["message"] !== undefined) {
5260
5190
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5266,7 +5196,7 @@ const de_InvalidInputRes = async (parsedOutput, context) => {
5266
5196
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5267
5197
  };
5268
5198
  const de_InvalidKeySigningKeyNameRes = async (parsedOutput, context) => {
5269
- const contents = map({});
5199
+ const contents = (0, smithy_client_1.map)({});
5270
5200
  const data = parsedOutput.body.Error;
5271
5201
  if (data["message"] !== undefined) {
5272
5202
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5278,7 +5208,7 @@ const de_InvalidKeySigningKeyNameRes = async (parsedOutput, context) => {
5278
5208
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5279
5209
  };
5280
5210
  const de_InvalidKeySigningKeyStatusRes = async (parsedOutput, context) => {
5281
- const contents = map({});
5211
+ const contents = (0, smithy_client_1.map)({});
5282
5212
  const data = parsedOutput.body.Error;
5283
5213
  if (data["message"] !== undefined) {
5284
5214
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5290,7 +5220,7 @@ const de_InvalidKeySigningKeyStatusRes = async (parsedOutput, context) => {
5290
5220
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5291
5221
  };
5292
5222
  const de_InvalidKMSArnRes = async (parsedOutput, context) => {
5293
- const contents = map({});
5223
+ const contents = (0, smithy_client_1.map)({});
5294
5224
  const data = parsedOutput.body.Error;
5295
5225
  if (data["message"] !== undefined) {
5296
5226
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5302,7 +5232,7 @@ const de_InvalidKMSArnRes = async (parsedOutput, context) => {
5302
5232
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5303
5233
  };
5304
5234
  const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
5305
- const contents = map({});
5235
+ const contents = (0, smithy_client_1.map)({});
5306
5236
  const data = parsedOutput.body.Error;
5307
5237
  if (data["message"] !== undefined) {
5308
5238
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5314,7 +5244,7 @@ const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
5314
5244
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5315
5245
  };
5316
5246
  const de_InvalidSigningStatusRes = async (parsedOutput, context) => {
5317
- const contents = map({});
5247
+ const contents = (0, smithy_client_1.map)({});
5318
5248
  const data = parsedOutput.body.Error;
5319
5249
  if (data["message"] !== undefined) {
5320
5250
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5326,7 +5256,7 @@ const de_InvalidSigningStatusRes = async (parsedOutput, context) => {
5326
5256
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5327
5257
  };
5328
5258
  const de_InvalidTrafficPolicyDocumentRes = async (parsedOutput, context) => {
5329
- const contents = map({});
5259
+ const contents = (0, smithy_client_1.map)({});
5330
5260
  const data = parsedOutput.body.Error;
5331
5261
  if (data["message"] !== undefined) {
5332
5262
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5338,7 +5268,7 @@ const de_InvalidTrafficPolicyDocumentRes = async (parsedOutput, context) => {
5338
5268
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5339
5269
  };
5340
5270
  const de_InvalidVPCIdRes = async (parsedOutput, context) => {
5341
- const contents = map({});
5271
+ const contents = (0, smithy_client_1.map)({});
5342
5272
  const data = parsedOutput.body.Error;
5343
5273
  if (data["message"] !== undefined) {
5344
5274
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5350,7 +5280,7 @@ const de_InvalidVPCIdRes = async (parsedOutput, context) => {
5350
5280
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5351
5281
  };
5352
5282
  const de_KeySigningKeyAlreadyExistsRes = async (parsedOutput, context) => {
5353
- const contents = map({});
5283
+ const contents = (0, smithy_client_1.map)({});
5354
5284
  const data = parsedOutput.body.Error;
5355
5285
  if (data["message"] !== undefined) {
5356
5286
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5362,7 +5292,7 @@ const de_KeySigningKeyAlreadyExistsRes = async (parsedOutput, context) => {
5362
5292
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5363
5293
  };
5364
5294
  const de_KeySigningKeyInParentDSRecordRes = async (parsedOutput, context) => {
5365
- const contents = map({});
5295
+ const contents = (0, smithy_client_1.map)({});
5366
5296
  const data = parsedOutput.body.Error;
5367
5297
  if (data["message"] !== undefined) {
5368
5298
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5374,7 +5304,7 @@ const de_KeySigningKeyInParentDSRecordRes = async (parsedOutput, context) => {
5374
5304
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5375
5305
  };
5376
5306
  const de_KeySigningKeyInUseRes = async (parsedOutput, context) => {
5377
- const contents = map({});
5307
+ const contents = (0, smithy_client_1.map)({});
5378
5308
  const data = parsedOutput.body.Error;
5379
5309
  if (data["message"] !== undefined) {
5380
5310
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5386,7 +5316,7 @@ const de_KeySigningKeyInUseRes = async (parsedOutput, context) => {
5386
5316
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5387
5317
  };
5388
5318
  const de_KeySigningKeyWithActiveStatusNotFoundRes = async (parsedOutput, context) => {
5389
- const contents = map({});
5319
+ const contents = (0, smithy_client_1.map)({});
5390
5320
  const data = parsedOutput.body.Error;
5391
5321
  if (data["message"] !== undefined) {
5392
5322
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5398,7 +5328,7 @@ const de_KeySigningKeyWithActiveStatusNotFoundRes = async (parsedOutput, context
5398
5328
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5399
5329
  };
5400
5330
  const de_LastVPCAssociationRes = async (parsedOutput, context) => {
5401
- const contents = map({});
5331
+ const contents = (0, smithy_client_1.map)({});
5402
5332
  const data = parsedOutput.body.Error;
5403
5333
  if (data["message"] !== undefined) {
5404
5334
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5410,7 +5340,7 @@ const de_LastVPCAssociationRes = async (parsedOutput, context) => {
5410
5340
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5411
5341
  };
5412
5342
  const de_LimitsExceededRes = async (parsedOutput, context) => {
5413
- const contents = map({});
5343
+ const contents = (0, smithy_client_1.map)({});
5414
5344
  const data = parsedOutput.body.Error;
5415
5345
  if (data["message"] !== undefined) {
5416
5346
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5422,7 +5352,7 @@ const de_LimitsExceededRes = async (parsedOutput, context) => {
5422
5352
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5423
5353
  };
5424
5354
  const de_NoSuchChangeRes = async (parsedOutput, context) => {
5425
- const contents = map({});
5355
+ const contents = (0, smithy_client_1.map)({});
5426
5356
  const data = parsedOutput.body.Error;
5427
5357
  if (data["message"] !== undefined) {
5428
5358
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5434,7 +5364,7 @@ const de_NoSuchChangeRes = async (parsedOutput, context) => {
5434
5364
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5435
5365
  };
5436
5366
  const de_NoSuchCidrCollectionExceptionRes = async (parsedOutput, context) => {
5437
- const contents = map({});
5367
+ const contents = (0, smithy_client_1.map)({});
5438
5368
  const data = parsedOutput.body.Error;
5439
5369
  if (data["Message"] !== undefined) {
5440
5370
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -5446,7 +5376,7 @@ const de_NoSuchCidrCollectionExceptionRes = async (parsedOutput, context) => {
5446
5376
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5447
5377
  };
5448
5378
  const de_NoSuchCidrLocationExceptionRes = async (parsedOutput, context) => {
5449
- const contents = map({});
5379
+ const contents = (0, smithy_client_1.map)({});
5450
5380
  const data = parsedOutput.body.Error;
5451
5381
  if (data["Message"] !== undefined) {
5452
5382
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -5458,7 +5388,7 @@ const de_NoSuchCidrLocationExceptionRes = async (parsedOutput, context) => {
5458
5388
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5459
5389
  };
5460
5390
  const de_NoSuchCloudWatchLogsLogGroupRes = async (parsedOutput, context) => {
5461
- const contents = map({});
5391
+ const contents = (0, smithy_client_1.map)({});
5462
5392
  const data = parsedOutput.body.Error;
5463
5393
  if (data["message"] !== undefined) {
5464
5394
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5470,7 +5400,7 @@ const de_NoSuchCloudWatchLogsLogGroupRes = async (parsedOutput, context) => {
5470
5400
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5471
5401
  };
5472
5402
  const de_NoSuchDelegationSetRes = async (parsedOutput, context) => {
5473
- const contents = map({});
5403
+ const contents = (0, smithy_client_1.map)({});
5474
5404
  const data = parsedOutput.body.Error;
5475
5405
  if (data["message"] !== undefined) {
5476
5406
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5482,7 +5412,7 @@ const de_NoSuchDelegationSetRes = async (parsedOutput, context) => {
5482
5412
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5483
5413
  };
5484
5414
  const de_NoSuchGeoLocationRes = async (parsedOutput, context) => {
5485
- const contents = map({});
5415
+ const contents = (0, smithy_client_1.map)({});
5486
5416
  const data = parsedOutput.body.Error;
5487
5417
  if (data["message"] !== undefined) {
5488
5418
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5494,7 +5424,7 @@ const de_NoSuchGeoLocationRes = async (parsedOutput, context) => {
5494
5424
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5495
5425
  };
5496
5426
  const de_NoSuchHealthCheckRes = async (parsedOutput, context) => {
5497
- const contents = map({});
5427
+ const contents = (0, smithy_client_1.map)({});
5498
5428
  const data = parsedOutput.body.Error;
5499
5429
  if (data["message"] !== undefined) {
5500
5430
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5506,7 +5436,7 @@ const de_NoSuchHealthCheckRes = async (parsedOutput, context) => {
5506
5436
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5507
5437
  };
5508
5438
  const de_NoSuchHostedZoneRes = async (parsedOutput, context) => {
5509
- const contents = map({});
5439
+ const contents = (0, smithy_client_1.map)({});
5510
5440
  const data = parsedOutput.body.Error;
5511
5441
  if (data["message"] !== undefined) {
5512
5442
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5518,7 +5448,7 @@ const de_NoSuchHostedZoneRes = async (parsedOutput, context) => {
5518
5448
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5519
5449
  };
5520
5450
  const de_NoSuchKeySigningKeyRes = async (parsedOutput, context) => {
5521
- const contents = map({});
5451
+ const contents = (0, smithy_client_1.map)({});
5522
5452
  const data = parsedOutput.body.Error;
5523
5453
  if (data["message"] !== undefined) {
5524
5454
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5530,7 +5460,7 @@ const de_NoSuchKeySigningKeyRes = async (parsedOutput, context) => {
5530
5460
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5531
5461
  };
5532
5462
  const de_NoSuchQueryLoggingConfigRes = async (parsedOutput, context) => {
5533
- const contents = map({});
5463
+ const contents = (0, smithy_client_1.map)({});
5534
5464
  const data = parsedOutput.body.Error;
5535
5465
  if (data["message"] !== undefined) {
5536
5466
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5542,7 +5472,7 @@ const de_NoSuchQueryLoggingConfigRes = async (parsedOutput, context) => {
5542
5472
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5543
5473
  };
5544
5474
  const de_NoSuchTrafficPolicyRes = async (parsedOutput, context) => {
5545
- const contents = map({});
5475
+ const contents = (0, smithy_client_1.map)({});
5546
5476
  const data = parsedOutput.body.Error;
5547
5477
  if (data["message"] !== undefined) {
5548
5478
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5554,7 +5484,7 @@ const de_NoSuchTrafficPolicyRes = async (parsedOutput, context) => {
5554
5484
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5555
5485
  };
5556
5486
  const de_NoSuchTrafficPolicyInstanceRes = async (parsedOutput, context) => {
5557
- const contents = map({});
5487
+ const contents = (0, smithy_client_1.map)({});
5558
5488
  const data = parsedOutput.body.Error;
5559
5489
  if (data["message"] !== undefined) {
5560
5490
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5566,7 +5496,7 @@ const de_NoSuchTrafficPolicyInstanceRes = async (parsedOutput, context) => {
5566
5496
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5567
5497
  };
5568
5498
  const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
5569
- const contents = map({});
5499
+ const contents = (0, smithy_client_1.map)({});
5570
5500
  const data = parsedOutput.body.Error;
5571
5501
  if (data["message"] !== undefined) {
5572
5502
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5578,7 +5508,7 @@ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
5578
5508
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5579
5509
  };
5580
5510
  const de_PriorRequestNotCompleteRes = async (parsedOutput, context) => {
5581
- const contents = map({});
5511
+ const contents = (0, smithy_client_1.map)({});
5582
5512
  const data = parsedOutput.body.Error;
5583
5513
  if (data["message"] !== undefined) {
5584
5514
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5590,7 +5520,7 @@ const de_PriorRequestNotCompleteRes = async (parsedOutput, context) => {
5590
5520
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5591
5521
  };
5592
5522
  const de_PublicZoneVPCAssociationRes = async (parsedOutput, context) => {
5593
- const contents = map({});
5523
+ const contents = (0, smithy_client_1.map)({});
5594
5524
  const data = parsedOutput.body.Error;
5595
5525
  if (data["message"] !== undefined) {
5596
5526
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5602,7 +5532,7 @@ const de_PublicZoneVPCAssociationRes = async (parsedOutput, context) => {
5602
5532
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5603
5533
  };
5604
5534
  const de_QueryLoggingConfigAlreadyExistsRes = async (parsedOutput, context) => {
5605
- const contents = map({});
5535
+ const contents = (0, smithy_client_1.map)({});
5606
5536
  const data = parsedOutput.body.Error;
5607
5537
  if (data["message"] !== undefined) {
5608
5538
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5614,7 +5544,7 @@ const de_QueryLoggingConfigAlreadyExistsRes = async (parsedOutput, context) => {
5614
5544
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5615
5545
  };
5616
5546
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
5617
- const contents = map({});
5547
+ const contents = (0, smithy_client_1.map)({});
5618
5548
  const data = parsedOutput.body.Error;
5619
5549
  if (data["message"] !== undefined) {
5620
5550
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5626,7 +5556,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
5626
5556
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5627
5557
  };
5628
5558
  const de_TooManyHealthChecksRes = async (parsedOutput, context) => {
5629
- const contents = map({});
5559
+ const contents = (0, smithy_client_1.map)({});
5630
5560
  const data = parsedOutput.body.Error;
5631
5561
  if (data["message"] !== undefined) {
5632
5562
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5638,7 +5568,7 @@ const de_TooManyHealthChecksRes = async (parsedOutput, context) => {
5638
5568
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5639
5569
  };
5640
5570
  const de_TooManyHostedZonesRes = async (parsedOutput, context) => {
5641
- const contents = map({});
5571
+ const contents = (0, smithy_client_1.map)({});
5642
5572
  const data = parsedOutput.body.Error;
5643
5573
  if (data["message"] !== undefined) {
5644
5574
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5650,7 +5580,7 @@ const de_TooManyHostedZonesRes = async (parsedOutput, context) => {
5650
5580
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5651
5581
  };
5652
5582
  const de_TooManyKeySigningKeysRes = async (parsedOutput, context) => {
5653
- const contents = map({});
5583
+ const contents = (0, smithy_client_1.map)({});
5654
5584
  const data = parsedOutput.body.Error;
5655
5585
  if (data["message"] !== undefined) {
5656
5586
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5662,7 +5592,7 @@ const de_TooManyKeySigningKeysRes = async (parsedOutput, context) => {
5662
5592
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5663
5593
  };
5664
5594
  const de_TooManyTrafficPoliciesRes = async (parsedOutput, context) => {
5665
- const contents = map({});
5595
+ const contents = (0, smithy_client_1.map)({});
5666
5596
  const data = parsedOutput.body.Error;
5667
5597
  if (data["message"] !== undefined) {
5668
5598
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5674,7 +5604,7 @@ const de_TooManyTrafficPoliciesRes = async (parsedOutput, context) => {
5674
5604
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5675
5605
  };
5676
5606
  const de_TooManyTrafficPolicyInstancesRes = async (parsedOutput, context) => {
5677
- const contents = map({});
5607
+ const contents = (0, smithy_client_1.map)({});
5678
5608
  const data = parsedOutput.body.Error;
5679
5609
  if (data["message"] !== undefined) {
5680
5610
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5686,7 +5616,7 @@ const de_TooManyTrafficPolicyInstancesRes = async (parsedOutput, context) => {
5686
5616
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5687
5617
  };
5688
5618
  const de_TooManyTrafficPolicyVersionsForCurrentPolicyRes = async (parsedOutput, context) => {
5689
- const contents = map({});
5619
+ const contents = (0, smithy_client_1.map)({});
5690
5620
  const data = parsedOutput.body.Error;
5691
5621
  if (data["message"] !== undefined) {
5692
5622
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5698,7 +5628,7 @@ const de_TooManyTrafficPolicyVersionsForCurrentPolicyRes = async (parsedOutput,
5698
5628
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5699
5629
  };
5700
5630
  const de_TooManyVPCAssociationAuthorizationsRes = async (parsedOutput, context) => {
5701
- const contents = map({});
5631
+ const contents = (0, smithy_client_1.map)({});
5702
5632
  const data = parsedOutput.body.Error;
5703
5633
  if (data["message"] !== undefined) {
5704
5634
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5710,7 +5640,7 @@ const de_TooManyVPCAssociationAuthorizationsRes = async (parsedOutput, context)
5710
5640
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5711
5641
  };
5712
5642
  const de_TrafficPolicyAlreadyExistsRes = async (parsedOutput, context) => {
5713
- const contents = map({});
5643
+ const contents = (0, smithy_client_1.map)({});
5714
5644
  const data = parsedOutput.body.Error;
5715
5645
  if (data["message"] !== undefined) {
5716
5646
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5722,7 +5652,7 @@ const de_TrafficPolicyAlreadyExistsRes = async (parsedOutput, context) => {
5722
5652
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5723
5653
  };
5724
5654
  const de_TrafficPolicyInstanceAlreadyExistsRes = async (parsedOutput, context) => {
5725
- const contents = map({});
5655
+ const contents = (0, smithy_client_1.map)({});
5726
5656
  const data = parsedOutput.body.Error;
5727
5657
  if (data["message"] !== undefined) {
5728
5658
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5734,7 +5664,7 @@ const de_TrafficPolicyInstanceAlreadyExistsRes = async (parsedOutput, context) =
5734
5664
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5735
5665
  };
5736
5666
  const de_TrafficPolicyInUseRes = async (parsedOutput, context) => {
5737
- const contents = map({});
5667
+ const contents = (0, smithy_client_1.map)({});
5738
5668
  const data = parsedOutput.body.Error;
5739
5669
  if (data["message"] !== undefined) {
5740
5670
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5746,7 +5676,7 @@ const de_TrafficPolicyInUseRes = async (parsedOutput, context) => {
5746
5676
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5747
5677
  };
5748
5678
  const de_VPCAssociationAuthorizationNotFoundRes = async (parsedOutput, context) => {
5749
- const contents = map({});
5679
+ const contents = (0, smithy_client_1.map)({});
5750
5680
  const data = parsedOutput.body.Error;
5751
5681
  if (data["message"] !== undefined) {
5752
5682
  contents.message = (0, smithy_client_1.expectString)(data["message"]);
@@ -5758,7 +5688,7 @@ const de_VPCAssociationAuthorizationNotFoundRes = async (parsedOutput, context)
5758
5688
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
5759
5689
  };
5760
5690
  const de_VPCAssociationNotFoundRes = async (parsedOutput, context) => {
5761
- const contents = map({});
5691
+ const contents = (0, smithy_client_1.map)({});
5762
5692
  const data = parsedOutput.body.Error;
5763
5693
  if (data["message"] !== undefined) {
5764
5694
  contents.message = (0, smithy_client_1.expectString)(data["message"]);