@aws-sdk/client-sfn 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.
@@ -153,8 +153,12 @@ import {
153
153
  } from "@aws-sdk/protocol-http";
154
154
  import {
155
155
  expectBoolean as __expectBoolean,
156
- expectInt as __expectInt,
156
+ expectInt32 as __expectInt32,
157
+ expectLong as __expectLong,
158
+ expectNonNull as __expectNonNull,
159
+ expectNumber as __expectNumber,
157
160
  expectString as __expectString,
161
+ parseEpochTimestamp as __parseEpochTimestamp,
158
162
  } from "@aws-sdk/smithy-client";
159
163
  import {
160
164
  Endpoint as __Endpoint,
@@ -2796,7 +2800,7 @@ const deserializeAws_json1_0ActivityListItem = (output: any, context: __SerdeCon
2796
2800
  activityArn: __expectString(output.activityArn),
2797
2801
  creationDate:
2798
2802
  output.creationDate !== undefined && output.creationDate !== null
2799
- ? new Date(Math.round(output.creationDate * 1000))
2803
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2800
2804
  : undefined,
2801
2805
  name: __expectString(output.name),
2802
2806
  } as any;
@@ -2807,14 +2811,14 @@ const deserializeAws_json1_0ActivityScheduledEventDetails = (
2807
2811
  context: __SerdeContext
2808
2812
  ): ActivityScheduledEventDetails => {
2809
2813
  return {
2810
- heartbeatInSeconds: __expectInt(output.heartbeatInSeconds),
2814
+ heartbeatInSeconds: __expectLong(output.heartbeatInSeconds),
2811
2815
  input: __expectString(output.input),
2812
2816
  inputDetails:
2813
2817
  output.inputDetails !== undefined && output.inputDetails !== null
2814
2818
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
2815
2819
  : undefined,
2816
2820
  resource: __expectString(output.resource),
2817
- timeoutInSeconds: __expectInt(output.timeoutInSeconds),
2821
+ timeoutInSeconds: __expectLong(output.timeoutInSeconds),
2818
2822
  } as any;
2819
2823
  };
2820
2824
 
@@ -2871,8 +2875,8 @@ const deserializeAws_json1_0ActivityWorkerLimitExceeded = (
2871
2875
 
2872
2876
  const deserializeAws_json1_0BillingDetails = (output: any, context: __SerdeContext): BillingDetails => {
2873
2877
  return {
2874
- billedDurationInMilliseconds: __expectInt(output.billedDurationInMilliseconds),
2875
- billedMemoryUsedInMB: __expectInt(output.billedMemoryUsedInMB),
2878
+ billedDurationInMilliseconds: __expectLong(output.billedDurationInMilliseconds),
2879
+ billedMemoryUsedInMB: __expectLong(output.billedMemoryUsedInMB),
2876
2880
  } as any;
2877
2881
  };
2878
2882
 
@@ -2896,7 +2900,7 @@ const deserializeAws_json1_0CreateActivityOutput = (output: any, context: __Serd
2896
2900
  activityArn: __expectString(output.activityArn),
2897
2901
  creationDate:
2898
2902
  output.creationDate !== undefined && output.creationDate !== null
2899
- ? new Date(Math.round(output.creationDate * 1000))
2903
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2900
2904
  : undefined,
2901
2905
  } as any;
2902
2906
  };
@@ -2908,7 +2912,7 @@ const deserializeAws_json1_0CreateStateMachineOutput = (
2908
2912
  return {
2909
2913
  creationDate:
2910
2914
  output.creationDate !== undefined && output.creationDate !== null
2911
- ? new Date(Math.round(output.creationDate * 1000))
2915
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2912
2916
  : undefined,
2913
2917
  stateMachineArn: __expectString(output.stateMachineArn),
2914
2918
  } as any;
@@ -2930,7 +2934,7 @@ const deserializeAws_json1_0DescribeActivityOutput = (output: any, context: __Se
2930
2934
  activityArn: __expectString(output.activityArn),
2931
2935
  creationDate:
2932
2936
  output.creationDate !== undefined && output.creationDate !== null
2933
- ? new Date(Math.round(output.creationDate * 1000))
2937
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2934
2938
  : undefined,
2935
2939
  name: __expectString(output.name),
2936
2940
  } as any;
@@ -2955,13 +2959,13 @@ const deserializeAws_json1_0DescribeExecutionOutput = (
2955
2959
  : undefined,
2956
2960
  startDate:
2957
2961
  output.startDate !== undefined && output.startDate !== null
2958
- ? new Date(Math.round(output.startDate * 1000))
2962
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
2959
2963
  : undefined,
2960
2964
  stateMachineArn: __expectString(output.stateMachineArn),
2961
2965
  status: __expectString(output.status),
2962
2966
  stopDate:
2963
2967
  output.stopDate !== undefined && output.stopDate !== null
2964
- ? new Date(Math.round(output.stopDate * 1000))
2968
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
2965
2969
  : undefined,
2966
2970
  traceHeader: __expectString(output.traceHeader),
2967
2971
  } as any;
@@ -2986,7 +2990,7 @@ const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (
2986
2990
  : undefined,
2987
2991
  updateDate:
2988
2992
  output.updateDate !== undefined && output.updateDate !== null
2989
- ? new Date(Math.round(output.updateDate * 1000))
2993
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate)))
2990
2994
  : undefined,
2991
2995
  } as any;
2992
2996
  };
@@ -2998,7 +3002,7 @@ const deserializeAws_json1_0DescribeStateMachineOutput = (
2998
3002
  return {
2999
3003
  creationDate:
3000
3004
  output.creationDate !== undefined && output.creationDate !== null
3001
- ? new Date(Math.round(output.creationDate * 1000))
3005
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
3002
3006
  : undefined,
3003
3007
  definition: __expectString(output.definition),
3004
3008
  loggingConfiguration:
@@ -3072,13 +3076,13 @@ const deserializeAws_json1_0ExecutionListItem = (output: any, context: __SerdeCo
3072
3076
  name: __expectString(output.name),
3073
3077
  startDate:
3074
3078
  output.startDate !== undefined && output.startDate !== null
3075
- ? new Date(Math.round(output.startDate * 1000))
3079
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
3076
3080
  : undefined,
3077
3081
  stateMachineArn: __expectString(output.stateMachineArn),
3078
3082
  status: __expectString(output.status),
3079
3083
  stopDate:
3080
3084
  output.stopDate !== undefined && output.stopDate !== null
3081
- ? new Date(Math.round(output.stopDate * 1000))
3085
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
3082
3086
  : undefined,
3083
3087
  } as any;
3084
3088
  };
@@ -3186,7 +3190,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext
3186
3190
  output.executionTimedOutEventDetails !== undefined && output.executionTimedOutEventDetails !== null
3187
3191
  ? deserializeAws_json1_0ExecutionTimedOutEventDetails(output.executionTimedOutEventDetails, context)
3188
3192
  : undefined,
3189
- id: __expectInt(output.id),
3193
+ id: __expectLong(output.id),
3190
3194
  lambdaFunctionFailedEventDetails:
3191
3195
  output.lambdaFunctionFailedEventDetails !== undefined && output.lambdaFunctionFailedEventDetails !== null
3192
3196
  ? deserializeAws_json1_0LambdaFunctionFailedEventDetails(output.lambdaFunctionFailedEventDetails, context)
@@ -3239,7 +3243,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext
3239
3243
  output.mapStateStartedEventDetails !== undefined && output.mapStateStartedEventDetails !== null
3240
3244
  ? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
3241
3245
  : undefined,
3242
- previousEventId: __expectInt(output.previousEventId),
3246
+ previousEventId: __expectLong(output.previousEventId),
3243
3247
  stateEnteredEventDetails:
3244
3248
  output.stateEnteredEventDetails !== undefined && output.stateEnteredEventDetails !== null
3245
3249
  ? deserializeAws_json1_0StateEnteredEventDetails(output.stateEnteredEventDetails, context)
@@ -3282,7 +3286,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext
3282
3286
  : undefined,
3283
3287
  timestamp:
3284
3288
  output.timestamp !== undefined && output.timestamp !== null
3285
- ? new Date(Math.round(output.timestamp * 1000))
3289
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
3286
3290
  : undefined,
3287
3291
  type: __expectString(output.type),
3288
3292
  } as any;
@@ -3383,7 +3387,7 @@ const deserializeAws_json1_0LambdaFunctionScheduledEventDetails = (
3383
3387
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
3384
3388
  : undefined,
3385
3389
  resource: __expectString(output.resource),
3386
- timeoutInSeconds: __expectInt(output.timeoutInSeconds),
3390
+ timeoutInSeconds: __expectLong(output.timeoutInSeconds),
3387
3391
  } as any;
3388
3392
  };
3389
3393
 
@@ -3511,7 +3515,7 @@ const deserializeAws_json1_0MapIterationEventDetails = (
3511
3515
  context: __SerdeContext
3512
3516
  ): MapIterationEventDetails => {
3513
3517
  return {
3514
- index: __expectInt(output.index),
3518
+ index: __expectInt32(output.index),
3515
3519
  name: __expectString(output.name),
3516
3520
  } as any;
3517
3521
  };
@@ -3521,7 +3525,7 @@ const deserializeAws_json1_0MapStateStartedEventDetails = (
3521
3525
  context: __SerdeContext
3522
3526
  ): MapStateStartedEventDetails => {
3523
3527
  return {
3524
- length: __expectInt(output.length),
3528
+ length: __expectInt32(output.length),
3525
3529
  } as any;
3526
3530
  };
3527
3531
 
@@ -3561,7 +3565,7 @@ const deserializeAws_json1_0StartExecutionOutput = (output: any, context: __Serd
3561
3565
  executionArn: __expectString(output.executionArn),
3562
3566
  startDate:
3563
3567
  output.startDate !== undefined && output.startDate !== null
3564
- ? new Date(Math.round(output.startDate * 1000))
3568
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
3565
3569
  : undefined,
3566
3570
  } as any;
3567
3571
  };
@@ -3591,13 +3595,13 @@ const deserializeAws_json1_0StartSyncExecutionOutput = (
3591
3595
  : undefined,
3592
3596
  startDate:
3593
3597
  output.startDate !== undefined && output.startDate !== null
3594
- ? new Date(Math.round(output.startDate * 1000))
3598
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
3595
3599
  : undefined,
3596
3600
  stateMachineArn: __expectString(output.stateMachineArn),
3597
3601
  status: __expectString(output.status),
3598
3602
  stopDate:
3599
3603
  output.stopDate !== undefined && output.stopDate !== null
3600
- ? new Date(Math.round(output.stopDate * 1000))
3604
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
3601
3605
  : undefined,
3602
3606
  traceHeader: __expectString(output.traceHeader),
3603
3607
  } as any;
@@ -3679,7 +3683,7 @@ const deserializeAws_json1_0StateMachineListItem = (output: any, context: __Serd
3679
3683
  return {
3680
3684
  creationDate:
3681
3685
  output.creationDate !== undefined && output.creationDate !== null
3682
- ? new Date(Math.round(output.creationDate * 1000))
3686
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
3683
3687
  : undefined,
3684
3688
  name: __expectString(output.name),
3685
3689
  stateMachineArn: __expectString(output.stateMachineArn),
@@ -3700,7 +3704,7 @@ const deserializeAws_json1_0StopExecutionOutput = (output: any, context: __Serde
3700
3704
  return {
3701
3705
  stopDate:
3702
3706
  output.stopDate !== undefined && output.stopDate !== null
3703
- ? new Date(Math.round(output.stopDate * 1000))
3707
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
3704
3708
  : undefined,
3705
3709
  } as any;
3706
3710
  };
@@ -3747,12 +3751,12 @@ const deserializeAws_json1_0TaskScheduledEventDetails = (
3747
3751
  context: __SerdeContext
3748
3752
  ): TaskScheduledEventDetails => {
3749
3753
  return {
3750
- heartbeatInSeconds: __expectInt(output.heartbeatInSeconds),
3754
+ heartbeatInSeconds: __expectLong(output.heartbeatInSeconds),
3751
3755
  parameters: __expectString(output.parameters),
3752
3756
  region: __expectString(output.region),
3753
3757
  resource: __expectString(output.resource),
3754
3758
  resourceType: __expectString(output.resourceType),
3755
- timeoutInSeconds: __expectInt(output.timeoutInSeconds),
3759
+ timeoutInSeconds: __expectLong(output.timeoutInSeconds),
3756
3760
  } as any;
3757
3761
  };
3758
3762
 
@@ -3862,7 +3866,7 @@ const deserializeAws_json1_0UpdateStateMachineOutput = (
3862
3866
  return {
3863
3867
  updateDate:
3864
3868
  output.updateDate !== undefined && output.updateDate !== null
3865
- ? new Date(Math.round(output.updateDate * 1000))
3869
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate)))
3866
3870
  : undefined,
3867
3871
  } as any;
3868
3872
  };