title: How to add dynamic TimeoutSeconds for activity in AWS Step Functions?
body: <p>I have an activity in step function with <code>TimeoutSeconds</code>, like this:</p>
  
  <pre><code>ActivityWaiting:
      Type: Task
      ResultPath: $.output
      Resource: arn:aws:states:#{AWS::Region}:#{AWS::AccountId}:activity:myActivity
      TimeoutSeconds: 3600
  </code></pre>
  
  <p>I would like to control the value of <code>TimeoutSeconds</code> and to change it with a parameter from the previous step.
  I've tried something like that:</p>
  
  <pre><code>ActivityWaiting:
      Type: Task
      ResultPath: $.output
      Resource: arn:aws:states:#{AWS::Region}:#{AWS::AccountId}:activity:myActivity
      TimeoutSeconds: $.myTimeout
  </code></pre>
  
  <p>But unfortunately, it didn't work. </p>
  
  <p><strong>Edit</strong>:
  I would like to calculate/define the time <code>myTimeout</code> before executing the step function with python. Something like that:</p>
  
  <pre><code>data['myTimeout'] = getTimeout() #dymanic time in the seconds(ex 15000)
  
  response = step_functions.start_execution(stateMachineArn=state_machine, input=json.dumps(data))
  </code></pre>