in aws_emr_launch/constructs/step_functions/emr_tasks.py [0:0]
def _render_task_base(self) -> Mapping[Any, Any]:
task = {
"Type": "Task",
"Comment": self._comment,
"TimeoutSeconds": self._timeout.to_seconds() if self._timeout else None,
"HeartbeatSeconds": self._heartbeat.to_seconds() if self._heartbeat else None,
"InputPath": self.render_json_path(self._input_path),
"OutputPath": self.render_json_path(self._output_path),
"ResultPath": self.render_json_path(self._result_path),
}
return {k: v for k, v in task.items() if v is not None}