@aws-sdk/client-lambda 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, limitedParseFloat as __limitedParseFloat, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1AddLayerVersionPermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
6
6
  return __generator(this, function (_c) {
@@ -2088,9 +2088,9 @@ export var serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = functi
2088
2088
  });
2089
2089
  }); };
2090
2090
  export var deserializeAws_restJson1AddLayerVersionPermissionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2091
- var contents, data;
2092
- return __generator(this, function (_a) {
2093
- switch (_a.label) {
2091
+ var contents, data, _a, _b;
2092
+ return __generator(this, function (_c) {
2093
+ switch (_c.label) {
2094
2094
  case 0:
2095
2095
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2096
2096
  return [2 /*return*/, deserializeAws_restJson1AddLayerVersionPermissionCommandError(output, context)];
@@ -2100,9 +2100,11 @@ export var deserializeAws_restJson1AddLayerVersionPermissionCommand = function (
2100
2100
  RevisionId: undefined,
2101
2101
  Statement: undefined,
2102
2102
  };
2103
+ _a = __expectNonNull;
2104
+ _b = __expectObject;
2103
2105
  return [4 /*yield*/, parseBody(output.body, context)];
2104
2106
  case 1:
2105
- data = _a.sent();
2107
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2106
2108
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
2107
2109
  contents.RevisionId = __expectString(data.RevisionId);
2108
2110
  }
@@ -2200,9 +2202,9 @@ var deserializeAws_restJson1AddLayerVersionPermissionCommandError = function (ou
2200
2202
  });
2201
2203
  }); };
2202
2204
  export var deserializeAws_restJson1AddPermissionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2203
- var contents, data;
2204
- return __generator(this, function (_a) {
2205
- switch (_a.label) {
2205
+ var contents, data, _a, _b;
2206
+ return __generator(this, function (_c) {
2207
+ switch (_c.label) {
2206
2208
  case 0:
2207
2209
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2208
2210
  return [2 /*return*/, deserializeAws_restJson1AddPermissionCommandError(output, context)];
@@ -2211,9 +2213,11 @@ export var deserializeAws_restJson1AddPermissionCommand = function (output, cont
2211
2213
  $metadata: deserializeMetadata(output),
2212
2214
  Statement: undefined,
2213
2215
  };
2216
+ _a = __expectNonNull;
2217
+ _b = __expectObject;
2214
2218
  return [4 /*yield*/, parseBody(output.body, context)];
2215
2219
  case 1:
2216
- data = _a.sent();
2220
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2217
2221
  if (data.Statement !== undefined && data.Statement !== null) {
2218
2222
  contents.Statement = __expectString(data.Statement);
2219
2223
  }
@@ -2308,9 +2312,9 @@ var deserializeAws_restJson1AddPermissionCommandError = function (output, contex
2308
2312
  });
2309
2313
  }); };
2310
2314
  export var deserializeAws_restJson1CreateAliasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2311
- var contents, data;
2312
- return __generator(this, function (_a) {
2313
- switch (_a.label) {
2315
+ var contents, data, _a, _b;
2316
+ return __generator(this, function (_c) {
2317
+ switch (_c.label) {
2314
2318
  case 0:
2315
2319
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2316
2320
  return [2 /*return*/, deserializeAws_restJson1CreateAliasCommandError(output, context)];
@@ -2324,9 +2328,11 @@ export var deserializeAws_restJson1CreateAliasCommand = function (output, contex
2324
2328
  RevisionId: undefined,
2325
2329
  RoutingConfig: undefined,
2326
2330
  };
2331
+ _a = __expectNonNull;
2332
+ _b = __expectObject;
2327
2333
  return [4 /*yield*/, parseBody(output.body, context)];
2328
2334
  case 1:
2329
- data = _a.sent();
2335
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2330
2336
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
2331
2337
  contents.AliasArn = __expectString(data.AliasArn);
2332
2338
  }
@@ -2420,9 +2426,9 @@ var deserializeAws_restJson1CreateAliasCommandError = function (output, context)
2420
2426
  });
2421
2427
  }); };
2422
2428
  export var deserializeAws_restJson1CreateCodeSigningConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2423
- var contents, data;
2424
- return __generator(this, function (_a) {
2425
- switch (_a.label) {
2429
+ var contents, data, _a, _b;
2430
+ return __generator(this, function (_c) {
2431
+ switch (_c.label) {
2426
2432
  case 0:
2427
2433
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2428
2434
  return [2 /*return*/, deserializeAws_restJson1CreateCodeSigningConfigCommandError(output, context)];
@@ -2431,9 +2437,11 @@ export var deserializeAws_restJson1CreateCodeSigningConfigCommand = function (ou
2431
2437
  $metadata: deserializeMetadata(output),
2432
2438
  CodeSigningConfig: undefined,
2433
2439
  };
2440
+ _a = __expectNonNull;
2441
+ _b = __expectObject;
2434
2442
  return [4 /*yield*/, parseBody(output.body, context)];
2435
2443
  case 1:
2436
- data = _a.sent();
2444
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2437
2445
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
2438
2446
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
2439
2447
  }
@@ -2488,9 +2496,9 @@ var deserializeAws_restJson1CreateCodeSigningConfigCommandError = function (outp
2488
2496
  });
2489
2497
  }); };
2490
2498
  export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2491
- var contents, data;
2492
- return __generator(this, function (_a) {
2493
- switch (_a.label) {
2499
+ var contents, data, _a, _b;
2500
+ return __generator(this, function (_c) {
2501
+ switch (_c.label) {
2494
2502
  case 0:
2495
2503
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2496
2504
  return [2 /*return*/, deserializeAws_restJson1CreateEventSourceMappingCommandError(output, context)];
@@ -2520,11 +2528,13 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
2520
2528
  TumblingWindowInSeconds: undefined,
2521
2529
  UUID: undefined,
2522
2530
  };
2531
+ _a = __expectNonNull;
2532
+ _b = __expectObject;
2523
2533
  return [4 /*yield*/, parseBody(output.body, context)];
2524
2534
  case 1:
2525
- data = _a.sent();
2535
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2526
2536
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
2527
- contents.BatchSize = __expectInt(data.BatchSize);
2537
+ contents.BatchSize = __expectInt32(data.BatchSize);
2528
2538
  }
2529
2539
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
2530
2540
  contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
@@ -2542,22 +2552,22 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
2542
2552
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
2543
2553
  }
2544
2554
  if (data.LastModified !== undefined && data.LastModified !== null) {
2545
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
2555
+ contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
2546
2556
  }
2547
2557
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
2548
2558
  contents.LastProcessingResult = __expectString(data.LastProcessingResult);
2549
2559
  }
2550
2560
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
2551
- contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds);
2561
+ contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
2552
2562
  }
2553
2563
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
2554
- contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds);
2564
+ contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
2555
2565
  }
2556
2566
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
2557
- contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts);
2567
+ contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
2558
2568
  }
2559
2569
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
2560
- contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor);
2570
+ contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
2561
2571
  }
2562
2572
  if (data.Queues !== undefined && data.Queues !== null) {
2563
2573
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -2572,7 +2582,7 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
2572
2582
  contents.StartingPosition = __expectString(data.StartingPosition);
2573
2583
  }
2574
2584
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
2575
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
2585
+ contents.StartingPositionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp)));
2576
2586
  }
2577
2587
  if (data.State !== undefined && data.State !== null) {
2578
2588
  contents.State = __expectString(data.State);
@@ -2584,7 +2594,7 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
2584
2594
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
2585
2595
  }
2586
2596
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
2587
- contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds);
2597
+ contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
2588
2598
  }
2589
2599
  if (data.UUID !== undefined && data.UUID !== null) {
2590
2600
  contents.UUID = __expectString(data.UUID);
@@ -2664,9 +2674,9 @@ var deserializeAws_restJson1CreateEventSourceMappingCommandError = function (out
2664
2674
  });
2665
2675
  }); };
2666
2676
  export var deserializeAws_restJson1CreateFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2667
- var contents, data;
2668
- return __generator(this, function (_a) {
2669
- switch (_a.label) {
2677
+ var contents, data, _a, _b;
2678
+ return __generator(this, function (_c) {
2679
+ switch (_c.label) {
2670
2680
  case 0:
2671
2681
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2672
2682
  return [2 /*return*/, deserializeAws_restJson1CreateFunctionCommandError(output, context)];
@@ -2705,14 +2715,16 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
2705
2715
  Version: undefined,
2706
2716
  VpcConfig: undefined,
2707
2717
  };
2718
+ _a = __expectNonNull;
2719
+ _b = __expectObject;
2708
2720
  return [4 /*yield*/, parseBody(output.body, context)];
2709
2721
  case 1:
2710
- data = _a.sent();
2722
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2711
2723
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
2712
2724
  contents.CodeSha256 = __expectString(data.CodeSha256);
2713
2725
  }
2714
2726
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
2715
- contents.CodeSize = __expectInt(data.CodeSize);
2727
+ contents.CodeSize = __expectLong(data.CodeSize);
2716
2728
  }
2717
2729
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
2718
2730
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -2760,7 +2772,7 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
2760
2772
  contents.MasterArn = __expectString(data.MasterArn);
2761
2773
  }
2762
2774
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
2763
- contents.MemorySize = __expectInt(data.MemorySize);
2775
+ contents.MemorySize = __expectInt32(data.MemorySize);
2764
2776
  }
2765
2777
  if (data.PackageType !== undefined && data.PackageType !== null) {
2766
2778
  contents.PackageType = __expectString(data.PackageType);
@@ -2790,7 +2802,7 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
2790
2802
  contents.StateReasonCode = __expectString(data.StateReasonCode);
2791
2803
  }
2792
2804
  if (data.Timeout !== undefined && data.Timeout !== null) {
2793
- contents.Timeout = __expectInt(data.Timeout);
2805
+ contents.Timeout = __expectInt32(data.Timeout);
2794
2806
  }
2795
2807
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
2796
2808
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -3068,9 +3080,9 @@ var deserializeAws_restJson1DeleteCodeSigningConfigCommandError = function (outp
3068
3080
  });
3069
3081
  }); };
3070
3082
  export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3071
- var contents, data;
3072
- return __generator(this, function (_a) {
3073
- switch (_a.label) {
3083
+ var contents, data, _a, _b;
3084
+ return __generator(this, function (_c) {
3085
+ switch (_c.label) {
3074
3086
  case 0:
3075
3087
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3076
3088
  return [2 /*return*/, deserializeAws_restJson1DeleteEventSourceMappingCommandError(output, context)];
@@ -3100,11 +3112,13 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
3100
3112
  TumblingWindowInSeconds: undefined,
3101
3113
  UUID: undefined,
3102
3114
  };
3115
+ _a = __expectNonNull;
3116
+ _b = __expectObject;
3103
3117
  return [4 /*yield*/, parseBody(output.body, context)];
3104
3118
  case 1:
3105
- data = _a.sent();
3119
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3106
3120
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
3107
- contents.BatchSize = __expectInt(data.BatchSize);
3121
+ contents.BatchSize = __expectInt32(data.BatchSize);
3108
3122
  }
3109
3123
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
3110
3124
  contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
@@ -3122,22 +3136,22 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
3122
3136
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
3123
3137
  }
3124
3138
  if (data.LastModified !== undefined && data.LastModified !== null) {
3125
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
3139
+ contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
3126
3140
  }
3127
3141
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
3128
3142
  contents.LastProcessingResult = __expectString(data.LastProcessingResult);
3129
3143
  }
3130
3144
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
3131
- contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds);
3145
+ contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
3132
3146
  }
3133
3147
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
3134
- contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds);
3148
+ contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
3135
3149
  }
3136
3150
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
3137
- contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts);
3151
+ contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
3138
3152
  }
3139
3153
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
3140
- contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor);
3154
+ contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
3141
3155
  }
3142
3156
  if (data.Queues !== undefined && data.Queues !== null) {
3143
3157
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -3152,7 +3166,7 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
3152
3166
  contents.StartingPosition = __expectString(data.StartingPosition);
3153
3167
  }
3154
3168
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
3155
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
3169
+ contents.StartingPositionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp)));
3156
3170
  }
3157
3171
  if (data.State !== undefined && data.State !== null) {
3158
3172
  contents.State = __expectString(data.State);
@@ -3164,7 +3178,7 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
3164
3178
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
3165
3179
  }
3166
3180
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
3167
- contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds);
3181
+ contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
3168
3182
  }
3169
3183
  if (data.UUID !== undefined && data.UUID !== null) {
3170
3184
  contents.UUID = __expectString(data.UUID);
@@ -3756,9 +3770,9 @@ var deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommandError = fun
3756
3770
  });
3757
3771
  }); };
3758
3772
  export var deserializeAws_restJson1GetAccountSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3759
- var contents, data;
3760
- return __generator(this, function (_a) {
3761
- switch (_a.label) {
3773
+ var contents, data, _a, _b;
3774
+ return __generator(this, function (_c) {
3775
+ switch (_c.label) {
3762
3776
  case 0:
3763
3777
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3764
3778
  return [2 /*return*/, deserializeAws_restJson1GetAccountSettingsCommandError(output, context)];
@@ -3768,9 +3782,11 @@ export var deserializeAws_restJson1GetAccountSettingsCommand = function (output,
3768
3782
  AccountLimit: undefined,
3769
3783
  AccountUsage: undefined,
3770
3784
  };
3785
+ _a = __expectNonNull;
3786
+ _b = __expectObject;
3771
3787
  return [4 /*yield*/, parseBody(output.body, context)];
3772
3788
  case 1:
3773
- data = _a.sent();
3789
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3774
3790
  if (data.AccountLimit !== undefined && data.AccountLimit !== null) {
3775
3791
  contents.AccountLimit = deserializeAws_restJson1AccountLimit(data.AccountLimit, context);
3776
3792
  }
@@ -3828,9 +3844,9 @@ var deserializeAws_restJson1GetAccountSettingsCommandError = function (output, c
3828
3844
  });
3829
3845
  }); };
3830
3846
  export var deserializeAws_restJson1GetAliasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3831
- var contents, data;
3832
- return __generator(this, function (_a) {
3833
- switch (_a.label) {
3847
+ var contents, data, _a, _b;
3848
+ return __generator(this, function (_c) {
3849
+ switch (_c.label) {
3834
3850
  case 0:
3835
3851
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3836
3852
  return [2 /*return*/, deserializeAws_restJson1GetAliasCommandError(output, context)];
@@ -3844,9 +3860,11 @@ export var deserializeAws_restJson1GetAliasCommand = function (output, context)
3844
3860
  RevisionId: undefined,
3845
3861
  RoutingConfig: undefined,
3846
3862
  };
3863
+ _a = __expectNonNull;
3864
+ _b = __expectObject;
3847
3865
  return [4 /*yield*/, parseBody(output.body, context)];
3848
3866
  case 1:
3849
- data = _a.sent();
3867
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3850
3868
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
3851
3869
  contents.AliasArn = __expectString(data.AliasArn);
3852
3870
  }
@@ -3932,9 +3950,9 @@ var deserializeAws_restJson1GetAliasCommandError = function (output, context) {
3932
3950
  });
3933
3951
  }); };
3934
3952
  export var deserializeAws_restJson1GetCodeSigningConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3935
- var contents, data;
3936
- return __generator(this, function (_a) {
3937
- switch (_a.label) {
3953
+ var contents, data, _a, _b;
3954
+ return __generator(this, function (_c) {
3955
+ switch (_c.label) {
3938
3956
  case 0:
3939
3957
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3940
3958
  return [2 /*return*/, deserializeAws_restJson1GetCodeSigningConfigCommandError(output, context)];
@@ -3943,9 +3961,11 @@ export var deserializeAws_restJson1GetCodeSigningConfigCommand = function (outpu
3943
3961
  $metadata: deserializeMetadata(output),
3944
3962
  CodeSigningConfig: undefined,
3945
3963
  };
3964
+ _a = __expectNonNull;
3965
+ _b = __expectObject;
3946
3966
  return [4 /*yield*/, parseBody(output.body, context)];
3947
3967
  case 1:
3948
- data = _a.sent();
3968
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3949
3969
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
3950
3970
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
3951
3971
  }
@@ -4008,9 +4028,9 @@ var deserializeAws_restJson1GetCodeSigningConfigCommandError = function (output,
4008
4028
  });
4009
4029
  }); };
4010
4030
  export var deserializeAws_restJson1GetEventSourceMappingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4011
- var contents, data;
4012
- return __generator(this, function (_a) {
4013
- switch (_a.label) {
4031
+ var contents, data, _a, _b;
4032
+ return __generator(this, function (_c) {
4033
+ switch (_c.label) {
4014
4034
  case 0:
4015
4035
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4016
4036
  return [2 /*return*/, deserializeAws_restJson1GetEventSourceMappingCommandError(output, context)];
@@ -4040,11 +4060,13 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
4040
4060
  TumblingWindowInSeconds: undefined,
4041
4061
  UUID: undefined,
4042
4062
  };
4063
+ _a = __expectNonNull;
4064
+ _b = __expectObject;
4043
4065
  return [4 /*yield*/, parseBody(output.body, context)];
4044
4066
  case 1:
4045
- data = _a.sent();
4067
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4046
4068
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
4047
- contents.BatchSize = __expectInt(data.BatchSize);
4069
+ contents.BatchSize = __expectInt32(data.BatchSize);
4048
4070
  }
4049
4071
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
4050
4072
  contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
@@ -4062,22 +4084,22 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
4062
4084
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
4063
4085
  }
4064
4086
  if (data.LastModified !== undefined && data.LastModified !== null) {
4065
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
4087
+ contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
4066
4088
  }
4067
4089
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
4068
4090
  contents.LastProcessingResult = __expectString(data.LastProcessingResult);
4069
4091
  }
4070
4092
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
4071
- contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds);
4093
+ contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
4072
4094
  }
4073
4095
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
4074
- contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds);
4096
+ contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
4075
4097
  }
4076
4098
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
4077
- contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts);
4099
+ contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
4078
4100
  }
4079
4101
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
4080
- contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor);
4102
+ contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
4081
4103
  }
4082
4104
  if (data.Queues !== undefined && data.Queues !== null) {
4083
4105
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -4092,7 +4114,7 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
4092
4114
  contents.StartingPosition = __expectString(data.StartingPosition);
4093
4115
  }
4094
4116
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
4095
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
4117
+ contents.StartingPositionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp)));
4096
4118
  }
4097
4119
  if (data.State !== undefined && data.State !== null) {
4098
4120
  contents.State = __expectString(data.State);
@@ -4104,7 +4126,7 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
4104
4126
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
4105
4127
  }
4106
4128
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
4107
- contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds);
4129
+ contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
4108
4130
  }
4109
4131
  if (data.UUID !== undefined && data.UUID !== null) {
4110
4132
  contents.UUID = __expectString(data.UUID);
@@ -4176,9 +4198,9 @@ var deserializeAws_restJson1GetEventSourceMappingCommandError = function (output
4176
4198
  });
4177
4199
  }); };
4178
4200
  export var deserializeAws_restJson1GetFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4179
- var contents, data;
4180
- return __generator(this, function (_a) {
4181
- switch (_a.label) {
4201
+ var contents, data, _a, _b;
4202
+ return __generator(this, function (_c) {
4203
+ switch (_c.label) {
4182
4204
  case 0:
4183
4205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4184
4206
  return [2 /*return*/, deserializeAws_restJson1GetFunctionCommandError(output, context)];
@@ -4190,9 +4212,11 @@ export var deserializeAws_restJson1GetFunctionCommand = function (output, contex
4190
4212
  Configuration: undefined,
4191
4213
  Tags: undefined,
4192
4214
  };
4215
+ _a = __expectNonNull;
4216
+ _b = __expectObject;
4193
4217
  return [4 /*yield*/, parseBody(output.body, context)];
4194
4218
  case 1:
4195
- data = _a.sent();
4219
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4196
4220
  if (data.Code !== undefined && data.Code !== null) {
4197
4221
  contents.Code = deserializeAws_restJson1FunctionCodeLocation(data.Code, context);
4198
4222
  }
@@ -4272,9 +4296,9 @@ var deserializeAws_restJson1GetFunctionCommandError = function (output, context)
4272
4296
  });
4273
4297
  }); };
4274
4298
  export var deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4275
- var contents, data;
4276
- return __generator(this, function (_a) {
4277
- switch (_a.label) {
4299
+ var contents, data, _a, _b;
4300
+ return __generator(this, function (_c) {
4301
+ switch (_c.label) {
4278
4302
  case 0:
4279
4303
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4280
4304
  return [2 /*return*/, deserializeAws_restJson1GetFunctionCodeSigningConfigCommandError(output, context)];
@@ -4284,9 +4308,11 @@ export var deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = functio
4284
4308
  CodeSigningConfigArn: undefined,
4285
4309
  FunctionName: undefined,
4286
4310
  };
4311
+ _a = __expectNonNull;
4312
+ _b = __expectObject;
4287
4313
  return [4 /*yield*/, parseBody(output.body, context)];
4288
4314
  case 1:
4289
- data = _a.sent();
4315
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4290
4316
  if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
4291
4317
  contents.CodeSigningConfigArn = __expectString(data.CodeSigningConfigArn);
4292
4318
  }
@@ -4360,9 +4386,9 @@ var deserializeAws_restJson1GetFunctionCodeSigningConfigCommandError = function
4360
4386
  });
4361
4387
  }); };
4362
4388
  export var deserializeAws_restJson1GetFunctionConcurrencyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4363
- var contents, data;
4364
- return __generator(this, function (_a) {
4365
- switch (_a.label) {
4389
+ var contents, data, _a, _b;
4390
+ return __generator(this, function (_c) {
4391
+ switch (_c.label) {
4366
4392
  case 0:
4367
4393
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4368
4394
  return [2 /*return*/, deserializeAws_restJson1GetFunctionConcurrencyCommandError(output, context)];
@@ -4371,11 +4397,13 @@ export var deserializeAws_restJson1GetFunctionConcurrencyCommand = function (out
4371
4397
  $metadata: deserializeMetadata(output),
4372
4398
  ReservedConcurrentExecutions: undefined,
4373
4399
  };
4400
+ _a = __expectNonNull;
4401
+ _b = __expectObject;
4374
4402
  return [4 /*yield*/, parseBody(output.body, context)];
4375
4403
  case 1:
4376
- data = _a.sent();
4404
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4377
4405
  if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
4378
- contents.ReservedConcurrentExecutions = __expectInt(data.ReservedConcurrentExecutions);
4406
+ contents.ReservedConcurrentExecutions = __expectInt32(data.ReservedConcurrentExecutions);
4379
4407
  }
4380
4408
  return [2 /*return*/, Promise.resolve(contents)];
4381
4409
  }
@@ -4444,9 +4472,9 @@ var deserializeAws_restJson1GetFunctionConcurrencyCommandError = function (outpu
4444
4472
  });
4445
4473
  }); };
4446
4474
  export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4447
- var contents, data;
4448
- return __generator(this, function (_a) {
4449
- switch (_a.label) {
4475
+ var contents, data, _a, _b;
4476
+ return __generator(this, function (_c) {
4477
+ switch (_c.label) {
4450
4478
  case 0:
4451
4479
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4452
4480
  return [2 /*return*/, deserializeAws_restJson1GetFunctionConfigurationCommandError(output, context)];
@@ -4485,14 +4513,16 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
4485
4513
  Version: undefined,
4486
4514
  VpcConfig: undefined,
4487
4515
  };
4516
+ _a = __expectNonNull;
4517
+ _b = __expectObject;
4488
4518
  return [4 /*yield*/, parseBody(output.body, context)];
4489
4519
  case 1:
4490
- data = _a.sent();
4520
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4491
4521
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
4492
4522
  contents.CodeSha256 = __expectString(data.CodeSha256);
4493
4523
  }
4494
4524
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
4495
- contents.CodeSize = __expectInt(data.CodeSize);
4525
+ contents.CodeSize = __expectLong(data.CodeSize);
4496
4526
  }
4497
4527
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
4498
4528
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -4540,7 +4570,7 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
4540
4570
  contents.MasterArn = __expectString(data.MasterArn);
4541
4571
  }
4542
4572
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
4543
- contents.MemorySize = __expectInt(data.MemorySize);
4573
+ contents.MemorySize = __expectInt32(data.MemorySize);
4544
4574
  }
4545
4575
  if (data.PackageType !== undefined && data.PackageType !== null) {
4546
4576
  contents.PackageType = __expectString(data.PackageType);
@@ -4570,7 +4600,7 @@ export var deserializeAws_restJson1GetFunctionConfigurationCommand = function (o
4570
4600
  contents.StateReasonCode = __expectString(data.StateReasonCode);
4571
4601
  }
4572
4602
  if (data.Timeout !== undefined && data.Timeout !== null) {
4573
- contents.Timeout = __expectInt(data.Timeout);
4603
+ contents.Timeout = __expectInt32(data.Timeout);
4574
4604
  }
4575
4605
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
4576
4606
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -4648,9 +4678,9 @@ var deserializeAws_restJson1GetFunctionConfigurationCommandError = function (out
4648
4678
  });
4649
4679
  }); };
4650
4680
  export var deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4651
- var contents, data;
4652
- return __generator(this, function (_a) {
4653
- switch (_a.label) {
4681
+ var contents, data, _a, _b;
4682
+ return __generator(this, function (_c) {
4683
+ switch (_c.label) {
4654
4684
  case 0:
4655
4685
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4656
4686
  return [2 /*return*/, deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError(output, context)];
@@ -4663,9 +4693,11 @@ export var deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = functio
4663
4693
  MaximumEventAgeInSeconds: undefined,
4664
4694
  MaximumRetryAttempts: undefined,
4665
4695
  };
4696
+ _a = __expectNonNull;
4697
+ _b = __expectObject;
4666
4698
  return [4 /*yield*/, parseBody(output.body, context)];
4667
4699
  case 1:
4668
- data = _a.sent();
4700
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4669
4701
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
4670
4702
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
4671
4703
  }
@@ -4673,13 +4705,13 @@ export var deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = functio
4673
4705
  contents.FunctionArn = __expectString(data.FunctionArn);
4674
4706
  }
4675
4707
  if (data.LastModified !== undefined && data.LastModified !== null) {
4676
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
4708
+ contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
4677
4709
  }
4678
4710
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
4679
- contents.MaximumEventAgeInSeconds = __expectInt(data.MaximumEventAgeInSeconds);
4711
+ contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
4680
4712
  }
4681
4713
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
4682
- contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts);
4714
+ contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
4683
4715
  }
4684
4716
  return [2 /*return*/, Promise.resolve(contents)];
4685
4717
  }
@@ -4748,9 +4780,9 @@ var deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = function
4748
4780
  });
4749
4781
  }); };
4750
4782
  export var deserializeAws_restJson1GetLayerVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4751
- var contents, data;
4752
- return __generator(this, function (_a) {
4753
- switch (_a.label) {
4783
+ var contents, data, _a, _b;
4784
+ return __generator(this, function (_c) {
4785
+ switch (_c.label) {
4754
4786
  case 0:
4755
4787
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4756
4788
  return [2 /*return*/, deserializeAws_restJson1GetLayerVersionCommandError(output, context)];
@@ -4766,9 +4798,11 @@ export var deserializeAws_restJson1GetLayerVersionCommand = function (output, co
4766
4798
  LicenseInfo: undefined,
4767
4799
  Version: undefined,
4768
4800
  };
4801
+ _a = __expectNonNull;
4802
+ _b = __expectObject;
4769
4803
  return [4 /*yield*/, parseBody(output.body, context)];
4770
4804
  case 1:
4771
- data = _a.sent();
4805
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4772
4806
  if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
4773
4807
  contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
4774
4808
  }
@@ -4791,7 +4825,7 @@ export var deserializeAws_restJson1GetLayerVersionCommand = function (output, co
4791
4825
  contents.LicenseInfo = __expectString(data.LicenseInfo);
4792
4826
  }
4793
4827
  if (data.Version !== undefined && data.Version !== null) {
4794
- contents.Version = __expectInt(data.Version);
4828
+ contents.Version = __expectLong(data.Version);
4795
4829
  }
4796
4830
  return [2 /*return*/, Promise.resolve(contents)];
4797
4831
  }
@@ -4860,9 +4894,9 @@ var deserializeAws_restJson1GetLayerVersionCommandError = function (output, cont
4860
4894
  });
4861
4895
  }); };
4862
4896
  export var deserializeAws_restJson1GetLayerVersionByArnCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4863
- var contents, data;
4864
- return __generator(this, function (_a) {
4865
- switch (_a.label) {
4897
+ var contents, data, _a, _b;
4898
+ return __generator(this, function (_c) {
4899
+ switch (_c.label) {
4866
4900
  case 0:
4867
4901
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4868
4902
  return [2 /*return*/, deserializeAws_restJson1GetLayerVersionByArnCommandError(output, context)];
@@ -4878,9 +4912,11 @@ export var deserializeAws_restJson1GetLayerVersionByArnCommand = function (outpu
4878
4912
  LicenseInfo: undefined,
4879
4913
  Version: undefined,
4880
4914
  };
4915
+ _a = __expectNonNull;
4916
+ _b = __expectObject;
4881
4917
  return [4 /*yield*/, parseBody(output.body, context)];
4882
4918
  case 1:
4883
- data = _a.sent();
4919
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4884
4920
  if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
4885
4921
  contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
4886
4922
  }
@@ -4903,7 +4939,7 @@ export var deserializeAws_restJson1GetLayerVersionByArnCommand = function (outpu
4903
4939
  contents.LicenseInfo = __expectString(data.LicenseInfo);
4904
4940
  }
4905
4941
  if (data.Version !== undefined && data.Version !== null) {
4906
- contents.Version = __expectInt(data.Version);
4942
+ contents.Version = __expectLong(data.Version);
4907
4943
  }
4908
4944
  return [2 /*return*/, Promise.resolve(contents)];
4909
4945
  }
@@ -4972,9 +5008,9 @@ var deserializeAws_restJson1GetLayerVersionByArnCommandError = function (output,
4972
5008
  });
4973
5009
  }); };
4974
5010
  export var deserializeAws_restJson1GetLayerVersionPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4975
- var contents, data;
4976
- return __generator(this, function (_a) {
4977
- switch (_a.label) {
5011
+ var contents, data, _a, _b;
5012
+ return __generator(this, function (_c) {
5013
+ switch (_c.label) {
4978
5014
  case 0:
4979
5015
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4980
5016
  return [2 /*return*/, deserializeAws_restJson1GetLayerVersionPolicyCommandError(output, context)];
@@ -4984,9 +5020,11 @@ export var deserializeAws_restJson1GetLayerVersionPolicyCommand = function (outp
4984
5020
  Policy: undefined,
4985
5021
  RevisionId: undefined,
4986
5022
  };
5023
+ _a = __expectNonNull;
5024
+ _b = __expectObject;
4987
5025
  return [4 /*yield*/, parseBody(output.body, context)];
4988
5026
  case 1:
4989
- data = _a.sent();
5027
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4990
5028
  if (data.Policy !== undefined && data.Policy !== null) {
4991
5029
  contents.Policy = __expectString(data.Policy);
4992
5030
  }
@@ -5060,9 +5098,9 @@ var deserializeAws_restJson1GetLayerVersionPolicyCommandError = function (output
5060
5098
  });
5061
5099
  }); };
5062
5100
  export var deserializeAws_restJson1GetPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5063
- var contents, data;
5064
- return __generator(this, function (_a) {
5065
- switch (_a.label) {
5101
+ var contents, data, _a, _b;
5102
+ return __generator(this, function (_c) {
5103
+ switch (_c.label) {
5066
5104
  case 0:
5067
5105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5068
5106
  return [2 /*return*/, deserializeAws_restJson1GetPolicyCommandError(output, context)];
@@ -5072,9 +5110,11 @@ export var deserializeAws_restJson1GetPolicyCommand = function (output, context)
5072
5110
  Policy: undefined,
5073
5111
  RevisionId: undefined,
5074
5112
  };
5113
+ _a = __expectNonNull;
5114
+ _b = __expectObject;
5075
5115
  return [4 /*yield*/, parseBody(output.body, context)];
5076
5116
  case 1:
5077
- data = _a.sent();
5117
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5078
5118
  if (data.Policy !== undefined && data.Policy !== null) {
5079
5119
  contents.Policy = __expectString(data.Policy);
5080
5120
  }
@@ -5148,9 +5188,9 @@ var deserializeAws_restJson1GetPolicyCommandError = function (output, context) {
5148
5188
  });
5149
5189
  }); };
5150
5190
  export var deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5151
- var contents, data;
5152
- return __generator(this, function (_a) {
5153
- switch (_a.label) {
5191
+ var contents, data, _a, _b;
5192
+ return __generator(this, function (_c) {
5193
+ switch (_c.label) {
5154
5194
  case 0:
5155
5195
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5156
5196
  return [2 /*return*/, deserializeAws_restJson1GetProvisionedConcurrencyConfigCommandError(output, context)];
@@ -5164,23 +5204,25 @@ export var deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = func
5164
5204
  Status: undefined,
5165
5205
  StatusReason: undefined,
5166
5206
  };
5207
+ _a = __expectNonNull;
5208
+ _b = __expectObject;
5167
5209
  return [4 /*yield*/, parseBody(output.body, context)];
5168
5210
  case 1:
5169
- data = _a.sent();
5211
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5170
5212
  if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
5171
5213
  data.AllocatedProvisionedConcurrentExecutions !== null) {
5172
- contents.AllocatedProvisionedConcurrentExecutions = __expectInt(data.AllocatedProvisionedConcurrentExecutions);
5214
+ contents.AllocatedProvisionedConcurrentExecutions = __expectInt32(data.AllocatedProvisionedConcurrentExecutions);
5173
5215
  }
5174
5216
  if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
5175
5217
  data.AvailableProvisionedConcurrentExecutions !== null) {
5176
- contents.AvailableProvisionedConcurrentExecutions = __expectInt(data.AvailableProvisionedConcurrentExecutions);
5218
+ contents.AvailableProvisionedConcurrentExecutions = __expectInt32(data.AvailableProvisionedConcurrentExecutions);
5177
5219
  }
5178
5220
  if (data.LastModified !== undefined && data.LastModified !== null) {
5179
5221
  contents.LastModified = __expectString(data.LastModified);
5180
5222
  }
5181
5223
  if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
5182
5224
  data.RequestedProvisionedConcurrentExecutions !== null) {
5183
- contents.RequestedProvisionedConcurrentExecutions = __expectInt(data.RequestedProvisionedConcurrentExecutions);
5225
+ contents.RequestedProvisionedConcurrentExecutions = __expectInt32(data.RequestedProvisionedConcurrentExecutions);
5184
5226
  }
5185
5227
  if (data.Status !== undefined && data.Status !== null) {
5186
5228
  contents.Status = __expectString(data.Status);
@@ -5629,9 +5671,9 @@ var deserializeAws_restJson1InvokeAsyncCommandError = function (output, context)
5629
5671
  });
5630
5672
  }); };
5631
5673
  export var deserializeAws_restJson1ListAliasesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5632
- var contents, data;
5633
- return __generator(this, function (_a) {
5634
- switch (_a.label) {
5674
+ var contents, data, _a, _b;
5675
+ return __generator(this, function (_c) {
5676
+ switch (_c.label) {
5635
5677
  case 0:
5636
5678
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5637
5679
  return [2 /*return*/, deserializeAws_restJson1ListAliasesCommandError(output, context)];
@@ -5641,9 +5683,11 @@ export var deserializeAws_restJson1ListAliasesCommand = function (output, contex
5641
5683
  Aliases: undefined,
5642
5684
  NextMarker: undefined,
5643
5685
  };
5686
+ _a = __expectNonNull;
5687
+ _b = __expectObject;
5644
5688
  return [4 /*yield*/, parseBody(output.body, context)];
5645
5689
  case 1:
5646
- data = _a.sent();
5690
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5647
5691
  if (data.Aliases !== undefined && data.Aliases !== null) {
5648
5692
  contents.Aliases = deserializeAws_restJson1AliasList(data.Aliases, context);
5649
5693
  }
@@ -5717,9 +5761,9 @@ var deserializeAws_restJson1ListAliasesCommandError = function (output, context)
5717
5761
  });
5718
5762
  }); };
5719
5763
  export var deserializeAws_restJson1ListCodeSigningConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5720
- var contents, data;
5721
- return __generator(this, function (_a) {
5722
- switch (_a.label) {
5764
+ var contents, data, _a, _b;
5765
+ return __generator(this, function (_c) {
5766
+ switch (_c.label) {
5723
5767
  case 0:
5724
5768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5725
5769
  return [2 /*return*/, deserializeAws_restJson1ListCodeSigningConfigsCommandError(output, context)];
@@ -5729,9 +5773,11 @@ export var deserializeAws_restJson1ListCodeSigningConfigsCommand = function (out
5729
5773
  CodeSigningConfigs: undefined,
5730
5774
  NextMarker: undefined,
5731
5775
  };
5776
+ _a = __expectNonNull;
5777
+ _b = __expectObject;
5732
5778
  return [4 /*yield*/, parseBody(output.body, context)];
5733
5779
  case 1:
5734
- data = _a.sent();
5780
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5735
5781
  if (data.CodeSigningConfigs !== undefined && data.CodeSigningConfigs !== null) {
5736
5782
  contents.CodeSigningConfigs = deserializeAws_restJson1CodeSigningConfigList(data.CodeSigningConfigs, context);
5737
5783
  }
@@ -5789,9 +5835,9 @@ var deserializeAws_restJson1ListCodeSigningConfigsCommandError = function (outpu
5789
5835
  });
5790
5836
  }); };
5791
5837
  export var deserializeAws_restJson1ListEventSourceMappingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5792
- var contents, data;
5793
- return __generator(this, function (_a) {
5794
- switch (_a.label) {
5838
+ var contents, data, _a, _b;
5839
+ return __generator(this, function (_c) {
5840
+ switch (_c.label) {
5795
5841
  case 0:
5796
5842
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5797
5843
  return [2 /*return*/, deserializeAws_restJson1ListEventSourceMappingsCommandError(output, context)];
@@ -5801,9 +5847,11 @@ export var deserializeAws_restJson1ListEventSourceMappingsCommand = function (ou
5801
5847
  EventSourceMappings: undefined,
5802
5848
  NextMarker: undefined,
5803
5849
  };
5850
+ _a = __expectNonNull;
5851
+ _b = __expectObject;
5804
5852
  return [4 /*yield*/, parseBody(output.body, context)];
5805
5853
  case 1:
5806
- data = _a.sent();
5854
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5807
5855
  if (data.EventSourceMappings !== undefined && data.EventSourceMappings !== null) {
5808
5856
  contents.EventSourceMappings = deserializeAws_restJson1EventSourceMappingsList(data.EventSourceMappings, context);
5809
5857
  }
@@ -5877,9 +5925,9 @@ var deserializeAws_restJson1ListEventSourceMappingsCommandError = function (outp
5877
5925
  });
5878
5926
  }); };
5879
5927
  export var deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5880
- var contents, data;
5881
- return __generator(this, function (_a) {
5882
- switch (_a.label) {
5928
+ var contents, data, _a, _b;
5929
+ return __generator(this, function (_c) {
5930
+ switch (_c.label) {
5883
5931
  case 0:
5884
5932
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5885
5933
  return [2 /*return*/, deserializeAws_restJson1ListFunctionEventInvokeConfigsCommandError(output, context)];
@@ -5889,9 +5937,11 @@ export var deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = funct
5889
5937
  FunctionEventInvokeConfigs: undefined,
5890
5938
  NextMarker: undefined,
5891
5939
  };
5940
+ _a = __expectNonNull;
5941
+ _b = __expectObject;
5892
5942
  return [4 /*yield*/, parseBody(output.body, context)];
5893
5943
  case 1:
5894
- data = _a.sent();
5944
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5895
5945
  if (data.FunctionEventInvokeConfigs !== undefined && data.FunctionEventInvokeConfigs !== null) {
5896
5946
  contents.FunctionEventInvokeConfigs = deserializeAws_restJson1FunctionEventInvokeConfigList(data.FunctionEventInvokeConfigs, context);
5897
5947
  }
@@ -5965,9 +6015,9 @@ var deserializeAws_restJson1ListFunctionEventInvokeConfigsCommandError = functio
5965
6015
  });
5966
6016
  }); };
5967
6017
  export var deserializeAws_restJson1ListFunctionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5968
- var contents, data;
5969
- return __generator(this, function (_a) {
5970
- switch (_a.label) {
6018
+ var contents, data, _a, _b;
6019
+ return __generator(this, function (_c) {
6020
+ switch (_c.label) {
5971
6021
  case 0:
5972
6022
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5973
6023
  return [2 /*return*/, deserializeAws_restJson1ListFunctionsCommandError(output, context)];
@@ -5977,9 +6027,11 @@ export var deserializeAws_restJson1ListFunctionsCommand = function (output, cont
5977
6027
  Functions: undefined,
5978
6028
  NextMarker: undefined,
5979
6029
  };
6030
+ _a = __expectNonNull;
6031
+ _b = __expectObject;
5980
6032
  return [4 /*yield*/, parseBody(output.body, context)];
5981
6033
  case 1:
5982
- data = _a.sent();
6034
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5983
6035
  if (data.Functions !== undefined && data.Functions !== null) {
5984
6036
  contents.Functions = deserializeAws_restJson1FunctionList(data.Functions, context);
5985
6037
  }
@@ -6045,9 +6097,9 @@ var deserializeAws_restJson1ListFunctionsCommandError = function (output, contex
6045
6097
  });
6046
6098
  }); };
6047
6099
  export var deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6048
- var contents, data;
6049
- return __generator(this, function (_a) {
6050
- switch (_a.label) {
6100
+ var contents, data, _a, _b;
6101
+ return __generator(this, function (_c) {
6102
+ switch (_c.label) {
6051
6103
  case 0:
6052
6104
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6053
6105
  return [2 /*return*/, deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError(output, context)];
@@ -6057,9 +6109,11 @@ export var deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = fun
6057
6109
  FunctionArns: undefined,
6058
6110
  NextMarker: undefined,
6059
6111
  };
6112
+ _a = __expectNonNull;
6113
+ _b = __expectObject;
6060
6114
  return [4 /*yield*/, parseBody(output.body, context)];
6061
6115
  case 1:
6062
- data = _a.sent();
6116
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6063
6117
  if (data.FunctionArns !== undefined && data.FunctionArns !== null) {
6064
6118
  contents.FunctionArns = deserializeAws_restJson1FunctionArnList(data.FunctionArns, context);
6065
6119
  }
@@ -6125,9 +6179,9 @@ var deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = funct
6125
6179
  });
6126
6180
  }); };
6127
6181
  export var deserializeAws_restJson1ListLayersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6128
- var contents, data;
6129
- return __generator(this, function (_a) {
6130
- switch (_a.label) {
6182
+ var contents, data, _a, _b;
6183
+ return __generator(this, function (_c) {
6184
+ switch (_c.label) {
6131
6185
  case 0:
6132
6186
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6133
6187
  return [2 /*return*/, deserializeAws_restJson1ListLayersCommandError(output, context)];
@@ -6137,9 +6191,11 @@ export var deserializeAws_restJson1ListLayersCommand = function (output, context
6137
6191
  Layers: undefined,
6138
6192
  NextMarker: undefined,
6139
6193
  };
6194
+ _a = __expectNonNull;
6195
+ _b = __expectObject;
6140
6196
  return [4 /*yield*/, parseBody(output.body, context)];
6141
6197
  case 1:
6142
- data = _a.sent();
6198
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6143
6199
  if (data.Layers !== undefined && data.Layers !== null) {
6144
6200
  contents.Layers = deserializeAws_restJson1LayersList(data.Layers, context);
6145
6201
  }
@@ -6205,9 +6261,9 @@ var deserializeAws_restJson1ListLayersCommandError = function (output, context)
6205
6261
  });
6206
6262
  }); };
6207
6263
  export var deserializeAws_restJson1ListLayerVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6208
- var contents, data;
6209
- return __generator(this, function (_a) {
6210
- switch (_a.label) {
6264
+ var contents, data, _a, _b;
6265
+ return __generator(this, function (_c) {
6266
+ switch (_c.label) {
6211
6267
  case 0:
6212
6268
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6213
6269
  return [2 /*return*/, deserializeAws_restJson1ListLayerVersionsCommandError(output, context)];
@@ -6217,9 +6273,11 @@ export var deserializeAws_restJson1ListLayerVersionsCommand = function (output,
6217
6273
  LayerVersions: undefined,
6218
6274
  NextMarker: undefined,
6219
6275
  };
6276
+ _a = __expectNonNull;
6277
+ _b = __expectObject;
6220
6278
  return [4 /*yield*/, parseBody(output.body, context)];
6221
6279
  case 1:
6222
- data = _a.sent();
6280
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6223
6281
  if (data.LayerVersions !== undefined && data.LayerVersions !== null) {
6224
6282
  contents.LayerVersions = deserializeAws_restJson1LayerVersionsList(data.LayerVersions, context);
6225
6283
  }
@@ -6293,9 +6351,9 @@ var deserializeAws_restJson1ListLayerVersionsCommandError = function (output, co
6293
6351
  });
6294
6352
  }); };
6295
6353
  export var deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6296
- var contents, data;
6297
- return __generator(this, function (_a) {
6298
- switch (_a.label) {
6354
+ var contents, data, _a, _b;
6355
+ return __generator(this, function (_c) {
6356
+ switch (_c.label) {
6299
6357
  case 0:
6300
6358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6301
6359
  return [2 /*return*/, deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommandError(output, context)];
@@ -6305,9 +6363,11 @@ export var deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = fu
6305
6363
  NextMarker: undefined,
6306
6364
  ProvisionedConcurrencyConfigs: undefined,
6307
6365
  };
6366
+ _a = __expectNonNull;
6367
+ _b = __expectObject;
6308
6368
  return [4 /*yield*/, parseBody(output.body, context)];
6309
6369
  case 1:
6310
- data = _a.sent();
6370
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6311
6371
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
6312
6372
  contents.NextMarker = __expectString(data.NextMarker);
6313
6373
  }
@@ -6381,9 +6441,9 @@ var deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommandError = func
6381
6441
  });
6382
6442
  }); };
6383
6443
  export var deserializeAws_restJson1ListTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6384
- var contents, data;
6385
- return __generator(this, function (_a) {
6386
- switch (_a.label) {
6444
+ var contents, data, _a, _b;
6445
+ return __generator(this, function (_c) {
6446
+ switch (_c.label) {
6387
6447
  case 0:
6388
6448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6389
6449
  return [2 /*return*/, deserializeAws_restJson1ListTagsCommandError(output, context)];
@@ -6392,9 +6452,11 @@ export var deserializeAws_restJson1ListTagsCommand = function (output, context)
6392
6452
  $metadata: deserializeMetadata(output),
6393
6453
  Tags: undefined,
6394
6454
  };
6455
+ _a = __expectNonNull;
6456
+ _b = __expectObject;
6395
6457
  return [4 /*yield*/, parseBody(output.body, context)];
6396
6458
  case 1:
6397
- data = _a.sent();
6459
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6398
6460
  if (data.Tags !== undefined && data.Tags !== null) {
6399
6461
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
6400
6462
  }
@@ -6465,9 +6527,9 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
6465
6527
  });
6466
6528
  }); };
6467
6529
  export var deserializeAws_restJson1ListVersionsByFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6468
- var contents, data;
6469
- return __generator(this, function (_a) {
6470
- switch (_a.label) {
6530
+ var contents, data, _a, _b;
6531
+ return __generator(this, function (_c) {
6532
+ switch (_c.label) {
6471
6533
  case 0:
6472
6534
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6473
6535
  return [2 /*return*/, deserializeAws_restJson1ListVersionsByFunctionCommandError(output, context)];
@@ -6477,9 +6539,11 @@ export var deserializeAws_restJson1ListVersionsByFunctionCommand = function (out
6477
6539
  NextMarker: undefined,
6478
6540
  Versions: undefined,
6479
6541
  };
6542
+ _a = __expectNonNull;
6543
+ _b = __expectObject;
6480
6544
  return [4 /*yield*/, parseBody(output.body, context)];
6481
6545
  case 1:
6482
- data = _a.sent();
6546
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6483
6547
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
6484
6548
  contents.NextMarker = __expectString(data.NextMarker);
6485
6549
  }
@@ -6553,9 +6617,9 @@ var deserializeAws_restJson1ListVersionsByFunctionCommandError = function (outpu
6553
6617
  });
6554
6618
  }); };
6555
6619
  export var deserializeAws_restJson1PublishLayerVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6556
- var contents, data;
6557
- return __generator(this, function (_a) {
6558
- switch (_a.label) {
6620
+ var contents, data, _a, _b;
6621
+ return __generator(this, function (_c) {
6622
+ switch (_c.label) {
6559
6623
  case 0:
6560
6624
  if (output.statusCode !== 201 && output.statusCode >= 300) {
6561
6625
  return [2 /*return*/, deserializeAws_restJson1PublishLayerVersionCommandError(output, context)];
@@ -6571,9 +6635,11 @@ export var deserializeAws_restJson1PublishLayerVersionCommand = function (output
6571
6635
  LicenseInfo: undefined,
6572
6636
  Version: undefined,
6573
6637
  };
6638
+ _a = __expectNonNull;
6639
+ _b = __expectObject;
6574
6640
  return [4 /*yield*/, parseBody(output.body, context)];
6575
6641
  case 1:
6576
- data = _a.sent();
6642
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6577
6643
  if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
6578
6644
  contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
6579
6645
  }
@@ -6596,7 +6662,7 @@ export var deserializeAws_restJson1PublishLayerVersionCommand = function (output
6596
6662
  contents.LicenseInfo = __expectString(data.LicenseInfo);
6597
6663
  }
6598
6664
  if (data.Version !== undefined && data.Version !== null) {
6599
- contents.Version = __expectInt(data.Version);
6665
+ contents.Version = __expectLong(data.Version);
6600
6666
  }
6601
6667
  return [2 /*return*/, Promise.resolve(contents)];
6602
6668
  }
@@ -6673,9 +6739,9 @@ var deserializeAws_restJson1PublishLayerVersionCommandError = function (output,
6673
6739
  });
6674
6740
  }); };
6675
6741
  export var deserializeAws_restJson1PublishVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6676
- var contents, data;
6677
- return __generator(this, function (_a) {
6678
- switch (_a.label) {
6742
+ var contents, data, _a, _b;
6743
+ return __generator(this, function (_c) {
6744
+ switch (_c.label) {
6679
6745
  case 0:
6680
6746
  if (output.statusCode !== 201 && output.statusCode >= 300) {
6681
6747
  return [2 /*return*/, deserializeAws_restJson1PublishVersionCommandError(output, context)];
@@ -6714,14 +6780,16 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
6714
6780
  Version: undefined,
6715
6781
  VpcConfig: undefined,
6716
6782
  };
6783
+ _a = __expectNonNull;
6784
+ _b = __expectObject;
6717
6785
  return [4 /*yield*/, parseBody(output.body, context)];
6718
6786
  case 1:
6719
- data = _a.sent();
6787
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6720
6788
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
6721
6789
  contents.CodeSha256 = __expectString(data.CodeSha256);
6722
6790
  }
6723
6791
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
6724
- contents.CodeSize = __expectInt(data.CodeSize);
6792
+ contents.CodeSize = __expectLong(data.CodeSize);
6725
6793
  }
6726
6794
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
6727
6795
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -6769,7 +6837,7 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
6769
6837
  contents.MasterArn = __expectString(data.MasterArn);
6770
6838
  }
6771
6839
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
6772
- contents.MemorySize = __expectInt(data.MemorySize);
6840
+ contents.MemorySize = __expectInt32(data.MemorySize);
6773
6841
  }
6774
6842
  if (data.PackageType !== undefined && data.PackageType !== null) {
6775
6843
  contents.PackageType = __expectString(data.PackageType);
@@ -6799,7 +6867,7 @@ export var deserializeAws_restJson1PublishVersionCommand = function (output, con
6799
6867
  contents.StateReasonCode = __expectString(data.StateReasonCode);
6800
6868
  }
6801
6869
  if (data.Timeout !== undefined && data.Timeout !== null) {
6802
- contents.Timeout = __expectInt(data.Timeout);
6870
+ contents.Timeout = __expectInt32(data.Timeout);
6803
6871
  }
6804
6872
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
6805
6873
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -6901,9 +6969,9 @@ var deserializeAws_restJson1PublishVersionCommandError = function (output, conte
6901
6969
  });
6902
6970
  }); };
6903
6971
  export var deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6904
- var contents, data;
6905
- return __generator(this, function (_a) {
6906
- switch (_a.label) {
6972
+ var contents, data, _a, _b;
6973
+ return __generator(this, function (_c) {
6974
+ switch (_c.label) {
6907
6975
  case 0:
6908
6976
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6909
6977
  return [2 /*return*/, deserializeAws_restJson1PutFunctionCodeSigningConfigCommandError(output, context)];
@@ -6913,9 +6981,11 @@ export var deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = functio
6913
6981
  CodeSigningConfigArn: undefined,
6914
6982
  FunctionName: undefined,
6915
6983
  };
6984
+ _a = __expectNonNull;
6985
+ _b = __expectObject;
6916
6986
  return [4 /*yield*/, parseBody(output.body, context)];
6917
6987
  case 1:
6918
- data = _a.sent();
6988
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6919
6989
  if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
6920
6990
  contents.CodeSigningConfigArn = __expectString(data.CodeSigningConfigArn);
6921
6991
  }
@@ -7005,9 +7075,9 @@ var deserializeAws_restJson1PutFunctionCodeSigningConfigCommandError = function
7005
7075
  });
7006
7076
  }); };
7007
7077
  export var deserializeAws_restJson1PutFunctionConcurrencyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7008
- var contents, data;
7009
- return __generator(this, function (_a) {
7010
- switch (_a.label) {
7078
+ var contents, data, _a, _b;
7079
+ return __generator(this, function (_c) {
7080
+ switch (_c.label) {
7011
7081
  case 0:
7012
7082
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7013
7083
  return [2 /*return*/, deserializeAws_restJson1PutFunctionConcurrencyCommandError(output, context)];
@@ -7016,11 +7086,13 @@ export var deserializeAws_restJson1PutFunctionConcurrencyCommand = function (out
7016
7086
  $metadata: deserializeMetadata(output),
7017
7087
  ReservedConcurrentExecutions: undefined,
7018
7088
  };
7089
+ _a = __expectNonNull;
7090
+ _b = __expectObject;
7019
7091
  return [4 /*yield*/, parseBody(output.body, context)];
7020
7092
  case 1:
7021
- data = _a.sent();
7093
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7022
7094
  if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
7023
- contents.ReservedConcurrentExecutions = __expectInt(data.ReservedConcurrentExecutions);
7095
+ contents.ReservedConcurrentExecutions = __expectInt32(data.ReservedConcurrentExecutions);
7024
7096
  }
7025
7097
  return [2 /*return*/, Promise.resolve(contents)];
7026
7098
  }
@@ -7097,9 +7169,9 @@ var deserializeAws_restJson1PutFunctionConcurrencyCommandError = function (outpu
7097
7169
  });
7098
7170
  }); };
7099
7171
  export var deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7100
- var contents, data;
7101
- return __generator(this, function (_a) {
7102
- switch (_a.label) {
7172
+ var contents, data, _a, _b;
7173
+ return __generator(this, function (_c) {
7174
+ switch (_c.label) {
7103
7175
  case 0:
7104
7176
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7105
7177
  return [2 /*return*/, deserializeAws_restJson1PutFunctionEventInvokeConfigCommandError(output, context)];
@@ -7112,9 +7184,11 @@ export var deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = functio
7112
7184
  MaximumEventAgeInSeconds: undefined,
7113
7185
  MaximumRetryAttempts: undefined,
7114
7186
  };
7187
+ _a = __expectNonNull;
7188
+ _b = __expectObject;
7115
7189
  return [4 /*yield*/, parseBody(output.body, context)];
7116
7190
  case 1:
7117
- data = _a.sent();
7191
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7118
7192
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
7119
7193
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
7120
7194
  }
@@ -7122,13 +7196,13 @@ export var deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = functio
7122
7196
  contents.FunctionArn = __expectString(data.FunctionArn);
7123
7197
  }
7124
7198
  if (data.LastModified !== undefined && data.LastModified !== null) {
7125
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
7199
+ contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
7126
7200
  }
7127
7201
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
7128
- contents.MaximumEventAgeInSeconds = __expectInt(data.MaximumEventAgeInSeconds);
7202
+ contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
7129
7203
  }
7130
7204
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
7131
- contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts);
7205
+ contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
7132
7206
  }
7133
7207
  return [2 /*return*/, Promise.resolve(contents)];
7134
7208
  }
@@ -7205,9 +7279,9 @@ var deserializeAws_restJson1PutFunctionEventInvokeConfigCommandError = function
7205
7279
  });
7206
7280
  }); };
7207
7281
  export var deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7208
- var contents, data;
7209
- return __generator(this, function (_a) {
7210
- switch (_a.label) {
7282
+ var contents, data, _a, _b;
7283
+ return __generator(this, function (_c) {
7284
+ switch (_c.label) {
7211
7285
  case 0:
7212
7286
  if (output.statusCode !== 202 && output.statusCode >= 300) {
7213
7287
  return [2 /*return*/, deserializeAws_restJson1PutProvisionedConcurrencyConfigCommandError(output, context)];
@@ -7221,23 +7295,25 @@ export var deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = func
7221
7295
  Status: undefined,
7222
7296
  StatusReason: undefined,
7223
7297
  };
7298
+ _a = __expectNonNull;
7299
+ _b = __expectObject;
7224
7300
  return [4 /*yield*/, parseBody(output.body, context)];
7225
7301
  case 1:
7226
- data = _a.sent();
7302
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7227
7303
  if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
7228
7304
  data.AllocatedProvisionedConcurrentExecutions !== null) {
7229
- contents.AllocatedProvisionedConcurrentExecutions = __expectInt(data.AllocatedProvisionedConcurrentExecutions);
7305
+ contents.AllocatedProvisionedConcurrentExecutions = __expectInt32(data.AllocatedProvisionedConcurrentExecutions);
7230
7306
  }
7231
7307
  if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
7232
7308
  data.AvailableProvisionedConcurrentExecutions !== null) {
7233
- contents.AvailableProvisionedConcurrentExecutions = __expectInt(data.AvailableProvisionedConcurrentExecutions);
7309
+ contents.AvailableProvisionedConcurrentExecutions = __expectInt32(data.AvailableProvisionedConcurrentExecutions);
7234
7310
  }
7235
7311
  if (data.LastModified !== undefined && data.LastModified !== null) {
7236
7312
  contents.LastModified = __expectString(data.LastModified);
7237
7313
  }
7238
7314
  if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
7239
7315
  data.RequestedProvisionedConcurrentExecutions !== null) {
7240
- contents.RequestedProvisionedConcurrentExecutions = __expectInt(data.RequestedProvisionedConcurrentExecutions);
7316
+ contents.RequestedProvisionedConcurrentExecutions = __expectInt32(data.RequestedProvisionedConcurrentExecutions);
7241
7317
  }
7242
7318
  if (data.Status !== undefined && data.Status !== null) {
7243
7319
  contents.Status = __expectString(data.Status);
@@ -7672,9 +7748,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
7672
7748
  });
7673
7749
  }); };
7674
7750
  export var deserializeAws_restJson1UpdateAliasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7675
- var contents, data;
7676
- return __generator(this, function (_a) {
7677
- switch (_a.label) {
7751
+ var contents, data, _a, _b;
7752
+ return __generator(this, function (_c) {
7753
+ switch (_c.label) {
7678
7754
  case 0:
7679
7755
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7680
7756
  return [2 /*return*/, deserializeAws_restJson1UpdateAliasCommandError(output, context)];
@@ -7688,9 +7764,11 @@ export var deserializeAws_restJson1UpdateAliasCommand = function (output, contex
7688
7764
  RevisionId: undefined,
7689
7765
  RoutingConfig: undefined,
7690
7766
  };
7767
+ _a = __expectNonNull;
7768
+ _b = __expectObject;
7691
7769
  return [4 /*yield*/, parseBody(output.body, context)];
7692
7770
  case 1:
7693
- data = _a.sent();
7771
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7694
7772
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
7695
7773
  contents.AliasArn = __expectString(data.AliasArn);
7696
7774
  }
@@ -7792,9 +7870,9 @@ var deserializeAws_restJson1UpdateAliasCommandError = function (output, context)
7792
7870
  });
7793
7871
  }); };
7794
7872
  export var deserializeAws_restJson1UpdateCodeSigningConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7795
- var contents, data;
7796
- return __generator(this, function (_a) {
7797
- switch (_a.label) {
7873
+ var contents, data, _a, _b;
7874
+ return __generator(this, function (_c) {
7875
+ switch (_c.label) {
7798
7876
  case 0:
7799
7877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7800
7878
  return [2 /*return*/, deserializeAws_restJson1UpdateCodeSigningConfigCommandError(output, context)];
@@ -7803,9 +7881,11 @@ export var deserializeAws_restJson1UpdateCodeSigningConfigCommand = function (ou
7803
7881
  $metadata: deserializeMetadata(output),
7804
7882
  CodeSigningConfig: undefined,
7805
7883
  };
7884
+ _a = __expectNonNull;
7885
+ _b = __expectObject;
7806
7886
  return [4 /*yield*/, parseBody(output.body, context)];
7807
7887
  case 1:
7808
- data = _a.sent();
7888
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7809
7889
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
7810
7890
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
7811
7891
  }
@@ -7868,9 +7948,9 @@ var deserializeAws_restJson1UpdateCodeSigningConfigCommandError = function (outp
7868
7948
  });
7869
7949
  }); };
7870
7950
  export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7871
- var contents, data;
7872
- return __generator(this, function (_a) {
7873
- switch (_a.label) {
7951
+ var contents, data, _a, _b;
7952
+ return __generator(this, function (_c) {
7953
+ switch (_c.label) {
7874
7954
  case 0:
7875
7955
  if (output.statusCode !== 202 && output.statusCode >= 300) {
7876
7956
  return [2 /*return*/, deserializeAws_restJson1UpdateEventSourceMappingCommandError(output, context)];
@@ -7900,11 +7980,13 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
7900
7980
  TumblingWindowInSeconds: undefined,
7901
7981
  UUID: undefined,
7902
7982
  };
7983
+ _a = __expectNonNull;
7984
+ _b = __expectObject;
7903
7985
  return [4 /*yield*/, parseBody(output.body, context)];
7904
7986
  case 1:
7905
- data = _a.sent();
7987
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7906
7988
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
7907
- contents.BatchSize = __expectInt(data.BatchSize);
7989
+ contents.BatchSize = __expectInt32(data.BatchSize);
7908
7990
  }
7909
7991
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
7910
7992
  contents.BisectBatchOnFunctionError = __expectBoolean(data.BisectBatchOnFunctionError);
@@ -7922,22 +8004,22 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
7922
8004
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
7923
8005
  }
7924
8006
  if (data.LastModified !== undefined && data.LastModified !== null) {
7925
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
8007
+ contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
7926
8008
  }
7927
8009
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
7928
8010
  contents.LastProcessingResult = __expectString(data.LastProcessingResult);
7929
8011
  }
7930
8012
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
7931
- contents.MaximumBatchingWindowInSeconds = __expectInt(data.MaximumBatchingWindowInSeconds);
8013
+ contents.MaximumBatchingWindowInSeconds = __expectInt32(data.MaximumBatchingWindowInSeconds);
7932
8014
  }
7933
8015
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
7934
- contents.MaximumRecordAgeInSeconds = __expectInt(data.MaximumRecordAgeInSeconds);
8016
+ contents.MaximumRecordAgeInSeconds = __expectInt32(data.MaximumRecordAgeInSeconds);
7935
8017
  }
7936
8018
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
7937
- contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts);
8019
+ contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
7938
8020
  }
7939
8021
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
7940
- contents.ParallelizationFactor = __expectInt(data.ParallelizationFactor);
8022
+ contents.ParallelizationFactor = __expectInt32(data.ParallelizationFactor);
7941
8023
  }
7942
8024
  if (data.Queues !== undefined && data.Queues !== null) {
7943
8025
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -7952,7 +8034,7 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
7952
8034
  contents.StartingPosition = __expectString(data.StartingPosition);
7953
8035
  }
7954
8036
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
7955
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
8037
+ contents.StartingPositionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartingPositionTimestamp)));
7956
8038
  }
7957
8039
  if (data.State !== undefined && data.State !== null) {
7958
8040
  contents.State = __expectString(data.State);
@@ -7964,7 +8046,7 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
7964
8046
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
7965
8047
  }
7966
8048
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
7967
- contents.TumblingWindowInSeconds = __expectInt(data.TumblingWindowInSeconds);
8049
+ contents.TumblingWindowInSeconds = __expectInt32(data.TumblingWindowInSeconds);
7968
8050
  }
7969
8051
  if (data.UUID !== undefined && data.UUID !== null) {
7970
8052
  contents.UUID = __expectString(data.UUID);
@@ -8052,9 +8134,9 @@ var deserializeAws_restJson1UpdateEventSourceMappingCommandError = function (out
8052
8134
  });
8053
8135
  }); };
8054
8136
  export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8055
- var contents, data;
8056
- return __generator(this, function (_a) {
8057
- switch (_a.label) {
8137
+ var contents, data, _a, _b;
8138
+ return __generator(this, function (_c) {
8139
+ switch (_c.label) {
8058
8140
  case 0:
8059
8141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8060
8142
  return [2 /*return*/, deserializeAws_restJson1UpdateFunctionCodeCommandError(output, context)];
@@ -8093,14 +8175,16 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
8093
8175
  Version: undefined,
8094
8176
  VpcConfig: undefined,
8095
8177
  };
8178
+ _a = __expectNonNull;
8179
+ _b = __expectObject;
8096
8180
  return [4 /*yield*/, parseBody(output.body, context)];
8097
8181
  case 1:
8098
- data = _a.sent();
8182
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8099
8183
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
8100
8184
  contents.CodeSha256 = __expectString(data.CodeSha256);
8101
8185
  }
8102
8186
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
8103
- contents.CodeSize = __expectInt(data.CodeSize);
8187
+ contents.CodeSize = __expectLong(data.CodeSize);
8104
8188
  }
8105
8189
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
8106
8190
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -8148,7 +8232,7 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
8148
8232
  contents.MasterArn = __expectString(data.MasterArn);
8149
8233
  }
8150
8234
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
8151
- contents.MemorySize = __expectInt(data.MemorySize);
8235
+ contents.MemorySize = __expectInt32(data.MemorySize);
8152
8236
  }
8153
8237
  if (data.PackageType !== undefined && data.PackageType !== null) {
8154
8238
  contents.PackageType = __expectString(data.PackageType);
@@ -8178,7 +8262,7 @@ export var deserializeAws_restJson1UpdateFunctionCodeCommand = function (output,
8178
8262
  contents.StateReasonCode = __expectString(data.StateReasonCode);
8179
8263
  }
8180
8264
  if (data.Timeout !== undefined && data.Timeout !== null) {
8181
- contents.Timeout = __expectInt(data.Timeout);
8265
+ contents.Timeout = __expectInt32(data.Timeout);
8182
8266
  }
8183
8267
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
8184
8268
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -8304,9 +8388,9 @@ var deserializeAws_restJson1UpdateFunctionCodeCommandError = function (output, c
8304
8388
  });
8305
8389
  }); };
8306
8390
  export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8307
- var contents, data;
8308
- return __generator(this, function (_a) {
8309
- switch (_a.label) {
8391
+ var contents, data, _a, _b;
8392
+ return __generator(this, function (_c) {
8393
+ switch (_c.label) {
8310
8394
  case 0:
8311
8395
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8312
8396
  return [2 /*return*/, deserializeAws_restJson1UpdateFunctionConfigurationCommandError(output, context)];
@@ -8345,14 +8429,16 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
8345
8429
  Version: undefined,
8346
8430
  VpcConfig: undefined,
8347
8431
  };
8432
+ _a = __expectNonNull;
8433
+ _b = __expectObject;
8348
8434
  return [4 /*yield*/, parseBody(output.body, context)];
8349
8435
  case 1:
8350
- data = _a.sent();
8436
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8351
8437
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
8352
8438
  contents.CodeSha256 = __expectString(data.CodeSha256);
8353
8439
  }
8354
8440
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
8355
- contents.CodeSize = __expectInt(data.CodeSize);
8441
+ contents.CodeSize = __expectLong(data.CodeSize);
8356
8442
  }
8357
8443
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
8358
8444
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -8400,7 +8486,7 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
8400
8486
  contents.MasterArn = __expectString(data.MasterArn);
8401
8487
  }
8402
8488
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
8403
- contents.MemorySize = __expectInt(data.MemorySize);
8489
+ contents.MemorySize = __expectInt32(data.MemorySize);
8404
8490
  }
8405
8491
  if (data.PackageType !== undefined && data.PackageType !== null) {
8406
8492
  contents.PackageType = __expectString(data.PackageType);
@@ -8430,7 +8516,7 @@ export var deserializeAws_restJson1UpdateFunctionConfigurationCommand = function
8430
8516
  contents.StateReasonCode = __expectString(data.StateReasonCode);
8431
8517
  }
8432
8518
  if (data.Timeout !== undefined && data.Timeout !== null) {
8433
- contents.Timeout = __expectInt(data.Timeout);
8519
+ contents.Timeout = __expectInt32(data.Timeout);
8434
8520
  }
8435
8521
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
8436
8522
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -8548,9 +8634,9 @@ var deserializeAws_restJson1UpdateFunctionConfigurationCommandError = function (
8548
8634
  });
8549
8635
  }); };
8550
8636
  export var deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8551
- var contents, data;
8552
- return __generator(this, function (_a) {
8553
- switch (_a.label) {
8637
+ var contents, data, _a, _b;
8638
+ return __generator(this, function (_c) {
8639
+ switch (_c.label) {
8554
8640
  case 0:
8555
8641
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8556
8642
  return [2 /*return*/, deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError(output, context)];
@@ -8563,9 +8649,11 @@ export var deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = func
8563
8649
  MaximumEventAgeInSeconds: undefined,
8564
8650
  MaximumRetryAttempts: undefined,
8565
8651
  };
8652
+ _a = __expectNonNull;
8653
+ _b = __expectObject;
8566
8654
  return [4 /*yield*/, parseBody(output.body, context)];
8567
8655
  case 1:
8568
- data = _a.sent();
8656
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8569
8657
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
8570
8658
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
8571
8659
  }
@@ -8573,13 +8661,13 @@ export var deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = func
8573
8661
  contents.FunctionArn = __expectString(data.FunctionArn);
8574
8662
  }
8575
8663
  if (data.LastModified !== undefined && data.LastModified !== null) {
8576
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
8664
+ contents.LastModified = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModified)));
8577
8665
  }
8578
8666
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
8579
- contents.MaximumEventAgeInSeconds = __expectInt(data.MaximumEventAgeInSeconds);
8667
+ contents.MaximumEventAgeInSeconds = __expectInt32(data.MaximumEventAgeInSeconds);
8580
8668
  }
8581
8669
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
8582
- contents.MaximumRetryAttempts = __expectInt(data.MaximumRetryAttempts);
8670
+ contents.MaximumRetryAttempts = __expectInt32(data.MaximumRetryAttempts);
8583
8671
  }
8584
8672
  return [2 /*return*/, Promise.resolve(contents)];
8585
8673
  }
@@ -9580,17 +9668,17 @@ var serializeAws_restJson1VpcConfig = function (input, context) {
9580
9668
  };
9581
9669
  var deserializeAws_restJson1AccountLimit = function (output, context) {
9582
9670
  return {
9583
- CodeSizeUnzipped: __expectInt(output.CodeSizeUnzipped),
9584
- CodeSizeZipped: __expectInt(output.CodeSizeZipped),
9585
- ConcurrentExecutions: __expectInt(output.ConcurrentExecutions),
9586
- TotalCodeSize: __expectInt(output.TotalCodeSize),
9587
- UnreservedConcurrentExecutions: __expectInt(output.UnreservedConcurrentExecutions),
9671
+ CodeSizeUnzipped: __expectLong(output.CodeSizeUnzipped),
9672
+ CodeSizeZipped: __expectLong(output.CodeSizeZipped),
9673
+ ConcurrentExecutions: __expectInt32(output.ConcurrentExecutions),
9674
+ TotalCodeSize: __expectLong(output.TotalCodeSize),
9675
+ UnreservedConcurrentExecutions: __expectInt32(output.UnreservedConcurrentExecutions),
9588
9676
  };
9589
9677
  };
9590
9678
  var deserializeAws_restJson1AccountUsage = function (output, context) {
9591
9679
  return {
9592
- FunctionCount: __expectInt(output.FunctionCount),
9593
- TotalCodeSize: __expectInt(output.TotalCodeSize),
9680
+ FunctionCount: __expectLong(output.FunctionCount),
9681
+ TotalCodeSize: __expectLong(output.TotalCodeSize),
9594
9682
  };
9595
9683
  };
9596
9684
  var deserializeAws_restJson1AdditionalVersionWeights = function (output, context) {
@@ -9600,7 +9688,7 @@ var deserializeAws_restJson1AdditionalVersionWeights = function (output, context
9600
9688
  if (value === null) {
9601
9689
  return acc;
9602
9690
  }
9603
- return __assign(__assign({}, acc), (_b = {}, _b[key] = __limitedParseFloat(value), _b));
9691
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __limitedParseDouble(value), _b));
9604
9692
  }, {});
9605
9693
  };
9606
9694
  var deserializeAws_restJson1AliasConfiguration = function (output, context) {
@@ -9680,7 +9768,7 @@ var deserializeAws_restJson1CompatibleRuntimes = function (output, context) {
9680
9768
  };
9681
9769
  var deserializeAws_restJson1Concurrency = function (output, context) {
9682
9770
  return {
9683
- ReservedConcurrentExecutions: __expectInt(output.ReservedConcurrentExecutions),
9771
+ ReservedConcurrentExecutions: __expectInt32(output.ReservedConcurrentExecutions),
9684
9772
  };
9685
9773
  };
9686
9774
  var deserializeAws_restJson1DeadLetterConfig = function (output, context) {
@@ -9746,7 +9834,7 @@ var deserializeAws_restJson1EnvironmentVariables = function (output, context) {
9746
9834
  };
9747
9835
  var deserializeAws_restJson1EventSourceMappingConfiguration = function (output, context) {
9748
9836
  return {
9749
- BatchSize: __expectInt(output.BatchSize),
9837
+ BatchSize: __expectInt32(output.BatchSize),
9750
9838
  BisectBatchOnFunctionError: __expectBoolean(output.BisectBatchOnFunctionError),
9751
9839
  DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
9752
9840
  ? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
@@ -9757,13 +9845,13 @@ var deserializeAws_restJson1EventSourceMappingConfiguration = function (output,
9757
9845
  ? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
9758
9846
  : undefined,
9759
9847
  LastModified: output.LastModified !== undefined && output.LastModified !== null
9760
- ? new Date(Math.round(output.LastModified * 1000))
9848
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModified)))
9761
9849
  : undefined,
9762
9850
  LastProcessingResult: __expectString(output.LastProcessingResult),
9763
- MaximumBatchingWindowInSeconds: __expectInt(output.MaximumBatchingWindowInSeconds),
9764
- MaximumRecordAgeInSeconds: __expectInt(output.MaximumRecordAgeInSeconds),
9765
- MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts),
9766
- ParallelizationFactor: __expectInt(output.ParallelizationFactor),
9851
+ MaximumBatchingWindowInSeconds: __expectInt32(output.MaximumBatchingWindowInSeconds),
9852
+ MaximumRecordAgeInSeconds: __expectInt32(output.MaximumRecordAgeInSeconds),
9853
+ MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
9854
+ ParallelizationFactor: __expectInt32(output.ParallelizationFactor),
9767
9855
  Queues: output.Queues !== undefined && output.Queues !== null
9768
9856
  ? deserializeAws_restJson1Queues(output.Queues, context)
9769
9857
  : undefined,
@@ -9775,14 +9863,14 @@ var deserializeAws_restJson1EventSourceMappingConfiguration = function (output,
9775
9863
  : undefined,
9776
9864
  StartingPosition: __expectString(output.StartingPosition),
9777
9865
  StartingPositionTimestamp: output.StartingPositionTimestamp !== undefined && output.StartingPositionTimestamp !== null
9778
- ? new Date(Math.round(output.StartingPositionTimestamp * 1000))
9866
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartingPositionTimestamp)))
9779
9867
  : undefined,
9780
9868
  State: __expectString(output.State),
9781
9869
  StateTransitionReason: __expectString(output.StateTransitionReason),
9782
9870
  Topics: output.Topics !== undefined && output.Topics !== null
9783
9871
  ? deserializeAws_restJson1Topics(output.Topics, context)
9784
9872
  : undefined,
9785
- TumblingWindowInSeconds: __expectInt(output.TumblingWindowInSeconds),
9873
+ TumblingWindowInSeconds: __expectInt32(output.TumblingWindowInSeconds),
9786
9874
  UUID: __expectString(output.UUID),
9787
9875
  };
9788
9876
  };
@@ -9833,7 +9921,7 @@ var deserializeAws_restJson1FunctionCodeLocation = function (output, context) {
9833
9921
  var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
9834
9922
  return {
9835
9923
  CodeSha256: __expectString(output.CodeSha256),
9836
- CodeSize: __expectInt(output.CodeSize),
9924
+ CodeSize: __expectLong(output.CodeSize),
9837
9925
  DeadLetterConfig: output.DeadLetterConfig !== undefined && output.DeadLetterConfig !== null
9838
9926
  ? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
9839
9927
  : undefined,
@@ -9859,7 +9947,7 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
9859
9947
  ? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
9860
9948
  : undefined,
9861
9949
  MasterArn: __expectString(output.MasterArn),
9862
- MemorySize: __expectInt(output.MemorySize),
9950
+ MemorySize: __expectInt32(output.MemorySize),
9863
9951
  PackageType: __expectString(output.PackageType),
9864
9952
  RevisionId: __expectString(output.RevisionId),
9865
9953
  Role: __expectString(output.Role),
@@ -9869,7 +9957,7 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
9869
9957
  State: __expectString(output.State),
9870
9958
  StateReason: __expectString(output.StateReason),
9871
9959
  StateReasonCode: __expectString(output.StateReasonCode),
9872
- Timeout: __expectInt(output.Timeout),
9960
+ Timeout: __expectInt32(output.Timeout),
9873
9961
  TracingConfig: output.TracingConfig !== undefined && output.TracingConfig !== null
9874
9962
  ? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
9875
9963
  : undefined,
@@ -9886,10 +9974,10 @@ var deserializeAws_restJson1FunctionEventInvokeConfig = function (output, contex
9886
9974
  : undefined,
9887
9975
  FunctionArn: __expectString(output.FunctionArn),
9888
9976
  LastModified: output.LastModified !== undefined && output.LastModified !== null
9889
- ? new Date(Math.round(output.LastModified * 1000))
9977
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModified)))
9890
9978
  : undefined,
9891
- MaximumEventAgeInSeconds: __expectInt(output.MaximumEventAgeInSeconds),
9892
- MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts),
9979
+ MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds),
9980
+ MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
9893
9981
  };
9894
9982
  };
9895
9983
  var deserializeAws_restJson1FunctionEventInvokeConfigList = function (output, context) {
@@ -9952,7 +10040,7 @@ var deserializeAws_restJson1ImageConfigResponse = function (output, context) {
9952
10040
  var deserializeAws_restJson1Layer = function (output, context) {
9953
10041
  return {
9954
10042
  Arn: __expectString(output.Arn),
9955
- CodeSize: __expectInt(output.CodeSize),
10043
+ CodeSize: __expectLong(output.CodeSize),
9956
10044
  SigningJobArn: __expectString(output.SigningJobArn),
9957
10045
  SigningProfileVersionArn: __expectString(output.SigningProfileVersionArn),
9958
10046
  };
@@ -9989,7 +10077,7 @@ var deserializeAws_restJson1LayersReferenceList = function (output, context) {
9989
10077
  var deserializeAws_restJson1LayerVersionContentOutput = function (output, context) {
9990
10078
  return {
9991
10079
  CodeSha256: __expectString(output.CodeSha256),
9992
- CodeSize: __expectInt(output.CodeSize),
10080
+ CodeSize: __expectLong(output.CodeSize),
9993
10081
  Location: __expectString(output.Location),
9994
10082
  SigningJobArn: __expectString(output.SigningJobArn),
9995
10083
  SigningProfileVersionArn: __expectString(output.SigningProfileVersionArn),
@@ -10014,7 +10102,7 @@ var deserializeAws_restJson1LayerVersionsListItem = function (output, context) {
10014
10102
  Description: __expectString(output.Description),
10015
10103
  LayerVersionArn: __expectString(output.LayerVersionArn),
10016
10104
  LicenseInfo: __expectString(output.LicenseInfo),
10017
- Version: __expectInt(output.Version),
10105
+ Version: __expectLong(output.Version),
10018
10106
  };
10019
10107
  };
10020
10108
  var deserializeAws_restJson1OnFailure = function (output, context) {
@@ -10039,11 +10127,11 @@ var deserializeAws_restJson1ProvisionedConcurrencyConfigList = function (output,
10039
10127
  };
10040
10128
  var deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = function (output, context) {
10041
10129
  return {
10042
- AllocatedProvisionedConcurrentExecutions: __expectInt(output.AllocatedProvisionedConcurrentExecutions),
10043
- AvailableProvisionedConcurrentExecutions: __expectInt(output.AvailableProvisionedConcurrentExecutions),
10130
+ AllocatedProvisionedConcurrentExecutions: __expectInt32(output.AllocatedProvisionedConcurrentExecutions),
10131
+ AvailableProvisionedConcurrentExecutions: __expectInt32(output.AvailableProvisionedConcurrentExecutions),
10044
10132
  FunctionArn: __expectString(output.FunctionArn),
10045
10133
  LastModified: __expectString(output.LastModified),
10046
- RequestedProvisionedConcurrentExecutions: __expectInt(output.RequestedProvisionedConcurrentExecutions),
10134
+ RequestedProvisionedConcurrentExecutions: __expectInt32(output.RequestedProvisionedConcurrentExecutions),
10047
10135
  Status: __expectString(output.Status),
10048
10136
  StatusReason: __expectString(output.StatusReason),
10049
10137
  };