@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.
@@ -2025,7 +2025,7 @@ const deserializeAws_restJson1AddLayerVersionPermissionCommand = async (output,
2025
2025
  RevisionId: undefined,
2026
2026
  Statement: undefined,
2027
2027
  };
2028
- const data = await parseBody(output.body, context);
2028
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2029
2029
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
2030
2030
  contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
2031
2031
  }
@@ -2124,7 +2124,7 @@ const deserializeAws_restJson1AddPermissionCommand = async (output, context) =>
2124
2124
  $metadata: deserializeMetadata(output),
2125
2125
  Statement: undefined,
2126
2126
  };
2127
- const data = await parseBody(output.body, context);
2127
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2128
2128
  if (data.Statement !== undefined && data.Statement !== null) {
2129
2129
  contents.Statement = smithy_client_1.expectString(data.Statement);
2130
2130
  }
@@ -2225,7 +2225,7 @@ const deserializeAws_restJson1CreateAliasCommand = async (output, context) => {
2225
2225
  RevisionId: undefined,
2226
2226
  RoutingConfig: undefined,
2227
2227
  };
2228
- const data = await parseBody(output.body, context);
2228
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2229
2229
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
2230
2230
  contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
2231
2231
  }
@@ -2320,7 +2320,7 @@ const deserializeAws_restJson1CreateCodeSigningConfigCommand = async (output, co
2320
2320
  $metadata: deserializeMetadata(output),
2321
2321
  CodeSigningConfig: undefined,
2322
2322
  };
2323
- const data = await parseBody(output.body, context);
2323
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2324
2324
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
2325
2325
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
2326
2326
  }
@@ -2397,9 +2397,9 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
2397
2397
  TumblingWindowInSeconds: undefined,
2398
2398
  UUID: undefined,
2399
2399
  };
2400
- const data = await parseBody(output.body, context);
2400
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2401
2401
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
2402
- contents.BatchSize = smithy_client_1.expectInt(data.BatchSize);
2402
+ contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
2403
2403
  }
2404
2404
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
2405
2405
  contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
@@ -2417,22 +2417,22 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
2417
2417
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
2418
2418
  }
2419
2419
  if (data.LastModified !== undefined && data.LastModified !== null) {
2420
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
2420
+ contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
2421
2421
  }
2422
2422
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
2423
2423
  contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
2424
2424
  }
2425
2425
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
2426
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt(data.MaximumBatchingWindowInSeconds);
2426
+ contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
2427
2427
  }
2428
2428
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
2429
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt(data.MaximumRecordAgeInSeconds);
2429
+ contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
2430
2430
  }
2431
2431
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
2432
- contents.MaximumRetryAttempts = smithy_client_1.expectInt(data.MaximumRetryAttempts);
2432
+ contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
2433
2433
  }
2434
2434
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
2435
- contents.ParallelizationFactor = smithy_client_1.expectInt(data.ParallelizationFactor);
2435
+ contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
2436
2436
  }
2437
2437
  if (data.Queues !== undefined && data.Queues !== null) {
2438
2438
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -2447,7 +2447,7 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
2447
2447
  contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
2448
2448
  }
2449
2449
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
2450
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
2450
+ contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
2451
2451
  }
2452
2452
  if (data.State !== undefined && data.State !== null) {
2453
2453
  contents.State = smithy_client_1.expectString(data.State);
@@ -2459,7 +2459,7 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
2459
2459
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
2460
2460
  }
2461
2461
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
2462
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt(data.TumblingWindowInSeconds);
2462
+ contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
2463
2463
  }
2464
2464
  if (data.UUID !== undefined && data.UUID !== null) {
2465
2465
  contents.UUID = smithy_client_1.expectString(data.UUID);
@@ -2570,12 +2570,12 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
2570
2570
  Version: undefined,
2571
2571
  VpcConfig: undefined,
2572
2572
  };
2573
- const data = await parseBody(output.body, context);
2573
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2574
2574
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
2575
2575
  contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
2576
2576
  }
2577
2577
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
2578
- contents.CodeSize = smithy_client_1.expectInt(data.CodeSize);
2578
+ contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
2579
2579
  }
2580
2580
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
2581
2581
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -2623,7 +2623,7 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
2623
2623
  contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
2624
2624
  }
2625
2625
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
2626
- contents.MemorySize = smithy_client_1.expectInt(data.MemorySize);
2626
+ contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
2627
2627
  }
2628
2628
  if (data.PackageType !== undefined && data.PackageType !== null) {
2629
2629
  contents.PackageType = smithy_client_1.expectString(data.PackageType);
@@ -2653,7 +2653,7 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
2653
2653
  contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
2654
2654
  }
2655
2655
  if (data.Timeout !== undefined && data.Timeout !== null) {
2656
- contents.Timeout = smithy_client_1.expectInt(data.Timeout);
2656
+ contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
2657
2657
  }
2658
2658
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
2659
2659
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -2929,9 +2929,9 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
2929
2929
  TumblingWindowInSeconds: undefined,
2930
2930
  UUID: undefined,
2931
2931
  };
2932
- const data = await parseBody(output.body, context);
2932
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2933
2933
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
2934
- contents.BatchSize = smithy_client_1.expectInt(data.BatchSize);
2934
+ contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
2935
2935
  }
2936
2936
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
2937
2937
  contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
@@ -2949,22 +2949,22 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
2949
2949
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
2950
2950
  }
2951
2951
  if (data.LastModified !== undefined && data.LastModified !== null) {
2952
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
2952
+ contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
2953
2953
  }
2954
2954
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
2955
2955
  contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
2956
2956
  }
2957
2957
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
2958
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt(data.MaximumBatchingWindowInSeconds);
2958
+ contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
2959
2959
  }
2960
2960
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
2961
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt(data.MaximumRecordAgeInSeconds);
2961
+ contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
2962
2962
  }
2963
2963
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
2964
- contents.MaximumRetryAttempts = smithy_client_1.expectInt(data.MaximumRetryAttempts);
2964
+ contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
2965
2965
  }
2966
2966
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
2967
- contents.ParallelizationFactor = smithy_client_1.expectInt(data.ParallelizationFactor);
2967
+ contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
2968
2968
  }
2969
2969
  if (data.Queues !== undefined && data.Queues !== null) {
2970
2970
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -2979,7 +2979,7 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
2979
2979
  contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
2980
2980
  }
2981
2981
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
2982
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
2982
+ contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
2983
2983
  }
2984
2984
  if (data.State !== undefined && data.State !== null) {
2985
2985
  contents.State = smithy_client_1.expectString(data.State);
@@ -2991,7 +2991,7 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
2991
2991
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
2992
2992
  }
2993
2993
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
2994
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt(data.TumblingWindowInSeconds);
2994
+ contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
2995
2995
  }
2996
2996
  if (data.UUID !== undefined && data.UUID !== null) {
2997
2997
  contents.UUID = smithy_client_1.expectString(data.UUID);
@@ -3513,7 +3513,7 @@ const deserializeAws_restJson1GetAccountSettingsCommand = async (output, context
3513
3513
  AccountLimit: undefined,
3514
3514
  AccountUsage: undefined,
3515
3515
  };
3516
- const data = await parseBody(output.body, context);
3516
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3517
3517
  if (data.AccountLimit !== undefined && data.AccountLimit !== null) {
3518
3518
  contents.AccountLimit = deserializeAws_restJson1AccountLimit(data.AccountLimit, context);
3519
3519
  }
@@ -3577,7 +3577,7 @@ const deserializeAws_restJson1GetAliasCommand = async (output, context) => {
3577
3577
  RevisionId: undefined,
3578
3578
  RoutingConfig: undefined,
3579
3579
  };
3580
- const data = await parseBody(output.body, context);
3580
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3581
3581
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
3582
3582
  contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
3583
3583
  }
@@ -3664,7 +3664,7 @@ const deserializeAws_restJson1GetCodeSigningConfigCommand = async (output, conte
3664
3664
  $metadata: deserializeMetadata(output),
3665
3665
  CodeSigningConfig: undefined,
3666
3666
  };
3667
- const data = await parseBody(output.body, context);
3667
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3668
3668
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
3669
3669
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
3670
3670
  }
@@ -3749,9 +3749,9 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
3749
3749
  TumblingWindowInSeconds: undefined,
3750
3750
  UUID: undefined,
3751
3751
  };
3752
- const data = await parseBody(output.body, context);
3752
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3753
3753
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
3754
- contents.BatchSize = smithy_client_1.expectInt(data.BatchSize);
3754
+ contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
3755
3755
  }
3756
3756
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
3757
3757
  contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
@@ -3769,22 +3769,22 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
3769
3769
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
3770
3770
  }
3771
3771
  if (data.LastModified !== undefined && data.LastModified !== null) {
3772
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
3772
+ contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
3773
3773
  }
3774
3774
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
3775
3775
  contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
3776
3776
  }
3777
3777
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
3778
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt(data.MaximumBatchingWindowInSeconds);
3778
+ contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
3779
3779
  }
3780
3780
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
3781
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt(data.MaximumRecordAgeInSeconds);
3781
+ contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
3782
3782
  }
3783
3783
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
3784
- contents.MaximumRetryAttempts = smithy_client_1.expectInt(data.MaximumRetryAttempts);
3784
+ contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
3785
3785
  }
3786
3786
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
3787
- contents.ParallelizationFactor = smithy_client_1.expectInt(data.ParallelizationFactor);
3787
+ contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
3788
3788
  }
3789
3789
  if (data.Queues !== undefined && data.Queues !== null) {
3790
3790
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -3799,7 +3799,7 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
3799
3799
  contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
3800
3800
  }
3801
3801
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
3802
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
3802
+ contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
3803
3803
  }
3804
3804
  if (data.State !== undefined && data.State !== null) {
3805
3805
  contents.State = smithy_client_1.expectString(data.State);
@@ -3811,7 +3811,7 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
3811
3811
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
3812
3812
  }
3813
3813
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
3814
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt(data.TumblingWindowInSeconds);
3814
+ contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
3815
3815
  }
3816
3816
  if (data.UUID !== undefined && data.UUID !== null) {
3817
3817
  contents.UUID = smithy_client_1.expectString(data.UUID);
@@ -3887,7 +3887,7 @@ const deserializeAws_restJson1GetFunctionCommand = async (output, context) => {
3887
3887
  Configuration: undefined,
3888
3888
  Tags: undefined,
3889
3889
  };
3890
- const data = await parseBody(output.body, context);
3890
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3891
3891
  if (data.Code !== undefined && data.Code !== null) {
3892
3892
  contents.Code = deserializeAws_restJson1FunctionCodeLocation(data.Code, context);
3893
3893
  }
@@ -3969,7 +3969,7 @@ const deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = async (outpu
3969
3969
  CodeSigningConfigArn: undefined,
3970
3970
  FunctionName: undefined,
3971
3971
  };
3972
- const data = await parseBody(output.body, context);
3972
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3973
3973
  if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
3974
3974
  contents.CodeSigningConfigArn = smithy_client_1.expectString(data.CodeSigningConfigArn);
3975
3975
  }
@@ -4044,9 +4044,9 @@ const deserializeAws_restJson1GetFunctionConcurrencyCommand = async (output, con
4044
4044
  $metadata: deserializeMetadata(output),
4045
4045
  ReservedConcurrentExecutions: undefined,
4046
4046
  };
4047
- const data = await parseBody(output.body, context);
4047
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4048
4048
  if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
4049
- contents.ReservedConcurrentExecutions = smithy_client_1.expectInt(data.ReservedConcurrentExecutions);
4049
+ contents.ReservedConcurrentExecutions = smithy_client_1.expectInt32(data.ReservedConcurrentExecutions);
4050
4050
  }
4051
4051
  return Promise.resolve(contents);
4052
4052
  };
@@ -4146,12 +4146,12 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
4146
4146
  Version: undefined,
4147
4147
  VpcConfig: undefined,
4148
4148
  };
4149
- const data = await parseBody(output.body, context);
4149
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4150
4150
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
4151
4151
  contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
4152
4152
  }
4153
4153
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
4154
- contents.CodeSize = smithy_client_1.expectInt(data.CodeSize);
4154
+ contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
4155
4155
  }
4156
4156
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
4157
4157
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -4199,7 +4199,7 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
4199
4199
  contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
4200
4200
  }
4201
4201
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
4202
- contents.MemorySize = smithy_client_1.expectInt(data.MemorySize);
4202
+ contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
4203
4203
  }
4204
4204
  if (data.PackageType !== undefined && data.PackageType !== null) {
4205
4205
  contents.PackageType = smithy_client_1.expectString(data.PackageType);
@@ -4229,7 +4229,7 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
4229
4229
  contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
4230
4230
  }
4231
4231
  if (data.Timeout !== undefined && data.Timeout !== null) {
4232
- contents.Timeout = smithy_client_1.expectInt(data.Timeout);
4232
+ contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
4233
4233
  }
4234
4234
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
4235
4235
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -4312,7 +4312,7 @@ const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (outpu
4312
4312
  MaximumEventAgeInSeconds: undefined,
4313
4313
  MaximumRetryAttempts: undefined,
4314
4314
  };
4315
- const data = await parseBody(output.body, context);
4315
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4316
4316
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
4317
4317
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
4318
4318
  }
@@ -4320,13 +4320,13 @@ const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (outpu
4320
4320
  contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
4321
4321
  }
4322
4322
  if (data.LastModified !== undefined && data.LastModified !== null) {
4323
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
4323
+ contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
4324
4324
  }
4325
4325
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
4326
- contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt(data.MaximumEventAgeInSeconds);
4326
+ contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
4327
4327
  }
4328
4328
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
4329
- contents.MaximumRetryAttempts = smithy_client_1.expectInt(data.MaximumRetryAttempts);
4329
+ contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
4330
4330
  }
4331
4331
  return Promise.resolve(contents);
4332
4332
  };
@@ -4403,7 +4403,7 @@ const deserializeAws_restJson1GetLayerVersionCommand = async (output, context) =
4403
4403
  LicenseInfo: undefined,
4404
4404
  Version: undefined,
4405
4405
  };
4406
- const data = await parseBody(output.body, context);
4406
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4407
4407
  if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
4408
4408
  contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
4409
4409
  }
@@ -4426,7 +4426,7 @@ const deserializeAws_restJson1GetLayerVersionCommand = async (output, context) =
4426
4426
  contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
4427
4427
  }
4428
4428
  if (data.Version !== undefined && data.Version !== null) {
4429
- contents.Version = smithy_client_1.expectInt(data.Version);
4429
+ contents.Version = smithy_client_1.expectLong(data.Version);
4430
4430
  }
4431
4431
  return Promise.resolve(contents);
4432
4432
  };
@@ -4503,7 +4503,7 @@ const deserializeAws_restJson1GetLayerVersionByArnCommand = async (output, conte
4503
4503
  LicenseInfo: undefined,
4504
4504
  Version: undefined,
4505
4505
  };
4506
- const data = await parseBody(output.body, context);
4506
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4507
4507
  if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
4508
4508
  contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
4509
4509
  }
@@ -4526,7 +4526,7 @@ const deserializeAws_restJson1GetLayerVersionByArnCommand = async (output, conte
4526
4526
  contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
4527
4527
  }
4528
4528
  if (data.Version !== undefined && data.Version !== null) {
4529
- contents.Version = smithy_client_1.expectInt(data.Version);
4529
+ contents.Version = smithy_client_1.expectLong(data.Version);
4530
4530
  }
4531
4531
  return Promise.resolve(contents);
4532
4532
  };
@@ -4597,7 +4597,7 @@ const deserializeAws_restJson1GetLayerVersionPolicyCommand = async (output, cont
4597
4597
  Policy: undefined,
4598
4598
  RevisionId: undefined,
4599
4599
  };
4600
- const data = await parseBody(output.body, context);
4600
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4601
4601
  if (data.Policy !== undefined && data.Policy !== null) {
4602
4602
  contents.Policy = smithy_client_1.expectString(data.Policy);
4603
4603
  }
@@ -4673,7 +4673,7 @@ const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
4673
4673
  Policy: undefined,
4674
4674
  RevisionId: undefined,
4675
4675
  };
4676
- const data = await parseBody(output.body, context);
4676
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4677
4677
  if (data.Policy !== undefined && data.Policy !== null) {
4678
4678
  contents.Policy = smithy_client_1.expectString(data.Policy);
4679
4679
  }
@@ -4753,21 +4753,21 @@ const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (ou
4753
4753
  Status: undefined,
4754
4754
  StatusReason: undefined,
4755
4755
  };
4756
- const data = await parseBody(output.body, context);
4756
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4757
4757
  if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
4758
4758
  data.AllocatedProvisionedConcurrentExecutions !== null) {
4759
- contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt(data.AllocatedProvisionedConcurrentExecutions);
4759
+ contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AllocatedProvisionedConcurrentExecutions);
4760
4760
  }
4761
4761
  if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
4762
4762
  data.AvailableProvisionedConcurrentExecutions !== null) {
4763
- contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt(data.AvailableProvisionedConcurrentExecutions);
4763
+ contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AvailableProvisionedConcurrentExecutions);
4764
4764
  }
4765
4765
  if (data.LastModified !== undefined && data.LastModified !== null) {
4766
4766
  contents.LastModified = smithy_client_1.expectString(data.LastModified);
4767
4767
  }
4768
4768
  if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
4769
4769
  data.RequestedProvisionedConcurrentExecutions !== null) {
4770
- contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt(data.RequestedProvisionedConcurrentExecutions);
4770
+ contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.RequestedProvisionedConcurrentExecutions);
4771
4771
  }
4772
4772
  if (data.Status !== undefined && data.Status !== null) {
4773
4773
  contents.Status = smithy_client_1.expectString(data.Status);
@@ -5194,7 +5194,7 @@ const deserializeAws_restJson1ListAliasesCommand = async (output, context) => {
5194
5194
  Aliases: undefined,
5195
5195
  NextMarker: undefined,
5196
5196
  };
5197
- const data = await parseBody(output.body, context);
5197
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5198
5198
  if (data.Aliases !== undefined && data.Aliases !== null) {
5199
5199
  contents.Aliases = deserializeAws_restJson1AliasList(data.Aliases, context);
5200
5200
  }
@@ -5270,7 +5270,7 @@ const deserializeAws_restJson1ListCodeSigningConfigsCommand = async (output, con
5270
5270
  CodeSigningConfigs: undefined,
5271
5271
  NextMarker: undefined,
5272
5272
  };
5273
- const data = await parseBody(output.body, context);
5273
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5274
5274
  if (data.CodeSigningConfigs !== undefined && data.CodeSigningConfigs !== null) {
5275
5275
  contents.CodeSigningConfigs = deserializeAws_restJson1CodeSigningConfigList(data.CodeSigningConfigs, context);
5276
5276
  }
@@ -5330,7 +5330,7 @@ const deserializeAws_restJson1ListEventSourceMappingsCommand = async (output, co
5330
5330
  EventSourceMappings: undefined,
5331
5331
  NextMarker: undefined,
5332
5332
  };
5333
- const data = await parseBody(output.body, context);
5333
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5334
5334
  if (data.EventSourceMappings !== undefined && data.EventSourceMappings !== null) {
5335
5335
  contents.EventSourceMappings = deserializeAws_restJson1EventSourceMappingsList(data.EventSourceMappings, context);
5336
5336
  }
@@ -5406,7 +5406,7 @@ const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = async (out
5406
5406
  FunctionEventInvokeConfigs: undefined,
5407
5407
  NextMarker: undefined,
5408
5408
  };
5409
- const data = await parseBody(output.body, context);
5409
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5410
5410
  if (data.FunctionEventInvokeConfigs !== undefined && data.FunctionEventInvokeConfigs !== null) {
5411
5411
  contents.FunctionEventInvokeConfigs = deserializeAws_restJson1FunctionEventInvokeConfigList(data.FunctionEventInvokeConfigs, context);
5412
5412
  }
@@ -5482,7 +5482,7 @@ const deserializeAws_restJson1ListFunctionsCommand = async (output, context) =>
5482
5482
  Functions: undefined,
5483
5483
  NextMarker: undefined,
5484
5484
  };
5485
- const data = await parseBody(output.body, context);
5485
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5486
5486
  if (data.Functions !== undefined && data.Functions !== null) {
5487
5487
  contents.Functions = deserializeAws_restJson1FunctionList(data.Functions, context);
5488
5488
  }
@@ -5550,7 +5550,7 @@ const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = async (o
5550
5550
  FunctionArns: undefined,
5551
5551
  NextMarker: undefined,
5552
5552
  };
5553
- const data = await parseBody(output.body, context);
5553
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5554
5554
  if (data.FunctionArns !== undefined && data.FunctionArns !== null) {
5555
5555
  contents.FunctionArns = deserializeAws_restJson1FunctionArnList(data.FunctionArns, context);
5556
5556
  }
@@ -5618,7 +5618,7 @@ const deserializeAws_restJson1ListLayersCommand = async (output, context) => {
5618
5618
  Layers: undefined,
5619
5619
  NextMarker: undefined,
5620
5620
  };
5621
- const data = await parseBody(output.body, context);
5621
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5622
5622
  if (data.Layers !== undefined && data.Layers !== null) {
5623
5623
  contents.Layers = deserializeAws_restJson1LayersList(data.Layers, context);
5624
5624
  }
@@ -5686,7 +5686,7 @@ const deserializeAws_restJson1ListLayerVersionsCommand = async (output, context)
5686
5686
  LayerVersions: undefined,
5687
5687
  NextMarker: undefined,
5688
5688
  };
5689
- const data = await parseBody(output.body, context);
5689
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5690
5690
  if (data.LayerVersions !== undefined && data.LayerVersions !== null) {
5691
5691
  contents.LayerVersions = deserializeAws_restJson1LayerVersionsList(data.LayerVersions, context);
5692
5692
  }
@@ -5762,7 +5762,7 @@ const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = async (
5762
5762
  NextMarker: undefined,
5763
5763
  ProvisionedConcurrencyConfigs: undefined,
5764
5764
  };
5765
- const data = await parseBody(output.body, context);
5765
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5766
5766
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
5767
5767
  contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
5768
5768
  }
@@ -5837,7 +5837,7 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
5837
5837
  $metadata: deserializeMetadata(output),
5838
5838
  Tags: undefined,
5839
5839
  };
5840
- const data = await parseBody(output.body, context);
5840
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5841
5841
  if (data.Tags !== undefined && data.Tags !== null) {
5842
5842
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
5843
5843
  }
@@ -5910,7 +5910,7 @@ const deserializeAws_restJson1ListVersionsByFunctionCommand = async (output, con
5910
5910
  NextMarker: undefined,
5911
5911
  Versions: undefined,
5912
5912
  };
5913
- const data = await parseBody(output.body, context);
5913
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5914
5914
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
5915
5915
  contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
5916
5916
  }
@@ -5992,7 +5992,7 @@ const deserializeAws_restJson1PublishLayerVersionCommand = async (output, contex
5992
5992
  LicenseInfo: undefined,
5993
5993
  Version: undefined,
5994
5994
  };
5995
- const data = await parseBody(output.body, context);
5995
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5996
5996
  if (data.CompatibleRuntimes !== undefined && data.CompatibleRuntimes !== null) {
5997
5997
  contents.CompatibleRuntimes = deserializeAws_restJson1CompatibleRuntimes(data.CompatibleRuntimes, context);
5998
5998
  }
@@ -6015,7 +6015,7 @@ const deserializeAws_restJson1PublishLayerVersionCommand = async (output, contex
6015
6015
  contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
6016
6016
  }
6017
6017
  if (data.Version !== undefined && data.Version !== null) {
6018
- contents.Version = smithy_client_1.expectInt(data.Version);
6018
+ contents.Version = smithy_client_1.expectLong(data.Version);
6019
6019
  }
6020
6020
  return Promise.resolve(contents);
6021
6021
  };
@@ -6123,12 +6123,12 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
6123
6123
  Version: undefined,
6124
6124
  VpcConfig: undefined,
6125
6125
  };
6126
- const data = await parseBody(output.body, context);
6126
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6127
6127
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
6128
6128
  contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
6129
6129
  }
6130
6130
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
6131
- contents.CodeSize = smithy_client_1.expectInt(data.CodeSize);
6131
+ contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
6132
6132
  }
6133
6133
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
6134
6134
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -6176,7 +6176,7 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
6176
6176
  contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
6177
6177
  }
6178
6178
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
6179
- contents.MemorySize = smithy_client_1.expectInt(data.MemorySize);
6179
+ contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
6180
6180
  }
6181
6181
  if (data.PackageType !== undefined && data.PackageType !== null) {
6182
6182
  contents.PackageType = smithy_client_1.expectString(data.PackageType);
@@ -6206,7 +6206,7 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
6206
6206
  contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
6207
6207
  }
6208
6208
  if (data.Timeout !== undefined && data.Timeout !== null) {
6209
- contents.Timeout = smithy_client_1.expectInt(data.Timeout);
6209
+ contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
6210
6210
  }
6211
6211
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
6212
6212
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -6310,7 +6310,7 @@ const deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = async (outpu
6310
6310
  CodeSigningConfigArn: undefined,
6311
6311
  FunctionName: undefined,
6312
6312
  };
6313
- const data = await parseBody(output.body, context);
6313
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6314
6314
  if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
6315
6315
  contents.CodeSigningConfigArn = smithy_client_1.expectString(data.CodeSigningConfigArn);
6316
6316
  }
@@ -6401,9 +6401,9 @@ const deserializeAws_restJson1PutFunctionConcurrencyCommand = async (output, con
6401
6401
  $metadata: deserializeMetadata(output),
6402
6402
  ReservedConcurrentExecutions: undefined,
6403
6403
  };
6404
- const data = await parseBody(output.body, context);
6404
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6405
6405
  if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
6406
- contents.ReservedConcurrentExecutions = smithy_client_1.expectInt(data.ReservedConcurrentExecutions);
6406
+ contents.ReservedConcurrentExecutions = smithy_client_1.expectInt32(data.ReservedConcurrentExecutions);
6407
6407
  }
6408
6408
  return Promise.resolve(contents);
6409
6409
  };
@@ -6485,7 +6485,7 @@ const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (outpu
6485
6485
  MaximumEventAgeInSeconds: undefined,
6486
6486
  MaximumRetryAttempts: undefined,
6487
6487
  };
6488
- const data = await parseBody(output.body, context);
6488
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6489
6489
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
6490
6490
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
6491
6491
  }
@@ -6493,13 +6493,13 @@ const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (outpu
6493
6493
  contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
6494
6494
  }
6495
6495
  if (data.LastModified !== undefined && data.LastModified !== null) {
6496
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
6496
+ contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
6497
6497
  }
6498
6498
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
6499
- contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt(data.MaximumEventAgeInSeconds);
6499
+ contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
6500
6500
  }
6501
6501
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
6502
- contents.MaximumRetryAttempts = smithy_client_1.expectInt(data.MaximumRetryAttempts);
6502
+ contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
6503
6503
  }
6504
6504
  return Promise.resolve(contents);
6505
6505
  };
@@ -6582,21 +6582,21 @@ const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (ou
6582
6582
  Status: undefined,
6583
6583
  StatusReason: undefined,
6584
6584
  };
6585
- const data = await parseBody(output.body, context);
6585
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6586
6586
  if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
6587
6587
  data.AllocatedProvisionedConcurrentExecutions !== null) {
6588
- contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt(data.AllocatedProvisionedConcurrentExecutions);
6588
+ contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AllocatedProvisionedConcurrentExecutions);
6589
6589
  }
6590
6590
  if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
6591
6591
  data.AvailableProvisionedConcurrentExecutions !== null) {
6592
- contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt(data.AvailableProvisionedConcurrentExecutions);
6592
+ contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AvailableProvisionedConcurrentExecutions);
6593
6593
  }
6594
6594
  if (data.LastModified !== undefined && data.LastModified !== null) {
6595
6595
  contents.LastModified = smithy_client_1.expectString(data.LastModified);
6596
6596
  }
6597
6597
  if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
6598
6598
  data.RequestedProvisionedConcurrentExecutions !== null) {
6599
- contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt(data.RequestedProvisionedConcurrentExecutions);
6599
+ contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.RequestedProvisionedConcurrentExecutions);
6600
6600
  }
6601
6601
  if (data.Status !== undefined && data.Status !== null) {
6602
6602
  contents.Status = smithy_client_1.expectString(data.Status);
@@ -6989,7 +6989,7 @@ const deserializeAws_restJson1UpdateAliasCommand = async (output, context) => {
6989
6989
  RevisionId: undefined,
6990
6990
  RoutingConfig: undefined,
6991
6991
  };
6992
- const data = await parseBody(output.body, context);
6992
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6993
6993
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
6994
6994
  contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
6995
6995
  }
@@ -7092,7 +7092,7 @@ const deserializeAws_restJson1UpdateCodeSigningConfigCommand = async (output, co
7092
7092
  $metadata: deserializeMetadata(output),
7093
7093
  CodeSigningConfig: undefined,
7094
7094
  };
7095
- const data = await parseBody(output.body, context);
7095
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7096
7096
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
7097
7097
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
7098
7098
  }
@@ -7177,9 +7177,9 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
7177
7177
  TumblingWindowInSeconds: undefined,
7178
7178
  UUID: undefined,
7179
7179
  };
7180
- const data = await parseBody(output.body, context);
7180
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7181
7181
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
7182
- contents.BatchSize = smithy_client_1.expectInt(data.BatchSize);
7182
+ contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
7183
7183
  }
7184
7184
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
7185
7185
  contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
@@ -7197,22 +7197,22 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
7197
7197
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
7198
7198
  }
7199
7199
  if (data.LastModified !== undefined && data.LastModified !== null) {
7200
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
7200
+ contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
7201
7201
  }
7202
7202
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
7203
7203
  contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
7204
7204
  }
7205
7205
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
7206
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt(data.MaximumBatchingWindowInSeconds);
7206
+ contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
7207
7207
  }
7208
7208
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
7209
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt(data.MaximumRecordAgeInSeconds);
7209
+ contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
7210
7210
  }
7211
7211
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
7212
- contents.MaximumRetryAttempts = smithy_client_1.expectInt(data.MaximumRetryAttempts);
7212
+ contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
7213
7213
  }
7214
7214
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
7215
- contents.ParallelizationFactor = smithy_client_1.expectInt(data.ParallelizationFactor);
7215
+ contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
7216
7216
  }
7217
7217
  if (data.Queues !== undefined && data.Queues !== null) {
7218
7218
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -7227,7 +7227,7 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
7227
7227
  contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
7228
7228
  }
7229
7229
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
7230
- contents.StartingPositionTimestamp = new Date(Math.round(data.StartingPositionTimestamp * 1000));
7230
+ contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
7231
7231
  }
7232
7232
  if (data.State !== undefined && data.State !== null) {
7233
7233
  contents.State = smithy_client_1.expectString(data.State);
@@ -7239,7 +7239,7 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
7239
7239
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
7240
7240
  }
7241
7241
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
7242
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt(data.TumblingWindowInSeconds);
7242
+ contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
7243
7243
  }
7244
7244
  if (data.UUID !== undefined && data.UUID !== null) {
7245
7245
  contents.UUID = smithy_client_1.expectString(data.UUID);
@@ -7358,12 +7358,12 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
7358
7358
  Version: undefined,
7359
7359
  VpcConfig: undefined,
7360
7360
  };
7361
- const data = await parseBody(output.body, context);
7361
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7362
7362
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
7363
7363
  contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
7364
7364
  }
7365
7365
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
7366
- contents.CodeSize = smithy_client_1.expectInt(data.CodeSize);
7366
+ contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
7367
7367
  }
7368
7368
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
7369
7369
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -7411,7 +7411,7 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
7411
7411
  contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
7412
7412
  }
7413
7413
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
7414
- contents.MemorySize = smithy_client_1.expectInt(data.MemorySize);
7414
+ contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
7415
7415
  }
7416
7416
  if (data.PackageType !== undefined && data.PackageType !== null) {
7417
7417
  contents.PackageType = smithy_client_1.expectString(data.PackageType);
@@ -7441,7 +7441,7 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
7441
7441
  contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
7442
7442
  }
7443
7443
  if (data.Timeout !== undefined && data.Timeout !== null) {
7444
- contents.Timeout = smithy_client_1.expectInt(data.Timeout);
7444
+ contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
7445
7445
  }
7446
7446
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
7447
7447
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -7598,12 +7598,12 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
7598
7598
  Version: undefined,
7599
7599
  VpcConfig: undefined,
7600
7600
  };
7601
- const data = await parseBody(output.body, context);
7601
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7602
7602
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
7603
7603
  contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
7604
7604
  }
7605
7605
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
7606
- contents.CodeSize = smithy_client_1.expectInt(data.CodeSize);
7606
+ contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
7607
7607
  }
7608
7608
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
7609
7609
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
@@ -7651,7 +7651,7 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
7651
7651
  contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
7652
7652
  }
7653
7653
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
7654
- contents.MemorySize = smithy_client_1.expectInt(data.MemorySize);
7654
+ contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
7655
7655
  }
7656
7656
  if (data.PackageType !== undefined && data.PackageType !== null) {
7657
7657
  contents.PackageType = smithy_client_1.expectString(data.PackageType);
@@ -7681,7 +7681,7 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
7681
7681
  contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
7682
7682
  }
7683
7683
  if (data.Timeout !== undefined && data.Timeout !== null) {
7684
- contents.Timeout = smithy_client_1.expectInt(data.Timeout);
7684
+ contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
7685
7685
  }
7686
7686
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
7687
7687
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
@@ -7804,7 +7804,7 @@ const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (ou
7804
7804
  MaximumEventAgeInSeconds: undefined,
7805
7805
  MaximumRetryAttempts: undefined,
7806
7806
  };
7807
- const data = await parseBody(output.body, context);
7807
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7808
7808
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
7809
7809
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
7810
7810
  }
@@ -7812,13 +7812,13 @@ const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (ou
7812
7812
  contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
7813
7813
  }
7814
7814
  if (data.LastModified !== undefined && data.LastModified !== null) {
7815
- contents.LastModified = new Date(Math.round(data.LastModified * 1000));
7815
+ contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
7816
7816
  }
7817
7817
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
7818
- contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt(data.MaximumEventAgeInSeconds);
7818
+ contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
7819
7819
  }
7820
7820
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
7821
- contents.MaximumRetryAttempts = smithy_client_1.expectInt(data.MaximumRetryAttempts);
7821
+ contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
7822
7822
  }
7823
7823
  return Promise.resolve(contents);
7824
7824
  };
@@ -8760,17 +8760,17 @@ const serializeAws_restJson1VpcConfig = (input, context) => {
8760
8760
  };
8761
8761
  const deserializeAws_restJson1AccountLimit = (output, context) => {
8762
8762
  return {
8763
- CodeSizeUnzipped: smithy_client_1.expectInt(output.CodeSizeUnzipped),
8764
- CodeSizeZipped: smithy_client_1.expectInt(output.CodeSizeZipped),
8765
- ConcurrentExecutions: smithy_client_1.expectInt(output.ConcurrentExecutions),
8766
- TotalCodeSize: smithy_client_1.expectInt(output.TotalCodeSize),
8767
- UnreservedConcurrentExecutions: smithy_client_1.expectInt(output.UnreservedConcurrentExecutions),
8763
+ CodeSizeUnzipped: smithy_client_1.expectLong(output.CodeSizeUnzipped),
8764
+ CodeSizeZipped: smithy_client_1.expectLong(output.CodeSizeZipped),
8765
+ ConcurrentExecutions: smithy_client_1.expectInt32(output.ConcurrentExecutions),
8766
+ TotalCodeSize: smithy_client_1.expectLong(output.TotalCodeSize),
8767
+ UnreservedConcurrentExecutions: smithy_client_1.expectInt32(output.UnreservedConcurrentExecutions),
8768
8768
  };
8769
8769
  };
8770
8770
  const deserializeAws_restJson1AccountUsage = (output, context) => {
8771
8771
  return {
8772
- FunctionCount: smithy_client_1.expectInt(output.FunctionCount),
8773
- TotalCodeSize: smithy_client_1.expectInt(output.TotalCodeSize),
8772
+ FunctionCount: smithy_client_1.expectLong(output.FunctionCount),
8773
+ TotalCodeSize: smithy_client_1.expectLong(output.TotalCodeSize),
8774
8774
  };
8775
8775
  };
8776
8776
  const deserializeAws_restJson1AdditionalVersionWeights = (output, context) => {
@@ -8780,7 +8780,7 @@ const deserializeAws_restJson1AdditionalVersionWeights = (output, context) => {
8780
8780
  }
8781
8781
  return {
8782
8782
  ...acc,
8783
- [key]: smithy_client_1.limitedParseFloat(value),
8783
+ [key]: smithy_client_1.limitedParseDouble(value),
8784
8784
  };
8785
8785
  }, {});
8786
8786
  };
@@ -8861,7 +8861,7 @@ const deserializeAws_restJson1CompatibleRuntimes = (output, context) => {
8861
8861
  };
8862
8862
  const deserializeAws_restJson1Concurrency = (output, context) => {
8863
8863
  return {
8864
- ReservedConcurrentExecutions: smithy_client_1.expectInt(output.ReservedConcurrentExecutions),
8864
+ ReservedConcurrentExecutions: smithy_client_1.expectInt32(output.ReservedConcurrentExecutions),
8865
8865
  };
8866
8866
  };
8867
8867
  const deserializeAws_restJson1DeadLetterConfig = (output, context) => {
@@ -8929,7 +8929,7 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
8929
8929
  };
8930
8930
  const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context) => {
8931
8931
  return {
8932
- BatchSize: smithy_client_1.expectInt(output.BatchSize),
8932
+ BatchSize: smithy_client_1.expectInt32(output.BatchSize),
8933
8933
  BisectBatchOnFunctionError: smithy_client_1.expectBoolean(output.BisectBatchOnFunctionError),
8934
8934
  DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
8935
8935
  ? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
@@ -8940,13 +8940,13 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
8940
8940
  ? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
8941
8941
  : undefined,
8942
8942
  LastModified: output.LastModified !== undefined && output.LastModified !== null
8943
- ? new Date(Math.round(output.LastModified * 1000))
8943
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
8944
8944
  : undefined,
8945
8945
  LastProcessingResult: smithy_client_1.expectString(output.LastProcessingResult),
8946
- MaximumBatchingWindowInSeconds: smithy_client_1.expectInt(output.MaximumBatchingWindowInSeconds),
8947
- MaximumRecordAgeInSeconds: smithy_client_1.expectInt(output.MaximumRecordAgeInSeconds),
8948
- MaximumRetryAttempts: smithy_client_1.expectInt(output.MaximumRetryAttempts),
8949
- ParallelizationFactor: smithy_client_1.expectInt(output.ParallelizationFactor),
8946
+ MaximumBatchingWindowInSeconds: smithy_client_1.expectInt32(output.MaximumBatchingWindowInSeconds),
8947
+ MaximumRecordAgeInSeconds: smithy_client_1.expectInt32(output.MaximumRecordAgeInSeconds),
8948
+ MaximumRetryAttempts: smithy_client_1.expectInt32(output.MaximumRetryAttempts),
8949
+ ParallelizationFactor: smithy_client_1.expectInt32(output.ParallelizationFactor),
8950
8950
  Queues: output.Queues !== undefined && output.Queues !== null
8951
8951
  ? deserializeAws_restJson1Queues(output.Queues, context)
8952
8952
  : undefined,
@@ -8958,14 +8958,14 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
8958
8958
  : undefined,
8959
8959
  StartingPosition: smithy_client_1.expectString(output.StartingPosition),
8960
8960
  StartingPositionTimestamp: output.StartingPositionTimestamp !== undefined && output.StartingPositionTimestamp !== null
8961
- ? new Date(Math.round(output.StartingPositionTimestamp * 1000))
8961
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartingPositionTimestamp)))
8962
8962
  : undefined,
8963
8963
  State: smithy_client_1.expectString(output.State),
8964
8964
  StateTransitionReason: smithy_client_1.expectString(output.StateTransitionReason),
8965
8965
  Topics: output.Topics !== undefined && output.Topics !== null
8966
8966
  ? deserializeAws_restJson1Topics(output.Topics, context)
8967
8967
  : undefined,
8968
- TumblingWindowInSeconds: smithy_client_1.expectInt(output.TumblingWindowInSeconds),
8968
+ TumblingWindowInSeconds: smithy_client_1.expectInt32(output.TumblingWindowInSeconds),
8969
8969
  UUID: smithy_client_1.expectString(output.UUID),
8970
8970
  };
8971
8971
  };
@@ -9016,7 +9016,7 @@ const deserializeAws_restJson1FunctionCodeLocation = (output, context) => {
9016
9016
  const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
9017
9017
  return {
9018
9018
  CodeSha256: smithy_client_1.expectString(output.CodeSha256),
9019
- CodeSize: smithy_client_1.expectInt(output.CodeSize),
9019
+ CodeSize: smithy_client_1.expectLong(output.CodeSize),
9020
9020
  DeadLetterConfig: output.DeadLetterConfig !== undefined && output.DeadLetterConfig !== null
9021
9021
  ? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
9022
9022
  : undefined,
@@ -9042,7 +9042,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
9042
9042
  ? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
9043
9043
  : undefined,
9044
9044
  MasterArn: smithy_client_1.expectString(output.MasterArn),
9045
- MemorySize: smithy_client_1.expectInt(output.MemorySize),
9045
+ MemorySize: smithy_client_1.expectInt32(output.MemorySize),
9046
9046
  PackageType: smithy_client_1.expectString(output.PackageType),
9047
9047
  RevisionId: smithy_client_1.expectString(output.RevisionId),
9048
9048
  Role: smithy_client_1.expectString(output.Role),
@@ -9052,7 +9052,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
9052
9052
  State: smithy_client_1.expectString(output.State),
9053
9053
  StateReason: smithy_client_1.expectString(output.StateReason),
9054
9054
  StateReasonCode: smithy_client_1.expectString(output.StateReasonCode),
9055
- Timeout: smithy_client_1.expectInt(output.Timeout),
9055
+ Timeout: smithy_client_1.expectInt32(output.Timeout),
9056
9056
  TracingConfig: output.TracingConfig !== undefined && output.TracingConfig !== null
9057
9057
  ? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
9058
9058
  : undefined,
@@ -9069,10 +9069,10 @@ const deserializeAws_restJson1FunctionEventInvokeConfig = (output, context) => {
9069
9069
  : undefined,
9070
9070
  FunctionArn: smithy_client_1.expectString(output.FunctionArn),
9071
9071
  LastModified: output.LastModified !== undefined && output.LastModified !== null
9072
- ? new Date(Math.round(output.LastModified * 1000))
9072
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
9073
9073
  : undefined,
9074
- MaximumEventAgeInSeconds: smithy_client_1.expectInt(output.MaximumEventAgeInSeconds),
9075
- MaximumRetryAttempts: smithy_client_1.expectInt(output.MaximumRetryAttempts),
9074
+ MaximumEventAgeInSeconds: smithy_client_1.expectInt32(output.MaximumEventAgeInSeconds),
9075
+ MaximumRetryAttempts: smithy_client_1.expectInt32(output.MaximumRetryAttempts),
9076
9076
  };
9077
9077
  };
9078
9078
  const deserializeAws_restJson1FunctionEventInvokeConfigList = (output, context) => {
@@ -9135,7 +9135,7 @@ const deserializeAws_restJson1ImageConfigResponse = (output, context) => {
9135
9135
  const deserializeAws_restJson1Layer = (output, context) => {
9136
9136
  return {
9137
9137
  Arn: smithy_client_1.expectString(output.Arn),
9138
- CodeSize: smithy_client_1.expectInt(output.CodeSize),
9138
+ CodeSize: smithy_client_1.expectLong(output.CodeSize),
9139
9139
  SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
9140
9140
  SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
9141
9141
  };
@@ -9172,7 +9172,7 @@ const deserializeAws_restJson1LayersReferenceList = (output, context) => {
9172
9172
  const deserializeAws_restJson1LayerVersionContentOutput = (output, context) => {
9173
9173
  return {
9174
9174
  CodeSha256: smithy_client_1.expectString(output.CodeSha256),
9175
- CodeSize: smithy_client_1.expectInt(output.CodeSize),
9175
+ CodeSize: smithy_client_1.expectLong(output.CodeSize),
9176
9176
  Location: smithy_client_1.expectString(output.Location),
9177
9177
  SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
9178
9178
  SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
@@ -9197,7 +9197,7 @@ const deserializeAws_restJson1LayerVersionsListItem = (output, context) => {
9197
9197
  Description: smithy_client_1.expectString(output.Description),
9198
9198
  LayerVersionArn: smithy_client_1.expectString(output.LayerVersionArn),
9199
9199
  LicenseInfo: smithy_client_1.expectString(output.LicenseInfo),
9200
- Version: smithy_client_1.expectInt(output.Version),
9200
+ Version: smithy_client_1.expectLong(output.Version),
9201
9201
  };
9202
9202
  };
9203
9203
  const deserializeAws_restJson1OnFailure = (output, context) => {
@@ -9222,11 +9222,11 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigList = (output, contex
9222
9222
  };
9223
9223
  const deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = (output, context) => {
9224
9224
  return {
9225
- AllocatedProvisionedConcurrentExecutions: smithy_client_1.expectInt(output.AllocatedProvisionedConcurrentExecutions),
9226
- AvailableProvisionedConcurrentExecutions: smithy_client_1.expectInt(output.AvailableProvisionedConcurrentExecutions),
9225
+ AllocatedProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.AllocatedProvisionedConcurrentExecutions),
9226
+ AvailableProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.AvailableProvisionedConcurrentExecutions),
9227
9227
  FunctionArn: smithy_client_1.expectString(output.FunctionArn),
9228
9228
  LastModified: smithy_client_1.expectString(output.LastModified),
9229
- RequestedProvisionedConcurrentExecutions: smithy_client_1.expectInt(output.RequestedProvisionedConcurrentExecutions),
9229
+ RequestedProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.RequestedProvisionedConcurrentExecutions),
9230
9230
  Status: smithy_client_1.expectString(output.Status),
9231
9231
  StatusReason: smithy_client_1.expectString(output.StatusReason),
9232
9232
  };