@@ -180,11 +180,11 @@ def test_get_durable_execution_response_serialization():
180180 "DurableExecutionName" : "test-execution" ,
181181 "FunctionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function" ,
182182 "Status" : "SUCCEEDED" ,
183- "StartDate " : "2023-01-01T00:00:00Z" ,
183+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
184184 "InputPayload" : "test-input" ,
185185 "Result" : "test-result" ,
186186 "Error" : {"ErrorMessage" : "test error" },
187- "StopDate " : "2023-01-01T00:01:00Z" ,
187+ "EndTimestamp " : "2023-01-01T00:01:00Z" ,
188188 "Version" : "1.0" ,
189189 }
190190
@@ -199,11 +199,11 @@ def test_get_durable_execution_response_serialization():
199199 == "arn:aws:lambda:us-east-1:123456789012:function:my-function"
200200 )
201201 assert response_obj .status == "SUCCEEDED"
202- assert response_obj .start_date == "2023-01-01T00:00:00Z"
202+ assert response_obj .start_timestamp == "2023-01-01T00:00:00Z"
203203 assert response_obj .input_payload == "test-input"
204204 assert response_obj .result == "test-result"
205205 assert response_obj .error .message == "test error"
206- assert response_obj .stop_date == "2023-01-01T00:01:00Z"
206+ assert response_obj .end_timestamp == "2023-01-01T00:01:00Z"
207207 assert response_obj .version == "1.0"
208208
209209 result_data = response_obj .to_dict ()
@@ -221,14 +221,14 @@ def test_get_durable_execution_response_minimal():
221221 "DurableExecutionName" : "test-execution" ,
222222 "FunctionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function" ,
223223 "Status" : "RUNNING" ,
224- "StartDate " : "2023-01-01T00:00:00Z" ,
224+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
225225 }
226226
227227 response_obj = GetDurableExecutionResponse .from_dict (data )
228228 assert response_obj .input_payload is None
229229 assert response_obj .result is None
230230 assert response_obj .error is None
231- assert response_obj .stop_date is None
231+ assert response_obj .end_timestamp is None
232232 assert response_obj .version is None
233233
234234 result_data = response_obj .to_dict ()
@@ -295,8 +295,8 @@ def test_durable_execution_summary_serialization():
295295 "DurableExecutionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function:execution:test" ,
296296 "DurableExecutionName" : "test-execution" ,
297297 "Status" : "SUCCEEDED" ,
298- "StartDate " : "2023-01-01T00:00:00Z" ,
299- "StopDate " : "2023-01-01T00:01:00Z" ,
298+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
299+ "EndTimestamp " : "2023-01-01T00:01:00Z" ,
300300 }
301301
302302 summary_obj = Execution .from_dict (data )
@@ -306,8 +306,8 @@ def test_durable_execution_summary_serialization():
306306 )
307307 assert summary_obj .durable_execution_name == "test-execution"
308308 assert summary_obj .status == "SUCCEEDED"
309- assert summary_obj .start_date == "2023-01-01T00:00:00Z"
310- assert summary_obj .stop_date == "2023-01-01T00:01:00Z"
309+ assert summary_obj .start_timestamp == "2023-01-01T00:00:00Z"
310+ assert summary_obj .end_timestamp == "2023-01-01T00:01:00Z"
311311
312312 result_data = summary_obj .to_dict ()
313313 assert result_data == data
@@ -323,11 +323,11 @@ def test_durable_execution_summary_no_stop_date():
323323 "DurableExecutionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function:execution:test" ,
324324 "DurableExecutionName" : "test-execution" ,
325325 "Status" : "RUNNING" ,
326- "StartDate " : "2023-01-01T00:00:00Z" ,
326+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
327327 }
328328
329329 summary_obj = Execution .from_dict (data )
330- assert summary_obj .stop_date is None
330+ assert summary_obj .end_timestamp is None
331331
332332 result_data = summary_obj .to_dict ()
333333 assert result_data == data
@@ -341,14 +341,14 @@ def test_list_durable_executions_response_serialization():
341341 "DurableExecutionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function:execution:test1" ,
342342 "DurableExecutionName" : "test-execution-1" ,
343343 "Status" : "SUCCEEDED" ,
344- "StartDate " : "2023-01-01T00:00:00Z" ,
345- "StopDate " : "2023-01-01T00:01:00Z" ,
344+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
345+ "EndTimestamp " : "2023-01-01T00:01:00Z" ,
346346 },
347347 {
348348 "DurableExecutionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function:execution:test2" ,
349349 "DurableExecutionName" : "test-execution-2" ,
350350 "Status" : "RUNNING" ,
351- "StartDate " : "2023-01-01T00:02:00Z" ,
351+ "StartTimestamp " : "2023-01-01T00:02:00Z" ,
352352 },
353353 ],
354354 "NextMarker" : "next-marker-123" ,
@@ -738,8 +738,8 @@ def test_list_durable_executions_by_function_response_serialization():
738738 "DurableExecutionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function:execution:test1" ,
739739 "DurableExecutionName" : "test-execution-1" ,
740740 "Status" : "SUCCEEDED" ,
741- "StartDate " : "2023-01-01T00:00:00Z" ,
742- "StopDate " : "2023-01-01T00:01:00Z" ,
741+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
742+ "EndTimestamp " : "2023-01-01T00:01:00Z" ,
743743 }
744744 ],
745745 "NextMarker" : "next-marker-123" ,
@@ -1183,8 +1183,8 @@ def test_execution_backward_compatibility_empty_function_arn():
11831183 "DurableExecutionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function:execution:test" ,
11841184 "DurableExecutionName" : "test-execution" ,
11851185 "Status" : "SUCCEEDED" ,
1186- "StartDate " : "2023-01-01T00:00:00Z" ,
1187- "StopDate " : "2023-01-01T00:01:00Z" ,
1186+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
1187+ "EndTimestamp " : "2023-01-01T00:01:00Z" ,
11881188 }
11891189
11901190 execution_obj = Execution .from_dict (data )
@@ -1198,8 +1198,8 @@ def test_execution_backward_compatibility_empty_function_arn():
11981198 "DurableExecutionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function:execution:test" ,
11991199 "DurableExecutionName" : "test-execution" ,
12001200 "Status" : "SUCCEEDED" ,
1201- "StartDate " : "2023-01-01T00:00:00Z" ,
1202- "StopDate " : "2023-01-01T00:01:00Z" ,
1201+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
1202+ "EndTimestamp " : "2023-01-01T00:01:00Z" ,
12031203 }
12041204 assert result_data == expected_data
12051205
@@ -1211,8 +1211,8 @@ def test_execution_with_function_arn():
12111211 "DurableExecutionName" : "test-execution" ,
12121212 "FunctionArn" : "arn:aws:lambda:us-east-1:123456789012:function:my-function" ,
12131213 "Status" : "SUCCEEDED" ,
1214- "StartDate " : "2023-01-01T00:00:00Z" ,
1215- "StopDate " : "2023-01-01T00:01:00Z" ,
1214+ "StartTimestamp " : "2023-01-01T00:00:00Z" ,
1215+ "EndTimestamp " : "2023-01-01T00:01:00Z" ,
12161216 }
12171217
12181218 execution_obj = Execution .from_dict (data )
0 commit comments