@aws-sdk/client-auditmanager 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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
6
6
  return __generator(this, function (_c) {
@@ -1810,9 +1810,9 @@ var deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandError
1810
1810
  });
1811
1811
  }); };
1812
1812
  export var deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1813
- var contents, data;
1814
- return __generator(this, function (_a) {
1815
- switch (_a.label) {
1813
+ var contents, data, _a, _b;
1814
+ return __generator(this, function (_c) {
1815
+ switch (_c.label) {
1816
1816
  case 0:
1817
1817
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1818
1818
  return [2 /*return*/, deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError(output, context)];
@@ -1822,9 +1822,11 @@ export var deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand
1822
1822
  errors: undefined,
1823
1823
  evidenceIds: undefined,
1824
1824
  };
1825
+ _a = __expectNonNull;
1826
+ _b = __expectObject;
1825
1827
  return [4 /*yield*/, parseBody(output.body, context)];
1826
1828
  case 1:
1827
- data = _a.sent();
1829
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1828
1830
  if (data.errors !== undefined && data.errors !== null) {
1829
1831
  contents.errors = deserializeAws_restJson1AssessmentReportEvidenceErrors(data.errors, context);
1830
1832
  }
@@ -1898,9 +1900,9 @@ var deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError =
1898
1900
  });
1899
1901
  }); };
1900
1902
  export var deserializeAws_restJson1BatchCreateDelegationByAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1901
- var contents, data;
1902
- return __generator(this, function (_a) {
1903
- switch (_a.label) {
1903
+ var contents, data, _a, _b;
1904
+ return __generator(this, function (_c) {
1905
+ switch (_c.label) {
1904
1906
  case 0:
1905
1907
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1906
1908
  return [2 /*return*/, deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError(output, context)];
@@ -1910,9 +1912,11 @@ export var deserializeAws_restJson1BatchCreateDelegationByAssessmentCommand = fu
1910
1912
  delegations: undefined,
1911
1913
  errors: undefined,
1912
1914
  };
1915
+ _a = __expectNonNull;
1916
+ _b = __expectObject;
1913
1917
  return [4 /*yield*/, parseBody(output.body, context)];
1914
1918
  case 1:
1915
- data = _a.sent();
1919
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1916
1920
  if (data.delegations !== undefined && data.delegations !== null) {
1917
1921
  contents.delegations = deserializeAws_restJson1Delegations(data.delegations, context);
1918
1922
  }
@@ -1986,9 +1990,9 @@ var deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = func
1986
1990
  });
1987
1991
  }); };
1988
1992
  export var deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = 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) {
1993
+ var contents, data, _a, _b;
1994
+ return __generator(this, function (_c) {
1995
+ switch (_c.label) {
1992
1996
  case 0:
1993
1997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1994
1998
  return [2 /*return*/, deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError(output, context)];
@@ -1997,9 +2001,11 @@ export var deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = fu
1997
2001
  $metadata: deserializeMetadata(output),
1998
2002
  errors: undefined,
1999
2003
  };
2004
+ _a = __expectNonNull;
2005
+ _b = __expectObject;
2000
2006
  return [4 /*yield*/, parseBody(output.body, context)];
2001
2007
  case 1:
2002
- data = _a.sent();
2008
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2003
2009
  if (data.errors !== undefined && data.errors !== null) {
2004
2010
  contents.errors = deserializeAws_restJson1BatchDeleteDelegationByAssessmentErrors(data.errors, context);
2005
2011
  }
@@ -2070,9 +2076,9 @@ var deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = func
2070
2076
  });
2071
2077
  }); };
2072
2078
  export var deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2073
- var contents, data;
2074
- return __generator(this, function (_a) {
2075
- switch (_a.label) {
2079
+ var contents, data, _a, _b;
2080
+ return __generator(this, function (_c) {
2081
+ switch (_c.label) {
2076
2082
  case 0:
2077
2083
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2078
2084
  return [2 /*return*/, deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandError(output, context)];
@@ -2082,9 +2088,11 @@ export var deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceComm
2082
2088
  errors: undefined,
2083
2089
  evidenceIds: undefined,
2084
2090
  };
2091
+ _a = __expectNonNull;
2092
+ _b = __expectObject;
2085
2093
  return [4 /*yield*/, parseBody(output.body, context)];
2086
2094
  case 1:
2087
- data = _a.sent();
2095
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2088
2096
  if (data.errors !== undefined && data.errors !== null) {
2089
2097
  contents.errors = deserializeAws_restJson1AssessmentReportEvidenceErrors(data.errors, context);
2090
2098
  }
@@ -2158,9 +2166,9 @@ var deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandErro
2158
2166
  });
2159
2167
  }); };
2160
2168
  export var deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2161
- var contents, data;
2162
- return __generator(this, function (_a) {
2163
- switch (_a.label) {
2169
+ var contents, data, _a, _b;
2170
+ return __generator(this, function (_c) {
2171
+ switch (_c.label) {
2164
2172
  case 0:
2165
2173
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2166
2174
  return [2 /*return*/, deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError(output, context)];
@@ -2169,9 +2177,11 @@ export var deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand
2169
2177
  $metadata: deserializeMetadata(output),
2170
2178
  errors: undefined,
2171
2179
  };
2180
+ _a = __expectNonNull;
2181
+ _b = __expectObject;
2172
2182
  return [4 /*yield*/, parseBody(output.body, context)];
2173
2183
  case 1:
2174
- data = _a.sent();
2184
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2175
2185
  if (data.errors !== undefined && data.errors !== null) {
2176
2186
  contents.errors = deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors(data.errors, context);
2177
2187
  }
@@ -2242,9 +2252,9 @@ var deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError =
2242
2252
  });
2243
2253
  }); };
2244
2254
  export var deserializeAws_restJson1CreateAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2245
- var contents, data;
2246
- return __generator(this, function (_a) {
2247
- switch (_a.label) {
2255
+ var contents, data, _a, _b;
2256
+ return __generator(this, function (_c) {
2257
+ switch (_c.label) {
2248
2258
  case 0:
2249
2259
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2250
2260
  return [2 /*return*/, deserializeAws_restJson1CreateAssessmentCommandError(output, context)];
@@ -2253,9 +2263,11 @@ export var deserializeAws_restJson1CreateAssessmentCommand = function (output, c
2253
2263
  $metadata: deserializeMetadata(output),
2254
2264
  assessment: undefined,
2255
2265
  };
2266
+ _a = __expectNonNull;
2267
+ _b = __expectObject;
2256
2268
  return [4 /*yield*/, parseBody(output.body, context)];
2257
2269
  case 1:
2258
- data = _a.sent();
2270
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2259
2271
  if (data.assessment !== undefined && data.assessment !== null) {
2260
2272
  contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
2261
2273
  }
@@ -2326,9 +2338,9 @@ var deserializeAws_restJson1CreateAssessmentCommandError = function (output, con
2326
2338
  });
2327
2339
  }); };
2328
2340
  export var deserializeAws_restJson1CreateAssessmentFrameworkCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2329
- var contents, data;
2330
- return __generator(this, function (_a) {
2331
- switch (_a.label) {
2341
+ var contents, data, _a, _b;
2342
+ return __generator(this, function (_c) {
2343
+ switch (_c.label) {
2332
2344
  case 0:
2333
2345
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2334
2346
  return [2 /*return*/, deserializeAws_restJson1CreateAssessmentFrameworkCommandError(output, context)];
@@ -2337,9 +2349,11 @@ export var deserializeAws_restJson1CreateAssessmentFrameworkCommand = function (
2337
2349
  $metadata: deserializeMetadata(output),
2338
2350
  framework: undefined,
2339
2351
  };
2352
+ _a = __expectNonNull;
2353
+ _b = __expectObject;
2340
2354
  return [4 /*yield*/, parseBody(output.body, context)];
2341
2355
  case 1:
2342
- data = _a.sent();
2356
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2343
2357
  if (data.framework !== undefined && data.framework !== null) {
2344
2358
  contents.framework = deserializeAws_restJson1Framework(data.framework, context);
2345
2359
  }
@@ -2410,9 +2424,9 @@ var deserializeAws_restJson1CreateAssessmentFrameworkCommandError = function (ou
2410
2424
  });
2411
2425
  }); };
2412
2426
  export var deserializeAws_restJson1CreateAssessmentReportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2413
- var contents, data;
2414
- return __generator(this, function (_a) {
2415
- switch (_a.label) {
2427
+ var contents, data, _a, _b;
2428
+ return __generator(this, function (_c) {
2429
+ switch (_c.label) {
2416
2430
  case 0:
2417
2431
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2418
2432
  return [2 /*return*/, deserializeAws_restJson1CreateAssessmentReportCommandError(output, context)];
@@ -2421,9 +2435,11 @@ export var deserializeAws_restJson1CreateAssessmentReportCommand = function (out
2421
2435
  $metadata: deserializeMetadata(output),
2422
2436
  assessmentReport: undefined,
2423
2437
  };
2438
+ _a = __expectNonNull;
2439
+ _b = __expectObject;
2424
2440
  return [4 /*yield*/, parseBody(output.body, context)];
2425
2441
  case 1:
2426
- data = _a.sent();
2442
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2427
2443
  if (data.assessmentReport !== undefined && data.assessmentReport !== null) {
2428
2444
  contents.assessmentReport = deserializeAws_restJson1AssessmentReport(data.assessmentReport, context);
2429
2445
  }
@@ -2494,9 +2510,9 @@ var deserializeAws_restJson1CreateAssessmentReportCommandError = function (outpu
2494
2510
  });
2495
2511
  }); };
2496
2512
  export var deserializeAws_restJson1CreateControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2497
- var contents, data;
2498
- return __generator(this, function (_a) {
2499
- switch (_a.label) {
2513
+ var contents, data, _a, _b;
2514
+ return __generator(this, function (_c) {
2515
+ switch (_c.label) {
2500
2516
  case 0:
2501
2517
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2502
2518
  return [2 /*return*/, deserializeAws_restJson1CreateControlCommandError(output, context)];
@@ -2505,9 +2521,11 @@ export var deserializeAws_restJson1CreateControlCommand = function (output, cont
2505
2521
  $metadata: deserializeMetadata(output),
2506
2522
  control: undefined,
2507
2523
  };
2524
+ _a = __expectNonNull;
2525
+ _b = __expectObject;
2508
2526
  return [4 /*yield*/, parseBody(output.body, context)];
2509
2527
  case 1:
2510
- data = _a.sent();
2528
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2511
2529
  if (data.control !== undefined && data.control !== null) {
2512
2530
  contents.control = deserializeAws_restJson1Control(data.control, context);
2513
2531
  }
@@ -2898,9 +2916,9 @@ var deserializeAws_restJson1DeleteControlCommandError = function (output, contex
2898
2916
  });
2899
2917
  }); };
2900
2918
  export var deserializeAws_restJson1DeregisterAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2901
- var contents, data;
2902
- return __generator(this, function (_a) {
2903
- switch (_a.label) {
2919
+ var contents, data, _a, _b;
2920
+ return __generator(this, function (_c) {
2921
+ switch (_c.label) {
2904
2922
  case 0:
2905
2923
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2906
2924
  return [2 /*return*/, deserializeAws_restJson1DeregisterAccountCommandError(output, context)];
@@ -2909,9 +2927,11 @@ export var deserializeAws_restJson1DeregisterAccountCommand = function (output,
2909
2927
  $metadata: deserializeMetadata(output),
2910
2928
  status: undefined,
2911
2929
  };
2930
+ _a = __expectNonNull;
2931
+ _b = __expectObject;
2912
2932
  return [4 /*yield*/, parseBody(output.body, context)];
2913
2933
  case 1:
2914
- data = _a.sent();
2934
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2915
2935
  if (data.status !== undefined && data.status !== null) {
2916
2936
  contents.status = __expectString(data.status);
2917
2937
  }
@@ -3142,9 +3162,9 @@ var deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandErr
3142
3162
  });
3143
3163
  }); };
3144
3164
  export var deserializeAws_restJson1GetAccountStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3145
- var contents, data;
3146
- return __generator(this, function (_a) {
3147
- switch (_a.label) {
3165
+ var contents, data, _a, _b;
3166
+ return __generator(this, function (_c) {
3167
+ switch (_c.label) {
3148
3168
  case 0:
3149
3169
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3150
3170
  return [2 /*return*/, deserializeAws_restJson1GetAccountStatusCommandError(output, context)];
@@ -3153,9 +3173,11 @@ export var deserializeAws_restJson1GetAccountStatusCommand = function (output, c
3153
3173
  $metadata: deserializeMetadata(output),
3154
3174
  status: undefined,
3155
3175
  };
3176
+ _a = __expectNonNull;
3177
+ _b = __expectObject;
3156
3178
  return [4 /*yield*/, parseBody(output.body, context)];
3157
3179
  case 1:
3158
- data = _a.sent();
3180
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3159
3181
  if (data.status !== undefined && data.status !== null) {
3160
3182
  contents.status = __expectString(data.status);
3161
3183
  }
@@ -3202,9 +3224,9 @@ var deserializeAws_restJson1GetAccountStatusCommandError = function (output, con
3202
3224
  });
3203
3225
  }); };
3204
3226
  export var deserializeAws_restJson1GetAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3205
- var contents, data;
3206
- return __generator(this, function (_a) {
3207
- switch (_a.label) {
3227
+ var contents, data, _a, _b;
3228
+ return __generator(this, function (_c) {
3229
+ switch (_c.label) {
3208
3230
  case 0:
3209
3231
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3210
3232
  return [2 /*return*/, deserializeAws_restJson1GetAssessmentCommandError(output, context)];
@@ -3214,9 +3236,11 @@ export var deserializeAws_restJson1GetAssessmentCommand = function (output, cont
3214
3236
  assessment: undefined,
3215
3237
  userRole: undefined,
3216
3238
  };
3239
+ _a = __expectNonNull;
3240
+ _b = __expectObject;
3217
3241
  return [4 /*yield*/, parseBody(output.body, context)];
3218
3242
  case 1:
3219
- data = _a.sent();
3243
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3220
3244
  if (data.assessment !== undefined && data.assessment !== null) {
3221
3245
  contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
3222
3246
  }
@@ -3290,9 +3314,9 @@ var deserializeAws_restJson1GetAssessmentCommandError = function (output, contex
3290
3314
  });
3291
3315
  }); };
3292
3316
  export var deserializeAws_restJson1GetAssessmentFrameworkCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3293
- var contents, data;
3294
- return __generator(this, function (_a) {
3295
- switch (_a.label) {
3317
+ var contents, data, _a, _b;
3318
+ return __generator(this, function (_c) {
3319
+ switch (_c.label) {
3296
3320
  case 0:
3297
3321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3298
3322
  return [2 /*return*/, deserializeAws_restJson1GetAssessmentFrameworkCommandError(output, context)];
@@ -3301,9 +3325,11 @@ export var deserializeAws_restJson1GetAssessmentFrameworkCommand = function (out
3301
3325
  $metadata: deserializeMetadata(output),
3302
3326
  framework: undefined,
3303
3327
  };
3328
+ _a = __expectNonNull;
3329
+ _b = __expectObject;
3304
3330
  return [4 /*yield*/, parseBody(output.body, context)];
3305
3331
  case 1:
3306
- data = _a.sent();
3332
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3307
3333
  if (data.framework !== undefined && data.framework !== null) {
3308
3334
  contents.framework = deserializeAws_restJson1Framework(data.framework, context);
3309
3335
  }
@@ -3374,9 +3400,9 @@ var deserializeAws_restJson1GetAssessmentFrameworkCommandError = function (outpu
3374
3400
  });
3375
3401
  }); };
3376
3402
  export var deserializeAws_restJson1GetAssessmentReportUrlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3377
- var contents, data;
3378
- return __generator(this, function (_a) {
3379
- switch (_a.label) {
3403
+ var contents, data, _a, _b;
3404
+ return __generator(this, function (_c) {
3405
+ switch (_c.label) {
3380
3406
  case 0:
3381
3407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3382
3408
  return [2 /*return*/, deserializeAws_restJson1GetAssessmentReportUrlCommandError(output, context)];
@@ -3385,9 +3411,11 @@ export var deserializeAws_restJson1GetAssessmentReportUrlCommand = function (out
3385
3411
  $metadata: deserializeMetadata(output),
3386
3412
  preSignedUrl: undefined,
3387
3413
  };
3414
+ _a = __expectNonNull;
3415
+ _b = __expectObject;
3388
3416
  return [4 /*yield*/, parseBody(output.body, context)];
3389
3417
  case 1:
3390
- data = _a.sent();
3418
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3391
3419
  if (data.preSignedUrl !== undefined && data.preSignedUrl !== null) {
3392
3420
  contents.preSignedUrl = deserializeAws_restJson1URL(data.preSignedUrl, context);
3393
3421
  }
@@ -3458,9 +3486,9 @@ var deserializeAws_restJson1GetAssessmentReportUrlCommandError = function (outpu
3458
3486
  });
3459
3487
  }); };
3460
3488
  export var deserializeAws_restJson1GetChangeLogsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3461
- var contents, data;
3462
- return __generator(this, function (_a) {
3463
- switch (_a.label) {
3489
+ var contents, data, _a, _b;
3490
+ return __generator(this, function (_c) {
3491
+ switch (_c.label) {
3464
3492
  case 0:
3465
3493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3466
3494
  return [2 /*return*/, deserializeAws_restJson1GetChangeLogsCommandError(output, context)];
@@ -3470,9 +3498,11 @@ export var deserializeAws_restJson1GetChangeLogsCommand = function (output, cont
3470
3498
  changeLogs: undefined,
3471
3499
  nextToken: undefined,
3472
3500
  };
3501
+ _a = __expectNonNull;
3502
+ _b = __expectObject;
3473
3503
  return [4 /*yield*/, parseBody(output.body, context)];
3474
3504
  case 1:
3475
- data = _a.sent();
3505
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3476
3506
  if (data.changeLogs !== undefined && data.changeLogs !== null) {
3477
3507
  contents.changeLogs = deserializeAws_restJson1ChangeLogs(data.changeLogs, context);
3478
3508
  }
@@ -3546,9 +3576,9 @@ var deserializeAws_restJson1GetChangeLogsCommandError = function (output, contex
3546
3576
  });
3547
3577
  }); };
3548
3578
  export var deserializeAws_restJson1GetControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3549
- var contents, data;
3550
- return __generator(this, function (_a) {
3551
- switch (_a.label) {
3579
+ var contents, data, _a, _b;
3580
+ return __generator(this, function (_c) {
3581
+ switch (_c.label) {
3552
3582
  case 0:
3553
3583
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3554
3584
  return [2 /*return*/, deserializeAws_restJson1GetControlCommandError(output, context)];
@@ -3557,9 +3587,11 @@ export var deserializeAws_restJson1GetControlCommand = function (output, context
3557
3587
  $metadata: deserializeMetadata(output),
3558
3588
  control: undefined,
3559
3589
  };
3590
+ _a = __expectNonNull;
3591
+ _b = __expectObject;
3560
3592
  return [4 /*yield*/, parseBody(output.body, context)];
3561
3593
  case 1:
3562
- data = _a.sent();
3594
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3563
3595
  if (data.control !== undefined && data.control !== null) {
3564
3596
  contents.control = deserializeAws_restJson1Control(data.control, context);
3565
3597
  }
@@ -3630,9 +3662,9 @@ var deserializeAws_restJson1GetControlCommandError = function (output, context)
3630
3662
  });
3631
3663
  }); };
3632
3664
  export var deserializeAws_restJson1GetDelegationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3633
- var contents, data;
3634
- return __generator(this, function (_a) {
3635
- switch (_a.label) {
3665
+ var contents, data, _a, _b;
3666
+ return __generator(this, function (_c) {
3667
+ switch (_c.label) {
3636
3668
  case 0:
3637
3669
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3638
3670
  return [2 /*return*/, deserializeAws_restJson1GetDelegationsCommandError(output, context)];
@@ -3642,9 +3674,11 @@ export var deserializeAws_restJson1GetDelegationsCommand = function (output, con
3642
3674
  delegations: undefined,
3643
3675
  nextToken: undefined,
3644
3676
  };
3677
+ _a = __expectNonNull;
3678
+ _b = __expectObject;
3645
3679
  return [4 /*yield*/, parseBody(output.body, context)];
3646
3680
  case 1:
3647
- data = _a.sent();
3681
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3648
3682
  if (data.delegations !== undefined && data.delegations !== null) {
3649
3683
  contents.delegations = deserializeAws_restJson1DelegationMetadataList(data.delegations, context);
3650
3684
  }
@@ -3710,9 +3744,9 @@ var deserializeAws_restJson1GetDelegationsCommandError = function (output, conte
3710
3744
  });
3711
3745
  }); };
3712
3746
  export var deserializeAws_restJson1GetEvidenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3713
- var contents, data;
3714
- return __generator(this, function (_a) {
3715
- switch (_a.label) {
3747
+ var contents, data, _a, _b;
3748
+ return __generator(this, function (_c) {
3749
+ switch (_c.label) {
3716
3750
  case 0:
3717
3751
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3718
3752
  return [2 /*return*/, deserializeAws_restJson1GetEvidenceCommandError(output, context)];
@@ -3721,9 +3755,11 @@ export var deserializeAws_restJson1GetEvidenceCommand = function (output, contex
3721
3755
  $metadata: deserializeMetadata(output),
3722
3756
  evidence: undefined,
3723
3757
  };
3758
+ _a = __expectNonNull;
3759
+ _b = __expectObject;
3724
3760
  return [4 /*yield*/, parseBody(output.body, context)];
3725
3761
  case 1:
3726
- data = _a.sent();
3762
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3727
3763
  if (data.evidence !== undefined && data.evidence !== null) {
3728
3764
  contents.evidence = deserializeAws_restJson1Evidence(data.evidence, context);
3729
3765
  }
@@ -3794,9 +3830,9 @@ var deserializeAws_restJson1GetEvidenceCommandError = function (output, context)
3794
3830
  });
3795
3831
  }); };
3796
3832
  export var deserializeAws_restJson1GetEvidenceByEvidenceFolderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3797
- var contents, data;
3798
- return __generator(this, function (_a) {
3799
- switch (_a.label) {
3833
+ var contents, data, _a, _b;
3834
+ return __generator(this, function (_c) {
3835
+ switch (_c.label) {
3800
3836
  case 0:
3801
3837
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3802
3838
  return [2 /*return*/, deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError(output, context)];
@@ -3806,9 +3842,11 @@ export var deserializeAws_restJson1GetEvidenceByEvidenceFolderCommand = function
3806
3842
  evidence: undefined,
3807
3843
  nextToken: undefined,
3808
3844
  };
3845
+ _a = __expectNonNull;
3846
+ _b = __expectObject;
3809
3847
  return [4 /*yield*/, parseBody(output.body, context)];
3810
3848
  case 1:
3811
- data = _a.sent();
3849
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3812
3850
  if (data.evidence !== undefined && data.evidence !== null) {
3813
3851
  contents.evidence = deserializeAws_restJson1EvidenceList(data.evidence, context);
3814
3852
  }
@@ -3882,9 +3920,9 @@ var deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = function (
3882
3920
  });
3883
3921
  }); };
3884
3922
  export var deserializeAws_restJson1GetEvidenceFolderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3885
- var contents, data;
3886
- return __generator(this, function (_a) {
3887
- switch (_a.label) {
3923
+ var contents, data, _a, _b;
3924
+ return __generator(this, function (_c) {
3925
+ switch (_c.label) {
3888
3926
  case 0:
3889
3927
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3890
3928
  return [2 /*return*/, deserializeAws_restJson1GetEvidenceFolderCommandError(output, context)];
@@ -3893,9 +3931,11 @@ export var deserializeAws_restJson1GetEvidenceFolderCommand = function (output,
3893
3931
  $metadata: deserializeMetadata(output),
3894
3932
  evidenceFolder: undefined,
3895
3933
  };
3934
+ _a = __expectNonNull;
3935
+ _b = __expectObject;
3896
3936
  return [4 /*yield*/, parseBody(output.body, context)];
3897
3937
  case 1:
3898
- data = _a.sent();
3938
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3899
3939
  if (data.evidenceFolder !== undefined && data.evidenceFolder !== null) {
3900
3940
  contents.evidenceFolder = deserializeAws_restJson1AssessmentEvidenceFolder(data.evidenceFolder, context);
3901
3941
  }
@@ -3966,9 +4006,9 @@ var deserializeAws_restJson1GetEvidenceFolderCommandError = function (output, co
3966
4006
  });
3967
4007
  }); };
3968
4008
  export var deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3969
- var contents, data;
3970
- return __generator(this, function (_a) {
3971
- switch (_a.label) {
4009
+ var contents, data, _a, _b;
4010
+ return __generator(this, function (_c) {
4011
+ switch (_c.label) {
3972
4012
  case 0:
3973
4013
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3974
4014
  return [2 /*return*/, deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError(output, context)];
@@ -3978,9 +4018,11 @@ export var deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = funct
3978
4018
  evidenceFolders: undefined,
3979
4019
  nextToken: undefined,
3980
4020
  };
4021
+ _a = __expectNonNull;
4022
+ _b = __expectObject;
3981
4023
  return [4 /*yield*/, parseBody(output.body, context)];
3982
4024
  case 1:
3983
- data = _a.sent();
4025
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3984
4026
  if (data.evidenceFolders !== undefined && data.evidenceFolders !== null) {
3985
4027
  contents.evidenceFolders = deserializeAws_restJson1AssessmentEvidenceFolders(data.evidenceFolders, context);
3986
4028
  }
@@ -4054,9 +4096,9 @@ var deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = functio
4054
4096
  });
4055
4097
  }); };
4056
4098
  export var deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4057
- var contents, data;
4058
- return __generator(this, function (_a) {
4059
- switch (_a.label) {
4099
+ var contents, data, _a, _b;
4100
+ return __generator(this, function (_c) {
4101
+ switch (_c.label) {
4060
4102
  case 0:
4061
4103
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4062
4104
  return [2 /*return*/, deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError(output, context)];
@@ -4066,9 +4108,11 @@ export var deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand
4066
4108
  evidenceFolders: undefined,
4067
4109
  nextToken: undefined,
4068
4110
  };
4111
+ _a = __expectNonNull;
4112
+ _b = __expectObject;
4069
4113
  return [4 /*yield*/, parseBody(output.body, context)];
4070
4114
  case 1:
4071
- data = _a.sent();
4115
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4072
4116
  if (data.evidenceFolders !== undefined && data.evidenceFolders !== null) {
4073
4117
  contents.evidenceFolders = deserializeAws_restJson1AssessmentEvidenceFolders(data.evidenceFolders, context);
4074
4118
  }
@@ -4142,9 +4186,9 @@ var deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError =
4142
4186
  });
4143
4187
  }); };
4144
4188
  export var deserializeAws_restJson1GetOrganizationAdminAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4145
- var contents, data;
4146
- return __generator(this, function (_a) {
4147
- switch (_a.label) {
4189
+ var contents, data, _a, _b;
4190
+ return __generator(this, function (_c) {
4191
+ switch (_c.label) {
4148
4192
  case 0:
4149
4193
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4150
4194
  return [2 /*return*/, deserializeAws_restJson1GetOrganizationAdminAccountCommandError(output, context)];
@@ -4154,9 +4198,11 @@ export var deserializeAws_restJson1GetOrganizationAdminAccountCommand = function
4154
4198
  adminAccountId: undefined,
4155
4199
  organizationId: undefined,
4156
4200
  };
4201
+ _a = __expectNonNull;
4202
+ _b = __expectObject;
4157
4203
  return [4 /*yield*/, parseBody(output.body, context)];
4158
4204
  case 1:
4159
- data = _a.sent();
4205
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4160
4206
  if (data.adminAccountId !== undefined && data.adminAccountId !== null) {
4161
4207
  contents.adminAccountId = __expectString(data.adminAccountId);
4162
4208
  }
@@ -4230,9 +4276,9 @@ var deserializeAws_restJson1GetOrganizationAdminAccountCommandError = function (
4230
4276
  });
4231
4277
  }); };
4232
4278
  export var deserializeAws_restJson1GetServicesInScopeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4233
- var contents, data;
4234
- return __generator(this, function (_a) {
4235
- switch (_a.label) {
4279
+ var contents, data, _a, _b;
4280
+ return __generator(this, function (_c) {
4281
+ switch (_c.label) {
4236
4282
  case 0:
4237
4283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4238
4284
  return [2 /*return*/, deserializeAws_restJson1GetServicesInScopeCommandError(output, context)];
@@ -4241,9 +4287,11 @@ export var deserializeAws_restJson1GetServicesInScopeCommand = function (output,
4241
4287
  $metadata: deserializeMetadata(output),
4242
4288
  serviceMetadata: undefined,
4243
4289
  };
4290
+ _a = __expectNonNull;
4291
+ _b = __expectObject;
4244
4292
  return [4 /*yield*/, parseBody(output.body, context)];
4245
4293
  case 1:
4246
- data = _a.sent();
4294
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4247
4295
  if (data.serviceMetadata !== undefined && data.serviceMetadata !== null) {
4248
4296
  contents.serviceMetadata = deserializeAws_restJson1ServiceMetadataList(data.serviceMetadata, context);
4249
4297
  }
@@ -4306,9 +4354,9 @@ var deserializeAws_restJson1GetServicesInScopeCommandError = function (output, c
4306
4354
  });
4307
4355
  }); };
4308
4356
  export var deserializeAws_restJson1GetSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4309
- var contents, data;
4310
- return __generator(this, function (_a) {
4311
- switch (_a.label) {
4357
+ var contents, data, _a, _b;
4358
+ return __generator(this, function (_c) {
4359
+ switch (_c.label) {
4312
4360
  case 0:
4313
4361
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4314
4362
  return [2 /*return*/, deserializeAws_restJson1GetSettingsCommandError(output, context)];
@@ -4317,9 +4365,11 @@ export var deserializeAws_restJson1GetSettingsCommand = function (output, contex
4317
4365
  $metadata: deserializeMetadata(output),
4318
4366
  settings: undefined,
4319
4367
  };
4368
+ _a = __expectNonNull;
4369
+ _b = __expectObject;
4320
4370
  return [4 /*yield*/, parseBody(output.body, context)];
4321
4371
  case 1:
4322
- data = _a.sent();
4372
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4323
4373
  if (data.settings !== undefined && data.settings !== null) {
4324
4374
  contents.settings = deserializeAws_restJson1Settings(data.settings, context);
4325
4375
  }
@@ -4374,9 +4424,9 @@ var deserializeAws_restJson1GetSettingsCommandError = function (output, context)
4374
4424
  });
4375
4425
  }); };
4376
4426
  export var deserializeAws_restJson1ListAssessmentFrameworksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4377
- var contents, data;
4378
- return __generator(this, function (_a) {
4379
- switch (_a.label) {
4427
+ var contents, data, _a, _b;
4428
+ return __generator(this, function (_c) {
4429
+ switch (_c.label) {
4380
4430
  case 0:
4381
4431
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4382
4432
  return [2 /*return*/, deserializeAws_restJson1ListAssessmentFrameworksCommandError(output, context)];
@@ -4386,9 +4436,11 @@ export var deserializeAws_restJson1ListAssessmentFrameworksCommand = function (o
4386
4436
  frameworkMetadataList: undefined,
4387
4437
  nextToken: undefined,
4388
4438
  };
4439
+ _a = __expectNonNull;
4440
+ _b = __expectObject;
4389
4441
  return [4 /*yield*/, parseBody(output.body, context)];
4390
4442
  case 1:
4391
- data = _a.sent();
4443
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4392
4444
  if (data.frameworkMetadataList !== undefined && data.frameworkMetadataList !== null) {
4393
4445
  contents.frameworkMetadataList = deserializeAws_restJson1FrameworkMetadataList(data.frameworkMetadataList, context);
4394
4446
  }
@@ -4454,9 +4506,9 @@ var deserializeAws_restJson1ListAssessmentFrameworksCommandError = function (out
4454
4506
  });
4455
4507
  }); };
4456
4508
  export var deserializeAws_restJson1ListAssessmentReportsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4457
- var contents, data;
4458
- return __generator(this, function (_a) {
4459
- switch (_a.label) {
4509
+ var contents, data, _a, _b;
4510
+ return __generator(this, function (_c) {
4511
+ switch (_c.label) {
4460
4512
  case 0:
4461
4513
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4462
4514
  return [2 /*return*/, deserializeAws_restJson1ListAssessmentReportsCommandError(output, context)];
@@ -4466,9 +4518,11 @@ export var deserializeAws_restJson1ListAssessmentReportsCommand = function (outp
4466
4518
  assessmentReports: undefined,
4467
4519
  nextToken: undefined,
4468
4520
  };
4521
+ _a = __expectNonNull;
4522
+ _b = __expectObject;
4469
4523
  return [4 /*yield*/, parseBody(output.body, context)];
4470
4524
  case 1:
4471
- data = _a.sent();
4525
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4472
4526
  if (data.assessmentReports !== undefined && data.assessmentReports !== null) {
4473
4527
  contents.assessmentReports = deserializeAws_restJson1AssessmentReportsMetadata(data.assessmentReports, context);
4474
4528
  }
@@ -4534,9 +4588,9 @@ var deserializeAws_restJson1ListAssessmentReportsCommandError = function (output
4534
4588
  });
4535
4589
  }); };
4536
4590
  export var deserializeAws_restJson1ListAssessmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4537
- var contents, data;
4538
- return __generator(this, function (_a) {
4539
- switch (_a.label) {
4591
+ var contents, data, _a, _b;
4592
+ return __generator(this, function (_c) {
4593
+ switch (_c.label) {
4540
4594
  case 0:
4541
4595
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4542
4596
  return [2 /*return*/, deserializeAws_restJson1ListAssessmentsCommandError(output, context)];
@@ -4546,9 +4600,11 @@ export var deserializeAws_restJson1ListAssessmentsCommand = function (output, co
4546
4600
  assessmentMetadata: undefined,
4547
4601
  nextToken: undefined,
4548
4602
  };
4603
+ _a = __expectNonNull;
4604
+ _b = __expectObject;
4549
4605
  return [4 /*yield*/, parseBody(output.body, context)];
4550
4606
  case 1:
4551
- data = _a.sent();
4607
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4552
4608
  if (data.assessmentMetadata !== undefined && data.assessmentMetadata !== null) {
4553
4609
  contents.assessmentMetadata = deserializeAws_restJson1ListAssessmentMetadata(data.assessmentMetadata, context);
4554
4610
  }
@@ -4614,9 +4670,9 @@ var deserializeAws_restJson1ListAssessmentsCommandError = function (output, cont
4614
4670
  });
4615
4671
  }); };
4616
4672
  export var deserializeAws_restJson1ListControlsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4617
- var contents, data;
4618
- return __generator(this, function (_a) {
4619
- switch (_a.label) {
4673
+ var contents, data, _a, _b;
4674
+ return __generator(this, function (_c) {
4675
+ switch (_c.label) {
4620
4676
  case 0:
4621
4677
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4622
4678
  return [2 /*return*/, deserializeAws_restJson1ListControlsCommandError(output, context)];
@@ -4626,9 +4682,11 @@ export var deserializeAws_restJson1ListControlsCommand = function (output, conte
4626
4682
  controlMetadataList: undefined,
4627
4683
  nextToken: undefined,
4628
4684
  };
4685
+ _a = __expectNonNull;
4686
+ _b = __expectObject;
4629
4687
  return [4 /*yield*/, parseBody(output.body, context)];
4630
4688
  case 1:
4631
- data = _a.sent();
4689
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4632
4690
  if (data.controlMetadataList !== undefined && data.controlMetadataList !== null) {
4633
4691
  contents.controlMetadataList = deserializeAws_restJson1ControlMetadataList(data.controlMetadataList, context);
4634
4692
  }
@@ -4694,9 +4752,9 @@ var deserializeAws_restJson1ListControlsCommandError = function (output, context
4694
4752
  });
4695
4753
  }); };
4696
4754
  export var deserializeAws_restJson1ListKeywordsForDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4697
- var contents, data;
4698
- return __generator(this, function (_a) {
4699
- switch (_a.label) {
4755
+ var contents, data, _a, _b;
4756
+ return __generator(this, function (_c) {
4757
+ switch (_c.label) {
4700
4758
  case 0:
4701
4759
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4702
4760
  return [2 /*return*/, deserializeAws_restJson1ListKeywordsForDataSourceCommandError(output, context)];
@@ -4706,9 +4764,11 @@ export var deserializeAws_restJson1ListKeywordsForDataSourceCommand = function (
4706
4764
  keywords: undefined,
4707
4765
  nextToken: undefined,
4708
4766
  };
4767
+ _a = __expectNonNull;
4768
+ _b = __expectObject;
4709
4769
  return [4 /*yield*/, parseBody(output.body, context)];
4710
4770
  case 1:
4711
- data = _a.sent();
4771
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4712
4772
  if (data.keywords !== undefined && data.keywords !== null) {
4713
4773
  contents.keywords = deserializeAws_restJson1Keywords(data.keywords, context);
4714
4774
  }
@@ -4774,9 +4834,9 @@ var deserializeAws_restJson1ListKeywordsForDataSourceCommandError = function (ou
4774
4834
  });
4775
4835
  }); };
4776
4836
  export var deserializeAws_restJson1ListNotificationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4777
- var contents, data;
4778
- return __generator(this, function (_a) {
4779
- switch (_a.label) {
4837
+ var contents, data, _a, _b;
4838
+ return __generator(this, function (_c) {
4839
+ switch (_c.label) {
4780
4840
  case 0:
4781
4841
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4782
4842
  return [2 /*return*/, deserializeAws_restJson1ListNotificationsCommandError(output, context)];
@@ -4786,9 +4846,11 @@ export var deserializeAws_restJson1ListNotificationsCommand = function (output,
4786
4846
  nextToken: undefined,
4787
4847
  notifications: undefined,
4788
4848
  };
4849
+ _a = __expectNonNull;
4850
+ _b = __expectObject;
4789
4851
  return [4 /*yield*/, parseBody(output.body, context)];
4790
4852
  case 1:
4791
- data = _a.sent();
4853
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4792
4854
  if (data.nextToken !== undefined && data.nextToken !== null) {
4793
4855
  contents.nextToken = __expectString(data.nextToken);
4794
4856
  }
@@ -4854,9 +4916,9 @@ var deserializeAws_restJson1ListNotificationsCommandError = function (output, co
4854
4916
  });
4855
4917
  }); };
4856
4918
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4857
- var contents, data;
4858
- return __generator(this, function (_a) {
4859
- switch (_a.label) {
4919
+ var contents, data, _a, _b;
4920
+ return __generator(this, function (_c) {
4921
+ switch (_c.label) {
4860
4922
  case 0:
4861
4923
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4862
4924
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -4865,9 +4927,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
4865
4927
  $metadata: deserializeMetadata(output),
4866
4928
  tags: undefined,
4867
4929
  };
4930
+ _a = __expectNonNull;
4931
+ _b = __expectObject;
4868
4932
  return [4 /*yield*/, parseBody(output.body, context)];
4869
4933
  case 1:
4870
- data = _a.sent();
4934
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4871
4935
  if (data.tags !== undefined && data.tags !== null) {
4872
4936
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
4873
4937
  }
@@ -4930,9 +4994,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
4930
4994
  });
4931
4995
  }); };
4932
4996
  export var deserializeAws_restJson1RegisterAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4933
- var contents, data;
4934
- return __generator(this, function (_a) {
4935
- switch (_a.label) {
4997
+ var contents, data, _a, _b;
4998
+ return __generator(this, function (_c) {
4999
+ switch (_c.label) {
4936
5000
  case 0:
4937
5001
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4938
5002
  return [2 /*return*/, deserializeAws_restJson1RegisterAccountCommandError(output, context)];
@@ -4941,9 +5005,11 @@ export var deserializeAws_restJson1RegisterAccountCommand = function (output, co
4941
5005
  $metadata: deserializeMetadata(output),
4942
5006
  status: undefined,
4943
5007
  };
5008
+ _a = __expectNonNull;
5009
+ _b = __expectObject;
4944
5010
  return [4 /*yield*/, parseBody(output.body, context)];
4945
5011
  case 1:
4946
- data = _a.sent();
5012
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4947
5013
  if (data.status !== undefined && data.status !== null) {
4948
5014
  contents.status = __expectString(data.status);
4949
5015
  }
@@ -5014,9 +5080,9 @@ var deserializeAws_restJson1RegisterAccountCommandError = function (output, cont
5014
5080
  });
5015
5081
  }); };
5016
5082
  export var deserializeAws_restJson1RegisterOrganizationAdminAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5017
- var contents, data;
5018
- return __generator(this, function (_a) {
5019
- switch (_a.label) {
5083
+ var contents, data, _a, _b;
5084
+ return __generator(this, function (_c) {
5085
+ switch (_c.label) {
5020
5086
  case 0:
5021
5087
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5022
5088
  return [2 /*return*/, deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError(output, context)];
@@ -5026,9 +5092,11 @@ export var deserializeAws_restJson1RegisterOrganizationAdminAccountCommand = fun
5026
5092
  adminAccountId: undefined,
5027
5093
  organizationId: undefined,
5028
5094
  };
5095
+ _a = __expectNonNull;
5096
+ _b = __expectObject;
5029
5097
  return [4 /*yield*/, parseBody(output.body, context)];
5030
5098
  case 1:
5031
- data = _a.sent();
5099
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5032
5100
  if (data.adminAccountId !== undefined && data.adminAccountId !== null) {
5033
5101
  contents.adminAccountId = __expectString(data.adminAccountId);
5034
5102
  }
@@ -5246,9 +5314,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
5246
5314
  });
5247
5315
  }); };
5248
5316
  export var deserializeAws_restJson1UpdateAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5249
- var contents, data;
5250
- return __generator(this, function (_a) {
5251
- switch (_a.label) {
5317
+ var contents, data, _a, _b;
5318
+ return __generator(this, function (_c) {
5319
+ switch (_c.label) {
5252
5320
  case 0:
5253
5321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5254
5322
  return [2 /*return*/, deserializeAws_restJson1UpdateAssessmentCommandError(output, context)];
@@ -5257,9 +5325,11 @@ export var deserializeAws_restJson1UpdateAssessmentCommand = function (output, c
5257
5325
  $metadata: deserializeMetadata(output),
5258
5326
  assessment: undefined,
5259
5327
  };
5328
+ _a = __expectNonNull;
5329
+ _b = __expectObject;
5260
5330
  return [4 /*yield*/, parseBody(output.body, context)];
5261
5331
  case 1:
5262
- data = _a.sent();
5332
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5263
5333
  if (data.assessment !== undefined && data.assessment !== null) {
5264
5334
  contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
5265
5335
  }
@@ -5330,9 +5400,9 @@ var deserializeAws_restJson1UpdateAssessmentCommandError = function (output, con
5330
5400
  });
5331
5401
  }); };
5332
5402
  export var deserializeAws_restJson1UpdateAssessmentControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5333
- var contents, data;
5334
- return __generator(this, function (_a) {
5335
- switch (_a.label) {
5403
+ var contents, data, _a, _b;
5404
+ return __generator(this, function (_c) {
5405
+ switch (_c.label) {
5336
5406
  case 0:
5337
5407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5338
5408
  return [2 /*return*/, deserializeAws_restJson1UpdateAssessmentControlCommandError(output, context)];
@@ -5341,9 +5411,11 @@ export var deserializeAws_restJson1UpdateAssessmentControlCommand = function (ou
5341
5411
  $metadata: deserializeMetadata(output),
5342
5412
  control: undefined,
5343
5413
  };
5414
+ _a = __expectNonNull;
5415
+ _b = __expectObject;
5344
5416
  return [4 /*yield*/, parseBody(output.body, context)];
5345
5417
  case 1:
5346
- data = _a.sent();
5418
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5347
5419
  if (data.control !== undefined && data.control !== null) {
5348
5420
  contents.control = deserializeAws_restJson1AssessmentControl(data.control, context);
5349
5421
  }
@@ -5414,9 +5486,9 @@ var deserializeAws_restJson1UpdateAssessmentControlCommandError = function (outp
5414
5486
  });
5415
5487
  }); };
5416
5488
  export var deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5417
- var contents, data;
5418
- return __generator(this, function (_a) {
5419
- switch (_a.label) {
5489
+ var contents, data, _a, _b;
5490
+ return __generator(this, function (_c) {
5491
+ switch (_c.label) {
5420
5492
  case 0:
5421
5493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5422
5494
  return [2 /*return*/, deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError(output, context)];
@@ -5425,9 +5497,11 @@ export var deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand = fun
5425
5497
  $metadata: deserializeMetadata(output),
5426
5498
  controlSet: undefined,
5427
5499
  };
5500
+ _a = __expectNonNull;
5501
+ _b = __expectObject;
5428
5502
  return [4 /*yield*/, parseBody(output.body, context)];
5429
5503
  case 1:
5430
- data = _a.sent();
5504
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5431
5505
  if (data.controlSet !== undefined && data.controlSet !== null) {
5432
5506
  contents.controlSet = deserializeAws_restJson1AssessmentControlSet(data.controlSet, context);
5433
5507
  }
@@ -5498,9 +5572,9 @@ var deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = funct
5498
5572
  });
5499
5573
  }); };
5500
5574
  export var deserializeAws_restJson1UpdateAssessmentFrameworkCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5501
- var contents, data;
5502
- return __generator(this, function (_a) {
5503
- switch (_a.label) {
5575
+ var contents, data, _a, _b;
5576
+ return __generator(this, function (_c) {
5577
+ switch (_c.label) {
5504
5578
  case 0:
5505
5579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5506
5580
  return [2 /*return*/, deserializeAws_restJson1UpdateAssessmentFrameworkCommandError(output, context)];
@@ -5509,9 +5583,11 @@ export var deserializeAws_restJson1UpdateAssessmentFrameworkCommand = function (
5509
5583
  $metadata: deserializeMetadata(output),
5510
5584
  framework: undefined,
5511
5585
  };
5586
+ _a = __expectNonNull;
5587
+ _b = __expectObject;
5512
5588
  return [4 /*yield*/, parseBody(output.body, context)];
5513
5589
  case 1:
5514
- data = _a.sent();
5590
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5515
5591
  if (data.framework !== undefined && data.framework !== null) {
5516
5592
  contents.framework = deserializeAws_restJson1Framework(data.framework, context);
5517
5593
  }
@@ -5582,9 +5658,9 @@ var deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = function (ou
5582
5658
  });
5583
5659
  }); };
5584
5660
  export var deserializeAws_restJson1UpdateAssessmentStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5585
- var contents, data;
5586
- return __generator(this, function (_a) {
5587
- switch (_a.label) {
5661
+ var contents, data, _a, _b;
5662
+ return __generator(this, function (_c) {
5663
+ switch (_c.label) {
5588
5664
  case 0:
5589
5665
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5590
5666
  return [2 /*return*/, deserializeAws_restJson1UpdateAssessmentStatusCommandError(output, context)];
@@ -5593,9 +5669,11 @@ export var deserializeAws_restJson1UpdateAssessmentStatusCommand = function (out
5593
5669
  $metadata: deserializeMetadata(output),
5594
5670
  assessment: undefined,
5595
5671
  };
5672
+ _a = __expectNonNull;
5673
+ _b = __expectObject;
5596
5674
  return [4 /*yield*/, parseBody(output.body, context)];
5597
5675
  case 1:
5598
- data = _a.sent();
5676
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5599
5677
  if (data.assessment !== undefined && data.assessment !== null) {
5600
5678
  contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
5601
5679
  }
@@ -5666,9 +5744,9 @@ var deserializeAws_restJson1UpdateAssessmentStatusCommandError = function (outpu
5666
5744
  });
5667
5745
  }); };
5668
5746
  export var deserializeAws_restJson1UpdateControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5669
- var contents, data;
5670
- return __generator(this, function (_a) {
5671
- switch (_a.label) {
5747
+ var contents, data, _a, _b;
5748
+ return __generator(this, function (_c) {
5749
+ switch (_c.label) {
5672
5750
  case 0:
5673
5751
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5674
5752
  return [2 /*return*/, deserializeAws_restJson1UpdateControlCommandError(output, context)];
@@ -5677,9 +5755,11 @@ export var deserializeAws_restJson1UpdateControlCommand = function (output, cont
5677
5755
  $metadata: deserializeMetadata(output),
5678
5756
  control: undefined,
5679
5757
  };
5758
+ _a = __expectNonNull;
5759
+ _b = __expectObject;
5680
5760
  return [4 /*yield*/, parseBody(output.body, context)];
5681
5761
  case 1:
5682
- data = _a.sent();
5762
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5683
5763
  if (data.control !== undefined && data.control !== null) {
5684
5764
  contents.control = deserializeAws_restJson1Control(data.control, context);
5685
5765
  }
@@ -5750,9 +5830,9 @@ var deserializeAws_restJson1UpdateControlCommandError = function (output, contex
5750
5830
  });
5751
5831
  }); };
5752
5832
  export var deserializeAws_restJson1UpdateSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5753
- var contents, data;
5754
- return __generator(this, function (_a) {
5755
- switch (_a.label) {
5833
+ var contents, data, _a, _b;
5834
+ return __generator(this, function (_c) {
5835
+ switch (_c.label) {
5756
5836
  case 0:
5757
5837
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5758
5838
  return [2 /*return*/, deserializeAws_restJson1UpdateSettingsCommandError(output, context)];
@@ -5761,9 +5841,11 @@ export var deserializeAws_restJson1UpdateSettingsCommand = function (output, con
5761
5841
  $metadata: deserializeMetadata(output),
5762
5842
  settings: undefined,
5763
5843
  };
5844
+ _a = __expectNonNull;
5845
+ _b = __expectObject;
5764
5846
  return [4 /*yield*/, parseBody(output.body, context)];
5765
5847
  case 1:
5766
- data = _a.sent();
5848
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5767
5849
  if (data.settings !== undefined && data.settings !== null) {
5768
5850
  contents.settings = deserializeAws_restJson1Settings(data.settings, context);
5769
5851
  }
@@ -5826,9 +5908,9 @@ var deserializeAws_restJson1UpdateSettingsCommandError = function (output, conte
5826
5908
  });
5827
5909
  }); };
5828
5910
  export var deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5829
- var contents, data;
5830
- return __generator(this, function (_a) {
5831
- switch (_a.label) {
5911
+ var contents, data, _a, _b;
5912
+ return __generator(this, function (_c) {
5913
+ switch (_c.label) {
5832
5914
  case 0:
5833
5915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5834
5916
  return [2 /*return*/, deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError(output, context)];
@@ -5841,9 +5923,11 @@ export var deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand = fu
5841
5923
  signatureValid: undefined,
5842
5924
  validationErrors: undefined,
5843
5925
  };
5926
+ _a = __expectNonNull;
5927
+ _b = __expectObject;
5844
5928
  return [4 /*yield*/, parseBody(output.body, context)];
5845
5929
  case 1:
5846
- data = _a.sent();
5930
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5847
5931
  if (data.signatureAlgorithm !== undefined && data.signatureAlgorithm !== null) {
5848
5932
  contents.signatureAlgorithm = __expectString(data.signatureAlgorithm);
5849
5933
  }
@@ -6218,12 +6302,12 @@ var deserializeAws_restJson1Assessment = function (output, context) {
6218
6302
  };
6219
6303
  var deserializeAws_restJson1AssessmentControl = function (output, context) {
6220
6304
  return {
6221
- assessmentReportEvidenceCount: __expectInt(output.assessmentReportEvidenceCount),
6305
+ assessmentReportEvidenceCount: __expectInt32(output.assessmentReportEvidenceCount),
6222
6306
  comments: output.comments !== undefined && output.comments !== null
6223
6307
  ? deserializeAws_restJson1ControlComments(output.comments, context)
6224
6308
  : undefined,
6225
6309
  description: __expectString(output.description),
6226
- evidenceCount: __expectInt(output.evidenceCount),
6310
+ evidenceCount: __expectInt32(output.evidenceCount),
6227
6311
  evidenceSources: output.evidenceSources !== undefined && output.evidenceSources !== null
6228
6312
  ? deserializeAws_restJson1EvidenceSources(output.evidenceSources, context)
6229
6313
  : undefined,
@@ -6253,12 +6337,12 @@ var deserializeAws_restJson1AssessmentControlSet = function (output, context) {
6253
6337
  : undefined,
6254
6338
  description: __expectString(output.description),
6255
6339
  id: __expectString(output.id),
6256
- manualEvidenceCount: __expectInt(output.manualEvidenceCount),
6340
+ manualEvidenceCount: __expectInt32(output.manualEvidenceCount),
6257
6341
  roles: output.roles !== undefined && output.roles !== null
6258
6342
  ? deserializeAws_restJson1Roles(output.roles, context)
6259
6343
  : undefined,
6260
6344
  status: __expectString(output.status),
6261
- systemEvidenceCount: __expectInt(output.systemEvidenceCount),
6345
+ systemEvidenceCount: __expectInt32(output.systemEvidenceCount),
6262
6346
  };
6263
6347
  };
6264
6348
  var deserializeAws_restJson1AssessmentControlSets = function (output, context) {
@@ -6274,23 +6358,25 @@ var deserializeAws_restJson1AssessmentControlSets = function (output, context) {
6274
6358
  var deserializeAws_restJson1AssessmentEvidenceFolder = function (output, context) {
6275
6359
  return {
6276
6360
  assessmentId: __expectString(output.assessmentId),
6277
- assessmentReportSelectionCount: __expectInt(output.assessmentReportSelectionCount),
6361
+ assessmentReportSelectionCount: __expectInt32(output.assessmentReportSelectionCount),
6278
6362
  author: __expectString(output.author),
6279
6363
  controlId: __expectString(output.controlId),
6280
6364
  controlName: __expectString(output.controlName),
6281
6365
  controlSetId: __expectString(output.controlSetId),
6282
6366
  dataSource: __expectString(output.dataSource),
6283
- date: output.date !== undefined && output.date !== null ? new Date(Math.round(output.date * 1000)) : undefined,
6284
- evidenceAwsServiceSourceCount: __expectInt(output.evidenceAwsServiceSourceCount),
6285
- evidenceByTypeComplianceCheckCount: __expectInt(output.evidenceByTypeComplianceCheckCount),
6286
- evidenceByTypeComplianceCheckIssuesCount: __expectInt(output.evidenceByTypeComplianceCheckIssuesCount),
6287
- evidenceByTypeConfigurationDataCount: __expectInt(output.evidenceByTypeConfigurationDataCount),
6288
- evidenceByTypeManualCount: __expectInt(output.evidenceByTypeManualCount),
6289
- evidenceByTypeUserActivityCount: __expectInt(output.evidenceByTypeUserActivityCount),
6290
- evidenceResourcesIncludedCount: __expectInt(output.evidenceResourcesIncludedCount),
6367
+ date: output.date !== undefined && output.date !== null
6368
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.date)))
6369
+ : undefined,
6370
+ evidenceAwsServiceSourceCount: __expectInt32(output.evidenceAwsServiceSourceCount),
6371
+ evidenceByTypeComplianceCheckCount: __expectInt32(output.evidenceByTypeComplianceCheckCount),
6372
+ evidenceByTypeComplianceCheckIssuesCount: __expectInt32(output.evidenceByTypeComplianceCheckIssuesCount),
6373
+ evidenceByTypeConfigurationDataCount: __expectInt32(output.evidenceByTypeConfigurationDataCount),
6374
+ evidenceByTypeManualCount: __expectInt32(output.evidenceByTypeManualCount),
6375
+ evidenceByTypeUserActivityCount: __expectInt32(output.evidenceByTypeUserActivityCount),
6376
+ evidenceResourcesIncludedCount: __expectInt32(output.evidenceResourcesIncludedCount),
6291
6377
  id: __expectString(output.id),
6292
6378
  name: __expectString(output.name),
6293
- totalEvidence: __expectInt(output.totalEvidence),
6379
+ totalEvidence: __expectInt32(output.totalEvidence),
6294
6380
  };
6295
6381
  };
6296
6382
  var deserializeAws_restJson1AssessmentEvidenceFolders = function (output, context) {
@@ -6319,15 +6405,15 @@ var deserializeAws_restJson1AssessmentFrameworkMetadata = function (output, cont
6319
6405
  return {
6320
6406
  arn: __expectString(output.arn),
6321
6407
  complianceType: __expectString(output.complianceType),
6322
- controlSetsCount: __expectInt(output.controlSetsCount),
6323
- controlsCount: __expectInt(output.controlsCount),
6408
+ controlSetsCount: __expectInt32(output.controlSetsCount),
6409
+ controlsCount: __expectInt32(output.controlsCount),
6324
6410
  createdAt: output.createdAt !== undefined && output.createdAt !== null
6325
- ? new Date(Math.round(output.createdAt * 1000))
6411
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6326
6412
  : undefined,
6327
6413
  description: __expectString(output.description),
6328
6414
  id: __expectString(output.id),
6329
6415
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
6330
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
6416
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
6331
6417
  : undefined,
6332
6418
  logo: __expectString(output.logo),
6333
6419
  name: __expectString(output.name),
@@ -6341,7 +6427,7 @@ var deserializeAws_restJson1AssessmentMetadata = function (output, context) {
6341
6427
  : undefined,
6342
6428
  complianceType: __expectString(output.complianceType),
6343
6429
  creationTime: output.creationTime !== undefined && output.creationTime !== null
6344
- ? new Date(Math.round(output.creationTime * 1000))
6430
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
6345
6431
  : undefined,
6346
6432
  delegations: output.delegations !== undefined && output.delegations !== null
6347
6433
  ? deserializeAws_restJson1Delegations(output.delegations, context)
@@ -6349,7 +6435,7 @@ var deserializeAws_restJson1AssessmentMetadata = function (output, context) {
6349
6435
  description: __expectString(output.description),
6350
6436
  id: __expectString(output.id),
6351
6437
  lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
6352
- ? new Date(Math.round(output.lastUpdated * 1000))
6438
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
6353
6439
  : undefined,
6354
6440
  name: __expectString(output.name),
6355
6441
  roles: output.roles !== undefined && output.roles !== null
@@ -6365,14 +6451,14 @@ var deserializeAws_restJson1AssessmentMetadataItem = function (output, context)
6365
6451
  return {
6366
6452
  complianceType: __expectString(output.complianceType),
6367
6453
  creationTime: output.creationTime !== undefined && output.creationTime !== null
6368
- ? new Date(Math.round(output.creationTime * 1000))
6454
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
6369
6455
  : undefined,
6370
6456
  delegations: output.delegations !== undefined && output.delegations !== null
6371
6457
  ? deserializeAws_restJson1Delegations(output.delegations, context)
6372
6458
  : undefined,
6373
6459
  id: __expectString(output.id),
6374
6460
  lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
6375
- ? new Date(Math.round(output.lastUpdated * 1000))
6461
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
6376
6462
  : undefined,
6377
6463
  name: __expectString(output.name),
6378
6464
  roles: output.roles !== undefined && output.roles !== null
@@ -6388,7 +6474,7 @@ var deserializeAws_restJson1AssessmentReport = function (output, context) {
6388
6474
  author: __expectString(output.author),
6389
6475
  awsAccountId: __expectString(output.awsAccountId),
6390
6476
  creationTime: output.creationTime !== undefined && output.creationTime !== null
6391
- ? new Date(Math.round(output.creationTime * 1000))
6477
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
6392
6478
  : undefined,
6393
6479
  description: __expectString(output.description),
6394
6480
  id: __expectString(output.id),
@@ -6419,7 +6505,7 @@ var deserializeAws_restJson1AssessmentReportMetadata = function (output, context
6419
6505
  assessmentName: __expectString(output.assessmentName),
6420
6506
  author: __expectString(output.author),
6421
6507
  creationTime: output.creationTime !== undefined && output.creationTime !== null
6422
- ? new Date(Math.round(output.creationTime * 1000))
6508
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
6423
6509
  : undefined,
6424
6510
  description: __expectString(output.description),
6425
6511
  id: __expectString(output.id),
@@ -6534,7 +6620,7 @@ var deserializeAws_restJson1ChangeLog = function (output, context) {
6534
6620
  return {
6535
6621
  action: __expectString(output.action),
6536
6622
  createdAt: output.createdAt !== undefined && output.createdAt !== null
6537
- ? new Date(Math.round(output.createdAt * 1000))
6623
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6538
6624
  : undefined,
6539
6625
  createdBy: __expectString(output.createdBy),
6540
6626
  objectName: __expectString(output.objectName),
@@ -6561,13 +6647,13 @@ var deserializeAws_restJson1Control = function (output, context) {
6561
6647
  : undefined,
6562
6648
  controlSources: __expectString(output.controlSources),
6563
6649
  createdAt: output.createdAt !== undefined && output.createdAt !== null
6564
- ? new Date(Math.round(output.createdAt * 1000))
6650
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6565
6651
  : undefined,
6566
6652
  createdBy: __expectString(output.createdBy),
6567
6653
  description: __expectString(output.description),
6568
6654
  id: __expectString(output.id),
6569
6655
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
6570
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
6656
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
6571
6657
  : undefined,
6572
6658
  lastUpdatedBy: __expectString(output.lastUpdatedBy),
6573
6659
  name: __expectString(output.name),
@@ -6583,7 +6669,7 @@ var deserializeAws_restJson1ControlComment = function (output, context) {
6583
6669
  authorName: __expectString(output.authorName),
6584
6670
  commentBody: __expectString(output.commentBody),
6585
6671
  postedDate: output.postedDate !== undefined && output.postedDate !== null
6586
- ? new Date(Math.round(output.postedDate * 1000))
6672
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.postedDate)))
6587
6673
  : undefined,
6588
6674
  };
6589
6675
  };
@@ -6626,11 +6712,11 @@ var deserializeAws_restJson1ControlMetadata = function (output, context) {
6626
6712
  arn: __expectString(output.arn),
6627
6713
  controlSources: __expectString(output.controlSources),
6628
6714
  createdAt: output.createdAt !== undefined && output.createdAt !== null
6629
- ? new Date(Math.round(output.createdAt * 1000))
6715
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6630
6716
  : undefined,
6631
6717
  id: __expectString(output.id),
6632
6718
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
6633
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
6719
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
6634
6720
  : undefined,
6635
6721
  name: __expectString(output.name),
6636
6722
  };
@@ -6690,11 +6776,11 @@ var deserializeAws_restJson1Delegation = function (output, context) {
6690
6776
  controlSetId: __expectString(output.controlSetId),
6691
6777
  createdBy: __expectString(output.createdBy),
6692
6778
  creationTime: output.creationTime !== undefined && output.creationTime !== null
6693
- ? new Date(Math.round(output.creationTime * 1000))
6779
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
6694
6780
  : undefined,
6695
6781
  id: __expectString(output.id),
6696
6782
  lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
6697
- ? new Date(Math.round(output.lastUpdated * 1000))
6783
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
6698
6784
  : undefined,
6699
6785
  roleArn: __expectString(output.roleArn),
6700
6786
  roleType: __expectString(output.roleType),
@@ -6707,7 +6793,7 @@ var deserializeAws_restJson1DelegationMetadata = function (output, context) {
6707
6793
  assessmentName: __expectString(output.assessmentName),
6708
6794
  controlSetName: __expectString(output.controlSetName),
6709
6795
  creationTime: output.creationTime !== undefined && output.creationTime !== null
6710
- ? new Date(Math.round(output.creationTime * 1000))
6796
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
6711
6797
  : undefined,
6712
6798
  id: __expectString(output.id),
6713
6799
  roleArn: __expectString(output.roleArn),
@@ -6754,7 +6840,9 @@ var deserializeAws_restJson1Evidence = function (output, context) {
6754
6840
  resourcesIncluded: output.resourcesIncluded !== undefined && output.resourcesIncluded !== null
6755
6841
  ? deserializeAws_restJson1Resources(output.resourcesIncluded, context)
6756
6842
  : undefined,
6757
- time: output.time !== undefined && output.time !== null ? new Date(Math.round(output.time * 1000)) : undefined,
6843
+ time: output.time !== undefined && output.time !== null
6844
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.time)))
6845
+ : undefined,
6758
6846
  };
6759
6847
  };
6760
6848
  var deserializeAws_restJson1EvidenceAttributes = function (output, context) {
@@ -6806,13 +6894,13 @@ var deserializeAws_restJson1Framework = function (output, context) {
6806
6894
  : undefined,
6807
6895
  controlSources: __expectString(output.controlSources),
6808
6896
  createdAt: output.createdAt !== undefined && output.createdAt !== null
6809
- ? new Date(Math.round(output.createdAt * 1000))
6897
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6810
6898
  : undefined,
6811
6899
  createdBy: __expectString(output.createdBy),
6812
6900
  description: __expectString(output.description),
6813
6901
  id: __expectString(output.id),
6814
6902
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
6815
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
6903
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
6816
6904
  : undefined,
6817
6905
  lastUpdatedBy: __expectString(output.lastUpdatedBy),
6818
6906
  logo: __expectString(output.logo),
@@ -6874,7 +6962,7 @@ var deserializeAws_restJson1Notification = function (output, context) {
6874
6962
  controlSetName: __expectString(output.controlSetName),
6875
6963
  description: __expectString(output.description),
6876
6964
  eventTime: output.eventTime !== undefined && output.eventTime !== null
6877
- ? new Date(Math.round(output.eventTime * 1000))
6965
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
6878
6966
  : undefined,
6879
6967
  id: __expectString(output.id),
6880
6968
  source: __expectString(output.source),