@aws-sdk/client-accessanalyzer 3.28.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/AccessAnalyzer.ts +17 -20
  2. package/AccessAnalyzerClient.ts +9 -9
  3. package/CHANGELOG.md +35 -0
  4. package/README.md +9 -9
  5. package/commands/CreateAccessPreviewCommand.ts +2 -2
  6. package/commands/CreateArchiveRuleCommand.ts +1 -2
  7. package/commands/DeleteAnalyzerCommand.ts +3 -3
  8. package/commands/GetArchiveRuleCommand.ts +1 -2
  9. package/commands/ListFindingsCommand.ts +1 -2
  10. package/dist/cjs/AccessAnalyzer.js +9 -9
  11. package/dist/cjs/AccessAnalyzer.js.map +1 -1
  12. package/dist/cjs/AccessAnalyzerClient.js +9 -9
  13. package/dist/cjs/commands/CreateAccessPreviewCommand.js +2 -2
  14. package/dist/cjs/commands/CreateArchiveRuleCommand.js +1 -2
  15. package/dist/cjs/commands/CreateArchiveRuleCommand.js.map +1 -1
  16. package/dist/cjs/commands/DeleteAnalyzerCommand.js +3 -3
  17. package/dist/cjs/commands/GetArchiveRuleCommand.js +1 -2
  18. package/dist/cjs/commands/GetArchiveRuleCommand.js.map +1 -1
  19. package/dist/cjs/commands/ListFindingsCommand.js +1 -2
  20. package/dist/cjs/commands/ListFindingsCommand.js.map +1 -1
  21. package/dist/cjs/models/models_0.js.map +1 -1
  22. package/dist/cjs/package.json +31 -31
  23. package/dist/cjs/protocols/Aws_restJson1.js +95 -53
  24. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  25. package/dist/es/AccessAnalyzer.js +9 -9
  26. package/dist/es/AccessAnalyzer.js.map +1 -1
  27. package/dist/es/AccessAnalyzerClient.js +9 -9
  28. package/dist/es/commands/CreateAccessPreviewCommand.js +2 -2
  29. package/dist/es/commands/CreateArchiveRuleCommand.js +1 -2
  30. package/dist/es/commands/CreateArchiveRuleCommand.js.map +1 -1
  31. package/dist/es/commands/DeleteAnalyzerCommand.js +3 -3
  32. package/dist/es/commands/GetArchiveRuleCommand.js +1 -2
  33. package/dist/es/commands/GetArchiveRuleCommand.js.map +1 -1
  34. package/dist/es/commands/ListFindingsCommand.js +1 -2
  35. package/dist/es/commands/ListFindingsCommand.js.map +1 -1
  36. package/dist/es/endpoints.js +1 -2
  37. package/dist/es/endpoints.js.map +1 -1
  38. package/dist/es/models/models_0.js.map +1 -1
  39. package/dist/es/package.json +31 -31
  40. package/dist/es/protocols/Aws_restJson1.js +186 -108
  41. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  42. package/dist/types/AccessAnalyzer.d.ts +17 -20
  43. package/dist/types/AccessAnalyzerClient.d.ts +9 -9
  44. package/dist/types/commands/CreateAccessPreviewCommand.d.ts +2 -2
  45. package/dist/types/commands/CreateArchiveRuleCommand.d.ts +1 -2
  46. package/dist/types/commands/DeleteAnalyzerCommand.d.ts +3 -3
  47. package/dist/types/commands/GetArchiveRuleCommand.d.ts +1 -2
  48. package/dist/types/commands/ListFindingsCommand.d.ts +1 -2
  49. package/dist/types/models/models_0.d.ts +105 -98
  50. package/dist/types/ts3.4/AccessAnalyzer.d.ts +17 -20
  51. package/dist/types/ts3.4/AccessAnalyzerClient.d.ts +9 -9
  52. package/dist/types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +2 -2
  53. package/dist/types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +1 -2
  54. package/dist/types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +3 -3
  55. package/dist/types/ts3.4/commands/GetArchiveRuleCommand.d.ts +1 -2
  56. package/dist/types/ts3.4/commands/ListFindingsCommand.d.ts +1 -2
  57. package/dist/types/ts3.4/models/models_0.d.ts +105 -98
  58. package/models/models_0.ts +105 -98
  59. package/package.json +31 -31
  60. package/protocols/Aws_restJson1.ts +120 -55
@@ -1,7 +1,7 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { AclGrantee, Configuration, NetworkOriginConfiguration, } from "../models/models_0";
3
3
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
4
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, strictParseInt as __strictParseInt, } from "@aws-sdk/smithy-client";
4
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
5
5
  import { v4 as generateIdempotencyToken } from "uuid";
6
6
  export var serializeAws_restJson1ApplyArchiveRuleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
7
7
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
@@ -1038,9 +1038,9 @@ var deserializeAws_restJson1CancelPolicyGenerationCommandError = function (outpu
1038
1038
  });
1039
1039
  }); };
1040
1040
  export var deserializeAws_restJson1CreateAccessPreviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1041
- var contents, data;
1042
- return __generator(this, function (_a) {
1043
- switch (_a.label) {
1041
+ var contents, data, _a, _b;
1042
+ return __generator(this, function (_c) {
1043
+ switch (_c.label) {
1044
1044
  case 0:
1045
1045
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1046
1046
  return [2 /*return*/, deserializeAws_restJson1CreateAccessPreviewCommandError(output, context)];
@@ -1049,9 +1049,11 @@ export var deserializeAws_restJson1CreateAccessPreviewCommand = function (output
1049
1049
  $metadata: deserializeMetadata(output),
1050
1050
  id: undefined,
1051
1051
  };
1052
+ _a = __expectNonNull;
1053
+ _b = __expectObject;
1052
1054
  return [4 /*yield*/, parseBody(output.body, context)];
1053
1055
  case 1:
1054
- data = _a.sent();
1056
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1055
1057
  if (data.id !== undefined && data.id !== null) {
1056
1058
  contents.id = __expectString(data.id);
1057
1059
  }
@@ -1146,9 +1148,9 @@ var deserializeAws_restJson1CreateAccessPreviewCommandError = function (output,
1146
1148
  });
1147
1149
  }); };
1148
1150
  export var deserializeAws_restJson1CreateAnalyzerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1149
- var contents, data;
1150
- return __generator(this, function (_a) {
1151
- switch (_a.label) {
1151
+ var contents, data, _a, _b;
1152
+ return __generator(this, function (_c) {
1153
+ switch (_c.label) {
1152
1154
  case 0:
1153
1155
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1154
1156
  return [2 /*return*/, deserializeAws_restJson1CreateAnalyzerCommandError(output, context)];
@@ -1157,9 +1159,11 @@ export var deserializeAws_restJson1CreateAnalyzerCommand = function (output, con
1157
1159
  $metadata: deserializeMetadata(output),
1158
1160
  arn: undefined,
1159
1161
  };
1162
+ _a = __expectNonNull;
1163
+ _b = __expectObject;
1160
1164
  return [4 /*yield*/, parseBody(output.body, context)];
1161
1165
  case 1:
1162
- data = _a.sent();
1166
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1163
1167
  if (data.arn !== undefined && data.arn !== null) {
1164
1168
  contents.arn = __expectString(data.arn);
1165
1169
  }
@@ -1526,9 +1530,9 @@ var deserializeAws_restJson1DeleteArchiveRuleCommandError = function (output, co
1526
1530
  });
1527
1531
  }); };
1528
1532
  export var deserializeAws_restJson1GetAccessPreviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1529
- var contents, data;
1530
- return __generator(this, function (_a) {
1531
- switch (_a.label) {
1533
+ var contents, data, _a, _b;
1534
+ return __generator(this, function (_c) {
1535
+ switch (_c.label) {
1532
1536
  case 0:
1533
1537
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1534
1538
  return [2 /*return*/, deserializeAws_restJson1GetAccessPreviewCommandError(output, context)];
@@ -1537,9 +1541,11 @@ export var deserializeAws_restJson1GetAccessPreviewCommand = function (output, c
1537
1541
  $metadata: deserializeMetadata(output),
1538
1542
  accessPreview: undefined,
1539
1543
  };
1544
+ _a = __expectNonNull;
1545
+ _b = __expectObject;
1540
1546
  return [4 /*yield*/, parseBody(output.body, context)];
1541
1547
  case 1:
1542
- data = _a.sent();
1548
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1543
1549
  if (data.accessPreview !== undefined && data.accessPreview !== null) {
1544
1550
  contents.accessPreview = deserializeAws_restJson1AccessPreview(data.accessPreview, context);
1545
1551
  }
@@ -1618,9 +1624,9 @@ var deserializeAws_restJson1GetAccessPreviewCommandError = function (output, con
1618
1624
  });
1619
1625
  }); };
1620
1626
  export var deserializeAws_restJson1GetAnalyzedResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1621
- var contents, data;
1622
- return __generator(this, function (_a) {
1623
- switch (_a.label) {
1627
+ var contents, data, _a, _b;
1628
+ return __generator(this, function (_c) {
1629
+ switch (_c.label) {
1624
1630
  case 0:
1625
1631
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1626
1632
  return [2 /*return*/, deserializeAws_restJson1GetAnalyzedResourceCommandError(output, context)];
@@ -1629,9 +1635,11 @@ export var deserializeAws_restJson1GetAnalyzedResourceCommand = function (output
1629
1635
  $metadata: deserializeMetadata(output),
1630
1636
  resource: undefined,
1631
1637
  };
1638
+ _a = __expectNonNull;
1639
+ _b = __expectObject;
1632
1640
  return [4 /*yield*/, parseBody(output.body, context)];
1633
1641
  case 1:
1634
- data = _a.sent();
1642
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1635
1643
  if (data.resource !== undefined && data.resource !== null) {
1636
1644
  contents.resource = deserializeAws_restJson1AnalyzedResource(data.resource, context);
1637
1645
  }
@@ -1710,9 +1718,9 @@ var deserializeAws_restJson1GetAnalyzedResourceCommandError = function (output,
1710
1718
  });
1711
1719
  }); };
1712
1720
  export var deserializeAws_restJson1GetAnalyzerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1713
- var contents, data;
1714
- return __generator(this, function (_a) {
1715
- switch (_a.label) {
1721
+ var contents, data, _a, _b;
1722
+ return __generator(this, function (_c) {
1723
+ switch (_c.label) {
1716
1724
  case 0:
1717
1725
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1718
1726
  return [2 /*return*/, deserializeAws_restJson1GetAnalyzerCommandError(output, context)];
@@ -1721,9 +1729,11 @@ export var deserializeAws_restJson1GetAnalyzerCommand = function (output, contex
1721
1729
  $metadata: deserializeMetadata(output),
1722
1730
  analyzer: undefined,
1723
1731
  };
1732
+ _a = __expectNonNull;
1733
+ _b = __expectObject;
1724
1734
  return [4 /*yield*/, parseBody(output.body, context)];
1725
1735
  case 1:
1726
- data = _a.sent();
1736
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1727
1737
  if (data.analyzer !== undefined && data.analyzer !== null) {
1728
1738
  contents.analyzer = deserializeAws_restJson1AnalyzerSummary(data.analyzer, context);
1729
1739
  }
@@ -1802,9 +1812,9 @@ var deserializeAws_restJson1GetAnalyzerCommandError = function (output, context)
1802
1812
  });
1803
1813
  }); };
1804
1814
  export var deserializeAws_restJson1GetArchiveRuleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1805
- var contents, data;
1806
- return __generator(this, function (_a) {
1807
- switch (_a.label) {
1815
+ var contents, data, _a, _b;
1816
+ return __generator(this, function (_c) {
1817
+ switch (_c.label) {
1808
1818
  case 0:
1809
1819
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1810
1820
  return [2 /*return*/, deserializeAws_restJson1GetArchiveRuleCommandError(output, context)];
@@ -1813,9 +1823,11 @@ export var deserializeAws_restJson1GetArchiveRuleCommand = function (output, con
1813
1823
  $metadata: deserializeMetadata(output),
1814
1824
  archiveRule: undefined,
1815
1825
  };
1826
+ _a = __expectNonNull;
1827
+ _b = __expectObject;
1816
1828
  return [4 /*yield*/, parseBody(output.body, context)];
1817
1829
  case 1:
1818
- data = _a.sent();
1830
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1819
1831
  if (data.archiveRule !== undefined && data.archiveRule !== null) {
1820
1832
  contents.archiveRule = deserializeAws_restJson1ArchiveRuleSummary(data.archiveRule, context);
1821
1833
  }
@@ -1894,9 +1906,9 @@ var deserializeAws_restJson1GetArchiveRuleCommandError = function (output, conte
1894
1906
  });
1895
1907
  }); };
1896
1908
  export var deserializeAws_restJson1GetFindingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1897
- var contents, data;
1898
- return __generator(this, function (_a) {
1899
- switch (_a.label) {
1909
+ var contents, data, _a, _b;
1910
+ return __generator(this, function (_c) {
1911
+ switch (_c.label) {
1900
1912
  case 0:
1901
1913
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1902
1914
  return [2 /*return*/, deserializeAws_restJson1GetFindingCommandError(output, context)];
@@ -1905,9 +1917,11 @@ export var deserializeAws_restJson1GetFindingCommand = function (output, context
1905
1917
  $metadata: deserializeMetadata(output),
1906
1918
  finding: undefined,
1907
1919
  };
1920
+ _a = __expectNonNull;
1921
+ _b = __expectObject;
1908
1922
  return [4 /*yield*/, parseBody(output.body, context)];
1909
1923
  case 1:
1910
- data = _a.sent();
1924
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1911
1925
  if (data.finding !== undefined && data.finding !== null) {
1912
1926
  contents.finding = deserializeAws_restJson1Finding(data.finding, context);
1913
1927
  }
@@ -1986,9 +2000,9 @@ var deserializeAws_restJson1GetFindingCommandError = function (output, context)
1986
2000
  });
1987
2001
  }); };
1988
2002
  export var deserializeAws_restJson1GetGeneratedPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1989
- var contents, data;
1990
- return __generator(this, function (_a) {
1991
- switch (_a.label) {
2003
+ var contents, data, _a, _b;
2004
+ return __generator(this, function (_c) {
2005
+ switch (_c.label) {
1992
2006
  case 0:
1993
2007
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1994
2008
  return [2 /*return*/, deserializeAws_restJson1GetGeneratedPolicyCommandError(output, context)];
@@ -1998,9 +2012,11 @@ export var deserializeAws_restJson1GetGeneratedPolicyCommand = function (output,
1998
2012
  generatedPolicyResult: undefined,
1999
2013
  jobDetails: undefined,
2000
2014
  };
2015
+ _a = __expectNonNull;
2016
+ _b = __expectObject;
2001
2017
  return [4 /*yield*/, parseBody(output.body, context)];
2002
2018
  case 1:
2003
- data = _a.sent();
2019
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2004
2020
  if (data.generatedPolicyResult !== undefined && data.generatedPolicyResult !== null) {
2005
2021
  contents.generatedPolicyResult = deserializeAws_restJson1GeneratedPolicyResult(data.generatedPolicyResult, context);
2006
2022
  }
@@ -2074,9 +2090,9 @@ var deserializeAws_restJson1GetGeneratedPolicyCommandError = function (output, c
2074
2090
  });
2075
2091
  }); };
2076
2092
  export var deserializeAws_restJson1ListAccessPreviewFindingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2077
- var contents, data;
2078
- return __generator(this, function (_a) {
2079
- switch (_a.label) {
2093
+ var contents, data, _a, _b;
2094
+ return __generator(this, function (_c) {
2095
+ switch (_c.label) {
2080
2096
  case 0:
2081
2097
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2082
2098
  return [2 /*return*/, deserializeAws_restJson1ListAccessPreviewFindingsCommandError(output, context)];
@@ -2086,9 +2102,11 @@ export var deserializeAws_restJson1ListAccessPreviewFindingsCommand = function (
2086
2102
  findings: undefined,
2087
2103
  nextToken: undefined,
2088
2104
  };
2105
+ _a = __expectNonNull;
2106
+ _b = __expectObject;
2089
2107
  return [4 /*yield*/, parseBody(output.body, context)];
2090
2108
  case 1:
2091
- data = _a.sent();
2109
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2092
2110
  if (data.findings !== undefined && data.findings !== null) {
2093
2111
  contents.findings = deserializeAws_restJson1AccessPreviewFindingsList(data.findings, context);
2094
2112
  }
@@ -2178,9 +2196,9 @@ var deserializeAws_restJson1ListAccessPreviewFindingsCommandError = function (ou
2178
2196
  });
2179
2197
  }); };
2180
2198
  export var deserializeAws_restJson1ListAccessPreviewsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2181
- var contents, data;
2182
- return __generator(this, function (_a) {
2183
- switch (_a.label) {
2199
+ var contents, data, _a, _b;
2200
+ return __generator(this, function (_c) {
2201
+ switch (_c.label) {
2184
2202
  case 0:
2185
2203
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2186
2204
  return [2 /*return*/, deserializeAws_restJson1ListAccessPreviewsCommandError(output, context)];
@@ -2190,9 +2208,11 @@ export var deserializeAws_restJson1ListAccessPreviewsCommand = function (output,
2190
2208
  accessPreviews: undefined,
2191
2209
  nextToken: undefined,
2192
2210
  };
2211
+ _a = __expectNonNull;
2212
+ _b = __expectObject;
2193
2213
  return [4 /*yield*/, parseBody(output.body, context)];
2194
2214
  case 1:
2195
- data = _a.sent();
2215
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2196
2216
  if (data.accessPreviews !== undefined && data.accessPreviews !== null) {
2197
2217
  contents.accessPreviews = deserializeAws_restJson1AccessPreviewsList(data.accessPreviews, context);
2198
2218
  }
@@ -2274,9 +2294,9 @@ var deserializeAws_restJson1ListAccessPreviewsCommandError = function (output, c
2274
2294
  });
2275
2295
  }); };
2276
2296
  export var deserializeAws_restJson1ListAnalyzedResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2277
- var contents, data;
2278
- return __generator(this, function (_a) {
2279
- switch (_a.label) {
2297
+ var contents, data, _a, _b;
2298
+ return __generator(this, function (_c) {
2299
+ switch (_c.label) {
2280
2300
  case 0:
2281
2301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2282
2302
  return [2 /*return*/, deserializeAws_restJson1ListAnalyzedResourcesCommandError(output, context)];
@@ -2286,9 +2306,11 @@ export var deserializeAws_restJson1ListAnalyzedResourcesCommand = function (outp
2286
2306
  analyzedResources: undefined,
2287
2307
  nextToken: undefined,
2288
2308
  };
2309
+ _a = __expectNonNull;
2310
+ _b = __expectObject;
2289
2311
  return [4 /*yield*/, parseBody(output.body, context)];
2290
2312
  case 1:
2291
- data = _a.sent();
2313
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2292
2314
  if (data.analyzedResources !== undefined && data.analyzedResources !== null) {
2293
2315
  contents.analyzedResources = deserializeAws_restJson1AnalyzedResourcesList(data.analyzedResources, context);
2294
2316
  }
@@ -2370,9 +2392,9 @@ var deserializeAws_restJson1ListAnalyzedResourcesCommandError = function (output
2370
2392
  });
2371
2393
  }); };
2372
2394
  export var deserializeAws_restJson1ListAnalyzersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2373
- var contents, data;
2374
- return __generator(this, function (_a) {
2375
- switch (_a.label) {
2395
+ var contents, data, _a, _b;
2396
+ return __generator(this, function (_c) {
2397
+ switch (_c.label) {
2376
2398
  case 0:
2377
2399
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2378
2400
  return [2 /*return*/, deserializeAws_restJson1ListAnalyzersCommandError(output, context)];
@@ -2382,9 +2404,11 @@ export var deserializeAws_restJson1ListAnalyzersCommand = function (output, cont
2382
2404
  analyzers: undefined,
2383
2405
  nextToken: undefined,
2384
2406
  };
2407
+ _a = __expectNonNull;
2408
+ _b = __expectObject;
2385
2409
  return [4 /*yield*/, parseBody(output.body, context)];
2386
2410
  case 1:
2387
- data = _a.sent();
2411
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2388
2412
  if (data.analyzers !== undefined && data.analyzers !== null) {
2389
2413
  contents.analyzers = deserializeAws_restJson1AnalyzersList(data.analyzers, context);
2390
2414
  }
@@ -2458,9 +2482,9 @@ var deserializeAws_restJson1ListAnalyzersCommandError = function (output, contex
2458
2482
  });
2459
2483
  }); };
2460
2484
  export var deserializeAws_restJson1ListArchiveRulesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2461
- var contents, data;
2462
- return __generator(this, function (_a) {
2463
- switch (_a.label) {
2485
+ var contents, data, _a, _b;
2486
+ return __generator(this, function (_c) {
2487
+ switch (_c.label) {
2464
2488
  case 0:
2465
2489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2466
2490
  return [2 /*return*/, deserializeAws_restJson1ListArchiveRulesCommandError(output, context)];
@@ -2470,9 +2494,11 @@ export var deserializeAws_restJson1ListArchiveRulesCommand = function (output, c
2470
2494
  archiveRules: undefined,
2471
2495
  nextToken: undefined,
2472
2496
  };
2497
+ _a = __expectNonNull;
2498
+ _b = __expectObject;
2473
2499
  return [4 /*yield*/, parseBody(output.body, context)];
2474
2500
  case 1:
2475
- data = _a.sent();
2501
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2476
2502
  if (data.archiveRules !== undefined && data.archiveRules !== null) {
2477
2503
  contents.archiveRules = deserializeAws_restJson1ArchiveRulesList(data.archiveRules, context);
2478
2504
  }
@@ -2546,9 +2572,9 @@ var deserializeAws_restJson1ListArchiveRulesCommandError = function (output, con
2546
2572
  });
2547
2573
  }); };
2548
2574
  export var deserializeAws_restJson1ListFindingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2549
- var contents, data;
2550
- return __generator(this, function (_a) {
2551
- switch (_a.label) {
2575
+ var contents, data, _a, _b;
2576
+ return __generator(this, function (_c) {
2577
+ switch (_c.label) {
2552
2578
  case 0:
2553
2579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2554
2580
  return [2 /*return*/, deserializeAws_restJson1ListFindingsCommandError(output, context)];
@@ -2558,9 +2584,11 @@ export var deserializeAws_restJson1ListFindingsCommand = function (output, conte
2558
2584
  findings: undefined,
2559
2585
  nextToken: undefined,
2560
2586
  };
2587
+ _a = __expectNonNull;
2588
+ _b = __expectObject;
2561
2589
  return [4 /*yield*/, parseBody(output.body, context)];
2562
2590
  case 1:
2563
- data = _a.sent();
2591
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2564
2592
  if (data.findings !== undefined && data.findings !== null) {
2565
2593
  contents.findings = deserializeAws_restJson1FindingsList(data.findings, context);
2566
2594
  }
@@ -2642,9 +2670,9 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
2642
2670
  });
2643
2671
  }); };
2644
2672
  export var deserializeAws_restJson1ListPolicyGenerationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2645
- var contents, data;
2646
- return __generator(this, function (_a) {
2647
- switch (_a.label) {
2673
+ var contents, data, _a, _b;
2674
+ return __generator(this, function (_c) {
2675
+ switch (_c.label) {
2648
2676
  case 0:
2649
2677
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2650
2678
  return [2 /*return*/, deserializeAws_restJson1ListPolicyGenerationsCommandError(output, context)];
@@ -2654,9 +2682,11 @@ export var deserializeAws_restJson1ListPolicyGenerationsCommand = function (outp
2654
2682
  nextToken: undefined,
2655
2683
  policyGenerations: undefined,
2656
2684
  };
2685
+ _a = __expectNonNull;
2686
+ _b = __expectObject;
2657
2687
  return [4 /*yield*/, parseBody(output.body, context)];
2658
2688
  case 1:
2659
- data = _a.sent();
2689
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2660
2690
  if (data.nextToken !== undefined && data.nextToken !== null) {
2661
2691
  contents.nextToken = __expectString(data.nextToken);
2662
2692
  }
@@ -2730,9 +2760,9 @@ var deserializeAws_restJson1ListPolicyGenerationsCommandError = function (output
2730
2760
  });
2731
2761
  }); };
2732
2762
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2733
- var contents, data;
2734
- return __generator(this, function (_a) {
2735
- switch (_a.label) {
2763
+ var contents, data, _a, _b;
2764
+ return __generator(this, function (_c) {
2765
+ switch (_c.label) {
2736
2766
  case 0:
2737
2767
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2738
2768
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -2741,9 +2771,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2741
2771
  $metadata: deserializeMetadata(output),
2742
2772
  tags: undefined,
2743
2773
  };
2774
+ _a = __expectNonNull;
2775
+ _b = __expectObject;
2744
2776
  return [4 /*yield*/, parseBody(output.body, context)];
2745
2777
  case 1:
2746
- data = _a.sent();
2778
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2747
2779
  if (data.tags !== undefined && data.tags !== null) {
2748
2780
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2749
2781
  }
@@ -2822,9 +2854,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2822
2854
  });
2823
2855
  }); };
2824
2856
  export var deserializeAws_restJson1StartPolicyGenerationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2825
- var contents, data;
2826
- return __generator(this, function (_a) {
2827
- switch (_a.label) {
2857
+ var contents, data, _a, _b;
2858
+ return __generator(this, function (_c) {
2859
+ switch (_c.label) {
2828
2860
  case 0:
2829
2861
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2830
2862
  return [2 /*return*/, deserializeAws_restJson1StartPolicyGenerationCommandError(output, context)];
@@ -2833,9 +2865,11 @@ export var deserializeAws_restJson1StartPolicyGenerationCommand = function (outp
2833
2865
  $metadata: deserializeMetadata(output),
2834
2866
  jobId: undefined,
2835
2867
  };
2868
+ _a = __expectNonNull;
2869
+ _b = __expectObject;
2836
2870
  return [4 /*yield*/, parseBody(output.body, context)];
2837
2871
  case 1:
2838
- data = _a.sent();
2872
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2839
2873
  if (data.jobId !== undefined && data.jobId !== null) {
2840
2874
  contents.jobId = __expectString(data.jobId);
2841
2875
  }
@@ -3362,9 +3396,9 @@ var deserializeAws_restJson1UpdateFindingsCommandError = function (output, conte
3362
3396
  });
3363
3397
  }); };
3364
3398
  export var deserializeAws_restJson1ValidatePolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3365
- var contents, data;
3366
- return __generator(this, function (_a) {
3367
- switch (_a.label) {
3399
+ var contents, data, _a, _b;
3400
+ return __generator(this, function (_c) {
3401
+ switch (_c.label) {
3368
3402
  case 0:
3369
3403
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3370
3404
  return [2 /*return*/, deserializeAws_restJson1ValidatePolicyCommandError(output, context)];
@@ -3374,9 +3408,11 @@ export var deserializeAws_restJson1ValidatePolicyCommand = function (output, con
3374
3408
  findings: undefined,
3375
3409
  nextToken: undefined,
3376
3410
  };
3411
+ _a = __expectNonNull;
3412
+ _b = __expectObject;
3377
3413
  return [4 /*yield*/, parseBody(output.body, context)];
3378
3414
  case 1:
3379
- data = _a.sent();
3415
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3380
3416
  if (data.findings !== undefined && data.findings !== null) {
3381
3417
  contents.findings = deserializeAws_restJson1ValidatePolicyFindingList(data.findings, context);
3382
3418
  }
@@ -3501,7 +3537,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
3501
3537
  retryAfterSeconds: undefined,
3502
3538
  };
3503
3539
  if (parsedOutput.headers["retry-after"] !== undefined) {
3504
- contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]);
3540
+ contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
3505
3541
  }
3506
3542
  data = parsedOutput.body;
3507
3543
  if (data.message !== undefined && data.message !== null) {
@@ -3572,7 +3608,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
3572
3608
  retryAfterSeconds: undefined,
3573
3609
  };
3574
3610
  if (parsedOutput.headers["retry-after"] !== undefined) {
3575
- contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]);
3611
+ contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
3576
3612
  }
3577
3613
  data = parsedOutput.body;
3578
3614
  if (data.message !== undefined && data.message !== null) {
@@ -3877,7 +3913,9 @@ var deserializeAws_restJson1AccessPreview = function (output, context) {
3877
3913
  configurations: output.configurations !== undefined && output.configurations !== null
3878
3914
  ? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
3879
3915
  : undefined,
3880
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
3916
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
3917
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
3918
+ : undefined,
3881
3919
  id: __expectString(output.id),
3882
3920
  status: __expectString(output.status),
3883
3921
  statusReason: output.statusReason !== undefined && output.statusReason !== null
@@ -3894,7 +3932,9 @@ var deserializeAws_restJson1AccessPreviewFinding = function (output, context) {
3894
3932
  condition: output.condition !== undefined && output.condition !== null
3895
3933
  ? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
3896
3934
  : undefined,
3897
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
3935
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
3936
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
3937
+ : undefined,
3898
3938
  error: __expectString(output.error),
3899
3939
  existingFindingId: __expectString(output.existingFindingId),
3900
3940
  existingFindingStatus: __expectString(output.existingFindingStatus),
@@ -3940,7 +3980,9 @@ var deserializeAws_restJson1AccessPreviewStatusReason = function (output, contex
3940
3980
  var deserializeAws_restJson1AccessPreviewSummary = function (output, context) {
3941
3981
  return {
3942
3982
  analyzerArn: __expectString(output.analyzerArn),
3943
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
3983
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
3984
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
3985
+ : undefined,
3944
3986
  id: __expectString(output.id),
3945
3987
  status: __expectString(output.status),
3946
3988
  statusReason: output.statusReason !== undefined && output.statusReason !== null
@@ -3972,8 +4014,12 @@ var deserializeAws_restJson1AnalyzedResource = function (output, context) {
3972
4014
  actions: output.actions !== undefined && output.actions !== null
3973
4015
  ? deserializeAws_restJson1ActionList(output.actions, context)
3974
4016
  : undefined,
3975
- analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null ? new Date(output.analyzedAt) : undefined,
3976
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
4017
+ analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
4018
+ ? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
4019
+ : undefined,
4020
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
4021
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
4022
+ : undefined,
3977
4023
  error: __expectString(output.error),
3978
4024
  isPublic: __expectBoolean(output.isPublic),
3979
4025
  resourceArn: __expectString(output.resourceArn),
@@ -3983,7 +4029,9 @@ var deserializeAws_restJson1AnalyzedResource = function (output, context) {
3983
4029
  ? deserializeAws_restJson1SharedViaList(output.sharedVia, context)
3984
4030
  : undefined,
3985
4031
  status: __expectString(output.status),
3986
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null ? new Date(output.updatedAt) : undefined,
4032
+ updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4033
+ ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
4034
+ : undefined,
3987
4035
  };
3988
4036
  };
3989
4037
  var deserializeAws_restJson1AnalyzedResourcesList = function (output, context) {
@@ -4016,10 +4064,12 @@ var deserializeAws_restJson1AnalyzersList = function (output, context) {
4016
4064
  var deserializeAws_restJson1AnalyzerSummary = function (output, context) {
4017
4065
  return {
4018
4066
  arn: __expectString(output.arn),
4019
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
4067
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
4068
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
4069
+ : undefined,
4020
4070
  lastResourceAnalyzed: __expectString(output.lastResourceAnalyzed),
4021
4071
  lastResourceAnalyzedAt: output.lastResourceAnalyzedAt !== undefined && output.lastResourceAnalyzedAt !== null
4022
- ? new Date(output.lastResourceAnalyzedAt)
4072
+ ? __expectNonNull(__parseRfc3339DateTime(output.lastResourceAnalyzedAt))
4023
4073
  : undefined,
4024
4074
  name: __expectString(output.name),
4025
4075
  status: __expectString(output.status),
@@ -4044,18 +4094,26 @@ var deserializeAws_restJson1ArchiveRulesList = function (output, context) {
4044
4094
  };
4045
4095
  var deserializeAws_restJson1ArchiveRuleSummary = function (output, context) {
4046
4096
  return {
4047
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
4097
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
4098
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
4099
+ : undefined,
4048
4100
  filter: output.filter !== undefined && output.filter !== null
4049
4101
  ? deserializeAws_restJson1FilterCriteriaMap(output.filter, context)
4050
4102
  : undefined,
4051
4103
  ruleName: __expectString(output.ruleName),
4052
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null ? new Date(output.updatedAt) : undefined,
4104
+ updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4105
+ ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
4106
+ : undefined,
4053
4107
  };
4054
4108
  };
4055
4109
  var deserializeAws_restJson1CloudTrailProperties = function (output, context) {
4056
4110
  return {
4057
- endTime: output.endTime !== undefined && output.endTime !== null ? new Date(output.endTime) : undefined,
4058
- startTime: output.startTime !== undefined && output.startTime !== null ? new Date(output.startTime) : undefined,
4111
+ endTime: output.endTime !== undefined && output.endTime !== null
4112
+ ? __expectNonNull(__parseRfc3339DateTime(output.endTime))
4113
+ : undefined,
4114
+ startTime: output.startTime !== undefined && output.startTime !== null
4115
+ ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
4116
+ : undefined,
4059
4117
  trailProperties: output.trailProperties !== undefined && output.trailProperties !== null
4060
4118
  ? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
4061
4119
  : undefined,
@@ -4106,7 +4164,7 @@ var deserializeAws_restJson1ConfigurationsMap = function (output, context) {
4106
4164
  if (value === null) {
4107
4165
  return acc;
4108
4166
  }
4109
- return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1Configuration(value, context), _b));
4167
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1Configuration(__expectUnion(value), context), _b));
4110
4168
  }, {});
4111
4169
  };
4112
4170
  var deserializeAws_restJson1Criterion = function (output, context) {
@@ -4136,11 +4194,15 @@ var deserializeAws_restJson1Finding = function (output, context) {
4136
4194
  action: output.action !== undefined && output.action !== null
4137
4195
  ? deserializeAws_restJson1ActionList(output.action, context)
4138
4196
  : undefined,
4139
- analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null ? new Date(output.analyzedAt) : undefined,
4197
+ analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
4198
+ ? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
4199
+ : undefined,
4140
4200
  condition: output.condition !== undefined && output.condition !== null
4141
4201
  ? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
4142
4202
  : undefined,
4143
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
4203
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
4204
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
4205
+ : undefined,
4144
4206
  error: __expectString(output.error),
4145
4207
  id: __expectString(output.id),
4146
4208
  isPublic: __expectBoolean(output.isPublic),
@@ -4154,7 +4216,9 @@ var deserializeAws_restJson1Finding = function (output, context) {
4154
4216
  ? deserializeAws_restJson1FindingSourceList(output.sources, context)
4155
4217
  : undefined,
4156
4218
  status: __expectString(output.status),
4157
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null ? new Date(output.updatedAt) : undefined,
4219
+ updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4220
+ ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
4221
+ : undefined,
4158
4222
  };
4159
4223
  };
4160
4224
  var deserializeAws_restJson1FindingsList = function (output, context) {
@@ -4195,11 +4259,15 @@ var deserializeAws_restJson1FindingSummary = function (output, context) {
4195
4259
  action: output.action !== undefined && output.action !== null
4196
4260
  ? deserializeAws_restJson1ActionList(output.action, context)
4197
4261
  : undefined,
4198
- analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null ? new Date(output.analyzedAt) : undefined,
4262
+ analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
4263
+ ? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
4264
+ : undefined,
4199
4265
  condition: output.condition !== undefined && output.condition !== null
4200
4266
  ? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
4201
4267
  : undefined,
4202
- createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
4268
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
4269
+ ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
4270
+ : undefined,
4203
4271
  error: __expectString(output.error),
4204
4272
  id: __expectString(output.id),
4205
4273
  isPublic: __expectBoolean(output.isPublic),
@@ -4213,7 +4281,9 @@ var deserializeAws_restJson1FindingSummary = function (output, context) {
4213
4281
  ? deserializeAws_restJson1FindingSourceList(output.sources, context)
4214
4282
  : undefined,
4215
4283
  status: __expectString(output.status),
4216
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null ? new Date(output.updatedAt) : undefined,
4284
+ updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4285
+ ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
4286
+ : undefined,
4217
4287
  };
4218
4288
  };
4219
4289
  var deserializeAws_restJson1GeneratedPolicy = function (output, context) {
@@ -4260,12 +4330,16 @@ var deserializeAws_restJson1InternetConfiguration = function (output, context) {
4260
4330
  };
4261
4331
  var deserializeAws_restJson1JobDetails = function (output, context) {
4262
4332
  return {
4263
- completedOn: output.completedOn !== undefined && output.completedOn !== null ? new Date(output.completedOn) : undefined,
4333
+ completedOn: output.completedOn !== undefined && output.completedOn !== null
4334
+ ? __expectNonNull(__parseRfc3339DateTime(output.completedOn))
4335
+ : undefined,
4264
4336
  jobError: output.jobError !== undefined && output.jobError !== null
4265
4337
  ? deserializeAws_restJson1JobError(output.jobError, context)
4266
4338
  : undefined,
4267
4339
  jobId: __expectString(output.jobId),
4268
- startedOn: output.startedOn !== undefined && output.startedOn !== null ? new Date(output.startedOn) : undefined,
4340
+ startedOn: output.startedOn !== undefined && output.startedOn !== null
4341
+ ? __expectNonNull(__parseRfc3339DateTime(output.startedOn))
4342
+ : undefined,
4269
4343
  status: __expectString(output.status),
4270
4344
  };
4271
4345
  };
@@ -4382,8 +4456,8 @@ var deserializeAws_restJson1NetworkOriginConfiguration = function (output, conte
4382
4456
  return { $unknown: Object.entries(output)[0] };
4383
4457
  };
4384
4458
  var deserializeAws_restJson1PathElement = function (output, context) {
4385
- if (__expectInt(output.index) !== undefined) {
4386
- return { index: __expectInt(output.index) };
4459
+ if (__expectInt32(output.index) !== undefined) {
4460
+ return { index: __expectInt32(output.index) };
4387
4461
  }
4388
4462
  if (__expectString(output.key) !== undefined) {
4389
4463
  return { key: __expectString(output.key) };
@@ -4405,15 +4479,19 @@ var deserializeAws_restJson1PathElementList = function (output, context) {
4405
4479
  if (entry === null) {
4406
4480
  return null;
4407
4481
  }
4408
- return deserializeAws_restJson1PathElement(entry, context);
4482
+ return deserializeAws_restJson1PathElement(__expectUnion(entry), context);
4409
4483
  });
4410
4484
  };
4411
4485
  var deserializeAws_restJson1PolicyGeneration = function (output, context) {
4412
4486
  return {
4413
- completedOn: output.completedOn !== undefined && output.completedOn !== null ? new Date(output.completedOn) : undefined,
4487
+ completedOn: output.completedOn !== undefined && output.completedOn !== null
4488
+ ? __expectNonNull(__parseRfc3339DateTime(output.completedOn))
4489
+ : undefined,
4414
4490
  jobId: __expectString(output.jobId),
4415
4491
  principalArn: __expectString(output.principalArn),
4416
- startedOn: output.startedOn !== undefined && output.startedOn !== null ? new Date(output.startedOn) : undefined,
4492
+ startedOn: output.startedOn !== undefined && output.startedOn !== null
4493
+ ? __expectNonNull(__parseRfc3339DateTime(output.startedOn))
4494
+ : undefined,
4417
4495
  status: __expectString(output.status),
4418
4496
  };
4419
4497
  };
@@ -4429,9 +4507,9 @@ var deserializeAws_restJson1PolicyGenerationList = function (output, context) {
4429
4507
  };
4430
4508
  var deserializeAws_restJson1Position = function (output, context) {
4431
4509
  return {
4432
- column: __expectInt(output.column),
4433
- line: __expectInt(output.line),
4434
- offset: __expectInt(output.offset),
4510
+ column: __expectInt32(output.column),
4511
+ line: __expectInt32(output.line),
4512
+ offset: __expectInt32(output.offset),
4435
4513
  };
4436
4514
  };
4437
4515
  var deserializeAws_restJson1PrincipalMap = function (output, context) {
@@ -4458,7 +4536,7 @@ var deserializeAws_restJson1S3AccessPointConfiguration = function (output, conte
4458
4536
  return {
4459
4537
  accessPointPolicy: __expectString(output.accessPointPolicy),
4460
4538
  networkOrigin: output.networkOrigin !== undefined && output.networkOrigin !== null
4461
- ? deserializeAws_restJson1NetworkOriginConfiguration(output.networkOrigin, context)
4539
+ ? deserializeAws_restJson1NetworkOriginConfiguration(__expectUnion(output.networkOrigin), context)
4462
4540
  : undefined,
4463
4541
  publicAccessBlock: output.publicAccessBlock !== undefined && output.publicAccessBlock !== null
4464
4542
  ? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
@@ -4478,7 +4556,7 @@ var deserializeAws_restJson1S3AccessPointConfigurationsMap = function (output, c
4478
4556
  var deserializeAws_restJson1S3BucketAclGrantConfiguration = function (output, context) {
4479
4557
  return {
4480
4558
  grantee: output.grantee !== undefined && output.grantee !== null
4481
- ? deserializeAws_restJson1AclGrantee(output.grantee, context)
4559
+ ? deserializeAws_restJson1AclGrantee(__expectUnion(output.grantee), context)
4482
4560
  : undefined,
4483
4561
  permission: __expectString(output.permission),
4484
4562
  };
@@ -4551,8 +4629,8 @@ var deserializeAws_restJson1StatusReason = function (output, context) {
4551
4629
  };
4552
4630
  var deserializeAws_restJson1Substring = function (output, context) {
4553
4631
  return {
4554
- length: __expectInt(output.length),
4555
- start: __expectInt(output.start),
4632
+ length: __expectInt32(output.length),
4633
+ start: __expectInt32(output.start),
4556
4634
  };
4557
4635
  };
4558
4636
  var deserializeAws_restJson1TagsMap = function (output, context) {