@aws-sdk/client-sfn 3.30.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/SFNClient.js +13 -13
  3. package/dist/cjs/SFNClient.js.map +1 -1
  4. package/dist/cjs/commands/CreateActivityCommand.js +3 -3
  5. package/dist/cjs/commands/CreateActivityCommand.js.map +1 -1
  6. package/dist/cjs/commands/CreateStateMachineCommand.js +3 -3
  7. package/dist/cjs/commands/CreateStateMachineCommand.js.map +1 -1
  8. package/dist/cjs/commands/DeleteActivityCommand.js +3 -3
  9. package/dist/cjs/commands/DeleteActivityCommand.js.map +1 -1
  10. package/dist/cjs/commands/DeleteStateMachineCommand.js +3 -3
  11. package/dist/cjs/commands/DeleteStateMachineCommand.js.map +1 -1
  12. package/dist/cjs/commands/DescribeActivityCommand.js +3 -3
  13. package/dist/cjs/commands/DescribeActivityCommand.js.map +1 -1
  14. package/dist/cjs/commands/DescribeExecutionCommand.js +3 -3
  15. package/dist/cjs/commands/DescribeExecutionCommand.js.map +1 -1
  16. package/dist/cjs/commands/DescribeStateMachineCommand.js +3 -3
  17. package/dist/cjs/commands/DescribeStateMachineCommand.js.map +1 -1
  18. package/dist/cjs/commands/DescribeStateMachineForExecutionCommand.js +3 -3
  19. package/dist/cjs/commands/DescribeStateMachineForExecutionCommand.js.map +1 -1
  20. package/dist/cjs/commands/GetActivityTaskCommand.js +3 -3
  21. package/dist/cjs/commands/GetActivityTaskCommand.js.map +1 -1
  22. package/dist/cjs/commands/GetExecutionHistoryCommand.js +3 -3
  23. package/dist/cjs/commands/GetExecutionHistoryCommand.js.map +1 -1
  24. package/dist/cjs/commands/ListActivitiesCommand.js +3 -3
  25. package/dist/cjs/commands/ListActivitiesCommand.js.map +1 -1
  26. package/dist/cjs/commands/ListExecutionsCommand.js +3 -3
  27. package/dist/cjs/commands/ListExecutionsCommand.js.map +1 -1
  28. package/dist/cjs/commands/ListStateMachinesCommand.js +3 -3
  29. package/dist/cjs/commands/ListStateMachinesCommand.js.map +1 -1
  30. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  31. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  32. package/dist/cjs/commands/SendTaskFailureCommand.js +3 -3
  33. package/dist/cjs/commands/SendTaskFailureCommand.js.map +1 -1
  34. package/dist/cjs/commands/SendTaskHeartbeatCommand.js +3 -3
  35. package/dist/cjs/commands/SendTaskHeartbeatCommand.js.map +1 -1
  36. package/dist/cjs/commands/SendTaskSuccessCommand.js +3 -3
  37. package/dist/cjs/commands/SendTaskSuccessCommand.js.map +1 -1
  38. package/dist/cjs/commands/StartExecutionCommand.js +3 -3
  39. package/dist/cjs/commands/StartExecutionCommand.js.map +1 -1
  40. package/dist/cjs/commands/StartSyncExecutionCommand.js +3 -3
  41. package/dist/cjs/commands/StartSyncExecutionCommand.js.map +1 -1
  42. package/dist/cjs/commands/StopExecutionCommand.js +3 -3
  43. package/dist/cjs/commands/StopExecutionCommand.js.map +1 -1
  44. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  45. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  46. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  47. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  48. package/dist/cjs/commands/UpdateStateMachineCommand.js +3 -3
  49. package/dist/cjs/commands/UpdateStateMachineCommand.js.map +1 -1
  50. package/dist/cjs/endpoints.js +1 -1
  51. package/dist/cjs/endpoints.js.map +1 -1
  52. package/dist/cjs/index.js +31 -31
  53. package/dist/cjs/index.js.map +1 -1
  54. package/dist/cjs/models/index.js +1 -1
  55. package/dist/cjs/models/index.js.map +1 -1
  56. package/dist/cjs/package.json +39 -39
  57. package/dist/cjs/protocols/Aws_json1_0.js +173 -173
  58. package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
  59. package/dist/cjs/runtimeConfig.browser.js +4 -4
  60. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  61. package/dist/cjs/runtimeConfig.js +8 -8
  62. package/dist/cjs/runtimeConfig.js.map +1 -1
  63. package/dist/cjs/runtimeConfig.native.js +1 -1
  64. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  65. package/dist/es/SFN.js +1 -19
  66. package/dist/es/SFN.js.map +1 -1
  67. package/dist/es/SFNClient.js +1 -24
  68. package/dist/es/SFNClient.js.map +1 -1
  69. package/dist/es/commands/CreateActivityCommand.js +2 -43
  70. package/dist/es/commands/CreateActivityCommand.js.map +1 -1
  71. package/dist/es/commands/CreateStateMachineCommand.js +2 -45
  72. package/dist/es/commands/CreateStateMachineCommand.js.map +1 -1
  73. package/dist/es/commands/DeleteActivityCommand.js +2 -27
  74. package/dist/es/commands/DeleteActivityCommand.js.map +1 -1
  75. package/dist/es/commands/DeleteStateMachineCommand.js +2 -33
  76. package/dist/es/commands/DeleteStateMachineCommand.js.map +1 -1
  77. package/dist/es/commands/DescribeActivityCommand.js +2 -30
  78. package/dist/es/commands/DescribeActivityCommand.js.map +1 -1
  79. package/dist/es/commands/DescribeExecutionCommand.js +2 -31
  80. package/dist/es/commands/DescribeExecutionCommand.js.map +1 -1
  81. package/dist/es/commands/DescribeStateMachineCommand.js +2 -30
  82. package/dist/es/commands/DescribeStateMachineCommand.js.map +1 -1
  83. package/dist/es/commands/DescribeStateMachineForExecutionCommand.js +2 -31
  84. package/dist/es/commands/DescribeStateMachineForExecutionCommand.js.map +1 -1
  85. package/dist/es/commands/GetActivityTaskCommand.js +2 -39
  86. package/dist/es/commands/GetActivityTaskCommand.js.map +1 -1
  87. package/dist/es/commands/GetExecutionHistoryCommand.js +2 -32
  88. package/dist/es/commands/GetExecutionHistoryCommand.js.map +1 -1
  89. package/dist/es/commands/ListActivitiesCommand.js +2 -32
  90. package/dist/es/commands/ListActivitiesCommand.js.map +1 -1
  91. package/dist/es/commands/ListExecutionsCommand.js +2 -34
  92. package/dist/es/commands/ListExecutionsCommand.js.map +1 -1
  93. package/dist/es/commands/ListStateMachinesCommand.js +2 -32
  94. package/dist/es/commands/ListStateMachinesCommand.js.map +1 -1
  95. package/dist/es/commands/ListTagsForResourceCommand.js +2 -28
  96. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  97. package/dist/es/commands/SendTaskFailureCommand.js +2 -28
  98. package/dist/es/commands/SendTaskFailureCommand.js.map +1 -1
  99. package/dist/es/commands/SendTaskHeartbeatCommand.js +2 -41
  100. package/dist/es/commands/SendTaskHeartbeatCommand.js.map +1 -1
  101. package/dist/es/commands/SendTaskSuccessCommand.js +2 -29
  102. package/dist/es/commands/SendTaskSuccessCommand.js.map +1 -1
  103. package/dist/es/commands/StartExecutionCommand.js +2 -35
  104. package/dist/es/commands/StartExecutionCommand.js.map +1 -1
  105. package/dist/es/commands/StartSyncExecutionCommand.js +2 -27
  106. package/dist/es/commands/StartSyncExecutionCommand.js.map +1 -1
  107. package/dist/es/commands/StopExecutionCommand.js +2 -28
  108. package/dist/es/commands/StopExecutionCommand.js.map +1 -1
  109. package/dist/es/commands/TagResourceCommand.js +2 -32
  110. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  111. package/dist/es/commands/UntagResourceCommand.js +2 -27
  112. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  113. package/dist/es/commands/UpdateStateMachineCommand.js +2 -37
  114. package/dist/es/commands/UpdateStateMachineCommand.js.map +1 -1
  115. package/dist/es/endpoints.js +1 -1
  116. package/dist/es/endpoints.js.map +1 -1
  117. package/dist/es/models/models_0.js +0 -333
  118. package/dist/es/models/models_0.js.map +1 -1
  119. package/dist/es/package.json +39 -39
  120. package/dist/es/pagination/GetExecutionHistoryPaginator.js +16 -28
  121. package/dist/es/pagination/GetExecutionHistoryPaginator.js.map +1 -1
  122. package/dist/es/pagination/ListActivitiesPaginator.js +16 -28
  123. package/dist/es/pagination/ListActivitiesPaginator.js.map +1 -1
  124. package/dist/es/pagination/ListExecutionsPaginator.js +16 -28
  125. package/dist/es/pagination/ListExecutionsPaginator.js.map +1 -1
  126. package/dist/es/pagination/ListStateMachinesPaginator.js +16 -28
  127. package/dist/es/pagination/ListStateMachinesPaginator.js.map +1 -1
  128. package/dist/es/protocols/Aws_json1_0.js +502 -507
  129. package/dist/es/protocols/Aws_json1_0.js.map +1 -1
  130. package/dist/es/runtimeConfig.browser.js +0 -3
  131. package/dist/es/runtimeConfig.browser.js.map +1 -1
  132. package/dist/es/runtimeConfig.js +0 -3
  133. package/dist/es/runtimeConfig.js.map +1 -1
  134. package/dist/es/runtimeConfig.native.js +0 -3
  135. package/dist/es/runtimeConfig.native.js.map +1 -1
  136. package/dist/es/runtimeConfig.shared.js +0 -3
  137. package/dist/es/runtimeConfig.shared.js.map +1 -1
  138. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  139. package/dist/types/runtimeConfig.d.ts +1 -0
  140. package/dist/types/runtimeConfig.native.d.ts +1 -0
  141. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  142. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  143. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  144. package/package.json +39 -39
  145. package/protocols/Aws_json1_0.ts +20 -17
  146. package/tsconfig.es.json +0 -2
  147. package/tsconfig.json +3 -5
  148. package/tsconfig.types.json +8 -0
@@ -193,7 +193,7 @@ const serializeAws_json1_0StartSyncExecutionCommand = async (input, context) =>
193
193
  let { hostname: resolvedHostname } = await context.endpoint();
194
194
  if (context.disableHostPrefix !== true) {
195
195
  resolvedHostname = "sync-" + resolvedHostname;
196
- if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
196
+ if (!protocol_http_1.isValidHostname(resolvedHostname)) {
197
197
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
198
198
  }
199
199
  }
@@ -2229,18 +2229,18 @@ const serializeAws_json1_0UpdateStateMachineInput = (input, context) => {
2229
2229
  };
2230
2230
  const deserializeAws_json1_0ActivityDoesNotExist = (output, context) => {
2231
2231
  return {
2232
- message: (0, smithy_client_1.expectString)(output.message),
2232
+ message: smithy_client_1.expectString(output.message),
2233
2233
  };
2234
2234
  };
2235
2235
  const deserializeAws_json1_0ActivityFailedEventDetails = (output, context) => {
2236
2236
  return {
2237
- cause: (0, smithy_client_1.expectString)(output.cause),
2238
- error: (0, smithy_client_1.expectString)(output.error),
2237
+ cause: smithy_client_1.expectString(output.cause),
2238
+ error: smithy_client_1.expectString(output.error),
2239
2239
  };
2240
2240
  };
2241
2241
  const deserializeAws_json1_0ActivityLimitExceeded = (output, context) => {
2242
2242
  return {
2243
- message: (0, smithy_client_1.expectString)(output.message),
2243
+ message: smithy_client_1.expectString(output.message),
2244
2244
  };
2245
2245
  };
2246
2246
  const deserializeAws_json1_0ActivityList = (output, context) => {
@@ -2255,38 +2255,38 @@ const deserializeAws_json1_0ActivityList = (output, context) => {
2255
2255
  };
2256
2256
  const deserializeAws_json1_0ActivityListItem = (output, context) => {
2257
2257
  return {
2258
- activityArn: (0, smithy_client_1.expectString)(output.activityArn),
2258
+ activityArn: smithy_client_1.expectString(output.activityArn),
2259
2259
  creationDate: output.creationDate !== undefined && output.creationDate !== null
2260
- ? new Date(Math.round(output.creationDate * 1000))
2260
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
2261
2261
  : undefined,
2262
- name: (0, smithy_client_1.expectString)(output.name),
2262
+ name: smithy_client_1.expectString(output.name),
2263
2263
  };
2264
2264
  };
2265
2265
  const deserializeAws_json1_0ActivityScheduledEventDetails = (output, context) => {
2266
2266
  return {
2267
- heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
2268
- input: (0, smithy_client_1.expectString)(output.input),
2267
+ heartbeatInSeconds: smithy_client_1.expectLong(output.heartbeatInSeconds),
2268
+ input: smithy_client_1.expectString(output.input),
2269
2269
  inputDetails: output.inputDetails !== undefined && output.inputDetails !== null
2270
2270
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
2271
2271
  : undefined,
2272
- resource: (0, smithy_client_1.expectString)(output.resource),
2273
- timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
2272
+ resource: smithy_client_1.expectString(output.resource),
2273
+ timeoutInSeconds: smithy_client_1.expectLong(output.timeoutInSeconds),
2274
2274
  };
2275
2275
  };
2276
2276
  const deserializeAws_json1_0ActivityScheduleFailedEventDetails = (output, context) => {
2277
2277
  return {
2278
- cause: (0, smithy_client_1.expectString)(output.cause),
2279
- error: (0, smithy_client_1.expectString)(output.error),
2278
+ cause: smithy_client_1.expectString(output.cause),
2279
+ error: smithy_client_1.expectString(output.error),
2280
2280
  };
2281
2281
  };
2282
2282
  const deserializeAws_json1_0ActivityStartedEventDetails = (output, context) => {
2283
2283
  return {
2284
- workerName: (0, smithy_client_1.expectString)(output.workerName),
2284
+ workerName: smithy_client_1.expectString(output.workerName),
2285
2285
  };
2286
2286
  };
2287
2287
  const deserializeAws_json1_0ActivitySucceededEventDetails = (output, context) => {
2288
2288
  return {
2289
- output: (0, smithy_client_1.expectString)(output.output),
2289
+ output: smithy_client_1.expectString(output.output),
2290
2290
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2291
2291
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
2292
2292
  : undefined,
@@ -2294,45 +2294,45 @@ const deserializeAws_json1_0ActivitySucceededEventDetails = (output, context) =>
2294
2294
  };
2295
2295
  const deserializeAws_json1_0ActivityTimedOutEventDetails = (output, context) => {
2296
2296
  return {
2297
- cause: (0, smithy_client_1.expectString)(output.cause),
2298
- error: (0, smithy_client_1.expectString)(output.error),
2297
+ cause: smithy_client_1.expectString(output.cause),
2298
+ error: smithy_client_1.expectString(output.error),
2299
2299
  };
2300
2300
  };
2301
2301
  const deserializeAws_json1_0ActivityWorkerLimitExceeded = (output, context) => {
2302
2302
  return {
2303
- message: (0, smithy_client_1.expectString)(output.message),
2303
+ message: smithy_client_1.expectString(output.message),
2304
2304
  };
2305
2305
  };
2306
2306
  const deserializeAws_json1_0BillingDetails = (output, context) => {
2307
2307
  return {
2308
- billedDurationInMilliseconds: (0, smithy_client_1.expectLong)(output.billedDurationInMilliseconds),
2309
- billedMemoryUsedInMB: (0, smithy_client_1.expectLong)(output.billedMemoryUsedInMB),
2308
+ billedDurationInMilliseconds: smithy_client_1.expectLong(output.billedDurationInMilliseconds),
2309
+ billedMemoryUsedInMB: smithy_client_1.expectLong(output.billedMemoryUsedInMB),
2310
2310
  };
2311
2311
  };
2312
2312
  const deserializeAws_json1_0CloudWatchEventsExecutionDataDetails = (output, context) => {
2313
2313
  return {
2314
- included: (0, smithy_client_1.expectBoolean)(output.included),
2314
+ included: smithy_client_1.expectBoolean(output.included),
2315
2315
  };
2316
2316
  };
2317
2317
  const deserializeAws_json1_0CloudWatchLogsLogGroup = (output, context) => {
2318
2318
  return {
2319
- logGroupArn: (0, smithy_client_1.expectString)(output.logGroupArn),
2319
+ logGroupArn: smithy_client_1.expectString(output.logGroupArn),
2320
2320
  };
2321
2321
  };
2322
2322
  const deserializeAws_json1_0CreateActivityOutput = (output, context) => {
2323
2323
  return {
2324
- activityArn: (0, smithy_client_1.expectString)(output.activityArn),
2324
+ activityArn: smithy_client_1.expectString(output.activityArn),
2325
2325
  creationDate: output.creationDate !== undefined && output.creationDate !== null
2326
- ? new Date(Math.round(output.creationDate * 1000))
2326
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
2327
2327
  : undefined,
2328
2328
  };
2329
2329
  };
2330
2330
  const deserializeAws_json1_0CreateStateMachineOutput = (output, context) => {
2331
2331
  return {
2332
2332
  creationDate: output.creationDate !== undefined && output.creationDate !== null
2333
- ? new Date(Math.round(output.creationDate * 1000))
2333
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
2334
2334
  : undefined,
2335
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2335
+ stateMachineArn: smithy_client_1.expectString(output.stateMachineArn),
2336
2336
  };
2337
2337
  };
2338
2338
  const deserializeAws_json1_0DeleteActivityOutput = (output, context) => {
@@ -2343,97 +2343,97 @@ const deserializeAws_json1_0DeleteStateMachineOutput = (output, context) => {
2343
2343
  };
2344
2344
  const deserializeAws_json1_0DescribeActivityOutput = (output, context) => {
2345
2345
  return {
2346
- activityArn: (0, smithy_client_1.expectString)(output.activityArn),
2346
+ activityArn: smithy_client_1.expectString(output.activityArn),
2347
2347
  creationDate: output.creationDate !== undefined && output.creationDate !== null
2348
- ? new Date(Math.round(output.creationDate * 1000))
2348
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
2349
2349
  : undefined,
2350
- name: (0, smithy_client_1.expectString)(output.name),
2350
+ name: smithy_client_1.expectString(output.name),
2351
2351
  };
2352
2352
  };
2353
2353
  const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
2354
2354
  return {
2355
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
2356
- input: (0, smithy_client_1.expectString)(output.input),
2355
+ executionArn: smithy_client_1.expectString(output.executionArn),
2356
+ input: smithy_client_1.expectString(output.input),
2357
2357
  inputDetails: output.inputDetails !== undefined && output.inputDetails !== null
2358
2358
  ? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
2359
2359
  : undefined,
2360
- name: (0, smithy_client_1.expectString)(output.name),
2361
- output: (0, smithy_client_1.expectString)(output.output),
2360
+ name: smithy_client_1.expectString(output.name),
2361
+ output: smithy_client_1.expectString(output.output),
2362
2362
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2363
2363
  ? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
2364
2364
  : undefined,
2365
2365
  startDate: output.startDate !== undefined && output.startDate !== null
2366
- ? new Date(Math.round(output.startDate * 1000))
2366
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startDate)))
2367
2367
  : undefined,
2368
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2369
- status: (0, smithy_client_1.expectString)(output.status),
2368
+ stateMachineArn: smithy_client_1.expectString(output.stateMachineArn),
2369
+ status: smithy_client_1.expectString(output.status),
2370
2370
  stopDate: output.stopDate !== undefined && output.stopDate !== null
2371
- ? new Date(Math.round(output.stopDate * 1000))
2371
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.stopDate)))
2372
2372
  : undefined,
2373
- traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
2373
+ traceHeader: smithy_client_1.expectString(output.traceHeader),
2374
2374
  };
2375
2375
  };
2376
2376
  const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (output, context) => {
2377
2377
  return {
2378
- definition: (0, smithy_client_1.expectString)(output.definition),
2378
+ definition: smithy_client_1.expectString(output.definition),
2379
2379
  loggingConfiguration: output.loggingConfiguration !== undefined && output.loggingConfiguration !== null
2380
2380
  ? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
2381
2381
  : undefined,
2382
- name: (0, smithy_client_1.expectString)(output.name),
2383
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2384
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2382
+ name: smithy_client_1.expectString(output.name),
2383
+ roleArn: smithy_client_1.expectString(output.roleArn),
2384
+ stateMachineArn: smithy_client_1.expectString(output.stateMachineArn),
2385
2385
  tracingConfiguration: output.tracingConfiguration !== undefined && output.tracingConfiguration !== null
2386
2386
  ? deserializeAws_json1_0TracingConfiguration(output.tracingConfiguration, context)
2387
2387
  : undefined,
2388
2388
  updateDate: output.updateDate !== undefined && output.updateDate !== null
2389
- ? new Date(Math.round(output.updateDate * 1000))
2389
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updateDate)))
2390
2390
  : undefined,
2391
2391
  };
2392
2392
  };
2393
2393
  const deserializeAws_json1_0DescribeStateMachineOutput = (output, context) => {
2394
2394
  return {
2395
2395
  creationDate: output.creationDate !== undefined && output.creationDate !== null
2396
- ? new Date(Math.round(output.creationDate * 1000))
2396
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
2397
2397
  : undefined,
2398
- definition: (0, smithy_client_1.expectString)(output.definition),
2398
+ definition: smithy_client_1.expectString(output.definition),
2399
2399
  loggingConfiguration: output.loggingConfiguration !== undefined && output.loggingConfiguration !== null
2400
2400
  ? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
2401
2401
  : undefined,
2402
- name: (0, smithy_client_1.expectString)(output.name),
2403
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2404
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2405
- status: (0, smithy_client_1.expectString)(output.status),
2402
+ name: smithy_client_1.expectString(output.name),
2403
+ roleArn: smithy_client_1.expectString(output.roleArn),
2404
+ stateMachineArn: smithy_client_1.expectString(output.stateMachineArn),
2405
+ status: smithy_client_1.expectString(output.status),
2406
2406
  tracingConfiguration: output.tracingConfiguration !== undefined && output.tracingConfiguration !== null
2407
2407
  ? deserializeAws_json1_0TracingConfiguration(output.tracingConfiguration, context)
2408
2408
  : undefined,
2409
- type: (0, smithy_client_1.expectString)(output.type),
2409
+ type: smithy_client_1.expectString(output.type),
2410
2410
  };
2411
2411
  };
2412
2412
  const deserializeAws_json1_0ExecutionAbortedEventDetails = (output, context) => {
2413
2413
  return {
2414
- cause: (0, smithy_client_1.expectString)(output.cause),
2415
- error: (0, smithy_client_1.expectString)(output.error),
2414
+ cause: smithy_client_1.expectString(output.cause),
2415
+ error: smithy_client_1.expectString(output.error),
2416
2416
  };
2417
2417
  };
2418
2418
  const deserializeAws_json1_0ExecutionAlreadyExists = (output, context) => {
2419
2419
  return {
2420
- message: (0, smithy_client_1.expectString)(output.message),
2420
+ message: smithy_client_1.expectString(output.message),
2421
2421
  };
2422
2422
  };
2423
2423
  const deserializeAws_json1_0ExecutionDoesNotExist = (output, context) => {
2424
2424
  return {
2425
- message: (0, smithy_client_1.expectString)(output.message),
2425
+ message: smithy_client_1.expectString(output.message),
2426
2426
  };
2427
2427
  };
2428
2428
  const deserializeAws_json1_0ExecutionFailedEventDetails = (output, context) => {
2429
2429
  return {
2430
- cause: (0, smithy_client_1.expectString)(output.cause),
2431
- error: (0, smithy_client_1.expectString)(output.error),
2430
+ cause: smithy_client_1.expectString(output.cause),
2431
+ error: smithy_client_1.expectString(output.error),
2432
2432
  };
2433
2433
  };
2434
2434
  const deserializeAws_json1_0ExecutionLimitExceeded = (output, context) => {
2435
2435
  return {
2436
- message: (0, smithy_client_1.expectString)(output.message),
2436
+ message: smithy_client_1.expectString(output.message),
2437
2437
  };
2438
2438
  };
2439
2439
  const deserializeAws_json1_0ExecutionList = (output, context) => {
@@ -2448,30 +2448,30 @@ const deserializeAws_json1_0ExecutionList = (output, context) => {
2448
2448
  };
2449
2449
  const deserializeAws_json1_0ExecutionListItem = (output, context) => {
2450
2450
  return {
2451
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
2452
- name: (0, smithy_client_1.expectString)(output.name),
2451
+ executionArn: smithy_client_1.expectString(output.executionArn),
2452
+ name: smithy_client_1.expectString(output.name),
2453
2453
  startDate: output.startDate !== undefined && output.startDate !== null
2454
- ? new Date(Math.round(output.startDate * 1000))
2454
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startDate)))
2455
2455
  : undefined,
2456
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2457
- status: (0, smithy_client_1.expectString)(output.status),
2456
+ stateMachineArn: smithy_client_1.expectString(output.stateMachineArn),
2457
+ status: smithy_client_1.expectString(output.status),
2458
2458
  stopDate: output.stopDate !== undefined && output.stopDate !== null
2459
- ? new Date(Math.round(output.stopDate * 1000))
2459
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.stopDate)))
2460
2460
  : undefined,
2461
2461
  };
2462
2462
  };
2463
2463
  const deserializeAws_json1_0ExecutionStartedEventDetails = (output, context) => {
2464
2464
  return {
2465
- input: (0, smithy_client_1.expectString)(output.input),
2465
+ input: smithy_client_1.expectString(output.input),
2466
2466
  inputDetails: output.inputDetails !== undefined && output.inputDetails !== null
2467
2467
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
2468
2468
  : undefined,
2469
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2469
+ roleArn: smithy_client_1.expectString(output.roleArn),
2470
2470
  };
2471
2471
  };
2472
2472
  const deserializeAws_json1_0ExecutionSucceededEventDetails = (output, context) => {
2473
2473
  return {
2474
- output: (0, smithy_client_1.expectString)(output.output),
2474
+ output: smithy_client_1.expectString(output.output),
2475
2475
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2476
2476
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
2477
2477
  : undefined,
@@ -2479,14 +2479,14 @@ const deserializeAws_json1_0ExecutionSucceededEventDetails = (output, context) =
2479
2479
  };
2480
2480
  const deserializeAws_json1_0ExecutionTimedOutEventDetails = (output, context) => {
2481
2481
  return {
2482
- cause: (0, smithy_client_1.expectString)(output.cause),
2483
- error: (0, smithy_client_1.expectString)(output.error),
2482
+ cause: smithy_client_1.expectString(output.cause),
2483
+ error: smithy_client_1.expectString(output.error),
2484
2484
  };
2485
2485
  };
2486
2486
  const deserializeAws_json1_0GetActivityTaskOutput = (output, context) => {
2487
2487
  return {
2488
- input: (0, smithy_client_1.expectString)(output.input),
2489
- taskToken: (0, smithy_client_1.expectString)(output.taskToken),
2488
+ input: smithy_client_1.expectString(output.input),
2489
+ taskToken: smithy_client_1.expectString(output.taskToken),
2490
2490
  };
2491
2491
  };
2492
2492
  const deserializeAws_json1_0GetExecutionHistoryOutput = (output, context) => {
@@ -2494,7 +2494,7 @@ const deserializeAws_json1_0GetExecutionHistoryOutput = (output, context) => {
2494
2494
  events: output.events !== undefined && output.events !== null
2495
2495
  ? deserializeAws_json1_0HistoryEventList(output.events, context)
2496
2496
  : undefined,
2497
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2497
+ nextToken: smithy_client_1.expectString(output.nextToken),
2498
2498
  };
2499
2499
  };
2500
2500
  const deserializeAws_json1_0HistoryEvent = (output, context) => {
@@ -2532,7 +2532,7 @@ const deserializeAws_json1_0HistoryEvent = (output, context) => {
2532
2532
  executionTimedOutEventDetails: output.executionTimedOutEventDetails !== undefined && output.executionTimedOutEventDetails !== null
2533
2533
  ? deserializeAws_json1_0ExecutionTimedOutEventDetails(output.executionTimedOutEventDetails, context)
2534
2534
  : undefined,
2535
- id: (0, smithy_client_1.expectLong)(output.id),
2535
+ id: smithy_client_1.expectLong(output.id),
2536
2536
  lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails !== undefined && output.lambdaFunctionFailedEventDetails !== null
2537
2537
  ? deserializeAws_json1_0LambdaFunctionFailedEventDetails(output.lambdaFunctionFailedEventDetails, context)
2538
2538
  : undefined,
@@ -2568,7 +2568,7 @@ const deserializeAws_json1_0HistoryEvent = (output, context) => {
2568
2568
  mapStateStartedEventDetails: output.mapStateStartedEventDetails !== undefined && output.mapStateStartedEventDetails !== null
2569
2569
  ? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
2570
2570
  : undefined,
2571
- previousEventId: (0, smithy_client_1.expectLong)(output.previousEventId),
2571
+ previousEventId: smithy_client_1.expectLong(output.previousEventId),
2572
2572
  stateEnteredEventDetails: output.stateEnteredEventDetails !== undefined && output.stateEnteredEventDetails !== null
2573
2573
  ? deserializeAws_json1_0StateEnteredEventDetails(output.stateEnteredEventDetails, context)
2574
2574
  : undefined,
@@ -2600,14 +2600,14 @@ const deserializeAws_json1_0HistoryEvent = (output, context) => {
2600
2600
  ? deserializeAws_json1_0TaskTimedOutEventDetails(output.taskTimedOutEventDetails, context)
2601
2601
  : undefined,
2602
2602
  timestamp: output.timestamp !== undefined && output.timestamp !== null
2603
- ? new Date(Math.round(output.timestamp * 1000))
2603
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.timestamp)))
2604
2604
  : undefined,
2605
- type: (0, smithy_client_1.expectString)(output.type),
2605
+ type: smithy_client_1.expectString(output.type),
2606
2606
  };
2607
2607
  };
2608
2608
  const deserializeAws_json1_0HistoryEventExecutionDataDetails = (output, context) => {
2609
2609
  return {
2610
- truncated: (0, smithy_client_1.expectBoolean)(output.truncated),
2610
+ truncated: smithy_client_1.expectBoolean(output.truncated),
2611
2611
  };
2612
2612
  };
2613
2613
  const deserializeAws_json1_0HistoryEventList = (output, context) => {
@@ -2622,75 +2622,75 @@ const deserializeAws_json1_0HistoryEventList = (output, context) => {
2622
2622
  };
2623
2623
  const deserializeAws_json1_0InvalidArn = (output, context) => {
2624
2624
  return {
2625
- message: (0, smithy_client_1.expectString)(output.message),
2625
+ message: smithy_client_1.expectString(output.message),
2626
2626
  };
2627
2627
  };
2628
2628
  const deserializeAws_json1_0InvalidDefinition = (output, context) => {
2629
2629
  return {
2630
- message: (0, smithy_client_1.expectString)(output.message),
2630
+ message: smithy_client_1.expectString(output.message),
2631
2631
  };
2632
2632
  };
2633
2633
  const deserializeAws_json1_0InvalidExecutionInput = (output, context) => {
2634
2634
  return {
2635
- message: (0, smithy_client_1.expectString)(output.message),
2635
+ message: smithy_client_1.expectString(output.message),
2636
2636
  };
2637
2637
  };
2638
2638
  const deserializeAws_json1_0InvalidLoggingConfiguration = (output, context) => {
2639
2639
  return {
2640
- message: (0, smithy_client_1.expectString)(output.message),
2640
+ message: smithy_client_1.expectString(output.message),
2641
2641
  };
2642
2642
  };
2643
2643
  const deserializeAws_json1_0InvalidName = (output, context) => {
2644
2644
  return {
2645
- message: (0, smithy_client_1.expectString)(output.message),
2645
+ message: smithy_client_1.expectString(output.message),
2646
2646
  };
2647
2647
  };
2648
2648
  const deserializeAws_json1_0InvalidOutput = (output, context) => {
2649
2649
  return {
2650
- message: (0, smithy_client_1.expectString)(output.message),
2650
+ message: smithy_client_1.expectString(output.message),
2651
2651
  };
2652
2652
  };
2653
2653
  const deserializeAws_json1_0InvalidToken = (output, context) => {
2654
2654
  return {
2655
- message: (0, smithy_client_1.expectString)(output.message),
2655
+ message: smithy_client_1.expectString(output.message),
2656
2656
  };
2657
2657
  };
2658
2658
  const deserializeAws_json1_0InvalidTracingConfiguration = (output, context) => {
2659
2659
  return {
2660
- message: (0, smithy_client_1.expectString)(output.message),
2660
+ message: smithy_client_1.expectString(output.message),
2661
2661
  };
2662
2662
  };
2663
2663
  const deserializeAws_json1_0LambdaFunctionFailedEventDetails = (output, context) => {
2664
2664
  return {
2665
- cause: (0, smithy_client_1.expectString)(output.cause),
2666
- error: (0, smithy_client_1.expectString)(output.error),
2665
+ cause: smithy_client_1.expectString(output.cause),
2666
+ error: smithy_client_1.expectString(output.error),
2667
2667
  };
2668
2668
  };
2669
2669
  const deserializeAws_json1_0LambdaFunctionScheduledEventDetails = (output, context) => {
2670
2670
  return {
2671
- input: (0, smithy_client_1.expectString)(output.input),
2671
+ input: smithy_client_1.expectString(output.input),
2672
2672
  inputDetails: output.inputDetails !== undefined && output.inputDetails !== null
2673
2673
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
2674
2674
  : undefined,
2675
- resource: (0, smithy_client_1.expectString)(output.resource),
2676
- timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
2675
+ resource: smithy_client_1.expectString(output.resource),
2676
+ timeoutInSeconds: smithy_client_1.expectLong(output.timeoutInSeconds),
2677
2677
  };
2678
2678
  };
2679
2679
  const deserializeAws_json1_0LambdaFunctionScheduleFailedEventDetails = (output, context) => {
2680
2680
  return {
2681
- cause: (0, smithy_client_1.expectString)(output.cause),
2682
- error: (0, smithy_client_1.expectString)(output.error),
2681
+ cause: smithy_client_1.expectString(output.cause),
2682
+ error: smithy_client_1.expectString(output.error),
2683
2683
  };
2684
2684
  };
2685
2685
  const deserializeAws_json1_0LambdaFunctionStartFailedEventDetails = (output, context) => {
2686
2686
  return {
2687
- cause: (0, smithy_client_1.expectString)(output.cause),
2688
- error: (0, smithy_client_1.expectString)(output.error),
2687
+ cause: smithy_client_1.expectString(output.cause),
2688
+ error: smithy_client_1.expectString(output.error),
2689
2689
  };
2690
2690
  };
2691
2691
  const deserializeAws_json1_0LambdaFunctionSucceededEventDetails = (output, context) => {
2692
2692
  return {
2693
- output: (0, smithy_client_1.expectString)(output.output),
2693
+ output: smithy_client_1.expectString(output.output),
2694
2694
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2695
2695
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
2696
2696
  : undefined,
@@ -2698,8 +2698,8 @@ const deserializeAws_json1_0LambdaFunctionSucceededEventDetails = (output, conte
2698
2698
  };
2699
2699
  const deserializeAws_json1_0LambdaFunctionTimedOutEventDetails = (output, context) => {
2700
2700
  return {
2701
- cause: (0, smithy_client_1.expectString)(output.cause),
2702
- error: (0, smithy_client_1.expectString)(output.error),
2701
+ cause: smithy_client_1.expectString(output.cause),
2702
+ error: smithy_client_1.expectString(output.error),
2703
2703
  };
2704
2704
  };
2705
2705
  const deserializeAws_json1_0ListActivitiesOutput = (output, context) => {
@@ -2707,7 +2707,7 @@ const deserializeAws_json1_0ListActivitiesOutput = (output, context) => {
2707
2707
  activities: output.activities !== undefined && output.activities !== null
2708
2708
  ? deserializeAws_json1_0ActivityList(output.activities, context)
2709
2709
  : undefined,
2710
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2710
+ nextToken: smithy_client_1.expectString(output.nextToken),
2711
2711
  };
2712
2712
  };
2713
2713
  const deserializeAws_json1_0ListExecutionsOutput = (output, context) => {
@@ -2715,12 +2715,12 @@ const deserializeAws_json1_0ListExecutionsOutput = (output, context) => {
2715
2715
  executions: output.executions !== undefined && output.executions !== null
2716
2716
  ? deserializeAws_json1_0ExecutionList(output.executions, context)
2717
2717
  : undefined,
2718
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2718
+ nextToken: smithy_client_1.expectString(output.nextToken),
2719
2719
  };
2720
2720
  };
2721
2721
  const deserializeAws_json1_0ListStateMachinesOutput = (output, context) => {
2722
2722
  return {
2723
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2723
+ nextToken: smithy_client_1.expectString(output.nextToken),
2724
2724
  stateMachines: output.stateMachines !== undefined && output.stateMachines !== null
2725
2725
  ? deserializeAws_json1_0StateMachineList(output.stateMachines, context)
2726
2726
  : undefined,
@@ -2755,30 +2755,30 @@ const deserializeAws_json1_0LoggingConfiguration = (output, context) => {
2755
2755
  destinations: output.destinations !== undefined && output.destinations !== null
2756
2756
  ? deserializeAws_json1_0LogDestinationList(output.destinations, context)
2757
2757
  : undefined,
2758
- includeExecutionData: (0, smithy_client_1.expectBoolean)(output.includeExecutionData),
2759
- level: (0, smithy_client_1.expectString)(output.level),
2758
+ includeExecutionData: smithy_client_1.expectBoolean(output.includeExecutionData),
2759
+ level: smithy_client_1.expectString(output.level),
2760
2760
  };
2761
2761
  };
2762
2762
  const deserializeAws_json1_0MapIterationEventDetails = (output, context) => {
2763
2763
  return {
2764
- index: (0, smithy_client_1.expectInt32)(output.index),
2765
- name: (0, smithy_client_1.expectString)(output.name),
2764
+ index: smithy_client_1.expectInt32(output.index),
2765
+ name: smithy_client_1.expectString(output.name),
2766
2766
  };
2767
2767
  };
2768
2768
  const deserializeAws_json1_0MapStateStartedEventDetails = (output, context) => {
2769
2769
  return {
2770
- length: (0, smithy_client_1.expectInt32)(output.length),
2770
+ length: smithy_client_1.expectInt32(output.length),
2771
2771
  };
2772
2772
  };
2773
2773
  const deserializeAws_json1_0MissingRequiredParameter = (output, context) => {
2774
2774
  return {
2775
- message: (0, smithy_client_1.expectString)(output.message),
2775
+ message: smithy_client_1.expectString(output.message),
2776
2776
  };
2777
2777
  };
2778
2778
  const deserializeAws_json1_0ResourceNotFound = (output, context) => {
2779
2779
  return {
2780
- message: (0, smithy_client_1.expectString)(output.message),
2781
- resourceName: (0, smithy_client_1.expectString)(output.resourceName),
2780
+ message: smithy_client_1.expectString(output.message),
2781
+ resourceName: smithy_client_1.expectString(output.resourceName),
2782
2782
  };
2783
2783
  };
2784
2784
  const deserializeAws_json1_0SendTaskFailureOutput = (output, context) => {
@@ -2792,9 +2792,9 @@ const deserializeAws_json1_0SendTaskSuccessOutput = (output, context) => {
2792
2792
  };
2793
2793
  const deserializeAws_json1_0StartExecutionOutput = (output, context) => {
2794
2794
  return {
2795
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
2795
+ executionArn: smithy_client_1.expectString(output.executionArn),
2796
2796
  startDate: output.startDate !== undefined && output.startDate !== null
2797
- ? new Date(Math.round(output.startDate * 1000))
2797
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startDate)))
2798
2798
  : undefined,
2799
2799
  };
2800
2800
  };
@@ -2803,42 +2803,42 @@ const deserializeAws_json1_0StartSyncExecutionOutput = (output, context) => {
2803
2803
  billingDetails: output.billingDetails !== undefined && output.billingDetails !== null
2804
2804
  ? deserializeAws_json1_0BillingDetails(output.billingDetails, context)
2805
2805
  : undefined,
2806
- cause: (0, smithy_client_1.expectString)(output.cause),
2807
- error: (0, smithy_client_1.expectString)(output.error),
2808
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
2809
- input: (0, smithy_client_1.expectString)(output.input),
2806
+ cause: smithy_client_1.expectString(output.cause),
2807
+ error: smithy_client_1.expectString(output.error),
2808
+ executionArn: smithy_client_1.expectString(output.executionArn),
2809
+ input: smithy_client_1.expectString(output.input),
2810
2810
  inputDetails: output.inputDetails !== undefined && output.inputDetails !== null
2811
2811
  ? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
2812
2812
  : undefined,
2813
- name: (0, smithy_client_1.expectString)(output.name),
2814
- output: (0, smithy_client_1.expectString)(output.output),
2813
+ name: smithy_client_1.expectString(output.name),
2814
+ output: smithy_client_1.expectString(output.output),
2815
2815
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2816
2816
  ? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
2817
2817
  : undefined,
2818
2818
  startDate: output.startDate !== undefined && output.startDate !== null
2819
- ? new Date(Math.round(output.startDate * 1000))
2819
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startDate)))
2820
2820
  : undefined,
2821
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2822
- status: (0, smithy_client_1.expectString)(output.status),
2821
+ stateMachineArn: smithy_client_1.expectString(output.stateMachineArn),
2822
+ status: smithy_client_1.expectString(output.status),
2823
2823
  stopDate: output.stopDate !== undefined && output.stopDate !== null
2824
- ? new Date(Math.round(output.stopDate * 1000))
2824
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.stopDate)))
2825
2825
  : undefined,
2826
- traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
2826
+ traceHeader: smithy_client_1.expectString(output.traceHeader),
2827
2827
  };
2828
2828
  };
2829
2829
  const deserializeAws_json1_0StateEnteredEventDetails = (output, context) => {
2830
2830
  return {
2831
- input: (0, smithy_client_1.expectString)(output.input),
2831
+ input: smithy_client_1.expectString(output.input),
2832
2832
  inputDetails: output.inputDetails !== undefined && output.inputDetails !== null
2833
2833
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
2834
2834
  : undefined,
2835
- name: (0, smithy_client_1.expectString)(output.name),
2835
+ name: smithy_client_1.expectString(output.name),
2836
2836
  };
2837
2837
  };
2838
2838
  const deserializeAws_json1_0StateExitedEventDetails = (output, context) => {
2839
2839
  return {
2840
- name: (0, smithy_client_1.expectString)(output.name),
2841
- output: (0, smithy_client_1.expectString)(output.output),
2840
+ name: smithy_client_1.expectString(output.name),
2841
+ output: smithy_client_1.expectString(output.output),
2842
2842
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2843
2843
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
2844
2844
  : undefined,
@@ -2846,22 +2846,22 @@ const deserializeAws_json1_0StateExitedEventDetails = (output, context) => {
2846
2846
  };
2847
2847
  const deserializeAws_json1_0StateMachineAlreadyExists = (output, context) => {
2848
2848
  return {
2849
- message: (0, smithy_client_1.expectString)(output.message),
2849
+ message: smithy_client_1.expectString(output.message),
2850
2850
  };
2851
2851
  };
2852
2852
  const deserializeAws_json1_0StateMachineDeleting = (output, context) => {
2853
2853
  return {
2854
- message: (0, smithy_client_1.expectString)(output.message),
2854
+ message: smithy_client_1.expectString(output.message),
2855
2855
  };
2856
2856
  };
2857
2857
  const deserializeAws_json1_0StateMachineDoesNotExist = (output, context) => {
2858
2858
  return {
2859
- message: (0, smithy_client_1.expectString)(output.message),
2859
+ message: smithy_client_1.expectString(output.message),
2860
2860
  };
2861
2861
  };
2862
2862
  const deserializeAws_json1_0StateMachineLimitExceeded = (output, context) => {
2863
2863
  return {
2864
- message: (0, smithy_client_1.expectString)(output.message),
2864
+ message: smithy_client_1.expectString(output.message),
2865
2865
  };
2866
2866
  };
2867
2867
  const deserializeAws_json1_0StateMachineList = (output, context) => {
@@ -2877,29 +2877,29 @@ const deserializeAws_json1_0StateMachineList = (output, context) => {
2877
2877
  const deserializeAws_json1_0StateMachineListItem = (output, context) => {
2878
2878
  return {
2879
2879
  creationDate: output.creationDate !== undefined && output.creationDate !== null
2880
- ? new Date(Math.round(output.creationDate * 1000))
2880
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
2881
2881
  : undefined,
2882
- name: (0, smithy_client_1.expectString)(output.name),
2883
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2884
- type: (0, smithy_client_1.expectString)(output.type),
2882
+ name: smithy_client_1.expectString(output.name),
2883
+ stateMachineArn: smithy_client_1.expectString(output.stateMachineArn),
2884
+ type: smithy_client_1.expectString(output.type),
2885
2885
  };
2886
2886
  };
2887
2887
  const deserializeAws_json1_0StateMachineTypeNotSupported = (output, context) => {
2888
2888
  return {
2889
- message: (0, smithy_client_1.expectString)(output.message),
2889
+ message: smithy_client_1.expectString(output.message),
2890
2890
  };
2891
2891
  };
2892
2892
  const deserializeAws_json1_0StopExecutionOutput = (output, context) => {
2893
2893
  return {
2894
2894
  stopDate: output.stopDate !== undefined && output.stopDate !== null
2895
- ? new Date(Math.round(output.stopDate * 1000))
2895
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.stopDate)))
2896
2896
  : undefined,
2897
2897
  };
2898
2898
  };
2899
2899
  const deserializeAws_json1_0Tag = (output, context) => {
2900
2900
  return {
2901
- key: (0, smithy_client_1.expectString)(output.key),
2902
- value: (0, smithy_client_1.expectString)(output.value),
2901
+ key: smithy_client_1.expectString(output.key),
2902
+ value: smithy_client_1.expectString(output.value),
2903
2903
  };
2904
2904
  };
2905
2905
  const deserializeAws_json1_0TagList = (output, context) => {
@@ -2917,91 +2917,91 @@ const deserializeAws_json1_0TagResourceOutput = (output, context) => {
2917
2917
  };
2918
2918
  const deserializeAws_json1_0TaskDoesNotExist = (output, context) => {
2919
2919
  return {
2920
- message: (0, smithy_client_1.expectString)(output.message),
2920
+ message: smithy_client_1.expectString(output.message),
2921
2921
  };
2922
2922
  };
2923
2923
  const deserializeAws_json1_0TaskFailedEventDetails = (output, context) => {
2924
2924
  return {
2925
- cause: (0, smithy_client_1.expectString)(output.cause),
2926
- error: (0, smithy_client_1.expectString)(output.error),
2927
- resource: (0, smithy_client_1.expectString)(output.resource),
2928
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2925
+ cause: smithy_client_1.expectString(output.cause),
2926
+ error: smithy_client_1.expectString(output.error),
2927
+ resource: smithy_client_1.expectString(output.resource),
2928
+ resourceType: smithy_client_1.expectString(output.resourceType),
2929
2929
  };
2930
2930
  };
2931
2931
  const deserializeAws_json1_0TaskScheduledEventDetails = (output, context) => {
2932
2932
  return {
2933
- heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
2934
- parameters: (0, smithy_client_1.expectString)(output.parameters),
2935
- region: (0, smithy_client_1.expectString)(output.region),
2936
- resource: (0, smithy_client_1.expectString)(output.resource),
2937
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2938
- timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
2933
+ heartbeatInSeconds: smithy_client_1.expectLong(output.heartbeatInSeconds),
2934
+ parameters: smithy_client_1.expectString(output.parameters),
2935
+ region: smithy_client_1.expectString(output.region),
2936
+ resource: smithy_client_1.expectString(output.resource),
2937
+ resourceType: smithy_client_1.expectString(output.resourceType),
2938
+ timeoutInSeconds: smithy_client_1.expectLong(output.timeoutInSeconds),
2939
2939
  };
2940
2940
  };
2941
2941
  const deserializeAws_json1_0TaskStartedEventDetails = (output, context) => {
2942
2942
  return {
2943
- resource: (0, smithy_client_1.expectString)(output.resource),
2944
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2943
+ resource: smithy_client_1.expectString(output.resource),
2944
+ resourceType: smithy_client_1.expectString(output.resourceType),
2945
2945
  };
2946
2946
  };
2947
2947
  const deserializeAws_json1_0TaskStartFailedEventDetails = (output, context) => {
2948
2948
  return {
2949
- cause: (0, smithy_client_1.expectString)(output.cause),
2950
- error: (0, smithy_client_1.expectString)(output.error),
2951
- resource: (0, smithy_client_1.expectString)(output.resource),
2952
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2949
+ cause: smithy_client_1.expectString(output.cause),
2950
+ error: smithy_client_1.expectString(output.error),
2951
+ resource: smithy_client_1.expectString(output.resource),
2952
+ resourceType: smithy_client_1.expectString(output.resourceType),
2953
2953
  };
2954
2954
  };
2955
2955
  const deserializeAws_json1_0TaskSubmitFailedEventDetails = (output, context) => {
2956
2956
  return {
2957
- cause: (0, smithy_client_1.expectString)(output.cause),
2958
- error: (0, smithy_client_1.expectString)(output.error),
2959
- resource: (0, smithy_client_1.expectString)(output.resource),
2960
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2957
+ cause: smithy_client_1.expectString(output.cause),
2958
+ error: smithy_client_1.expectString(output.error),
2959
+ resource: smithy_client_1.expectString(output.resource),
2960
+ resourceType: smithy_client_1.expectString(output.resourceType),
2961
2961
  };
2962
2962
  };
2963
2963
  const deserializeAws_json1_0TaskSubmittedEventDetails = (output, context) => {
2964
2964
  return {
2965
- output: (0, smithy_client_1.expectString)(output.output),
2965
+ output: smithy_client_1.expectString(output.output),
2966
2966
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2967
2967
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
2968
2968
  : undefined,
2969
- resource: (0, smithy_client_1.expectString)(output.resource),
2970
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2969
+ resource: smithy_client_1.expectString(output.resource),
2970
+ resourceType: smithy_client_1.expectString(output.resourceType),
2971
2971
  };
2972
2972
  };
2973
2973
  const deserializeAws_json1_0TaskSucceededEventDetails = (output, context) => {
2974
2974
  return {
2975
- output: (0, smithy_client_1.expectString)(output.output),
2975
+ output: smithy_client_1.expectString(output.output),
2976
2976
  outputDetails: output.outputDetails !== undefined && output.outputDetails !== null
2977
2977
  ? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
2978
2978
  : undefined,
2979
- resource: (0, smithy_client_1.expectString)(output.resource),
2980
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2979
+ resource: smithy_client_1.expectString(output.resource),
2980
+ resourceType: smithy_client_1.expectString(output.resourceType),
2981
2981
  };
2982
2982
  };
2983
2983
  const deserializeAws_json1_0TaskTimedOut = (output, context) => {
2984
2984
  return {
2985
- message: (0, smithy_client_1.expectString)(output.message),
2985
+ message: smithy_client_1.expectString(output.message),
2986
2986
  };
2987
2987
  };
2988
2988
  const deserializeAws_json1_0TaskTimedOutEventDetails = (output, context) => {
2989
2989
  return {
2990
- cause: (0, smithy_client_1.expectString)(output.cause),
2991
- error: (0, smithy_client_1.expectString)(output.error),
2992
- resource: (0, smithy_client_1.expectString)(output.resource),
2993
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2990
+ cause: smithy_client_1.expectString(output.cause),
2991
+ error: smithy_client_1.expectString(output.error),
2992
+ resource: smithy_client_1.expectString(output.resource),
2993
+ resourceType: smithy_client_1.expectString(output.resourceType),
2994
2994
  };
2995
2995
  };
2996
2996
  const deserializeAws_json1_0TooManyTags = (output, context) => {
2997
2997
  return {
2998
- message: (0, smithy_client_1.expectString)(output.message),
2999
- resourceName: (0, smithy_client_1.expectString)(output.resourceName),
2998
+ message: smithy_client_1.expectString(output.message),
2999
+ resourceName: smithy_client_1.expectString(output.resourceName),
3000
3000
  };
3001
3001
  };
3002
3002
  const deserializeAws_json1_0TracingConfiguration = (output, context) => {
3003
3003
  return {
3004
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
3004
+ enabled: smithy_client_1.expectBoolean(output.enabled),
3005
3005
  };
3006
3006
  };
3007
3007
  const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
@@ -3010,7 +3010,7 @@ const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
3010
3010
  const deserializeAws_json1_0UpdateStateMachineOutput = (output, context) => {
3011
3011
  return {
3012
3012
  updateDate: output.updateDate !== undefined && output.updateDate !== null
3013
- ? new Date(Math.round(output.updateDate * 1000))
3013
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updateDate)))
3014
3014
  : undefined,
3015
3015
  };
3016
3016
  };